<?php use Components\Classes\Disciplines; use Components\Entity\Discipline; page_scriptNeed('select2.min.js', '/js/select2/'); page_styleNeed('select2.css', '/js/select2/'); // $GUI->Vars["page_hdr"] = "Правим содержание, управляем датами и ценой для клиента."; page_scriptNeed('jquery-ui-1.10.3.custom.min.js', '/js/jquery-ui/js/'); page_styleNeed('jquery-ui-1.10.3.custom.min.css', '/js/jquery-ui/css/ui-lightness/'); $h = 1090; $frm = $GUI->Form("Редактирование заказа №" . $order_id, 650); $showOtdelKcomment = is_otdel_K($_SESSION["user"]["data"]['id']) || is_director($_SESSION["user"]["data"]['id']) || is_manager($_SESSION["user"]["data"]['id']); if ($showOtdelKcomment) { $h = 1130; } else { $h = 930; } $frm->height = $h; $frm->VLine(10, $h - 80, 630); $frm->Button("Сохранить", 205, $h - 60, 100, true); $frm->OnExecute = "edit_order"; $b = $frm->Button("К списку", 345, $h - 60, 100); $b->Event = "document.location.href=\"?section=ord&subsection=2\"; return false;"; $t = $frm->Hidden($order_id); $t->linkName = 'id'; $ypos = 10; kln_search_modal(); $frm->Label("Клиент", 10, $ypos); $ypos += 20; $s = $frm->Select(10, $ypos, 450, array(0 => "-выберите-") + kln_getlist(), "", $order_info['klient_id']); //0
<?php use Components\Entity\Discipline; use Components\Classes\Disciplines; //if (!user_has_right("sotr_w")) page_ReloadSec(); page_scriptNeed('jquery-ui-1.10.3.custom.min.js', '/js/jquery-ui/js/'); page_styleNeed('jquery-ui-1.10.3.custom.min.css', '/js/jquery-ui/css/ui-lightness/'); page_scriptNeed('select2.min.js', '/js/select2/'); page_styleNeed('select2.css', '/js/select2/'); $defdata = array(); $defdata["klient"] = false; $defdata["vuz"] = 0; $defdata["vuz_usr"] = ""; $defdata["kurs"] = 0; $defdata["work"] = 0; $defdata["work_usr"] = ""; $defdata["napr"] = 0; $defdata["disc"] = 0; $defdata["disc_usr"] = ""; $defdata["date"] = ""; $defdata["prakt"] = 0; $defdata["pgmin"] = ""; $defdata["pgmax"] = ""; $defdata["srcmin"] = ""; $defdata["srcmax"] = ""; $defdata["opl"] = 0; $defdata["take"] = 0; $defdata["skid"] = 0; $defdata["skidt"] = 0; $defdata["cost"] = 0; $defdata["fontnm"] = 14;
function __construct($x, $y, $w, $h, $v) { $this->left = $x; $this->top = $y; $this->width = $w; $this->height = $h; $this->defval = $v; page_scriptNeed("redactor.js", "js/redactor"); page_styleNeed("redactor.css", "js/redactor/css/"); }
use Components\Entity\OrderStatus; if (isset($_REQUEST["ordfldscfg"])) { if (isset($_POST["flds"])) { $_SESSION["user"]["data"]["conf_ordfld"] = serialize($_POST["flds"]); } else { $_SESSION["user"]["data"]["conf_ordfld"] = serialize(array()); } Employee::update($_SESSION["user"]["data"]["id"], array('conf_ordfld' => $_SESSION["user"]["data"]["conf_ordfld"])); $_SESSION["ordfldscfg"] = true; $GUI->OK("Выполнено"); die(""); } page_scriptNeed('instant_edit.js', '/js/'); page_scriptNeed('color_picker.js', '/js/'); page_scriptNeed('jquery.colorPicker.js', '/js/simpleColorPicker/'); page_styleNeed('colorPicker.css', '/js/simpleColorPicker/'); global $data_users, $data_filials, $data_vuz, $data_payments, $data_napravl, $data_worktypes, $data_discip; //////////// Filters $Filter = $GUI->FltrCol("ord", "data_users:conf_ordfltr"); $Filter->SrcTable = TABLE_ORDERS; $Filter->DstTable = "orders_tmp_" . $_SESSION["user"]["data"]["id"]; // Добавляем фильтры if (!is_author($_SESSION['user']['data']['id'])) { $f = $Filter->AddFilter("CGUI_FilterSelect"); $f->name = "Клиент"; $f->keyid = "klient_id"; $f->SetSelectData(kln_getrawlist(), "fio"); $flt_kln_id = $f->id; } $f = $Filter->AddFilter("CGUI_FilterSelect"); $f->name = "Филиал";
function __construct() { page_styleNeed("style.css", "gui/skin"); page_scriptNeed("1.7.2.jquery.js"); page_scriptNeed("gui.js", "gui"); $this->mmenu = new CGUI_MainMenu(); $this->informer = new CGUI_Informer(); $this->cmdmenu = new CGUI_CmdMenu(); }