<!--#include file="../conn.asp"-->
<!-- #include file="inc/const.asp" -->
<!-- #include file="../inc/dv_clsother.asp" -->
<!-- #include file="../inc/GroupPermission.asp" -->
<!--#include file=../inc/md5.asp-->
<!--#include file="../inc/dv_loadcache.asp"-->
<%
	Head()
	Server.ScriptTimeout=999999
	dim Str
	dim admin_flag
	admin_flag="9,10"
	founderr=False 
	if not Dvbbs.master or instr(","&session("flag")&",",",9,")=0 or instr(","&session("flag")&",",",10,")=0 then
		Errmsg=ErrMsg + "<BR><li>本页面为管理员专用，请<a href=../admin_login.asp target=_top>登录</a>后进入。<br><li>您没有管理本页面的权限。"
		dvbbs_error()
	else
		call main()
		footer()
	end if

	sub main()
%>
<table cellpadding=0 cellspacing=1 align=center>
  <tr>
    <td>
      <table cellpadding=3 cellspacing=1>
        <tr>
          <td width="100%" valign=top>
            <table cellspacing="1" cellpadding="5" align="center" class=tableBorder1>
              <tr>
                <th align="center" valign="middle" height=22>社区明星管理中心</th>
              </tr>
              <tr> 
                <td align="left" valign="middle" class=tablebody1>
		<br> 1．注意事项： 在下面，您将看到对当前社区明星显示方式的设定，如果想要修改，请点击相应的单选按钮对每一列的显示方式进行自定义，自定能力更加强大！<br>
                  <br>
                  2.经测算，从对首页显示的速度影响看，范围在：0.5秒——2.0秒间。每一种显示方式对速度的影响都不一样，管理员在使用时可自己实验一下！！！<br>
                  <br>
                  3.<font color="#FF0000">特别注意：</font>对明星显示方式的重新设定讲覆盖掉原来所设置的值，请小心使用！！！</td>
              </tr>
            </table>
            <br>
            <form action="admin_mingxing.asp" method="post">
              <table width="100%" class=tb cellspacing="0" cellpadding="0" align="center">
                <tr> 
                  <td align="center" valign="middle">
<%
	dim fsObj,txtObj,mx_1,mx_2,mx_3,m_w,m_c,m_e,n_w,n_w2,n_c,n_c2,n_e,n_e2,m_d,max_d,isxx1,isxx2,isxx3,isnl1,isnl2,isnl3
if request.form("submit")<>"提交"  then
	Set fsObj=Server.CreateObject("Scripting.FileSystemObject")
	set txtObj = fsObj.OpenTextFile(Server.MapPath("../dv_plus/mingxing/")&"\mingxing.inc",1)
	txtObj.skipline()
	txtObj.skipline()
	txtObj.skip(11)
	mx_1=txtObj.read(1)
	txtObj.skipline()
	txtObj.skip(11)
	mx_2=txtObj.read(1)
	txtObj.skipline()
	txtObj.skip(11)
	mx_3=txtObj.read(1)
'读取金钱满额数
	txtObj.skipline()
	m_w=txtObj.ReadLine
'读取魅力满额数
	m_c=txtObj.ReadLine
'读取经验满额数
	m_e=txtObj.ReadLine
	
'读取金钱换算倍率
	n_w=txtObj.ReadLine
'读取魅力换算倍率
	n_c=txtObj.ReadLine
'读取经验换算倍率
	n_e=txtObj.ReadLine
	
'读取超出满额金钱换算倍率
	n_w2=txtObj.ReadLine
'读取超出满额魅力换算倍率
	n_c2=txtObj.ReadLine
'读取超出满额经验换算倍率
	n_e2=txtObj.ReadLine
	
'读取最小显示数
	m_d=txtObj.ReadLine
'读取能量柱最大显示数
	max_d=txtObj.ReadLine
	
'读取第一列是否虚拟形象显示开关
	isxx1=txtObj.ReadLine
'读取第二列是否虚拟形象显示开关
	isxx2=txtObj.ReadLine
