noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
ajax_navigator.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  *   This file is part of NOALYSS.
00005  *
00006  *   NOALYSS is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License as published by
00008  *   the Free Software Foundation; either version 2 of the License, or
00009  *   (at your option) any later version.
00010  *
00011  *   NOALYSS is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU General Public License
00017  *   along with NOALYSS; if not, write to the Free Software
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 */
00020 
00021 // Copyright Author Dany De Bontridder dany@alchimerys.be
00022 if ( ! defined ('ALLOWED')) die('Appel direct ne sont pas permis');
00023 echo HtmlInput::title_box("Navigateur", "navi_div");
00024 $sql="
00025     select code, me_code,me_description,coalesce(me_description_etendue,me_description) as me_description_etendue,v1menu,v2menu,v3menu,p_type_display,
00026     javascript
00027     from 
00028     v_menu_description
00029     where user_name=$1
00030     order by 2 ";
00031 
00032 $a_menu=$cn->get_array($sql,array($_SESSION['g_user']));
00033 
00034 ?>
00035 <div class="content">
00036     <p>
00037         <?php echo _("Vous permet d'accèder rapidement au menu qui vous intéresse, utiliser le filtre pour trouver plus rapidement")?>
00038     </p>
00039     <p style='margin-left: 5%'>
00040     Filtre : <?php
00041     echo HtmlInput::filter_table("navi_tb", "0,1,2", '1');
00042     ?>
00043     </p>
00044     <table id="navi_tb" class="sortable" style="width:90%;margin-left: 5%;border-spacing:0em 0.50em;border-collapse: separate">
00045         <tr>
00046             <th class='sorttable_sorted'>
00047                 Code AD 
00048                 <?php echo HtmlInput::infobulle(34); ?>
00049                 <span id="sorttable_sortfwdind">&nbsp;&blacktriangledown;</span>
00050             </th>
00051             <th>
00052                 <?php echo _("Chemin");?>
00053                 <?php echo HtmlInput::infobulle(35); ?>
00054             </th>
00055             <th>
00056                 <?php echo _("Description complète");?>
00057             </th>
00058             <th>
00059                 <?php echo _("Aide sur le wiki");?>
00060             </th>
00061         </tr>
00062 <?php 
00063 $nMax=count($a_menu);
00064 $url="do.php?gDossier=".dossier::id();
00065 for ($i=0;$i<$nMax;$i++):
00066 ?>
00067         <tr>
00068             <td>
00069                 <?php
00070                 if ( $a_menu[$i]['javascript'] == "" ) :
00071                 ?>
00072                     <a class='mtitle' style='text-decoration: underline' href="<?php echo $url."&ac=".$a_menu[$i]['code']; ?>" target='_blank'>
00073                 <?php else : 
00074                     $js=  str_replace('<DOSSIER>', Dossier::id(), $a_menu[$i]['javascript']);
00075                  ?>
00076                     <a class='mtitle' style='text-decoration: underline' href="javascript:void(0)"
00077                         onclick="<?php echo $js ?>">
00078                 <?php endif; ?>
00079                 <?php echo $a_menu[$i]['me_code'];               ?>
00080                 </a>
00081             </td>
00082             <td>
00083                 <?php
00084                 if ( $a_menu[$i]['javascript'] == "" ) :
00085                 ?>
00086                     <a class='mtitle' style='text-decoration: underline' href="<?php echo $url."&ac=".$a_menu[$i]['code']; ?>" target='_blank'>
00087                 <?php else : 
00088                     $js=  str_replace('<DOSSIER>', Dossier::id(), $a_menu[$i]['javascript']);
00089                  ?>
00090                     <a class='mtitle' style='text-decoration: underline' href="javascript:void(0)"
00091                         onclick="<?php echo $js ?>">
00092                 <?php endif; ?>
00093                 <?php
00094                 $path=$a_menu[$i]['v3menu'];
00095                 $path.=$a_menu[$i]['v2menu'];
00096                 $path.=$a_menu[$i]['v1menu'];
00097                 echo $path;
00098                 ?>
00099                 </a>
00100             </td>
00101             <td>
00102                 <?php if ($a_menu[$i]['p_type_display'] == 'PL') echo "("._('Extension').")";
00103                 echo $a_menu[$i]['me_description_etendue']; ?>
00104             </td>
00105             <td>
00106                 <a class="mtitle" style='text-decoration: underline' href="http://wiki.phpcompta.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>
00107             </td>
00108         </tr>
00109 <?php endfor; ?>        
00110     </table>
00111 
00112     
00113 </div>
00114 <script charset="UTF8" lang="javascript">
00115     $('lk_navi_tb').focus();
00116 </script>
 All Data Structures Namespaces Files Functions Variables Enumerations