⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 users.tpl

📁 NetGou商城购物系统是一款功能强大完善、操作界面友好、可扩展性好、专门针对个人和企业进行网上销售而开发的一套商城购物系统。 它具有完善的商品管理、订单管理、销售统计、新闻管理、结算系统、税率系统、
💻 TPL
📖 第 1 页 / 共 2 页
字号:
{include file="common_js.tpl"}
{include file="page_title.tpl" title=$lng.lbl_users_management}
<!-- IN THIS SECTION -->
{include file="dialog_tools.tpl"}
<!-- IN THIS SECTION -->
<BR>
{if $mode eq "" or $users eq ""}
<!-- SEARCH FORM START -->

<SCRIPT type="text/javascript" language="JavaScript 1.2"><!--

date_selected = '{if $search_prefilled.date_period eq "" or $search_prefilled.date_period eq "M"}M{else}{$search_prefilled.date_period}{/if}';

function managedate(type, status) {ldelim}

	if (type == 'address') {ldelim}
	
		var fields = new Array('posted_data[city]','posted_data[state]','posted_data[country]','posted_data[zipcode]');
		
	{rdelim}
	if (type == 'date') {ldelim}
	
		var fields = new Array('StartDay','StartMonth','StartYear','EndDay','EndMonth','EndYear');

	{rdelim}
	if (type == 'date_type') {ldelim}
		status = document.searchform.elements['posted_data[registration_date]'].checked + document.searchform.elements['posted_data[last_login_date]'].checked;

		if (status != 0)
			status = false;
		else
			status = true;
	
		for (var i = 0; i < document.searchform.elements.length; i++)
			if (document.searchform.elements[i].name == 'posted_data[date_period]')
				document.searchform.elements[i].disabled = status;
	
		disable_dates = false;
		
		if (status)
			disable_dates = true;
		else {ldelim}
			if (date_selected != 'C')
				disable_dates = true;
		{rdelim}
		
		managedate('date', disable_dates);
		return true;

	{rdelim}
	
	for (i in fields)
		document.searchform.elements[fields[i]].disabled = status;
	
{rdelim}

--></SCRIPT>

{capture name=dialog}

<BR>

<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">

<FORM name="searchform" action="users.php" method="POST">

<TR>
<TD>

<TABLE border="0" cellpadding="4" cellspacing="0" width="100%">

<TR>
<TD height="10" width="20%" class="FormButton" nowrap>{$lng.lbl_search_for_pattern}:</TD>
<TD width="10" height="10"><FONT class="CustomerMessage">&nbsp;</FONT></TD>
<TD height="10" width="80%">
<INPUT type="text" name="posted_data[substring]" size="30" style="width:70%" value="{$search_prefilled.substring}">
&nbsp;
<INPUT type="submit" value="{$lng.lbl_search}">
</TD>
</TR>

<TR>
<TD colspan="3">
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>
<TD class="FormButton">{$lng.lbl_search_in}:&nbsp;&nbsp;&nbsp;&nbsp;</TD>
<TD width="5"><INPUT type="checkbox" name="posted_data[by_username]"{if $search_prefilled eq "" or $search_prefilled.by_username} checked{/if}></TD><TD nowrap>{$lng.lbl_username}&nbsp;&nbsp;</TD>
<TD width="5"><INPUT type="checkbox" name="posted_data[by_firstname]"{if $search_prefilled eq "" or $search_prefilled.by_firstname} checked{/if}></TD><TD nowrap>{$lng.lbl_first_name}&nbsp;&nbsp;</TD>
<TD width="5"><INPUT type="checkbox" name="posted_data[by_lastname]"{if $search_prefilled eq "" or $search_prefilled.by_lastname} checked{/if}></TD><TD nowrap>{$lng.lbl_last_name}&nbsp;&nbsp;</TD>
<TD width="5"><INPUT type="checkbox" name="posted_data[by_email]"{if $search_prefilled eq "" or $search_prefilled.by_email} checked{/if}></TD><TD nowrap>{$lng.lbl_email}&nbsp;&nbsp;</TD>
<TD width="5"><INPUT type="checkbox" name="posted_data[by_company]"{if $search_prefilled eq "" or $search_prefilled.by_company} checked{/if}></TD><TD nowrap>{$lng.lbl_company}</TD>
</TR>
</TABLE>
</TD>
</TR>

</TABLE>

<BR>

<TABLE>
<TR>
<TD id="close1" style="cursor: hand;" onclick="visibleBox('1')"><IMG src="{$ImagesDir}/plus.gif" border="0" align="absmiddle" alt="Click to open"></TD>
<TD id="open1" style="display: none; cursor: hand;" onclick="visibleBox('1')"><IMG src="{$ImagesDir}/minus.gif" border="0" align="absmiddle" alt="Click to close"></TD>
<TD><A href="javascript:void(0);" onclick="visibleBox('1')"><B>{$lng.lbl_advanced_search_options}</B></A></TD>
</TR>
</TABLE>

<TABLE border="0" cellpadding="4" cellspacing="0" width="100%" style="display: none;" id="box1" name="box1">
<TR>
<TD colspan="3"><BR>{include file="main/subheader.tpl" title=$lng.lbl_advanced_search_options}</TD>
</TR>