'读取第三列是否虚拟形象显示开关
	isxx3=txtObj.ReadLine	

'读取第一列是否能量柱显示开关
	isnl1=txtObj.ReadLine
'读取第二列是否能量柱显示开关
	isnl2=txtObj.ReadLine
'读取第三列是否能量柱显示开关
	isnl3=txtObj.ReadLine
	set txtObj=nothing
	set fsObj=nothing
%>
 <p>第一列的明星显示方式： <br>
<input type="radio" name="mingxing_1" value="1" <%if mx_1="1" then response.write("checked") end if%>>每日发贴量 
<input type="radio" name="mingxing_1" value="2" <%if mx_1="2" then response.write("checked") end if%>>每周发贴量 
<input type="radio" name="mingxing_1" value="3" <%if mx_1="3" then response.write("checked") end if%>>每月发贴量 <br>
<input type="radio" name="mingxing_1" value="4" <%if mx_1="4" then response.write("checked") end if%>>每年发贴量 
<input type="radio" name="mingxing_1" value="5" <%if mx_1="5" then response.write("checked") end if%>>发贴总数 
<input type="radio" name="mingxing_1" value="6" <%if mx_1="6" then response.write("checked") end if%>>最佳男明星
<input type="radio" name="mingxing_1" value="7" <%if mx_1="7" then response.write("checked") end if%>>最佳女明星</p>


<p>第二列的明星显示方式：<br> 
<input type="radio" name="mingxing_2" value="1" <%if mx_2="1" then response.write("checked") end if%>>每日发贴量 
<input type="radio" name="mingxing_2" value="2" <%if mx_2="2" then response.write("checked") end if%>>每周发贴量 
<input type="radio" name="mingxing_2" value="3" <%if mx_2="3" then response.write("checked") end if%>>每月发贴量 <br>
<input type="radio" name="mingxing_2" value="4" <%if mx_2="4" then response.write("checked") end if%>>每年发贴量 
<input type="radio" name="mingxing_2" value="5" <%if mx_2="5" then response.write("checked") end if%>>发贴总数
<input type="radio" name="mingxing_2" value="6" <%if mx_2="6" then response.write("checked") end if%>>最佳男明星
<input type="radio" name="mingxing_2" value="7" <%if mx_2="7" then response.write("checked") end if%>>最佳女明星</p>

<p>第三列的明星显示方式：<br>
<input type="radio" name="mingxing_3" value="1" <%if mx_3="1" then response.write("checked") end if%>>每日发贴量 
<input type="radio" name="mingxing_3" value="2" <%if mx_3="2" then response.write("checked") end if%>>每周发贴量 
<input type="radio" name="mingxing_3" value="3" <%if mx_3="3" then response.write("checked") end if%>>每月发贴量 <br>
<input type="radio" name="mingxing_3" value="4" <%if mx_3="4" then response.write("checked") end if%>>每年发贴量 
<input type="radio" name="mingxing_3" value="5" <%if mx_3="5" then response.write("checked") end if%>>发贴总数 
<input type="radio" name="mingxing_3" value="6" <%if mx_3="6" then response.write("checked") end if%>>最佳男明星
<input type="radio" name="mingxing_3" value="7" <%if mx_3="7" then response.write("checked") end if%>>最佳女明星</p>


