From f81f2f637dc5d3f8b886407db1aacdd7074aeaa4 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Wed, 16 Jan 2013 20:28:42 +0000 Subject: update triggers_list, use DataTables and same design as Webservices explorer git-svn-id: http://piwigo.org/svn/trunk@20192 68402e56-0260-453c-a942-63ccdbb3a9ee --- tools/tablesorter/asc.gif | Bin 54 -> 0 bytes tools/tablesorter/bg.gif | Bin 64 -> 0 bytes tools/tablesorter/desc.gif | Bin 54 -> 0 bytes tools/tablesorter/jquery.tablesorter.css | 39 ----- tools/tablesorter/jquery.tablesorter.min.js | 4 - tools/triggers_list.php | 233 +++++++++++++++++++--------- tools/ws.htm | 7 +- 7 files changed, 161 insertions(+), 122 deletions(-) delete mode 100644 tools/tablesorter/asc.gif delete mode 100644 tools/tablesorter/bg.gif delete mode 100644 tools/tablesorter/desc.gif delete mode 100644 tools/tablesorter/jquery.tablesorter.css delete mode 100644 tools/tablesorter/jquery.tablesorter.min.js (limited to 'tools') diff --git a/tools/tablesorter/asc.gif b/tools/tablesorter/asc.gif deleted file mode 100644 index 74157867f..000000000 Binary files a/tools/tablesorter/asc.gif and /dev/null differ diff --git a/tools/tablesorter/bg.gif b/tools/tablesorter/bg.gif deleted file mode 100644 index fac668fcf..000000000 Binary files a/tools/tablesorter/bg.gif and /dev/null differ diff --git a/tools/tablesorter/desc.gif b/tools/tablesorter/desc.gif deleted file mode 100644 index 3b30b3c58..000000000 Binary files a/tools/tablesorter/desc.gif and /dev/null differ diff --git a/tools/tablesorter/jquery.tablesorter.css b/tools/tablesorter/jquery.tablesorter.css deleted file mode 100644 index eb41f70c0..000000000 --- a/tools/tablesorter/jquery.tablesorter.css +++ /dev/null @@ -1,39 +0,0 @@ -/* tables */ -table.tablesorter { - font-family:arial; - background-color: #CDCDCD; - margin:10px 0pt 15px; - font-size: 8pt; - width: 100%; - text-align: left; -} -table.tablesorter thead tr th, table.tablesorter tfoot tr th { - background-color: #e6EEEE; - border: 1px solid #FFF; - font-size: 8pt; - padding: 4px; -} -table.tablesorter thead tr .header { - background-image: url(bg.gif); - background-repeat: no-repeat; - background-position: center right; - cursor: pointer; -} -table.tablesorter tbody td { - color: #3D3D3D; - padding: 4px; - background-color: #FFF; - vertical-align: top; -} -table.tablesorter tbody tr.odd td { - background-color:#F0F0F6; -} -table.tablesorter thead tr .headerSortUp { - background-image: url(asc.gif); -} -table.tablesorter thead tr .headerSortDown { - background-image: url(desc.gif); -} -table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp { -background-color: #8dbdd8; -} diff --git a/tools/tablesorter/jquery.tablesorter.min.js b/tools/tablesorter/jquery.tablesorter.min.js deleted file mode 100644 index b8605df1e..000000000 --- a/tools/tablesorter/jquery.tablesorter.min.js +++ /dev/null @@ -1,4 +0,0 @@ - -(function($){$.extend({tablesorter:new -function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'/\.|\,/g',onRenderHeader:null,selectorHeaders:'thead th',debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}if(table.tBodies.length==0)return;var rows=table.tBodies[0].rows;if(rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function checkHeaderOptionsSortingLocked(table,i){if((table.config.headers[i])&&(table.config.headers[i].lockedOrder))return table.config.headers[i].lockedOrder;return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i b["+i+"]) ? 1 : 0));";};function makeSortTextDesc(i){return"((b["+i+"] < a["+i+"]) ? -1 : ((b["+i+"] > a["+i+"]) ? 1 : 0));";};function makeSortNumeric(i){return"a["+i+"]-b["+i+"];";};function makeSortNumericDesc(i){return"b["+i+"]-a["+i+"];";};function sortText(a,b){if(table.config.sortLocaleCompare)return a.localeCompare(b);return((ab)?1:0));};function sortTextDesc(a,b){if(table.config.sortLocaleCompare)return b.localeCompare(a);return((ba)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$.data(this,"tablesorter",config);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){$this.trigger("sortStart");var $cell=$(this);var i=this.column;this.order=this.count++%2;if(this.lockedOrder)this.order=this.lockedOrder;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i 'allow_increment_element_hit_count', @@ -815,75 +793,180 @@ array( ), ); ?> - + Piwigo Core Triggers - - - + + + + + + - -

Piwigo Core Triggers

+ -For more infos about triggers +
+

Piwigo Core Triggers

+
- - - - - - - - - - - +
+
NameTypeVarsUsage in the core file (function)Commentary
+ + + + + + + + + + - - - - - + + + + + + '; } - echo ' - - - '; + ?> + + + + + + + + + + + +
NameTypeVariablesUsage in the coreCommentary
'.$trigger['name'].''.$trigger['type'].''; - for ($i=0; $i0) echo ', '; - echo $trigger['vars'][$i].' '.(!empty($trigger['vars'][$i+1])?'$'.$trigger['vars'][$i+1].'':null); - } - echo ' - '; - $f=1; - foreach ($trigger['files'] as $file) + '; $f=0; - echo preg_replace('#\((.+)\)#', '($1)', $file); + echo ' +
'.$trigger['name'].''.$trigger['type'].''; + for ($i=0; $i0) echo ', '; + echo $trigger['vars'][$i].' '.(!empty($trigger['vars'][$i+1])?'$'.$trigger['vars'][$i+1].'':null); + } + echo ' + '; + $f=1; + foreach ($trigger['files'] as $file) + { + if (!$f) echo '
'; $f=0; + echo preg_replace('#\((.+)\)#', '($1)', $file); + } + echo ' +
'.@$trigger['infos'].'
'.@$trigger['infos'].'
+ +
+ + + + + + \ No newline at end of file diff --git a/tools/ws.htm b/tools/ws.htm index dcfe91c86..ac5844675 100644 --- a/tools/ws.htm +++ b/tools/ws.htm @@ -1,11 +1,10 @@ - + Piwigo web API (web-services) explorer - +