$content .= 'allowedContent: true, });'; $content .= 'CKEDITOR.config.height = 400;'; $content .= '</script>'; $content .= '<div class="row">'; $content .= '<input type="submit" class="btn btn-primary btn-lg" name="add" value="' . Language::Word('save') . '">'; $content .= '</div>'; $content .= '</form>'; $title = Language::Word('report sending'); $header = $title; } else { if (isset($_REQUEST['edit'])) { global $link_to_utility_sql_worker; global $link_to_img_upload; global $link_to_img_browse; clear_tmp_images_dir(Report::$type, $id); clear_tmp_files_dir(Report::$type, $id); $head_addition .= '<script type="text/javascript" src="js/files_upload.js"></script>'; $ob_id = $_POST['id']; $ob = Report::FetchBy(['eq_conds' => ['id' => $ob_id], 'is_unique' => true]); $receivers = User::FetchBy(['select_list' => 'id, name, surname', 'where_addition' => '(received_reports LIKE ("%\\"' . $ob_id . '\\"%"))']); $users = ''; foreach ($receivers as $key => $user) { $users .= '<div class="row">'; $users .= '<div class="' . ColAllTypes(12) . '">'; $users .= $user->LinkToThis(); $users .= '</div>'; $users .= '</div>'; } if (Error::IsError($ob)) { $content = AlertMessage('alert-danger', 'Error occured during fetching: ' . Error::ToString($ob)); } else {
<?php $is_public = false; include_once 'utility_lgmis_lib.php'; include_once $link_to_utility_authorization; clear_tmp_files_dir(MyFile::$type, 0); $perms = MyFile::perm_to_only_empls; $user = User::FetchBy(['select_list' => 'position', 'eq_conds' => ['id' => GetUserID()], 'is_unique' => true]); if ($user->GetPositionNum() == NotEmployeeNum) { $perms = MyFile::perm_to_all_registered; } $header = ''; $content = ''; $footer = ''; if ($perms > MyFile::perm_to_all_registered) { $head_addition = '<script type="text/javascript" src="js/files_upload.js"></script>'; } $head_addition .= '<script type="text/javascript" src="js/file_manager.js"></script>'; $head_addition .= MakeScript('files_type="' . MyFile::$type . '"; author_id=' . GetUserID() . '; max_files=10; files_action="add";'); $content .= '<div style="display: table; width: 100%; height: 80%;">'; $content .= '<div class="row" style="height: 100%; display: table-row;">'; $col_width = 8; if ($perms <= MyFile::perm_to_all_registered) { $col_width = 12; } $content .= '<div class="' . ColAllTypes($col_width) . ' modal-open" style="border: 3px solid #dadada; display: table-cell; float: none;">'; $content .= '<ol class="breadcrumb" id="current_manager_path" align="left">'; $content .= '<li><a href="#" onclick="goUpDir(0);">Home</a></li>'; $content .= '</ol>'; $content .= '<div class="row" id="files_place"></div>'; $content .= '<div id="file_backdrop_area" align="center"></div>';