function __construct() { page_scriptNeed("gui_table.js", "gui"); }
<?php use Components\Entity\Message; page_scriptNeed("scripts.js", "modules/mls"); function _email_notification_delete($value, $row, $table, &$info) { return '<a href="#" onclick="email_notification_delete(' . $row['id'] . ');">Удалить</a>'; } if (isset($_REQUEST["ids_to_read"])) { $n = 0; $ids = explode(";", $_REQUEST["ids_to_read"]); foreach ($ids as $id) { if (intval($id) > 0) { $message = Message::find($id); if ($message) { if ($message["addr"] == "u" . $_SESSION["user"]["data"]["id"]) { mls_setreaded($message); $n++; } } } } $GUI->OK("Отмечено писем: " . $n); die("" . $n); } if (isset($_REQUEST["ids_to_trash"])) { $n = 0; $ids = explode(";", $_REQUEST["ids_to_trash"]); foreach ($ids as $id) { if (intval($id) > 0) { $message = Message::find($id);
<?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
use Components\Entity\Employee; 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");
<?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;
<?php need_data('data_users'); page_scriptNeed("mls_checknewmsg.js", "modules/mls");
<?php page_scriptNeed("scripts.js", "modules/rights"); $GUI->tmpls[] = $active_module_root . "1.tmpl.php";
function __construct($cap, $w = 0, $h = 0, $f = 0) { $this->caption = $cap; if (!$w) { $this->width = 300; } else { $this->width = $w; } if (!$h) { $this->height = 200; } else { $this->height = $h; } $this->id = __get_new_form_id(); $this->idname = "cgui_form_" . $this->id; $this->flags = $f; if (CGUI_FORM_FLAG_MODAL & $f) { page_scriptNeed("jquery.simplemodal.min.js"); } }
function ModalFormEx($cap, $w = 0, $h = 0, $flags = 0) { $f = new CGUI_Form($cap, $w, $h, $flags | CGUI_FORM_FLAG_MODAL); page_scriptNeed("jquery.simplemodal.min.js"); $f->_gui = $this; return $f; }
function __construct($gui, $uname, $savecfg = "") { $this->_gui = $gui; $this->ses_ident = "cgui_filcol_" . $uname; $this->idname = "cgui_filcol_" . $uname; // Сюда добавляем фильтры если наборы не используются $this->curSet = new CGUI_FilterCollectionSet(""); $this->curSet->collection = $this; if (strpos($savecfg, ":") > 0) { $a = explode(":", $savecfg); $this->cfg_table = $a[0]; $this->cfg_field = $a[1]; } //parse URI $x = strpos($_SERVER["REQUEST_URI"], "?"); if ($x === false) { $this->uri = $_SERVER["REQUEST_URI"]; $this->uri .= "?section=" . $this->_gui->mmenu->selected->section; $this->uri .= "&subsection=" . $this->_gui->mmenu->selected->selected->section; } else { $this->uri = substr($_SERVER["REQUEST_URI"], 0, $x + 1); $s = substr($_SERVER["REQUEST_URI"], $x + 1); $m = explode("&", $s); foreach ($m as $v) { $m1 = explode("=", $v); $this->req[$m1[0]] = $m1[1]; if ($m1[0] == "section") { $this->uri .= "section=" . $m1[1]; } if ($m1[0] == "subsection") { $this->uri .= "&subsection=" . $m1[1]; } } } page_scriptNeed("gui_filters.js", "gui"); }