@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
/
tmpl
/
cms
/
Path :
Upload File :
New :
File
Dir
//homepage/v-mt/tmpl/cms/list_member.tmpl
<mt:setvarblock name="page_title"><__trans phrase="Manage Users"></mt:setvarblock> <mt:setvarblock name="related_content"> <mtapp:widget id="quickfilters" label="<__trans phrase="Quickfilters">"> <$mtapp:listfilters$> </mtapp:widget> <$mtapp:pageactions$> </mt:setvarblock> <mt:setvarblock name="html_body_footer"> <$mt:include name="include/display_options.tmpl"$> </mt:setvarblock> <mt:setvarblock name="html_head" append="1"> <script type="text/javascript"> <!-- 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-form'); if (!sel) return; sel.className = "filter-" + choice; if (choice != 'none') { var fld = getByID('filter-col'); if (choice == 'role') fld.selectedIndex = 0; else if (choice == 'status') fld.selectedIndex = 1; col_span = getByID("filter-text-col"); if (fld.selectedIndex > -1 && col_span) col_span.innerHTML = '<strong>' + fld.options[fld.selectedIndex].text + '</strong>'; } } function enableFilterButton(fld) { if (fld && (fld.id == "author_id-val")) { var opt = fld.options[fld.selectedIndex]; 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"; } var tableSelect; function init() { // setup tableSelect = new TC.TableSelect( "author-listing-table" ); tableSelect.rowSelect = true; 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> } function removeMemberRole(author_id,role_id) { if (confirm("<__trans phrase="Are you sure you want to remove this role?" escape="js">")) { var f = document.forms['author-listing-form']; f['__mode'].value = "revoke_role"; f['author_id'].value = author_id; f['role_id'].value = role_id; f.submit(); } } TC.attachLoadEvent( init ); // --> </script> </mt:setvarblock> <mt:setvarblock name="system_msg"> <div id="msg-block"> <mt:if name="saved"> <mtapp:statusmsg id="saved-msg" class="success" can_close="1"> <__trans phrase="Your changes have been saved."> </mtapp:statusmsg> </mt:if> </div> </mt:setvarblock> <mt:setvarblock name="content_header"> <mt:if name="can_administer_blog"> <ul> <li><a href="javascript:void(0)" onclick="return openDialog(this.form, 'dialog_grant_role', '_type=user<mt:if name="blog_id">&blog_id=<mt:var name="blog_id"></mt:if>&return_args=<mt:var name="return_args" escape="url">')" class="icon-left icon-create"><__trans phrase="Add a user to this blog"></a></li> </ul> </mt:if> </mt:setvarblock> <mt:setvarblock name="list_filter_form"> <form id="filter-form" method="get" action="<mt:var name="mt_url">"> <input type="hidden" name="__mode" value="list_member" /> <mt:if name="blog_id"> <input type="hidden" name="blog_id" value="<mt:var name="blog_id">" /> </mt:if> <input id="filter" type="hidden" name="filter" value="" /> <input id="filter_val" type="hidden" name="filter_val" value="" /> </form> <div class="listing-filter"> <div class="listing-filter-inner inner pkg"> <form id="filter-select-form" method="get" action="<mt:var name="mt_url">" onsubmit="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>">[ <__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>">[ <__trans phrase="Remove filter"> ]</a> </mt:unless> </mt:if> </div> <div id="filter-select" class="page-title" style="display: none"> <__trans phrase="Show only users where"> <!-- start filter form --> <select id="filter-col" name="filter" onchange="setFilterCol(this.options[this.selectedIndex].value);enableFilterButton(this)"> <option value="role"><__trans phrase="role"></option> <option value="status"><__trans phrase="status"></option> </select> <__trans phrase="is"> <span id="filter-role" style="display: none"> <select id="role-val" name="filter_val" onchange="enableFilterButton()"> <mt:loop name="role_loop"> <option value="<$mt:var name="role_id"$>"<mt:if name="selected"> selected="selected"</mt:if>><$mt:var name="role_name" escape="html"$></option> </mt:loop> </select> </span> <span id="filter-status" style="display: none"> <select id="status-val" name="filter_val" onchange="enableFilterButton()"> <option value="enabled"><__trans phrase="enabled"></option> <option value="disabled"><__trans phrase="disabled"></option> <option value="pending"><__trans phrase="pending"></option> </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:setvarblock> <$mt:include name="include/header.tmpl"$> <$mt:var name="list_filter_form"$> <$mt:include name="include/member_table.tmpl"$> <$mt:include name="include/footer.tmpl"$>