Add a button search_card
This commit is contained in:
parent
7df4ad0c0f
commit
c6288ceaf1
9 changed files with 69 additions and 23 deletions
|
|
@ -18,6 +18,36 @@ if ( $cn->get_value("select count(*) from profile join profile_user using (p_id)
|
|||
echo '</div>';
|
||||
endif;
|
||||
|
||||
// show search card
|
||||
if ( $cn->get_value("select count(*) from profile join profile_user using (p_id)
|
||||
where user_name=$1 and with_search_card=1",array($_SESSION[SESSION_KEY.'g_user'])) ==1):
|
||||
$search_card=new IText('card_search');
|
||||
$search_card_js=sprintf('onclick="boxsearch_card(\'%d\')"',dossier::id());
|
||||
echo Icon_Action::button_magnifier(uniqid(), "$('box_search_card').show()");
|
||||
echo '<div id="box_search_card" style="display:none" class="inner_box">';
|
||||
echo HtmlInput::title_box(_("recherche"), "box_search_card","hide");
|
||||
echo _('Recherche de fiche');
|
||||
echo '<p class="info">';
|
||||
echo _("Donnez une partie du nom, prénom, de la description, du poste comptable, du n° de TVA,quick code ... "
|
||||
. " de la fiche" ) ;
|
||||
echo '</p>';
|
||||
echo '<p class="ml-1">';
|
||||
echo $search_card->input();
|
||||
echo '</p>';
|
||||
echo '<ul class="aligned-block">';
|
||||
|
||||
echo '<li>'.
|
||||
HtmlInput::button_anchor(_("Chercher"),"javascript:void(0)","",$search_card_js,'button').
|
||||
'</li>';
|
||||
|
||||
echo '<li>'.
|
||||
HtmlInput::button_hide("box_search_card").
|
||||
'</li>';
|
||||
echo '</ul>';
|
||||
echo '</div>';
|
||||
endif;
|
||||
|
||||
|
||||
if ( $cn->get_value("select count(*) from profile join profile_user using (p_id)
|
||||
where user_name=$1 and with_direct_form=true",array($_SESSION[SESSION_KEY.'g_user'])) ==1):
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue