Changeset 10337 for extensions/PHP_Optimisateur/include/setup.php
- Timestamp:
- Apr 12, 2011, 7:45:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PHP_Optimisateur/include/setup.php
r9276 r10337 27 27 $CONF['copyCOLOR'] = nice_hex_color($CONF['copyCOLOR']); 28 28 29 $PAGE _CONTENT[0] .= '<form action="index.php?page=setup" method="post">29 $PAGE['content'] .= '<form action="index.php?page=setup" method="post"> 30 30 <div class="generic config"> 31 31 <h2>'.l10n('Configuration').'</h2> … … 212 212 213 213 foreach ($CONF['Plugins'] as $plugin_id => $plugin_config) { 214 $PAGE _CONTENT[0] .= '<li>214 $PAGE['content'] .= '<li> 215 215 <div class="plugin-title"> 216 216 <span class="title">'.$plugin_config['name'].' :</span> … … 220 220 // Cas spéciaux dans le titre (nouveau, manquant) 221 221 if (isset($NewPlugins[$plugin_id])) { 222 $PAGE _CONTENT[0] .= ' <b class="new">'.l10n('New !').'</b>';222 $PAGE['content'] .= ' <b class="new">'.l10n('New !').'</b>'; 223 223 } else if (isset($MissingPlugins[$plugin_id])) { 224 $PAGE _CONTENT[0] .= ' <b class="miss">'.l10n('Missing !').'</b>';224 $PAGE['content'] .= ' <b class="miss">'.l10n('Missing !').'</b>'; 225 225 } 226 226 227 227 // Si il est manquant on ne met que la checkbox de suppression, sinon boutons d'activation 228 $PAGE _CONTENT[0] .= '<span class="plugin-active">';228 $PAGE['content'] .= '<span class="plugin-active">'; 229 229 if (isset($MissingPlugins[$plugin_id])) { 230 $PAGE _CONTENT[0] .= '<label><input type="checkbox" name="Plugins['.$plugin_id.'][delete]" value="true" checked="checked"/> '.l10n('erase').'</label>';230 $PAGE['content'] .= '<label><input type="checkbox" name="Plugins['.$plugin_id.'][delete]" value="true" checked="checked"/> '.l10n('erase').'</label>'; 231 231 } else { 232 $PAGE _CONTENT[0] .= '<input type="radio" id="" id="active-'.$plugin_id.'" name="Plugins['.$plugin_id.'][active]" value="true" '.(($plugin_config['active'])?'checked="checked"':'').'/>232 $PAGE['content'] .= '<input type="radio" id="" id="active-'.$plugin_id.'" name="Plugins['.$plugin_id.'][active]" value="true" '.(($plugin_config['active'])?'checked="checked"':'').'/> 233 233 <label for="active-'.$plugin_id.'">'.l10n('Active').'</label> 234 234 <input type="radio" id="" id="inactive-'.$plugin_id.'"name="Plugins['.$plugin_id.'][active]" value="false" '.((!$plugin_config['active'])?'checked="checked"':'').'/> 235 235 <label for="inactive-'.$plugin_id.'">'.l10n('Inactive').'</label>'; 236 236 } 237 $PAGE _CONTENT[0] .= '</span>237 $PAGE['content'] .= '</span> 238 238 239 239 </div>'; … … 244 244 include('plugins/'.$plugin_id.'/setup.php'); 245 245 } 246 $PAGE _CONTENT[0] .= '</li>';246 $PAGE['content'] .= '</li>'; 247 247 } 248 248 249 $PAGE _CONTENT[0] .= '</ul>249 $PAGE['content'] .= '</ul> 250 250 </div>'; 251 251 252 252 253 $PAGE _CONTENT[2] .= '<div class="generic link">254 <input type="submit" value="'.l10n('Valid').'"/>253 $PAGE['end'] .= '<div class="generic link"> 254 <input type="submit" name="submit" value="'.l10n('Valid').'"/> 255 255 <input type="reset" onclick="location.href=\'index.php\'" value="'.l10n('Back').'"/> 256 256 </div>
Note: See TracChangeset
for help on using the changeset viewer.