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
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue