@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb011 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
addons
/
Commercial.pack
/
tmpl
/
Path :
Upload File :
New :
File
Dir
/homepage/v-mt/addons/Commercial.pack/tmpl/reorder_fields.tmpl
<mt:setvarblock name="html_head" append="1"> <script type="text/javascript" src="<mt:var name="static_uri">addons/Commercial.pack/js/dbx.js"></script> <script type="text/javascript" src="<mt:var name="static_uri">js/tc/client.js"></script> <script type="text/javascript"> <!-- function toggleCustomFieldsReorder() { return toggleActive('customfields-reorder-widget'); } function saveCustomFieldOrder() { var order = new Array(); var p = document.getElementById('reorder-container').getElementsByTagName('p'); for (var i = 0; i < p.length; i++) { order[i] = p[i].getAttribute('customfield:basename'); } // TBD: we need to get the blog id from the selector control // itself var param = '__mode=save_field_order' + '&_type=<mt:var name="object_type">' <mt:if name="object_type">+ '&object_type=<mt:var name="object_type">'</mt:if> <mt:if name="blog_id">+ '&blog_id=<mt:var name="blog_id">'</mt:if> <mt:if name="author_id">+ '&author_id=<mt:var name="author_id">'</mt:if> + '&order=' + order var params = { uri: '<mt:var name="script_url">', method: 'POST', arguments: param, load: savedFieldOrder }; TC.Client.call(params); } function savedFieldOrder() { toggleHidden('customfields-reorder-msg'); } //--> </script> <link rel="stylesheet" href="<mt:var name="static_uri">addons/Commercial.pack/styles-customfields.css" type="text/css" media="screen" title="CustomFields Stylesheet" charset="utf-8" /> </mt:setvarblock> <mt:setvarblock name="system_msg" append="1"> <mtapp:statusmsg id="customfields-reorder-msg" class="success hidden"> <__trans_section component="commercial"><__trans phrase="Your field order has been saved. Please refresh this page to see the new order."></__trans_section> </mtapp:statusmsg> </mt:setvarblock> <mt:setvarblock name="related_content" append="1"> <__trans_section component="commercial"> <mtapp:widget id="customfields-reorder-widget" label="<__trans phrase="Reorder Fields">" label_link="javascript:void(0)" label_onclick="return toggleCustomFieldsReorder();"> <mtapp:setting id="customfields-reorder" label_class="top-label" show_label="0" show_hint="0"> <div class="dbx-group" id="reorder-container"> <mt:loop name="field_loop"> <mt:if name="show_field"><p class="dbx-box" customfield:basename="<mt:var name="basename" escape="html">"><span class="dbx-handle"><mt:var name="name"></span></p></mt:if> </mt:loop> </div> </mtapp:setting> <div class="actions-bar display-options-actions-bar buttons"> <div class="actions-bar-inner"> <a href="javascript:void(0)" onclick="saveCustomFieldOrder(); return toggleCustomFieldsReorder();" title="<__trans phrase="Save field order">" ><__trans phrase="Save"></a> <a href="javascript:void(0)" onclick="toggleCustomFieldsReorder()" title="<__trans phrase="Close field order widget">" ><__trans phrase="Cancel"></a> </div> </div> </mtapp:widget> <script type="text/javascript"> <!-- //initialisation function TC.attachLoadEvent( function() { //initialise the docking boxes manager var manager = new dbxManager('<mt:var name="magic_token" escape="js">'); //session ID [/-_a-zA-Z0-9/] //create new docking boxes group var reorder = new dbxGroup( 'reorder-container', // container ID [/-_a-zA-Z0-9/] 'vertical', // orientation ['vertical'|'horizontal'] '5', // drag threshold ['n' pixels] 'no', // restrict drag movement to container axis ['yes'|'no'] '3', // animate re-ordering ['n' frames per transition] 'no', // include open/close toggle buttons ['yes'|'no'] 'open', // default state ['open'|'closed'] '<__trans phrase="open" escape="js">', // word for "open", as in "open this box" '<__trans phrase="close" escape="js">', // word for "close", as in "close this box" '<__trans phrase="click-down and drag to move this field" escape="js">', // sentence for "move this box" by mouse '<__trans phrase="click to %toggle% this box" escape="js">', // pattern-match sentence for "(open|close) this box" by mouse '<__trans phrase="use the arrow keys to move this box" escape="js">', // sentence for "move this box" by keyboard '<__trans phrase=", or press the enter key to %toggle% it" escape="js">', // pattern-match sentence-fragment for "(open|close) this box" by keyboard '%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts ); }); //--> </script> </__trans_section> </mt:setvarblock>