* @date $date$ * @version $Revision$ * @ingroup apps */ /** * $confirm bool false */ $confirm = false; /** * $etapes array Contains only one etap : form */ $etapes = array('form'); /** * $frm_width Width of the modal (empty) */ $frm_width=''; /** * $frm_height Height of the modal (empty) */ $frm_height = ''; /** * $mode_form Mode of the modal : fullscreen */ $mode_form = 'fullscreen'; $_ENV['date_pattern'] = "/^[0-3][0-9]-[0-1][0-9]-[1-2][0-9][0-9][0-9]$/"; function writeLogIndex($EventInfo) { $logFileOpened = fopen($_SESSION['config']['logdir']."visa_mail.log", 'a'); fwrite($logFileOpened, '[' . date('d') . '/' . date('m') . '/' . date('Y') . ' ' . date('H') . ':' . date('i') . ':' . date('s') . '] ' . $EventInfo . "\r\n" ); fclose($logFileOpened); } function get_form_txt($values, $path_manage_action, $id_action, $table, $module, $coll_id, $mode ) { //DECLARATIONS include('apps'.DIRECTORY_SEPARATOR.$_SESSION['config']['app_id'].DIRECTORY_SEPARATOR.'definition_mail_categories.php'); require_once "modules" . DIRECTORY_SEPARATOR . "visa" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_modules_tools.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_business_app_tools.php"); require_once("modules" . DIRECTORY_SEPARATOR . "basket" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_modules_tools.php"); require_once("apps" . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_types.php"); require_once("core" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_request.php"); //INSTANTIATE $sec = new security(); $core_tools = new core_tools(); $b = new basket(); $type = new types(); $business = new business_app_tools(); $visa = new visa(); $db = new Database(); //INITIALIZE $frm_str = ''; unset($_SESSION['m_admin']['contact']); $_SESSION['req'] = "action"; $res_id = $values[0]; $_SESSION['doc_id'] = $res_id; $_SESSION['current_basket']['lastBasketFromAction'] = $_SESSION['current_basket']['id']; $view = $sec->retrieve_view_from_coll_id($coll_id); $stmt = $db->query("select alt_identifier, status from " . $view . " where res_id = ?", array($res_id)); $resChrono = $stmt->fetchObject(); $chrono_number = $resChrono->alt_identifier; //LAUNCH DOCLOCKER $docLockerCustomPath = 'apps/maarch_entreprise/actions/docLocker.php'; $docLockerPath = $_SESSION['config']['businessappurl'] . '/actions/docLocker.php'; if (is_file($docLockerCustomPath)){ require_once $docLockerCustomPath; }else if (is_file($docLockerPath)){ require_once $docLockerPath; }else{ exit("can't find docLocker.php"); } $docLocker = new docLocker($res_id); if (!$docLocker->canOpen()) { $docLockerscriptError = ''; return $docLockerscriptError; } // DocLocker constantly $frm_str .= ''; $docLocker->lock(); //MODAL CONTENT $frm_str .= '

' . _VISA_MAIL . ' ' . _NUM . ''; if(_ID_TO_DISPLAY == 'res_id'){ $frm_str .= $res_id; } else if (_ID_TO_DISPLAY == 'chrono_number'){ $frm_str .= $chrono_number; } $frm_str .=''; $frm_str .= '

'; $frm_str .=''; $frm_str .= ''; $frm_str .= '
'; $pathScriptTab = $_SESSION['config']['businessappurl'].'index.php?display=true&page=show_visaListDocBasket_tab&module=visa&resId='. $res_id.'&collId='.$coll_id.'&view='.$view; $frm_str .= ''; $frm_str .= ''; $frm_str .= ''; $frm_str .= '
'; //List of documents $frm_str .= ''; $frm_str .= ''; $frm_str .= '