Subversion Repositories ALCASAR

Rev

Rev 703 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
593 stephane 1
<?php
2
/*
3
 
4
 
5
*/
703 stephane 6
/********************************************************************
7
*						FICHIERS REQUIS								*
8
*********************************************************************/
593 stephane 9
require_once('includes/defines.inc.php');
10
require_once(ALCASAR_ADMIN_PATH_INC.'/session.inc.php');
703 stephane 11
 
12
/********************************************************************
13
*				APPLIQUATION DES MISES A JOURS						*
14
*********************************************************************/
15
 
16
/********************************************************************
17
*						CHOIX DE LA LANGUE							*
18
*********************************************************************/
19
 
20
/********************************************************************
21
*	CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION			*
22
*********************************************************************/
23
 
24
/********************************************************************
25
*				TEST DES FICHIERS DE CONFIGURATION					*
26
*********************************************************************/
27
 
28
/********************************************************************
29
*				PARSING DES FICHIERS DE CONFIGURATION				*
30
*********************************************************************/
31
 
32
/********************************************************************
33
*						AFFICHAGE DE LA PAGE						*
34
*********************************************************************/
593 stephane 35
?><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
36
<html>
37
<head>
38
<title>Directories page</title>
703 stephane 39
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
596 stephane 40
<!-- include default CSS -->
593 stephane 41
<link rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/default.css" type="text/css">
596 stephane 42
<!-- include JQUERY UI CSS -->
43
<link type="text/css"  rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/ui-lightness/jquery-ui-1.8.10.custom.css">
720 stephane 44
<!-- include tablesorter CSS -->
45
<link type="text/css"  rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/tablesorter-blue/style.css">
596 stephane 46
<!-- include custom page CSS -->
47
<style type="text/css">
48
 
49
</style>
50
<!-- include JQUERY -->
51
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-1.5.min.js"></script>
52
<!-- include JQUERY UI -->
53
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-ui-1.8.10.all.min.js"></script>
720 stephane 54
<script type="text/javascript" language="javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery.tablesorter.min.js"></script>
55
<script type="text/javascript" language="javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery.tablesorter.pager.js"></script>
596 stephane 56
<!-- include page javascript -->
57
<script type="text/javascript">
720 stephane 58
	var table_data_lang = {
59
		"sProcessing": "Patientez...",
60
		"sLengthMenu": "Afficher _MENU_ enregistrements",
61
		"sZeroRecords": "Aucun enregistrement disponible.",
62
		"sInfo": "_START_ à _END_ sur _TOTAL_ enregistrements",
63
		"sInfoEmpty": "0 à 0 sur 0 enregistrement",
64
		"sInfoFiltered": "(Filtré à partir de _MAX_  enregistrements)",
65
		"sInfoPostFix": "",
66
		"sSearch": "Recherche : ",
67
		"sUrl": "",
68
		"oPaginate": {
69
			"sFirst":    "Première page",
70
			"sPrevious": "Page précédente",
71
			"sNext":     "Page suivante",
72
			"sLast":     "Dernière page"
73
		}
74
	};
75
 
76
	$(document).ready(function(){
77
		// buttons
78
		$( "button, input:submit, input:button, input:reset").button();
79
		// Directories table		
80
		$('#directories_table').dataTable(
81
		{
82
			// fonction suivante permet d'avoir une colone numérotée dynamiquement (non triable)
83
			"fnDrawCallback": function ( oSettings ) {
84
				/* Need to redo the counters if filtered or sorted */
85
				if ( oSettings.bSorted || oSettings.bFiltered )
86
				{
87
					for ( var i=0, iLen=oSettings.aiDisplay.length ; i<iLen ; i++ )
88
					{
89
						$('td:eq(0)', oSettings.aoData[ oSettings.aiDisplay[i] ].nTr ).html( i+1 );
90
					}
91
				}
92
			},
93
			"aoColumnDefs": [
94
				{ "bSortable": false, "aTargets": [ 0 ] }
95
			],
96
			"aaSorting": [[ 1, 'asc' ]]
97
			//fin 			
98
			,"oLanguage": table_data_lang
99
		});
100
	});
596 stephane 101
</script>
593 stephane 102
</head>
596 stephane 103
<body>
720 stephane 104
	<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
105
		<span class="ui-dialog-title" id="ui-dialog-title-dialog">DIRECTORIES PAGE</span>
106
	</div>
107
	<br />
108
	Page de configuration des annuaires de comptes (usagers/groupes). Par défaut annuaire local (MYSQL). Possibilité d'ajouter 1 ou plusieurs annuaire LDAP (LDAP standart ou AD).<br />
109
	Possibilité d'utiliser un annuaire active directorie en mode natif (samba/kerberos).<br />
110
	<font color="red">Fonctions prochainement disponibles.</font><br />
111
	<div style="float:right;">
112
		<form name="newDirectorieform">
113
			<input type="button" value="Nouvel annuaire">
114
		</form>
115
	</div>
116
	<br><br><br>
117
	<div>
118
	<table id="directories_table" cellspacing="1" class="tablesorter" border="0" width="100%">
119
		<thead>
120
			<tr>
121
				<th width="20">#</th><th width="200">Nom</th><th width="100">Type</th><th>Description</th>
122
			</tr>
123
		</thead>
124
		<tfoot>
125
			<tr>
126
				<th width="20">#</th><th width="200">Nom</th><th width="100">Type</th><th>Description</th>
127
			</tr>
128
		</tfoot>
129
		<tbody>
130
		<tr><td>1</td><td>Local</td><td>Local</td><td>Annuaire de comptes par défaut</td></tr>
131
		<?php
132
		/*
133
		foreach ($groups as $group){
134
			echo "<tr><td></td><td>".$group['name']."</td><td>".$group['nb_users']."</td><td><font color=red>ND</font></td></tr>";
135
		}
136
		*/
137
		?>
138
		</tbody>
139
	</table>
140
	</div>
593 stephane 141
</body>
142
</html>