1 rizwank 1.1 <form class="admin" action="lib/func_editlinks.php" method="post">
2 <strong><em>Edit Link Properties</em></strong><br /><br />
3 <input type="hidden" name="type" value="edit" />
4 <input type="hidden" name="link_cat" value="<?php echo $HTTP_GET_VARS['link_cat']; ?>" />
5 <input type="hidden" name="link_id" value="<?php echo $HTTP_GET_VARS['link_id']; ?>" />
6 <strong>Title:</strong><br />
7 <input type="text" name="link_name" class="box" value="<?php echo $HTTP_GET_VARS['link_name']; ?>" /><br />
8 <strong>URL:</strong><br />
9 <input type="text" class="box" name="link_url" value="<?php echo $HTTP_GET_VARS['link_url']; ?>" /><br />
10 <strong>Extra Info:</strong><br />
11 <input type="text" class="box" name="link_extras" value="<?php echo $HTTP_GET_VARS['link_extras']; ?>" /><br />
12 <strong>Status:</strong><br />
13 <select name="link_status">
14 <option value="<?php echo $HTTP_GET_VARS['link_status']; ?>"><?php if ($HTTP_GET_VARS['link_status'] == "1") { echo "Public"; } elseif ($HTTP_GET_VARS['link_status'] == "0") { echo "Private"; } ?></option>
15 <option value="1">Public</option>
16 <option value="0">Private</option>
17 </select><br /><br />
18 <input type="submit" value="Save Changes" class="button" />
19 <br /><br />
20 </form>
21 <br />
22 rizwank 1.1 <form class="admin" action="lib/func_editlinks.php" method="post">
23 <strong><em>Move Link</em></strong><br /><br />
24 This link is currently in the <em><?php echo $HTTP_GET_VARS['link_cat']; ?></em> category. Please select which category you would like to move it to.<br />
25 <input type="hidden" name="type" value="move" />
26 <input type="hidden" name="old_category" value="<?php echo $HTTP_GET_VARS['link_cat']; ?>" />
27 <input type="hidden" name="link_id" value="<?php echo $HTTP_GET_VARS['link_id']; ?>" />
28 <input type="hidden" name="link_name" value="<?php echo $HTTP_GET_VARS['link_name']; ?>" />
29 <input type="hidden" name="link_url" value="<?php echo $HTTP_GET_VARS['link_url']; ?>" />
30 <input type="hidden" name="link_extras" value="<?php echo $HTTP_GET_VARS['link_extras']; ?>" />
31 <input type="hidden" name="link_status" value="<?php echo $HTTP_GET_VARS['link_status']; ?>" />
32 <select name="new_category">
33 <?php
34
35 $results = mysql_list_tables($mysqdb['name']) or die("Invalid request: " . mysql_error());
36
37 while ($row = mysql_fetch_row($results)) {
38 if ($row[0] != $HTTP_GET_VARS['link_cat']) {
39 print "<option value=\"$row[0]\">$row[0]</option>";
40 }
41 }
42
43 rizwank 1.1 mysql_free_result($results);
44
45 ?>
46 </select>
47 <br /><br />
48 <input type="submit" value="Move Link" class="button" />
49 <br /><br />
50 </form>
|