- Timestamp:
- Sep 5, 2004, 10:49:31 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r516 r517 47 47 $textfield = array('type' => 'textfield'); 48 48 49 $nb_image_row = array(); 50 foreach ($conf['nb_image_row'] as $value) 51 { 52 $nb_image_row[$value] = $value; 53 } 54 55 $nb_row_page = array(); 56 foreach ($conf['nb_row_page'] as $value) 57 { 58 $nb_row_page[$value] = $value; 59 } 60 49 61 $sections = array( 50 62 'general' => array( … … 61 73 'show_comments' => $true_false, 62 74 'comments_forall' => $true_false, 63 'nb_comment_page' => $textfield,75 'nb_comment_page' => array('type' => 'textfield','size' => 2), 64 76 'comments_validation' => $true_false 65 77 ), … … 67 79 'default_language' => array('type' => 'select', 68 80 'options' => get_languages()), 69 'nb_image_line' => $textfield,70 'nb_line_page' => $textfield,81 'nb_image_line' => array('type' => 'radio','options' => $nb_image_row), 82 'nb_line_page' => array('type' => 'radio','options' => $nb_row_page), 71 83 'default_template' => array('type' => 'select', 72 84 'options' => get_templates()), 73 'recent_period' => $textfield,85 'recent_period' => array('type' => 'textfield','size' => 3), 74 86 'auto_expand' => $true_false, 75 87 'show_nb_comments' => $true_false … … 77 89 'upload' => array( 78 90 'upload_available' => $true_false, 79 'upload_maxfilesize' => $textfield,80 'upload_maxwidth' => $textfield,81 'upload_maxheight' => $textfield,82 'upload_maxwidth_thumbnail' => $textfield,83 'upload_maxheight_thumbnail' => $textfield91 'upload_maxfilesize' => array('type' => 'textfield','size' => 4), 92 'upload_maxwidth' => array('type' => 'textfield','size' => 4), 93 'upload_maxheight' => array('type' => 'textfield','size' => 4), 94 'upload_maxwidth_thumbnail' => array('type' => 'textfield','size' => 4), 95 'upload_maxheight_thumbnail' => array('type' => 'textfield','size' => 4) 84 96 ), 85 97 'session' => array( 86 98 'authorize_cookies' => $true_false, 87 'session_time' => $textfield,88 'session_id_size' => $textfield99 'session_time' => array('type' => 'textfield','size' => 2), 100 'session_id_size' => array('type' => 'textfield','size' => 2) 89 101 ), 90 102 'metadata' => array( … … 263 275 if ($field['type'] == 'textfield') 264 276 { 277 if (isset($field['size'])) 278 { 279 $size = $field['size']; 280 } 281 else 282 { 283 $size = ''; 284 } 285 265 286 $template->assign_block_vars( 266 287 'line.textfield', 267 288 array( 268 289 'NAME' => $field_name, 269 'VALUE' => $conf[$field_name] 290 'VALUE' => $conf[$field_name], 291 'SIZE' => $size 270 292 )); 271 293 } -
trunk/template/default/admin/configuration.tpl
r512 r517 31 31 32 32 <!-- BEGIN textfield --> 33 <input type="text" size="{line.textfield.SIZE}" name="{line.textfield.NAME}" value="{line.textfield.VALUE}" />33 <input type="text" size="{line.textfield.SIZE}" maxlength="{line.textfield.SIZE}" name="{line.textfield.NAME}" value="{line.textfield.VALUE}" /> 34 34 <!-- END textfield --> 35 35
Note: See TracChangeset
for help on using the changeset viewer.