Changeset 21631 for extensions/AddInfo/admin/admin.php
- Timestamp:
- Mar 17, 2013, 1:08:24 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AddInfo/admin/admin.php
r9405 r21631 23 23 l10n('addinfo_explication'), 24 24 $my_base_url.'&tab=explication'); 25 $tabsheet->add('gestion', 26 l10n('Configuration'), 27 $my_base_url.'&tab=gestion'); 25 28 $tabsheet->select($page['tab']); 26 29 $tabsheet->assign(); … … 39 42 break; 40 43 44 case 'gestion': 45 46 global $conf; 47 48 $selected = $conf['AddInfo']; 49 $options['Author'] = l10n('Author'); 50 $options['datecreate'] = l10n('Created on'); 51 $options['datepost'] = l10n('Posted on'); 52 $options['Dimensions'] = l10n('Dimensions'); 53 $options['File'] = l10n('File'); 54 $options['Filesize'] = l10n('Filesize'); 55 $options['Tags'] = l10n('tags'); 56 $options['Categories'] = l10n('Albums'); 57 $options['Visits'] = l10n('Visits'); 58 $options['Average'] = l10n('Rating score'); 59 60 61 62 $template->assign( 63 'gestionA', 64 array( 65 'OPTIONS' => $options, 66 'SELECTED' => $selected 67 )); 68 69 70 if (isset($_POST['infoaddinfo'])) 71 { 72 conf_update_param('AddInfo', $_POST['infoaddinfo']); 73 $template->delete_compiled_templates(); 74 array_push($page['infos'], l10n('Your configuration settings are saved')); 75 76 $selected = $_POST['infoaddinfo']; 77 $template->assign( 78 'gestionA', 79 array( 80 'OPTIONS' => $options, 81 'SELECTED' => $selected 82 )); 83 } 84 break; 85 41 86 } 42 87
Note: See TracChangeset
for help on using the changeset viewer.