📄 sendinvite.php
字号:
<?
include("pwdsuper.php");
include("connect.inc.php");
include("char.inc.php");
if (isset($flag)){
if(isset($checkbox2)){
$namequery=@mysql_query("select name,nickname from zmis41197 where studentnumber=".$userid,$conn)or die(mysql_error());
$userarray=mysql_fetch_array($namequery);
$namefrom=$userarray["name"];
$dw="集中营集体邀请函发送中心";
$intitle=$namefrom."同学给全体同学的邀请函";
$inmemo=$why.$title.$memo;
$query="insert into infor (subject,memo,dw,userid,name,date) values ('$intitle','$inmemo','$dw',$userid,'$namefrom',CURDATE())";
if(mysql_query($query))
//echo "发送消息,已成功完成!! ";
echo "<center></center>";
else
echo "<br>".mysql_error()."<br>";
}else{
if (isset($sendto)){
$loopcounter=count($sendto);
$fromquery=@mysql_query("select name,nickname from zmis41197 where studentnumber=".$userid,$conn)or die(mysql_error());
$fromarray=mysql_fetch_array($fromquery);
$msgfrom=$fromarray["name"];
//echo "<center>给:";
for ($i=0;$i<=$loopcounter-1;$i++){
$info=explode(",",$sendto[$i]);
$query="insert into invite (title,memo,snto,userid,username,senddate,toname,whys) values ('$title','$memo','$info[0]',$userid,'$msgfrom',CURDATE(),'$info[1]','$why')";
if(mysql_query($query))
// echo $info[1]." ";
echo "<!--center//-->";
else
echo "<br>".mysql_error()."<br>";
}
// echo "发送消息,已成功完成!</center>";
}else{
?>
<script language="javascript">
<!--
alert("你没有选择要将信息发送给谁!!")
history.back()
//-->
</script>
<?php
exit();
}
}
}
$namequery=@mysql_query("select name,studentnumber from zmis41197",$conn)or die("query error please try again!#2");
?>
<html>
<head>
<script language="javascript">
<!--
function ok_onclick(){
var text=""
if(form1.title.value!="" && form1.memo.value!="" && form1.why.value!="") form1.submit()
else text="你没有填写"
if (form1.title.value=="") text=text+" 标题"
if (form1.memo.value=="") text=text+" 内容"
if (form1.why.value=="") text=text+" 原因"
if(form1.title.value=="" || form1.memo.value=="" || form1.why.value=="") alert(text)
}
//-->
</script>
<style type="text/css">
<!--
td{font-size:12px;line-height:17px;}
a:active {text-decoration: none;}
a:link {text-decoration: none;}
a:hover{text-decoration: underline;}
a:visited {text-decoration: none;}
BODY{font-size:12px;line-height:17px;SCROLLBAR-FACE-COLOR: #83d160; SCROLLBAR-HIGHLIGHT-COLOR: #CCFF00; SCROLLBAR-SHADOW-COLOR: #CCFF00; SCROLLBAR-3DLIGHT-COLOR: #009900; SCROLLBAR-ARROW-COLOR: #006600; SCROLLBAR-TRACK-COLOR: ##99FF00; SCROLLBAR-DARKSHADOW-COLOR: #009900; }
-->
</style>
<title>::::发送邀请函::::</title>
<meta http-equiv="Content-Type" content="text/html;">
<!-- Fireworks 4.0 Dreamweaver 4.0 target. Created Wed Mar 20 14:48:27 GMT+0800 (?D1ú±ê×?ê±??) 2002-->
</head>
<body bgcolor="#dcf6ce" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#666600" link="#009900" alink="#00FF00" vlink="#006600">
<table border="0" cellpadding="0" cellspacing="0" width="621">
<!-- fwtable fwsrc="无标题" fwbase="right.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td><img src="images/spacer.gif" width="5" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="15" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="5" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="2" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="38" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="55" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="82" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="96" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="87" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="115" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="65" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="30" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="5" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="15" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="6" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td colspan="15" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="621" height="5" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="5" border="0"></td>
</tr>
<tr>
<td colspan="4" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="27" height="19" border="0"></td>
<td colspan="3"><img name="right_r2_c5" src="images/right_r2_c5.gif" width="175" height="19" border="0"></td>
<td colspan="8" bgcolor="#dcf6ce">::::发送邀请函:::: </td>
<td><img src="images/spacer.gif" width="1" height="19" border="0"></td>
</tr>
<tr>
<td rowspan="9" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="5" height="425" border="0"></td>
<td colspan="3"><img name="right_r3_c2" src="images/right_r3_c2.gif" width="22" height="16" border="0"></td>
<td colspan="2" bgcolor="#83d160"><img src="images/spacer.gif" width="93" height="16" border="0"></td>
<td><img name="right_r3_c7" src="images/right_r3_c7.gif" width="82" height="16" border="0"></td>
<td><img name="right_r3_c8" src="images/right_r3_c8.gif" width="96" height="16" border="0"></td>
<td><img name="right_r3_c9" src="images/right_r3_c9.gif" width="87" height="16" border="0"></td>
<td><img name="right_r3_c10" src="images/right_r3_c10.gif" width="115" height="16" border="0"></td>
<td colspan="3"><img name="right_r3_c11" src="images/right_r3_c11.gif" width="100" height="16" border="0"></td>
<td><img name="right_r3_c14" src="images/right_r3_c14.gif" width="15" height="16" border="0"></td>
<td rowspan="9" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="6" height="425" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="16" border="0"></td>
</tr>
<tr>
<td colspan="3"><img name="right_r4_c2" src="images/right_r4_c2.gif" width="22" height="60" border="0"></td>
<td><img name="right_r4_c5" src="images/right_r4_c5.gif" width="38" height="60" border="0"></td>
<td colspan="6" bgcolor="#dcf6ce"><img src="images/ad.gif" width="500" height="60" border="0"></td>
<td colspan="2"><img name="right_r4_c12" src="images/right_r4_c12.gif" width="35" height="60" border="0"></td>
<td><img name="right_r4_c14" src="images/right_r4_c14.gif" width="15" height="60" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="60" border="0"></td>
</tr>
<tr>
<td colspan="3"><img name="right_r5_c2" src="images/right_r5_c2.gif" width="22" height="19" border="0"></td>
<td colspan="3"><img name="right_r5_c5" src="images/right_r5_c5.gif" width="175" height="19" border="0"></td>
<td><img name="right_r5_c8" src="images/right_r5_c8.gif" width="96" height="19" border="0"></td>
<td><img name="right_r5_c9" src="images/right_r5_c9.gif" width="87" height="19" border="0"></td>
<td><img name="right_r5_c10" src="images/right_r5_c10.gif" width="115" height="19" border="0"></td>
<td colspan="3"><img name="right_r5_c11" src="images/right_r5_c11.gif" width="100" height="19" border="0"></td>
<td><img name="right_r5_c14" src="images/right_r5_c14.gif" width="15" height="19" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="19" border="0"></td>
</tr>
<tr>
<td rowspan="6" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="15" height="330" border="0"></td>
<td rowspan="2" background="images/box2.gif"><img name="right_r6_c3" src="images/right_r6_c3.gif" width="5" height="302" border="0"></td>
<td rowspan="2" colspan="9" bgcolor="#dcf6ce" valign="top" align="center">
<table width="493" border="0" cellspacing="0" cellpadding="0" height="322">
<tr>
<td width="46" height="62"><img src="images/ren_t_b.gif" width="46" height="62"></td>
<td colspan="2" height="62"><img src="images/ren_top.gif" width="69" height="62"></td>
<td height="62"></td>
<td width="4" height="62"><img src="images/spacer.gif" width="4" height="4"></td>
<td width="46" height="62"></td>
</tr>
<tr>
<td rowspan="2" height="145" valign="top"><img src="images/ren_bottom.gif" width="46" height="145"></td>
<td width="4" height="4"><img src="images/box_top_left.gif" width="4" height="4"></td>
<td width="65" height="4" background="images/box_bg_top.gif"><img src="images/spacer.gif" width="4" height="4"></td>
<td height="4" background="images/box_bg_top.gif"><img src="images/spacer.gif" width="4" height="4"></td>
<td height="4" width="4"><img src="images/box_top_right.gif" width="4" height="4"></td>
<td height="4" width="46"><img src="images/spacer.gif" width="4" height="4"></td>
</tr>
<tr>
<td width="4" height="141" background="images/box_bg_left.gif"></td>
<td colspan="2" height="141" rowspan="2" background="images/box_bg.gif">
<div align="center">
<form name="form1" method="post" action="sendinvite.php">
<table border="0" cellspacing="2" cellpadding="0" width="325">
<tr>
<td width="41"> </td>
<td align="center" width="175"><font color="#FFFFFF">::::发送邀请函::::</font></td>
<td width="85"> </td>
</tr>
<tr>
<td colspan="2"><font color="#FFFFFF">因</font>
<input type="text" name="why" size="10" maxlength="20">
<font color="#FFFFFF">(事情、原因)邀请</font></td>
<td width="85">
<input type="checkbox" name="checkbox2" value="pvpicok">
<font color="#FFFFFF">全部同学</font></td>
</tr>
<tr>
<td width="41"><font color="#FFFFFF">标题:</font></td>
<td width="175">
<input type="text" name="title" size="20" maxlength="20">
</td>
<td rowspan="7" valign="top" width="85">
<select name="sendto[]" multiple size="5">
<?php
while ($array=mysql_fetch_array($namequery)){
//echo '<option value="'.$array["studentnumber"].'">'.$array["name"].'</option>';
echo '<option value="'.$array["studentnumber"].','.$array["name"].'">'.$array["name"].'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<td width="41"><font color="#FFFFFF">内容:</font></td>
<td rowspan="6" valign="top" width="175">
<textarea name="memo" cols="19" rows="5"></textarea>
</td>
</tr>
<tr>
<td width="41"> </td>
</tr>
<tr>
<td width="41"> </td>
</tr>
<tr>
<td width="41"> </td>
</tr>
<tr>
<td width="41"> </td>
</tr>
<tr>
<td width="41"> </td>
</tr>
<tr>
<td colspan="3">
<div align="center">
<input type="submit" name="Submit" value="写好了,发送!" onClick="ok_onclick();return false">
<input type="reset" name="Submit4" value="写错了,重来!">
<font color="#FFFFFF"> </font>
<input type=hidden name="userid" value="<?php echo $userid;?>">
<input type=hidden name="flag" value="send">
</div>
</td>
</tr>
</table>
</form>
</div>
</td>
<td height="141" width="4" background="images/box_bg_right.gif"><img src="images/spacer.gif" width="4" height="4"></td>
<td height="141" width="46"></td>
</tr>
<tr>
<td width="46"><img src="images/spacer.gif" width="4" height="4"></td>
<td width="4" background="images/box_bg_left.gif"><img src="images/spacer.gif" width="4" height="4"></td>
<td width="4" background="images/box_bg_right.gif"></td>
<td width="46"><img src="images/spacer.gif" width="4" height="4"></td>
</tr>
<tr>
<td width="46" height="4"><img src="images/spacer.gif" width="4" height="4"></td>
<td width="4" height="4"><img src="images/box_bottom_left.gif" width="4" height="4"></td>
<td width="65" height="4" background="images/box_bg_bottom.gif"><img src="images/spacer.gif" width="4" height="4"></td>
<td height="4" background="images/box_bg_bottom.gif"><img src="images/spacer.gif" width="4" height="4"></td>
<td width="4" height="4"><img src="images/box_bottom_right.gif" width="4" height="4"></td>
<td height="4" width="46"><img src="images/spacer.gif" width="4" height="4"></td>
</tr>
</table>
<br>
</td>
<td background="images/box2.gif"><img name="box2" src="images/box2.gif" width="5" height="1" border="0"></td>
<td rowspan="6" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="15" height="330" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td background="images/box2.gif"><img name="right_r7_c13" src="images/right_r7_c13.gif" width="5" height="301" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="301" border="0"></td>
</tr>
<tr>
<td rowspan="3" colspan="4"><img name="right_r8_c3" src="images/right_r8_c3.gif" width="100" height="21" border="0"></td>
<td colspan="4"><img name="right_r8_c7" src="images/right_r8_c7.gif" width="380" height="3" border="0"></td>
<td rowspan="3" colspan="3"><img name="right_r8_c11" src="images/right_r8_c11.gif" width="100" height="21" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="3" border="0"></td>
</tr>
<tr>
<td colspan="4" bgcolor="#dcf6ce"><img src="images/copyright.gif" width="380" height="14" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="14" border="0"></td>
</tr>
<tr>
<td colspan="4"><img name="right_r10_c7" src="images/right_r10_c7.gif" width="380" height="4" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="11" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="580" height="7" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="7" border="0"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -