自己加几个小开关!
作者:cmscn 日期:2005-04-11
偶举几个例子,大家可以举一反三!!!
admin_config_edit.asp
<% tmp1=format_mid_num(30) %>
<tr class=tr>
<td>iPaying支付:</td>
<td><input type=radio name=web_setup_30 value='1'<% if int(tmp1)=1 then response.write " checked" %>> 是 <input type=radio name=web_setup_30 value='0'<% if int(tmp1)<>1 then response.write " checked" %>> 否</td>
<td class=gray>是否启用在线支付购买功能</td>
</tr>
<% tmp1=format_mid_num(31) %>
<tr class=tr>
<td>银行转帐支付:</td>
<td><input type=radio name=web_setup_31 value='1'<% if int(tmp1)=1 then response.write " checked" %>> 是 <input type=radio name=web_setup_31 value='0'<% if int(tmp1)<>1 then response.write " checked" %>> 否</td>
<td class=gray>是否启用银行转帐支付购买功能</td>
</tr>
<% tmp1=format_mid_num(32) %>
<tr class=tr>
<td>邮局汇款支付:</td>
<td><input type=radio name=web_setup_32 value='1'<% if int(tmp1)=1 then response.write " checked" %>> 是 <input type=radio name=web_setup_32 value='0'<% if int(tmp1)<>1 then response.write " checked" %>> 否</td>
<td class=gray>是否启用邮局汇款支付购买功能</td>
</tr>
shop_pay.asp
<% if int(format_mid_num(30))=1 then response.write "<option value='onlinepay'>在线支付 ☆推荐☆</option>" %>
<% if int(format_mid_num(31))=1 then response.write "<option value='银行转帐'>银行转帐</option>" %>
<% if int(format_mid_num(32))=1 then response.write "<option value='邮局汇款'>邮局汇款</option>" %>
偶是把首页和等等等等的都调用上,然后加个开关,自己在后台控制,
评论: 6 | 引用: 0 | 查看次数: 662
发表评论