<%'guidedisplay=1%>
<!--#include file="admin_start.asp" -->
<%
id=request("id")
if not MySys.check.isInteger(id) then
   MySys.Error.info = "请提交合法的栏目id！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If

id=int(id)

rs.open"select * from jins_customer_sort where sort_id="&id&" ",conn,1,1
if rs.eof then
   MySys.Error.info = "您请求的客户类型不存在！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If
Session("FB_EM_1_ACC_uppath")="../SYSPIC"
%>
<body topmargin="30" marginwidth="10" marginheight="10">
<form name=edit_html target=admin_edit_html method=post><input type=hidden name=c value=''><input type=hidden name=formname value=''><input type=hidden name=inputname value=''></form>
<form name=edit_template target=admin_edit_template method=post><input type=hidden name=c value=''><input type=hidden name=c_sql value=''><input type=hidden name=formname value=''><input type=hidden name=inputname value=''></form>
<form name=customer_sort action="admin_user_customer_sort_edit_handle.asp?action=edit&id=<%=id%>" method=post>
<table cellpadding="3" cellspacing="4" width="90%" height="30" align=center style='border:1px solid #ebebeb' >
	<tr>
		<td width="2%" align=right><img alt='点击弹开编辑框' onclick="opencat(basic_open)" style='CURSOR: hand' src="Images/index_search.gif" width="8" height="16"></td>
		<td  width="98%" align=left>
		<font color="#ebebeb"> | </font>
		<img alt='点击弹开提示信息框' onclick="opencat(help_ads_open)" style='CURSOR: hand' src="Images/icon_info.gif" width="13" height="13" hspace="0" align="absmiddle">			
		<font color="#ebebeb"> | </font>
		客户类型属性编辑
	    </td>
	</tr>		
	<tr id="help_ads_open" style="display:  ">
		<td colspan="10" align=left>
		<table cellpadding="4" cellspacing="2" width="99%" height="30" align=center style='border:1px dashed #B7B7B7' >
			<tr>
				<td colspan="8" width='100%' style="line-height:150% ">
				·送货费用优惠 例如：" 0|500|20 "表示每500元优惠送货费用20%；" 1|500|20 "表示每500元优惠送货费用20元<br>
				·商品价格优惠 例如：" 0|500|20 "表示每500元优惠20%；" 1|500|20 "表示每500元优惠20元<br>
				·注册条款一栏可以点击图标在新的窗口进行详细的编辑<br>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	
	<tr id="basic_open" >
		<td colspan="10" align=left style='padding-bottom:5px'>
		<table cellpadding="4" cellspacing="2" bgcolor='#f7f7f7' width="99%" height="30" align=center style='border:1px dashed #808080;padding:20px' >
			<tr>
				<td  width="25%" align=right>客户类型名称:</td>
				<td  width="75%" align=left>
				  <%=rs("sort_name")%>
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right >描述:</td>
				<td  width="75%" align=left >
				  <input name=sort_description type=text value="<%=rs("sort_description")%>" size=52>
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right>开关:</td>
				<td  width="75%" align=left>
				<select name=sort_open >
				<option value=1 <%if rs("sort_open")=1 then response.write "selected"%> >打开</option>
				<option value=0 <%if rs("sort_open")=0 then response.write "selected"%> >关闭</option>
				</select>
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right>权限:</td>
				<td  width="75%" align=left>
				  <input name=sort_grade type=text value="<%=rs("sort_grade")%>" size=3> 数字越大表示权限越高！
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right>所需积分:</td>
				<td  width="75%" align=left>
				  <input name=sort_count type=text value="<%=rs("sort_count")%>" size=3> 升级到此用户等级所需的积分
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right>用户升级审核:</td> 
				<td  width="75%" align=left>
				<select name=sort_update_admin >
				<option value=1 <%if rs("sort_update_admin")=1 then response.write "selected"%> >需要</option>
				<option value=0 <%if rs("sort_update_admin")=0 then response.write "selected"%> >不需要</option>
				</select>
				</td>
			</tr>
		
		</table><br>
		<%
		'////////////////////////////////////////////////////////////////////////////////////////////////////////
		%>
		<table cellpadding="4" cellspacing="2" bgcolor='#f7f7f7' width="99%" height="30" align=center style='border:1px dashed #808080;padding:20px' >
			<tr>
				<td  width="25%" align=right>已注册人数:</td>
				<td  width="75%" align=left><%=conn.execute("select count(customer_id) from jins_customer_list where sort_id="&id&" ")(0)%></td>
			</tr>
			<tr>
				<td  width="25%" align=right >限制用户人数:</td>
				<td  width="75%" align=left >
				  <input name=sort_limit_customers type=text value="<%=rs("sort_limit_customers")%>" size=5>
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right >同一IP限制注册人数:</td>
				<td  width="75%" align=left >
				  <input name=sort_limit_ip type=text value="<%=rs("sort_limit_ip")%>" size=5>
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right >自定义注册选项:</td>
			  <td  width="75%" align=left >
				  <input name=sort_reg_property type=hidden value="<%=rs("sort_reg_property")%>" size=5>
			    <a href="javascript:newwin=window.open('admin_user_customer_sort_property_edit.asp?id=<%=rs("sort_id")%>','admin_user_customer_sort_property_edit','toolbar=no,location=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=800,height=600');newwin.focus();">
				<img alt='开始编辑' border=0 src="Images/edit.gif" width="36" height="15"></a></td>
			</tr>
            <tr>
			  <td  width="25%" align=right valign=top>注册条款:</td>
			  <td  width="75%" align=left>
                <textarea id="sort_reg_pact" name="sort_reg_pact" cols="43" rows="6"><%=rs("sort_reg_pact")%></textarea>
                <!--<a title='点击进行详细编辑！' href="javascript:edit_html.c.value=customer_sort.sort_reg_pact.value;edit_html.action='admin_edit_html.asp?formname=shopping_payment&inputname=payment_property';newwin=window.open('admin_edit_html.asp?formname=shopping_payment&inputname=payment_property','admin_edit_html','toolbar=no,location=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=600,height=400');edit_html.submit();newwin.focus();" >//-->
                <a title='点击进行详细编辑！' href="javascript:openedit_template('customer_sort','sort_reg_pact','','sort_id','<%=rs("sort_id")%>','客户注册条款编辑 > <%=rs("sort_description")%>','yes');" >
				<img border=0 src="Images/old.gif" width="21" height="20" align="top">
				</a>
			</td>
			</tr>
		</table><br>
		<%
		'////////////////////////////////////////////////////////////////////////////////////////////////////////
		%>
		<table cellpadding="4" cellspacing="2" bgcolor='#f7f7f7' width="99%" height="30" align=center style='border:1px dashed #808080;padding:20px' >
			<tr>
				<td  width="25%" align=right>帐户金额兑换积分规则:</td>
				<td  width="75%" align=left>帐户余额每<font color=red> <%=MySys.info.unit_money(1)%> 1 </font>兑换积分 <input name=sort_exchangetocount type=text value="<%=rs("sort_exchangetocount")%>" size=5></td>
			</tr>
			<tr>
				<td  width="25%" align=right >送货费用优惠:</td>
				<td  width="75%" align=left >
				  <input name=sort_premium_deliverfee type=text value="<%=rs("sort_premium_deliverfee")%>" size=30> 见帮助
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right >商品价格优惠:</td>
				<td  width="75%" align=left >
				  <input name=sort_premium_price type=text value="<%=rs("sort_premium_price")%>" size=30> 见帮助
				</td>
			</tr>
		</table><br>		
		<%
		'////////////////////////////////////////////////////////////////////////////////////////////////////////
		%>
		<table cellpadding="4" cellspacing="2" bgcolor='#f7f7f7' width="99%" height="30" align=center style='border:1px dashed #808080;padding:20px' >
			<tr>
				<td  width="25%" align=right>发送邮件开关:</td>
				<td  width="75%" align=left>
				<select name=sort_mail_open >
				<option value=1 <%if rs("sort_mail_open")=1 then response.write "selected"%> >打开</option>
				<option value=0 <%if rs("sort_mail_open")=0 then response.write "selected"%> >关闭</option>
				</select>
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right >发送邮件主题:</td> 
				<td  width="75%" align=left >
				  <input name=sort_mail_topic type=text value="<%=rs("sort_mail_topic")%>" size=52> 注册成功时发送的邮件！
				</td>
			</tr>
            <tr>
			  <td  width="25%" align=right valign=top>发送邮件内容:</td>
			  <td  width="75%" align=left>
                <textarea id="sort_mail_content" name="sort_mail_content" cols="43" rows="6"><%=rs("sort_mail_content")%></textarea>
                <!--<a title='点击进行详细编辑！' href="javascript:edit_html.c.value=customer_sort.sort_mail_content.value;edit_html.action='admin_edit_html.asp?formname=shopping_payment&inputname=payment_property';newwin=window.open('admin_edit_html.asp?formname=shopping_payment&inputname=payment_property','admin_edit_html','toolbar=no,location=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=600,height=400');edit_html.submit();newwin.focus();" >//-->
                <a title='点击进行详细编辑！' href="javascript:openedit_template('customer_sort','sort_mail_content','','sort_id','<%=rs("sort_id")%>','客户类型发送邮件内容编辑 > <%=rs("sort_description")%>','yes');" >
				<img border=0 src="Images/old.gif" width="21" height="20" align="top">
				</a>
			</td>
			</tr>
		</table>		
		<%
		'////////////////////////////////////////////////////////////////////////////////////////////////////////
		%>

		</td>
	</tr>

	<tr>
		<td height='1' colspan="9" background='images/dot03.gif'></td>
	</tr>
	
	<tr>
	  <td height='30' colspan="8" width='100%' align=center >
	  <input type=submit value="提交设置！" >
	   <input type=reset value="重置" > 
	   <input onclick='history.back(-1)' type=button value="返回" >	  </td>
	</tr>
</table>		
<SCRIPT language=javascript>
	function opencat(cat)
	{
 	 	if(cat.style.display=="none"){
     	cat.style.display="";
  		} else {
     	cat.style.display="none"; 
  		}
	}</SCRIPT>
</form>
<%
rs.close
%>
<!--#include file="admin_end.asp" -->