Create card from the search
This commit is contained in:
parent
56b2f49e0e
commit
5b05b841f0
2 changed files with 14 additions and 2 deletions
|
|
@ -481,7 +481,7 @@ case 'fs':
|
|||
if ( strpos($sql," in ()") != 0)
|
||||
{
|
||||
$html="";
|
||||
$html.=HtmlInput::title_box(_('Recherche de fiche'), 'search_card');
|
||||
$html.=HtmlInput::title_box(_('Recherche de fiches'), 'search_card');
|
||||
$html.='<h3 class="notice">';
|
||||
$html.=_("Aucune catégorie de fiche ne correspond à".
|
||||
" votre demande, le journal pourrait n'avoir accès à aucune fiche");
|
||||
|
|
@ -545,7 +545,19 @@ case 'fs':
|
|||
ob_start();
|
||||
require_once NOALYSS_TEMPLATE.'/card_result.php';
|
||||
$r.=ob_get_contents();
|
||||
$r.='<ul class="aligned-block ">';
|
||||
$r.='<li>';
|
||||
$r.=HtmlInput::button_close("search_card");
|
||||
$r.='</li>';
|
||||
if ($g_user->check_action(FICADD)==1)
|
||||
{
|
||||
$r.='<li>';
|
||||
$create_card_js='onclick="select_card_type({});"';
|
||||
$r.=HtmlInput::button_anchor(_("Créer fiche"),"javascript:void(0)","",$create_card_js,'smallbutton');
|
||||
$r.='</li>';
|
||||
}
|
||||
$r.='</ul>';
|
||||
|
||||
ob_end_clean();
|
||||
$ctl=$ctl.'_content';
|
||||
$html=$r;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ if ( $cn->get_value("select count(*) from profile join profile_user using (p_id)
|
|||
$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 '<div id="box_search_card" style="display:none;width:20rem;padding:0" class="inner_box">';
|
||||
echo HtmlInput::title_box(_('Recherche de fiche'), "box_search_card","hide");
|
||||
echo HtmlInput::title_box(_('Recherche de fiches'), "box_search_card","hide");
|
||||
echo '<p class="info p-1" >';
|
||||
echo _("Donnez une partie du nom, prénom, de la description, du poste comptable, du n° de TVA,quick code ... "
|
||||
. " de la fiche" ) ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue