. */ /** * @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 . 'core_tables.php'; 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 "modules" . DIRECTORY_SEPARATOR . "entities" . DIRECTORY_SEPARATOR . "entities_tables.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 = 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)) { $whereTmp = ' where '.$where; } if ($_SESSION['current_basket']['id'] == "DepartmentBasket") { $db->query( "select distinct(r.destination) as entity_id, count(distinct r.res_id)" . " as total, e.entity_label from " . $table . " r join " . ENT_ENTITIES . " e on e.entity_id = r.destination " . $whereTmp . " group by e.entity_label, r.destination order by e.entity_label" ); } else { $db->query( "select distinct(r.destination) as entity_id, count(distinct r.res_id) " . "as total, e.entity_label from " . $table . " r join " . ENT_ENTITIES . " e on e.entity_id = r.destination " . $whereTmp . " group by e.entity_label, r.destination order by e.entity_label" ); } while ($res = $db->fetch_object()) { $db2->query( "select entity_label, short_label from " . 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 " . STATUS_TABLE . " order by label_status" ); $statusArr = array(); while ($res = $db->fetch_object()) { if (isset($res->module)) { $tmpModule = $res->module; } else { $tmpModule = ''; } array_push( $statusArr , array( 'id' => $res->id, 'label' => $res->label_status, 'is_system' => $res->is_system, 'img_filename' => $res->img_filename, 'module' => $tmpModule, 'can_be_searched' => $res->can_be_searched, 'can_be_modified' => $res->can_be_modified, ) ); } array_push( $statusArr , 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&attachments=true&origin=');" onBlur="change_contact(this.value, 'index.php?display=true&page=manage_filter&attachments=true&origin=');" />
';">