{#include file="sys/admin_header.htm"#}
<div class="admin_main_nr_dbox">
 <div class="pagetit">
	<div class="ptit"> {#$pageheader#}</div>
	{#include file="set_com/admin_set_com_nav.htm"#}
  <div class="clear"></div>
</div>
<div class="toptip">
	<h2>提示：</h2>
	<p>
积分模式是指会员每次发布信息都扣除相应的积分，通过会员充值积分来实现网站盈利，此模式简易灵活，无时间限制。<br />
除以下设置外，企业推广和企业模版模块也涉及到了积分设置。<br />
</p>
</div>
<div class="toptit">基本设置</div>
 
	<form action="?act=set_points_config_save" method="post"  name="form1" id="form1">
 {#$inputtoken#}
	
    <table width="100%" border="0" cellspacing="5" cellpadding="1" style=" margin-bottom:3px;">
      <tr>
        <td  width="200"  align="right">刷新普通职位时间间隔：</td>
        <td><input name="com_pointsmode_refresh_space" type="text"  class="input_text_150" id="com_pointsmode_refresh_space" value="{#$config.com_pointsmode_refresh_space#}" maxlength="8"    onkeyup="if(event.keyCode !=37 &amp;&amp; event.keyCode != 39) value=value.replace(/\D/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/> 分钟
           <span style="color:#666666">(0为不限制)</span></td>
      </tr>
	  <tr>
        <td align="right">每天刷新普通职位次数限制：</td>
        <td><input name="com_pointsmode_refresh_time" type="text"  class="input_text_150" id="com_pointsmode_refresh_time" value="{#$config.com_pointsmode_refresh_time#}" maxlength="8"    onkeyup="if(event.keyCode !=37 &amp;&amp; event.keyCode != 39) value=value.replace(/\D/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/> 次
           <span style="color:#666666">(0为不限制)</span></td>
      </tr>
      <tr>
        <td align="right" valign="top">&nbsp;</td>
        <td height="55"><span style="font-size:14px;">
          <input name="submit2" type="submit" class="admin_submit" value="保存修改"/>
        </span></td>
      </tr>
    </table>
	</form>
    <form action="?act=set_points_save" method="post"  name="form1" id="form1">
	 {#$inputtoken#}
	<div class="toptit">基本设置</div>
 
    <table width="100%" border="0" cellspacing="5" cellpadding="1">
	  {#foreach from=$points item=points#}
      <tr>
        <td width="200" align="right" >{#$points.title#}：</td>
        <td width="5" >

		  <select name="operation[]" style="font-size:12px;">
		    <option value="1"  {#if $points.operation=="1"#}selected="selected"{#/if#}>加</option>
		    <option value="2"  {#if $points.operation=="2"#}selected="selected"{#/if#}>减</option>
        </select>		</td>
        <td >
		<input name="id[]" type="hidden" value="{#$points.id#}" />
		<input name="value[]" type="text" class="input_text_50"   value="{#$points.value#}" maxlength="4"/>
积分</td>
      </tr>
	  	  {#/foreach#}
      <tr>
        <td align="right"  >&nbsp;</td>
        <td height="50" colspan="2"  ><input name="submit" type="submit" class="admin_submit"    value="保存"/></td>
      </tr>
    </table>    
  </form>
  <div class="toptit">积分抵现设置</div>
  <form action="?act=set_points_config_save" method="post"  name="form1" id="form1">
  <table width="100%" border="0" cellspacing="5" cellpadding="1">
    <tr>
        <td align="right" width="200">积分/现金比例：</td>
        <td>
            <input name="points_to_money" type="text"  class="input_text_150" id="points_to_money" value="{#$config.points_to_money#}" maxlength="8"/>
            <span style="color:#666666">(1积分=={#$config.points_to_money#}元)</span>
        </td>
    </tr>
    <tr>
        <td align="right" width="200">积分抵现最大值：</td>
        <td>
            <input name="points_to_money_max" type="text"  class="input_text_150" id="points_to_money_max" value="{#$config.points_to_money_max#}" maxlength="8"/>
            <span style="color:#666666">(最多可使用{#$config.points_to_money_max#}积分抵现)</span>
        </td>
    </tr>
    <tr>
        <td align="right" width="200" >&nbsp;</td>
        <td height="50" colspan="2"  ><input name="submit" type="submit" class="admin_submit"    value="保存"/></td>
    </tr>
  </table>
  </form>
</div>
{#include file="sys/admin_footer.htm"#}
</body>
</html>