/[phpcompta]/phpcompta/include/user_menu.php
ViewVC logotype

Diff of /phpcompta/include/user_menu.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36 by sparkyx, Sun Feb 27 14:24:30 2005 UTC revision 1.37 by sparkyx, Sun Mar 6 15:15:56 2005 UTC
# Line 156  function GetAvailableFolder($p_user,$p_a Line 156  function GetAvailableFolder($p_user,$p_a
156   *   *
157   * gen : none   * gen : none
158   */   */
159  function u_ShowMenuCompta($p_dossier)  function ShowMenuCompta($p_dossier)
160  {  {
161    include_once("postgres.php");    include_once("postgres.php");
162    $l_name=GetDossierName($p_dossier);    $l_name=GetDossierName($p_dossier);
# Line 196  function u_ShowMenuCompta($p_dossier) Line 196  function u_ShowMenuCompta($p_dossier)
196   *      - string containing the html menu   *      - string containing the html menu
197   *   *
198   */   */
199  function u_ShowMenuComptaRight($p_dossier=0,$p_admin=0)  function ShowMenuComptaRight($p_dossier=0,$p_admin=0)
200  {  {
201    include_once("ac_common.php");    include_once("ac_common.php");
202    $i=0;    $i=0;
# Line 212  function u_ShowMenuComptaRight($p_dossie Line 212  function u_ShowMenuComptaRight($p_dossie
212    echo '</DIV>';    echo '</DIV>';
213    
214  }  }
215  /* function u_ShowMenuJrnUser($p_dossier,$p_user)  /* function ShowMenuJrnUser($p_dossier,$p_user)
216   * Purpose : Show the Menu from the jrn encode   * Purpose : Show the Menu from the jrn encode
217   *           page   *           page
218   *   *
# Line 228  function u_ShowMenuComptaRight($p_dossie Line 228  function u_ShowMenuComptaRight($p_dossie
228   *   *
229   */   */
230    
231  function u_ShowMenuJrnUser($p_dossier,$p_type,$p_jrn)  function ShowMenuJrnUser($p_dossier,$p_type,$p_jrn)
232  {  {
233    include_once ("debug.php");    include_once ("debug.php");
234    include_once("constant.php");    include_once("constant.php");
# Line 272  function u_ShowMenuJrnUser($p_dossier,$p Line 272  function u_ShowMenuJrnUser($p_dossier,$p
272          $right=3;          $right=3;
273        }        }
274    
275          // Show saldo
276    //       echo '<TD class="cell">';
277    //       echo ('<A class="mtitle" HREF="user_jrn.php?saldo&JRN_TYPE=FIN">Solde</A></TD>');
278    //       echo '</TR>';
279    
280        if ( $right > 0 ) {        if ( $right > 0 ) {
281          // Minimum Lecture          // Minimum Lecture
# Line 307  function u_ShowMenuJrnUser($p_dossier,$p Line 311  function u_ShowMenuJrnUser($p_dossier,$p
311   * return:   * return:
312   *     - string containing the menu   *     - string containing the menu
313   */   */
314  function u_ShowMenuJrn($p_cn,$p_jrn_type)  function ShowMenuJrn($p_cn,$p_jrn_type)
315  {  {
316    
317    $Res=ExecSql($p_cn,"select ja_name,ja_url,ja_action,ja_desc from jrn_action  where ja_jrn_type='$p_jrn_type'    $Res=ExecSql($p_cn,"select ja_name,ja_url,ja_action,ja_desc from jrn_action  where ja_jrn_type='$p_jrn_type'
# Line 570  function MenuAdmin() Line 574  function MenuAdmin()
574    $menu=ShowItem($item,'H');    $menu=ShowItem($item,'H');
575    return $menu;    return $menu;
576  }  }
577    /* function
578     * Purpose :
579     *
580     * parm :
581     *      -
582     * gen :
583     *      -
584     * return:
585     *      -
586     *
587     */
588    function ShowMenuParam()
589    {
590        $sub_menu=ShowItem(array(
591                              //('rapprt.php','Rapprochement'),
592                              array('dossier_prefs.php?p_action=devise','Devises'),
593                              array('dossier_prefs.php?p_action=periode','Période'),
594                              array('user_sec.php','Sécurité')
595                              ),
596                        'H',"cell","mtitle");
597        return $sub_menu;
598    
599    }
600    /* function  MenuJrn($p_dossier)
601     * Purpose : Show the menu in the jrn page
602     *
603     * parm :
604     *      - $p_dossier
605     * gen :
606     *      - none
607     * return:
608     *      - none
609     *
610     */
611    
612    function MenuJrn($p_dossier)
613    {
614        echo '<div class="lmenu">';
615        echo '<TABLE>';
616        echo '<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_add.php">Création </A></TD></TR>';
617        include_once("postgres.php");
618        $Cn=DbConnect($p_dossier);
619        $Ret=ExecSql($Cn,"select jrn_def_id,jrn_def_name,
620                                 jrn_def_class_deb,jrn_def_class_cred,jrn_type_id,jrn_desc
621                                 from jrn_def join jrn_type on jrn_def_type=jrn_type_id");
622        $Max=pg_NumRows($Ret);
623        for ($i=0;$i<$Max;$i++) {
624          $l_line=pg_fetch_array($Ret,$i);
625          printf ('<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_detail.php?p_jrn=%s">%s</A></TD></TR>',
626                  $l_line['jrn_def_id'],$l_line['jrn_def_name']);
627    
628        }
629        echo "</TABLE>";
630        echo '</div>';
631    
632    }
633    /* function ShowMenuPcmn($p_start=1)
634     * Purpose : Show the menu from the pcmn page
635     *
636     * parm :
637     *      - $p_start class start
638     * gen :
639     *      - none
640     * return:
641     *      - none
642     *
643     */
644    
645    function ShowMenuPcmn($p_start=1)
646    {
647        echo '<div class="lmenu">';
648        echo '<TABLE>';
649        echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=1">1 Immobilisé </A></TD></TR>';
650        echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=2">2 Actif a un an au plus</A></TD></TR>';
651        echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=3">3 Stock et commande</A></TD></TR>';
652        echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=4">4 Compte tiers</A></TD></TR>';
653        echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=5">5 Actif</A></TD></TR>';
654        echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=6">6 Charges</A></TD></TR>';
655        echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=7">7 Produits</A></TD></TR>';
656        echo "</TABLE>";
657        echo '</div>';
658    
659    }
660    
661  ?>  ?>

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26