36
ภาคผนวก

ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

  • Upload
    vuliem

  • View
    217

  • Download
    0

Embed Size (px)

Citation preview

Page 1: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

ภาคผนวก

Page 2: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

ภาคผนวก ก Source Code

Page 3: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

Source Code ชื่อ connnect.php <? $conn = mysql_connect('localhost','root','1234'); $db=mysql_select_db('vpd') or die ("ไมสามารถติดตอฐานขอมูลได"); mysql_query("SET NAMES tis620"); if(!$conn) { echo "ไมสามารถเชื่อมตอไดสําเร็จ"; } ?> Source Code ชื่อ index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>::: สื่อการเรียนรูออนไลน โรงเรียนบานวังปลาโด :::</title><style type="text/css"> <!-- .style2 {font-size: 6px; color: #0000FF;} .style4 {font-size: 9px} .style10 { font-size: 12px; color: #598CDB; } .style12 { color: #Ffae6d; font-weight: bold; font-size: larger; } .style16 {font-family: "MS Sans Serif"; font-weight: bold; font-size: 14px; color: #598CDB;} body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } --> </style> </head> <body> <table width="761" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td rowspan="10" width="1" height="100%"></td> <td rowspan="10" width="1" bgcolor="#000000"></td> <td colspan="3"> <center> <? include ("head.php");?> </center> </td> <td rowspan="10" width="16" bgcolor="#000000"></td> <td rowspan="10" width="1" height="100%"></td> </tr> <tr>

Page 4: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

<td width="16" height="100%" valign="top" bgcolor="#254380"><br /> <? include("left.php"); ?> </td> <td width="540" height="100%" valign="top" bgcolor="#F7F5EE"><table width="544" border="0"> <tr> <td width="538"> <marquee><p align="center" class="style16"> <? $thai_w=array("อาทิตย","จันทร","อังคาร","พุทธ","พฤหัส","ศุกร","เสาร"); $thai_n=array("มกราคม","กุมภาพันธ","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฏาคม", "สิงหาคม","กันยายน", "ตุลาคม","พฤษจิกายน","ธันวาคม"); $thai_d=array("01","02","03","04","05","06","07","08","09","10","11","12"); $dd=$thai_d[date("n")-1]; $w=$thai_w[date("w")]; $d=date("d"); $n=$thai_n[date("n")-1]; $y=date("Y")+543; $t=date("เวลา H นาฬิกา i นาที s วินาที"); echo "วัน $w ท่ี $d เดือน $n ป พ.ศ. $y $t"; ?></p> <p align="center" class="style12"> ยังไมไดเขาสูระบบครับ [กรุณาเขาสูระบบ] </p> </marquee> <p><img src="picture/subjectweb.gif" width="98" height="37" /></p></td> </tr> <tr> <td><p class="style2 style4">1.เพื่อพัฒนาระบบ e-learning มาใชใหเกิดประโยชนในการเรียนการสอนของโรงเรียนบานวังปลาโด</p></td> </tr> <tr> <td><img src="picture/subjectweb2.gif" width="191" height="37" /></td> </tr> <tr> <td><p class="style2 style4">1.สามารถเรียนรูจากเอกสารประกอบการเรียนไดเฉพาะผูท่ีลงทะเบียนเรียน ซ่ึงประกอบไปดวยรายวิชาตอไปน้ี</p></td> </tr> <tr> <td><p class="style2 style4">• วิชาภาษาอังกฤษ</p></td> </tr> <tr> <td><p class="style2 style4">• วิชาภาษาไทย </p></td> </tr> <tr> <td><p class="style2 style4">• วิชาสังคมศึกษา </p></td> </tr> <tr> <td><p class="style2 style4">2.สามารถทําแบบทดสอบกอนเรียนไดเฉพาะผูท่ีลงทะเบียนเรียน </p></td> </tr> <tr> <td><p class="style2 style4">3.สามารถทําแบบทดสอบหลังเรียนไดเฉพาะผูท่ีลงทะเบียนเรียน </p></td> </tr> <tr> <td><p class="style2 style4">4.สามารถทําขอสอบออนไลนไดเฉพาะผูท่ีลงทะเบียนเรียน</p></td> </tr> <tr>

Page 5: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

<td><p class="style2 style4">5.สามารถดาวนโหลดเอกสารประกอบการเรียนไดเฉพาะผูท่ีลงทะเบียนเรียน </p></td> </tr> <tr> <td>&nbsp;</td> </tr> <tr> <td><p><a href="http://www.layoutcodez.net/flashtoys/" target="_blank"><br /> </p> <table width="424" border="0" align="center"> <tr> <th colspan="7" bordercolor="#E1F8F0" bgcolor="#00CCFF" scope="col"><img src="picture/news_by_tea.gif" width="453" height="58" /></th> </tr> <tr> <? include ("connect.php"); $sql = ("select * from std_connect where stdConnect_std='' and stdConnect_day_end >= '$y $dd $d ' "); $result = mysql_query($sql); $numrow = mysql_num_rows($result);//echo "$d $dd $y"; exit(); while ( $data = mysql_fetch_array( $result ) ) { $i++; ?> <th bgcolor="#ECE9D8" scope="col"><p align="left" class="style10"><img src="picture/course.gif" /> <?=$data[stdConnect_type ];?> <?echo"<a href='detail_news2.php?test=$data[stdConnect_id]'>$data[stdConnect_title]";?> <?=$data[stdConnect_tea];?> <?=$data[stdConnect_day];?> </p></th> </tr> <? } ?> </table> <br /> <table width="422" border="0" align="center"> <tr> <th bgcolor="#00CCFF" scope="col"><img src="picture /news_by_web.gif" width="453" height="58" /></th> </tr> <tr> <? include ("connect.php"); $sql2 = ("select * from web_connect where webConnect_std= '' and webConnect_day_end >='$y $dd $d ' ");//echo"$y $dd $d"; exit(); $result2 =

Page 6: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

mysql_query($sql2); $numrow = mysql_num_rows($result2); while ( $data = mysql_fetch_array( $result2 ) ) { $i++; ?> <th bgcolor="#ECE9D8" scope="col"><div align="left"><img src="picture/course.gif" /><span class="style10"><span class="style10"> <?=$data[webConnect_type ];?> </span><?echo"<a href='detail_news.php?test=$data[webConnect_id]'>$data[webConnect_title]";?> <?=$data[webConnect_tea];?> <?=$data[webConnect_day];?> </div></th> </tr> <? } ?> </table> <br /></td> </tr> </table></td> <td width="185" height="100%" valign="top" bgcolor="#254380"> <? include ("login.php");?> <br /> <table width="169" align="center"> <tr> </tr> <tr> <td><div align="center"> <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="flashplayer" src="http://www.5fever.com/calendars/swf/christmas1.swf" quality="high" width="161" height="144" swliveconnect="true" allowscriptaccess="samedomain" ></embed> <br> <!-- network banner --> <br> </div></td> </tr> </table> <br /> <table width="185" align="center"> <tr> </tr> <tr> <td><div align="center"> <embed src="http://i110.photobucket.com /albums/n100/b810/clock/Set4%20150x150/i1.swf" width="150" height="150" wmode="transparent" quality="high" loop="True" bgcolor="#000000" type= "application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod _Version=ShockwaveFlash"></embed> </div></td> </tr> </table></td> </tr> <tr> <td height="40" colspan="3" align="center" valign="top"

Page 7: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

bgcolor="#006699"><? include("under.php"); ?></td> </tr> </table> </body> </html>

Source Code ชื่อ std_register.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <LINK href="include/default.css" type=text/css rel=stylesheet> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>สมัครสมาชิกเพื่อเขาสูระบบ</title><style type="text/css"> <!-- .style2 {color: #0000FF} .style4 {font-size: 14px} .style9 {font-style: italic} .style10 { font-size: 12px; color: #FF6633; } .style12 { color: #FF0000; font-weight: bold; font-size: larger; } .style14 {font-size: 14px; color: #FF0000; } .style15 {color: #000000} .password { FONT-SIZE: 11px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif } .password1 { FONT-SIZE: 11px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif } .password1 {FONT-SIZE: 11px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif } --> </style> </head> <body> <table width="908" align="center"> <tr> <td><? include('head.php'); ?></td> </tr> <tr> <td><div align="right"><span class="style10">ยังไมไดเขาสูระบบครับกรุณาเขาสูระบบ</span> </div></td> </tr>

Page 8: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

<tr> bordercolor="#000000"> <tr> <td width="200" height="708" valign="top" bgcolor="#254380"><div align="center"> <div align="center"> <table width="170" border="0" cellpadding="0" cellspacing="0" bordercolor="#0000FF" > <tr> <td width="170" height="145" valign="top"><? include('login.php'); ?> </td> </tr> </table> <table width="221" border="0" cellpadding="0" cellspacing="0" bordercolor="#0000FF"> <tr align="center" valign="top"> <td width="214"><img src="picture/e.gif" width="221" height="189" /></td> </tr> </table> </div> <p align="center" class="style2">&#3605;&#3636;&#3604;&#3605;&#3656;&#3629;&#3648;&#3619;&#3634;</p> <p align="center" class="style2">083-6661897 ,0849814080 </p> <p align="center" class="style2">&nbsp;</p> </div></td> <td width="572" valign="top"><div align="center"> <form id="form1" name="form1" method="post" action="add_std.php" enctype="multipart/form <table class="text" cellspacing="0" cellpadding="0" width="540" border="0"> <tbody> <tr> <td><div align="right"><a href="index.php">กลับหนาแรก<img src="picture/home.gif" width="28" height="28" /></a></div></td> </tr> <tr> <td class="title" width="562">&#3621;&#3591;&#3607;&#3632;&#3648;&#3610;&#3637;&#3618;&#3609;&#3612;&#3641;&#3657;&#3648;&#36 </tr> <tr> <td width="562" bgcolor="black" height="1"></td> </tr> <tr> <td width="562"><br /> <font color="red">*</font> &#3648;&#3611;&#3655;&#3609;&#3594;&#3656;&#3629;&#3591;&#3607;&#3637;&#3656;&#3605;&#3657;&#3629;&#3591;&#3585;&#3619;&#3629 </tr> <tr> <!-- Sign-Up Information --> <td width="562"><table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td width="252">&nbsp;</td> <td width="296"><div align="right"> <input name="submit" type="submit" class="button_dyn" value="ลงทะเบียน" /> <!--input type="button" value="Add" class="button" onclick = "succ_add(1)"--> <input class="button" type="reset" value="คาเริ่มตน" name="Reset22" /> <input class="button" onclick="window.close();" type="button" value="ปด" name="button22</div></td> </tr> </tbody> </table></td> </tr> <tr> <td width="562"><table class="header" cellspacing="0" cellpadding="0" border="0"><tbody> <tr> <td valign="top" align="left" bgcolor="#869db9"><img height="19" src="Student Register_files/cn_drk_lt.gif" width="11" /></td>

Page 9: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

<td bgcolor="#869db9"><b>&#3586;&#3657;&#3629;&#3617;&#3641;&#3621;&#3626;&#3656;&#3623;&#3609;&#3605;&#3633;&#3623; </b></td<td bgcolor="#869db9"><img height="7" hspace="5" src="Student Register_files/dnw_arrow.gif" width="7" /></td> <td valign="top" align="right" bgcolor="#869db9"><img height="19" src="Student Register_files/cn_drk_rt.gif" width="11" /></td> </tr> </tbody> </table></td> </tr> <tr> <td width="562" bgcolor="#869db9"><table class="text" cellspacing="1" cellpadding="4" width="100%" border="0"><tbody> <tr align="left" bgcolor="#e9e9e9"> <td bgcolor="#faf7ea"><table class="text" cellspacing="1" cellpadding="4" width="100%"border="0"> <tbody> <tr> <!-- Prefix --> <td width="28%"><b>&#3588;&#3635;&#3609;&#3635;&#3627;&#3609;&#3657;&#3634;&#3594;&#3639;&#3656;&#3629; <font color="red">*</font></b></td><td width="72%"><span id="sprytextfield1"><span id="sprytextfield1"> <select name="salutation"> <option value="นาย" selected="selected">นาย</option> <option value="นางสาว">นางสาว</option> </select> </span></span></td> </tr> <tr> <!-- Name --> <td width="28%"><b>ชื่อ<font color="red">*</font></b></td> <td width="72%"><input name="fname" class="text" value="<?=$lname ?>" size="25" maxlength="50" /> </tr> <tr> <td height="36"><b>&#3609;&#3634;&#3617;&#3626;&#3585;&#3640;&#3621; <font color="red">*</font></b></td> <td height="36"><input class="text" maxlength="50" size="25" name="lname" value="<?=$lname ?>" /> </td></tr> <tr> <td height="36">รหัสนักเรียน *</td> <td height="36"><label> <input name="std_id" type="text" value="<?=$std_id ?>" /> </label></td> </tr> <tr> <!-- Last Name --> <td width="28%" height="36">ชั้นเรียน *</td> <td width="72%" height="36"><select name="std_year"> <option value="มัธยมศึกษาปที ่4" selected="selected">มัธยมศึกษาปที ่4</option> <option value="มัธยมศึกษาปที ่5">มัธยมศึกษาปที ่5</option> <option value="มัธยมศึกษาปที ่6">มัธยมศึกษาปที ่6</option> </select></td> </tr> <tr> <!-- Sex --> <td width="28%"><b>&#3648;&#3614;&#3624; <font color="red">*</font></b></td> <td width="72%"><input type="radio" checked="checked" value="ชาย" name="sex" />

Page 10: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

&#3594;&#3634;&#3618;&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" value="หญิง" name="sex" /> &#3627;&#3597;&#3636;&#3591; </td> </tr> <tr> <!-- Birthday --> <td width="28%"><b>&#3623;&#3633;&#3609;&#3648;&#3585;&#3636;&#3604; <font color="red">*</font></b></td><td width="72%"><span id="spryselect1"> <select name="se_date"> <option value="1" selected="selected">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> <select name="se_month"> <option value="มกราคม" selected="selected">มกราคม</option>

Page 11: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

<option value="กุมภาพนัธ">กุมภาพันธ</option> <option value="มีนาคม">มีนาคม</option> <option value="เมษายน">เมษายน</option> <option value="พฤษภาคม">พฤษภาคม</option> <option value="มิถุนายน">มิถุนายน</option> <option value="กรกฏาคม">กรกฏาคม</option> <option value="สิงหาคม">สิงหาคม</option> <option value="กันยายน">กันยายน</option> <option value="ตุลาคม">ตุลาคม</option> <option value="พฤศจิกายน">พฤศจิกายน</option> <option value="ธันวาคม">ธันวาคม</option> </select> <select name="se_year"> <option value="2534" selected="selected">2534</option> <option value="2535">2535</option> <option value="2536">2536</option> <option value="2537">2537</option> <option value="2538">2538</option> <option value="2539">2539</option> <option value="2540">2540</option> <option value="2541">2541</option> <option value="2542">2542</option> <option value="2543">2543</option> <option value="2544">2544</option> <option value="2545">2545</option> <option value="2546">2546</option> <option value="2547">2547</option> <option value="2548">2548</option> <option value="2549">2549</option> <option value="2550">2550</option> <option value="2551">2551</option> <option value="2552">2552</option> <option value="2553">2553</option> </select> </td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> <tr> <td width="562">&nbsp;</td> </tr> <tr> <td width="562"><table class="header" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td valign="top" align="left" bgcolor="#869db9"><img height="19" src="include/cn_drk_lt.gif" width="11" /></td> <td bgcolor="#869db9"><b>&#3586;&#3657;&#3629;&#3617;&#3641;&#3621;&#3626;&#3635;&#3627;&#3619;&#3633;&#3610;&#3605;&#3636;&#<td bgcolor="#869db9"><img height="7" hspace="5" src="include/dnw_arrow.gif" width="7" /></td> <td valign="top" align="right" bgcolor="#869db9"><img height="19" src="include/cn_drk_rt.gif" width="11" /></td> </tr> </tbody> </table></td>

Page 12: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

</tr> <tr> <td width="562" bgcolor="#869db9"><table class="text" cellspacing="1" cellpadding="4" width="100%" border="0"><tbody> <tr align="left" bgcolor="#e9e9e9"> <td bgcolor="#faf7ea"><table class="text" cellspacing="1" cellpadding="4" width="100%"border="0"> <tbody> <tr> <!-- Address --> <td valign="top" width="150"><b>&#3607;&#3637;&#3656;&#3629;&#3618;&#3641;&#3656; <fontcolor="red">*</font></b></td> <td width="390"><textarea class="text" name="add" rows="4" cols="50"><?=$add ?> </textarea></td> </tr> <tr> <!-- City --> <td><b>&#3629;&#3635;&#3648;&#3616;&#3629; <font color="red">*</font></b></td> <td><input name="city" class="text" value="<?=$city ?>" size="25" maxlength="40" /></td></tr> <tr> <!-- State (Province) --> <td><b>&#3592;&#3633;&#3591;&#3627;&#3623;&#3633;&#3604; <font color="red">*</font></b></td><td><input name="state" class="text" value="<?=$state ?>" size="25" maxlength="40" /></td></tr> <tr> <!-- Zip Code --> <td><b>&#3619;&#3627;&#3633;&#3626;&#3652;&#3611;&#3619;&#3625;&#3603;&#3637;&#3618;&#3660; <font color="red">*</font></b></t<td><input name="zip" class="text" value="<?=$zip ?>" maxlength="20" /></td> </tr> <tr> <!-- E-Mail Address --> <td><b>E-Mail Address <font color="red">*</font></b></td> <td><input name="mail" class="text" value="<?=$mail ?>" size="30" maxlength="100" /></td></tr> <tr> <!-- Tel --> <td><b>&#3648;&#3610;&#3629;&#3619;&#3660;&#3650;&#3607;&#3619;&#3624;&#3633;&#3614;&#3607;&#3660; </b></td><td><input name="tel" class="text" value="<?=$tel ?>" size="30" maxlength="100" /></td></tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> <tr> <td width="562">&nbsp;</td> </tr> <tr> <td width="562">&nbsp;</td> </tr> <tr> <td width="562"><table class="header" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td valign="top" align="left" bgcolor="#869db9"><img height="19" src="include/cn_drk_lt.gif" width="11" /></td> <td bgcolor="#869db9"><b>&#3586;&#3657;&#3629;&#3617;&#3641;&#3621;&#3648;&#3586;&#3657;&#3634;&#3626;&#3641;&#3656;&#3619;&#<td bgcolor="#869db9"><img height="7" hspace="5" src="include/dnw_arrow.gif" width="7" /></td>

Page 13: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

<td valign="top" align="right" bgcolor="#869db9"><img height="19" src="includecn_drk_rt.gif" width="11" /></td> </tr> </tbody> </table></td> </tr> <tr> <td width="562" bgcolor="#869db9"><table class="text" cellspacing="1" cellpadding="4" width="100%" border="0"><tbody> <tr align="left" bgcolor="#e9e9e9"> <td bgcolor="#faf7ea" height="172"><table class="text" cellspacing="1" cellpadding="4" width="100%"border="0"> <tbody> <tr bgcolor="#e0ddbc"> <td colspan="3">&#3585;&#3635;&#3627;&#3609;&#3604;<b>&quot;&#3594;&#3639;&#3656;&#3629;&#3626;&#3635;&#3627;&#3619;&#3633;&#3610;&#3648;&#3586;&#3657;&#3634;&#36&#3649;&#3621;&#3632; <b>&quot;&#3619;&#3627;&#3633;&#3626;&#3612;&#3656;&#3634;&#3609;&quot;</b> &#3604;&#3657;&#3623;&#3618;&#3605;&#3609;&#3648;&#3629;&#3591; &#3650;&#3604;&#3618;&#3605;&#3657;&#3629;&#3591;&#3617;&#3637;&#3588;&#3623;&#3634;&#3617;&#3618;&#3634;&#3623; 4&#3649;&#3621;&#3632;&#3629;&#3609;&#3640;&#3597;&#3634;&#3605;&#3651;&#3627;&#3657;&#3617;&#3637;&#3648;&#3593;&#3614;&#3634&#3649;&#3621;&#3632; &#3648;&#3607;&#3656;&#3634;&#3609;&#3633;&#3657;&#3609; </td> </tr> <tr> <!-- User Name --> <td width="150"><b>&#3594;&#3639;&#3656;&#3629;&#3626;&#3635;&#3627;&#3619;&#3633;&#3610;&#3648;&#3586;&#3657;&#3634;&#3626;&color="red">*</font></b></td> <td width="194"><input class="password1" maxlength="12" size="12" name="username" /></td> </tr> <tr> <td width="150"><b>&#3619;&#3627;&#3633;&#3626;&#3612;&#3656;&#3634;&#3609; <font color="red">*</font></b></td><td width="390" colspan="2"><input class="password1" type="password" maxlength="12" size="12" name="pwd" /></td> </tr> <tr> <td width="150"><b>&#3618;&#3639;&#3609;&#3618;&#3633;&#3609;&#3619;&#3627;&#3633;&#3626;&#3612;&#3656;&#3634;&#3609; <fontcolor="red">*</font></b></td> <td width="390" colspan="2"><span id="sprytextfield10"> <input class="password1" type="password" maxlength="12" size="12" name="cpwd" /> <span class="textfieldRequiredMsg">กรุณากรอก password ใหเหมือนกัน</span></span></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> <tr> <td width="562">&nbsp;</td> </tr> <tr> <td width="562"><table width="100%"> <tbody> <tr> <td width="251">&nbsp;</td> <td width="297"><div align="right"> <input class="button_dyn" type="submit" value="ลงทะเบียน" name="submit2" /> <!--input type="button" value="Add" class="button" onclick = "succ_add(1)"--> <input class="button" type="reset" value="คาเริ่มตน" name="Reset222" />

Page 14: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

<input class="button" onclick="window.close();" type="button" value="ปด" name="button222" /></div></td> </tr> </tbody> </table></td> </tr> </tbody> </table> </form> </div></td> </tr> </table></td> </tr> </table> <p align="center" class="style10">&nbsp;</p> <h1 align="center" class="style12">Web E-Learnning &#3650;&#3619;&#3591;&#3648;&#3619;&#3637;&#3617;&#3627;&#3634;&#3626;&#3634;&#3619;&#3588;&#3634;&#3617; </h1> </body> </html>

Source Code ชื่อ add_std.php <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>ลงทะเบียน</title> <? $solution=$_POST['salutation']; $fname=$_POST['fname']; $lname=$_POST['lname']; $std_id=$_POST['std_id']; $std_year=$_POST['std_year']; $sex=$_POST['sex']; $day=$_POST['se_date']; $month=$_POST['se_month']; $year=$_POST['se_year']; $std_brithday="$day $month $year"; $add=$_POST['add']; $city=$_POST['city']; $state=$_POST['state']; $zip=$_POST['zip']; $mail=$_POST['mail']; $tel=$_POST['tel']; $user=$_POST['username']; $pass=$_POST['pwd']; $reg=date("d-m-Y"); //echo"$pass"; exit(); include ("connect.php"); $sql6="select * from sts where std_id_ ='$std_id' "; $result6=mysql_query($sql6); $data=mysql_fetch_array($result6); $num6 =mysql_num_rows($result6); if($num6 == 0){

Page 15: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

echo "<script>alert('รหัสนักเรียนของคุณไมตรงกับฐานขอมูล')</script>"; echo "<a href='std_register.php?$solu=$solution & fname=$fname & lname=$lname & std_id=$std_id & std_year=$std_year & sex=$sex & add=$add & city=$city & state=$state & zip=$zip & mail=$mail & tel=$tel '>} //echo $data[chk_std_id]; exit(); $sql="select * from student where std_user='$user' "; $result=mysql_query($sql); $num=mysql_num_rows($result); if($num > 0 ){ echo"<script>alert('ชื่อผูใชน้ีมีอยูในระบบแลว')</script>"; echo "<a href='std_register.php?$solu=$solution & fname=$fname & lname=$lname & std_id=$std_id & std_year=$std_year & sex=$sex & add=$add & city=$city & state=$state & zip=$zip & mail=$mail & tel=$tel '>}else{ $sql2="insert into student values('','$solution','$fname','$lname','$std_id','$std_year','$sex','$std_brithday','$add','$city','$state','$zip','$mail','$tel','$user','$pass','$reg','','','','','','','','','')"; //echo $sql2; exit(); $result2=mysql_query($sql2); if($result2){ echo"<script>alert('คุณไดทําการสมัครสมาชิกเรียบรอยแลว')</script>"; echo"<script>window.location='std_register.php'</script>"; }else{ echo"<script>alert('คุณไมสามารถสมัครสมาชิกได')</script>"; echo"<script>window.location='std_register.php'</script>"; } } ?>

Source Code ชื่อ check_login.php <? ob_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>Untitled Document</title> </head> <body> <? $user=$_POST['username']; $pass=$_POST['pwd'];//echo $user;exit(); $type=$_POST['type']; include ("connect.php"); if($type==1){

Page 16: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

$sql="select * from teacher where tea_user='$user' && tea_pass='$pass' "; $result=mysql_query($sql); $num=mysql_num_rows($result); $data=mysql_fetch_array($result); $teacher_id=$data[tea_id]; $user=$data[tea_user]; $tea_sub=$data[tea_sub];//echo $user;exit(); if($num >0 ){ session_start(); $_SESSION[tea_id] = session_id(); $_SESSION[tea_user] = $user; $_SESSION[tea_sub] = $tea_sub; $_SESSION[teacher_id] = $teacher_id; echo "<script>alert('ขอมูลคุณถูกตอง ยินดีตอนรับคุณ $user')</script>"; echo "<script>window.location='check_sub.php'</script>"; }else{ echo "<script>alert('คุณกรอกขอมูล User และ Password ไมถูกตอง')</script>"; echo "<script>window.location='index.php'</script>"; } } if($type==2){ $sql="select * from student where std_user='$user' && std_pass='$pass' "; $result=mysql_query($sql); $num=mysql_num_rows($result); $data=mysql_fetch_array($result); $std_id=$data[std_id]; $user=$data[std_user]; $std_year=$data[std_year]; //echo"$std_year"; exit(); if($num >0){ session_start(); $_SESSION[std_id] = session_id(); $_SESSION[std_user] = $user; //echo"$_SESSION[std_user]";exit(); if($std_year=$data[std_year] == 'มัธยมศึกษาปที ่4'){ echo "<script>alert('คุณ $user เรียนชั้น มัธยมศึกษาปที ่4')</script>"; echo "<script>window.location='memberY4.php'</script>";exit(); }if($std_year=$data[std_year] == 'มัธยมศึกษาปที ่5'){ echo "<script>alert('คุณ $user เรียนชั้น มัธยมศึกษาปที ่5')</script>"; echo "<script>window.location='memberY5.php'</script>";exit(); }if($std_year=$data[std_year] == 'มัธยมศึกษาปที ่6'){ echo "<script>alert('คุณ $user เรียนชั้น มัธยมศึกษาปที ่6')</script>"; echo "<script>window.location='memberY6.php'</script>";exit(); } }else{

Page 17: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

echo "<script>alert('คุณกรอกขอมูล User และ Password ไมถูกตอง')</script>"; echo "<script>window.location='index.php'</script>"; } } if($type==3) { $sql="select * from webmin where web_user='$user' && web_pass='$pass' "; $result=mysql_query($sql); $num=mysql_num_rows($result); $data=mysql_fetch_array($result); $web_id=$data[web_id]; $user=$data[web_user]; if($num >0){ session_start(); $_SESSION[web_id] = session_id(); $_SESSION[web_user] = $user; echo "<script>alert('ขอมูลคุณถูกตอง ยินดีตอนรับคุณ $user')</script>"; echo "<script>window.location='webmin.php'</script>"; }else{ echo "<script>alert('คุณกรอกขอมูล User และ Password ไมถูกตอง')</script>"; echo "<script>window.location='index.php'</script>"; } } ?> </body> </html> Source Code ชื่อ chk_year.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>Untitled Document</title> </head> <body> <? $year4=$_POST['year4']; if($year4==1){ echo "<script>window.location='thai4.php'</script>"; }if($year4==2){ echo "<script>window.location='social4.php'</script>"; }if($year4==3){ echo "<script>window.location='eng4.php'</script>"; } $year5=$_POST['year5']; if($year5==1){ echo "<script>window.location='memberY5.php'</script>";

Page 18: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

}if($year5==2){ echo "<script>window.location='memberY5.php'</script>"; }if($year5==3){ echo "<script>window.location='memberY5.php'</script>"; } $year6=$_POST['year6']; if($year6==1){ echo "<script>window.location='member.php'</script>"; }if($year6==2){ echo "<script>window.location='member.php'</script>"; }if($year6==3){ echo "<script>window.location='member.php'</script>"; } ?> </body> </html> Source Code ชื่อ merberY4.php <? include ("chk_session.php"); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>ชั้นมัธยมศึกษาปที ่4</title><style type="text/css"> <!-- .style10 { font-size: 12px; color: #FF6633; } .style12 { color: #FF0000; font-weight: bold; font-size: larger; } body { background-image: url(picture/Green.jpg); } .style17 {color: #FFFFFF} --> </style></head> <body> <table width="908" align="center"> <tr> <td><? $thai_w=array("อาทิตย","จันทร","อังคาร","พุทธ","พฤหัส","ศุกร","เสาร"); $thai_n=array("มกราคม","กุมภาพันธ","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฏาคม","สิงหาคม","กันยายน "ตุลาคม","พฤษจิกายน","ธันวาคม"); $thai_d=array("01","02","03","04","05","06","07","08","09","10","11","12"); $dd=$thai_d[date("n")-1]; $w=$thai_w[date("w")]; $d=date("d"); $n=$thai_n[date("n")-1]; $y=date("Y")+543; $t=date("เวลา H นาฬิกา i นาที s วินาท"ี); //echo "วัน $w ที่ $d เดือน $n ป พ.ศ. $y $t";

Page 19: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

?> <? include('head_std4.php'); ?></td> </tr> <tr> <td><div align="right"><span class="style10"><? echo"ยินดีตอนรับคุณ $std_user";?> <a href="chk_out.php"></a></span></div></td> </tr> <tr> <td><table width="908" height="607" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#FFFF99"> <tr> <td width="750" valign="top" bgcolor="#029ACE"><p><br> </p> <TABLE width=752 border=0 align="center" cellPadding=0 cellSpacing=0 bgcolor="#029ACE"> <TBODY> <TR> <TD width="161"><img src="picture/boygirl_01.gif" width="161" height="106"></TD> <TD width="402"><img src="picture/boygirl_02.gif" width="402" height="106"></TD> <TD width="189"><img src="picture/boygirl_03.gif" width="187" height="106"></TD> </TR> <TR> <TD><img src="picture/boygirl_04.gif" width="161" height="168"></TD> <TD vAlign=top bgcolor="#029ACE" class=detail> <BLOCKQUOTE> <P><BR>สวัสดี ครับ, คะ ขอตอนรับเพื่อนๆ เขาสูเว็บไซตแหงการเรียนรูของโรงเรียนบานวังปลาโด เพื่อนจะไดพบกับแบบเรียนวิชาตางๆ, แบบทดสอบประจําวิชา, ขอสอบประจําวิชา ที่รอใหเพื่อนๆ ไดเขามาเรียนรู เชิญเพื่อนๆ ไปศึกษากันเลยครับ, คะ</P> </BLOCKQUOTE></TD> <TD><img src="picture/boygirl_06.gif" width="187" height="168"></TD> </TR> <TR> <TD><img src="picture/boygirl_07.gif" width="161" height="86"></TD> <TD><img src="picture/boygirl_08.gif" width="402" height="86"></TD> <TD><img src="picture/boygirl_09.gif" width="187" height="86"></TD> </TR></TBODY></TABLE> <div align="center"> <table width="252" border="0"> <tr> <th bgcolor="#003366" scope="col"><span class="style17">ขอมูลนักเรียน</span></th> </tr> <tr> <th width="246" scope="col"><p align="left"><img src="picture/q.gif" width="4" height="11"> <a href="de_member.php">ดูขอมูลสวนตัว</a><br> <img src="picture/q.gif" width="4" height="11"> <a href="std_member_input.php"></p> </th> </tr> </table> </div> <p> <form name="form1" method="post" action="chk_year.php"> <table width="419" align="center"> <tr> <th colspan="3" bgcolor="#003366" scope="col"><span class="style17">เลือกวิชาเรียน</span></th> </tr> <tr>

Page 20: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

<td width="197"><img src="picture/q.gif" width="4" height="11"> ชั้นมัธยมศึกษาปที ่4 </td> <td width="179"><select name="year4"> <option value selected>--------เลือก--------</option> <option value="1">วิชาภาษาไทย</option> <option value="2">วิชาสังคมศึกษา</option> <option value="3">วิชาภาษาอังกฤษ</option> </select></td> <td width="27">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><label> <div align="left"> <input type="submit" name="Submit" value="ตกลง"> </div> </label></td><td>&nbsp;</td> </tr> </table> </form> </p> <table width="606" border="0" align="center"> <tr> <th colspan="7" bordercolor="#E1F8F0" bgcolor="#003366" scope="col"><span class="style17"></span></th> </tr> <tr><? include ("connect.php"); $sql = ("select * from std_connect where stdConnect_std='$std_user' and stdConnect_day_end >= '$y $dd $d ' "); //echo"$y $dd $d" ; exit();2551 03 10 $result = mysql_query($sql); $numrow = mysql_num_rows($result); while ( $data = mysql_fetch_array( $result ) ) { $i++; ?> <td width="536" bgcolor="#00CCCC"><p align="left" class="style10"><img src="picture/course.gif" /><?=$data[stdConnect_type ];?> <?echo"<a href='detail_news_std.php?test=$data[stdConnect_id]'>$data[stdConnect_title]";?> <?=$data[stdConnect_tea];?> <?=$data[stdConnect_day];?> </p></td> </tr><? } ?> </table> <table width="604" border="0" align="center"> <tr> <th bgcolor="#003366" scope="col"><span class="style17">ขาวสารจากผูดูแลระบบ</span></th> </tr> <tr> <? include ("connect.php"); $sql = ("select * from web_connect where

Page 21: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

webConnect_std='$std_user' and webConnect_day_end >='$y $dd $d ' ");//echo"$y $dd $d"; exit(); $result = mysql_query($sql); $numrow = mysql_num_rows($result); while ( $data = mysql_fetch_array( $result ) ) { $i++; ?> <th bgcolor="#00CCCC" scope="col"><div align="left"><img src="picture/course.class="style10"> <?=$data[webConnect_type ];?> </span><span class="style10"><?echo"<a href='detail_news_web.php?test=$data[webConnect_id]'>$data[webConnect_title]";?> <?=$data[webConnect_tea];?> <?=$data[webConnect_day];?> </div></th> </tr> <? } ?> </table> <br> </td> </tr> </table></td> </tr> </table> <p align="center" class="style10">&nbsp;</p> <h1 align="center" class="style12">Web E-Learnning &#3650;&#3619;&#3591;&#3648;&#3619;&#3637;&#3618;&#3609;&#3623;&#3633;&#3591;&#3611;&#3621;&#3634;&#3650;&#3604;&#3592;&#3633;&#3591;&#3627;&#3623;&#3633;&#3604; &#3617;&#3627;&#3634;&#3626;&#3634;&#3619;&#3588;&#3634;&#3617; </h1> </body> </html> Source Code ชื่อ std_test_111.php <? include ("chk_session.php"); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <LINK href="include/default.css" type=text/css rel=stylesheet> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>:: วิชาภาษาไทย ชั้นมัธยมศึกษาปที ่4 ::</title><style type="text/css"> <!-- .style10 { font-size: 12px; color: #FF6633; } .style12 { color: #FF0000; font-weight: bold; font-size: larger; } .password { FONT-SIZE: 11px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif } .password1 { FONT-SIZE: 11px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif}

Page 22: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

.password1 {FONT-SIZE: 11px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif } --> </style> </head> <body> <? include('head_std4.php'); ?> <p align="center" class="style10"><? echo"ยินดีตอนรับคุณ $std_user";?> <a href="chk_out.php"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="820" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000033" bgcolor="#33FFCC"> <tr> <td height="10"></td> </tr> <tr> <td><h3 align="center"><a href="thai4.php"><img src="picture/table_background_reviews.gif" alt="width="85" height="60" border="0"></a></h3> <p align="center"><strong><a href="thai4.php">กลับหนาแรก </a> </strong></p></td> </tr> <tr> <td><p align="left" class="style12"><img src="picture/arrow_right.gif" width="16" height="16" align="absmiddle" /> <strong>แบบฝกหัดกอนเรียนวิชาภาษาไทย</strong></p></td> </tr> <tr> <td><fieldset> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> </tr> <tr> <td width="77%"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div align="right"></div></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="22"><div align="right">&nbsp;&nbsp;</div></td> </tr> <tr> <td> <form name="form1" method="post" action="score_std_test.php" ><? include "connect.php"; $sql="Select * From test_1 where sub_test='$sub_file' and test_1_year ='$sub_less' and test_1_lesson ='$lesson' order by rand() limit 10"; //echo $sql ; exit(); $db_query=mysql_query($sql); $i=1; $aa=0; while ( $r = mysql_fetch_array( $db_query ) ){ $id=$r['question_id']; $sub_test_id=$r['sub_test_id']; $question=$r['question']; $select_1=$r['select_1']; $select_2=$r['select_2']; $select_3=$r['select_3'];

Page 23: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

$select_4=$r['select_4']; $answer1=$r['answer']; echo"<b>ขอ $i. $question </b><br> <input type='radio' name='select_$id' value='1'>$select_1<br> <input type='radio' name='select_$id' value='2'>$select_2<br> <input type='radio' name='select_$id' value='3'>$select_3<br> <input type='radio' name='select_$id' value='4'>$select_4 <input name='answer1' type='hidden' value='$answer1'> <hr>"; ?> <? $i++; } ?><? //if($answer1==$select_1) { $aa++1;}else{$aa=0;} ?> <? if($answer==3){ $ans==1;}else{$ans[$i]=0;}?> <input type="submit" value="submit"> <input type="reset" value="reset"> <input type="hidden" name="year" value="<?=$sub_less ?>" /> <input type="hidden" name="sub" value="<?=$sub_file ?>" /> <input type="hidden" name="less" value="<?=$lesson ?>" /> </form> </td> </tr> <tr> <td><div align="center"></div></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table> </fieldset></td> </tr> </table></td> </tr> </table>&nbsp;</p> <p align="center" class="style10">&nbsp;</p> <h1 align="center" class="style12">Web E-Learnning &#3650;&#3619;&#3591;&#3648;&#3619;&#3637;&#3618;&#3609;&#3623;&#3633;&#3591;&#3611;&#3621;&#3634;&#3650;&#3604;&#3592;&#3633;&#3591;&#3627;&#3623;&#3633;&#3604; &#3617;&#3627;&#3634;&#3626;&#3634;&#3619;&#3588;&#3634;&#3617; </h1> </body> </html> Source Code ชื่อ tea_register.php <? include ("chk_session.php"); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>theacher</title> <style type="text/css"> <!--