<!--锋芒不露加入是否虚拟形象显示、是否能量柱显示开关开始-->
<table width="100%"  border="1" bordercolor="yellow"><tr><td colspan="2" align="center"><b><font color="yellow">是否虚拟形象显示（</font><font color="red">若要直接显示头像或未装ＱＱ秀虚拟形象插件请选“头像显示”</font><font color="yellow">）</font></b></td></tr>
<tr><td>第一列：</td><td>
<input type="radio" name="isxingxiang1" value="0" <%if isxx1="0" then response.write("checked") end if%>>头像显示
<input type="radio" name="isxingxiang1" value="1" <%if isxx1="1" then response.write("checked") end if%>>ＱＱ秀虚拟形象显示</td></tr>
<tr><td>第二列：</td><td>
<input type="radio" name="isxingxiang2" value="0" <%if isxx2="0" then response.write("checked") end if%>>头像显示
<input type="radio" name="isxingxiang2" value="1" <%if isxx2="1" then response.write("checked") end if%>>ＱＱ秀虚拟形象显示</td></tr>
<tr><td>第二列：</td><td>
<input type="radio" name="isxingxiang3" value="0" <%if isxx3="0" then response.write("checked") end if%>>头像显示
<input type="radio" name="isxingxiang3" value="1" <%if isxx3="1" then response.write("checked") end if%>>ＱＱ秀虚拟形象显示</td></tr>
<tr><td>全部列：</td><td>
<input type="radio" name="isxingxiang" value="0">头像显示
<input type="radio" name="isxingxiang" value="1">ＱＱ秀虚拟形象显示</td></tr></table>


<table width="100%"  border="1" bordercolor="yellow"><tr><td colspan="2" align="center"><b><font color="yellow">是否能量柱样式（</font><font color="red">金钱、魅力、经验是否使用能量柱样式显示，还是数字样式显示</font><font color="yellow">）</font></b></td></tr>
<tr><td>第一列：</td><td>
<input type="radio" name="isnengliang1" value="0" <%if isnl1="0" then response.write("checked") end if%>>数字样式
<input type="radio" name="isnengliang1" value="1" <%if isnl1="1" then response.write("checked") end if%>>能量柱样式</td></tr>
<tr><td>第二列：</td><td>
<input type="radio" name="isnengliang2" value="0" <%if isnl2="0" then response.write("checked") end if%>>数字样式
<input type="radio" name="isnengliang2" value="1" <%if isnl2="1" then response.write("checked") end if%>>能量柱样式</td></tr>
<tr><td>第三列：</td><td>
<input type="radio" name="isnengliang3" value="0" <%if isnl3="0" then response.write("checked") end if%>>数字样式
<input type="radio" name="isnengliang3" value="1" <%if isnl3="1" then response.write("checked") end if%>>能量柱样式</td></tr>
<tr><td>全部列：</td><td>
<input type="radio" name="isnengliang" value="0">数字样式
<input type="radio" name="isnengliang" value="1">能量柱样式</td></tr></table>
<!--锋芒不露加入是否虚拟形象显示、是否能量柱显示开关结束-->


<!--锋芒不露加入能量柱参数开始-->
<p><font color="white"><b>能量柱参数设置</b></font>（<font color="red"><b>当“是否能量柱样式”为“数字样式”时以下修改无效果</b></font>）</p>
<table width="100%"  border="1" bordercolor="#FFFFFF">
  <tr>
    <td>最小显示长
    <input type="text" name="min_disp" value=<%=m_d%>></td><td>金钱值或魅力值或经验值过少时能量柱显示的最短长度</td>
  </tr>
  <tr>
    <td>最大显示长
    <input type="text" name="max_disp" value=<%=max_d%>></td><td>能量柱背景框显示长度</td>
  </tr>
</table>

<table width="100%" border="1" bordercolor="#FFCC00"><tr>
  <td colspan="3"><font color="white"><b>　　金钱能量柱参数设置：</b></font></td>
  <tr><td width="195">金钱超出满额示例</td><td>
<table cellspacing=0 cellpadding=0 width=100 border=0>
  <tr>
	<td width=30>
	  现金
	</td>
	<td>
	  <table cellspacing=0 cellpadding=0 border=0 width=<%=max_d%>>
		<tbody>
		  <tr>
			<td width=3 height=13>
			  <img height=13 src="../dv_plus/mingxing/img_left.gif" width=3>
			</td>
			<td background="../dv_plus/mingxing/img_backing.gif" height=13>
			  <img src="../dv_plus/mingxing/bar4.gif" width="<%=(m_w+(m_w/2))*n_w2+m_d%>" height=9 alt="<%=m_w+(m_w/2)%>元现金"><IMG height=9 src="../dv_plus/mingxing/bar4_1.gif" border=0>
			</td>
			<td width=3 height=13>
			  <img height=13 src="../dv_plus/mingxing/img_right.gif" width=3>
			</td>
		  </tr>
		</tbody>
	  </table>
	</td>
  </tr>
