phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4963 - in phpcompta/trunk: html/js include include/temp


From: phpcompta-dev
Subject: [Phpcompta-dev] r4963 - in phpcompta/trunk: html/js include include/template
Date: Thu, 21 Jun 2012 16:06:01 +0200 (CEST)

Author: danydb
Date: 2012-06-21 16:06:00 +0200 (Thu, 21 Jun 2012)
New Revision: 4963

Modified:
   phpcompta/trunk/html/js/scripts.js
   phpcompta/trunk/include/ajax_get_profile.php
   phpcompta/trunk/include/ajax_mod_menu.php
   phpcompta/trunk/include/template/user_sec_profile.php
   phpcompta/trunk/include/template/user_sec_repository.php
Log:
0000649: Am?\195?\169liorer apparence de CFGPRO
Reviens sur le bon onglet

Modified: phpcompta/trunk/html/js/scripts.js
===================================================================
--- phpcompta/trunk/html/js/scripts.js  2012-06-21 12:55:10 UTC (rev 4962)
+++ phpcompta/trunk/html/js/scripts.js  2012-06-21 14:06:00 UTC (rev 4963)
@@ -1604,7 +1604,6 @@
                var 
div=['profile_gen_div','profile_menu_div','profile_print_div','profile_gestion_div','profile_repo_div'];
                for (var r =0;r<div.length;r++ ) {$(div[r]).hide();  }
                $(p_div).show();
-               $('tab').value=p_div;
        } catch(e)
        {
                alert(e.message)

Modified: phpcompta/trunk/include/ajax_get_profile.php
===================================================================
--- phpcompta/trunk/include/ajax_get_profile.php        2012-06-21 12:55:10 UTC 
(rev 4962)
+++ phpcompta/trunk/include/ajax_get_profile.php        2012-06-21 14:06:00 UTC 
(rev 4963)
@@ -32,7 +32,6 @@
 $profile=new Profile_sql($cn,$p_id);
 $gDossier=Dossier::id();
 $add_one=HtmlInput::button("add", "Ajout 
Menu","onclick=\"add_menu({dossier:$gDossier,p_id:$p_id})\"");
-echo HtmlInput::hidden('tab','');
 ?>
 <hr>
 <h1>Profil <?=$profile->p_name?></h1>
@@ -53,6 +52,7 @@
 $with_direct_form->set_check($profile->with_direct_form);
 echo '<div style="display:none" id="profile_gen_div">';
 echo '<form method="POST" onsubmit="return confirm (\'vous confirmez\')">';
+echo HtmlInput::hidden('tab','profile_gen_div');
 echo HtmlInput::hidden('p_id',$profile->p_id);
 require_once("template/profile.php");
 echo HtmlInput::submit("save_name","Modifier");
@@ -95,7 +95,10 @@
        echo "<h1>Dépôt de stock accessible</h1>";
        $profile_menu->available_repository($p_id);
         echo '</div>';
-
+        if ( isset ($_POST['tab']))
+        {
+            echo create_script("profile_show('".$_POST['tab']."');");
+        }
 }
 else
 {

Modified: phpcompta/trunk/include/ajax_mod_menu.php
===================================================================
--- phpcompta/trunk/include/ajax_mod_menu.php   2012-06-21 12:55:10 UTC (rev 
4962)
+++ phpcompta/trunk/include/ajax_mod_menu.php   2012-06-21 14:06:00 UTC (rev 
4963)
@@ -3,6 +3,7 @@
 $m=new Menu_Ref($cn,$me_code);
 $msg="Modification ".$m->me_code.' '.h($m->me_menu);
 echo '<form method="POST" onsubmit="return confirm(\'Vous confirmez ?\')">';
+echo HtmlInput::hidden('tab','profile_menu_div');
 require_once 'template/menu_detail.php';
 
 echo HtmlInput::submit('modify_menu','Sauver');

Modified: phpcompta/trunk/include/template/user_sec_profile.php
===================================================================
--- phpcompta/trunk/include/template/user_sec_profile.php       2012-06-21 
12:55:10 UTC (rev 4962)
+++ phpcompta/trunk/include/template/user_sec_profile.php       2012-06-21 
14:06:00 UTC (rev 4963)
@@ -28,6 +28,7 @@
  */
 ?>
 <form method="POST" class="print">
+    <? HtmlInput::hidden('tab','profile_gestion_div')?>
        <?=HtmlInput::hidden("p_id", $p_id);?>
        <table>
                <tr>

Modified: phpcompta/trunk/include/template/user_sec_repository.php
===================================================================
--- phpcompta/trunk/include/template/user_sec_repository.php    2012-06-21 
12:55:10 UTC (rev 4962)
+++ phpcompta/trunk/include/template/user_sec_repository.php    2012-06-21 
14:06:00 UTC (rev 4963)
@@ -27,6 +27,8 @@
  */
 ?>
 <form method="POST" class="print">
+<?=HtmlInput::hidden('tab','profile_repo_div')?>
+
        <?=HtmlInput::hidden("p_id", $p_id);?>
        <table>
                <tr>



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]