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);
$chrono_number = $res->alt_identifier;
$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;
$closing_date = $db->format_date_db($res->closing_date, false);
$indexes = $type->get_indexes($type_id, $coll_id);
if($core_tools->is_module_loaded('cases') == true)
{
require_once("modules".DIRECTORY_SEPARATOR."cases".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR.'class_modules_tools.php');
$case = new cases();
if ($res->case_id <> '')
$case_properties = $case->get_case_info($res->case_id);
}
//$db->show_array($indexes);
foreach(array_keys($indexes) as $key)
{
$tmp = 'doc_'.$key;
$indexes[$key]['value'] = $res->$tmp;
$indexes[$key]['show_value'] = $res->$tmp;
}
// $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
show_array($indexes);
$detailsExport = "";
$detailsExport = "";
$detailsExport = "Maarch Details ";
$detailsExport = " ";
$detailsExport = "";
?>
"._DETAILLED_PROPERTIES."";?>
"._FILE_DATA." ";?>
is_module_loaded('entities'))
{
$detailsExport .= ""._DIFF_LIST." ";
?>
get_listinstance($s_id);
//$db->show_array($_SESSION['details']['diff_list']);
?>
"._RECIPIENT."";
$detailsExport .= "
";
$detailsExport .= "";
$detailsExport .= " ";
$detailsExport .= "".$_SESSION['details']['diff_list']['dest']['firstname']." ";
$detailsExport .= "".$_SESSION['details']['diff_list']['dest']['lastname']." ";
$detailsExport .= "".$_SESSION['details']['diff_list']['dest']['entity_label']." ";
$detailsExport .= " ";
$detailsExport .= "
";
$detailsExport .= "
";
?>
0 || count($_SESSION['details']['diff_list']['copy']['entities']) > 0)
{
$detailsExport .= "
"._TO_CC."
";
$detailsExport .= "
";
?>
";
$detailsExport .= " ";
$detailsExport .= "".$_SESSION['details']['diff_list']['copy']['entities'][$i]['entity_id']." ";
$detailsExport .= "".$_SESSION['details']['diff_list']['copy']['entities'][$i]['entity_label']." ";
$detailsExport .= "";
?>
>
";
$detailsExport .= " ";
$detailsExport .= "".$_SESSION['details']['diff_list']['copy']['users'][$i]['firstname']." ";
$detailsExport .= "".$_SESSION['details']['diff_list']['copy']['users'][$i]['lastname']." ";
$detailsExport .= "".$_SESSION['details']['diff_list']['copy']['users'][$i]['entity_label']." ";
$detailsExport .= "";
?>
>
";
?>
"._PROCESS."";
?>
:
";
$detailsExport .= " ";
$detailsExport .= ""._ANSWER_TYPES_DONE." : ";
$answer_type = "";
if($process_data['simple_mail'] == true)
{
$answer_type .= _SIMPLE_MAIL.', ';
}
if($process_data['registered_mail'] == true)
{
$answer_type .= _REGISTERED_MAIL.', ';
}
if($process_data['direct_contact'] == true)
{
$answer_type .= _DIRECT_CONTACT.', ';
}
if($process_data['email'] == true)
{
$answer_type .= _EMAIL.', ';
}
if($process_data['fax'] == true)
{
$answer_type .= _FAX.', ';
}
if($process_data['no_answer'] == true)
{
$answer_type = _NO_ANSWER.', ';
}
if($process_data['other'] == true)
{
$answer_type .= " ".$process_data['other_answer_desc']."".', ';
}
$answer_type = preg_replace('/, $/', '', $answer_type);
$detailsExport .= $answer_type." ";
?>
";
$detailsExport .= ""._PROCESS_NOTES." : ";
$detailsExport .= $db->show_string($process_data['process_notes'])."";
?>
:
";
$detailsExport .= ""._CLOSING_DATE." : ";
$detailsExport .= $closing_date."";
?>
:
";
?>
is_module_loaded('attachments'))
{
$detailsExport .= ""._ATTACHED_DOC." : ";
$selectAttachments = "select res_id, creation_date, title, format from ".$_SESSION['tablename']['attach_res_attachments']." where res_id_master = ".$_SESSION['doc_id']." and coll_id ='".$_SESSION['collection_id_choice']."' and status <> 'DEL'";
$dbAttachments = new dbquery();
$dbAttachments->connect();
$dbAttachments->query($selectAttachments);
$detailsExport .= "";
$detailsExport .= "";
$detailsExport .= ""._ID." ";
$detailsExport .= ""._DATE." ";
$detailsExport .= ""._TITLE." ";
$detailsExport .= ""._FORMAT." ";
$detailsExport .= " ";
while($resAttachments = $dbAttachments->fetch_object())
{
$detailsExport .= "";
$detailsExport .= "".$resAttachments->res_id." ";
$detailsExport .= "".$resAttachments->creation_date." ";
$detailsExport .= "".$resAttachments->title." ";
$detailsExport .= "".$resAttachments->format." ";
$detailsExport .= " ";
}
$detailsExport .= "
";
?>
:
";
?>
is_module_loaded('notes'))
{
$selectNotes = "select id, identifier, user_id, date, note_text from ".$_SESSION['tablename']['not_notes']." where identifier = ".$s_id." and coll_id ='".$_SESSION['collection_id_choice']."' order by date desc";
$dbNotes = new dbquery();
$dbNotes->connect();
$dbNotes->query($selectNotes);
$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.") ";
}
?>
"._NOTES." : ";
$detailsExport .= "";
$detailsExport .= "";
$detailsExport .= ""._ID." ";
$detailsExport .= ""._DATE." ";
$detailsExport .= ""._NOTES." ";
$detailsExport .= ""._USER." ";
$detailsExport .= " ";
while($resNotes = $dbNotes->fetch_object())
{
$detailsExport .= "";
$detailsExport .= "".$resNotes->id." ";
$detailsExport .= "".$resNotes->date." ";
$detailsExport .= "".$resNotes->note_text." ";
$detailsExport .= "".$resNotes->user_id." ";
$detailsExport .= " ";
}
$detailsExport .= "
";
$select_notes[$_SESSION['tablename']['users']] = array();
array_push($select_notes[$_SESSION['tablename']['users']],"user_id","lastname","firstname");
$select_notes[$_SESSION['tablename']['not_notes']] = array();
array_push($select_notes[$_SESSION['tablename']['not_notes']],"id", "date", "note_text", "user_id");
$where_notes = " identifier = ".$s_id." ";
$request_notes = new request;
$tab_notes=$request_notes->select($select_notes,$where_notes,"order by ".$_SESSION['tablename']['not_notes'].".date desc",$_SESSION['config']['databasetype'], "500", true,$_SESSION['tablename']['not_notes'], $_SESSION['tablename']['users'], "user_id" );
?>
is_module_loaded('cases') == true)
{
?>
test_service('join_res_case', 'cases',false) == 1)
{
?>
";
$_SESSION['doc_convert'] = array();
$_SESSION['doc_convert']['details_result'] = $detailsExport;
$core_tools = new core_tools();
if($core_tools->is_module_loaded("doc_converter"))
{
require_once("modules".DIRECTORY_SEPARATOR."doc_converter".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_modules_tools.php");
$doc_converter = new doc_converter();
$doc_converter->convert_details($detailsExport);
}
?>