📄 counter_option.tpl
字号:
<form action='{ACTION}' method='post' name=frmInfo>
<table width=100% border=0 cellspacing=1 cellpadding=3 bgcolor=white>
<tr>
<td>
<fieldset>
<legend>计数器设定</legend>
<table width=100% border=0 cellspacing=0 cellpadding=3>
<tr>
<td width="120">计数器样式:</td>
<td>
<select name='CounterStyle' onChange='chgPic();'>
{StyleList}
</select>
<img src='' id=preview_0>
<img src='' id=preview_1>
<img src='' id=preview_2>
<img src='' id=preview_3>
<img src='' id=preview_4>
<img src='' id=preview_5>
<img src='' id=preview_6>
<img src='' id=preview_7>
<img src='' id=preview_8>
<img src='' id=preview_9>
</td>
</tr>
<tr>
<td width="120">显示位数:</td>
<td><input type="text" name="CounterDigit" size="2" value="{counterDigit}"></td>
</tr>
<tr>
<td width="120">显示内容:</td>
<td>
<select name=CounterView>
<option value='pv' {IsPageView}>PageView(页面访问数)</option>
<option value='ip' {IsIpView}>IpView(IP访问数)</option>
</select>
</td>
</tr>
<tr>
<td colspan=2>
前台计数器图片引用地址:<br>
<img src='index.php?act=counter'>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr align="center">
<td colspan="3">
<input type="submit" value="保存设置">
<input name="btnSubmit" type="hidden" value="1">
</td>
</tr>
</table>
</form>
<script language='javascript'>
<!--
var base64DecodeChars = new Array(
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1,
-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
-1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1);
function base64_decode(str)
{
var c1, c2, c3, c4;
var i, len, out;
len = str.length;
i = 0;
out = "";
while(i < len)
{
do
{
c1 = base64DecodeChars[str.charCodeAt(i++) & 0xff];
} while(i < len && c1 == -1);
if(c1 == -1) break;
do
{
c2 = base64DecodeChars[str.charCodeAt(i++) & 0xff];
} while(i < len && c2 == -1);
if(c2 == -1) break;
out += String.fromCharCode((c1 << 2) | ((c2 & 0x30) >> 4));
do
{
c3 = str.charCodeAt(i++) & 0xff;
if(c3 == 61) return out;
c3 = base64DecodeChars[c3];
}while(i < len && c3 == -1);
if(c3 == -1) break;
out += String.fromCharCode(((c2 & 0XF) << 4) | ((c3 & 0x3C) >> 2));
do
{
c4 = str.charCodeAt(i++) & 0xff;
if(c4 == 61) return out;
c4 = base64DecodeChars[c4];
}
while(i < len && c4 == -1);
if(c4 == -1) break;
out += String.fromCharCode(((c3 & 0x03) << 6) | c4);
}
return out;
}
function chgPic()
{
for(var i =0; i < 10; i++)
{
var preview = document.images['preview_' + i];
preview.src = "../counter/" + base64_decode(document.frmInfo.CounterStyle.options[document.frmInfo.CounterStyle.selectedIndex].value) + "/" + i + '.png';
}
}
chgPic();
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -