get_value("select count(*) from profile join profile_user using (p_id)
where user_name=$1 and with_calc=true",array($_SESSION[SESSION_KEY.'g_user'])) ==1):
echo '
';
echo IButton::show_calc();
echo '
';
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->css_size='97%';
$search_card_js=sprintf('onclick="boxsearch_card(\'%d\')"',dossier::id());
echo Icon_Action::card( "$('box_search_card').show();$('box_search_card').setStyle({'z-index':get_next_layer()})");
echo '
';
echo HtmlInput::title_box(_('Recherche de fiche'), "box_search_card","hide");
echo '
';
echo _("Donnez une partie du nom, prénom, de la description, du poste comptable, du n° de TVA,quick code ... "
. " de la fiche" ) ;
echo '
';
echo '
';
echo $search_card->input();
echo '
';
$create_card_js='onclick="select_card_type({});"';
echo '
';
echo '- '.
HtmlInput::button_anchor(_("Chercher"),"javascript:void(0)","",$search_card_js,'button').
'
';
echo '- '.
HtmlInput::button_anchor(_("Créer fiche"),"javascript:void(0)","",$create_card_js,'button').
'
';
echo '- '.
HtmlInput::button_hide("box_search_card").
'
';
echo '
';
echo '
';
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):
?>