|
@@ -48,7 +48,6 @@ require_once APP_PATH_ROOT . DS . 'procesy' . DS . 'ext_ids.php';
|
|
require_once APP_PATH_ROOT . DS . 'procesy' . DS . 'search.php';// CRM_SEARCH
|
|
require_once APP_PATH_ROOT . DS . 'procesy' . DS . 'search.php';// CRM_SEARCH
|
|
// TODO: if (App::is_ajax_request())
|
|
// TODO: if (App::is_ajax_request())
|
|
require_once APP_PATH_ROOT . DS . 'procesy' . DS . 'ajax.php';
|
|
require_once APP_PATH_ROOT . DS . 'procesy' . DS . 'ajax.php';
|
|
-require_once APP_PATH_ROOT . DS . 'se-lib' . DS . 'SE_Layout.php';// CRM_SEARCH
|
|
|
|
|
|
|
|
|
|
|
|
// ========== SESSION set default session values ==============
|
|
// ========== SESSION set default session values ==============
|
|
@@ -155,39 +154,31 @@ function User_procesy5_check_access() {
|
|
|
|
|
|
function lay_procesy_gora() {
|
|
function lay_procesy_gora() {
|
|
|
|
|
|
- $title = SE_Layout::getTitle().' procesy';
|
|
|
|
|
|
+ $title = UI::getTitle().' procesy';
|
|
if (($id_proces = V::get('id_proces', 0, $_GET, 'int')) > 0) {
|
|
if (($id_proces = V::get('id_proces', 0, $_GET, 'int')) > 0) {
|
|
$title = "Proces {{$id_proces}}";
|
|
$title = "Proces {{$id_proces}}";
|
|
}
|
|
}
|
|
-?><!DOCTYPE html>
|
|
|
|
-<html>
|
|
|
|
-<head>
|
|
|
|
- <meta charset="utf-8" />
|
|
|
|
- <title><?php echo $title; ?></title>
|
|
|
|
- <link rel="shortcut icon" type="image/x-icon" href="./favicon.png?v=0.1">
|
|
|
|
- <meta name="author" content="Piotr Labudda <piotrl86@gmail.com>" />
|
|
|
|
- <link rel="stylesheet" href="stuff/bootstrap/css/bootstrap.min.css" type="text/css" />
|
|
|
|
- <link rel="stylesheet" href="stuff/jquery-ui-smoothness/jquery-ui-1.10.4.custom.min.css" type="text/css">
|
|
|
|
- <link rel="stylesheet" href="stuff/main.css" type="text/css" />
|
|
|
|
- <style type="text/css">
|
|
|
|
-body { <?php echo UI::fixFooterPosition('body_style'); ?> }
|
|
|
|
- </style>
|
|
|
|
- <style type="text/css">
|
|
|
|
-.popover-with-html .popover-heading {display:none;}
|
|
|
|
-.popover-with-html .popover-body {display:none;}
|
|
|
|
- </style>
|
|
|
|
- <script src="stuff/jquery-2.1.0.min.js"></script>
|
|
|
|
- <script src="stuff/jquery-plugins.js"></script>
|
|
|
|
- <script src="stuff/bootstrap/js/bootstrap.min.js"></script>
|
|
|
|
- <script src="stuff/jquery-ui-1.10.4.custom.min.js"></script>
|
|
|
|
- <script>
|
|
|
|
|
|
+
|
|
|
|
+ ob_start();
|
|
|
|
+ App::show_head_css();
|
|
|
|
+ App::show_head_js();
|
|
|
|
+ $app_css_js = ob_get_clean();
|
|
|
|
+
|
|
|
|
+ UI::gora([
|
|
|
|
+ 'title' => $title,
|
|
|
|
+ 'childrens' => implode("\n", [
|
|
|
|
+ UI::h('style', [ 'type' => "text/css" ], "
|
|
|
|
+ .popover-with-html .popover-heading {display:none;}
|
|
|
|
+ .popover-with-html .popover-body {display:none;}
|
|
|
|
+ "),
|
|
|
|
+ '<script>
|
|
jQuery(document).ready(function(){
|
|
jQuery(document).ready(function(){
|
|
jQuery(".popover-with-html").popover({
|
|
jQuery(".popover-with-html").popover({
|
|
html: true,
|
|
html: true,
|
|
- trigger: 'hover',
|
|
|
|
|
|
+ trigger: "hover",
|
|
animation: false,
|
|
animation: false,
|
|
- container: 'body',
|
|
|
|
- placement: 'top',
|
|
|
|
|
|
+ container: "body",
|
|
|
|
+ placement: "top",
|
|
content: function() {
|
|
content: function() {
|
|
return jQuery(this).children(".popover-body").html();
|
|
return jQuery(this).children(".popover-body").html();
|
|
},
|
|
},
|
|
@@ -196,56 +187,19 @@ jQuery(document).ready(function(){
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
- </script>
|
|
|
|
- <link rel="stylesheet" href="stuff/jquery.selectize/css/selectize.bootstrap3.css" type="text/css" />
|
|
|
|
- <script src="stuff/jquery.selectize/js/standalone/selectize.min.js"></script>
|
|
|
|
- <style type="text/css">
|
|
|
|
-.typepsecial .selectize-input { width:366px; padding:4px 6px; }
|
|
|
|
-.typepsecial .selectize-control::before {
|
|
|
|
- -moz-transition: opacity 0.2s;
|
|
|
|
- -webkit-transition: opacity 0.2s;
|
|
|
|
- transition: opacity 0.2s;
|
|
|
|
- content: ' ';
|
|
|
|
- z-index: 2;
|
|
|
|
- position: absolute;
|
|
|
|
- display: block;
|
|
|
|
- top: 12px;
|
|
|
|
- right: 34px;
|
|
|
|
- width: 16px;
|
|
|
|
- height: 16px;
|
|
|
|
- background: url(stuff/i/loading.gif);
|
|
|
|
- background-size: 16px 16px;
|
|
|
|
- opacity: 0;
|
|
|
|
-}
|
|
|
|
-.typepsecial .selectize-control.loading::before {
|
|
|
|
- opacity: 0.4;
|
|
|
|
-}
|
|
|
|
-.typepsecial .selectize-control.single .selectize-input {
|
|
|
|
- color: #333;
|
|
|
|
- text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
|
|
|
|
- background-color: #fff;
|
|
|
|
- background-image: none;
|
|
|
|
- background-repeat: none;
|
|
|
|
- border-color: #ccc;
|
|
|
|
- filter: none;
|
|
|
|
- -webkit-box-shadow: none;
|
|
|
|
- -moz-box-shadow: none;
|
|
|
|
- box-shadow: none;
|
|
|
|
|
|
+ </script>',
|
|
|
|
+ $app_css_js,
|
|
|
|
+ lay_procesy_css(),
|
|
|
|
+ ]),
|
|
|
|
+ ]);
|
|
|
|
+ echo "\n";
|
|
}
|
|
}
|
|
- </style>
|
|
|
|
- <?php
|
|
|
|
- lay_procesy_css();
|
|
|
|
- App::show_head_css();
|
|
|
|
- App::show_head_js();
|
|
|
|
- S::timeout_update_js();
|
|
|
|
- echo'</head>'."\n";
|
|
|
|
- echo'<body>'."\n";
|
|
|
|
|
|
+if ('YES' != V::get('HEADER_NOT_INIT', '', $_REQUEST)) {
|
|
|
|
+ lay_procesy_gora();
|
|
}
|
|
}
|
|
-if ('YES' != V::get('HEADER_NOT_INIT', '', $_REQUEST))
|
|
|
|
-lay_procesy_gora();
|
|
|
|
|
|
|
|
function ECHOO($VAR) {
|
|
function ECHOO($VAR) {
|
|
-echo "$VAR";
|
|
|
|
|
|
+ echo "$VAR";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -1585,7 +1539,7 @@ function lay_procesy_dol() {
|
|
if (1 == V::get('HIDE_PANEL', 0, $_REQUEST, 'int')) {
|
|
if (1 == V::get('HIDE_PANEL', 0, $_REQUEST, 'int')) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- SE_Layout::dol();
|
|
|
|
|
|
+ UI::dol();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -1598,8 +1552,7 @@ function lay_procesy_user_panel() {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- Lib::loadClass('SE_Layout');
|
|
|
|
- SE_Layout::menu();
|
|
|
|
|
|
+ UI::menu();
|
|
return;
|
|
return;
|
|
|
|
|
|
echo "\n".'<div id="GORA">'."\n";
|
|
echo "\n".'<div id="GORA">'."\n";
|
|
@@ -1668,8 +1621,7 @@ foreach ($menu as $k_task => $v_menu) {
|
|
|
|
|
|
|
|
|
|
function lay_procesy_css() {
|
|
function lay_procesy_css() {
|
|
- echo'<style type="text/css">';
|
|
|
|
-echo"
|
|
|
|
|
|
+ return '<style type="text/css">' . "\n" . "
|
|
body { margin:0; font-size:small; }
|
|
body { margin:0; font-size:small; }
|
|
#body_content { padding:10px; }
|
|
#body_content { padding:10px; }
|
|
#body_content h1{ margin:13px 0;color:#000; }
|
|
#body_content h1{ margin:13px 0;color:#000; }
|
|
@@ -1801,8 +1753,7 @@ a.btn-sm {font-size:x-small;}
|
|
.user-menu-tree {color:#666;font-weight:normal;}
|
|
.user-menu-tree {color:#666;font-weight:normal;}
|
|
.user-menu-PROCES_INIT {color:#f00;font-weight:bold;}
|
|
.user-menu-PROCES_INIT {color:#f00;font-weight:bold;}
|
|
|
|
|
|
-";
|
|
|
|
- echo'</style>' . "\n";
|
|
|
|
|
|
+" . '</style>' . "\n";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|