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:
saxmatt 2003-05-23 13:34:55 +00:00
parent 252bbd712b
commit ae14eac7f8
1 changed files with 77 additions and 53 deletions

View File

@ -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,8 +249,7 @@ 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.'" ');
@ -257,16 +258,29 @@ switch ($action) {
echo('>'.$r.'</option>'); echo('>'.$r.'</option>');
} }
?> ?>
</select>&nbsp;(Leave at 0 for no rating.) </select>
</td> &nbsp;(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&nbsp;<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> &nbsp;
<label>
<input type="radio" name="target" value="_top">
_top</label>
&nbsp;
<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&nbsp;<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> &nbsp; <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>
@ -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">&nbsp;<input type="submit" name="submit" value="Cancel" class="search"></a> &nbsp;
<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&nbsp;<input type="radio" name="target" value="_top">_top</td> <td><label><input type="radio" name="target" value="_blank"> _blank</label>
&nbsp;<label><input type="radio" name="target" value="_top">
_top</label>&nbsp;<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&nbsp;<input type="radio" name="visible" value="N">N</td> <td><label>
<input type="radio" name="visible" checked="checked" value="Y">
Y</label>
&nbsp;
<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>