Changeset 853 in ExiteCMS
- Timestamp:
- 09/28/07 23:29:09 (4 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 edited
-
administration/site_links.php (modified) (2 diffs)
-
includes/templates/admin.site_links.tpl (modified) (2 diffs)
-
themes/PLiTheme/templates/templates/_closetable_x.tpl (added)
-
themes/PLiTheme/templates/templates/_opentable_x.tpl (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/site_links.php
r852 r853 171 171 $link_position = isset($_POST['link_position']) ? $_POST['link_position'] : "0"; 172 172 $link_window = isset($_POST['link_window']) ? $_POST['link_window'] : "0"; 173 $link_order = isset($_POST['link_order']) ? $_POST['link_order'] : "0"; 173 174 $link_aid = isset($_POST['link_aid']) ? $_POST['link_aid'] : "0"; 174 175 $panel_filename = isset($_POST['panel_filename']) ? $_POST['panel_filename'] : ""; … … 194 195 $link_order = dbresult(dbquery("SELECT MAX(link_order) FROM ".$db_prefix."site_links WHERE panel_name = '$panel_filename' AND link_parent='$link_parent'"),0)+1; 195 196 } else { 196 // reuse the old one 197 $link_order = $data['link_order']; 197 // link changed? 198 if ($link_order != $data['link_order']) { 199 $result = dbquery("UPDATE ".$db_prefix."site_links SET link_order=link_order+1 WHERE panel_name = '$panel_filename' AND link_parent='$link_parent' AND link_order >= '$link_order'"); 200 } 198 201 } 199 202 // and update the link itself as well... -
trunk/includes/templates/admin.site_links.tpl
r852 r853 69 69 </td> 70 70 </tr> 71 {if $action != "edit"}72 71 <tr> 73 72 <td class='tbl' valign='top'> … … 78 77 </td> 79 78 </tr> 80 {/if}81 79 <tr> 82 80 <td class='tbl' valign='top'>
Note: See TracChangeset
for help on using the changeset viewer.
