Changeset 10480 for extensions/sobre/trunk
- Timestamp:
- Apr 18, 2011, 4:57:44 PM (14 years ago)
- Location:
- extensions/sobre/trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/sobre/trunk/admin/admin.inc.php
r10317 r10480 1 1 <?php 2 2 3 load_language('theme.lang', PHPWG_THEMES_PATH.' urbex/');3 load_language('theme.lang', PHPWG_THEMES_PATH.'sobre/'); 4 4 5 5 $options = array( … … 14 14 foreach ($options as $option) 15 15 { 16 $_POST[' urbx'][$option] = empty($_POST['urbx'][$option]) ? false : true;16 $_POST['sbre'][$option] = empty($_POST['sbre'][$option]) ? false : true; 17 17 } 18 18 19 19 $query = ' 20 20 UPDATE '.CONFIG_TABLE.' 21 SET value = "'.addslashes(serialize($_POST[' urbx'])).'"22 WHERE param = " Urbex"21 SET value = "'.addslashes(serialize($_POST['sbre'])).'" 22 WHERE param = "Sobre" 23 23 ;'; 24 24 pwg_query($query); … … 32 32 'theme_admin_content' => dirname(__FILE__) . '/admin.tpl')); 33 33 34 $template->assign(' urbx', unserialize($conf['Urbex']));34 $template->assign('sbre', unserialize($conf['Sobre'])); 35 35 36 36 $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content'); -
extensions/sobre/trunk/admin/admin.tpl
r10317 r10480 1 1 <div class="titrePage"> 2 <h2> Urbex</h2>2 <h2>Sobre</h2> 3 3 </div> 4 4 … … 10 10 <li> 11 11 <span class="property">{'Display page banner on home page'|@translate}</span> 12 <input type="checkbox" name=" urbx[home]" value="true" {if $urbx.home}checked="checked"{/if}>12 <input type="checkbox" name="sbre[home]" value="true" {if $sbre.home}checked="checked"{/if}> 13 13 </li> 14 14 <li> 15 15 <span class="property">{'Display page banner on categories pages'|@translate}</span> 16 <input type="checkbox" name=" urbx[categories]" value="true" {if $urbx.categories}checked="checked"{/if}>16 <input type="checkbox" name="sbre[categories]" value="true" {if $sbre.categories}checked="checked"{/if}> 17 17 </li> 18 18 <li> 19 19 <span class="property">{'Display page banner on picture page'|@translate}</span> 20 <input type="checkbox" name=" urbx[picture]" value="true" {if $urbx.picture}checked="checked"{/if}>20 <input type="checkbox" name="sbre[picture]" value="true" {if $sbre.picture}checked="checked"{/if}> 21 21 </li> 22 22 <li> 23 23 <span class="property">{'Display page banner on other pages'|@translate}</span> 24 <input type="checkbox" name=" urbx[other]" value="true" {if $urbx.other}checked="checked"{/if}>24 <input type="checkbox" name="sbre[other]" value="true" {if $sbre.other}checked="checked"{/if}> 25 25 </li> 26 26 </ul>
Note: See TracChangeset
for help on using the changeset viewer.