Nearly all the menu are here, some of them returns a HTML string, others echo directly the result.
More...
Go to the source code of this file.
|
| menu_acc_plan ($p_start=1) |
| Show the menu from the pcmn page.
|
|
| MenuAdmin () |
| show the menu for user/database management
|
|
Nearly all the menu are here, some of them returns a HTML string, others echo directly the result.
Definition in file user_menu.php.
◆ menu_acc_plan()
menu_acc_plan |
( |
| $p_start = 1 | ) |
|
Show the menu from the pcmn page.
- Parameters
-
$p_start | class start default=1 |
- Returns
- nothing
Definition at line 120 of file user_menu.php.
121{
123 $base=
"?ac=".$http->request(
'ac');
128 ?>
129 <ul class="tabs">
130 <li
class=
"<?php echo $class[$idx];$idx++; ?>"><A HREF=
"<?php echo $base.'&p_start=0'.$str_dossier; ?>">0 <?php echo
_(
' Hors Bilan')?></A></li>
131 <li
class=
"<?php echo $class[$idx];$idx++; ?>"><A HREF=
"<?php echo $base.'&p_start=1'.$str_dossier; ?>">1 <?php echo
_(
' Immobilisé')?></A></li>
132 <li
class=
"<?php echo $class[$idx];$idx++; ?>"><A HREF=
"<?php echo $base.'&p_start=2'.$str_dossier; ?>">2 <?php echo
_(
'Actif a un an au plus')?></A></li>
133 <li
class=
"<?php echo $class[$idx];$idx++; ?>"><A HREF=
"<?php echo $base.'&p_start=3'.$str_dossier; ?>">3 <?php echo
_(
'Stock et commande')?></A></li>
134 <li
class=
"<?php echo $class[$idx];$idx++; ?>"><A HREF=
"<?php echo $base.'&p_start=4'.$str_dossier; ?>">4 <?php echo
_(
'Compte tiers')?></A></li>
135 <li
class=
"<?php echo $class[$idx];$idx++; ?>"><A HREF=
"<?php echo $base.'&p_start=5'.$str_dossier; ?>">5 <?php echo
_(
'Financier')?></A></li>
136 <li
class=
"<?php echo $class[$idx];$idx++; ?>"><A HREF=
"<?php echo $base.'&p_start=6'.$str_dossier; ?>">6 <?php echo
_(
'Charges')?></A></li>
137 <li
class=
"<?php echo $class[$idx];$idx++; ?>"><A HREF=
"<?php echo $base.'&p_start=7'.$str_dossier; ?>">7 <?php echo
_(
'Produits')?></A></li>
138 <li
class=
"<?php echo $class[$idx];$idx++; ?>"><A HREF=
"<?php echo $base.'&p_start=8'.$str_dossier; ?>">8 <?php echo
_(
'Hors Comptabilité')?></A></li>
139 <li
class=
"<?php echo $class[$idx];$idx++; ?>"><A HREF=
"<?php echo $base.'&p_start=9'.$str_dossier; ?>">9 <?php echo
_(
'Hors Comptabilité')?></A></li>
140 </ul>
141<div
style=
"clear: both"></div>
142<?php
143}
_("actif, passif,charge,...")
References $base, $class, $http, $i, $idx, $p_start, $str_dossier, _, and style.
◆ MenuAdmin()
show the menu for user/database management
MenuAdmin
- Returns
- HTML code with the menu
Definition at line 32 of file user_menu.php.
33{
36
40 {
43 {
44 case 'user_mgt':
46 break;
47 case 'dossier_mgt':
49 break;
50 case 'modele_mgt':
52 break;
53 case 'audit_log':
55 break;
56 case 'restore':
58 break;
59 case 'upgrade':
61 break;
62 case 'info':
64 break;
65 }
66 }
67 if (!defined("MULTI")||(defined("MULTI")&&MULTI==1))
68 {
69 $tmp_item=array (
70 array(
"admin-noalyss.php?action=user_mgt",
_(
"Utilisateurs"),
_(
'Gestion des utilisateurs'),0),
71 array(
"admin-noalyss.php?action=dossier_mgt",
_(
"Dossiers"),
_(
'Gestion des dossiers'),1),
72 array(
"admin-noalyss.php?action=modele_mgt",
_(
"Modèles"),
_(
'Gestion des modèles'),2),
73 array(
"admin-noalyss.php?action=restore",
_(
"Restaure"),
_(
"Restaure une base de données"),3),
74 array(
"admin-noalyss.php?action=upgrade",
_(
"Installation"),
75 _(
"Installation Mise à jour du système et des bases de données"),5),
76 array(
"admin-noalyss.php?action=audit_log",
_(
"Audit"),
_(
"Utilisateurs qui se sont connectés"),4),
77 array("admin-noalyss.php?action=info",
78 _(
"Information système"),(
'Information à propos de votre installation'),6),
79 array(
"login.php",
_(
"Accueil"),
"",7),
80 array(
"logout.php",
_(
"Sortie"),
"",8)
81 );
82 if ( SYSINFO_DISPLAY == false ) {
83 $nb_item = count($tmp_item);
84 for (
$i=0;
$i<$nb_item;
$i++) {
85 if ($tmp_item[
$i][3] <> 6 ) {
86 $item[]=$tmp_item[
$i];
87 }
88 }
89 } else {
90 $item = $tmp_item;
91 }
92 }
93 else
94 {
95 $item=array (array(
"admin-noalyss.php?action=user_mgt",
_(
"Utilisateurs"),
_(
'Gestion des utilisateurs'),0),
96 array(
"admin-noalyss.php?action=audit_log",
_(
"Audit"),
_(
"Utilisateurs qui se sont connectés"),4),
97 array("admin-noalyss.php?action=info",
98 _(
"Information système"),(
'Information à propos de votre installation'),6),
99 array(
"login.php",
_(
"Accueil")),
100 array(
"logout.php",
_(
"Sortie"))
101 );
102
103 }
106}
ShowItem($p_array, $p_dir='V', $class="nav-item", $class_ref="nav-link", $default="", $p_extra="nav nav-pills nav-fill")
store the string which print the content of p_array in a table used to display the menu
$def
show a form for quick_writing
References $_REQUEST, $action, $def, $http, $i, $menu, _, and ShowItem().