diff --git a/include/class_manager.php b/include/class_manager.php new file mode 100644 index 000000000..5722c1038 --- /dev/null +++ b/include/class_manager.php @@ -0,0 +1,62 @@ +fiche_def_ref=FICHE_TYPE_EMPL; + parent::__construct($p_cn,$p_id) ; + + } + + + + +} + +?> diff --git a/include/constant.php b/include/constant.php index 5bf122932..772dbef81 100644 --- a/include/constant.php +++ b/include/constant.php @@ -71,7 +71,7 @@ define ("SITE_UPDATE",'http://www.phpcompta.eu/last_version.txt'); define ("SITE_UPDATE_PLUGIN",'http://www.phpcompta.eu/plugin_last_version.txt'); -define ("DBVERSION",111); +define ("DBVERSION",112); define ("MONO_DATABASE",25); define ("DBVERSIONREPO",14); define ('NOTFOUND','--not found--'); diff --git a/include/manager.inc.php b/include/manager.inc.php new file mode 100644 index 000000000..126b8838f --- /dev/null +++ b/include/manager.inc.php @@ -0,0 +1,149 @@ +check_action(FICADD) == 0) + { + alert('Vous ne pouvez pas enlever de fiche'); + return; + } + + $f_id = $_REQUEST['f_id']; + + $fiche = new Manager($cn, $f_id); + $fiche->remove(); + $low_action = "list"; +} + +//----------------------------------------------------- +// list of Manager / employeed +//----------------------------------------------------- +if ($low_action == "list") +{ + ?> +
+
+
+ ' . "Exercice " . $g_user->get_exercice() . ''; + echo dossier::hidden(); + $a = (isset($_GET['query'])) ? $_GET['query'] : ""; + printf(_('Recherche') . ' ', $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(); + $nooperation = new ICheckBox('noop'); + $nooperation->selected = (isset($_GET['noop'])) ? true : false; + echo _('Inclure les employés sans opération :') . $nooperation->input(); + ?> + + +
+
+ '; + echo $supplier->Summary($search, 'manager', $sql, $noop); + + + 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('win_refresh', 'yes'); + + $f_add_button->set_attribute('type_cat', FICHE_TYPE_EMPL); + $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('type_cat', FICHE_TYPE_EMPL); + $f_cat_button->set_attribute('ipopup', 'ipop_cat'); + $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 supplier card + * ---------------------------------------------------------------------- */ +if ($low_action == 'detail') +{ + /* Menu */ + require_once('category_card.inc.php'); + exit(); +} + + + +html_page_stop(); +?>