</table>
</td>
    <td>（以<%=m_w+(m_w/2)%>金钱为例）</td>
  </tr>
<tr><td>金钱未超出满额示例</td><td>
<table cellspacing=0 cellpadding=0 width=100 border=0>
  <tr>
    <td  width=30>
      现金
    </td>
    <td>
      <table cellspacing=0 cellpadding=0  width=<%=max_d%> border=0>
	    <tbody>
		  <tr>
		    <td width=3 height=13>
			  <img height=13 src="../dv_plus/mingxing/img_left.gif" width=3>
			</td>
			<td background="../dv_plus/mingxing/img_backing.gif">
			  <img src="../dv_plus/mingxing/bar4.gif" width="<%=(m_w/3)*n_w+m_d%>" height=9 alt="<%=m_w/3%>元现"><IMG height=9 src="../dv_plus/mingxing/bar4_1.gif" border=0>
			</td>
			<td width=3 height=13>
			  <img height=13 src="../dv_plus/mingxing/img_right.gif" width=3>
			</td>
		  </tr>
		</tbody>
	  </table>
	</td>
  </tr>
</table>
</td>
  <td>（以<%=m_w/3%>金钱为例）</td>
</tr>
<tr><td>
金钱满额数：</td><td><input type="text" name="max_welth" value=<%=m_w%>></td>
<td width="369">（能量柱满时的金钱数额）</td>
</tr>
<tr><td>
金钱倍率数：</td><td><input type="text" name="n_welth" value=<%=n_w%>></td>
<td>（金钱数不超出满额时的能量柱长度换算倍率） </td>
</tr>
<tr>
  <td> 金钱超出倍率数：</td>
  <td><input type="text" name="n_welth2" value=<%=n_w2%>></td>
  <td>（金钱数超出满额时的能量柱长度换算倍率） </td>
</tr>
<tr>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
</table>
<table width="100%" border="1" bordercolor="#99CCFF">
  <tr>
    <td colspan="3"><span class="style1"> <font 

color="white"><b>　　魅力能量柱参数设置：</b></font></span></td>
  <tr>
    <td width="195">魅力超出满额示例</td>
    <td>
      <table cellspacing=0 cellpadding=0 width=100 border=0>
        <tr>
          <td  width=30>魅力</td>
          <td><table cellspacing=0 cellpadding=0  width=<%=max_d%> border=0>
              <tbody>
                <tr>
                  <td width=3 height=13>
				    <img height=13 src="../dv_plus/mingxing/img_left.gif" width=3>
				  </td>
                  <td align=left background="../dv_plus/mingxing/img_backing.gif" height=13>
				    <img src="../dv_plus/mingxing/bar5.gif" width="<%=(m_c+(m_c/2))*n_c2+m_d%>" height=9 alt="<%=m_c+(m_c/2)%>魅力"><IMG height=9 src="../dv_plus/mingxing/bar5_1.gif" border=0>
				  </td>
                  <td width=3 height=13 >
				    <img height=13 src="../dv_plus/mingxing/img_right.gif" width=3>
				  </td>
                </tr>
              </tbody>
          </table></td>
        </tr>
    </table></td>
    <td>（以<%=m_c+(m_c/2)%>魅力为例）</td>
  </tr>
  <tr>
    <td>魅力未超出满额示例</td>
    <td>
      <table cellspacing=0 cellpadding=0 width=100 border=0>
        <tr>
          <td width=30>魅力</td>
          <td><table cellspacing=0 cellpadding=0  width=<%=max_d%> border=0>
              <tbody>
                <tr>
                  <td width=3 height=13 >
				    <img height=13 src="../dv_plus/mingxing/img_left.gif" width=3>
				  </td>
                  <td background="../dv_plus/mingxing/img_backing.gif">
				    <img src="../dv_plus/mingxing/bar5.gif" width="<%=(m_c/3)*n_c+m_d%>" height=9 alt="<%=m_c/3%>魅力"><IMG height=9 src="../dv_plus/mingxing/bar5_1.gif" border=0>
				  </td>
                  <td width=3 height=13>
				    <img height=13 src="../dv_plus/mingxing/img_right.gif" width=3>
				  </td>
                </tr>
              </tbody>
          </table></td>
        </tr>
    </table></td>
    <td>（以<%=m_c/3%>魅力为例）</td>
  </tr>
  <tr>
    <td> 魅力满额数：</td>
    <td><input type="text" name="max_cp" value=<%=m_c%>></td>
    <td width="369">（能量柱满时的魅力数额）</td>
  </tr>
  <tr>
    <td> 魅力倍率数：</td>
    <td><input type="text" name="n_cp" value=<%=n_c%>></td>
    <td>（魅力数不超出满额时的能量柱长度换算倍率） </td>
  </tr>
  <tr>
    <td> 魅力超出倍率数：</td>
    <td><input type="text" name="n_cp2" value=<%=n_c2%>></td>
    <td>（魅力数超出满额时的能量柱长度换算倍率） </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="1" bordercolor="#99FF66">
  <tr>
    <td colspan="3"><span class="style1"> <font 

