. */ /** * @brief Displays the invoices list in the following baskets (default setting): NewInvoicesSup10000, RejectedInvoices, ValidatedInvoices * * @file * @author Claire Figueras * @date $date$ * @version $Revision$ * @ingroup basket */ require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_request.php"); require_once("modules".DIRECTORY_SEPARATOR."basket".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_modules_tools.php"); require_once("modules".DIRECTORY_SEPARATOR."entities".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_manage_entities.php"); require_once("apps".DIRECTORY_SEPARATOR.$_SESSION['config']['app_id'].DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_list_show.php"); require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_security.php"); $security = new security(); $core_tools = new core_tools(); $request = new request(); $db = new dbquery(); $db2 = new dbquery(); $db->connect(); $db2->connect(); $ent = new entity(); $bask = new basket(); $_SESSION['auth_dep'] = array(); if(!empty($_REQUEST['clear'])) { $_SESSION['auth_dep'] = array(); } if(!empty($_REQUEST['id'])) { $bask->load_current_basket(trim($_REQUEST['id']), 'frame'); } ?> 'VAL'", " ", $where); if(!empty($where)) { $where_tmp = ' where '.$where; } if($_SESSION['current_basket']['id'] == "DepartmentBasket") { $db->query("select distinct(".$table.".destination) as entity_id, count(distinct ".$table.".res_id) as total, e.entity_label from ".$table." join ".$_SESSION['tablename']['ent_entities']." e on e.entity_id = ".$table.".destination ".$where_tmp." group by e.entity_label, ".$table.".destination order by e.entity_label"); } else { $db->query("select distinct(".$table.".destination) as entity_id, count(distinct ".$table.".res_id) as total, e.entity_label from ".$table." join ".$_SESSION['tablename']['ent_entities']." e on e.entity_id = ".$table.".destination ".$where_tmp." group by e.entity_label, ".$table.".destination order by e.entity_label"); } while($res = $db->fetch_object()) { $db2->query("select entity_label, short_label from ".$_SESSION['tablename']['ent_entities']." e where e.entity_id = '".$res->entity_id."'"); $res2 = $db2->fetch_object(); array_push($entities, array('ID' => $res->entity_id, 'LABEL' => $res2->entity_label, 'SHORT_LABEL' => $res2->short_label, 'IN_ENTITY' => $ent->is_user_in_entity($_SESSION['user']['UserId'], $res->entity_id), 'TOTAL' => $res->total)); } $db->query("select * from ".$_SESSION['tablename']['status']." order by label_status"); $arr_status = array(); while($res = $db->fetch_object()) { array_push($arr_status , array('id' => $res->id, 'label' => $res->label_status, 'is_system' => $res->is_system, 'img_filename' => $res->img_filename, 'module' => $res->module, 'can_be_searched' => $res->can_be_searched, 'can_be_modified' => $res->can_be_modified)); } array_push($arr_status , array('id' => 'late', 'label' => _LATE)); ?>
: onfocus="if(this.value=='[]'){this.value='';}" size="40" onKeyPress="if(event.keyCode == 9)change_contact(this.value, 'index.php?display=true&page=manage_filter_count_list&origin=');" onBlur="change_contact(this.value, 'index.php?display=true&page=manage_filter_count_list&origin=');" />
';">