check_action(FICADD) == 0 ) { alert(_('Vous ne pouvez pas enlever de fiche')); return; } $f_id=$_REQUEST['f_id']; $fiche=new Admin($cn,$f_id); $fiche->remove(); $low_action="list"; } } //----------------------------------------------------- // list of customer //----------------------------------------------------- if ( $low_action == "list" ) { ?>
' . "Exercice " . $g_user->get_exercice() . ''; echo dossier::hidden(); $a=(isset($_GET['query']))?$_GET['query']:""; printf (_('Recherche').' ', $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); } echo Dossier::hidden(); ?>
'; echo $adm->Summary($search,'adm',$sql); echo '
'; echo '
'; echo '
'; if ($g_user->check_action(FICADD)==1) { /* Add button */ $f_add_button=new IButton('add_card'); $f_add_button->label=_('Créer une nouvelle fiche'); $f_add_button->set_attribute('ipopup','ipop_newcard'); $f_add_button->set_attribute('win_refresh','yes'); $f_add_button->set_attribute('type_cat',FICHE_TYPE_ADM_TAX); $f_add_button->javascript=" select_card_type(this);"; echo $f_add_button->input(); $f_cat_button=new IButton('add_cat'); $f_cat_button->set_attribute('ipopup','ipop_cat'); $f_cat_button->set_attribute('type_cat',FICHE_TYPE_ADM_TAX); $f_cat_button->label=_('Ajout d\'une catégorie'); $f_cat_button->javascript='add_category(this)'; echo $f_cat_button->input(); } echo '
'; echo ''; } /*---------------------------------------------------------------------- * Detail for a card, Suivi, Contact, Operation,... * * cc stands for customer card *----------------------------------------------------------------------*/ if ( $low_action == 'detail') { /* Menu */ require_once NOALYSS_INCLUDE.'/category_card.inc.php'; return; } html_page_stop(); ?>