color="white"><b>　　经验能量柱参数设置：</b></font></span></td>
  <tr>
    <td width="195">经验超出满额示例</td>
    <td>
      <table cellspacing=0 cellpadding=0 width=100 border=0>
        <tr>
          <td width=30>经验</td>
          <td><table cellspacing=0 cellpadding=0  width=<%=max_d%> border=0>
              <tbody>
                <tr>
                  <td width=3 height=13>
				    <img height=13 src="../dv_plus/mingxing/img_left.gif" width=3>
				  </td>
                  <td align=left background="../dv_plus/mingxing/img_backing.gif" height=13>
				    <img src="../dv_plus/mingxing/bar3.gif" width="<%=(m_e+(m_e/2))*n_e2+m_d%>" height=9 alt="<%=m_e+(m_e/2)%>魅力"><IMG height=9 src="../dv_plus/mingxing/bar3_1.gif" border=0>
				  </td>
                  <td width=3 height=13>
				    <img height=13 src="../dv_plus/mingxing/img_right.gif" width=3>
				  </td>
                </tr>
              </tbody>
          </table></td>
        </tr>
    </table></td>
    <td>（以<%=m_e+(m_e/2)%>经验为例）</td>
  </tr>
  <tr>
    <td>经验未超出满额示例</td>
    <td>
      <table cellspacing=0 cellpadding=0 width=100 border=0>
        <tr>
          <td width=30>经验</td>
          <td><table cellspacing=0 cellpadding=0  width=<%=max_d%> border=0>
              <tbody>
                <tr>
                  <td width=3 height=13 >
				    <img height=13 src="../dv_plus/mingxing/img_left.gif" width=3>
				  </td>
                  <td background="../dv_plus/mingxing/img_backing.gif">
				    <img src="../dv_plus/mingxing/bar3.gif" width="<%=(m_e/3)*n_e+m_d%>" height=9 alt="<%=m_e/3%>经验"><IMG height=9 src="../dv_plus/mingxing/bar3_1.gif" border=0>
				  </td>
                  <td width=3 height=13>
				    <img height=13 src="../dv_plus/mingxing/img_right.gif" width=3>
				  </td>
                </tr>
              </tbody>
          </table></td>
        </tr>
    </table></td>
    <td>（以<%=m_e/3%>经验为例）</td>
  </tr>
  <tr>
    <td> 经验满额数：</td>
    <td><input type="text" name="max_ep" value=<%=m_e%>></td>
    <td width="369">（能量柱满时的经验数额）</td>
  </tr>
  <tr>
    <td> 经验倍率数：</td>
    <td><input type="text" name="n_ep" value=<%=n_e%>></td>
    <td>（经验数不超出满额时的能量柱长度换算倍率） </td>
  </tr>
  <tr>
    <td> 经验超出倍率数：</td>
    <td><input type="text" name="n_ep2" value=<%=n_e2%>></td>
    <td>（经验数超出满额时的能量柱长度换算倍率） </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<!--锋芒不露加入能量柱参数结束-->

                    <p> 
                      <input type="submit" name="Submit" value="提交">
                      　　　　　 
                      <input type="reset" name="Submit2" value="重置">
                    </p>

