Changeset 9069 for extensions/rv_gmaps/trunk
- Timestamp:
- Feb 2, 2011, 9:55:58 PM (14 years ago)
- Location:
- extensions/rv_gmaps/trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_gmaps/trunk/admin/admin_edit.php
r8683 r9069 7 7 $_GET['cat'] = 'caddie'; 8 8 $_GET['mode'] = 'map'; 9 include (PHPWG_ROOT_PATH.'admin/ element_set.php');9 include (PHPWG_ROOT_PATH.'admin/batch_manager.php'); 10 10 11 $template->concat('TABSHEET_TITLE', ' '.l10n_dec('%d photo', '%d photos', count($page['cat_elements_id'])) .' - '.$page['title']);11 $template->concat('TABSHEET_TITLE', ' '.l10n_dec('%d photo', '%d photos', count($page['cat_elements_id']))); 12 12 13 13 if ( isset($_POST['submit']) ) … … 56 56 } 57 57 58 59 $template->append( 60 'specials', 61 array( 62 $admin_url.get_query_string_diff(array('start','cat')).'&cat=caddie' => l10n('Caddie') 63 ), 64 true 65 ); 58 $specials_selected = null; 59 foreach( array('caddie'=>'Caddie', 'recent'=>'Recent photos') as $k => $v) 60 { 61 $link = $admin_url.get_query_string_diff(array('start','cat')).'&cat='.$k; 62 $template->append( 63 'specials', 64 array( 65 $link => l10n($v), 66 ), 67 true 68 ); 69 if ($k == $_GET['cat']) $specials_selected = $link; 70 } 71 $template->assign('specials_selected', $specials_selected); 66 72 67 73 $query = ' … … 74 80 if (!empty($result)) 75 81 { 76 77 78 79 80 81 82 82 while ($row = mysql_fetch_assoc($result)) 83 { 84 $url = $admin_url.get_query_string_diff(array('start','cat')).'&cat='.$row['id']; 85 if ( $row['id']==$_GET['cat'] ) $selecteds[] = $url; 86 $row['id']=$url; 87 array_push($categories, $row); 88 } 83 89 } 84 90 usort($categories, 'global_rank_compare'); -
extensions/rv_gmaps/trunk/admin/admin_edit.tpl
r8683 r9069 4 4 <select onchange="document.location = this.options[this.selectedIndex].value;"> 5 5 <optgroup label="Specials"> 6 {html_options options=$specials }6 {html_options options=$specials selected=$specials_selected} 7 7 </optgroup> 8 8 <optgroup label="{'Albums'|@translate}">
Note: See TracChangeset
for help on using the changeset viewer.