📄 profile.tpl
字号:
{strip}
<script type="text/javascript">
/* <![CDATA[ */
function confdel(form){ldelim}
if (confirm("{lang mkey='admin_js__delete_error_msgs' skey=18}")) {ldelim}
document.frm.delete_selected.value="{lang mkey='delete_selected'}";
form.submit();
{rdelim}else{ldelim}
return false;
{rdelim}
{rdelim}
function confirmDelete(profileid,conmsg)
{ldelim}
if (confirm(conmsg)){ldelim}
document.frmDelProfile.txtdelete.value=profileid;
document.frmDelProfile.submit();
{rdelim}
{rdelim}
/* ]]> */
</script>
{assign var="page_hdr01_text" value="{lang mkey='profile_title'}"}
{include file="admin/admin_page_hdr01.tpl"}
<form name="frmDelProfile" action="profile.php" method="get">
<input type="hidden" name="txtdelete" value="" />
<input type="hidden" name="frm" value="frmDelProfile" />
</form>
<form action="profile.php" method="get">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr >
<td class="module_detail_inside">
<table width="100%" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}">
<tr>
<td nowrap valign="middle"><img src="images/featured.gif" border="0" alt="" /> {lang mkey='makefeatured'}</td>
<td align="right">{lang mkey='results_per_page'}:
<select name="results_per_page">
{html_options options=$lang.search_results_per_page selected=$psize}
</select>
<input type="button" class="formbutton" value="{lang mkey='show'}" onclick="document.location='?{$querystring|escape:"url"}&results_per_page=' + results_per_page.value" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<center>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td class="module_detail_inside" width="100%">
{assign var="page_hdr02_text" value="{lang mkey='total_profiles'}: "|cat:$reccount}
{include file="admin/admin_page_hdr02.tpl"}
<form action="" name="frm" method="post" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
{if $errmsg != ''}
<tr><td height="5"></td></tr>
<tr><td colspan="9" style="padding-left: 6px;"><span class="errors">{mylang mkey='errormsgs' skey=$errmsg}</span></td></tr>
<tr><td colspan="9"> </td></tr>
{/if}
<tr>
<td class="module_detail_inside">
<table width="100%" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" border="0">
<tr class="table_head">
<th><input type="checkbox" name="chkall" value="" onclick="checkAll(this.form,'txtchk[]',this.checked)" /></th>
{* <th nowrap>{lang mkey='col_head_srno'}</th>
<th nowrap><a href="?sort={lang mkey='col_head_id'}&type={$sort_type}">{lang mkey='col_head_id'}</a></th> *}
<th nowrap><a href="?sort={"{lang mkey='col_head_username'}"|urlencode}&type={$sort_type}">{lang mkey='col_head_username'}</a></th>
<th nowrap> <a href="?sort={"{lang mkey='col_head_fullname'}"|urlencode}&type={$sort_type}&offset={$smarty.get.offset}"> {lang mkey='col_head_fullname'}</a></th>
<th nowrap><a href="?sort={lang mkey='col_head_gender'}&type={$sort_type}&offset={$smarty.get.offset}">{lang mkey='col_head_gender_short'}</a></th>
<th nowrap><a href="?sort=level&type={$sort_type}&offset={$smarty.get.offset}">{lang mkey='level_hdr'}</a></th>
<th nowrap><a href="?sort={lang mkey='col_head_status'}&type={$sort_type}&offset={$smarty.get.offset}">{lang mkey='col_head_status'}</a></th>
<th nowrap><a href="?sort=expire_date&type={$sort_type}&offset={$smarty.get.offset}">{lang mkey='expire_on_hdr'}</a></th>
<th nowrap># <a href="?sort=picscnt&type={$sort_type}&offset={$smarty.get.offset}">{lang mkey='pics'}</a> / <a href="?sort=vdscnt&type={$sort_type}&offset={$smarty.get.offset}">{lang mkey='vds'}</a></th>
<th colspan="3" >{lang mkey='action'}</th>
</tr>
{assign var="n" value="$upr"}
{foreach item=item key=key from=$data}
{math equation="$n+1" assign="n" }
<tr class="{cycle values="oddrow,evenrow"}">
<td ><input type="checkbox" name="txtchk[]" value="{$item.id}" /></td>
{* <td nowrap>{$n}</td>
<td nowrap>{$item.id}</td> *}
<td nowrap>
{if $config.enable_mod_rewrite == 'Y'}
<a href="javascript:popUpScrollWindow('{if $config.seo_username == 'Y'}{$item.username}{else}{$item.id}.htm{/if}','top',650,600)">
{else}
<a href="javascript:popUpScrollWindow('showprofile.php?{if $config.seo_username == 'Y'}username={$item.username}{else}id={$item.id}{/if}','top',650,600)">
{/if}
{$item.username}</a>
{if $item.featured}
<img src="images/featured.gif" border="0" alt="" />
{/if}
</td>
<td nowrap>{$item.firstname|stripslashes} {$item.lastname|stripslashes}</td>
<td nowrap align="center">{$item.gender}</td>
<td nowrap align="center">{$mships[$item.level]}</td>
<td nowrap>{mylang mkey='status_disp' skey=$item.status}</td>
<td nowrap>
{if $item.levelend < $nowdate}
{mylang mkey='expird'}
{else}
{$item.levelend|date_format:$lang.DATE_FORMAT}
{/if}
</td>
<td align="center">
{if $item.picscnt > 0}
<a href="showpics.php?userid={$item.id}">{$item.picscnt|default:0}</a>
{else}
<a href="userpics.php?userid={$item.id}">{$item.picscnt|default:0}</a>
{/if}
/
<a href="uploadvideos.php?userid={$item.id}">{$item.videoscnt|default:0}</a>
</td>
<td nowrap><a href="?edit={$item.id}"><img src="images/button_edit.png" border="0" alt="" /></a></td>
<td nowrap>{if !$item.featured}
<a href="featured_profile.php?req_action=add&userid={$item.id}&bckurl=profile.php"><img src="images/featured.gif" border="0" alt="" /></a>
{else}
{/if}
</td>
<td nowrap><a href="#" onclick="javascript:confirmDelete({$item.id},'{lang mkey='admin_js__delete_error_msgs' skey=4}')"><img src="images/button_drop.png" alt="Delete" border="0" /></a></td>
</tr>
{/foreach}
</table>
</td>
</tr>
<tr>
<td align="center">
{if $total_pages|@count > 1}
<b>
{assign var="pageno" value=$smarty.get.offset}
{if $pageno == ""}{assign var="pageno" value=1}{/if}
{if $pageno != "1"}
<a href="?offset=1&{$querystring}">{lang mkey='first'}</a> |
<a href="?offset={$pageno-1}&{$querystring}">{lang mkey='previous'}</a> |
{/if}
{if $total_pages|@count <= 5}
{foreach item=pagenos from=$total_pages}
{if $pageno != $pagenos}
<a href="?offset={$pagenos}&{$querystring}">{$pagenos}</a>
{else}
[{$pagenos}]
{/if}
{/foreach}
{else}
{foreach item=pagenos from=$pages_show}
{if $pageno != $pagenos}
<a href="?offset={$pagenos}&{$querystring}">{$pagenos}</a>
{else}
[{$pagenos}]
{/if}
{/foreach}
<!--<a href="?offset={$pagenos+1}&{$querystring|escape:"url"}">Next</a>-->
{/if}
{if $pageno != $total_pages|@count}
| <a href="?offset={$pageno+1}&{$querystring}">{lang mkey='next'}</a> |
<a href="?offset={$total_pages|@count}&{$querystring}">{lang mkey='last'}</a>
{/if}
</b>
{/if}
</td>
</tr>
{* <tr>
<td colspan="3" align="center"> </td>
</tr>
*}
<tr>
<td colspan="3" >
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td nowrap><img src="images/arrow_ltr.png" alt="" />{lang mkey='with_selected'}
</td>
<td nowrap>
{foreach key=key item=item1 from=$lang.status_act}
<input type="submit" class="formbutton" value="{$item1}" name="groupaction" />
{/foreach}
<input type="button" class="formbutton" value="{lang mkey='delete_selected'}" name="del01" onclick="javascript: confdel(form);" />
<input type="hidden" name="delete_selected" value="" />
</td>
</tr>
<tr><td height="2"></td></tr>
<tr>
<td></td>
<td>
<input type="submit" class="formbutton" value="{lang mkey='changeto'}" name="groupaction" />
<select name="txtmlevel">
{html_options options=$mships}
</select>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td class="module_detail_inside" width="100%">
{assign var="page_hdr02_text" value="{lang mkey='filter_records'}"}
{include file="admin/admin_page_hdr02.tpl"}
<form action="profile.php" method="post" >
<input type="hidden" name="filter" value="1" />
<table width="100%" border="0" cellspacing="2" cellpadding="1" align="center">
<tr>
<td>
{if $smarty.post.txtsrchat == '' }
{lang mkey='search'}: <select name="txtsrchat">{html_options options=$filter_options selected="username"}</select>
{else}
{lang mkey='search'}: <select name="txtsrchat">{html_options options=$filter_options selected=$smarty.post.txtsrchat}</select>
{/if}
{lang mkey='criteria'}: <input type="text" name="txtsearch" size="30" value="{$smarty.post.txtsearch}" />
<input type="submit" class="formbutton" value="{lang mkey='search'}" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
{/strip}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -