dvfriendlist.js
来自「胜天购物销售系统前台购买特征: 时代购物系统前台购物车部分界面友好」· JavaScript 代码 · 共 80 行
JS
80 行
function dvbbs_friendlist(taction){
if (taction==1)
{
document.write ('<form action="friendlist.asp" method=post name=inbox>');
document.write ('<table cellpadding=3 cellspacing=1 align=center class=tableborder1>');
document.write ('<tr>');
document.write ('<th valign=middle width="25%">姓名</td>');
document.write ('<th valign=middle width="25%">邮件</td>');
document.write ('<th valign=middle width="25%">主页</td>');
document.write ('<th valign=middle width="10%">OICQ</td>');
document.write ('<th valign=middle width="10%">发短信</td>');
document.write ('<th valign=middle width="5%">操作</td>');
document.write ('</tr>');
}
else{
document.write ('<tr>');
document.write ('<td align=right valign=middle colspan=6 class=tablebody2><input type=checkbox name=chkall value=on onclick="CheckAll(this.form)">选中所有显示记录 <input type=button name=action onclick="location.href=\'friendlist.asp?action=addF\'" value="添加好友"> <input type=submit name=action onclick="{if(confirm(\'确定删除选定的纪录吗?\')){this.document.inbox.submit();return true;}return false;}" value="删除"> <input type=submit name=action onclick="{if(confirm(\'确定清除所有的纪录吗?\')){this.document.inbox.submit();return true;}return false;}" value="清空好友"></td>');
document.write ('</tr>');
document.write ('</table>');
document.write ('</form>');
}
}
function dvbbs_friendlist_loop(F_friend,useremail,homepage,oicq,f_id){
document.write ('<tr>');
document.write ('<td align=center valign=middle class=tablebody1><a href="dispuser.asp?name='+F_friend+'" target=_blank>'+F_friend+'</a></td>');
document.write ('<td align=center valign=middle class=tablebody1><a href="mailto:'+useremail+'">'+useremail+'</a></td>');
document.write ('<td align=center class=tablebody1><a href="'+homepage+'" target=_blank>'+homepage+'</a></td>');
document.write ('<td align=center class=tablebody1>'+oicq+'</td>');
document.write ('<td align=center class=tablebody1><a href="javascript:openScript(\'messanger.asp?action=new&touser='+F_friend+'\',500,400)">发送</a></td>');
document.write ('<td align=center class=tablebody1><input type=checkbox name=id value="'+f_id+'"></td>');
document.write ('</tr>');
}
function dvbbs_friendlist_emp(){
document.write ('<tr>');
document.write ('<td class=tablebody1 align=center valign=middle colspan=6>您的好友列表中没有任何内容。</td>');
document.write ('</tr>');
}
function dvbbs_friendlist_add(myFriend){
document.write ('<form action="Friendlist.asp" method=post name=messager>');
document.write ('<table cellpadding=3 cellspacing=1 align=center class=tableborder1>');
document.write ('<tr>');
document.write ('<th colspan=2>');
document.write ('<input type=hidden name="action" value="saveF">');
document.write ('加入好友--请完整输入下列信息</th>');
document.write ('</tr>');
document.write ('<tr>');
document.write ('<td class=tablebody1 valign=middle width=70><b>好友:</b></td>');
document.write ('<td class=tablebody1 valign=middle>');
document.write ('<input type=text name="touser" size=50 value="'+myFriend+'">');
document.write (' 使用逗号(,)分开,最多5位用户');
document.write ('</td>');
document.write ('</tr>');
document.write ('<tr>');
document.write ('<td valign=middle colspan=2 align=center class=tablebody2>');
document.write ('<input type=Submit value="保存" name=Submit>');
document.write (' ');
document.write ('<input type="reset" name="Clear" value="清除">');
document.write ('</td>');
document.write ('</tr>');
document.write ('</table>');
document.write ('</td>');
document.write ('</tr>');
document.write ('</table>');
document.write ('</form>');
}
function CheckAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?