Jelajahi Sumber

rm not used functions in TableAjax

Piotr Labudda 7 tahun lalu
induk
melakukan
a407db7134
1 mengubah file dengan 1 tambahan dan 54 penghapusan
  1. 1 54
      SE/se-lib/TableAjax.php

+ 1 - 54
SE/se-lib/TableAjax.php

@@ -191,7 +191,7 @@ class TableAjax extends ViewAjax {
 		//$defaultRowFunction['files'] = '<a href="#FILES/{0}" class="glyphicon glyphicon-folder-open" title="Pliki"></a>';
 		//$defaultRowFunction['cp'] = '<a href="#" class="glyphicon glyphicon-plus-sign" title="Kopiuj rekord" onclick="return tableAjaxCopy({0});"></a>';
 
-		$defaultRowFunction['edit'] = [ 'href'=>'#EDIT/{0}', 'ico'=>'glyphicon glyphicon-pencil', 'title'=>'Edytuj rekord', 'class' => "btn btn-xs btn-link" ];
+		$defaultRowFunction['edit'] = [ 'href'=>'#EDIT/{0}', 'ui-function' => "editFeature", 'ico'=>'glyphicon glyphicon-pencil', 'title'=>'Edytuj rekord', 'class' => "btn btn-xs btn-link" ];
 		$defaultRowFunction['hist'] = [ 'href'=>'#HIST/{0}', 'ico'=>'glyphicon glyphicon-book', 'title'=>'Historia', 'class' => "btn btn-xs btn-link" ];
 		$defaultRowFunction['files'] = [ 'href'=>'#FILES/{0}', 'ico'=>'glyphicon glyphicon-folder-open', 'title'=>'Pliki', 'class' => "btn btn-xs btn-link" ];
 		$defaultRowFunction['cp'] = [ 'href'=>'#', 'ico'=>'glyphicon glyphicon-plus-sign', 'title'=>'Kopiuj rekord', 'onclick'=>'return tableAjaxCopy({0});', 'class' => "btn btn-xs btn-link" ];
@@ -543,59 +543,6 @@ class TableAjax extends ViewAjax {
 		return ob_get_clean();
 	}
 
-	public function _viewProcesInitListItem($vInitId, $gotoIds, $pInitList) {
-		$vLabel = $pInitList[$vInitId];
-		$kId = $vInitId;
-		echo UI::h('a', [
-			'href' => "index.php?FUNCTION_INIT=MENU_SELECT_PROCES&_action=setPermsByProces&id_proces={$kId}&MENU_INIT=VIEWTABLE_AJAX&ZASOB_ID={$this->_zasobID}",
-			'title' => htmlspecialchars("{{$kId}} {$vLabel}"),
-		], [
-			UI::h('i', [
-				'class' => "glyphicon glyphicon-info-sign",
-				 'onclick' => "window.open('procesy5.php?task=PROCES_VIEW_LIST&id_proces={$kId}&HIDE_PANEL=0&show_big_img=1&group_stanowiska=1');return false;",
-				 'style' => "color:#aaa",
-				 'onmouseover' => "this.style.color='#337AB7'",
-				 'onmouseout' => "this.style.color='#aaa'"]),
-			"{{$kId}} {$vLabel}"
-		]);
-	}
-	public function _viewProcesGotoAndRetListItem($vGotoId, $pInitList) {
-		$vLabel = $pInitList[$vGotoId];
-		$kId = $vGotoId;
-		// TODO:?: prevent to execute procedure
-		echo UI::h('a', [
-			'href' => "index.php?FUNCTION_INIT=MENU_SELECT_PROCES&_action=setPermsByProces&id_proces={$kId}&MENU_INIT=VIEWTABLE_AJAX&ZASOB_ID={$this->_zasobID}",
-			'title' => htmlspecialchars("{{$kId}} {$vLabel}"),
-		], [
-			UI::h('span', [ 'style' => "padding:10px;"]),
-			UI::h('i', [ 'class' => "glyphicon glyphicon-arrow-right", 'style' => "color:#aaa"]),
-			UI::h('i', [ 'class' => "glyphicon glyphicon-info-sign",
-				 'onclick' => "window.open('procesy5.php?task=PROCES_VIEW_LIST&id_proces={$kId}&HIDE_PANEL=0&show_big_img=1&group_stanowiska=1');return false;",
-				 'style' => "color:#aaa",
-				 'onmouseover' => "this.style.color='#337AB7'",
-				 'onmouseout' => "this.style.color='#aaa'"]),
-			"{{$kId}} {$vLabel}",
-		]);
-	}
-	public function _viewProcesGotoAndRetLvl2ListItem($vGotoLvl2Id, $pInitList) {
-		$vLabel = $pInitList[$vGotoLvl2Id];
-		$kId = $vGotoLvl2Id;
-		// TODO:?: prevent to execute procedure
-		echo UI::h('a', [
-			'href' => "index.php?FUNCTION_INIT=MENU_SELECT_PROCES&_action=setPermsByProces&id_proces={$kId}&MENU_INIT=VIEWTABLE_AJAX&ZASOB_ID={$this->_zasobID}",
-			'title' => htmlspecialchars("{{$kId}} {$vLabel}"),
-		], [
-			UI::h('span', [ 'style' => "padding:20px;" ]),
-			UI::h('i', [ 'class' => "glyphicon glyphicon-arrow-right", 'style' => "color:#aaa" ]),
-			UI::h('i', [ 'class' => "glyphicon glyphicon-info-sign",
-				 'onclick' => "window.open('procesy5.php?task=PROCES_VIEW_LIST&id_proces={$kId}&HIDE_PANEL=0&show_big_img=1&group_stanowiska=1');return false;",
-				 'style' => "color:#aaa",
-				 'onmouseover' => "this.style.color='#337AB7'",
-				 'onmouseout' => "this.style.color='#aaa'"]),
-			"{{$kId}} {$vLabel}",
-		]);
-	}
-
 	public function hasAdditionalLayers() {
 		$layers = TableAjaxMap::getAdditionalLayers($this->_zasobID);
 		return !empty($layers);