<TR class="TableSubHead">
<TD height="10" class="FormButton" nowrap>{$lng.lbl_search_for_user_type}:</TD>
<TD width="10" height="10"><FONT class="CustomerMessage">&nbsp;</FONT></TD>
<TD height="10">
<SELECT name="posted_data[membership]">
<OPTION value="">{$lng.lbl_all}</OPTION>
{if $config.General.membership_signup eq "Y"}
<OPTION value="pending_membership"{if $search_prefilled.usertype eq "" and $search_prefilled.membership eq "pending_membership"} selected {/if}>{$lng.lbl_pending_membership}</OPTION>
{/if}
{foreach key=key item=item from=$usertypes}
<OPTION value="{$key}"{if $search_prefilled.usertype eq $key} selected{/if}>{$item}</OPTION>
{assign var="flag" value=""}
{section name=member loop=$membership_levels}
{if $membership_levels[member].usertype eq $key}
{if $flag eq "" and $config.General.membership_signup eq "Y"}
{assign var="flag" value="1"}
<OPTION value="{$key}-pending_membership"{if $search_prefilled.usertype eq $key and $search_prefilled.membership eq "pending_membership"} selected {/if}>&nbsp;&nbsp;&nbsp;&nbsp;{$lng.lbl_pending_membership}</OPTION>
{elseif $config.General.membership_signup eq "Y"}
{assign var="flag" value=""}
{/if}
<OPTION value="{$key}-{$membership_levels[member].membership}" {if $search_prefilled.usertype eq $key and $search_prefilled.membership eq $membership_levels[member].membership} selected{/if}>&nbsp;&nbsp;&nbsp;&nbsp;{$membership_levels[member].membership}</OPTION>
{/if}
{/section}
{/foreach}
</TD>
</TR>

<TR class="TableSubHead">
<TD height="10" class="FormButton" nowrap>{$lng.lbl_customer_registration_type}: *</TD>
<TD height="10"></TD>
<TD height="10"><SELECT name="posted_data[registration_type]">
<OPTION value="">{$lng.lbl_all}</OPTION>
<OPTION value="1" {if $search_prefilled.registration_type eq "1"}selected{/if}>{$lng.lbl_anonymous}</OPTION>
<OPTION value="2" {if $search_prefilled.registration_type eq "2"}selected{/if}>{$lng.lbl_registered}</OPTION>
</SELECT></TD>
</TR>

<TR>
<TD height="10" width="20%" class="FormButton" nowrap>{$lng.lbl_search_by_address}:</TD>
<TD width="10" height="10"><FONT class="CustomerMessage">&nbsp;</FONT></TD>
<TD>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>
<TD width="5"><INPUT type="radio" name="posted_data[address_type]" value=""{if $search_prefilled eq "" or $search_prefilled.address_type eq ""} checked{/if} onclick="javascript:managedate('address',true)"></TD><TD nowrap>{$lng.lbl_ignore_address}&nbsp;&nbsp;</TD>
<TD width="5"><INPUT type="radio" name="posted_data[address_type]" value="B"{if $search_prefilled.address_type eq "B"} checked{/if} onclick="javascript:managedate('address',false)"></TD><TD nowrap>{$lng.lbl_billing}&nbsp;&nbsp;</TD>
<TD width="5"><INPUT type="radio" name="posted_data[address_type]" value="S"{if $search_prefilled.address_type eq "S"} checked{/if} onclick="javascript:managedate('address',false)"></TD><TD nowrap>{$lng.lbl_shipping}&nbsp;&nbsp;</TD>
<TD width="5"><INPUT type="radio" name="posted_data[address_type]" value="Both"{if $search_prefilled.address_type eq "Both"} checked{/if} onclick="javascript:managedate('address',false)"></TD><TD nowrap>{$lng.lbl_both}</TD>
</TR>
</TABLE>
</TD>
</TR>

<TR>
<TD height="10" width="20%" class="FormButton" nowrap>{$lng.lbl_city}:</TD>
<TD width="10" height="10"><FONT class="CustomerMessage">&nbsp;</FONT></TD>
<TD height="10" width="80%">
<INPUT type="text" maxlength="64" name="posted_data[city]" value="{$search_prefilled.city}" style="width:70%">
</TD>
</TR>

<TR>
<TD height="10" width="20%" class="FormButton" nowrap>{$lng.lbl_state}:</TD>
<TD width="10" height="10"><FONT class="CustomerMessage">&nbsp;</FONT></TD>
<TD height="10" width="80%">
{include file="main/states.tpl" states=$states name="posted_data[state]" default=$search_prefilled.state required="N" style="style='width:70%'"}
</TD>
</TR>

<TR>
<TD height="10" width="20%" class="FormButton" nowrap>{$lng.lbl_country}:</TD>
<TD width="10" height="10"><FONT class="CustomerMessage">&nbsp;</FONT></TD>
<TD height="10" width="80%">
<SELECT name="posted_data[country]" style="width:70%">
<OPTION value="">[Please select one]</OPTION>
{section name=country_idx loop=$countries}
<OPTION value="{$countries[country_idx].country_code}"{if $search_prefilled.country eq $countries[country_idx].country_code} selected{/if}>{$countries[country_idx].country}</OPTION>
{/section}
</SELECT>
</TD>
</TR>

<TR>
<TD height="10" width="20%" class="FormButton" nowrap>{$lng.lbl_zip_code}:</TD>
<TD width="10" height="10"><FONT class="CustomerMessage">&nbsp;</FONT></TD>
<TD height="10" width="80%">
<INPUT type="text" maxlength="16" name="posted_data[zipcode]" value="{$search_prefilled.zipcode}" style="width:70%">
</TD>
</TR>

<TR>
<TD height="10" width="20%" class="FormButton" nowrap>{$lng.lbl_phone}/{$lng.lbl_fax}:</TD>
<TD width="10" height="10"><FONT class="CustomerMessage">&nbsp;</FONT></TD>
<TD height="10" width="80%">
<INPUT type="text" maxlength="25" name="posted_data[phone]" value="{$search_prefilled.phone}" style="width:70%">
</TD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -