Subversion Repositories ALCASAR

Rev

Rev 591 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 591 Rev 592
Line 1... Line 1...
1
<?php
1
<?php
2
/*
2
/*
-
 
3
Alcasar 2.x
-
 
4
written by steweb57
3
 
5
*/
4
 
6
/*
-
 
7
TODO :
-
 
8
- finir la traduction
-
 
9
- sortir le CSS
5
*/
10
*/
6
require_once('includes/defines.inc.php');
11
require_once('includes/defines.inc.php');
7
require_once(ALCASAR_ADMIN_PATH_INC.'/session.inc.php');
12
require_once(ALCASAR_ADMIN_PATH_INC.'/session.inc.php');
-
 
13
 
-
 
14
# Choice of language
-
 
15
$Language = 'en';
-
 
16
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
-
 
17
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
-
 
18
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
-
 
19
if($Language == 'fr'){
-
 
20
	require_once(ALCASAR_ADMIN_PATH_LANG.'/fr/menu.lang.php');
-
 
21
}
-
 
22
else {
-
 
23
	require_once(ALCASAR_ADMIN_PATH_LANG.'/en/menu.lang.php');
-
 
24
}
-
 
25
 
8
?>
26
?>
9
MENU
-
 
10
 
27
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
-
 
28
   "http://www.w3.org/TR/html4/loose.dtd">
-
 
29
<!--DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0"-->
-
 
30
<html>
-
 
31
<!-- written by steweb57 ! -->
-
 
32
<head>
-
 
33
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-
 
34
<title>menu</title>
-
 
35
<link rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/default.css" type="text/css">
-
 
36
<style type="text/css">
-
 
37
 
-
 
38
#menu {
-
 
39
	//float:left;
-
 
40
	width:200px;
-
 
41
	height:600px;
-
 
42
	/*background-color:#FF6699;*/
-
 
43
		margin-left: auto; 
-
 
44
  margin-right: auto;
-
 
45
}
-
 
46
</style>
-
 
47
<style type="text/css">
-
 
48
	/*demo page css*/
-
 
49
	/*
-
 
50
	body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 0px;}
-
 
51
			
-
 
52
	.demoHeaders { margin-top: 2em; }
-
 
53
	#dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
-
 
54
	#dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
-
 
55
	ul#icons {margin: 0; padding: 0;}
-
 
56
	ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left;  list-style: none;}
-
 
57
	ul#icons span.ui-icon {float: left; margin: 0 4px;}
-
 
58
		*/	
-
 
59
</style>
-
 
60
<link type="text/css" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" />	
-
 
61
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-1.5.min.js"></script>
-
 
62
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-ui-1.8.10.all.min.js"></script>
-
 
63
 
-
 
64
<script type="text/javascript">
-
 
65
			$(function(){
-
 
66
			
-
 
67
				$("a").attr("target", "content");
-
 
68
 
-
 
69
				// Accordion
-
 
70
				$("#accordion").accordion({
-
 
71
					header: "h3",
-
 
72
					autoHeight: false
-
 
73
				});
-
 
74
				$("#accordion").accordion("activate" , 0 );
-
 
75
				
-
 
76
				$("#accordion-aide").accordion({
-
 
77
					header: "h3",
-
 
78
					autoHeight: false,
-
 
79
					navigation: true
-
 
80
				});
-
 
81
				$("#accordion-acces").accordion({
-
 
82
					header: "h3",
-
 
83
					autoHeight: false,
-
 
84
					navigation: true
-
 
85
				});
-
 
86
			});
-
 
87
</script>
-
 
88
</head>
-
 
89
<body>
-
 
90
 
-
 
91
<div id="menu">
-
 
92
	<div id="accordion">
-
 
93
		<div>
-
 
94
			<h3><a href="#"><?php echo $l_home; ?></a></h3>
-
 
95
			<div>
-
 
96
			<a href="welcome.php">Accueil</a>
-
 
97
			</div>
-
 
98
		</div>
-
 
99
		<div>
-
 
100
			<h3><a href="#"><?php echo $l_system; ?></a></h3>
-
 
101
			<div>
-
 
102
				<a href="welcome.php">Configuration</a><br />
-
 
103
				<a href="welcome.php">Services</a><br />
-
 
104
				<a href="welcome.php"><?php echo $l_network; ?></a><br />
-
 
105
				<a href="welcome.php"><?php echo $l_activity; ?></a><br />
-
 