Page 24: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

h1,h2,h3,h4,h5,h6 { font-family: regis; } .style10 { font-size: 12px; color: #FF6633; } .style12 { color: #FF0000; font-weight: bold; font-size: larger; } --> </style></head> <body> <? include('head.php'); ?> <p align="center" class="style10"><? echo"ยินดีตอนรับคุณ $tea_user";?> <a href="chk_out.php"> <form id="form2" name="form2" method="post" action=""> <table width="589" height="129" border="1" align="center"> <tr> <td width="579" background="picture/WrinkledSkin.jpg"><table width="579" border="1" align="center" bordercolor="#000000"> <tr> <td width="536" bgcolor="#FFFF99"><div align="center"><img src="picture/tea_pro.gif" width="154" height="50"></div></td> </tr> </table> <p align="lift">&nbsp;</p> <table width="347" height="191" border="0" align="center"> <tr> <td><div align="center"><a href="test_11.php"><img src="picture/insert_test11.gif" border="0"></a></div></td> <td>&nbsp;</td> <td><div align="center"><a href="std_register_3.php"><img src="picture/detail_std.gif" width="87" height="68" border="0"></a></div></td> </tr> <tr> <td><div align="center"></div></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td><div align="center"><img src="picture/work_test.gif" width="100" height="105"></div></td> <td>&nbsp;</td> <td><div align="center"><a href="std_register_3.php"><img src="picture/detailheight="92" border="0"></a></div></td> </tr> </table> <p align="lift"><a href="test_11.php"></a></p> <p align="lift">&nbsp;</p> </td> </tr> </table> <p align="left"> <label></label> </p> </form> <form id="form3" name="form3" method="post" action=""> <div align="center"><span class="style12">Web E-Learnning &#3650;&#3619;&#3591;&#3648;&#3619;&#3637;&#3618;&#3609;&#3623;&#3633;&#3591;&#3611;&#3621;&#3634;&#3650;&#3604;&#3592;&#3633;&#3591;&#3627;&#3623;&#3633;&#3604;

Page 25: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

&#3617;&#3627;&#3634;&#3626;&#3634;&#3619;&#3588;&#3634;&#3617; </span> </div> </form> <p>&nbsp;</p> </body> </html> Source Code ชื่อ webmin.php <? include("chk_session.php"); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>:: สวนของผูดูแลระบบ ::</title> <style type="text/css"> <!-- h1,h2,h3,h4,h5,h6 { font-family: regis; } .style10 { font-size: 12px; color: #FF6633; } .style12 { color: #FF0000; font-weight: bold; font-size: larger; } body { background-image: url(picture/LeavesBack.jpg); } --> </style></head> <body> <table width="908" align="center"> <tr> <td><? include('head_web.php'); ?></td> </tr> <tr> <td><div align="right"><span class="style10"><? echo"ยินดีตอนรับคุณ $web_user";?><a href="chk_out.php"> ออกจากระบบ</a></span></div></td> </tr> <tr> <td><table width="908" align="center"> <tr> <td width="908" height="184" valign="top" bgcolor="#B7E1FB"><p align="center"><img src="picture/table_background_reviews.gif" width="85" height="60"></p> <table width="908" border="1" align="center"> <tr> <td width="295"><div align="center">อาจารย</div></td> <td width="297"><div align="center">นักเรียน</div></td> <td width="294"><div align="center">ขาวสาร</div></td> </tr><tr> <td><div align="center"><a href="tea_register_2.php"><img src="picture/andybar_bullet2.gif" width="12" height="12" border="0"></a> <a href="tea_register_2.php">จัดการขอมูลอาจารย </a> | <a href="tea_detail.php"><img src="picture/andybar_bullet2.gif"

Page 26: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

width="12" height="12" border="0"> รายชื่ออาจารย </a></div></td> <td><div align="center"><a href="tea_detail.php"><img src="picture/andybar_bullet2.gif" width="12" height="12" border="0"></a> <a href="std_detail.php">รายชื่อนักเรียน</a> | <a href="tea_detail.php"><img src="picture/andybar_bullet2.gif" width="12" height="12" border="0"> </a><a href="fileexcel/add.php">เพิ่มรหัสนักเรียน</a></div></td> <td><div align="center"><a href="type_member_detail.php"><img src="picture/andybar_bullet2.gif" width="12" height="12" border="0" /></a> <a href="type_member_detail.php">จัดการสมาชิก</a> | <a href="web_connect.php"><img src="picture/andybar_bullet2.gif" width="12" height="12" border="0"> ติดตอผูใช <img src="picture/andybar_bullet2.gif" width="12" height="12" border="0"></a> <a href="del_news.php">ขาวสาร</a></div></td> </tr> </table> </td> </tr> </table></td> </tr> </table> </body> </html>

ภาคผนวก ข

Page 27: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

บทนําเสนอโครงงานเทคโนโลยีสารสนเทศธุรกิจ

บทนําเสนอโครงงานเทคโนโลยีสารสนเทศธุรกิจ 1 ประจําภาคเรียนที่ 2/2552

วิชา : 0904402 โครงงานเทคโนโลยีสารสนเทศธุรกิจ 1 จํานวน 1 หนวยกิต (0-2-0) ชื่อโครงงาน : ระบบ E-Learning โรงเรียนบานวังปลาโด จังหวัดมหาสารคาม รายชื่อผูศึกษาโครงงาน :

1. ช่ือ-สกุล นายภัทราวุธ สาไชยยา รหัสประจําตัว 49010911730 2. ช่ือ-สกุล นายทวิวัฒน นอยบุดด ี รหัสประจําตัว 49010911456

อาจารยที่ปรึกษาโครงงาน :

อาจารย ............................................................... (อาจารยณัฐอาภา สัจจวาที)

Page 28: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

(....................................................) กรรมการท่ีปรึกษา วันท่ี ............/ ................/ ..............

(....................................................) กรรมการคนท่ี 1 วันท่ี ............/ ................/ ..............

(....................................................)

กรรมการคนท่ี 2 วันท่ี ............/ ................/ ..............

บทท่ี1 บทนํา

1.1 ประวัติความเปนมาและความสําคัญของปญหา

เนื่องจาก e-Learning สามารถจัดกระบวนการเรียนรูใหกับผูเรียนท่ีมีถ่ินฐานกระจัดกระจายตามจุดตาง ๆ ท่ัวโลก โดยไมมีขอจํากัด ซ่ึงเปนการสรางโอกาสของการเรียนรูใหทัดเทียมกัน สามารถแลกเปล่ียนความรูและประสบการณรวมกันผานเครือขายอินเตอรเน็ตท่ีมีความรวดเร็ว สะดวก และคลองตัว นับวาเปนการเปล่ียนแปลงสังคมการเรียนรูใหกวางไกลขึ้น

e-Learning จึงเขามามีบทบาทตอการเรียนการสอนทุกรูปแบบ โดยเฉพาะการศึกษาทางไกล(Distance Learning) ซ่ึงกอนหนานั้นเปนการเรียนการสอนเฉพาะผูเรียนบางกลุม ไดปรับเปล่ียนรูปแบบใหมีพัฒนาการกวางไกลยิ่งขึ้นและเขาถึงกลุมผูเรียนไดหลากหลายมากขึ้น ในปจจุบันไดมีการกลาวถึงการศึกษา L3 ซ่ึงมาจากคําวา Life Long Learning หมายถึงการศึกษาตลอดชีวิต ท่ีทุกประเทศไดตื่นตัวในการจัดการศึกษาใหตอบสนองตอความตองการของประชากรในชาต ิ เนื่องจากเปนท่ียอมรับกันวาการศึกษาของประชากรเปนปจจัยสําคัญในการขับเคล่ือนประเทศไปในทิศทางท่ีถูกตอง ไมเพียงแตการศึกษาในระบบเทานั้น แตยังรวมถึงการศึกษาทุก ๆ รูปแบบ รวมท้ังการฝกอบรมเพ่ือการ

Page 29: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

ประกอบสัมมาชีพ ซ่ึงสังคมปจจุบันยอมรับกันวา e-Learning สามารถสนับสนุนการจัดการศึกษาแบบ L3 ไดมีประสิทธิภาพมากกวาการจัดการศึกษารูปแบบอ่ืน ๆ เนื่องจากผูเรียนไมตองเสียเวลาเดินทางเขารวมศึกษาในช้ันเรียนและไมขึน้อยูกับเวลา แตขึ้นอยูกับความพรอมของผูเรียนแตละคน ประกอบกับความเจริญกาวหนาทางดานเทคโนโลยีการส่ือสารและเทคโนโลยีเครือขายอินเตอรเน็ต ทําให e-Learning จึงมีบทบาทอยางมากในปจจุบัน คําวา e-Learning จึงเปนคําศัพทรวมสมัยในยุคของเครือขายอินเตอรเน็ต เชนเดียวกับคําอ่ืน ๆ ท่ีเกิดขึ้นในปจจุบัน เชน e-School, e-Commerce, e-Business, e-Government, e-Training, e-Banking, e-Shopping, e-Transactions, e-Corporation และอ่ืน ๆ

1.2 วัตถุประสงคของการศึกษา

2.1. เพ่ือพัฒนาระบบ e-learning มาใชใหเกิดประโยชนในการเรียนการสอนของโรงเรียนวังปลาโด

1.3 ขอบเขตของระบบงาน

1.3.1. ขอบเขตของการออกแบบ และพัฒนาระบบงาน

1.3.1.1. ระบบลงทะเบียนเรียน

- สามารถลงทะเบียนเรียนได (อาจารยกําหนดรหัสนักเรียนเพ่ือใหนักเรียนสามารถทําการลงทะเบียน เรียน ได)

- สามารถตรวจสอบ Username เพ่ือไมใหเกิดการซํ้ากันของขอมูลได

- สามารถออกรายงานรายช่ือผูลงทะเบียนเรียนได

1.3.1.2. ระบบจัดการการเรียนการสอน

- สามารถเรียนรูจากเอกสารประกอบการเรียน ซ่ึงประกอบไปดวยรายวิชาตอไปนี ้

• วิชาภาษาอังกฤษ

• วิชาภาษาไทย

Page 30: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

• วิชาวิทยาศาสตร

- สามารถทําแบบทดสอบกอนเรียนได

- สามารถทําแบบทดสอบหลังเรียนได

- สามารถดาวนโหลดเอกสารประกอบการเรียนไดเฉพาะผูท่ีลงทะเบียนเรียน

- สามารถออกรายงานผลการทําแบบทดสอบกอนเรียนได

- สามารถออกรายงานผลการทําแบบทดสอบและหลังเรียนได

1.3.1.3. ระบบจัดการการบาน

- สามารถอัพโหลดการสงการบานได

1.3.1.4. ระบบติดตอผูใช

- สามารถสงขอความระหวางอาจารยกับนักเรียนได

- สามารถสงขอความระหวางอาจารยกับกลุมรายวิชาได

1.3.1.5. ระบบขอสอบ

- สามารถสุมขอสอบมาออกขอสอบได

- สามารถวัดผลการทําขอสอบวา ผานหรือไม ได

- สามารถออกรายงานผลการสอบได

ขอบเขตของผูใชงานในระบบ

1.3.2.1. อาจารย

- สามารถดูรายงานรายช่ือผูลงทะเบียนเรียนได

- สามารถอัพโหลดเอกสารประกอบการเรียนได

- สามารถ เพ่ิม ลบ แกไข แบบฝกหัด ขอสอบ ได

- สามารถเพ่ิมการบานใหนักเรียนได

- สามารถดาวนโหลดการบานท่ีนักเรียนสงได

Page 31: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

- สามารถแกไขขอมูลสวนตัวได

- สามารถดูขอมูลการติดตอผูใชได

1.3.2.2. นักเรียน

- สามารถลงทะเบียนเรียนได

- สามารถดาวนโหลดเอกสารประกอบการเรียนได

- สามารถทําแบบทดสอบกอนเรียนได

- สามารถทําแบบทดสอบหลังเรียนได

- สามารถอัพโหลดการบานสงได

- สามารถแกไขขอมูลสวนตัวได

- สามารถดูรายงานผลการทําแบบทดสอบกอนและหลังเรียนได

- สามารถดูรายงานผลการทําขอสอบได *หมายเหตุ จะแสดงผล คือ ผาน หรือ ไมผาน

- สามารถดูขอมูลการติดตอผูใชได

1.3.2.3 ผูใชทั่วไป

- เขามาเยี่ยมชมเว็บได

ขอบเขตของผูดูแลระบบ

1.3.3.1 ผูดูแลระบบ

- สามารถLogin เขาสูระบบดวย Username และ Password ของผูดูแลระบบ

- สามารถดูและตรวจสอบ เพ่ิม ลบ แกไข ขอมูลอาจารยได

- สามารถดูและตรวจสอบเพ่ิม ลบ แกไข ขอมูลนักเรียนได

- สามารถดูและตรวจสอบเพ่ิม ลบ แกไข ขอมูลการติดตอผูใชได

- สามารถดูและตรวจสอบเพ่ิม ลบ แกไข ขอมูลการลงทะเบียนได

- สามารถรับแจงปญหาได

Page 32: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

- สามารถดรูายงานผลการทําแบบทดสอบกอนเรียนและหลังเรียนได

- สามารถดูขอมูลลงทะเบียนเรียนได

- สามารถดูรายงานรายช่ือผูลงทะเบียนเรียนได

- สามารถดูรายงานผลการสอบได

1.4. อุปกรณและเคร่ืองมือในการดําเนินการ

1.4.1 ฮารดแวร ประกอบดวย - เครื่องคอมพิวเตอรพีซี - CPU ตั้งแต 2.0 GHz ขึ้นไป - RAM ตั้งแต 1.0 GHz ขั้นไป - หัวอาน DVD-RW

1.4.2 ซอฟแวร ประกอบดวยโปรแกรมประยุกตตางๆ ดังนี ้

- Edit plus

- Macromedia Dreamvewer8

- Adobe Flash CS3 , Adobe Photoshop CS3

- Microsoft office 2007

- MySQL

1.5. ขั้นตอนในการดําเนินงาน ใหแบงการดําเนินงาน ตามวิธีของการวิเคราะหและออกแบบระบบงานคอมพิวเตอร ซึ่งมีข้ันตอนดังนี ้

1.1.1. นําเสนอหัวขอตออาจารยที่ปรึกษา (ศึกษาทฤษฏีและเทคโนโลยีที่ใช) 1.1.2. ศึกษาและเก็บรวบรวมขอมูล 1.1.3. วิเคราะหขอมูล 1.1.4. ออกแบบโปรแกรม 1.1.5. พัฒนา –ทดสอบ

1.1.5.1. เขียนโปรแกรม 1.1.5.2. ทดสอบยอย

Page 33: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

1.1.5.3. ทดสอบรวม 1.1.5.4. ทดสอบติดตั้งระบบ

1.1.6. นําเสนอผลงานตอคณะกรรมการ 1.1.7. จัดทําเอกสาร

1.6.ระยะเวลาในการดําเนินงาน

กิจกรรม เดือน พ.ศ. 2548 มิถุนายน กรกฎาคม สิงหาคม กันยายน ตุลาคม พฤศจิกายน ธันวาคม มกราคม กุมภา

นําเสนอหัวขอตออาจารยที่ปรึกษา

ศึกษาและเก็บรวบรวมขอมูล วิเคราะหและออกแบบระบบงาน

พัฒนาระบบ ทดสอบและปรับปรุงระบบ นําเสนอผลงานตอคณะกรรมการ

จัดทําคูมือ

7.ผลที่คาดวาจะไดรับ

7.1.ชวยใหโรงเรียนมีระบบการเรียนการสอนท่ีสะดวกสบายมากยิ่งขึ้น

7.2.ชวยใหนักเรียนมีความพรอมท่ีจะเรียนรูส่ิงใหมๆ อยูเสมอ

7.3.เพ่ือวัดผลความรูจากการทําแบบทดสอบจากท้ังกอนและหลังเรียน

7.4.เพ่ือพัฒนาความรู ความสามารถและทักษะ ทางดานการศึกษา

7.5.เพ่ือความสะดวกในการเขาถึงขอมูลของผูใช

7.6.เพ่ิมประสิทธิภาพการเรียนการสอนของรายวิชาตางๆ ใหมีความสมัยมากยิ่งขึ้น

Page 34: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

ภาคผนวก ค

Page 35: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

รายงานการเขาพบที่ปรึกษา

รายงานการพบที่ปรึกษา

ชื่อเร่ือง ระบบ E-Learning โรงเรียนบานวังปลาโด จังหวัดมหาสารคาม

ผูศึกษา

นาย ภัทราวุธ สาไชยยา นาย ทวิวัฒน นอยบุดด ี

รหัส 49010911730 รหัส 49010911456

ที่ปรึกษา อาจารย ณัฐอาภา สัจจวาที

วัน เดือน ป รายงานความคืบหนา ลายมือชื่อที่ปรึกษา

Page 36: ภาคผนวก - bc.msu.ac.thbc.msu.ac.th/project_file/appendix(139).pdf5.สามารถดาวน โหลดเอกสารประกอบการเรียนได

15 มกราคม 2553 นําความคืบหนา web e-learning โรงเรียนวังปลาโด ไปใหจานดู พรองรับฟงคําแนะนํา และแนวทางในการดําเนินงาน

26 มกราคม 2553 นําเว็บอับขึ้น server และใหอาจารยทดสอบใชงาน ฟงคําแนะนํา

3 กุมภาพันธ 2553 เอาความคืบหนาเว็บไซตใหดู พรอมรับฟงแนวทาง การดําเนินงาน

16 กุมภาพันธ 2553 นําระบบ ดาวนโหลด ติดตอผุใช ใหดู รับฟงวิธีดําเนินงานจากอาจารย

25 กุมภาพันธ 2553 ทดสอบระบบใหอาจารยดู พรอมรับฟงหนาท่ียังตองปรับปรุงแกไข