noalyss Version-9
ajax_navigator.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * NOALYSS is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * NOALYSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with NOALYSS; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19*/
20
21// Copyright Author Dany De Bontridder dany@alchimerys.be
22 /**
23 *@file
24 *@brief display the navigator
25 */
26
27if ( ! defined ('ALLOWED')) die('Appel direct ne sont pas permis');
28echo HtmlInput::title_box(_("Navigateur"), "navi_div");
30 select distinct code, me_code,me_description,coalesce(me_description_etendue,me_description) as me_description_etendue,v1menu,v2menu,v3menu,p_type_display,
31 javascript
32 from
33 v_menu_description
34 where user_name=$1
35 order by 2 ";
36
37$a_menu=$cn->get_array($sql,array($_SESSION[SESSION_KEY.'g_user']));
38
39?>
40<div class="content">
41 <p>
42 <?php echo _("Vous permet d'accèder rapidement au menu qui vous intéresse, utiliser le filtre pour trouver plus rapidement")?>
43 </p>
44 <p style='margin-left: 5%'>
45 <?php
46 echo _("Cherche")." ".HtmlInput::filter_table("navi_tb", "0,1,2", '1');
47 ?>
48 </p>
49 <table id="navi_tb" class="sortable" >
50 <tr>
51 <th class='sorttable_sorted'>
52 Code AD
53 <?php echo Icon_Action::infobulle(34); ?>
54 </th>
55 <th>
56 <?php echo _("Chemin");?>
57 <?php echo Icon_Action::infobulle(35); ?>
58 </th>
59 <th>
60 <?php echo _("Description complète");?>
61 </th>
62 <th>
63 <?php echo _("Aide sur le wiki");?>
64 </th>
65 </tr>
66<?php
68$url="do.php?gDossier=".dossier::id();
69for ($i=0;$i<$nMax;$i++):
70?>
71 <tr>
72 <td>
73 <?php
74 if ( $a_menu[$i]['javascript'] == "" ) :
75 ?>
76 <a class='mtitle' style='text-decoration: underline' href="<?php echo $url."&ac=".$a_menu[$i]['code']; ?>" target='_blank'>
77 <?php else :
78 $js= str_replace('<DOSSIER>', Dossier::id(), $a_menu[$i]['javascript']);
79 ?>
80 <a class='mtitle' style='text-decoration: underline' href="javascript:void(0)"
81 onclick="<?php echo $js ?>">
82 <?php endif; ?>
83 <?php echo _($a_menu[$i]['me_code']); ?>
84 </a>
85 </td>
86 <td>
87 <?php
88 if ( $a_menu[$i]['javascript'] == "" ) :
89 ?>
90 <a class='mtitle' style='text-decoration: underline' href="<?php echo $url."&ac=".$a_menu[$i]['code']; ?>" target='_blank'>
91 <?php else :
92 $js= str_replace('<DOSSIER>', Dossier::id(), $a_menu[$i]['javascript']);
93 ?>
94 <a class='mtitle' style='text-decoration: underline' href="javascript:void(0)"
95 onclick="<?php echo $js ?>">
96 <?php endif; ?>
97 <?php
98 $path=$a_menu[$i]['v3menu'];
99 $path.=$a_menu[$i]['v2menu'];
100 $path.=$a_menu[$i]['v1menu'];
101 echo $path;
102 ?>
103 </a>
104 </td>
105 <td>
106 <?php if ($a_menu[$i]['p_type_display'] == 'PL') echo "("._('Extension').")";
107 echo _($a_menu[$i]['me_description_etendue']); ?>
108 </td>
109 <td>
110 <a class="mtitle" style='text-decoration: underline' href="http://wiki.noalyss.eu/doku.php?id=MENU:<?php echo $a_menu[$i]['me_code']; ?>" target='_blank'><?php echo _("sur le wiki")?> : <?php echo $a_menu[$i]['me_code']; ?></a>
111 </td>
112 </tr>
113<?php endfor; ?>
114 </table>
115
116
117</div>
118<script charset="UTF8" lang="javascript">
119 $('lk_navi_tb').focus();
120</script>
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
tr($p_string, $p_extra='')
Definition: ac_common.php:88
p($p_string)
Definition: ac_common.php:39
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
if(!headers_sent()) else
if(LOGINPUT) $path
Definition: ajax_misc.php:152
$opd_description style
$a_menu
static id()
return the 'gDossier' value after a check
static filter_table($p_table_id, $p_col, $start_row)
filter the rows in a table and keep the colored row in alternance
static title_box($p_name, $p_div, $p_mod="close", $p_js="", $p_draggable="n", $p_enlarge='n')
Title for boxes, you can customize the symbol thanks symbol with the mode "custom".
static infobulle($p_comment)
Display a info in a bubble, text is in message_javascript.
$all table
endfor