Esempio n. 1
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: param_modif.inc.php,v 1.9 2015-04-03 11:16:28 jpermanne Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
$requete = "SELECT * FROM parametres WHERE id_param='{$id_param}' and gestion=0 ";
$res = pmb_mysql_query($requete, $dbh);
$nbr = pmb_mysql_num_rows($res);
$param_default = "<tr><td colspan='2' align='left'><hr />" . $param_user . "<hr />" . $deflt_user . "</td></tr>";
if ($nbr) {
    $params = pmb_mysql_fetch_object($res);
    param_form($params->id_param, $params->type_param, $params->sstype_param, $params->valeur_param, $params->comment_param);
}
Esempio n. 2
0
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: main.inc.php,v 1.12 2015-04-03 11:16:28 jpermanne Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require './admin/param/param_func.inc.php';
$admin_layout = str_replace('!!menu_sous_rub!!', $msg[1600], $admin_layout);
print $admin_layout;
print "<div class='row'>";
echo window_title($database_window_title . $msg[1600] . $msg[1003] . $msg[1001]);
switch ($action) {
    case 'modif':
        include "./admin/param/param_modif.inc.php";
        break;
    case 'update':
        $requete = "update parametres set ";
        $requete .= "valeur_param='{$form_valeur_param}', ";
        $requete .= "comment_param='{$comment_param}' ";
        $requete .= "where id_param='{$form_id_param}' ";
        $res = @pmb_mysql_query($requete, $dbh);
        show_param($dbh);
        break;
    case 'add':
        param_form();
        break;
    default:
        show_param($dbh);
        break;
}
print "</div>";