Changeset 817 for trunk/admin/cat_options.php
- Timestamp:
- Aug 17, 2005, 4:25:38 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_options.php
r809 r817 31 31 } 32 32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php'); 33 33 34 // +-----------------------------------------------------------------------+ 34 35 // | modification registration | 35 36 // +-----------------------------------------------------------------------+ 37 36 38 // print '<pre>'; 37 39 // print_r($_POST); … … 130 132 } 131 133 } 134 132 135 // +-----------------------------------------------------------------------+ 133 136 // | template init | 134 137 // +-----------------------------------------------------------------------+ 135 $template->set_filenames(array('cat_options'=>'admin/cat_options.tpl')); 136 137 if (!isset($_GET['section'])) 138 { 139 $page['section'] = 'upload'; 140 } 141 else 142 { 143 $page['section'] = $_GET['section']; 144 } 145 138 139 $template->set_filenames( 140 array( 141 'cat_options' => 'admin/cat_options.tpl', 142 'double_select' => 'admin/double_select.tpl' 143 ) 144 ); 145 146 $page['section'] = isset($_GET['section']) ? $_GET['section'] : 'upload'; 146 147 $base_url = PHPWG_ROOT_PATH.'admin.php?page=cat_options&section='; 148 147 149 $template->assign_vars( 148 150 array( … … 154 156 ); 155 157 156 $template->assign_vars(array(strtoupper($page['section']).'_CLASS'=>'opened'));157 158 // +-----------------------------------------------------------------------+ 158 159 // | form display | … … 190 191 $template->assign_vars( 191 192 array( 192 'L_ CAT_TITLE' => $lang['cat_upload_title'],193 'L_SECTION' => $lang['cat_upload_title'], 193 194 'L_CAT_OPTIONS_TRUE' => $lang['authorized'], 194 195 'L_CAT_OPTIONS_FALSE' => $lang['forbidden'], … … 212 213 $template->assign_vars( 213 214 array( 214 'L_ CAT_TITLE' => $lang['cat_comments_title'],215 'L_SECTION' => $lang['cat_comments_title'], 215 216 'L_CAT_OPTIONS_TRUE' => $lang['authorized'], 216 217 'L_CAT_OPTIONS_FALSE' => $lang['forbidden'], … … 234 235 $template->assign_vars( 235 236 array( 236 'L_ CAT_TITLE' => $lang['cat_lock_title'],237 'L_SECTION' => $lang['cat_lock_title'], 237 238 'L_CAT_OPTIONS_TRUE' => $lang['unlocked'], 238 239 'L_CAT_OPTIONS_FALSE' => $lang['locked'], … … 256 257 $template->assign_vars( 257 258 array( 258 'L_ CAT_TITLE' => $lang['cat_status_title'],259 'L_SECTION' => $lang['cat_status_title'], 259 260 'L_CAT_OPTIONS_TRUE' => $lang['cat_public'], 260 261 'L_CAT_OPTIONS_FALSE' => $lang['cat_private'], … … 279 280 $template->assign_vars( 280 281 array( 281 'L_ CAT_TITLE' => l10n('Representative'),282 'L_SECTION' => l10n('Representative'), 282 283 'L_CAT_OPTIONS_TRUE' => l10n('singly represented'), 283 284 'L_CAT_OPTIONS_FALSE' => l10n('randomly represented'), … … 290 291 display_select_cat_wrapper($query_true,array(),'category_option_true'); 291 292 display_select_cat_wrapper($query_false,array(),'category_option_false'); 293 292 294 // +-----------------------------------------------------------------------+ 293 295 // | sending html code | 294 296 // +-----------------------------------------------------------------------+ 297 298 $template->assign_var_from_handle('DOUBLE_SELECT', 'double_select'); 295 299 $template->assign_var_from_handle('ADMIN_CONTENT', 'cat_options'); 296 300 ?>
Note: See TracChangeset
for help on using the changeset viewer.