Blame | Letzte Änderung | Log anzeigen | RSS feed
{extends file="index.tpl"}{block name="maincontent"}<!-- $Id: changeShopVersion.tpl 1241 2023-04-10 10:34:44Z lars $ BEGIN --><style>#shopVersion tbody tr > th {text-align: left;background-color: #ccc;border-top: 1px dashed;}#shopVersion tbody tr:nth-child(3n) td {}#shopVersion tbody tr:first-child th {border-top: none !important;}</style><script>$(function () {$('.version').change(updateShopVersion);$('#shopVersion').DataTable({"ordering": false,"info": false,"paging": false,"columnDefs": [{"visible": false, "targets": 0}],"dom": 'T<"clear">lfrtip',"tableTools": {"sSwfPath": "../js/DataTables-1.10.5/extensions/TableTools/swf/copy_csv_xls_pdf.swf"},"order": [[0, 'asc']],"language": {"sEmptyTable": "Keine Daten in der Tabelle vorhanden","sInfo": "_START_ bis _END_ von _TOTAL_ Einträgen","sInfoEmpty": "0 bis 0 von 0 Einträgen","sInfoFiltered": "(gefiltert von _MAX_ Einträgen)","sInfoPostFix": "","sInfoThousands": ".","sLengthMenu": "_MENU_ Einträge anzeigen","sLoadingRecords": "Wird geladen...","sProcessing": "Bitte warten...","sSearch": "Suchen","sZeroRecords": "Keine Einträge vorhanden.","oPaginate": {"sFirst": "Erste","sPrevious": "Zurück","sNext": "Nächste","sLast": "Letzte"},"oAria": {"sSortAscending": ": aktivieren, um Spalte aufsteigend zu sortieren","sSortDescending": ": aktivieren, um Spalte absteigend zu sortieren"}},"drawCallback": function (settings) {let api = this.api();let rows = api.rows({page: 'current'}).nodes();let last = null;api.column(0, {page: 'current'}).data().each(function (group, i) {if (last !== group) {$(rows).eq(i).before('<tr class="group"><th colspan="3">' + group + '</th></tr>');last = group;}});}});})function updateShopVersion() {let shop = $(this).attr("data-shop");let shop2 = $(this).attr("data-shop2");let verz = $(this).attr("data-dir");let vers = $(this).val();$('#svnlog_' + shop2 + "_" + verz).css("color", "black").css("font-weight", "normal");$('#verz_' + shop2 + "_" + verz).css("color", "black").css("font-weight", "normal");let server = $(this).attr("data-server");let url = "//toolbox/updateShopVersion?shop=" + shop + "&verz=" + verz + "&version=" + vers + "&serverName=" + server;$.get(url, function (html) {$('#svnlog_' + shop2 + '_' + verz).load("//toolbox/readSVNLog?version=" + vers);alert(html);})}</script><div class="section__content section__content--p30"><div class="container-fluid"><div class="row"><div class="col-lg-9"><div class="table-responsive table--no-card m-b-30"><table style="width:100%" id="shopVersion" class="hover"><thead><tr><th style="text-align:left">Shop</th><th style="text-align:left">Verzeichnis</th><th style="text-align:left">Version</th><th style="text-align:left">Log-Meldung (SVN)</th></tr></thead><tbody>{foreach $shops as $sName => $shop}{foreach $shop as $dir => $info}{$style="color:black"}{if substr($info["version"],0,4)=="php_" || substr($info["version"],0,9)=="tags/php_"}{$style="color:red;font-weight:bold"}{/if}<tr><td style="text-align:left">{$sName}</td><td style="width:25%;{$style}"id="verz_{$sName|replace:".":"_"|replace:"-":"_"}_{$dir}">{$dir}</td><td style="width:25%;{$style}"><select name="{$sName}_{$dir}_version" class="version" data-shop="{$sName}"data-dir="{$dir}" data-server="{$info.server}"data-shop2="{$sName|replace:".":"_"|replace:"-":"_"}"id="{$sName}_{$dir}">{html_options options=$versions selected=$info.version}</select></td><td style="width:50%;{$style}"><div id="svnlog_{$sName|replace:".":"_"|replace:"-":"_"}_{$dir}">{$info.logmessage}</div></td></tr>{/foreach}{/foreach}</tbody></table></div></div></div></div></div><!-- $Id: changeShopVersion.tpl 1241 2023-04-10 10:34:44Z lars $ END -->{/block}