Changeset 2223 for trunk/admin/cat_options.php
- Timestamp:
- Feb 28, 2008, 3:41:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_options.php
r2201 r2223 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 7PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | file : $Id$ … … 150 150 ); 151 151 152 $page['section'] = isset($_GET['section']) ? $_GET['section'] : ' upload';152 $page['section'] = isset($_GET['section']) ? $_GET['section'] : 'status'; 153 153 $base_url = PHPWG_ROOT_PATH.'admin.php?page=cat_options&section='; 154 154 155 $template->assign _vars(155 $template->assign( 156 156 array( 157 'L_SUBMIT'=>l10n('submit'),158 'L_RESET'=>l10n('reset'),159 160 157 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=cat_options', 161 162 158 'F_ACTION'=>$base_url.$page['section'] 163 159 ) … … 166 162 // TabSheet initialization 167 163 $opt_link = $link_start.'cat_options&section='; 168 $ page['tabsheet']= array164 $tabsheet = array 169 165 ( 166 'status' => array 167 ( 168 'caption' => l10n('cat_security'), 169 'url' => $opt_link.'status' 170 ), 171 'visible' => array 172 ( 173 'caption' => l10n('lock'), 174 'url' => $opt_link.'visible' 175 ), 170 176 'upload' => array 171 177 ( … … 178 184 'url' => $opt_link.'comments' 179 185 ), 180 'visible' => array181 (182 'caption' => l10n('lock'),183 'url' => $opt_link.'visible'184 ),185 'status' => array186 (187 'caption' => l10n('cat_security'),188 'url' => $opt_link.'status'189 )190 186 ); 191 187 192 188 if ($conf['allow_random_representative']) 193 189 { 194 $ page['tabsheet']['representative'] =190 $tabsheet['representative'] = 195 191 array 196 192 ( … … 199 195 ); 200 196 } 201 $ page['tabsheet'][$page['section']]['selected'] = true;197 $tabsheet[$page['section']]['selected'] = true; 202 198 203 199 // Assign tabsheet to template 204 template_assign_tabsheet(); 200 $template->assign( 201 array( 202 'tabsheet' => $tabsheet, 203 'TABSHEET_TITLE' => $tabsheet[$page['section']]['caption'] 204 ) 205 ); 205 206 206 207 // +-----------------------------------------------------------------------+ … … 237 238 AND site_id = 1 238 239 ;'; 239 $template->assign _vars(240 $template->assign( 240 241 array( 241 242 'L_SECTION' => l10n('cat_upload_title'), … … 258 259 WHERE commentable = \'false\' 259 260 ;'; 260 $template->assign _vars(261 $template->assign( 261 262 array( 262 263 'L_SECTION' => l10n('cat_comments_title'), … … 279 280 WHERE visible = \'false\' 280 281 ;'; 281 $template->assign _vars(282 $template->assign( 282 283 array( 283 284 'L_SECTION' => l10n('cat_lock_title'), … … 300 301 WHERE status = \'private\' 301 302 ;'; 302 $template->assign _vars(303 $template->assign( 303 304 array( 304 305 'L_SECTION' => l10n('cat_status_title'), … … 322 323 AND representative_picture_id IS NULL 323 324 ;'; 324 $template->assign _vars(325 $template->assign( 325 326 array( 326 327 'L_SECTION' => l10n('Representative'),
Note: See TracChangeset
for help on using the changeset viewer.