Files
le-matelot/client/plugins/paybox/paybox_admin.php
2020-01-27 08:56:08 +01:00

75 lines
1.6 KiB
PHP

<?php
include_once realpath(dirname(__FILE__)) . '/../../../fonctions/authplugins.php';
autorisation('paybox');
include_once realpath(dirname(__FILE__)) . '/Paybox.class.php';
$paybox = new Paybox();
switch($action){
case 'modifier':
$paybox->modifyAll();
break;
}
$listes = $paybox->charger_admin(array('PBX_HASH','PBX_RETOUR'));
?>
<p>
<a href="accueil.php">Accueil </a><i class="icon-chevron-right"></i>
<a href="module_liste.php">Modules</a><i class="icon-chevron-right"></i>
<a href="module.php?nom=paybox">Paybox</a>
</p>
<div class="row-fluid">
<div class="span12">
<div class="bigtable">
<h2>
Paybox
</h2>
<form method="post" id="formulaire_paybox" action="module.php?nom=paybox">
<input type="hidden" name="action" value="modifier">
<button class="btn btn-large btn-block btn-primary" type="submit">VALIDER LES MODIFICATIONS</button>
<table class="table table-striped">
<thead>
<tr>
<th class="span4">
Description
</th>
<th class="span8">
Valeur
</th>
</tr>
</thead>
<tbody>
<?php foreach($listes as $liste): ?>
<tr>
<td>
<?php
if(!empty($liste->description)){
echo $liste->description;
}else{
echo $liste->key;
}
?>
</td>
<td>
<input class="span12" type="text" name="value_<?php echo $liste->key; ?>" value="<?php echo $liste->value; ?>">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<button class="btn btn-large btn-block btn-primary" type="submit">VALIDER LES MODIFICATIONS</button>
</form>
</div>
</div>
</div>