|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
使用filesystemobject,可以对服务器上的文件进行操作,浏览、复制、移动、删除等。有ado的支持,asp对数据库的操作非常得心应手。你甚至可以像使用本地数据库那样,管理远程主机上的数据库,对表格、记录进行各种操作。静态
<style>
p,div,body,td,input,checkbox,button{font-size:9pt;}
</style>
<scriptlanguage="vbScript">
functionvbtrim(str)
vbtrim=trim(str)
endfunction
functionvbisnumeric(iVar)
vbisnumeric=notisnumeric(iVar)
endfunction
</script>
<scriptlanguage="JavaScript">
<!--
varchkval=newArray();
varcurstr=0;
functionchecktable()
{
if(typeof(form1.wtfs.length)=="undefined")alert(数量不敷,没法持续。);//OneCheckboxerr
wtab.style.visibility="visible";//displaytable
varwtfsmc="";
chkval[curstr]="";
for(i=0;i<form1.wtfs.length;i++)
{
if(form1.wtfs[i].checked)
{
wtfsmc+=vbtrim(form1.wtfs[i].nextSibling.nodeValue)+",";
chkval[curstr]+=vbtrim(form1.wtfs[i].value)+",";
form1.wtfs[i].checked=false;
form1.wtfs[i].disabled=1;
}
}
if(wtfsmc!="")
{wtfsmc=wtfsmc.substring(0,wtfsmc.length-1)
chkval[curstr]=chkval[curstr].substring(0,chkval[curstr].length-1)
addtr(wtfsmc,curstr);
curstr++;
}
}
functionaddtr(mc,iIndex)
{
//wtfsmc=obj.nextSibling.nodeValue;//checkbox前面的笔墨
iRow=wtab.rows.length;
if(iRow==1)//xuhaovalue
{
xuhao=1
}
else
{
xuhao=parseInt(wtab.rows[iRow-1].cells[0].innerText)+1;
}
if(form1.ynlj.checked)//是不是
{
shifou="<fontcolor=green>是</font>";
}
else
{
shifou="<fontcolor=blue>否</font>";
}
czuo="[<ahref=#>删除</a>]";
myNewRow=wtab.insertRow();//insertTRrow
for(j=0;j<wtab.rows(iRow-1).cells.length;j++)
{
myNewCell=wtab.rows[iRow].insertCell(j);//insertTDcecllofTRcollection
switch(j)
{
case0:
wtab.rows[iRow].cells(j).innerHTML=xuhao+"";wtab.rows[iRow].cells(j).align="right";
break;
case1:
wtab.rows[iRow].cells(j).innerHTML=""+mc;wtab.rows[iRow].cells(j).align="left";
break;
case2:
wtab.rows[iRow].cells(j).innerHTML=""+shifou;wtab.rows[iRow].cells(j).align="left";
break;
case3:
wtab.rows[iRow].cells(j).innerHTML=czuo;wtab.rows[iRow].cells(j).align="center";
wtab.rows[iRow].cells(j).attachEvent(onmou搜索引擎优化ver,SetColor_1);
wtab.rows[iRow].cells(j).attachEvent(onmou搜索引擎优化ut,SetColor_2);
break;
}
}
}
functiondeltab(chkid,iIndex)
{
wtab.deleteRow(iIndex);
for(i=0;i<chkval[chkid].length;i++)
{
if(chkval[chkid].substr(i,1)!=",")
{
idx=parseInt(chkval[chkid].substr(i,1));
for(j=0;j<form1.wtfs.length;j++)
{
if(form1.wtfs[j].value==idx)
{
form1.wtfs[j].disabled=0;
}
}
}
}
}
functionSetColor_1()
{
vartd=event.srcElement;
td.bgColor="#0099FF";
returntrue;
}
functionSetColor_2()
{
vartd=event.srcElement;
td.bgColor="";
returntrue;
}
//-->
</script>
<formname=form1>
<tableborder="1"width="100%"bordercolorlight="#006699"cellspacing="0"bordercolordark="#FFFFFF">
<tr>
<tdwidth="100%">
<divalign="center">
<center>
<tableborder="0"width="98%"cellspacing="0"cellpadding="2">
<tr>
<tdwidth="100%"colspan="3"></td>
</tr>
<tr>
<tdwidth="107"rowspan="7"bgcolor="#EEEEEE"style="border:1solid#D8D8D8"><br>
</td>
<tdcolspan="2"width="100%"><fontclass="navPoint">4</font><b>以后选择的体例:</b><fontcolor=red>成交金额累计</font><fontclass="navPoint">4</font><b>体例称号:</b><fontcolor=blue>sdasd</font></td>
</tr>
<tr>
<tdcolspan="2"align="left"width="100%">
<hrwidth="95%"size="1"color="#808080">
</td>
</tr>
<tr>
<tdwidth="2%"></td>
<tdwidth="98%"rowspan="5"valign="top">
<tableborder="0"width="100%"cellspacing="0"cellpadding="2"bgcolor="#fffffa">
<tr>
<tdwidth="66%"><fieldset><tableborder="0"width="100%"cellspacing="0"cellpadding="0">
<tr>
<tdwidth="33%">
<inputtype="checkbox"value="0"name="wtfs">稀里糊涂</td>
<tdwidth="33%">
<inputtype="checkbox"value="1"name="wtfs">七零八落</td>
<tdwidth="34%">
<inputtype="checkbox"value="2"name="wtfs">小键盘</td>
</tr>
<tr>
<tdwidth="33%">
<inputtype="checkbox"value="3"name="wtfs">德律风号码</td>
<tdwidth="33%">
<inputtype="checkbox"value="4"name="wtfs">任我行吗</td>
<tdwidth="34%">
<inputtype="checkbox"value="5"name="wtfs">自助快餐</td>
</tr>
<tr>
<tdwidth="33%">
<inputtype="checkbox"value="6"name="wtfs">别的托付</td>
<tdwidth="33%">
<inputtype="checkbox"value="7"name="wtfs">远程接进</td>
<tdwidth="34%">
<inputtype="checkbox"value="8"name="wtfs">拂晓天亮</td>
</tr>
<tr>
<tdwidth="33%">
</table></fieldset></td>
<tdwidth="34%"valign=top><fieldset><inputtype="checkbox"value="0"name="ynlj">按累计买卖额盘算<br><br><br><tableborder="0"width="20%"cellspacing="0"cellpadding="0"><tr><tdwidth="100%"height=6></td></tr></table></fieldset></td>
</tr>
<tr>
<tdwidth="100%"colspan="2">
<divalign="center">
<center>
<tableid=wtabborder="1"width="99%"cellspacing="0"bordercolorlight="#336699"bordercolordark="#FFFFFF"cellpadding="1"style="visibility:hidden">
<trbgcolor=#F9E486>
<tdwidth="10%"align="center">序号</td>
<tdwidth="40%"align="center">托付体例</td>
<tdwidth="30%"align="center">是不是按累计买卖额盘算</td>
<tdwidth="30%"align="center">操纵选项</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<tdwidth="2%"></td>
</tr>
<tr>
<tdwidth="2%"></td>
</tr>
<tr>
<tdwidth="2%"></td>
</tr>
<tr>
<tdwidth="2%"></td>
</tr>
<tr>
<tdcolspan="3"width="100%">
<hrwidth="98%"size="1"color="#808080">
</td>
</tr>
<tr>
<tdwidth="100%"colspan="3"align=right>
<tableborder="0"width="80%"cellspacing="0">
<tr>
<tdwidth="34%"align="right"><inputclass="hand"type="button"value="<<上一步"style="border:1solid#1D1D1D"></td>
<tdwidth="23%"><inputclass="hand"type="submit"value="下一步>>"style="border:1solid#1D1D1D"></td>
<tdwidth="43%"><inputclass="hand"type="button"value="封闭窗口"style="border:1solid#1D1D1D"></td>
</tr>
</table><br>
</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</form>
asp,你就只能等着微软给你解决,它不乐意你就只好悲催。而且asp跑在windows服务器上,windows服务器跟linux比起来简直弱爆了! |
|