UI: API sortierbare Tabelle
This commit is contained in:
parent
883d5c3e29
commit
619b9ed53c
@ -4,5 +4,6 @@ require_once dirname(__FILE__).'/system/autoload.inc';
|
||||
require_once dirname(__FILE__).'/markdown/autoload.inc';
|
||||
require_once dirname(__FILE__).'/jquery/autoload.inc';
|
||||
require_once dirname(__FILE__).'/tablesort/autoload.inc';
|
||||
require_once dirname(__FILE__).'/tablesorter/autoload.inc';
|
||||
require_once dirname(__FILE__).'/bootstrap/autoload.inc';
|
||||
require_once dirname(__FILE__).'/tinymce/autoload.inc';
|
||||
@ -1 +1 @@
|
||||
Subproject commit e8b11f1d77cc3aa4187162dae17ca95211c2e567
|
||||
Subproject commit 50c248947ca1dbee5f85cc973a022914f4a0d900
|
||||
@ -1,4 +1,5 @@
|
||||
function init_saimod_sys_api() {
|
||||
$("#sai_mod_api_table").tablesorter();
|
||||
$('#tabs_api a').click(function (e) {
|
||||
$('#tabs_api li').each(function(){
|
||||
$(this).removeClass('active');});
|
||||
@ -35,8 +36,10 @@ function api_menu(){
|
||||
$('#menu_all').parent().addClass('active');}
|
||||
}
|
||||
function init_saimod_sys_api_list(){
|
||||
$("#sai_mod_api_table").tablesorter();
|
||||
api_menu();}
|
||||
function init_saimod_sys_api_delete(){
|
||||
$("#sai_mod_api_table").tablesorter();
|
||||
$('#del_api_del').click(function() {
|
||||
$.ajax({ url: './sai.php',
|
||||
data: { sai_mod: '.SYSTEM.SAI.saimod_sys_api',
|
||||
|
||||
@ -79,5 +79,5 @@ class saimod_sys_api extends \SYSTEM\SAI\SaiModule {
|
||||
public static function css(){
|
||||
return array(\SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_api/css/saimod_sys_api.css'));}
|
||||
public static function js(){
|
||||
return array( \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_api/js/saimod_sys_config.js'));}
|
||||
return array( \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_api/js/saimod_sys_api.js'));}
|
||||
}
|
||||
@ -1,25 +1,29 @@
|
||||
<div id="api_deletedialog">
|
||||
<h5>Api Call: ${ID}</h5>
|
||||
<hr>
|
||||
<table class="table sai_table">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Group</th>
|
||||
<th>Type</th>
|
||||
<th>ParentID</th>
|
||||
<th>ParentValue</th>
|
||||
<th>Name</th>
|
||||
<th>Verify</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>${ID}</td>
|
||||
<td>${group}</td>
|
||||
<td>${type}</td>
|
||||
<td>${parentID}</td>
|
||||
<td>${parentValue}</td>
|
||||
<td>${name}</td>
|
||||
<td>${verify}</td>
|
||||
</tr>
|
||||
<table class="table sai_table tablesorter">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Group</th>
|
||||
<th>Type</th>
|
||||
<th>ParentID</th>
|
||||
<th>ParentValue</th>
|
||||
<th>Name</th>
|
||||
<th>Verify</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>${ID}</td>
|
||||
<td>${group}</td>
|
||||
<td>${type}</td>
|
||||
<td>${parentID}</td>
|
||||
<td>${parentValue}</td>
|
||||
<td>${name}</td>
|
||||
<td>${verify}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<button type="button" class="btn btn-small btn-danger" id="del_api_del" api_id="${ID}" api_group="${group}">Delete</button>
|
||||
|
||||
@ -1,12 +1,16 @@
|
||||
<table class="table table-hover table-condensed" style="overflow: auto;">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Group</th>
|
||||
<th>Type</th>
|
||||
<th>ParentID</th>
|
||||
<th>ParentValue</th>
|
||||
<th>Name</th>
|
||||
<th>Verify</th>
|
||||
</tr>
|
||||
${content}
|
||||
<table class="table table-hover table-condensed tablesorter" id="sai_mod_api_table" style="overflow: auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Group</th>
|
||||
<th>Type</th>
|
||||
<th>ParentID</th>
|
||||
<th>ParentValue</th>
|
||||
<th>Name</th>
|
||||
<th>Verify</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
${content}
|
||||
</tbody>
|
||||
</table>
|
||||
Loading…
x
Reference in New Issue
Block a user