106
				<a href="welcome.php">Annuaires</a>
-
 
107
			</div>
-
 
108
		</div>
-
 
109
		<div>
-
 
110
			<h3><a href="#"><?php echo $l_auth; ?></a></h3>
-
 
111
			<div>
-
 
112
				<a href="welcome.php"><?php echo $l_menu_users; ?></a><br />
-
 
113
				<a href="welcome.php"><?php echo $l_menu_groups; ?></a><br />
-
 
114
				<a href="welcome.php"><?php echo $l_menu_admins; ?></a><br />
-
 
115
				<!--
-
 
116
				<a href="manager/htdocs/user_new.php"><?php echo $l_create_user; ?></a><br />
-
 
117
				<a href="manager/htdocs/find.php"><?php echo $l_edit_user; ?></a><br />
-
 
118
				<a href="manager/htdocs/group_new.php"><?php echo $l_create_group; ?></a><br />
-
 
119
				<a href="manager/htdocs/show_groups.php"><?php echo $l_edit_group; ?></a><br />
-
 
120
				-->
-
 
121
				<a href="welcome.php"><?php echo $l_import_empty; ?></a><br />
-
 
122
				<a href="welcome.php">Exceptions</a>
-
 
123
			</div>
-
 
124
		</div>
-
 
125
		<div>
-
 
126
			<h3><a href="#"><?php echo $l_filter; ?></a></h3>
-
 
127
			<div>
-
 
128
				<a href="welcome.php"><?php echo $l_domains_filter; ?></a>
-
 
129
				<a href="welcome.php"><?php echo $l_network; ?></a><br />
-
 
130
			</div>
-
 
131
		</div>
-
 
132
		<div>
-
 
133
			<h3><a href="#"><?php echo $l_statistics; ?></a></h3>
-
 
134
			<div>
-
 
135
				<a href="welcome.php"><?php echo $l_stat_user_day; ?></a><br />
-
 
136
				<a href="welcome.php"><?php echo $l_stat_con; ?></a><br />
-
 
137
				<a href="welcome.php"><?php echo $l_stat_daily; ?></a><br />
-
 
138
				<a href="welcome.php"><?php echo $l_stat_web; ?></a><br />
-
 
139
				<a href="welcome.php"><?php echo $l_firewall; ?></a>
-
 
140
			</div>
-
 
141
		</div>
-
 
142
		<div>
-
 
143
			<h3><a href="#"><?php echo $l_backup; ?></a></h3>
-
 
144
			<div>
-
 
145
				<a href="welcome.php"><?php echo $l_backup; ?></a><br />
-
 
146
			</div>
-
 
147
		</div>
-
 
148
	</div>
-
 
149
	<br />
-
 
150
	<div id="accordion-aide">
-
 
151
		<div>
-
 
152
			<h3><a href="#">Documentations</a></h3>
-
 
153
			<div>
-
 
154
				<a href="docs/alcasar-2.1-presentation.pdf">Présentation</a><br />
-
 
155
				<a href="docs/alcasar-2.1-installation.pdf">Installation</a><br />
-
 
156
				<a href="docs/alcasar-2.1-exploitation.pdf">Exploitation</a><br />
-
 
157
			</div>
-
 
158
		</div>
-
 
159
	</div>
-
 
160
	<br />
-
 
161
	<div id="accordion-acces">
-
 
162
		<div>
-
 
163
			<h3><a href="#"><?php echo $l_access_nb; ?></a></h3>
-
 
164
			<div>
-
 
165
			<?				// Compteur d'accès
-
 
166
		$name_fic="compteur.txt";
-
 
167
						// Recuperation du nombre de visite
-
 
168
		if (($fp=fopen($name_fic,"r")) == false) exit;
-
 
169
		$nb=fgets($fp,10);
-
 
170
		fclose($fp);
-
 
171
		$nb+=1;
-
 
172
		printf("%d", $nb);
-
 
173
						// Ecriture du nombre de visite
-
 
174
		if (($fp=fopen($name_fic,"w")) == false) exit;
-
 
175
		fputs($fp, "$nb\n");
-
 
176
		fclose($fp);
-
 
177
		?>	
-
 
178
			<br>depuis le 08/10/2010<br>
-
 
179
			</div>
-
 
180
		</div>
-
 
181
	</div>
-
 
182
</div>
-
 
183
 
11

Generated by GNU Enscript 1.6.6.
184

Generated by GNU Enscript 1.6.6.