Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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"> ▾</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>