|
@@ -24,6 +24,7 @@ class TableAjax extends ViewAjax {
|
|
|
public $_filterInit = null;
|
|
public $_filterInit = null;
|
|
|
public $_forceFilterInit = null;
|
|
public $_forceFilterInit = null;
|
|
|
public $showProcesInitFiltr = null;
|
|
public $showProcesInitFiltr = null;
|
|
|
|
|
+ public $showTableTools = null;
|
|
|
public $useUserTableFilter = false;
|
|
public $useUserTableFilter = false;
|
|
|
public $syncUrl = null;
|
|
public $syncUrl = null;
|
|
|
|
|
|
|
@@ -391,6 +392,7 @@ class TableAjax extends ViewAjax {
|
|
|
$hasPermCreate = Core_AclHelper::hasCreatePerms($acl);
|
|
$hasPermCreate = Core_AclHelper::hasCreatePerms($acl);
|
|
|
|
|
|
|
|
$jsToogleFiltrProcesuFunctionName = 'tableAjaxToggleFiltrProcesInit';
|
|
$jsToogleFiltrProcesuFunctionName = 'tableAjaxToggleFiltrProcesInit';
|
|
|
|
|
+ $jsToogleTableToolsFunctionName = 'tableAjaxToggleTableTools';
|
|
|
ob_start();
|
|
ob_start();
|
|
|
$this->renderStatic($tblAjaxMap);
|
|
$this->renderStatic($tblAjaxMap);
|
|
|
UI::startContainer();
|
|
UI::startContainer();
|
|
@@ -415,10 +417,10 @@ class TableAjax extends ViewAjax {
|
|
|
if ($this->showProcesInitFiltr) {
|
|
if ($this->showProcesInitFiltr) {
|
|
|
echo UI::h('div', [ 'class' => "btn-group pull-right" ], [
|
|
echo UI::h('div', [ 'class' => "btn-group pull-right" ], [
|
|
|
UI::h('a', [ 'class' => "btn btn-xs btn-info dropdown-toggle",
|
|
UI::h('a', [ 'class' => "btn btn-xs btn-info dropdown-toggle",
|
|
|
- 'data-toggle' => "dropdown",
|
|
|
|
|
- 'href' => "#",
|
|
|
|
|
- 'title' => "Uruchom filtr procesu powiązanego z tabelą " . $this->getLabel(),
|
|
|
|
|
- 'onclick' => "return {$jsToogleFiltrProcesuFunctionName}(this);",
|
|
|
|
|
|
|
+ 'data-toggle' => "dropdown",
|
|
|
|
|
+ 'href' => "#",
|
|
|
|
|
+ 'title' => "Uruchom filtr procesu powiązanego z tabelą " . $this->getLabel(),
|
|
|
|
|
+ 'onclick' => "return {$jsToogleFiltrProcesuFunctionName}(this);",
|
|
|
], "Filtr procesu <span class=\"caret\"></span>"),
|
|
], "Filtr procesu <span class=\"caret\"></span>"),
|
|
|
UI::h('ul', [ 'class' => "dropdown-menu pull-left", 'style' => "max-height:250px;overflow:auto;" ], [
|
|
UI::h('ul', [ 'class' => "dropdown-menu pull-left", 'style' => "max-height:250px;overflow:auto;" ], [
|
|
|
UI::h('li', [ 'class' => "disabled" ], [
|
|
UI::h('li', [ 'class' => "disabled" ], [
|
|
@@ -427,6 +429,22 @@ class TableAjax extends ViewAjax {
|
|
|
]),
|
|
]),
|
|
|
]);
|
|
]);
|
|
|
}
|
|
}
|
|
|
|
|
+ if ($this->showTableTools) {
|
|
|
|
|
+ echo UI::h('div', [ 'class' => "btn-group pull-right" ], [
|
|
|
|
|
+ UI::h('a', [ 'class' => "btn btn-xs btn-default dropdown-toggle",
|
|
|
|
|
+ 'style' => "margin-right:16px",
|
|
|
|
|
+ 'data-toggle' => "dropdown",
|
|
|
|
|
+ 'href' => "#",
|
|
|
|
|
+ 'title' => "Narzędzia powiązane z tabelą " . $this->getLabel(),
|
|
|
|
|
+ 'onclick' => "return {$jsToogleTableToolsFunctionName}(this);",
|
|
|
|
|
+ ], "Narzędzia <span class=\"caret\"></span>"),
|
|
|
|
|
+ UI::h('ul', [ 'class' => "dropdown-menu pull-left", 'style' => "max-height:250px;overflow:auto;" ], [
|
|
|
|
|
+ UI::h('li', [ 'class' => "disabled" ], [
|
|
|
|
|
+ UI::h('a', [ 'href' => "#", 'onclick' => "return false;" ], " loading ... "),
|
|
|
|
|
+ ]),
|
|
|
|
|
+ ]),
|
|
|
|
|
+ ]);
|
|
|
|
|
+ }
|
|
|
?>
|
|
?>
|
|
|
<?php if ($this->_tbl == 'IN7_MK_BAZA_DYSTRYBUCJI') : ?>
|
|
<?php if ($this->_tbl == 'IN7_MK_BAZA_DYSTRYBUCJI') : ?>
|
|
|
<a class="pull-right" style="padding:0 20px 0 0;" href="<?= "index.php?MENU_INIT=TREEJS&ZASOB_ID={$this->_zasobID}"; ?>"><i class="glyphicon glyphicon-eye-open"></i> Drzewo</a>
|
|
<a class="pull-right" style="padding:0 20px 0 0;" href="<?= "index.php?MENU_INIT=TREEJS&ZASOB_ID={$this->_zasobID}"; ?>"><i class="glyphicon glyphicon-eye-open"></i> Drzewo</a>
|
|
@@ -442,12 +460,19 @@ class TableAjax extends ViewAjax {
|
|
|
<?php
|
|
<?php
|
|
|
UI::inlineJS(__FILE__ . '.generateFunctionNode.js');
|
|
UI::inlineJS(__FILE__ . '.generateFunctionNode.js');
|
|
|
UI::inlineJS(__FILE__ . '.GeomField.js');
|
|
UI::inlineJS(__FILE__ . '.GeomField.js');
|
|
|
- $clsName = __CLASS__;
|
|
|
|
|
- UI::inlineJS(__FILE__ . '.procesInitFiltr.js', [
|
|
|
|
|
- 'JS_FUNCTION_NAME' => $jsToogleFiltrProcesuFunctionName,
|
|
|
|
|
- 'URL_GET_PROCES_INIT_FILTR' => $this->showProcesInitFiltr,
|
|
|
|
|
- 'ID_ZASOB' => $this->_zasobID,
|
|
|
|
|
- ]);
|
|
|
|
|
|
|
+ if ($this->showProcesInitFiltr) {
|
|
|
|
|
+ UI::inlineJS(__FILE__ . '.procesInitFiltr.js', [
|
|
|
|
|
+ 'JS_FUNCTION_NAME' => $jsToogleFiltrProcesuFunctionName,
|
|
|
|
|
+ 'URL_GET_PROCES_INIT_FILTR' => $this->showProcesInitFiltr,
|
|
|
|
|
+ 'ID_ZASOB' => $this->_zasobID,
|
|
|
|
|
+ ]);
|
|
|
|
|
+ }
|
|
|
|
|
+ if ($this->showTableTools) {
|
|
|
|
|
+ UI::inlineJS(__FILE__ . '.tableTools.js', [
|
|
|
|
|
+ 'JS_FUNCTION_NAME' => $jsToogleTableToolsFunctionName,
|
|
|
|
|
+ 'URL_GET_TABLE_TOOLS' => $this->showTableTools,
|
|
|
|
|
+ ]);
|
|
|
|
|
+ }
|
|
|
?>
|
|
?>
|
|
|
<script>
|
|
<script>
|
|
|
(function($, undefined) {
|
|
(function($, undefined) {
|