<%
else
  mx_1=trim(request.form("mingxing_1"))
  mx_2=trim(request.form("mingxing_2"))
  mx_3=trim(request.form("mingxing_3"))
  
m_w=trim(request.form("max_welth"))
m_c=trim(request.form("max_cp"))
m_e=trim(request.form("max_ep"))

n_w=trim(request.form("n_welth"))
n_c=trim(request.form("n_cp"))
n_e=trim(request.form("n_ep"))

n_w2=trim(request.form("n_welth2"))
n_c2=trim(request.form("n_cp2"))
n_e2=trim(request.form("n_ep2"))

m_d=trim(request.form("min_disp"))
max_d=trim(request.form("max_disp"))

'判断是否全部一样
if trim(request.form("isxingxiang"))="" then
	isxx1=trim(request.form("isxingxiang1"))
	isxx2=trim(request.form("isxingxiang2"))
	isxx3=trim(request.form("isxingxiang3"))
else
	isxx1=trim(request.form("isxingxiang"))
	isxx2=trim(request.form("isxingxiang"))
	isxx3=trim(request.form("isxingxiang"))
end if
if trim(request.form("isnengliang"))="" then
	isnl1=trim(request.form("isnengliang1"))
	isnl2=trim(request.form("isnengliang2"))
	isnl3=trim(request.form("isnengliang3"))
else
	isnl1=request.form("isnengliang")
	isnl2=request.form("isnengliang")
	isnl3=request.form("isnengliang")
end if

	Set fsObj=Server.CreateObject("Scripting.FileSystemObject")
	set txtObj = fsObj.OpenTextFile(Server.MapPath("../dv_plus/mingxing/")&"\mingxing.inc",2,true)
	txtObj.writeline("<%")
	txtObj.writeline("dim mingxing_1,mingxing_2,mingxing_3")
	txtObj.write("mingxing_1=")
	txtObj.writeline(mx_1)
	txtObj.write("mingxing_2=")
	txtObj.writeline(mx_2)
	txtObj.write("mingxing_3=")
	txtObj.writeline(mx_3)

<!--锋芒不露加入能量柱参数写入开始-->
	txtObj.writeline(m_w)
	txtObj.writeline(m_c)
	txtObj.writeline(m_e)

	txtObj.writeline(n_w)
	txtObj.writeline(n_c)
	txtObj.writeline(n_e)

	txtObj.writeline(n_w2)
	txtObj.writeline(n_c2)
	txtObj.writeline(n_e2)
	
	txtObj.writeline(m_d)
	txtObj.writeline(max_d)
<!--锋芒不露加入能量柱参数写入结束-->
<!--锋芒不露加入虚拟形象开关、能量柱开关参数写入开始-->
	txtObj.writeline(isxx1)
	txtObj.writeline(isxx2)
	txtObj.writeline(isxx3)
	txtObj.writeline(isnl1)
	txtObj.writeline(isnl2)
	txtObj.writeline(isnl3)
<!--锋芒不露加入虚拟形象开关、能量柱开关参数写入结束-->
	txtObj.writeline("%\>")
	set txtObj=nothing
	set fsObj=nothing
	response.write("恭喜您，明星社区显示方式已经设定完毕！"&"<br>")
end if
%>
                  </td>
                </tr>
              </table>
            </form>
          </td>
            </tr>
        </table>
        </td>
    </tr>
</table>
<%
end sub
%>