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,38 +218,39 @@ 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>
|
||||||
<tr height="20">
|
<td colspan="2"><b>Edit</b> a link:</td>
|
||||||
<td height="20" align="right">URL:</td>
|
</tr>
|
||||||
<td><input type="text" name="linkurl" size="80" value="<?php echo $link_url; ?>"></td>
|
<tr height="20">
|
||||||
</tr>
|
<td height="20" align="right">URL:</td>
|
||||||
<tr height="20">
|
<td><input type="text" name="linkurl" size="80" value="<?php echo $link_url; ?>"></td>
|
||||||
<td height="20" align="right">Display Name/Alt text:</td>
|
</tr>
|
||||||
<td><input type="text" name="name" size="80" value="<?php echo $link_name; ?>"></td>
|
<tr height="20">
|
||||||
</tr>
|
<td height="20" align="right">Display Name/Alt text:</td>
|
||||||
<tr height="20">
|
<td><input type="text" name="name" size="80" value="<?php echo $link_name; ?>"></td>
|
||||||
<td height="20" align="right">Image:</td>
|
</tr>
|
||||||
<td><input type="text" name="image" size="80" value="<?php echo $link_image; ?>"></td>
|
<tr height="20">
|
||||||
</tr>
|
<td height="20" align="right">Image:</td>
|
||||||
<tr height="20">
|
<td><input type="text" name="image" size="80" value="<?php echo $link_image; ?>"></td>
|
||||||
<td height="20" align="right">Description:</td>
|
</tr>
|
||||||
<td><input type="text" name="description" size="80" value="<?php echo $link_description; ?>"></td>
|
<tr height="20">
|
||||||
</tr>
|
<td height="20" align="right">Description:</td>
|
||||||
<tr height="20">
|
<td><input type="text" name="description" size="80" value="<?php echo $link_description; ?>"></td>
|
||||||
<td height="20" align="right">Rel:</td>
|
</tr>
|
||||||
<td><input type="text" name="rel" size="80" value="<?php echo $link_rel; ?>"></td>
|
<tr height="20">
|
||||||
</tr>
|
<td height="20" align="right">Rel:</td>
|
||||||
<tr height="20">
|
<td><input type="text" name="rel" size="80" value="<?php echo $link_rel; ?>"></td>
|
||||||
<td height="20" align="right">Rating:</td>
|
</tr>
|
||||||
<td>
|
<tr height="20">
|
||||||
<select name="rating" size="1">
|
<td height="20" align="right">Rating:</td>
|
||||||
<?php
|
<td> <select name="rating" size="1">
|
||||||
|
<?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>
|
||||||
</tr>
|
<input type="radio" name="target" value="_blank">
|
||||||
<tr height="20">
|
_blank</label>
|
||||||
<td height="20" align="right">Visible:</td>
|
<label>
|
||||||
<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>
|
<input type="radio" name="target" value="_top">
|
||||||
</tr>
|
_top</label>
|
||||||
<tr height="20">
|
|
||||||
<td height="20" align="right">Category:</td>
|
<label>
|
||||||
<td>
|
<input type="radio" name="target" value="" checked="checked">
|
||||||
<?php
|
none</label></td>
|
||||||
|
</tr>
|
||||||
|
<tr height="20">
|
||||||
|
<td height="20" align="right">Visible:</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 height="20">
|
||||||
|
<td height="20" align="right">Category:</td>
|
||||||
|
<td>
|
||||||
|
<?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";
|
||||||
|
@ -286,14 +300,15 @@ switch ($action) {
|
||||||
}
|
}
|
||||||
echo " </select>\n";
|
echo " </select>\n";
|
||||||
?>
|
?>
|
||||||
</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>
|
|
||||||
</td>
|
<input type="submit" name="submit" value="Cancel" class="search"></a>
|
||||||
</tr>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
@ -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