*/ $core_tools = new core_tools(); $core_tools->test_user(); $core_tools->load_lang(); require_once('core/manage_bitmask.php'); require_once "apps" . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . "security_bitmask.php"; require_once ("core" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_request.php"); require_once ("core" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_security.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_history.php"); require_once ("apps" . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_indexing_searching_app.php"); require_once ("apps" . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_types.php"); if(file_exists('custom'.DIRECTORY_SEPARATOR.$_SESSION['custom_override_id'].DIRECTORY_SEPARATOR.'apps' . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . "definition_mail_categories_invoices.php")) { include ('custom'.DIRECTORY_SEPARATOR.$_SESSION['custom_override_id'].DIRECTORY_SEPARATOR.'apps' . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . "definition_mail_categories_invoices.php"); } else { include ('apps' . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . "definition_mail_categories_invoices.php"); } if (!isset ($_REQUEST['coll_id'])) { $_REQUEST['coll_id'] = ""; } $_SESSION['doc_convert'] = array (); //test service view technical infos $viewTechnicalInfos = false; if ($core_tools->test_service('view_technical_infos', 'apps', false)) { $viewTechnicalInfos = true; } /****************Management of the location bar ************/ $init = false; if (isset ($_REQUEST['reinit']) && $_REQUEST['reinit'] == "true") { $init = true; } if (isset ($_SESSION['indexation']) && $_SESSION['indexation'] == true) { $init = true; } $level = ""; if (isset ($_REQUEST['level']) && ($_REQUEST['level'] == 2 || $_REQUEST['level'] == 3 || $_REQUEST['level'] == 4 || $_REQUEST['level'] == 1)) { $level = $_REQUEST['level']; } $page_path = $_SESSION['config']['businessappurl'] . 'index.php?page=detail_invoicess&dir=indexing_searching&coll_id=' . $_REQUEST['coll_id'] . '&id=' . $_REQUEST['id']; $page_label = _DETAILS; $page_id = "details_invoices"; $core_tools->manage_location_bar($page_path, $page_label, $page_id, $init, $level); /***********************************************************/ $hist = new history(); $security = new security(); $func = new functions(); $request = new request; $type = new types(); $s_id = ""; $_SESSION['req'] = 'details_invoices'; $_SESSION['indexing'] = array (); $is = new indexing_searching_app(); $coll_id = ''; $table = ''; if (!isset ($_REQUEST['coll_id']) || empty ($_REQUEST['coll_id'])) { //$_SESSION['error'] = _COLL_ID.' '._IS_MISSING; $coll_id = "res_coll"; $table = "res_view"; $is_view = true; } else { $coll_id = $_REQUEST['coll_id']; $table = $security->retrieve_view_from_coll_id($coll_id); $is_view = true; if (empty ($table)) { $table = $security->retrieve_table_from_coll($coll_id); $is_view = false; } } $_SESSION['collection_id_choice'] = $coll_id; if (isset ($_GET['id']) && !empty ($_GET['id'])) { $s_id = addslashes($func->wash($_GET['id'], "num", _THE_DOC)); } $_SESSION['doc_id'] = $s_id; if (isset ($_SESSION['origin']) && $_SESSION['origin'] <> "basket") { $right = $security->test_right_doc($coll_id, $s_id); //$_SESSION['error'] = 'coll '.$coll_id.', res_id : '.$s_id; } else { $right = true; } if (!$right) { ?> add($table, $s_id, "VIEW",'resview', _VIEW_DETAILS_NUM . $s_id, $_SESSION['config']['databasetype'], 'apps'); } $modify_doc = check_right( $_SESSION['user']['security'][$coll_id]['DOC']['securityBitmask'], DATA_MODIFICATION ); $delete_doc = check_right( $_SESSION['user']['security'][$coll_id]['DOC']['securityBitmask'], DELETE_RECORD ); //update index with the doctype if (isset ($_POST['submit_index_doc'])) { $is->update_mail($_POST, "POST", $s_id, $coll_id); } //delete the doctype if (isset ($_POST['delete_doc'])) { $is->delete_doc($s_id, $coll_id); ?> connect(); if (empty ($_SESSION['error']) || $_SESSION['indexation']) { $comp_fields = ''; $db->query("select type_id from " . $table . " where res_id = " . $s_id); if ($db->nb_result() > 0) { $res = $db->fetch_object(); $type_id = $res->type_id; $indexes = $type->get_indexes($type_id, $coll_id, 'minimal'); $comp_field = ''; for ($i = 0; $i < count($indexes); $i++) { if (preg_match('/^custom_/', $indexes[$i])) // In the view all custom from res table begin with doc_ { $comp_field .= ', doc_' . $indexes[$i]; } else { $comp_field .= ', ' . $indexes[$i]; } } } $db->query("select * from ".$table." where res_id = ".$s_id.""); } ?>

(retrieve_coll_label_from_coll_id($coll_id); ?>)







