0000649: Améliorer apparence de CFGPRO
Reviens sur le bon onglet
This commit is contained in:
parent
343c7b700b
commit
cc0dd16a08
5 changed files with 9 additions and 3 deletions
|
|
@ -1604,7 +1604,6 @@ function profile_show(p_div)
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ require_once 'class_profile_menu.php';
|
|||
$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=new ICheckBox("with_direct_form","t");
|
|||
$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 @@ if ($profile->p_id > 0)
|
|||
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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ require_once 'class_menu_ref.php';
|
|||
$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');
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
*/
|
||||
?>
|
||||
<form method="POST" class="print">
|
||||
<? HtmlInput::hidden('tab','profile_gestion_div')?>
|
||||
<?=HtmlInput::hidden("p_id", $p_id);?>
|
||||
<table>
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@
|
|||
*/
|
||||
?>
|
||||
<form method="POST" class="print">
|
||||
<?=HtmlInput::hidden('tab','profile_repo_div')?>
|
||||
|
||||
<?=HtmlInput::hidden("p_id", $p_id);?>
|
||||
<table>
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue