. */ /* * @brief view technical informations * * @file * @author Laurent Giovannoni * @date $date$ * @version $Revision$ * @ingroup apps */ require_once('core' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'class_request.php'); require_once('core' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'class_functions.php'); require_once('core' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'class_security.php'); require_once('core' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'class_resource.php'); require_once('core' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'docservers_controler.php'); $security = new security(); $right = $security->test_right_doc($_SESSION['collection_id_choice'], $_SESSION['doc_id']); if(!$right){ exit(_NO_RIGHT_TXT); } $func = new functions(); $coreTools = new core_tools(); $coreTools->test_user(); $coreTools->load_lang(); $coreTools->load_html(); $coreTools->load_header('', true, false); $coreTools->load_js(); $db = new Database(); if (!isset ($_SESSION['collection_id_choice']) || empty ($_SESSION['collection_id_choice']) ) { $collId = 'res_coll'; $table = 'res_view'; $adrTable = 'adr_x'; $isView = true; } else { $collId = $_SESSION['collection_id_choice']; $table = $security->retrieve_view_from_coll_id($collId); $isView = true; if (empty ($table)) { $table = $security->retrieve_table_from_coll($collId); $isView = false; } } for ($cptColl = 0;$cptColl < count($_SESSION['collections']);$cptColl++) { if ($table == $_SESSION['collections'][$cptColl]['table'] || $table == $_SESSION['collections'][$cptColl]['view'] ) { $adrTable = $_SESSION['collections'][$cptColl]['adr']; } } $selectRes = "SELECT * FROM " . $table . " WHERE res_id = ?"; $stmt = $db->query($selectRes, array($_SESSION['doc_id'])); $res = $stmt->fetchObject(); $typist = $res->typist; $format = $res->format; $filesize = $res->filesize; $docserverId = $res->docserver_id; $path = $res->path; $fileName = $res->filename; $creationDate = functions::format_date_db($res->creation_date, false); $fingerprint = $res->fingerprint; $offsetDoc = $res->offset_doc; $workBatch = $res->work_batch; $pageCount = $res->page_count; $isPaper = $res->is_paper; $scanDate = functions::format_date_db($res->scan_date); $scanUser = $res->scan_user; $scanLocation = $res->scan_location; $scanWkstation = $res->scan_wkstation; $scanBatch = $res->scan_batch; $docLanguage = $res->doc_language; $policyId = $res->policy_id; $cycleId = $res->cycle_id; $isMultiDs = $res->is_multi_docservers; if ($isMultiDs == 'Y') { $adr = array(); $resource = new resource(); $whereClause = ' and 1=1'; $adr = $resource->getResourceAdr( $table, $_SESSION['doc_id'], $whereClause, $adrTable ); } ?>


: : " />
: :
: :

is_module_loaded('life_cycle')) { ?>


  :   :


get( $adr[0][$cptAdr]['docserver_id'] ); echo '

' . functions::xssafe($adr[0][$cptAdr]['docserver_id']) . ' (' . functions::xssafe($docserver->device_label) . ')

'; ?>
  :   :
  :   :
  :   :
get($docserverId); echo '

' . functions::xssafe($docserverId) . ' (' . functions::xssafe($docserver->device_label) . ')

'; ?>
  :   :
  :   :
  :   :