nb_result() == 0) { ?>


.


true, 'img_priority' => true, 'img_type_id' => true, 'img_doc_date' => true, 'img_admission_date' => true, 'img_nature_id' => true, 'img_subject' => true, 'img_process_limit_date' => true, 'img_author' => true, 'img_destination' => true, 'img_arbox_id' => true, 'img_market' => true, 'img_project' => true ); $res = $db->fetch_object(); $typist = $res->typist; $format = $res->format; $filesize = $res->filesize; $creation_date = $db->format_date_db($res->creation_date, false); $fingerprint = $res->fingerprint; $work_batch = $res->work_batch; $page_count = $res->page_count; $is_paper = $res->is_paper; $scan_date = $db->format_date_db($res->scan_date); $scan_user = $res->scan_user; $scan_location = $res->scan_location; $scan_wkstation = $res->scan_wkstation; $scan_batch = $res->scan_batch; $doc_language = $res->doc_language; $indexes = $type->get_indexes($type_id, $coll_id); $policyId = $res->policy_id; $cycleId = $res->cycle_id; $isMultiDs = $res->is_multi_docservers; //print_r($indexes); //$db->show_array($indexes); foreach (array_keys($indexes) as $key) { if(preg_match('/^custom/', $key)){ $tmp = 'doc_' . $key; } else{ $tmp = $key; } if ($indexes[$key]['type'] == "date") { $res-> $tmp = $db->format_date_db($res-> $tmp, false); } $indexes[$key]['value'] = $res-> $tmp; $indexes[$key]['show_value'] = $res-> $tmp; if ($indexes[$key]['type'] == "string") { $indexes[$key]['show_value'] = $db->show_string($res-> $tmp); } elseif ($indexes[$key]['type'] == "date") { $indexes[$key]['show_value'] = $db->format_date_db($res-> $tmp, true); } } //$db->show_array($indexes); //$process_data = $is->get_process_data($coll_id, $s_id); $status = $res->status; if (!empty ($status)) { require_once ("core" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_manage_status.php"); $status_obj = new manage_status(); $res_status = $status_obj->get_status_data($status); if ($modify_doc) { $can_be_modified = $status_obj->can_be_modified($status); if (!$can_be_modified) { $modify_doc = false; } } } $mode_data = 'full'; if ($modify_doc) { $mode_data = 'form'; } foreach (array_keys($indexes) as $key) { $indexes[$key]['opt_index'] = true; if ($indexes[$key]['type_field'] == 'select') { for ($i = 0; $i < count($indexes[$key]['values']); $i++) { if ($indexes[$key]['values'][$i]['id'] == $indexes[$key]['value']) { $indexes[$key]['show_value'] = $indexes[$key]['values'][$i]['label']; break; } } } if (!$modify_doc) { $indexes[$key]['readonly'] = true; $indexes[$key]['type_field'] = 'input'; } else { $indexes[$key]['readonly'] = false; } } $data = get_general_data($coll_id, $s_id, $mode_data, $param_data); //$db->show_array($data); ?>

<?php echo _VIEW_DOC;?>   |  

 


show_array($data); ?> "category_id" && $key <> "priority" && $key <> "subject" ){ //$func->show_array($data[$key]); if ($i % 2 != 1 || $i == 0) // pair { ?>  '; } } $i++; } */ foreach(array_keys($data) as $key) { if ($key <> 'category_id') { if($i%2 != 1 || $i==0) // pair { $detailsExport .= ""; ?> "") { $folderTmp = $data[$key]['show_value']; $find1 = strpos($folderTmp, '('); $folder_id = substr($folderTmp, $find1, strlen($folderTmp)); $folder_id = str_replace("(", "", $folder_id); $folder_id = str_replace(")", "", $folder_id); } //$detailsExport .= ""; ?> "; $detailsExport .= ""; ?>  "; echo ''; } } $i++; } } ?>
"") { echo ""; ?> <?php echo $data[$key]['label'];?> <?php echo $data[$key]['label'];?> :
"; ?> "; if($folder_id <> "") { echo ""; ?> <?php echo $data[$key]['label'];?> <?php echo $data[$key]['label'];?> "; ?> : "; ?>
"; ?>
 
<?php echo _STATUS.' : '.$res_status['LABEL'];?> :
0) { ?>


 '; } } $i++; } ?>
<?php echo $indexes[$key]['label'];?> : size="40" title="" alt="" />

is_module_loaded('notes')) { $selectNotes = "select id, identifier, user_id, date_note, note_text from " . $_SESSION['tablename']['not_notes'] . " where identifier = " . $s_id . " and coll_id ='" . $_SESSION['collection_id_choice'] . "' order by date_note desc"; $dbNotes = new dbquery(); $dbNotes->connect(); $dbNotes->query($selectNotes); //$dbNotes->show(); $nb_notes_for_title = $dbNotes->nb_result(); if ($nb_notes_for_title == 0) { $extend_title_for_notes = ''; } else { $extend_title_for_notes = " (" . $nb_notes_for_title . ") "; } ?>
select($select_notes, $where_notes, "order by " . $_SESSION['tablename']['not_notes'] . ".date_note desc", $_SESSION['config']['databasetype'], "500", true, $_SESSION['tablename']['not_notes'], $_SESSION['tablename']['users'], "user_id"); ?>