-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
21 lines (20 loc) · 732 Bytes
/
Copy pathconfig.php
File metadata and controls
21 lines (20 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php if(!defined('PLX_ROOT')) exit; ?>
<?php
if(!empty($_POST)) {
$plxPlugin->setParam('mnuName', $_POST['mnuName'], 'string');
$plxPlugin->setParam('template', $_POST['template'], 'string');
$plxPlugin->saveParams();
header('Location: parametres_plugin.php?p=mcatalogue');
exit;
}
?>
<h2>Configuration</h2>
<p>Paramètres du catalogue</p>
<form action="parametres_plugin.php?p=mcatalogue" method="post">
Nom : <input type="text" name="mnuName" value="<?php echo
plxUtils::strCheck($plxPlugin->getParam('mnuName')) ?>" /><br />
Template : <input type="text" name="template" value="<?php echo
plxUtils::strCheck($plxPlugin->getParam('template')) ?>" /><br />
<br />
<input type="submit" name="submit" value="Enregistrer" />
</form>