plxPlugins->callHook('AdminStaticsPrepend')); # Control de l'accès à la page en fonction du profil de l'utilisateur connecté $plxAdmin->checkProfil(PROFIL_ADMIN, PROFIL_MANAGER); # On édite les pages statiques if(!empty($_POST)) { if(isset($_POST['homeStatic'])) $plxAdmin->editConfiguration($plxAdmin->aConf, array('homestatic'=>$_POST['homeStatic'][0])); else $plxAdmin->editConfiguration($plxAdmin->aConf, array('homestatic'=>'')); $plxAdmin->editStatiques($_POST); header('Location: statiques.php'); exit; } # On inclut le header include(dirname(__FILE__).'/top.php'); ?>

L_FOR_SELECTION, 'delete' =>L_DELETE), '', false, 'no-margin', 'id_selection') ?>    
plxPlugins->callHook('AdminStaticsTop')) # Hook Plugins ?>
aStats) { foreach($plxAdmin->aStats as $k=>$v) { # Pour chaque page statique $ordre = ++$num; echo ''; echo ''; echo ''; } elseif($v['url'][0]=='?') echo ''; else echo ''; } # On récupère le dernier identifiant $a = array_keys($plxAdmin->aStats); rsort($a); } else { $a['0'] = 0; } $new_staticid = str_pad($a['0']+1, 3, "0", STR_PAD_LEFT); ?>
'.$k.''; $selected = $plxAdmin->aConf['homestatic']==$k ? ' checked="checked"' : ''; echo ''; echo ''; plxUtils::printInput($k.'_group', plxUtils::strCheck($v['group']), 'text', '10-100'); echo ''; plxUtils::printInput($k.'_name', plxUtils::strCheck($v['name']), 'text', '10-255'); echo ''; plxUtils::printInput($k.'_url', $v['url'], 'text', '10-255'); echo ''; plxUtils::printSelect($k.'_active', array('1'=>L_YES,'0'=>L_NO), $v['active']); echo ''; plxUtils::printInput($k.'_ordre', $ordre, 'text', '1-3'); echo ''; plxUtils::printSelect($k.'_menu', array('oui'=>L_DISPLAY,'non'=>L_HIDE), $v['menu']); if(!plxUtils::checkSite($v['url'])) { echo ''; echo ''.L_STATICS_SRC.''; if($v['active']) { echo '  '.L_VIEW.''; } echo '
'.L_VIEW.'
'.L_VIEW.'
  '; plxUtils::printInput($new_staticid.'_group', '', 'hidden', '10-100'); echo ' '; echo ''; plxUtils::printInput($new_staticid.'_name', '', 'text', '10-255'); plxUtils::printInput($new_staticid.'_template', 'static.php', 'hidden'); echo ''; plxUtils::printInput($new_staticid.'_url', '', 'text', '10-255'); echo ''; plxUtils::printSelect($new_staticid.'_active', array('1'=>L_YES,'0'=>L_NO), '0'); echo ''; plxUtils::printInput($new_staticid.'_ordre', ++$num, 'text', '1-3'); echo ''; plxUtils::printSelect($new_staticid.'_menu', array('oui'=>L_DISPLAY,'non'=>L_HIDE), '1'); ?>  
plxPlugins->callHook('AdminStaticsFoot')); # On inclut le footer include(dirname(__FILE__).'/foot.php'); ?>