Download - ภาคผนวก - bc.msu.ac.th · 138 ภาพที ก - 5 หน้าต่าง Apache httpd Server 6. จากนัÊนจะปรากฏหน้าต่าง
134
ภาคผนวก
135
ภาคผนวก ก
การตดตงโปรแกรม
136
ขนตอนการตดตงโปรแกรม
การตดตงโปรแกรมเวบเซรฟเวอร (Web server)
1. ข นตอนการตดต งโปรแกรม AppServ เปดไฟลการตดต งโปรแกรมดงรป
ภาพท ก - 1 ไฟลตวตดต ง appserv-win32-2.4.2.exe
2. เมอดบเบลคลกไฟลตวตดต ง appserv-win32-2.4.2.exe จะปรากฏหนาตางดงรปภาพท 2
ภาพท ก - 2 แสดงการเขาสการตดต งโปรแกรม AppServ v.2.4.2
3. จากน นใหคลกป ม จะปรากฏหนาตาง Choose Destination Location ดงภาพท 3 เพอใหเราเลอกตาแหนง
ทจะตดต งโปรแกรม AppServ โดยท วไปเราจะคลกป ม เลย
137
ภาพท ก - 3 หนาตาง Choose Destination Location
4. แลวจะปรากฏหนาตาง Setup Type ใหเราเลอก Typical จากน นคลกป ม
รปทก - 4 หนาตาง Setup Type
5. จากน นจะปรากฏหนาตาง Apache httpd Server ดงภาพท 5 โดยกาหนด Server Name เปน localhost และใสอเมลในชอง
Administrator’s Email Address และกาหนด HTTP Port ซงโดยปกตกคอ Port 80 จากน นคลกป ม
138
ภาพท ก - 5 หนาตาง Apache httpd Server
6. จากน นจะปรากฏหนาตาง MySQL Database ใหเราปอน User Name และ Password ทเราตองการ จากน นเลอก Charset เปน
tis620 เพอใชภาษาไทย แลวคลกป ม
ภาพท ก - 6 หนาตาง MySQL Database
7. รอจนกระท งตดต งโปรแกรม Appserv เสรจเรยบรอย จะปรากฏหนาตาง Finished ดงภาพท 7
139
ภาพท ก - 7 หนาตาง Finished
8. หากเราตองการใหเรมใชงาน Apache และ MySQL กเลอก Star Apache และ Start MySQL จากน นคลกป ม
เพอส นสดการตดต งโปรแกรม AppServ
140
ภาคผนวก ข
Source Code
141
Source Code ชอ config.php เชอมตอกบฐานขอมล
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php $host="localhost"; $user="root"; $pass="1234"; $db="project2"; mysql_connect($host,$user,$pass) or die("เชอมตอฐานขอมลไมได"); #เปนการตดตอฐานขอมล or die คอ ตดตอ
ลมเหลวจะแสดงขอความ "เชอมตอฐานขอมลไมได" mysql_query("use $db"); #เรยกใชฐานขอมลทอยในตวแปล #db = "msu" mysql_query("set names utf8"); #คาสงในการสนบสนนภาษาไทย ?>
Source Code ชอ index.php หนาแรกของเวบไซต
<? include("config.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"><!-- InstanceBegin template="/Templates/homepage.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } .style8 {font-family: Arial, Helvetica, sans-serif} a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active {
142
text-decoration: none; } .style10 {color: #000000} .style18 {font-size: 13px} .style20 {font-size: 13px; color: #FF0000; } --> </style> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> </head> <body> <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th colspan="3" valign="top" scope="col"><img src="image/head.gif" width="1030" height="200" /></th> </tr> <tr> <td colspan="3" valign="top"><table width="100%" border="0" bgcolor="#0099FF">
<tr bgcolor="#0099FF"> <th scope="col"><a href="index.php"><img src="image/m1.gif" width="190" height="30" border="0" /></a></th> <th bgcolor="#0099FF" scope="col"><a href="news.php"><img src="image/m3.gif" width="190" height="30" border="0" /></a></th> <th scope="col"><a href="webboard.php"><img src="image/m4.gif" width="190" height="30" border="0" /></a></th> <th scope="col"><a href="activity.php"><img src="image/m6.gif" width="190" height="30" border="0" /></a></th> <th scope="col"><a href="communicate.php"><img src="image/m7.gif" width="190" height="30" border="0" /></a></th> </tr> </table></td> </tr> <tr> <td width="22%" valign="top" bgcolor="#F6F6F6"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_03.png" width="9" height="8" /></th> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_04.png" width="207" height="8" /></th> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_05.png" width="10" height="8" /></th> </tr> <tr> <td><img src="image/blog01/webedu_templet008_sub04_07.png" width="9" height="250" /></td> <td valign="top" background="image/blog01/webedu_templet008_sub04_08.png"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><img src="image/title1.gif" width="205" height="30" /></th> </tr> <tr> <td align="center"><? include("config.php") ; $sql="SELECT * FROM `teacher` where t_id = '1111' "; $result= mysql_query($sql); // var_dump($sql); $data = mysql_fetch_array($result); ?></td> </tr>
143
<tr> <td align="center"><? echo "<img src=image_th/$data[t_image] width=180 border=2 height=210> <br>";?></td> </tr> </table></td> <td><img src="image/blog01/webedu_templet008_sub04_09.png" width="10" height="250" /></td> </tr> <tr> <td><img src="image/blog01/webedu_templet008_sub04_10.png" width="9" height="5" /></td> <td><img src="image/blog01/webedu_templet008_sub04_11.png" width="207" height="6" /></td> <td><img src="image/blog01/webedu_templet008_sub04_12.png" width="10" height="6" /></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th bgcolor="#F6F6F6" scope="col"> </th> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_03.png" width="9" height="8" /></th> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_04.png" width="207" height="8" /></th> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_05.png" width="10" height="8" /></th> </tr> <tr> <td><img src="image/blog01/webedu_templet008_sub04_07.png" width="9" height="213" /></td> <td valign="top" background="image/blog01/webedu_templet008_sub04_08.png"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><img src="image/bt1.gif" width="205" height="30" /></th> </tr> <tr> <td> </td> </tr> <tr> <td><code><a href="index.php"><img src="image/home.png" width="20" height="20" border="0" /> หนาหลก
</a></code></td> </tr> <tr> <td><code><a href="contact.php"><img src="image/user.png" width="20" height="20" border="0" /> ประวต
โรงเรยน</a></code></td> </tr> <tr> <td><code><a href="news.php"><img src="image/rss.png" width="20" height="20" border="0" /> ขาว
ประชาสมพนธ</a></code></td> </tr> <tr> <td><code><a href="calendar.php"><img src="image/calendar.png" width="20" height="20" border="0" /> ปฏทนกจกรรม</a></code></td> </tr> <tr> <td><code><a href="activity.php"><img src="image/folder_my_pictures.png" width="20" height="20" border="0" /> ภาพกจกรรม</a></code></td> </tr>
144
<tr> <td><code><a href="communicate.php"><img src="image/contacts.png" width="20" height="20" border="0" /> ตดตอโรงเรยน</a></code></td> </tr> <tr> <td> </td> </tr> </table></td> <td><img src="image/blog01/webedu_templet008_sub04_09.png" width="10" height="213" /></td> </tr> <tr> <td><img src="image/blog01/webedu_templet008_sub04_10.png" width="9" height="5" /></td> <td><img src="image/blog01/webedu_templet008_sub04_11.png" width="207" height="6" /></td> <td><img src="image/blog01/webedu_templet008_sub04_12.png" width="10" height="6" /></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th bgcolor="#F6F6F6" scope="col"> </th> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_03.png" width="9" height="8" /></th> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_04.png" width="207" height="8" /></th> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_05.png" width="10" height="8" /></th> </tr> <tr> <td><img src="image/blog01/webedu_templet008_sub04_07.png" width="9" height="235" /></td> <td valign="top" background="image/blog01/webedu_templet008_sub04_08.png"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><img src="image/title3.gif" width="205" height="30" /></th> </tr> <tr> <td><iframe src="https://www.google.com/calendar/embed?showTitle=0&showNav=0&showDate=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0&height=200&wkst=1&bgcolor=%23FFFFFF&src=std51010912163%40acc.msu.ac.th&color=%2323164E&ctz=Asia%2FBangkok" style=" border-width:0 " width="200" height="200" frameborder="0" scrolling="no"></iframe></td> </tr> </table></td> <td><img src="image/blog01/webedu_templet008_sub04_09.png" width="10" height="235" /></td> </tr> <tr> <td><img src="image/blog01/webedu_templet008_sub04_10.png" width="9" height="5" /></td> <td><img src="image/blog01/webedu_templet008_sub04_11.png" width="207" height="6" /></td> <td><img src="image/blog01/webedu_templet008_sub04_12.png" width="10" height="6" /></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th bgcolor="#F6F6F6" scope="col"> </th>
145
</tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_03.png" width="9" height="8" /></th> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_04.png" width="207" height="8" /></th> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_05.png" width="10" height="8" /></th> </tr> <tr> <td><img src="image/blog01/webedu_templet008_sub04_07.png" width="9" height="135" /></td> <td valign="top" background="image/blog01/webedu_templet008_sub04_08.png"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><img src="image/title4.gif" width="205" height="30" /></th> </tr> <tr> <td align="center"><span class="style10"> <embed src="http://www.clocklink.com/clocks/tawhill001-blue.swf?TimeZone=ICT&" width="100" height="100" wmode="transparent" type="application/x-shockwave-flash"> </embed> </span></td> </tr> </table></td> <td><img src="image/blog01/webedu_templet008_sub04_09.png" width="10" height="135" /></td> </tr> <tr> <td><img src="image/blog01/webedu_templet008_sub04_10.png" width="9" height="5" /></td> <td><img src="image/blog01/webedu_templet008_sub04_11.png" width="207" height="6" /></td> <td><img src="image/blog01/webedu_templet008_sub04_12.png" width="10" height="6" /></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th bgcolor="#F6F6F6" scope="col"> </th> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_03.png" width="9" height="8" /></th> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_04.png" width="207" height="8" /></th> <th scope="col"><img src="image/blog01/webedu_templet008_sub04_05.png" width="10" height="8" /></th> </tr> <tr> <td><img src="image/blog01/webedu_templet008_sub04_07.png" width="9" height="125" /></td> <td valign="top" background="image/blog01/webedu_templet008_sub04_08.png"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><img src="image/title2.gif" width="205" height="30" /></th> </tr> <tr> <td> </td> </tr> <tr> <td><code><a href="std_login.php"><img src="image/user_group.png" width="20" height="20" border="0" /> นกเรยน</a></code></td>
146
</tr> <tr> <td><code><a href="t_login.php"><img src="image/offline_user.png" width="20" height="20" border="0" /> ครผ สอน</a></code></td> </tr> <tr> <td><code><a href="admin/login_admin.php"><img src="image/user1.png" width="20" height="20" border="0" /> ผดแลระบบ</a></code></td> </tr> </table></td> <td><img src="image/blog01/webedu_templet008_sub04_09.png" width="10" height="125" /></td> </tr> <tr> <td><img src="image/blog01/webedu_templet008_sub04_10.png" width="9" height="5" /></td> <td><img src="image/blog01/webedu_templet008_sub04_11.png" width="207" height="6" /></td> <td><img src="image/blog01/webedu_templet008_sub04_12.png" width="10" height="6" /></td> </tr> </table> <p> </p> <p> </p> <p> </p></td> <td colspan="2" valign="top" bgcolor="#F6F6F6"><!-- InstanceBeginEditable name="EditRegion1" --> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_03.png" width="9" height="8" /></th> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_04.png" width="789" height="8" /></th> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_05.png" width="10" height="8" /></th> </tr> <tr> <td valign="top" background="image/blog01/webedu_templet008_sub04_07.png"> </td> <td valign="top"><p> </p> <table width="50%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_03.png" width="9" height="8" /></th> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_04.png" width="400" height="8" /></th> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_05.png" width="10" height="8" /></th> </tr> <tr> <td valign="top" background="image/blog01/webedu_templet008_sub04_07.png"> </td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><span class="style22">ภาพกจกรรม</span></th> </tr> <tr> <td align="center"><a href="activity.php"><img src="image/anigif.gif" width="360" height="270" border="0"></a></td> </tr> <tr>
147
<td> </td> </tr> </table></td> <td valign="top" background="image/blog01/webedu_templet008_sub04_09.png"> </td> </tr> <tr> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_10.png" width="9" height="5" /></td> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_11.png" width="400" height="6" /></td> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_12.png" width="10" height="6" /></td> </tr> </table> <p> </p> <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_03.png" width="9" height="8" /></th> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_04.png" width="666" height="8" /></th> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_05.png" width="10" height="8" /></th> </tr> <tr> <td valign="top" background="image/blog01/webedu_templet008_sub04_07.png"> </td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><span class="style22">ขาวประชาสมพนธ</span></th> </tr> <tr> <td><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="100%"> <?php include("config.php"); $sql="select * from news order by n_id desc limit 5"; $result= mysql_query($sql); while ($data= mysql_fetch_array($result)){ ?> <table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5%" height="22" valign="top" bgcolor="#F6F6F6"> </td> <td width="74%" valign="top" bgcolor="#F6F6F6"><span class="style16"> <a href="news_detail.php?id=<?=$data[n_id];?>"><span class="style22 style14"> <?=$data[n_name];?> </span></a> <img src="image/new.gif" width="30" height="10" /></span></td> <td width="21%" valign="top" bgcolor="#F6F6F6"><span class="style23"> <?=$data[n_date];?> </span></td> </tr> <tr>
148
<td colspan="3" valign="middle" bgcolor="#FFE9D2"></td> </tr> </table> <? }; ?></td> </tr> </table></td> </tr> <tr> <td> </td> </tr> </table></td> <td valign="top" background="image/blog01/webedu_templet008_sub04_09.png"> </td> </tr> <tr> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_10.png" width="9" height="5" /></td> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_11.png" width="666" height="6" /></td> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_12.png" width="10" height="6" /></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"> </th> </tr> </table> <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_03.png" width="9" height="8" /></th> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_04.png" width="666" height="8" /></th> <th valign="top" scope="col"><img src="image/blog01/webedu_templet008_sub04_05.png" width="10" height="8" /></th> </tr> <tr> <td valign="top" background="image/blog01/webedu_templet008_sub04_07.png"> </td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th bgcolor="#99CCCC" scope="col"><span class="style22">ขาวท วไป</span></th> </tr> <tr> <th align="left" bgcolor="#99CCCC" scope="col"> </th> </tr> <tr> <th align="left" bgcolor="#99CCCC" scope="col"><iframe src="http://www.rubook.com/rujob/rujob_feed1.php" width="100%" height="270" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe></th> </tr> </table></td> <td valign="top" background="image/blog01/webedu_templet008_sub04_09.png"> </td> </tr> <tr> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_10.png" width="9" height="5"
149
/></td> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_11.png" width="666" height="6" /></td> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_12.png" width="10" height="6" /></td> </tr> </table> <p> </p></td> <td valign="top" background="image/blog01/webedu_templet008_sub04_09.png"> </td> </tr> <tr> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_10.png" width="9" height="5" /></td> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_11.png" width="789" height="6" /></td> <td valign="top"><img src="image/blog01/webedu_templet008_sub04_12.png" width="10" height="6" /></td> </tr> </table> <p> </p> <p> </p> <!-- InstanceEndEditable --></td> </tr> <tr> <td colspan="3" valign="top" bgcolor="#597DB2"><p> </p> <p> </p></td> </tr> </table> <p> </p> </body> <!-- InstanceEnd --></html>
Source Code ชอ chk_login_admin.php เขาสระบบ
<?php include("config.php"); $user=$_POST["inUser"]; $pwd=$_POST["inPass"]; $sql = "select * from admin where a_user = '$user' and a_pass = '$pwd'"; $result= mysql_query($sql); $num_rows = mysql_num_rows($result); if ($num_rows>0) { $data = mysql_fetch_array($result); $_SESSION["m_id"]=$data["a_id"]; $_SESSION["m_names"]=$data["a_name"]; ?> <meta http-equiv="refresh"content="3;URL=index_admin.php" /><!--ถาผานเงอนไขifจะสงไปย งลงค --> <? } else {
150
echo "ระบบไมพบขอมลของคณ กรณาตรวจสอบใหมอกคร ง"; ?> <meta http-equiv="refresh" content="3;URL=login_admin.php" /> <? } //end if ?>
Source Code ชอ teacher_list_std.php หนาแสดงขอมลนกเรยน
<?php if (empty($_GET[page])) { $_GET[page] = 1 ; } $per_page = 20 ; function printpage($page,$totalpage){ $j = $page - 1 ; if($j > 0 ){ $body .= " <a href=?page=".$j."><img src=image/prev.gif border=0
/></a> | " ; } for($j = 1 ; $j <= $totalpage ;$j ++){ if($j == $page){ $body .= " <b><FONT color=red>$page</font></b> | " ; } else{ $body .= " <a href=?page=".$j.">" .$j."</a> | " ; } } $j = $page + 1 ; if($j <= $totalpage){ $body .= " <a href=?page=".$j."><img src=image/next.gif border=0
/></a> " ; } return $body ; } include("config.php") ; $p_start = ( $per_page * $_GET[page] ) - $per_page; $sql = "select * from student` " ; $result = mysql_query($sql) ; $numrow = mysql_num_rows($result); if ( $numrow <= $per_page ) { $totalpage = 1; } elseif ( ( $numrow % $per_page ) == 0 ) {
151
$totalpage = ( $numrow / $per_page ); } else { $totalpage = ( $numrow / $per_page ) + 1; } $sql .= " LIMIT $p_start, $per_page"; $result = mysql_query( $sql ); ?> <p> หนาท <?=printpage($_GET[page],$totalpage);?> </p> <? while ($data = mysql_fetch_array($result) ){ $i++; ?></tr> <tr bgcolor="#F9F2F9"> <td><div align="center"> <?=$data[s_id];?> </div></td> <td bgcolor="#F9F2F9"><div align="left"> <?=$data[s_name];?> </div></td> <td><div align="center"> <?=$data[sex_id];?> </div></td> <td><div align="center"> <? include "config.php"; $sql2 = "select * from class where class_id='$data[class_id]'" ; $result2=mysql_db_query($db,$sql2); $record2=mysql_fetch_array($result2) ; mysql_close(); ?> <?=$record2[class_name];?> </div></td> <td><div align="center"> <?php echo " <a href='std_delete.php?s_id=$data[s_id]' onclick='return confirm(\"ลบขอมล?\");'><img src=image/dell.jpg border=0 /></a>"; ?> </div></td> <td><div align="center"> <?php echo "<a href='teacher_edit_std.php?s_id=$data[s_id]'><img src=image/edit.gif border=0 /></a>"; ?> </div></td> <td><div align="center"> <?php echo "<a href='teacher_detail_std.php?s_id=$data[s_id]'><img src=image/0010.jpg border=0 /></a>";
152
?> </div></td> </tr> <?php } ?> </table> </form> <p> หนาท <?=printpage($page,$totalpage);?> </p> </p>
Source Code ชอ std_add.php หนาเพมขอมลนกเรยน
<?php if(isset($_POST[Submit])){ $required = array ("inID"=>"รห สน กเรยน","inName"=>"ชอ","inTel"=>"เบอรโทร","inAddress"=>"ทอย","inDad"=>"ชอ
บดา","inMom"=>"ชอมารดา","inUser"=>"ชอผ ใช","inPass"=>"รห สผาน"); foreach ($required as $field => $label){ if (trim($_POST[$field]) == ""){ $err .= " คณไมไดปอน $label"; } } if($err){ echo "<script lanquage = 'Javascript'> alert('เกดขอผดพลาด');</script>"; echo "<script lanquage = 'Javascript'> alert('$err');</script>"; exit();} $img = $_FILES["inImage"]; // รบคาจากฟอรมเพมมาเกบไวในต วแปร if ($img["size"] > 0 ) { $filename = $img["name"]; copy($img["tmp_name"],"../image_std/".$filename); // คดลอกรปทรบมาจากฟอรมเพม ลงโฟรเดอร } else { $filename = ""; } //end if
$sql= "INSERT INTO student VALUES ('$_POST[inID]','$_POST[inName]','$_POST[inSex]','$_POST[inYear]''$_POST[inMonth]''$_POST[inDay]','$_POST[inclass]','$_POST[inTel]','$_POST[inAddress]','$_POST[inDad]','$_POST[inMom]','$_POST[inUser]','$_POST[inPass]','$filename')"; mysql_query($sql) or die ("บนทกขอมลไมได..."); echo "บนทกขอมลเรยบรอยแลว..."; } ?>
153
Source Code ชอ teacher_edit_std.php หนาแกไขขอมลนกเรยน
<?php if(isset($_POST[Submit])){ $required = array ("inName"=>"ชอ-สกล","inTel"=>"เบอรโทร","inAddress"=>"ท
อย","inDad"=>"ชอบดา","inMom"=>"ชอมารดา","inUser"=>"ชอผ ใช","inPass"=>"รหสผาน"); foreach ($required as $field => $label){ if (trim($_POST[$field]) == ""){ $err .= " คณไมไดปอน $label"; } } if($err){ echo "<script lanquage = 'Javascript'> alert('เกดขอผดพลาด');</script>"; echo "<script lanquage = 'Javascript'> alert('$err');</script>"; exit();} $img=$_FILES["inImage"]; if($img["size"]>0){ $filename = $img["name"]; copy($img["tmp_name"],"../image_std/".$filename); $sql1 ="update student set s_name='$_POST[inName]',sex_id='$_POST[inSex]' ,s_birth='$_POST[inBirthday]',s_tel='$_POST[inTel]',s_address='$_POST[inAddress]' ,s_dad='$_POST[inDad]',s_mom='$_POST[inMom]',s_image='$filename',s_user='$_POST[inUser]' ,s_pass='$_POST[inPass]',class_id='$_POST[inclass]' where s_id=$_GET[s_id]"; }else{$filename =""; //กรณ รปไมไดถกแกไข $sql1 ="update student set s_name ='$_POST[inName]',sex_id='$_POST[inSex]' ,s_birth='$_POST[inBirthday]',s_tel='$_POST[inTel]',s_address='$_POST[inAddress]' ,s_dad='$_POST[inDad]',s_mom='$_POST[inMom]',s_user='$_POST[inUser]',s_pass='$_POST[inPass]' ,class_id='$_POST[inclass]'where s_id=$_GET[s_id]"; } // end if mysql_query($sql1) or die ("บนทกขอมลนกเรยนไมได..."); $pid=mysql_insert_id(); echo"<script>"; echo"alert('แกไขขอมลนกเรยนรยบรอยแลว');"; echo"window.location='teacher_list_std.php'"; echo"</script>"; } ?>
154
Source Code ชอ teacher_list.php หนาขอมลครผสอน
<?php if (empty($_GET[page])) { $_GET[page] = 1 ; } $per_page = 5 ; function printpage($page,$totalpage){ $j = $page - 1 ; if($j > 0 ){ $body .= " <a href=?page=".$j."><img src=../image/prev.gif border=0 /></a> | " ; } for($j = 1 ; $j <= $totalpage ;$j ++){ if($j == $page){ $body .= " <b><FONT color=red>$page</font></b> | " ; } else{ $body .= " <a href=?page=".$j.">" .$j."</a> | " ; } } $j = $page + 1 ; if($j <= $totalpage){ $body .= " <a href=?page=".$j."><img src=../image/next.gif border=0 /></a> " ; } return $body ; } include("config.php") ; $p_start = ( $per_page * $_GET[page] ) - $per_page; $sql = "select t.* , c.class_name from teacher t JOIN class c ON (t.class_id = c.class_id) order by t_id asc" ; $result = mysql_query($sql) ; $numrow = mysql_num_rows($result); if ( $numrow <= $per_page ) { $totalpage = 1; } elseif ( ( $numrow % $per_page ) == 0 ) { $totalpage = ( $numrow / $per_page ); } else { $totalpage = ( $numrow / $per_page ) + 1; } $sql .= " LIMIT $p_start, $per_page"; $result = mysql_query( $sql ); ?>
155
Source Code ชอ lesson_add.php หนาเพมบทเรยน
<?php if(isset($_POST[Submit])){ $required = array ("inName"=>"เรอง","inLes"=>"เน อเรอง","t_id"=>"ชอผ สอน","inCourse"=>"รายวชา","inClass"=>"ช น"); foreach ($required as $field => $label){ if (trim($_POST[$field]) == ""){ $err .= " คณไมไดปอน $label"; } } if($err){ echo "<script lanquage = 'Javascript'> alert('เกดขอผดพลาด');</script>"; echo "<script lanquage = 'Javascript'> alert('$err');</script>"; exit();} $sql= "INSERT INTO `lesson` VALUES ('','$_POST[inName]','$_POST[inLes]','$_POST[t_id]','$_POST[inCourse]','$_POST[inClass]')"; mysql_query($sql) or die ("บนทกขอมลไมได..."); echo "บนทกขอมลเรยบรอยแลว..."; echo "<meta http-equiv=refresh content=3;url=lesson_list.php>"; } ?>
Source Code ชอ lesson_edit.php หนาแกไขบทเรยน
<?php if(isset($_POST[Submit])){ $required = array ("inID"=>"รห ส","inName"=>"เน อเรอง","inLes"=>"เน อเรอง","inTeacher"=>"ชอ
คร","inCourse"=>"รายวชา","inclass"=>"ช นป"); foreach ($required as $field => $label){ if (trim($_POST[$field]) == ""){ $err .= " คณไมไดปอน $label"; } } if($err){ echo "<script lanquage = 'Javascript'> alert('เกดขอผดพลาด');</script>"; echo "<script lanquage = 'Javascript'> alert('$err');</script>"; exit();} $sql1 ="update lesson set l_id ='$_POST[inID]',l_name='$_POST[inName]',l_lesson='$_POST[inLes]',t_id='$_POST[inTeacher]', c_id= '$_POST[inCourse]',class_id='$_POST[inclass]' where l_id=$_GET[l_id]"; mysql_query($sql1) or die ("บนทกขอมลบทเรยนไมได..."); $pid=mysql_insert_id();
156
echo"<script>"; echo"alert('แกไขขอมลบทเรยนรยบรอยแลว');"; echo"window.location='lesson_list.php'"; echo"</script>"; } ?>
Source Code ชอ lesson_edit.php หนาลบบทเรยน
<?php include ("config.php"); if(isset($_GET[l_id])) { $sql = "delete from lesson where l_id='$_GET[l_id]' " ; mysql_query($sql) or die ("ลบขอมลบทเรยนไมได") ; echo "<script>"; echo "alert('ลบขอมลบทเรยนเรยบรอยแลว');"; echo "window.location='lesson_list.php';"; echo "</script>"; } ?>
Source Code ชอ teacher_test_add_ch.php หนาเพมขอมลแบบทดสอบ
<?php include("config.php"); if(isset($_POST[submit])){ $sql3= "INSERT INTO test_list VALUES ('','$_POST[inName]','$_POST[choice1]','$_POST[choice2]','$_POST[choice3]','$_POST[choice4]','$_POST[ans]','$_GET[id]')"; mysql_query($sql3) or die ("บนทกขอมลไมได..."); echo"<script>"; echo"alert('เพมขอมลบทเรยนเรยบรอยแลว');"; echo"window.location='teacher_test_list_ch.php?id=$_GET[id]';"; echo"</script>"; } ?>
157
Source Code ชอ teacher_test_edit_ch.php หนาแกไขขอมลแบบทดสอบ
<?php if(isset($_POST[submit])){ $required = array ("inName"=>"คาถาม","choice1"=>"ตวเลอก1","choice2"=>"ตวเลอก
2","choice3"=>"ตวเลอก3","choice4"=>"ตวเลอก4"); foreach ($required as $field => $label){ if (trim($_POST[$field]) == ""){ $err .= " คณไมไดปอน $label"; } } if($err){ echo "<script lanquage = 'Javascript'> alert('เกดขอผดพลาด');</script>"; echo "<script lanquage = 'Javascript'> alert('$err');</script>"; exit();} $sql = "update test_list set list_name='$_POST[inName]',choice1='$_POST[choice1]' ,choice2='$_POST[choice2]',choice3='$_POST[choice3]',choice4='$_POST[choice4]' ,ans='$_POST[ans]' where list_id='$list_id' "; mysql_query($sql) or die ("แกไขขอมลแบบทดสอบไมได..."); echo"<script>"; echo"alert('แกไขขอมลแบบทดสอบเรยบรอยแลว');"; echo"window.location='teacher_test_list_ch.php?id=$data[test_id].php'"; echo"</script>"; } ?>
Source Code ชอ teacher_test_delete_ch.php หนลบขอมลแบบทดสอบ
<?php $sql="delete from test where test_id='$_GET[test_id]'"; mysql_query($sql) or die ("ลบขอมลแบบทดสอบไมได"); echo "<script>"; echo "alert('ลบขอมลแบบทดสอบเรยบรอยแลว');"; echo "window.location='teacher_test_list.php';"; echo "</script>"; ?>
158
Source Code ชอ lesson.php หนานกเรยนเลอกบทเรยน
<?php include("config.php") ; $sql = "select l_name,c_id ,l_id from lesson ORDER BY c_id " ; $result = mysql_query($sql) ; while ($data = mysql_fetch_array($result) ){ ?> <? include "config.php"; $sql2 = "select * from course where c_id='$data[c_id]'" ; $result2=mysql_db_query($db,$sql2); $record2=mysql_fetch_array($result2) ; mysql_close(); ?> <td height="24" align="left"><?=$record2[c_name];?></td> <td align="left"><img src="image/emblem_library.png" width="20" height="20" /> <?php echo "<a href='lesson_detail.php?l_id=$data[l_id]'>$data[l_name]</a>"; ?></td> </tr> <?php } ?> </table>
Source Code ชอ std_list_test.php หนานกเรยนเลอกทาแบบทดสอบ
<? include("config.php") ; $sql = "SELECT * FROM course ORDER BY c_id DESC" ; $result = mysql_query($sql) ; while ($data = mysql_fetch_array($result)) { ?> <tr> <td height="22" bordercolor="#CAFFFF"><div align="left"><a href="std_list_test2.php?cid=<?=$data[c_id];?>"> <?=$data["c_name"]?> </a></div></td> </tr> <? } ?> </table> <p> </p> <p><span class="style55"> </span><span class="style41 style26 style53"><strong> </strong></span> </p> <? if ($_GET[cid]){ ?> <form id="form1" name="form1" method="post" action=""> <table width="90%" border="1" align="center">
159
<tr align="center"> <td width="51%"><span class="style63">ชอแบบทดสอบ</span></td> <td width="16%"><span class="style63">จานวนขอ</span></td> </tr> <? $sql3="select * from test where c_id='$_GET[c_id]' order by test_id asc"; $result3=mysql_query($sql3); $numrow3=mysql_num_rows($result3); if ($numrow3 > 0){ while ($data3=mysql_fetch_array($result3)){ $test_id = $data3["test_id"]; ?> <tr> <td><a href="std_test.php?test_id=<?=$data3[test_id];?>"> <?=$data3["test_name"]; ?></td> <td><? $sql4="select * from test_list where test_id='$test_id' order by test_id asc"; $result4=mysql_query($sql4); $numrow4=mysql_num_rows($result4); if ($numrow4 > 0){ $data4=mysql_fetch_array($result4); echo $numrow4; } ?></td> </tr> <? }} ?> </table> </form>
Source Code ชอ activity_add.php หนาเพมขอมลภาพกจกรรม
<? include("config.php"); if(isset($_POST[Submit])){ $sql2="insert into activity (a_id,a_name,a_date,a_detail) values ('','$_POST[inName]',NOW(),'$_POST[inDetail]')"; //var_dump($sql2);exit; mysql_query($sql2) or die("เพมขอมลไมได"); $id = mysql_insert_id(); // $id = mysql_insert_id(); // copy($_FILES[inImg][tmp_name] , "photo/".$id.".".$n) ; //var_dump($_FILES[inPicture]); exit; for($a=0; $a<=20; $a++) { if (!empty($_FILES[inPicture][type][$a])) {
160
$c+=1; } } //var_dump($c); exit; for ($i=0; $i<$c;$i++) { ##################### if(isset($_FILES[inPicture])){ if ($_FILES[inPicture][type][$i] == "image/pjpeg") { $n = "jpg" ; } else if ($_FILES[inPicture][type][$i] == "image/gif") { $n = "gif" ; } else if ($_FILES[inPicture][type][$i] == "image/x-png") { $n = "png" ; } } $sql3 = "insert into detailactivity values('','$n','".$_POST[inName2][$i]."','$id')" ; //var_dump($sql3); mysql_query($sql3) or die("เพมขอมลไมได2"); $id3 = mysql_insert_id(); copy($_FILES['inPicture']['tmp_name'][$i],"Activity/".$id3.".".$n) or die ('xx'); } echo "<script language=javascript>"; echo "alert ('คณเพมขอมลกจกรรมเรยบรอยแลว');"; // echo "window.location='activity_list.php';" ; echo "</script>"; //echo"<meta http-equiv=refresh content=1;url=AddAdmin.php />"; } ?>
Source Code ชอ activity_edit.php หนาแกไขภาพกจกรรม
<?php include("config.php"); if(isset($_POST[Submit])){ $sql="update activity set a_name='$_POST[inName]', a_detail='$_POST[inDetail]' where a_id='$_GET[a_id]'"; mysql_query($sql) or die("แกไขขอมลไมได"); echo "<script language=javascript>"; echo "alert ('คณแกไขเรยบรอยแลว');"; echo "window.location='activity_list.php';" ; echo "</script>"; // echo"<meta http-equiv=refresh content=1;url=ShowAdmin.php />"; } ?>
161
Source Code ชอ activity_delete.php หนาลบภาพกจกรรม
<?php include ("config.php"); if(isset($_GET[a_id])) { $sql = "delete from activity where a_id='$_GET[a_id]' " ; mysql_query($sql) or die ("ลบภาพกจกรรมไมได") ; echo "<script>"; echo "alert('ลบภาพกจกรรมเรยบรอยแลว');"; echo "window.location='activity_list.php';"; echo "</script>"; } ?>
Source Code ชอ news_add..php หนาเพมขอมลขาวประชาสมพนธ
<?php if (isset($_POST[Submit2])){ include("config.php"); $file=$_FILES["inFile"]; if($file["size"]>0){ $fileupload = $_FILES['inFile']['tmp_name']; $fileupload_type = strstr($_FILES['inFile']['name'],"."); $fileupload_name = md5(date("Ymdis")).$fileupload_type; if ($fileupload) { $array_last=explode(".",$fileupload_type); $c=count($array_last)-1; $lastname=strtolower($array_last[$c]) ; if ($lastname=="pdf" or $lastname=="msword" or $lastname=="docx") { copy($fileupload,"file/".$fileupload_name); }else{ echo "ERROR : ไมสามารถ Upload ไฟลขอมลได"; } }else{ echo "<h3>ERROR : ไมสามารถ Upload รปภาพ</h3>"; } } $img1=$_FILES["inImage"]; if($img1["size"]>0){ $fileupload1 = $_FILES['inImage']['tmp_name']; $fileupload_type1 = strstr($_FILES['inImage']['name'],"."); $fileupload_img = md5(date("Ymdis")).$fileupload_type1; if ($fileupload1) { $array_last=explode(".",$fileupload_type1); $c=count($array_last)-1; $lastname=strtolower($array_last[$c]) ;
162
if ($lastname=="gif" or $lastname=="jpg" or $lastname=="jpeg" or $lastname=="png") { copy($fileupload1,"../images_new/".$fileupload_img); }else{ echo "ERROR : ไมสามารถ Upload ไฟลขอมลได"; } }else{ echo "<h3>ERROR : ไมสามารถ Upload รปภาพ</h3>"; } } $sql="insert into news values('','$_POST[inName]',now(),'$_POST[inDetail]','$_POST[inBy]','$file')"; mysql_query($sql) or die("เพมขอมลขาวประชาสมพนธไมได"); echo "<script>"; echo "alert('เพมขอมลเขาวประชาสมพนธเรยบรอยแลว');"; echo "window.location='news_list.php';"; echo "</script>"; } ?>
163
ภาคผนวก ค
บทนาเสนอโครงงานเทคโนโลยสารสนเทศธรกจ
164
บทนาเสนอโครงงานเทคโนโลยสารสนเทศธรกจ 2
ประจาภาคเรยนท 2/2554
วชา : 0904403 โครงงานเทคโนโลยสารสนเทศธรกจ 2 จานวน 2 หนวยกต (0-4-2)
ชอโครงงาน : ระบบการเรยนรออนไลนโรงเรยนบานทาปะทายโนนตม อาเภอเมอง
จงหวดมหาสารคาม
รายชอผ จดทาโครงงาน :
1. ชอ-สกล นายนาภพ ไปบน รหสประจาตว 51010912163
2. ชอ-สกล นางสาวพสตราพร ตาลโยธา รหสประจาตว 51010912236
อาจารยทปรกษาโครงงาน :
อาจารยเกรยงศกด จ นทนอก
(....................................................)
กรรมการทปรกษา
ว นท ............/ ................/ ..............
(....................................................)
กรรมการคนท 1
ว นท ............/ ................/ ..............
(....................................................)
กรรมการคนท 2
ว นท ............/ ................/ ..............
165
1.1 ความเปนมาและความสาคญ
คอมพวเตอรในปจจบนเขามามบทบาทในชวตประจาว น เนองจากคอมพวเตอรไดพฒนาขน
มาอยางรวดเรวในทางทสวนกลบกน และมความสามารถเพมข นเรอยๆ โดยจะเหนไดอยางชดเจนจาก
การทาเวบไซตของหนวยงานตางๆ ซงกอนทจะแพรหลายดงเชนทกว นน เวบไซตคอศนยรวมความร
และแหลงขอมลตางๆ อาท เชน ขาวสาร ประชาสมพนธ บนเทง กฬา เปนตน และจะมแตเฉพาะใน
หนวยงานองคกรของรฐ เอกชนทเปนหนวยงานใหญ แตโลกทกวนน เวบไซตนอกจากจะเปนการ
กระจายขาวสารของหนวยงานองคกรน นๆ ยงใหมการใชงานอยางกว างขวางมากข น ทกคนสามารถม
เวบไซตเปนของตนเองได
โรงเรยนบานทาปะทายโนนตม เปนโรงเรยนประถมศกษาทมนกเรยนอยไมมาก และไมคอย
มคนรจก ทาใหเกดความยงยากในการของบประมาณมาพฒนาโรงเรยน หรอขอเงนทนสนบสนน
การศกษาแกนกเรยน เพอใหเกดความทนสมยและเปนทรจกของผ อนอยางกวางขวาง รวมถงขอมล
ขาวสารทางการศกษาจะไดเตรยมความพรอมในการเรยนการสอน
ความจาเปนทตองจดทาเวบไซตเพอเปนการประชาสมพนธโรงเรยน ขาวสารและขอมลตางๆ
ของโรงเรยนใหกบนกเรยน บคลากร และบคคลท วไปไดเขาใจอยางท วถง และใชประโยชนในการ
ตดตอสอสารกนท งภายในและภายนอกโรงเรยนไดสะดวกรวดเรวข น การจดทาเวบไซตจงเปน
ทางเลอกทสะดวกในการจดการกบขอมลขาวสาร ข อมลบคลากรและขอมลนกเรยนเพอเปนการใช
เทคโนโลยใหเกดประโยชนในสถาบนการศกษาเพมมากข น
1.2 วตถประสงคของการศกษา
1.2.1 เพอพฒนาเวบไซตของโรงเรยนบานทาปะทายโนนตม
1.2.2 เพอใหอาจารย สามารถทดสอบความรนกเรยนไดงายและสะดวกในการเตรยม
นาผลการทดสอบมาพฒนานกเรยนใหเปนไปตามผลสมฤทธ ทางการเรยน
1.2.3 เพอเปนสอกลางในการศกษาขอมล ขาวสาร ประชาสมพนธใหผ ทสนใจไดทราบ ขอมล
ระหวางกน
166
1.3 ขอบเขตการดาเนนงาน
1.3.1 นกเรยน
1.3.1.1 ขอมลสวนตว
- สามารถเขาดข อมลสวนตวได
1.3.1.2 บทเรยน
- สามารถทาแบบทดสอบได
1.3.2 อาจารย ผ สอน
1.3.2.1 ระบบจดการบทเรยน
- สามารถเพม ลบ แกไขบทเรยนได
1.3.2.2 ระบบจดการนกเรยน
- สามารถเพม ลบ แกไขขอมลนกเรยนได
1.3.2.3 ระบบจดการแบบทดสอบ
- สามารถเพม ลบ แกไขแบบทดสอบได
1.3.3 บคคลท วไป
1.3.3.1 สามารถดขอมลท วไปของโรงเรยนได
- ประว ตโรงเรยน
- ทาเนยบบคลากร
- ขาวประชาสมพนธตาง ๆ
- ประมวลภาพกจกรรมตาง ๆ
1.3.3.2 สามารถโพสตข อความในเวบบอรดได
1.3.4 ผ ดแลระบบ
1.3.4.1 เวบบอรด (ระบบจดการกระดานถาม-ตอบ)
- สามารถเพม ลบ แกไขหวข อคาถามได
- สามารถเพม ลบ แกไขคาตอบได
167
- แสดงรายการของกระดานถาม-ตอบท งหมด
1.3.4.2 ระบบจดการขาว
- สามารถเพม ลบ แกไขประเภทขาวได
- สามารถเพม ลบ แกไขขอมลขาวได
- แสดงรายการขาวท งหมดแบงตามประเภทขาวได
1.3.4.3 ระบบจดการกจกรรม
- สามารถเพม ลบ แกไขภาพกจกรรมได
- แสดงรายการภาพกจกรรมท งหมด
1.3.4.4 ระบบจดการบทเรยน
- สามารถเพม ลบ แกไขบทเรยนได
- แสดงบทเรยนท งหมด
1.3.4.5 ระบบจดการนกเรยน
- สามารถเพม ลบ แกไขขอมลนกเรยนได
1.3.4.6 ระบบจดการครผ สอน
- สามารถเพม ลบ แกไขขอมลครผสอนได
1.3.4.7 ระบบจดการแบบทดสอบ
- สามารถเพม ลบ แกไขแบบทดสอบได
1.4 อปกรณและเครองมอในการดาเนนงาน
1.4.1 ฮารดแวร
เครองคอมพวเตอร 1 เครอง
1.4.2 ซอฟตแวร
1.4.2.1 โปรแกรม Adobe Dreamweaver CS3 ใชพฒนาเวบไซต
168
1.4.2.2 โปรแกรม Adobe Photoshop CS3 สาหรบตกแตงรปภาพ
1.4.2.3 Internet Explorer Version 7.0 ใชทดสอบการแสดงผลการทางานของ
เวบไซต
1.4.2.4 โปรแกรม Microsoft Office 2007 เพอพมพเอกสารประกอบ เชน คมอ
1.4.2.5 AppServ สาหรบวนโดว
1) Apache เวบเซรฟเวอร ใชจาลองเครองคอมพวเตอรใหเปนเวบ
เซรฟเวอร
2) PHP ใชทาใหเวบทเปนไฟล PHP สามารถทจะรนบนเครอง
คอมพวเตอรทไดทาการจาลองเปนเครองเซรฟเวอรแลวได
3) Mysql ใชเปนฐานขอมลของระบบสารสนเทศโรงเรยนบานทาปะทาย
โนนตม
4) phpMyAdmin ใชเปนเครองมอในการบรหารจดการฐานขอมล Mysql
1.4.2.6 โปรแกรม Adobe Flash เพอใชในการทาภาพเคลอนไหว ภาพนง ตกแตง
เวบไซต
1.5 ขนตอนในการดาเนนงาน
1.5.1 นาเสนอหวขอตออาจารยทปรกษา (ศกษาทฤษฏและเทคโนโลยทใช)
1.5.2 ศกษาและเกบรวบรวมขอมล
1.5.3 วเคราะหขอมล
1.5.4 ออกแบบโปรแกรม
1.5.5 ดาเนนการจดทาเวบไซต
1.5.6 นาเสนอผลงานตอคณะกรรมการ
1.5.7 จดทาเอกสาร
169
1.6 ระยะเวลาในการดาเนนงาน
กจกรรม
พ.ศ. 2554 พ.ศ. 2555
ม.ย. ก.ค. ส.ค. ก.ย. ต.ค. พ.ย. ธ.ค. ม.ค. ก.พ. ม.ค.
นาเสนอหวขอตออาจารยท
ปรกษา
ศกษาและเกบรวบรวมขอมล
วเคราะหความตองการของผ ใช
วเคราะหและออกแบบ
ระบบงาน
พฒนาระบบ
ทดสอบและปรบปรงระบบ
นาเสนอผลงานตอคณะกรรมการ
จดทาคมอ
1.7 ผลทคาดวาจะไดรบ
1.7.1 ผ ใชงานเวบไซตสามารถใชงานเวบไซตไดดและมประสทธภาพมากยงข น
1.7.2 มความสะดวกในการเขาใชงาน
1.7.3 บคคลท วไปรจกโรงเรยนบานทาปะทายโนนตมมากยงข น
1.7.4 เปนเวบไซตทเปนศนย กลางในการตดตอสอสารขอมลระหวางกน
1.7.5 สามารถตดตามขาวสารข อมลไดในเวบไซตโรงเรยนบานทาปะทายโนนตม
170
ภาคผนวก ง
รายงานการพบทปรกษา
171
รายงานการเขาพบทปรกษา
ชอ ระบบการเรยนรออนไลนโรงเรยนบานทาปะทายโนนตม
ผจดทา นายนาภพ ไปบน
นางสาวพสตราพร ตาลโยธา
ทปรกษา อาจารยเกรยงศกด จนทนอก
วน เดอน ป รายงานความคบหนา/การใหคาปรกษา ลายมอชอท
ปรกษา
23มถนายน 2554 แกไขบทท 1 ชอหวขอโปรเจค แกไขบทท 2 วรรณกรรมท
เกยวของ การจดหนา
14 กรกฏาคม2554 ตรวจบทท3 แกไขรปแบบตวหนงสอ
25สงหาคม2554 แกไข Flowchart แกไขคาทพพมผด พมพตก แกไข site
map
5ตลาคม 2554 ตรวจสอบความละเอยดคร งสดทายกอนเตรยมต วข นสอบ
15 พฤศจกายน2554 ตรวจสอบความคบหนาของระบบสารสนเทศออนไลน
โรงเรยนบานทาปะทายโนนตม
13 ธนวาคม 2554 ตรวจสอบความคบหนาของระบบสารสนเทศออนไลน
โรงเรยนบานทาประทายโนนตม และเพมในสวนของ
บทเรยน
17 มกราคม 2555 ตรวจสอบความคบหนาของระบบ
31 มกราคม 2555 ตรวจสอบความคบหนาของระบบ
21 กมภาพนธ2555 ตรวจบทท 4 - 5 และความคบหนาของระบบ