New : new parameter (choice_cat) for the sub_menu see wiki
This commit is contained in:
parent
adf58bd1b6
commit
882060cd4b
7 changed files with 101 additions and 51 deletions
|
|
@ -74,17 +74,26 @@ if ( $low_action == "list" )
|
|||
<?php
|
||||
echo '<h2>' . "Exercice " . $g_user->get_exercice() . '</h2>';
|
||||
echo dossier::hidden();
|
||||
$a=(isset($_GET['query']))?$_GET['query']:"";
|
||||
printf (_('Recherche').' <input class="input_text" type="text" name="query" value="%s">',
|
||||
$a);
|
||||
echo HtmlInput::request_to_hidden(array('ac'));
|
||||
$sel_card=new ISelect('cat');
|
||||
$sel_card->value=$cn->make_array('select fd_id, fd_label from fiche_def '.
|
||||
' where frd_id=$1 '.
|
||||
' order by fd_label ',1,array(FICHE_TYPE_ADM_TAX));
|
||||
$sel_card->selected=(isset($_GET['cat']))?$_GET['cat']:-1;
|
||||
$sel_card->javascript=' onchange="submit(this);"';
|
||||
echo _('Catégorie :').$sel_card->input();
|
||||
$a=(isset($_GET['query']))?$_GET['query']:"";
|
||||
printf (_('Recherche').' <input class="input_text" type="text" name="query" value="%s">',
|
||||
$a);
|
||||
echo HtmlInput::request_to_hidden(array('ac'));
|
||||
$choice_cat=HtmlInput::default_value_request("choice_cat", 1);
|
||||
if ( $choice_cat == 1 )
|
||||
{
|
||||
$sel_card=new ISelect('cat');
|
||||
$sel_card->value=$cn->make_array('select fd_id, fd_label from fiche_def '.
|
||||
' where frd_id=$1 '.
|
||||
' order by fd_label ',1,array(FICHE_TYPE_ADM_TAX));
|
||||
$sel_card->selected=(isset($_GET['cat']))?$_GET['cat']:-1;
|
||||
$sel_card->javascript=' onchange="submit(this);"';
|
||||
echo _('Catégorie :').$sel_card->input();
|
||||
} else
|
||||
{
|
||||
$cat=HtmlInput::default_value_request('cat', '');
|
||||
echo HtmlInput::hidden("cat",$cat);
|
||||
echo HtmlInput::hidden('choice_cat', 0);
|
||||
}
|
||||
|
||||
?>
|
||||
<input type="submit" class="button" name="submit_query" value="<?php echo _('recherche')?>">
|
||||
|
|
|
|||
|
|
@ -73,13 +73,24 @@ if ( $low_action == "list" )
|
|||
$a=(isset($_GET['query']))?$_GET['query']:"";
|
||||
printf (_('Recherche').' <input class="input_text" type="text" name="query" value="%s">',
|
||||
$a);
|
||||
$sel_card=new ISelect('cat');
|
||||
$sel_card->value=$cn->make_array('select fd_id, fd_label from fiche_def '.
|
||||
' where frd_id=$1'.
|
||||
' order by fd_label ',1,array(FICHE_TYPE_FIN));
|
||||
$sel_card->selected=(isset($_GET['cat']))?$_GET['cat']:-1;
|
||||
$sel_card->javascript=' onchange="submit(this);"';
|
||||
echo _('Catégorie :').$sel_card->input();
|
||||
$choice_cat=HtmlInput::default_value_request("choice_cat", 1);
|
||||
|
||||
if ( $choice_cat == 1 )
|
||||
{
|
||||
$sel_card=new ISelect('cat');
|
||||
$sel_card->value=$cn->make_array('select fd_id, fd_label from fiche_def '.
|
||||
' where frd_id=$1'.
|
||||
' order by fd_label ',1,array(FICHE_TYPE_FIN));
|
||||
$sel_card->selected=(isset($_GET['cat']))?$_GET['cat']:-1;
|
||||
$sel_card->javascript=' onchange="submit(this);"';
|
||||
echo _('Catégorie :').$sel_card->input();
|
||||
}
|
||||
else
|
||||
{
|
||||
$cat=HtmlInput::default_value_request('cat', '');
|
||||
echo HtmlInput::hidden("cat", $cat);
|
||||
echo HtmlInput::hidden('choice_cat', 0);
|
||||
}
|
||||
$nooperation=new ICheckBox('noop');
|
||||
$nooperation->selected=(isset($_GET['noop']))?true:false;
|
||||
echo _('Inclure les banques sans opération :').$nooperation->input();
|
||||
|
|
|
|||
|
|
@ -68,23 +68,33 @@ if ($low_action == "list")
|
|||
<div class="content">
|
||||
<div>
|
||||
<form method="get" action="<?php echo $href;?>">
|
||||
<?php
|
||||
echo '<h2>' . "Exercice " . $g_user->get_exercice() . '</h2>';
|
||||
echo dossier::hidden();
|
||||
$a = (isset($_GET['query'])) ? $_GET['query'] : "";
|
||||
printf(_('Recherche') . ' <input class="input_text" type="text" name="query" value="%s">', $a);
|
||||
$sel_card = new ISelect('cat');
|
||||
$sel_card->value = $cn->make_array('select fd_id, fd_label from fiche_def ' .
|
||||
' where frd_id=' . FICHE_TYPE_CLIENT .
|
||||
' order by fd_label ', 1);
|
||||
$sel_card->selected = (isset($_GET['cat'])) ? $_GET['cat'] : -1;
|
||||
$sel_card->javascript = ' onchange="submit(this);"';
|
||||
echo _('Catégorie :') . $sel_card->input();
|
||||
$nooperation = new ICheckBox('noop');
|
||||
$nooperation->selected = (isset($_GET['noop'])) ? true : false;
|
||||
<?php
|
||||
echo '<h2>' . "Exercice " . $g_user->get_exercice() . '</h2>';
|
||||
$a=(isset($_GET['query']))?$_GET['query']:"";
|
||||
printf (_('Recherche').' <input class="input_text" type="text" name="query" value="%s">',
|
||||
$a);
|
||||
$choice_cat=HtmlInput::default_value_request("choice_cat", 1);
|
||||
|
||||
echo _('Inclure les clients sans opération :') . $nooperation->input();
|
||||
?>
|
||||
if ( $choice_cat == 1 )
|
||||
{
|
||||
$sel_card=new ISelect('cat');
|
||||
$sel_card->value=$cn->make_array('select fd_id, fd_label from fiche_def '.
|
||||
' where frd_id='.FICHE_TYPE_CLIENT.
|
||||
' order by fd_label ',1);
|
||||
$sel_card->selected=(isset($_GET['cat']))?$_GET['cat']:-1;
|
||||
$sel_card->javascript=' onchange="submit(this);"';
|
||||
echo _('Catégorie :').$sel_card->input();
|
||||
} else
|
||||
{
|
||||
$cat=HtmlInput::default_value_request('cat', '');
|
||||
echo HtmlInput::hidden("cat",$cat);
|
||||
echo HtmlInput::hidden('choice_cat', 0);
|
||||
}
|
||||
$nooperation = new ICheckBox('noop');
|
||||
$nooperation->selected = (isset($_GET['noop'])) ? true : false;
|
||||
|
||||
echo _('Inclure les clients sans opération :') . $nooperation->input();
|
||||
?>
|
||||
<input type="submit" class="button" name="submit_query" value="<?php echo _('recherche')?>">
|
||||
<input type="hidden" name="ac" value="<?php echo $_REQUEST['ac']?>">
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -328,8 +328,8 @@ if ( $sa == 'remove' )
|
|||
$sql="delete from ac_dossier where dos_id=$1";
|
||||
$cn->exec_sql($sql,array($_REQUEST['d']));
|
||||
print '<h2 class="error">';
|
||||
printf (_("Le dossier %s est effacé"),h($name))."</h2>";
|
||||
echo HtmlInput::button_anchor('Retour','?action=dossier_mgt');
|
||||
printf (_("Le dossier %s est effacé").'</h2>',h($name));
|
||||
echo HtmlInput::button_anchor(_('Retour'),'?action=dossier_mgt');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -76,13 +76,24 @@ if ($low_action == "list")
|
|||
echo dossier::hidden();
|
||||
$a = (isset($_GET['query'])) ? $_GET['query'] : "";
|
||||
printf(_('Recherche') . ' <input class="input_text" type="text" name="query" value="%s">', $a);
|
||||
$sel_card = new ISelect('cat');
|
||||
$sel_card->value = $cn->make_array('select fd_id, fd_label from fiche_def ' .
|
||||
' where frd_id=' . FICHE_TYPE_EMPL .
|
||||
' order by fd_label ', 1);
|
||||
$sel_card->selected = (isset($_GET['cat'])) ? $_GET['cat'] : -1;
|
||||
$sel_card->javascript = ' onchange="submit(this);"';
|
||||
echo _('Catégorie :') . $sel_card->input();
|
||||
echo HtmlInput::request_to_hidden(array('ac'));
|
||||
$choice_cat=HtmlInput::default_value_request("choice_cat", 1);
|
||||
if ( $choice_cat == 1 )
|
||||
{
|
||||
$sel_card = new ISelect('cat');
|
||||
$sel_card->value = $cn->make_array('select fd_id, fd_label from fiche_def ' .
|
||||
' where frd_id=' . FICHE_TYPE_EMPL .
|
||||
' order by fd_label ', 1);
|
||||
$sel_card->selected = (isset($_GET['cat'])) ? $_GET['cat'] : -1;
|
||||
$sel_card->javascript = ' onchange="submit(this);"';
|
||||
echo _('Catégorie :') . $sel_card->input();
|
||||
}
|
||||
else
|
||||
{
|
||||
$cat=HtmlInput::default_value_request('cat', '');
|
||||
echo HtmlInput::hidden("cat",$cat);
|
||||
echo HtmlInput::hidden('choice_cat', 0);
|
||||
}
|
||||
$nooperation = new ICheckBox('noop');
|
||||
$nooperation->selected = (isset($_GET['noop'])) ? true : false;
|
||||
echo _('Inclure les employés sans opération :') . $nooperation->input();
|
||||
|
|
|
|||
|
|
@ -383,7 +383,7 @@ if ($sa == 'list')
|
|||
$sql = "delete from modeledef where mod_id=$1";
|
||||
$cn->exec_sql($sql, array($_REQUEST['m']));
|
||||
print '<h2 class="error">';
|
||||
printf (_("Le modèle %s est effacé"),$name )."</H2>";
|
||||
printf (_("Le modèle %s est effacé")."</H2>",$name );
|
||||
echo HtmlInput::button_anchor(_('Retour'), '?action=modele_mgt');
|
||||
}
|
||||
echo '</div>';
|
||||
|
|
|
|||
|
|
@ -78,13 +78,22 @@ if ( $low_action == "list" )
|
|||
$a=(isset($_GET['query']))?$_GET['query']:"";
|
||||
printf (_('Recherche').' <input class="input_text" type="text" name="query" value="%s">',
|
||||
$a);
|
||||
$sel_card=new ISelect('cat');
|
||||
$sel_card->value=$cn->make_array('select fd_id, fd_label from fiche_def '.
|
||||
' where frd_id='.FICHE_TYPE_FOURNISSEUR.
|
||||
' order by fd_label ',1);
|
||||
$sel_card->selected=(isset($_GET['cat']))?$_GET['cat']:-1;
|
||||
$sel_card->javascript=' onchange="submit(this);"';
|
||||
echo _('Catégorie :').$sel_card->input();
|
||||
$choice_cat=HtmlInput::default_value_request("choice_cat", 1);
|
||||
if ( $choice_cat == 1 )
|
||||
{
|
||||
$sel_card=new ISelect('cat');
|
||||
$sel_card->value=$cn->make_array('select fd_id, fd_label from fiche_def '.
|
||||
' where frd_id='.FICHE_TYPE_FOURNISSEUR.
|
||||
' order by fd_label ',1);
|
||||
$sel_card->selected=(isset($_GET['cat']))?$_GET['cat']:-1;
|
||||
$sel_card->javascript=' onchange="submit(this);"';
|
||||
echo _('Catégorie :').$sel_card->input();
|
||||
} else
|
||||
{
|
||||
$cat=HtmlInput::default_value_request('cat', '');
|
||||
echo HtmlInput::hidden("cat",$cat);
|
||||
echo HtmlInput::hidden('choice_cat', 0);
|
||||
}
|
||||
$nooperation=new ICheckBox('noop');
|
||||
$nooperation->selected=(isset($_GET['noop']))?true:false;
|
||||
echo _('Inclure les fournisseurs sans opération :').$nooperation->input();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue