/**
  * Cette classe est un singleton
  * @return ActionsAdminDevises une instance de ActionsAdminDevises
  */
 public static function instance()
 {
     if (self::$instance === false) {
         self::$instance = new ActionsAdminDevises();
     }
     return self::$instance;
 }
Beispiel #2
0
        // Ajout éventuel d'une devise
        if (intval($_REQUEST['flag_ajouter']) != 0) {
            ActionsAdminDevises::instance()->ajouter(trim($ajout_nom), trim($ajout_taux), trim($ajout_symbole), trim($ajout_code));
        }
    } else {
        if ($action == "supprimer") {
            ActionsAdminDevises::instance()->supprimer($id);
        } else {
            if ($action == "refresh") {
                ActionsAdminDevises::instance()->refresh();
            }
        }
    }
    redirige("devise.php");
}
$devises = ActionsAdminDevises::instance()->lister();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<?php 
require_once "title.php";
?>

<script type="text/javascript">

	function confirmer_suppression() {
            return confirm("<?php 
echo trad('Supprimer définitivement cette devise ?', 'admin');
?>
Beispiel #3
0
<?php

require_once "auth.php";
require_once "../fonctions/divers.php";
if (!est_autorise("acces_configuration")) {
    exit;
}
$request = Symfony\Component\HttpFoundation\Request::createFromGlobals();
try {
    ActionsAdminDevises::getInstance()->action($request);
} catch (TheliaAdminException $e) {
    Tlog::error($e->getMessage());
}
?>
<!DOCTYPE html>
<html lang="fr">
    <head>
        <?php 
require_once "title.php";
?>
    </head>
<body>
<?php 
$menu = "configuration";
$breadcrumbs = Breadcrumb::getInstance()->getConfigurationList(trad('Gestion_devises', 'admin'));
require_once "entete.php";
?>
    <div class="row-fluid">
        <div class="span12">
            <h3>
                <?php