Changeset 14972 for extensions/PersoFooter/admin
- Timestamp:
- May 14, 2012, 6:42:14 PM (13 years ago)
- Location:
- extensions/PersoFooter/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PersoFooter/admin/admin.php
r11216 r14972 33 33 { 34 34 case 'gest': 35 36 $template->assign('gestA', 37 array('PFTBASE' => $conf['persoFooter'],)); 35 38 36 //charge Perso About37 $query = '38 select param,value39 FROM ' . CONFIG_TABLE . '40 WHERE param = "persoFooter"41 ;';42 $result = pwg_query($query);43 44 $row = mysql_fetch_array($result);45 46 $template->assign(47 'gestA',48 array(49 'PFTBASE' => $row['value'],50 ));51 52 53 //insértion de meta dans la table54 39 if (isset($_POST['submitpft'])) 55 40 { 56 $query = ' 57 UPDATE ' . CONFIG_TABLE . ' 58 SET value= \''.$_POST['perso_footer'].'\' 59 WHERE param = "persoFooter" 60 ;'; 61 $result = pwg_query($query); 62 63 $template->assign( 41 conf_update_param('persoFooter', $_POST['perso_footer']); 42 $template->assign( 64 43 'gestA', 65 array( 66 'PFTBASE' => stripslashes($_POST['perso_footer']), 67 )); 68 44 array('PFTBASE' => stripslashes($_POST['perso_footer']),)); 69 45 } 70 71 break; 72 73 // Tab help 46 break; 74 47 case 'help': 75 48 $template->assign( 76 49 'gestB', 77 array( 78 'meta'=>l10n('meta_name'), 79 )); 80 break; 81 50 array('meta'=>l10n('nul'),)); 51 break; 82 52 } 83 53 -
extensions/PersoFooter/admin/admin.tpl
r11216 r14972 7 7 <fieldset id="mainConf"> 8 8 <span class="property"> 9 <label for="pftperso">{'pft_perso'|@translate}</label> 9 <label for="pftperso">{'pft_perso'|@translate}</label><br><br> 10 10 </span> 11 11 <textarea rows="5" cols="50" class="description" name="perso_footer" id="perso_footer">{$gestA.PFTBASE}</textarea>
Note: See TracChangeset
for help on using the changeset viewer.