@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb007 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
tmpl
/
cms
/
Path :
Upload File :
New :
File
Dir
//homepage/v-mt/tmpl/cms/list_entry.tmpl
<mt:if name="object_type" eq="entry"> <$mt:setvar name="page_title" value="<__trans phrase="Manage Entries">"$> <mt:if name="is_power_edit"> <$mt:setvar name="page_title" value="<__trans phrase="Batch Edit Entries">"$> </mt:if> <$mt:setvar name="object_type_feed" value="<__trans phrase="Entries Feed">"$> <mt:else> <$mt:setvar name="page_title" value="<__trans phrase="Manage Pages">"$> <mt:if name="is_power_edit"> <$mt:setvar name="page_title" value="<__trans phrase="Batch Edit Pages">"$> </mt:if> <$mt:setvar name="object_type_feed" value="<__trans phrase="Pages Feed">"$> </mt:if> <mt:setvarblock name="system_msg"> <div id="msg-container"> <mt:if name="dynamic_all"> <mt:setvar name="rebuild" value=""> <mt:else> <mt:if name="blog_id"> <mt:setvar name="rebuild" value="all"> <mt:else> <mt:setvar name="rebuild" value=""> </mt:if> </mt:if> <mt:if name="saved"> <mtapp:statusmsg id="saved" class="success" rebuild="$rebuild"> <__trans phrase="Your changes have been saved."> </mtapp:statusmsg> </mt:if> <mt:if name="saved_deleted"> <mtapp:statusmsg id="saved-deleted" class="success" rebuild="$rebuild"> <mt:if name="object_type" eq="entry"> <__trans phrase="The entry has been deleted from the database."> <mt:else> <__trans phrase="The page has been deleted from the database."> </mt:if> </mtapp:statusmsg> </mt:if> </div> </mt:setvarblock> <mt:unless name="is_power_edit"> <mt:setvarblock name="related_content"> <mtapp:widget id="quickfilters" label="<__trans phrase="Quickfilters">"> <$mtapp:ListFilters$> <ul> <li> <mt:if name="feed_url"> <a href="<$mt:var name="feed_url" escape="html"$>" class="icon-feed icon-left" title="<$mt:var name="feed_name" escape="html"$>"><$mt:var name="object_type_feed"$></a> <mt:else> <a href="<$mt:var name="mt_url">?__mode=view&_type=author&id=<$mt:var name="author_id"$>" class="icon-feed-disabled icon-left" title="<__trans phrase="[_1] (Disabled)" params="<$mt:var name="feed_name" escape="html"$>">"><__trans phrase="Set Web Services Password"></a> </mt:if> </li> </ul> </mtapp:widget> <$mtapp:PageActions from="$mode"$> </mt:setvarblock> <mt:setvarblock name="html_body_footer"> <$mt:include name="include/display_options.tmpl"$> </mt:setvarblock> </mt:unless> <mt:setvarblock name="html_head" append="1"> <script type="text/javascript"> <!-- function enableFilterButton(fld) { if (fld && (fld.id == "author_id-val" || fld.id == "asset_id-val")) { var opt = fld.options[fld.selectedIndex]; if (opt.id == 'filter-user-search') { <mt:if name="object_type" eq="entry"> window.location = ScriptURI + '?__mode=search_replace&_type=author&entry_type=entry'; <mt:else> window.location = ScriptURI + '?__mode=search_replace&_type=author&entry_type=page'; </mt:if> } else if (opt.id == 'filter-asset-search') { window.location = ScriptURI + '?__mode=search_replace&_type=asset'; } else { if (opt.value == "") { getByID("filter-button").style.display = "none"; return; } } } else if (fld && (fld.id == "filter-col")) { var opt = fld.options[fld.selectedIndex]; if (opt.value == 'author_id') { var authfld = getByID("author_id-val"); var authopt = authfld.options[authfld.selectedIndex]; if (authopt.value == "") { getByID("filter-button").style.display = "none"; return; } } } getByID("filter-button").style.display = "inline"; } function toggleFilter() { var filterActive = getByID("filter-title"); if (filterActive.style.display == "none") { filterActive.style.display = "block"; getByID("filter-select").style.display = "none"; } else { filterActive.style.display = "none"; getByID("filter-select").style.display = "block";<mt:unless name="filter">setFilterCol('status');</mt:unless> } } function setFilterCol(choice) { var sel = getByID('filter-select'); if (!sel) return; sel.className = "filter-" + choice; if (choice != 'none') { var fld = getByID('filter-col'); if (choice == 'status') fld.selectedIndex = 0; else if (choice == 'author_id') fld.selectedIndex = 1; else if (choice == 'exacttag') fld.selectedIndex = 2; else if (choice == 'normalizedtag') fld.selectedIndex = 3; else if (choice == 'category_id') fld.selectedIndex = 4; else if (choice == 'asset_id') fld.selectedIndex = <mt:if name="category_loop">5<mt:else>4</mt:if>; col_span = getByID("filter-text-col"); if (fld.selectedIndex > -1 && col_span) col_span.innerHTML = '<strong>' + fld.options[fld.selectedIndex].text + '</strong>'; } } var tableSelect; function init() { <mt:unless name="is_power_edit"> // setup tableSelect = new TC.TableSelect( "<mt:var name="object_type">-listing-table" ); tableSelect.rowSelect = true; </mt:unless> setFilterCol(<mt:if name="filter">'<mt:var name="filter">'<mt:else>'none'</mt:if>);<mt:if name="filter"> setFilterVal('<mt:var name="filter_val">'); </mt:if> } TC.attachLoadEvent( init ); // --> </script> </mt:setvarblock> <mt:setvarblock name="list_filter_form"> <mt:unless name="is_power_edit"> <div class="listing-filter"> <div class="listing-filter-inner inner pkg"> <form id="filter-form" method="get" action="<mt:var name="mt_url">"> <input type="hidden" name="__mode" value="<mt:var name="mode">" /> <mt:if name="blog_id"> <input type="hidden" name="blog_id" value="<mt:var name="blog_id">" /> </mt:if> <mt:if name="is_power_edit"> <input type="hidden" name="is_power_edit" value="1" /> </mt:if> <input id="filter" type="hidden" name="filter" value="" /> <input id="filter_val" type="hidden" name="filter_val" value="" /> </form> <form id="filter-select-form" method="get" onsubmt="return execFilter(this)"> <div class="filter"> <div id="filter-title"> <mt:if name="filter_key"> <strong><__trans phrase="Showing only: [_1]" params="<mt:var name="filter_label">"></strong> <a class="filter-link" href="<mt:var name="script_url">?__mode=<mt:var name="mode"><mt:if name="blog_id">&blog_id=<mt:var name="blog_id"></mt:if><mt:if name="is_power_edit">&is_power_edit=1</mt:if>">[ <__trans phrase="Remove filter"> ]</a> <mt:else> <mt:unless name="filter"> <strong><__trans phrase="All [_1]" params="<$mt:var name="object_label_plural"$>"></strong> <a href="javascript:void(0)" onclick="toggleFilter()" class="filter-link">[ <__trans phrase="change"> ]</a> <mt:else> <strong><a href="javascript:void(0)" onclick="toggleFilter()"><__trans phrase="[_1] where [_2] is [_3]" params='<$mt:var name="object_label_plural"$>%%<span id="filter-text-col"> </span>%%<span id="filter-text-val"></span>'></a></strong> <a href="<mt:var name="script_url">?__mode=<mt:var name="mode"><mt:if name="blog_id">&blog_id=<mt:var name="blog_id"></mt:if><mt:if name="is_power_edit">&is_power_edit=1</mt:if>" class="filter-link">[ <__trans phrase="Remove filter"> ]</a> </mt:unless> </mt:if> </div> <div id="filter-select" class="page-title" style="display: none"> <mt:if name="object_type" eq="entry"> <__trans phrase="Show only entries where"> <mt:else> <__trans phrase="Show only pages where"> </mt:if> <!-- start filter form --> <select id="filter-col" name="filter" onchange="setFilterCol(this.options[this.selectedIndex].value);enableFilterButton(this)"> <option value="status"><__trans phrase="status"></option> <option value="author_id"><__trans phrase="user"></option> <option value="exacttag"><__trans phrase="tag (exact match)"></option> <option value="normalizedtag"><__trans phrase="tag (fuzzy match)"></option> <mt:if name="category_loop"> <option value="category_id"><mt:var name="container_label"></option> </mt:if> <mt:if name="entry_asset_loop"> <option value="asset_id"><__trans phrase="asset"></option> </mt:if> </select> <__trans phrase="is"> <span id="filter-status" style="display: none"> <select id="status-val" name="filter_val" onchange="enableFilterButton()"> <option value="2"><__trans phrase="published"></option> <option value="1"><__trans phrase="unpublished"></option> <option value="4"><__trans phrase="scheduled"></option> </select> </span> <span id="filter-exacttag" style="display: none"> <input type="text" id="exacttag-val" name="filter_val" value="<mt:if name="filter_col_exacttag"><mt:var name="filter_val" escape="html"></mt:if><mt:if name="filter_col_normalizedtag"><mt:var name="filter_val" escape="html"></mt:if>" onchange="enableFilterButton()" onkeypress="enableFilterButton()" /> </span> <span id="filter-normalizedtag" style="display: none"> <input type="text" id="normalizedtag-val" name="filter_val" value="<mt:if name="filter_col_exacttag"><mt:var name="filter_val" escape="html"></mt:if><mt:if name="filter_col_normalizedtag"><mt:var name="filter_val" escape="html"></mt:if>" onchange="enableFilterButton()" onkeypress="enableFilterButton()" /> </span> <mt:if name="category_loop"> <span id="filter-category_id" style="display: none"> <select id="category_id-val" name="filter_val" onchange="enableFilterButton()"> <mt:loop name="category_loop"> <option value="<mt:var name="category_id">"><mt:var name="category_label_spacer"><mt:var name="category_label"></option> </mt:loop> </select> </span> </mt:if> <mt:if name="entry_asset_loop"> <span id="filter-asset_id" style="display: none"> <select id="asset_id-val" name="filter_val" onchange="enableFilterButton(this)"> <option value=""><__trans phrase='Select An Asset:'></option> <option id="filter-asset-search" value=""><__trans phrase='Asset Search...'></option> <optgroup label="<__trans phrase='Recent Assets...'>" value=""> <mt:loop name="entry_asset_loop"> <option value="<mt:var name="asset_id">"><mt:var name="asset_label" escape="html"></option> </mt:loop> </optgroup> </select> </span> </mt:if> <span id="filter-author_id" style="display: none"> <select id="author_id-val" name="filter_val" onchange="enableFilterButton(this)"> <option value=""><__trans phrase='Select A User:'></option> <option id="filter-user-search" value=""><__trans phrase='User Search...'></option> <optgroup label="<__trans phrase='Recent Users...'>" value=""> <mt:loop name="entry_author_loop"> <option value="<mt:var name="author_id">"><mt:var name="author_name" escape="html"></option> </mt:loop> </optgroup> </select> </span> <!-- end of filter form --> <span class="buttons"> <a href="javascript:void(0)" id="filter-button" onclick="return execFilter(getByID('filter-select-form'))" type="submit" ><__trans phrase="Filter"></a> <a href="javascript:void(0)" onclick="toggleFilter(); return false;" type="submit" ><__trans phrase="Cancel"></a> </span> </div> </div> </form> </div> </div> </mt:unless> </mt:setvarblock> <$mt:include name="include/header.tmpl"$> <$mt:var name="list_filter_form"$> <$mt:include name="include/entry_table.tmpl"$> <$mt:include name="include/footer.tmpl"$>