source: pmb4.2/trunk/fuentes/pmb/admin/param/main.inc.php @ 815

Last change on this file since 815 was 815, checked in by jrpelegrina, 5 years ago

Initial release of pmb 4.2

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1<?php
2// +-------------------------------------------------+
3// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
4// +-------------------------------------------------+
5// $Id: main.inc.php,v 1.12 2015-04-03 11:16:28 jpermanne Exp $
6
7if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) die("no access");
8
9require('./admin/param/param_func.inc.php');
10
11$admin_layout = str_replace('!!menu_sous_rub!!', $msg[1600], $admin_layout);
12print $admin_layout;
13               
14print "<div class='row'>";
15echo window_title($database_window_title.$msg[1600].$msg[1003].$msg[1001]);
16               
17switch($action) {
18        case 'modif':
19                include("./admin/param/param_modif.inc.php");
20                break;
21        case 'update':
22                $requete = "update parametres set "; 
23                $requete .= "valeur_param='$form_valeur_param', ";
24                $requete .= "comment_param='$comment_param' ";
25                $requete .= "where id_param='$form_id_param' ";
26                $res = @pmb_mysql_query($requete, $dbh);
27                show_param($dbh);
28                break;
29        case 'add':
30                param_form();
31                break;
32        default:
33                show_param($dbh);
34                break;
35        }
36
37print "</div>";
Note: See TracBrowser for help on using the repository browser.