Labels added, option for no target.
git-svn-id: http://svn.automattic.com/wordpress/trunk@54 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
252bbd712b
commit
ae14eac7f8
|
@ -218,13 +218,15 @@ switch ($action) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<table width="95%" cellpadding="5" cellspacing="0" border="0">
|
|
||||||
<form name="editlink" method="post">
|
<table width="95%" cellpadding="5" cellspacing="0" border="0"><form name="editlink" method="post">
|
||||||
<input type="hidden" name="action" value="editlink" />
|
<input type="hidden" name="action" value="editlink" />
|
||||||
<input type="hidden" name="link_id" value="<?php echo $link_id; ?>" />
|
<input type="hidden" name="link_id" value="<?php echo $link_id; ?>" />
|
||||||
<input type="hidden" name="order_by" value="<?php echo $order_by ?>" />
|
<input type="hidden" name="order_by" value="<?php echo $order_by ?>" />
|
||||||
<input type="hidden" name="cat_id" value="<?php echo $cat_id ?>" />
|
<input type="hidden" name="cat_id" value="<?php echo $cat_id ?>" />
|
||||||
<tr><td colspan="2"><b>Edit</b> a link:</td></tr>
|
<tr>
|
||||||
|
<td colspan="2"><b>Edit</b> a link:</td>
|
||||||
|
</tr>
|
||||||
<tr height="20">
|
<tr height="20">
|
||||||
<td height="20" align="right">URL:</td>
|
<td height="20" align="right">URL:</td>
|
||||||
<td><input type="text" name="linkurl" size="80" value="<?php echo $link_url; ?>"></td>
|
<td><input type="text" name="linkurl" size="80" value="<?php echo $link_url; ?>"></td>
|
||||||
|
@ -247,9 +249,8 @@ switch ($action) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr height="20">
|
||||||
<td height="20" align="right">Rating:</td>
|
<td height="20" align="right">Rating:</td>
|
||||||
<td>
|
<td> <select name="rating" size="1">
|
||||||
<select name="rating" size="1">
|
<?php
|
||||||
<?php
|
|
||||||
for ($r = 0; $r < 10; $r++) {
|
for ($r = 0; $r < 10; $r++) {
|
||||||
echo(' <option value="'.$r.'" ');
|
echo(' <option value="'.$r.'" ');
|
||||||
if ($link_rating == $r)
|
if ($link_rating == $r)
|
||||||
|
@ -257,21 +258,34 @@ switch ($action) {
|
||||||
echo('>'.$r.'</option>');
|
echo('>'.$r.'</option>');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select> (Leave at 0 for no rating.)
|
</select>
|
||||||
</td>
|
(Leave at 0 for no rating.) </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr height="20">
|
||||||
<td height="20" align="right">Target:</td>
|
<td height="20" align="right">Target:</td>
|
||||||
<td><input type="radio" name="target" <?php if ($link_target == '_blank') echo "checked"; ?> value="_blank">_blank <input type="radio" name="target" <?php if ($link_target == '_top') echo "checked"; ?> value="_top">_top</td>
|
<td><label>
|
||||||
|
<input type="radio" name="target" value="_blank">
|
||||||
|
_blank</label>
|
||||||
|
<label>
|
||||||
|
<input type="radio" name="target" value="_top">
|
||||||
|
_top</label>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
<input type="radio" name="target" value="" checked="checked">
|
||||||
|
none</label></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr height="20">
|
||||||
<td height="20" align="right">Visible:</td>
|
<td height="20" align="right">Visible:</td>
|
||||||
<td><input type="radio" name="visible" <?php if ($link_visible == 'Y') echo "checked"; ?> value="Y">Y <input type="radio" name="visible" <?php if ($link_visible == 'N') echo "checked"; ?> value="N">N</td>
|
<td><label>
|
||||||
|
<input type="radio" name="visible" checked="checked" value="Y">
|
||||||
|
Y</label> <label>
|
||||||
|
<input type="radio" name="visible" value="N">
|
||||||
|
N</label></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr height="20">
|
||||||
<td height="20" align="right">Category:</td>
|
<td height="20" align="right">Category:</td>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
$query = "SELECT cat_id, cat_name, auto_toggle FROM $tablelinkcategories ORDER BY cat_id";
|
$query = "SELECT cat_id, cat_name, auto_toggle FROM $tablelinkcategories ORDER BY cat_id";
|
||||||
$result = mysql_query($query) or die("Couldn't execute query. ".mysql_error());
|
$result = mysql_query($query) or die("Couldn't execute query. ".mysql_error());
|
||||||
echo " <select name=\"category\" size=\"1\">\n";
|
echo " <select name=\"category\" size=\"1\">\n";
|
||||||
|
@ -289,8 +303,9 @@ switch ($action) {
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr height="20">
|
||||||
<td colspan="2" align="center">
|
<td colspan="2" align="center"> <input type="submit" name="submit" value="Save" class="search">
|
||||||
<input type="submit" name="submit" value="Save" class="search"> <input type="submit" name="submit" value="Cancel" class="search"></a>
|
|
||||||
|
<input type="submit" name="submit" value="Cancel" class="search"></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -523,11 +538,20 @@ switch ($action) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr height="20">
|
||||||
<td height="20" align="right">Target:</td>
|
<td height="20" align="right">Target:</td>
|
||||||
<td><input type="radio" name="target" checked="checked" value="_blank">_blank <input type="radio" name="target" value="_top">_top</td>
|
<td><label><input type="radio" name="target" value="_blank"> _blank</label>
|
||||||
|
<label><input type="radio" name="target" value="_top">
|
||||||
|
_top</label> <label><input type="radio" name="target" value="" checked="checked">
|
||||||
|
none</label></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr height="20">
|
||||||
<td height="20" align="right">Visible:</td>
|
<td height="20" align="right">Visible:</td>
|
||||||
<td><input type="radio" name="visible" checked="checked" value="Y">Y <input type="radio" name="visible" value="N">N</td>
|
<td><label>
|
||||||
|
<input type="radio" name="visible" checked="checked" value="Y">
|
||||||
|
Y</label>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
<input type="radio" name="visible" value="N">
|
||||||
|
N</label></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr height="20">
|
||||||
<td height="20" align="right">Category:</td>
|
<td height="20" align="right">Category:</td>
|
||||||
|
|
Loading…
Reference in New Issue