forked from mtawaf/PMB
/
demandes.php
executable file
·67 lines (56 loc) · 1.94 KB
/
demandes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: demandes.php,v 1.3 2014-01-13 08:07:15 arenou Exp $
// définition du minimum nécéssaire
$base_path=".";
$base_auth = "DEMANDES_AUTH";
$base_title = "\$msg[demandes_menu_title]";
require_once ("$base_path/includes/init.inc.php");
// modules propres à demandes.php ou à ses sous-modules
require("$include_path/templates/demandes.tpl.php");
require("$include_path/templates/demandes_actions.tpl.php");
require("$include_path/templates/demandes_notes.tpl.php");
require_once($class_path."/liste_simple.class.php");
print "<div id='att' style='z-Index:1000'></div>";
print $menu_bar;
print $extra;
print $extra2;
print $extra_info;
if($use_shortcuts) {
include("$include_path/shortcuts/circ.sht");
}
echo window_title($database_window_title.$msg[demandes_menu].$msg[1003].$msg[1001]);
print $demandes_layout;
$nb_themes = demandes_themes::get_qty();
$nb_types = demandes_types::get_qty();
if(!$nb_themes || !$nb_types) {
//Pas de themes ou de types définis
$error_msg.= htmlentities($msg["demandes_err_theme_type"],ENT_QUOTES, $charset)."<div class='row'></div>";
error_message($msg[321], $error_msg.htmlentities($msg["demandes_err_par"],ENT_QUOTES, $charset), '1', './admin.php?categ=demandes');
} else {
switch($categ){
case 'gestion':
include("./demandes/demandes.inc.php");
break;
case 'list' :
include("./demandes/demandes_liste.inc.php");
break;
case 'action' :
include("./demandes/demandes_actions.inc.php");
break;
case 'notes' :
include("./demandes/demandes_notes.inc.php");
break;
default :
include("$include_path/messages/help/$lang/demandes.txt");
break;
}
}
print $demandes_layout_end;
// pied de page
print $footer;
// deconnection MYSql
mysql_close($dbh);
?>