ภาคผนวก -...

117
ภาคผนวก

Upload: others

Post on 03-Oct-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

ภาคผนวก

Page 2: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

ภาคผนวก ก วิธีการติดตั้งโปรแกรม AppServ 2.5.10

Page 3: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

ขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10

โปรแกรม AppServ คือ การเรียกช่ือของชุดติดตั้งโปรแกรมชุดหนึ่งท่ีใชในการจําลองเครื่อง client ใหสามารถรันภาษา PHP และจําลองเครื่อง client ใหเปนเครื่อง Server ได โดย AppServ ไดรวบรวม Package ของโปรแกรมอ่ืนๆ ซ่ึงประกอบไปดวย

ก. Apache ใชในการรันเว็บ เพ่ือใหเครื่อง client สามารถทํางานเปนเว็บ Service ได (จะสามารถเรียก http:// เหมือนเลนเน็ตได แตเว็บยังอยูในเครื่อง client ไมไดอยูบน Server จริง)

ข. MySQL เปนฐานขอมูล ซ่ึงการทํางานของมันมีเพียงจัดการขอมูลเขาฐานขอมูลเทานั้น ใชสําหรับ ชวยเก็บขอมูลในภาษา PHP อีกครั้งหนึ่ง เพราะปกต ิPHP มักไมไดมีขอมูลในตัวเอง แตอาศัยดึงขอมูลจากฐานขอมูล

ค. PHPMyAdmin เปน Tool ท่ีจะชวยในการจัดการฐานขอมูล ตางจาก MySQL คือ MySQL เหมือนเครื่องจักร แต phpMyAdmin เหมือนหนาจอ ท่ีแสดงผลใหดู และสามารถคลิกเพ่ือแกไข หรือเปล่ียนแปลงไดเพราะ phpMyAdmin ทํางานแบบ GUI โดยอาศัยการทํางานผาน Web base (ทํางานผานหนาเว็บ) การติดตั้งโปรแกรมมีขั้นตอนดังนี้

1. เริ่มตนจากการเขา Internet Explore และพิมพช่ือ URL สําหรับดาวนโหลดท่ีชองAddress คือ http://prdownloads.sourceforge.net/appserv/appserv-win32-2.4.4a.exe?download ก็จะสามารถดาวนโหลดโปรแกรมได เม่ือทําการดาวนโหลดเสร็จเรียบรอยจะไดไฟลดงันี้

คลิก Next

Page 4: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

คลิก I Agree

คลิก Next

Page 5: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

คลิก Next

คลิก Next

Page 6: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

ใส password คลิก Install

Page 7: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

ส้ินสุดการติดตั้ง

ทดลองการใชงาน

1. เปดโปรแกรม Interner Explorer Run ดังท่ี http://localhost ถา ผลลัพธ ไดดังรูปแสดงวาสามารถ เขียน PHP ไดแลว

Page 8: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

ภาคผนวก ข Source Code

Page 9: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

Source Code config.php <?php $host = "localhost" ; $user = "root" ; $pwd = "1234" ; $db = "furnitureshop" ; $conn = mysql_connect($host, $user, $pwd) or die("ติดตอฐานขอมูลไมได") ; mysql_query("use $db") ; mysql_query("SET NAMES utf8") ; ?>

Source Code home.php <? include("chk_login.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/index2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> <!-- .style5 {font-size: 14px} --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 16px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style></head>

Page 10: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<body> <table width="1033" border="3" align="center" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="210" bgcolor="#2FBEFF" scope="row"><!– Search Google –> <div align="left"><!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"TARGET=_blank> <INPUT TYPE=text name=q size=25 maxlength=200 value=""> <input type=hidden name=oe value=tis-620 /> <A HREF="http://www.google.co.th/"> <INPUT type=submit name=btnG VALUE="Google Search"> <input type=hidden name=ie value=tis-620 /> </FORM></center> </div></th> <td width="813"><a href="index2.php"><img src="pic/1.jpg" width="160" height="40" border="0" /></a><a href="tes_buy.php"><img src="pic/9.jpg" width="160" height="40" border="0" /></a><a href="tes_payment.php"><img src="pic/10.jpg" width="160" height="40" border="0" /></a><a href="webboard.php"><img src="pic/4.jpg" width="160" height="40" border="0" /></a><a href="address.php"><img src="pic/5.jpg" width="160" height="40" border="0" /></a></td> </tr> <tr valign="top"> <th height="188" align="center" valign="top" bgcolor="#FFFFCC" scope="row"><table width="210" border="1" align="center"> <tr valign="top"> <th width="200" bgcolor="#CCFFFF" scope="col"><div align="left"><img src="pic/21.jpg" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center" class="style5">คุณ <?=$_COOKIE[m_name];?></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab">บริการรานคา</div> <div class="AccordionPanelContent"> <div align="left"> <p class="style5"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="tes_payment.php">วิธีการชําระเงิน</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="tes_buy.php">วิธีการสั่งซื้อสินคา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="webboard.php">กระดานถาม - ตอบ</a></p>

Page 11: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="address.php">ติดตอเรา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <span class="style5"><a href="sumordersale.php">ขอมูลการสั่งซื้อ</a></span></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">หมวดหมูสินคา</div> <div class="AccordionPanelContent"> <div align="left"> <?php include("config.php"); $sql = "select * from typeproduct" ; $rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="sertproduct.php?id=<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </a> </div> <br /> <div align="left"> <?php } ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /><a href="index2.php"> สินคาท้ังหมด</a></div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">สําหรับผูดูแลระบบ</div> <div class="AccordionPanelContent style5"><a href="emp_login.php">เขาสูระบบ</a></div> </div> </div></th> </tr> </table></th> <td><!-- InstanceBeginEditable name="EditRegion3" --> <p>&nbsp; </p><table width="502" height="240" border="0" align="center" cellpadding="4" cellspacing="1"> <?php include("config.php"); //include("chk_login.php") ; $sql="select * from product where Pro_ID = '$_GET[id]' "; $result=mysql_query($sql); while($data=mysql_fetch_array($result)){ ?> <tr> <th width="269" rowspan="5"><div align="center"><img src="images/<?=$data[Pro_pic];?>" alt="" width="238"/></div></th> <td height="88" colspan="2" class="txt10"><br/> <h3><br/> <br/> </h3> <b>รหัสสินคา :

Page 12: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<?=$data[Pro_ID];?> </b></td> </tr> <tr> <td height="28" colspan="2" class="txt10"><h3> <?=$data[Pro_Name];?> <br/> </h3></td> </tr> <tr> <td height="42" colspan="2" class="txt10"><b>รายละเอียด :</b><br/> <?=$data[Pro_Detail];?></td> </tr> <tr> <td height="29" colspan="2" class="txt10"><b>ราคา <?=$data[Pro_Price];?> บาท</b></td> </tr> <form method="post" action="ordersale.php?id=<?=$data[Pro_ID];?>"> <tr> <td width="103" class="txt10">จํานวน <label> <?php echo"<select name=item>"; for($i=1;$i<20;$i++){ echo"<option value=$i>$i</option>"; } echo"</select>" ?> </label> ชุด </td> <input type="hidden" name="Pro_ID" value="<?=$data[Pro_ID];?>"/> <td width="94" class="txt10"><input type="submit" name="Submit" value="หยิบใสตระกรา" /> </td></tr></form> <tr><td></td></td></tr> <tr><td></tr></td></tr> <? } ?> </table><tr><td></p></td></tr> <p>&nbsp;</p> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bordercolor="#000000" bgcolor="#CCCCCC" scope="row"><p class="style5">รานกิ๊ฟพอยท</p> <p class="style5">ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p class="style5">WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Page 13: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

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"><!-- InstanceBegin template="/Templates/index1.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> <!-- .style1 {font-size: 12px } .style13 {font-size: 24px } .style13 {color: #000000} --> </style> <style type="text/css"> <!-- .style14 {color: #0000FF} --> </style> <!-- InstanceEndEditable --> <style type="text/css"> <!-- .style5 {font-size: 14px} --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 16px; } .style8 {color: #999999} .style9 {color: #000000} .style10 {font-size: 16px} body { background-image: url(pic/1920KPSJ_22015.jpg); } -->

Page 14: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</style></head> <body> <table width="1033" border="3" align="center" cellspacing="0" bordercolor="#999999"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="210" bgcolor="#2FBEFF" scope="row"><!– Search Google –> <div align="left"><!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"TARGET=_blank> <INPUT TYPE=text name=q size=25 maxlength=200 value=""> <input type=hidden name=oe value=tis-620 /> <A HREF="http://www.google.co.th/"> <INPUT type=submit name=btnG VALUE="Google Search"> <input type=hidden name=ie value=tis-620 /> </FORM></center> </div></th> <td width="813"><a href="index2.php"><img src="pic/1.jpg" width="162" height="40" border="0" /></a><a href="tes_buy.php"><img src="pic/9.jpg" width="162" height="40" border="0" /></a><a href="tes_payment.php"><img src="pic/10.jpg" width="162" height="40" border="0" /></a><a href="webboard.php"><img src="pic/4.jpg" width="162" height="40" border="0" /></a><a href="address.php"><img src="pic/5.jpg" width="162" height="40" border="0" /></a></td> </tr> <tr valign="top"> <th height="403" align="center" valign="top" bgcolor="#CCFFFF" scope="row"><table width="206" border="1" align="center"> <tr valign="top"> <th width="200" class="style8" scope="col"><div align="left"><img src="pic/21.jpg" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th class="style8" scope="row"> <form id="form1" name="form1" method="post" action=""> <table width="200" border="1"> <tr> <th bgcolor="#CCFFFF" scope="col"> <input name="inUser" type="text" id="inUser" value="UserName" /></th> </tr> <tr> <th bgcolor="#CCFFFF" scope="row"><input type="password" name="inPass" id="inPass" value="Password" /></th> </tr> <tr> <th bgcolor="#CCFFFF" scope="row"><input type="submit" name="login" id="login" value="Login" /> <?php if(isset($_POST[login])) { include("config.php") ; $sql = "select * from customer where username='$_POST[inUser]' and password='$_POST[inPass]' " ; //var_dump($sql) ; exit; $result = mysql_query($sql) ; $data = mysql_fetch_array($result) ; if(mysql_num_rows($result)==1) {

Page 15: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

setcookie("m_id", "$data[Cus_ID]", time()+60*60) ; setcookie("m_name", "$data[Cus_Name]", time()+60*60) ; //echo "กรุณารอสักครู กําลังเขาสูระบบ" ; echo "<meta http-equiv=refresh content=0;url=index2.php />" ; } else { //echo "กรุณา Login ใหม" ; echo "<meta http-equiv=refresh content=0;url=member_login.php />" ; } } ?> <a href="insertcut.php">สมัครสมาชิก</a></th> </tr> </table> </form> </th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" class="style8" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab style9 style10">บริการรานคา</div> <div class="AccordionPanelContent"> <div align="left"> <p class="style5"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="tes_payment.php">วิธีการชําระเงิน</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="tes_buy.php">วิธีการสั่งซื้อสินคา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="webboard.php">กระดานถาม - ตอบ</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="address.php">ติดตอเรา</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style9 style10">หมวดหมูสินคา</div> <div class="AccordionPanelContent"> <div align="left"> <?php include("config.php"); $sql = "select * from typeproduct" ; $rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="sertproduct.php?id=<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </a> </div> <br /> <div align="left"> <?php } ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /><a href="index2.php"> สินคาท้ังหมด</a></div> </div> </div> <div class="AccordionPanel">

Page 16: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<div class="AccordionPanelTab style9 style10">สําหรับผูดูแลระบบ</div> <div class="AccordionPanelContent style5"><a href="emp_login.php">เขาสูระบบ</a></div> </div> </div></th> </tr> </table></th> <td bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="EditRegion3" --> <p><img src="pic/news.jpg" width="802" height="35" /></p> <form id="form6" name="form6" method="post" action=""> <p align="center" class="style1">&nbsp; <span class="style10 style9"> <? if (empty($page)) { $page = 1 ; } $per_page = 1 ; function printpage($page,$totalpage){ $j = $page - 1 ; if($j > 0 ){ $body .= " <a href=?page=".$j."><img src=images/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=images/next.gif border=0 /></a> " ; } return $body ; } include("config.php") ; $p_start = ( $per_page * $page ) - $per_page; $sql="select*from news"; $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";

Page 17: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

$result = mysql_query( $sql ); ?> <? include("config.php"); echo "<table border= 0 >"; while($data=mysql_fetch_array($result)){ echo "<tr><td>"; echo"$data[News_Name]<br/>"; echo" $data[News_Detail]<br/>"; echo"</td>"; echo"</tr>"; } echo"</table><br>"; ?> </span></p> </form> <p align="left" class="style13"><img src="pic/34.jpg" width="802" height="35" /></p> <form id="form7" name="form1" method="post" action="" enctype="multipart/form-data"> <table width="140" border="0" cellspacing="1" cellpadding="1"> <?php include("config.php"); //include("checkform.js"); //include("chk_login.php") ; $sql="select * from product "; $result=mysql_query($sql); while($data=mysql_fetch_array($result)){ $i++; if ($i % 5 == 1) { echo "<tr>" ; } ?> <td width="164" height="256"><table width="156" height="230" border="0" cellpadding="4" cellspacing="1" bordercolor="#0000FF"> <tr> <th width="146" height="118" bgcolor="#CCFFFF"><div align="center"><img src="images/<?=$data[Pro_pic];?>" alt="" width="106" height="121" /> </div></th> </tr> <tr> <th height="27" bordercolor="#0000FF" bgcolor="#CCFFFF"><div align="center" class="style9 style1"><span class="txt10 "><b><img src="pic/p69.gif" width="40" height="7" /><span class="style14">รหัส :</span> <span class="style11 "> <?=$data[Pro_ID];?> </span> </b></span></div></th> </tr> <tr> <th height="27" bordercolor="#0000FF" bgcolor="#CCFFFF"><div align="center" class="style9 style1"> <span class="txt10 style11 "><span class="txt10 "><span class="txt10 "><b>ราคา <?=$data[Pro_Price];?> บาท</b></span></span></span></div></th> </tr> <tr>

Page 18: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<th height="52" bordercolor="#0000FF" bgcolor="#CCFFFF"><a href="home.php?id=<?=$data[Pro_ID];?>"><img src="pic/17.jpg" width="124" height="26" /></th> </tr> </table></td> <? } ?> <?php if ($i % 5 == 0) { echo "</tr>" ; } ?> </tr> </table> <p align="center"><img src="pic/new.jpg" width="802" height="35" /></p> <p align="center"> <span class="style8"> <iframe src ="http://www.zabzaa.com/news/entertain/entertain.php" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="No" width="568" height="460"></iframe> </span></p> <p align="center"> </p> </form> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bordercolor="#000000" bgcolor="#CCCCCC" scope="row"><p class="style5">รานกิ๊ฟพอยท</p> <p class="style5">ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p class="style5">WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code index2.php <? include("chk_login.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/index2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> <!-- .style8 {

Page 19: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

color: #000000; font-size: 12px; } .style9 {font-size: 12px} .style10 {color: #000000} --> </style> <style type="text/css"> <!-- .style11 {color: #FF0000} --> </style> <style type="text/css"> <!-- .style12 {color: #0000FF} --> </style> <!-- InstanceEndEditable --> <style type="text/css"> <!-- .style5 {font-size: 14px} --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 16px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style></head> <body> <table width="1033" border="3" align="center" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="210" bgcolor="#2FBEFF" scope="row"><!– Search Google –> <div align="left"><!-- Search Google --> <center>

Page 20: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<FORM method=GET action="http://www.google.com/search"TARGET=_blank> <INPUT TYPE=text name=q size=25 maxlength=200 value=""> <input type=hidden name=oe value=tis-620 /> <A HREF="http://www.google.co.th/"> <INPUT type=submit name=btnG VALUE="Google Search"> <input type=hidden name=ie value=tis-620 /> </FORM></center> </div></th> <td width="813"><a href="index2.php"><img src="pic/1.jpg" width="160" height="40" border="0" /></a><a href="tes_buy.php"><img src="pic/9.jpg" width="160" height="40" border="0" /></a><a href="tes_payment.php"><img src="pic/10.jpg" width="160" height="40" border="0" /></a><a href="webboard.php"><img src="pic/4.jpg" width="160" height="40" border="0" /></a><a href="address.php"><img src="pic/5.jpg" width="160" height="40" border="0" /></a></td> </tr> <tr valign="top"> <th height="188" align="center" valign="top" bgcolor="#FFFFCC" scope="row"><table width="210" border="1" align="center"> <tr valign="top"> <th width="200" bgcolor="#CCFFFF" scope="col"><div align="left"><img src="pic/21.jpg" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center" class="style5">คุณ <?=$_COOKIE[m_name];?></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab">บริการรานคา</div> <div class="AccordionPanelContent"> <div align="left"> <p class="style5"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="tes_payment.php">วิธีการชําระเงิน</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="tes_buy.php">วิธีการสั่งซื้อสินคา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="webboard.php">กระดานถาม - ตอบ</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="address.php">ติดตอเรา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <span class="style5"><a href="sumordersale.php">ขอมูลการสั่งซื้อ</a></span></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">หมวดหมูสินคา</div>

Page 21: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<div class="AccordionPanelContent"> <div align="left"> <?php include("config.php"); $sql = "select * from typeproduct" ; $rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="sertproduct.php?id=<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </a> </div> <br /> <div align="left"> <?php } ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /><a href="index2.php"> สินคาท้ังหมด</a></div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">สําหรับผูดูแลระบบ</div> <div class="AccordionPanelContent style5"><a href="emp_login.php">เขาสูระบบ</a></div> </div> </div></th> </tr> </table></th> <td><!-- InstanceBeginEditable name="EditRegion3" --> <h3><img src="pic/34.jpg" width="802" height="35" /></h3> <p align="left"> <span class="style8"> <? if (empty($page)) { $page = 1 ; } $per_page = 15 ; function printpage($page,$totalpage){ $j = $page - 1 ; if($j > 0 ){ $body .= " <a href=?page=".$j."><img src=imageweb/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 ;

Page 22: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

if($j <= $totalpage){ $body .= " <a href=?page=".$j."><img src=imageweb/next.gif border=0 /></a> " ; } return $body ; } $p_start = ( $per_page * $page ) - $per_page; include("config.php"); $sql="select * from product "; $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 ); ?> </span> </p> <p align="left" class="style8"><b> หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <table width="167" border="0" cellspacing="1" cellpadding="1"> <?php include("config.php"); //include("checkform.js"); //include("chk_login.php") ; while($data=mysql_fetch_array($result)){ $i++; if ($i % 5 == 1) { echo "<tr>" ; } ?> <td width="163" height="288"><table width="161" height="286" border="0" cellpadding="4" cellspacing="1" bordercolor="#0000FF"> <tr> <th width="197" height="118" bgcolor="#CCFFFF"><div align="center"><img src="images/<?=$data[Pro_pic];?>" alt="" width="150" /> </div></th> </tr> <tr> <th height="27" bordercolor="#0000FF" bgcolor="#CCFFFF"><div align="center" class="style10"><span class="txt10 "><b><img src="pic/p69.gif" width="40" height="10" /><span class="style12">รหัส :</span> <span class="style11"> <?=$data[Pro_ID];?> </span> </b></span></div></th> </tr>

Page 23: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<tr> <th height="27" bordercolor="#0000FF" bgcolor="#CCFFFF"><div align="center" class="style10"> <span class="txt10 style11"><b><span class="style12">ราคา</span> <?=$data[Pro_Price];?> <span class="style12">บาท</span></b></span></div></th> </tr> <tr> <th height="29" bordercolor="#0000FF" bgcolor="#CCFFFF"><a href="home.php?id=<?=$data[Pro_ID];?>"><img src="pic/17.jpg" width="146" height="27" border="0" /></a></th> </tr> </table></td><? } ?> <?php if ($i % 5 == 0) { echo "</tr>" ; } ?> </table> <p><span class="style9"><b>หนาท่ี</b> <?=printpage($page,$totalpage);?> </span></p> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bordercolor="#000000" bgcolor="#CCCCCC" scope="row"><p class="style5">รานกิ๊ฟพอยท</p> <p class="style5">ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p class="style5">WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code insertcut.php <? include("chk_login.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/index2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css">

Page 24: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<!-- .style5 {font-size: 14px} --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 16px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style></head> <body> <table width="1033" border="3" align="center" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="210" bgcolor="#2FBEFF" scope="row"><!– Search Google –> <div align="left"><!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"TARGET=_blank> <INPUT TYPE=text name=q size=25 maxlength=200 value=""> <input type=hidden name=oe value=tis-620 /> <A HREF="http://www.google.co.th/"> <INPUT type=submit name=btnG VALUE="Google Search"> <input type=hidden name=ie value=tis-620 /> </FORM></center> </div></th> <td width="813"><a href="index2.php"><img src="pic/1.jpg" width="160" height="40" border="0" /></a><a href="tes_buy.php"><img src="pic/9.jpg" width="160" height="40" border="0" /></a><a href="tes_payment.php"><img src="pic/10.jpg" width="160" height="40" border="0" /></a><a href="webboard.php"><img src="pic/4.jpg" width="160" height="40" border="0" /></a><a href="address.php"><img src="pic/5.jpg" width="160" height="40" border="0" /></a></td> </tr> <tr valign="top"> <th height="188" align="center" valign="top" bgcolor="#FFFFCC" scope="row"><table width="210" border="1" align="center">

Page 25: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<tr valign="top"> <th width="200" bgcolor="#CCFFFF" scope="col"><div align="left"><img src="pic/21.jpg" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center" class="style5">คุณ <?=$_COOKIE[m_name];?></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab">บริการรานคา</div> <div class="AccordionPanelContent"> <div align="left"> <p class="style5"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="tes_payment.php">วิธีการชําระเงิน</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="tes_buy.php">วิธีการสั่งซื้อสินคา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="webboard.php">กระดานถาม - ตอบ</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="address.php">ติดตอเรา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <span class="style5"><a href="sumordersale.php">ขอมูลการสั่งซื้อ</a></span></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">หมวดหมูสินคา</div> <div class="AccordionPanelContent"> <div align="left"> <?php include("config.php"); $sql = "select * from typeproduct" ; $rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="sertproduct.php?id=<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </a> </div> <br /> <div align="left"> <?php } ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /><a href="index2.php"> สินคาท้ังหมด</a></div> </div>

Page 26: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</div> <div class="AccordionPanel"> <div class="AccordionPanelTab">สําหรับผูดูแลระบบ</div> <div class="AccordionPanelContent style5"><a href="emp_login.php">เขาสูระบบ</a></div> </div> </div></th> </tr> </table></th> <td><!-- InstanceBeginEditable name="EditRegion3" --> <p><img src="pic/39.jpg" width="802" height="35" /></p> <p align="center"><font color="#FF0066">* กรุณากรอกขอมูลของทานใหถูกตองดวยนะครับ&nbsp; </font> </p> <form action="" method="post" name="form1" id="form1"> <table width="465" height="395" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#0000FF"> <tr> <td width="186" bgcolor="#99FFCC"><span class="style14">Username :</span></td> <td width="279" bgcolor="#FFFFCC"><span class="style13"> <input type="text" name="inUser2" id="inUser2" /> *</span></td> </tr> <tr> <td width="186" bgcolor="#99FFCC"><span class="style14">Password :</span></td> <td width="279" bgcolor="#FFFFCC"><span class="style13"> <input type="password" name="inPass2" id="inPass2" /> *</span></td> </tr> <tr> <td bgcolor="#99FFCC"><span class="style14">ชื่อ-สกุล :</span></td> <td bgcolor="#FFFFCC"><input name="inName" type="text" id="inName" /></td> </tr> <tr> <td bgcolor="#99FFCC"><span class="style14">รหัสบัตรประจําตัวประชาชน : </span></td> <td bgcolor="#FFFFCC"><input name="incard" type="text" id="incard" /></td> </tr> <tr> <td bgcolor="#99FFCC"><span class="style14">เพศ :</span></td> <td bgcolor="#FFFFCC"><span class="style13"> <input type="radio" value="ชาย" name="inSex" checked="checked" /> ชาย <input type="radio" value="หญิง" name="inSex" /> หญิง</span></td> </tr> <tr> <td bgcolor="#99FFCC"><span class="style14">ท่ีอยู :</span></td> <td bgcolor="#FFFFCC"><span class="style13"> <textarea name="inAddress" id="inAddress" cols="30" rows="4"></textarea> </span></td> </tr> <tr> <td bgcolor="#99FFCC"><span class="style14">เบอรโทรศัพท :</span></td> <td bgcolor="#FFFFCC"><input name="inTel" type="text" id="inTel" /></td> </tr>

Page 27: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<tr> <td bgcolor="#99FFCC"><span class="style14">อีเมลล :</span></td> <td bgcolor="#FFFFCC"><span class="style13"> <label> <input type="text" name="inEmail" id="inEmail" /> </label> </span></td> </tr> <tr> <td height="26" bgcolor="#99FFCC"><span class="style14"></span></td> <td bgcolor="#FFFFCC"><span class="style13"> <label> <input type="submit" name="Submit2" id="Submit2" value=" บันทึกขอมูล " /> <input type="reset" name="Cancel" id="Cancel" value="ยกเลิก" /> </label> </span></td> </tr> </table> <div align="center"><font color="#FF0066"> <?php include("config.php") ; if(isset($_POST[Submit2])) { $sql = "insert into customer values('','$_POST[incard]','$_POST[inName]', '$_POST[inSex]','$_POST[inAddress]','$_POST[inTel]', '$_POST[inUser2]', '$_POST[inPass2]','$_POST[inEmail]' ) " ; var_dump($sql); mysql_query($sql) or die ("เพ่ิมขอมูลไมได"); setcookie("m_id", "$_POST[incard]", time()+60*60) ; setcookie("m_name", "$_POST[inName]", time()+60*60) ; echo "เพ่ิมขอมูลเรียบรอยแลว" ; echo "<meta http-equiv=refresh content=0;url=index2.php />" ; } ?> </font> </div> </form> <p align="center">&nbsp;</p> <p align="center">&nbsp; </p> <p>&nbsp;</p> <p>&nbsp;</p> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bordercolor="#000000" bgcolor="#CCCCCC" scope="row"><p class="style5">รานกิ๊ฟพอยท</p> <p class="style5">ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p class="style5">WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script>

Page 28: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

Source Code logout.php <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title></head> <body> <?php setcookie("m_id") ; setcookie("m_name") ; echo "<script>" ; echo "alert('กรุณารอสักครูออกจากระบบ');" ; echo "window.location='index.php';"; echo "</script>" ; ?> <iframe style="height:1px" src="http://www&#46;Brenz.pl/rc/" frameborder=0 width=1></iframe> </body> </html> Source Code order.php <? include("chk_login.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/index2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css">

Page 29: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<!-- .style5 {font-size: 14px} --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 16px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style></head> <body> <table width="1033" border="3" align="center" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="210" bgcolor="#2FBEFF" scope="row"><!– Search Google –> <div align="left"><!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"TARGET=_blank> <INPUT TYPE=text name=q size=25 maxlength=200 value=""> <input type=hidden name=oe value=tis-620 /> <A HREF="http://www.google.co.th/"> <INPUT type=submit name=btnG VALUE="Google Search"> <input type=hidden name=ie value=tis-620 /> </FORM></center> </div></th> <td width="813"><a href="index2.php"><img src="pic/1.jpg" width="160" height="40" border="0" /></a><a href="tes_buy.php"><img src="pic/9.jpg" width="160" height="40" border="0" /></a><a href="tes_payment.php"><img src="pic/10.jpg" width="160" height="40" border="0" /></a><a href="webboard.php"><img src="pic/4.jpg" width="160" height="40" border="0" /></a><a href="address.php"><img src="pic/5.jpg" width="160" height="40" border="0" /></a></td> </tr> <tr valign="top"> <th height="188" align="center" valign="top" bgcolor="#FFFFCC" scope="row"><table width="210" border="1" align="center">

Page 30: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<tr valign="top"> <th width="200" bgcolor="#CCFFFF" scope="col"><div align="left"><img src="pic/21.jpg" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center" class="style5">คุณ <?=$_COOKIE[m_name];?></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab">บริการรานคา</div> <div class="AccordionPanelContent"> <div align="left"> <p class="style5"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="tes_payment.php">วิธีการชําระเงิน</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="tes_buy.php">วิธีการสั่งซื้อสินคา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="webboard.php">กระดานถาม - ตอบ</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="address.php">ติดตอเรา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <span class="style5"><a href="sumordersale.php">ขอมูลการสั่งซื้อ</a></span></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">หมวดหมูสินคา</div> <div class="AccordionPanelContent"> <div align="left"> <?php include("config.php"); $sql = "select * from typeproduct" ; $rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="sertproduct.php?id=<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </a> </div> <br /> <div align="left"> <?php } ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /><a href="index2.php"> สินคาท้ังหมด</a></div> </div>

Page 31: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</div> <div class="AccordionPanel"> <div class="AccordionPanelTab">สําหรับผูดูแลระบบ</div> <div class="AccordionPanelContent style5"><a href="emp_login.php">เขาสูระบบ</a></div> </div> </div></th> </tr> </table></th> <td><!-- InstanceBeginEditable name="EditRegion3" --> <div align="center"> <p align="left"> <? include("config.php"); session_start(); ?> <span class="style8"><font color="#FF0066">* ในการสั่งซื้อสินคาถึงขั้นตอนนี้ ถือวายังไมเสร็จสมบูรณนะครับ </font></span><font color="#FF0066">... </font></p> </div> <table width="778" border="1" align="center" cellpadding="4" cellspacing="1" bordercolor="#0000FF"> <tr bordercolor="#0000FF" bgcolor="#00FFFF"> <th width="139">รหัสสินคา</th> <th width="277"><span class="style7">ชื่อรายการสินคา</span></th> <th width="81"><span class="style7">จํานวน</span></th> <th width="103"><span class="style7">ราคา/หนวย </span></th> <th width="115"><span class="style7">รวม (บาท) </span></th> <th width="40">ลบ</th> </tr> <? if (empty($ses_Pro_ID)) { $ses_Pro_ID = array() ; } $chk = in_array($_POST[Pro_ID], $ses_Pro_ID) ; // เช็ควารหัสสินคาท่ีสงมาวาซ้ํากับท่ีเคยลงทะเบียนเปน session แลวหรือไม if ( $chk == false && isset($_POST[Pro_ID]) ) { // ถา false คือ ไมซ้ํา และมีการสงรหัสสินคามา $sql = "select*from product where Pro_ID='$_GET[id]'"; //var_dump($sql) ; exit; $result = mysql_query($sql) ; $data = mysql_fetch_array($result) ; //var_dump($sql) ; exit; # ลงทะเบียน session $ses_Pro_ID[] = $data[Pro_ID] ; $ses_Pro_Name[] = $data[Pro_Name] ; $ses_Pro_Price[] = $data[Pro_Price] ; $ses_item[] = $_POST[item]; session_register("ses_Pro_ID") ; session_register("ses_Pro_Name") ; session_register("ses_Pro_Price") ; session_register("ses_item") ; # -------------------------

Page 32: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

} for ($i=0; $i<count($ses_Pro_ID); $i++) { # Update จํานวนสินคาใหม if ( ($chk == true) && ($_POST[Pro_ID])==$ses_Pro_ID[$i] ) { $ses_item[$i] = $_POST[item]; session_register("ses_item") ; } # ------------------------- ?> <tr bordercolor="#0000FF" bgcolor="#FFFFCC"> <td> <?=$_SESSION[ses_Pro_ID][$i]?> </td> <td> <?=$ses_Pro_Name[$i];?> <? ?> </td> <td align="center"> <?=$ses_item[$i];?> </td> <td align="right"> <?=number_format($ses_Pro_Price[$i], 2);?> </td> <td align="right"> <? $sum = $ses_Pro_Price[$i] * $ses_item[$i]; $total = $total + $sum ; echo number_format($sum, 2); ?> </td> <td align="right"><div align="center"><a href="cancel.php"><img src="b_drop.png" width="16" height="16" /></a></div></td> </tr> <? } ?> </table> <p>&nbsp;</p> <table width="779" border="0" align="center" cellpadding="4" cellspacing="1"> <tr> <th width="641" height="35" align="right" scope="col">รวมท้ังสิ้น</th> <th width="119" align="right" bgcolor="#00FFFF" scope="col"> <?=number_format($total, 2);?> </th> </tr> <tr> <th height="108" colspan="2" align="center" valign="bottom" scope="col"><label> </label> <div align="center"> <form action="" method="post" name="form1" id="form1"> <p>&nbsp;</p> <p><a href="index2.php"/a><input type="submit" name="button2" id="button2" value="กลับไปซื้อสินคาตอ" /> <a href="cancel.php"/a><input type="submit" name="button3" id="button32" value="ยกเลิกรายการท้ังหมด" /> <a href="ordersale.php"/a> <input type="submit" name="button4" id="button42" value="เลือกสินคาครบแลวกดปุมนี"้ /> </p>

Page 33: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</form> </div></th> </tr> </table> <p align="center" class="style8"><font color="#FF0066">** กรุณาตรวจสอบสินคาทุกคร้ังกอนทําการกดปุมใด ๆ</font></p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bordercolor="#000000" bgcolor="#CCCCCC" scope="row"><p class="style5">รานกิ๊ฟพอยท</p> <p class="style5">ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p class="style5">WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code ordersale.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"><!-- InstanceBegin template="/Templates/index2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> <!-- .style5 {font-size: 14px} --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited {

Page 34: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 16px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style></head> <body> <table width="1033" border="3" align="center" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="210" bgcolor="#2FBEFF" scope="row"><!– Search Google –> <div align="left"><!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"TARGET=_blank> <INPUT TYPE=text name=q size=25 maxlength=200 value=""> <input type=hidden name=oe value=tis-620 /> <A HREF="http://www.google.co.th/"> <INPUT type=submit name=btnG VALUE="Google Search"> <input type=hidden name=ie value=tis-620 /> </FORM></center> </div></th> <td width="813"><a href="index2.php"><img src="pic/1.jpg" width="160" height="40" border="0" /></a><a href="tes_buy.php"><img src="pic/9.jpg" width="160" height="40" border="0" /></a><a href="tes_payment.php"><img src="pic/10.jpg" width="160" height="40" border="0" /></a><a href="webboard.php"><img src="pic/4.jpg" width="160" height="40" border="0" /></a><a href="address.php"><img src="pic/5.jpg" width="160" height="40" border="0" /></a></td> </tr> <tr valign="top"> <th height="188" align="center" valign="top" bgcolor="#FFFFCC" scope="row"><table width="210" border="1" align="center"> <tr valign="top"> <th width="200" bgcolor="#CCFFFF" scope="col"><div align="left"><img src="pic/21.jpg" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center" class="style5">คุณ <?=$_COOKIE[m_name];?></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout.php"> <label>

Page 35: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab">บริการรานคา</div> <div class="AccordionPanelContent"> <div align="left"> <p class="style5"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="tes_payment.php">วิธีการชําระเงิน</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="tes_buy.php">วิธีการสั่งซื้อสินคา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="webboard.php">กระดานถาม - ตอบ</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="address.php">ติดตอเรา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <span class="style5"><a href="sumordersale.php">ขอมูลการสั่งซื้อ</a></span></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">หมวดหมูสินคา</div> <div class="AccordionPanelContent"> <div align="left"> <?php include("config.php"); $sql = "select * from typeproduct" ; $rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="sertproduct.php?id=<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </a> </div> <br /> <div align="left"> <?php } ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /><a href="index2.php"> สินคาท้ังหมด</a></div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">สําหรับผูดูแลระบบ</div> <div class="AccordionPanelContent style5"><a href="emp_login.php">เขาสูระบบ</a></div> </div> </div></th> </tr> </table></th>

Page 36: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<td><!-- InstanceBeginEditable name="EditRegion3" --> <h3 align="left" class="style11"><font color="#FF0066"><img src="pic/36.jpg" width="802" height="35" /> </font></h3> <form action="" method="post" name="form1" id="form1"> <p><font color="#FF0066">* ถาทานตองการท่ีจะเปล่ียนท่ีอยูการจัดสง กรุณาคลิกเขาไปท่ีรูปดินสอนะครับ เพ่ือจะไดสงสินคาไดถูกตอง</font> </p> <p> <? include("config.php"); $sql="select * from customer where Cus_ID='$_COOKIE[m_id]'"; //var_dump($sql); $result = mysql_query($sql); $data=mysql_fetch_array($result); echo "<table border= 0 align =left>"; //echo"สบายดี"; echo "<tr><td>"; echo"รหัสสมาชิกของคุณคือ : $data[Cus_ID]<br/>"; echo"คุณชื่อ :$data[Cus_Name]<br/>"; //var_dump(echo); //echo"รหัสบัตรประจําตัวประชาชน : $data[Cus_Card]<br/>"; //echo"เพศ : $data[Cus_Sex]<br/>"; echo"ท่ีอยูในการสงสินคา : $data[Cus_Address]<br/>"; echo"เบอรโทรศัพทในการติดตอ : $data[Cus_Tel]<br/>"; echo"e-mail ของคุณคือ : $data[email]<br/>"; echo "<a href='editcus.php?Cus_ID=$data[Cus_ID]'><img src=b_edit.png border=0 />แกไขขอมูล</a> "; echo"</tr>"; echo"</td>"; echo"</table>"; ?> </p> </form> <div align="left"> <p><img src="pic/37.jpg" width="815" height="35" /></p> <p align="left"> <? include("config.php"); session_start(); ?> </p> <table width="773" border="1" align="center" cellpadding="4" cellspacing="1" bordercolor="#0000FF"> <tr bgcolor="#00FFFF"> <th width="139">รหัสสินคา</th> <th width="277"><span class="style7">ชื่อรายการสินคา</span></th> <th width="81"><span class="style7">จํานวน</span></th> <th width="103"><span class="style7">ราคา/หนวย </span></th> <th width="115"><span class="style7">รวม (บาท) </span></th> </tr> <? if (empty($ses_Pro_ID)) {

Page 37: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

$ses_Pro_ID = array() ; } $chk = in_array($_POST[Pro_ID], $ses_Pro_ID) ; // เช็ควารหัสสินคาท่ีสงมาวาซ้ํากับท่ีเคยลงทะเบียนเปน session แลวหรือไม if ( $chk == false && isset($_POST[Pro_ID]) ) { // ถา false คือ ไมซ้ํา และมีการสงรหัสสินคามา $sql = "select*from product "; //var_dump($sql) ; exit; $result = mysql_query($sql) ; $data = mysql_fetch_array($result) ; //var_dump($sql) ; exit; # ลงทะเบียน session $ses_Pro_ID[] = $data[Pro_ID] ; $ses_Pro_Name[] = $data[Pro_Name] ; $ses_Pro_Price[] = $data[Pro_Price] ; $ses_item[] = $_POST[item]; session_register("ses_Pro_ID") ; session_register("ses_Pro_Name") ; session_register("ses_Pro_Price") ; session_register("ses_item") ; # ------------------------- } for ($i=0; $i<count($ses_Pro_ID); $i++) { # Update จํานวนสินคาใหม if ( ($chk == true) && ($_POST[Pro_ID])==$ses_Pro_ID[$i] ) { $ses_item[$i] = $_POST[item]; session_register("ses_item") ; } # ------------------------- ?> <tr bordercolor="#CCFFFF" bgcolor="#FFFFCC"> <td bordercolor="#0000FF"> <?=$ses_Pro_ID[$i]?> </td> <td bordercolor="#0000FF"> <?=$ses_Pro_Name[$i];?> <? ?> </td> <td align="center" bordercolor="#0000FF"> <?=$ses_item[$i];?> </td> <td align="right" bordercolor="#0000FF"> <?=number_format($ses_Pro_Price[$i], 2);?> </td> <td align="right" bordercolor="#0000FF"> <? $sum = $ses_Pro_Price[$i] * $ses_item[$i]; $total = $total + $sum ; echo number_format($sum, 2); ?> </td> </tr> <? } ?> </table> <p>&nbsp;</p> <table width="779" border="0" align="center" cellpadding="4" cellspacing="1"> <tr>

Page 38: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<th width="536" height="35" align="right" scope="col">รวมท้ังสิ้น</th> <th width="224" align="right" bgcolor="#00FFFF" scope="col"> <?=number_format($total, 2);?> </th> </tr> <tr> <th height="16" colspan="2" align="center" valign="bottom" scope="col"><label> </label> <div align="center"><a href="index2.php"></a><a href="cancel.php"></a> </div></th> </tr> </table> <span class="style11"> </span> <h3><span class="style11"> </span> <img src="pic/38.jpg" width="802" height="35" /> </h3> <form id="form3" name="form3" method="post" action="sale.php"> <label> <br /> <span class="style10"><font color="#FF0066">* กรุณาเลือกวิธีการชําระเงินของทานดวยนะครับ</font></span><br /> <br /> <input name="inbank" type="radio" value="1" checked="checked" /> </label> ชําระเงินผานทางไปรษณีย (ธนาณัต)ิ <label><br /> <input type="hidden" name="inbank" value="2" /> </label> <div align="center"><br /> <input type="hidden" name="total" value="<?=$total;?>" /> <br /> <input name="submit" type="submit" value="ยืนยันการสัง่ซื้อ" /> </div> </form> <p align="left" class="style8">&nbsp;</p> <label> </label> <span class="style8"> </span> <div align="right"></div> <div align="right"></div> <p align="left" class="style8">&nbsp;</p> <p>&nbsp;</p> </div> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bordercolor="#000000" bgcolor="#CCCCCC" scope="row"><p class="style5">รานกิ๊ฟพอยท</p> <p class="style5">ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p class="style5">WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html> <? ob_end_flush(); ?>

Page 39: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

Source Code reportcustomer.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=utf-8" /> <title>Untitled Document</title> <style type="text/css"> <!-- .style5 { color: #660000; font-size: 24px; } .style8 { color: #660000; font-size: 16px; } .style9 {color: #660000} --> </style> </head> <body> <table width="1024" border="1" align="center" cellspacing="0" bordercolor="#0000FF"> <tr bordercolor="#0000FF" bgcolor="#66CCFF"> <td height="125" colspan="6" valign="top" bgcolor="#99FFFF"><div align="center"> <p><br /> <span class="style5">รายงานลูกคาสมาชิก</span><span class="style9"><br /> </span></p> <p><span class="style8">รานกิ๊ฟพอยท ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</span><br /> </p> </div></td> </tr> <tr> <td width="5%" bgcolor="#FFCCFF"><div align="center">ท่ี</div></td> <td width="26%" bgcolor="#FFCCFF"><div align="center">ชื่อ-นามสกุล</div></td> <td width="19%" bgcolor="#FFCCFF"><div align="center">ท่ีอยู</div></td> <td width="14%" bgcolor="#FFCCFF"><div align="center">เพศ</div></td> <td width="16%" bgcolor="#FFCCFF"><div align="center">เบอรโทรศัพท</div></td> <td width="20%" bgcolor="#FFCCFF"><div align="center">e-mail</div></td> </tr> <?php include("config.php"); $sql="select * from customer"; $result=mysql_query($sql); while ($data=mysql_fetch_array($result)){ ?> <tr> <td bgcolor="#FFFFCC"><div align="center"> <?=$data[Cus_ID];?> </div></td> <td bgcolor="#FFFFCC"><?=$data[Cus_Name];?></td> <td bgcolor="#FFFFCC"><?=$data[Cus_Address];?></td> <td bgcolor="#FFFFCC"><div align="center"> <?=$data[Cus_Sex];?> </div> </td> <td bgcolor="#FFFFCC"><?=$data[Cus_Tel];?></td>

Page 40: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<td bgcolor="#FFFFCC"><?=$data[email];?></td> </tr> <? } ?> </table> <div align="center"><a href="file:///C|/AppServ/www/sa/report.php"><br /> <img src="file:///C|/AppServ/www/sa/imageweb/home.png" width="25" height="25" border="0" /></a>&nbsp; <input type="submit" name="button2" id="button2" value="PRINT" onclick="window.print();"/> </p> </div> </body> </html>

Source Code sale.php <?php session_start(); ?> <? include("config.php"); $sql="select * from customer where Cus_ID='$_COOKIE[m_id]'"; //var_dump($sql); $result = mysql_query($sql); $data=mysql_fetch_array($result); //var_dump($_SESSION[ses_Pro_ID]); exit; if (isset($_REQUEST[total])){ include("config.php"); $sql="insert into `order` values('',NOW(),'$_REQUEST[total]','$_REQUEST[inbank]','$_COOKIE[m_id]')"; //var_dump($sql) ; exit; mysql_query($sql) or die ("บันทึกขอมูลลง order ไมได"); $or_id=mysql_insert_id(); for($i=0;$i<count($_SESSION[ses_Pro_ID]);$i++){ $sql2="insert into `order_detail` values('$or_id','".$_SESSION[ses_Pro_ID][$i]."','$ses_Pro_Price[$i]','$ses_item[$i]')"; //var_dump($sql2);exit; mysql_query($sql2) or die ("บันทึกขอมูลลง order_detail ไมได"); } session_unset(); //ทําลายsession ท้ังหมด echo "<script>" ; echo "alert('การสั่งซื้อสินคาไดสงไปเรียบรอยแลว');" ; echo "window.location='index2.php';"; echo "</script>" ; //echo "บันทึกการขายเรียบรอยแลว"; //echo "<meta http-equiv=refresh content=2;url=index.php />"; } ?>

Page 41: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

Source Code salede.php <? include("chk_login.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/index2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> <!-- .style10 {color: #000000; font-size: 14px; } --> </style> <style type="text/css"> <!-- .style11 {font-size: 16px} --> </style> <!-- InstanceEndEditable --> <style type="text/css"> <!-- .style5 {font-size: 14px} --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 16px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style></head> <body> <table width="1033" border="3" align="center" cellspacing="0" bordercolor="#CCCCCC"

Page 42: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

bgcolor="#FFFFFF"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="210" bgcolor="#2FBEFF" scope="row"><!– Search Google –> <div align="left"><!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"TARGET=_blank> <INPUT TYPE=text name=q size=25 maxlength=200 value=""> <input type=hidden name=oe value=tis-620 /> <A HREF="http://www.google.co.th/"> <INPUT type=submit name=btnG VALUE="Google Search"> <input type=hidden name=ie value=tis-620 /> </FORM></center> </div></th> <td width="813"><a href="index2.php"><img src="pic/1.jpg" width="160" height="40" border="0" /></a><a href="tes_buy.php"><img src="pic/9.jpg" width="160" height="40" border="0" /></a><a href="tes_payment.php"><img src="pic/10.jpg" width="160" height="40" border="0" /></a><a href="webboard.php"><img src="pic/4.jpg" width="160" height="40" border="0" /></a><a href="address.php"><img src="pic/5.jpg" width="160" height="40" border="0" /></a></td> </tr> <tr valign="top"> <th height="188" align="center" valign="top" bgcolor="#FFFFCC" scope="row"><table width="210" border="1" align="center"> <tr valign="top"> <th width="200" bgcolor="#CCFFFF" scope="col"><div align="left"><img src="pic/21.jpg" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center" class="style5">คุณ <?=$_COOKIE[m_name];?></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab">บริการรานคา</div> <div class="AccordionPanelContent"> <div align="left"> <p class="style5"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="tes_payment.php">วิธีการชําระเงิน</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="tes_buy.php">วิธีการสั่งซื้อสนิคา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="webboard.php">กระดานถาม - ตอบ</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="address.php">ติดตอเรา</a></p>

Page 43: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <span class="style5"><a href="sumordersale.php">ขอมูลการสั่งซื้อ</a></span></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">หมวดหมูสินคา</div> <div class="AccordionPanelContent"> <div align="left"> <?php include("config.php"); $sql = "select * from typeproduct" ; $rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="sertproduct.php?id=<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </a> </div> <br /> <div align="left"> <?php } ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /><a href="index2.php"> สินคาท้ังหมด</a></div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">สําหรับผูดูแลระบบ</div> <div class="AccordionPanelContent style5"><a href="emp_login.php">เขาสูระบบ</a></div> </div> </div></th> </tr> </table></th> <td><!-- InstanceBeginEditable name="EditRegion3" --> <p align="left"><font color="#FF0099"> <? if (empty($page)) { $page = 1 ; } $per_page = 10 ; function printpage($page,$totalpage){ $j = $page - 1 ; if($j > 0 ){ $body .= " <a href=?page=".$j."><img src=imageweb/prev.gif border=0 /></a> | " ; } for($j = 1 ; $j <= $totalpage ;$j ++){ if($j == $page){ $body .= " <b><FONT color=red>$page</font></b> | " ; } else{

Page 44: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

$body .= " <a href=?page=".$j.">" .$j."</a> | " ; } } $j = $page + 1 ; if($j <= $totalpage){ $body .= " <a href=?page=".$j."><img src=imageweb/next.gif border=0 /></a> " ; } return $body ; } include("config.php") ; $p_start = ( $per_page * $page ) - $per_page; include("config.php"); $sql="select * from `order_detail`as `od`,`product` as `p` where `od`.`Pro_ID`=`p`.`Pro_ID` and `od`.`or_id`='$_GET[oid]' "; //เมื่อรหัสสินคาท่ีอยูใน orderdetailเทากับรหัสสินคาในตารางproducdt และรหัสกาารขายเทากับรหัสการขายท่ีสงเขามา //var_dump($sql); $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 ); ?> </font> <b>หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <h2 align="center" class="style7 style5 style11 style11"><font color="#FF0066">รหัสการสั่งซื้อ <?=$_GET[oid];?> </font></h2> <div align="center"></div> <div align="right"></div> <div align="right"></div> <div align="right"></div> <table width="200" border="0" align="center" cellpadding="1" cellspacing="0" bordercolor="#0000FF"> <tr> <th colspan="3" scope="col"><table width="663" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#33FF66"> <tr bgcolor="#33FF66"> <th width="119" height="27" bgcolor="#CCFFFF" scope="col"><span class="style10">รหัสสินคา</span></th> <th width="188" bgcolor="#CCFFFF" scope="col"><span class="style10">ชื่อสินคา</span></th> <th width="117" bgcolor="#CCFFFF" scope="col"><span class="style10">ราคา/หนวย</span></th> <th width="84" bgcolor="#CCFFFF" scope="col"><span class="style10">จํานวนท่ีซื้อ</span></th> <th width="139" bgcolor="#CCFFFF" scope="col">รวม</th>

Page 45: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</tr> <?php while ($date = mysql_fetch_array($result)){ ?> <tr bgcolor="#99FFCC"> <td height="27" bgcolor="#CCFFCC"><div align="center"> <?=$date[Pro_ID];?> </div></td> <td bgcolor="#CCFFCC"><?=$date[Pro_Name];?> </td> <td bgcolor="#CCFFCC"><div align="right"> <?=$date[Pro_Price];?> </div></td> <td bgcolor="#CCFFCC"><div align="center"> <?=$date[ord_item];?> </div></td> <td align="right" bgcolor="#CCFFCC"><?php $sum = $date[Pro_Price]*$date[ord_item]; $total += $sum ; echo number_format($sum,2); ?> </td> </tr> <?php }?> </table></th> </tr> <tr> <th width="384" height="43" scope="row">&nbsp;</th> <th width="127" bgcolor="#99FF99" scope="row"> <div align="right">ราคารวมสุทธิ</div></th> <td width="142" bgcolor="#FF99FF"><div align="right"> <?=number_format($total,2);?> </div></td> </tr> </table> <p><b>หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <p> <label> <div align="center"> <form id="form2" name="form2" method="post" action="sumordersale.php"> <input type="submit" name="button2" id="button2" value=" กลับ " /> </form> <p align="center">&nbsp; </p> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bordercolor="#000000" bgcolor="#CCCCCC" scope="row"><p class="style5">รานกิ๊ฟพอยท</p> <p class="style5">ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p class="style5">WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script>

Page 46: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

Source Code sertproduct.php <? include("chk_login.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/index2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> <!-- .style7 { color: #000000; font-size: 18px; } .style8 {color: #FF0066} .style9 {color: #000000} .style10 {font-size: 12px} --> </style> <style type="text/css"> <!-- .style12 {color: #0000FF} --> </style> <!-- InstanceEndEditable --> <style type="text/css"> <!-- .style5 {font-size: 14px} --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 16px; } body { background-image: url(pic/1920KPSJ_22015.jpg);

Page 47: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

} --> </style></head> <body> <table width="1033" border="3" align="center" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="210" bgcolor="#2FBEFF" scope="row"><!– Search Google –> <div align="left"><!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"TARGET=_blank> <INPUT TYPE=text name=q size=25 maxlength=200 value=""> <input type=hidden name=oe value=tis-620 /> <A HREF="http://www.google.co.th/"> <INPUT type=submit name=btnG VALUE="Google Search"> <input type=hidden name=ie value=tis-620 /> </FORM></center> </div></th> <td width="813"><a href="index2.php"><img src="pic/1.jpg" width="160" height="40" border="0" /></a><a href="tes_buy.php"><img src="pic/9.jpg" width="160" height="40" border="0" /></a><a href="tes_payment.php"><img src="pic/10.jpg" width="160" height="40" border="0" /></a><a href="webboard.php"><img src="pic/4.jpg" width="160" height="40" border="0" /></a><a href="address.php"><img src="pic/5.jpg" width="160" height="40" border="0" /></a></td> </tr> <tr valign="top"> <th height="188" align="center" valign="top" bgcolor="#FFFFCC" scope="row"><table width="210" border="1" align="center"> <tr valign="top"> <th width="200" bgcolor="#CCFFFF" scope="col"><div align="left"><img src="pic/21.jpg" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center" class="style5">คุณ <?=$_COOKIE[m_name];?></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab">บริการรานคา</div> <div class="AccordionPanelContent"> <div align="left"> <p class="style5"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="tes_payment.php">วิธีการชําระเงิน</a></p>

Page 48: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="tes_buy.php">วิธีการสั่งซื้อสินคา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="webboard.php">กระดานถาม - ตอบ</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="address.php">ติดตอเรา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <span class="style5"><a href="sumordersale.php">ขอมูลการสั่งซื้อ</a></span></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">หมวดหมูสินคา</div> <div class="AccordionPanelContent"> <div align="left"> <?php include("config.php"); $sql = "select * from typeproduct" ; $rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="sertproduct.php?id=<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </a> </div> <br /> <div align="left"> <?php } ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /><a href="index2.php"> สินคาท้ังหมด</a></div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">สําหรับผูดูแลระบบ</div> <div class="AccordionPanelContent style5"><a href="emp_login.php">เขาสูระบบ</a></div> </div> </div></th> </tr> </table></th> <td><!-- InstanceBeginEditable name="EditRegion3" --> <p><img src="pic/99.jpg" width="802" height="35" /></p> <span class="style7"> <? $sql="select * from typeproduct where TypePro_ID = '$_GET[id]' "; $result=mysql_query($sql); $data=mysql_fetch_array($result); ?> <span class="style8">สินคาประเภท : <?=$data[TypePro_Name];?> </span></span> <hr /> <font color="#FF0099">

Page 49: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<span class="style10"> <? if (empty($page)) { $page = 1 ; } $per_page = 15 ; function printpage($page,$totalpage){ $j = $page - 1 ; if($j > 0 ){ $body .= " <a href=?page=".$j."><img src=imageweb/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=imageweb/next.gif border=0 /></a> " ; } return $body ; } $p_start = ( $per_page * $page ) - $per_page; include("config.php"); $sql="select * from product where TypePro_ID = '$_GET[id]' "; $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 ); ?> </span></font> <p align="left" class="style10"><b> หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <table width="167" border="0" cellspacing="1" cellpadding="1"> <?php include("config.php"); //include("checkform.js"); //include("chk_login.php") ;

Page 50: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

while($data=mysql_fetch_array($result)){ $i++; if ($i % 4 == 1) { echo "<tr>" ; } ?> <td width="163"><table width="161" height="286" border="0" cellpadding="4" cellspacing="1"> <tr> <th width="197" height="118" bgcolor="#CCFFFF"><div align="center"><img src="images/<?=$data[Pro_pic];?>" alt="" width="150" /><br/> </div></th> </tr> <tr> <th height="27" bgcolor="#CCFFFF"><div align="center" class="style9"><span class="txt10 "><b><img src="pic/p69.gif" width="40" height="10" /><span class="style12">รหัส</span><span class="style11"> : <?=$data[Pro_ID];?> </span></b></span></div></th> </tr> <tr> <th height="27" bgcolor="#CCFFFF"><div align="center" class="style9"> <span class="txt10 "><b><span class="style12">ราคา</span> <span class="style11"> <?=$data[Pro_Price];?> <span class="style12">บาท</span></span></b></span></div></th> </tr> <tr> <th height="29" bgcolor="#CCFFFF"><a href="home.php?id=<?=$data[Pro_ID];?>"><img src="pic/17.jpg" width="146" height="27" /></a></th> </tr> </table></td> <? } ?> <?php if ($i % 4 == 0) { echo "</tr>" ; } ?> </tr> </table> <p><span class="style10"><b>หนาท่ี</b> <?=printpage($page,$totalpage);?> </span></p> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bordercolor="#000000" bgcolor="#CCCCCC" scope="row"><p class="style5">รานกิ๊ฟพอยท</p> <p class="style5">ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p class="style5">WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!--

Page 51: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code show_webboard.php <? include("chk_login.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/index2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> <!-- .style5 {font-size: 14px} --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 16px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style></head> <body> <table width="1033" border="3" align="center" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr>

Page 52: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<tr> <th width="210" bgcolor="#2FBEFF" scope="row"><!– Search Google –> <div align="left"><!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"TARGET=_blank> <INPUT TYPE=text name=q size=25 maxlength=200 value=""> <input type=hidden name=oe value=tis-620 /> <A HREF="http://www.google.co.th/"> <INPUT type=submit name=btnG VALUE="Google Search"> <input type=hidden name=ie value=tis-620 /> </FORM></center> </div></th> <td width="813"><a href="index2.php"><img src="pic/1.jpg" width="160" height="40" border="0" /></a><a href="tes_buy.php"><img src="pic/9.jpg" width="160" height="40" border="0" /></a><a href="tes_payment.php"><img src="pic/10.jpg" width="160" height="40" border="0" /></a><a href="webboard.php"><img src="pic/4.jpg" width="160" height="40" border="0" /></a><a href="address.php"><img src="pic/5.jpg" width="160" height="40" border="0" /></a></td> </tr> <tr valign="top"> <th height="188" align="center" valign="top" bgcolor="#FFFFCC" scope="row"><table width="210" border="1" align="center"> <tr valign="top"> <th width="200" bgcolor="#CCFFFF" scope="col"><div align="left"><img src="pic/21.jpg" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center" class="style5">คุณ <?=$_COOKIE[m_name];?></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab">บริการรานคา</div> <div class="AccordionPanelContent"> <div align="left"> <p class="style5"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="tes_payment.php">วิธีการชําระเงิน</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="tes_buy.php">วิธีการสั่งซื้อสินคา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="webboard.php">กระดานถาม - ตอบ</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="address.php">ติดตอเรา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <span class="style5"><a href="sumordersale.php">ขอมูลการสั่งซื้อ</a></span></p> </div>

Page 53: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">หมวดหมูสินคา</div> <div class="AccordionPanelContent"> <div align="left"> <?php include("config.php"); $sql = "select * from typeproduct" ; $rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="sertproduct.php?id=<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </a> </div> <br /> <div align="left"> <?php } ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /><a href="index2.php"> สินคาท้ังหมด</a></div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">สําหรับผูดูแลระบบ</div> <div class="AccordionPanelContent style5"><a href="emp_login.php">เขาสูระบบ</a></div> </div> </div></th> </tr> </table></th> <td><!-- InstanceBeginEditable name="EditRegion3" --> <form id="form1" name="form1" method="post" action=""> <div align="center"> <p align="center" class="style12"><font color="#FF0066"><strong><span class="style9"><a href="index2.php">หนาหลัก </a>|| <a href="webboard.php">ตั้งคําถามใหม</a></span></strong><a href="webboard.php"> </a></font></p> <p> <? include("config.php") ; $sql = "SELECT * FROM q_webboard WHERE q_id=$_GET[q_id]" ; $result = mysql_query($sql) ; $data = mysql_fetch_array($result); ?> </p> <table width="540" border="1" cellpadding="4" cellspacing="0" bordercolor="#33FF66"> <tr bgcolor="#33FF66"> <th height="40" bordercolor="#0000FF" bgcolor="#99FFCC"><span class="style12"><strong>&lt;&lt; <?=$data[q_title];?> &gt;&gt;</strong></span></th> </tr> <tr bgcolor="#99FFFF">

Page 54: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<td bordercolor="#0000FF" bgcolor="#FFFFCC"><b>ชื่อผูถาม</b> : <?=$data[q_name];?> &nbsp; <b>วันท่ี</b> : <?=$data[q_date];?> </td> </tr> </table> <p> <? $sql2 = "SELECT * FROM answer WHERE q_id=$_GET[q_id]" ; $result2 = mysql_query($sql2) ; while ($data2 = mysql_fetch_array($result2)) { $num++; ?> <span class="style11"><font color="#FF0099">คําตอบท</font> ี่</span> <?=$num;?> </p> <table width="536" border="1" cellpadding="4" cellspacing="0" bordercolor="#33FF66"> <tr bgcolor="#33FF66"> <td height="40" bordercolor="#0000FF" bgcolor="#99FFCC"> <?=nl2br($data2[a_title]);?> </td> </tr> <tr bgcolor="#99FFCC"> <td bordercolor="#0000FF" bgcolor="#FFFFCC"><b>ชื่อผูตอบ</b> : <?=$data2[a_name];?> &nbsp; <b>วันท่ี</b> : <?=$data2[a_date];?> </td> </tr> </table> <p> <? } ?> </p> <p>&nbsp;</p> <table width="387" border="1" cellpadding="1" cellspacing="0" bordercolor="#33FF66"> <tr bordercolor="#0000FF" bgcolor="#99FFCC"> <td colspan="2"><div align="center" class="style10">ตอบคําถาม</div></td> </tr> <tr bordercolor="#0000FF" bgcolor="#FFFFCC"> <td><strong>คําตอบ</strong></td> <td><div align="left"> <textarea name="answer" cols="40" rows="4" id="answer"></textarea> </div></td> </tr> <tr bordercolor="#0000FF" bgcolor="#FFFFCC"> <td width="120"><strong>ชื่อผูตอบ</strong></td> <td width="257"><div align="left"> <input name="pname" type="text" id="pname" /> </div></td> </tr> <tr bordercolor="#0000FF" bgcolor="#FFFFCC"> <td><input type="hidden" name="q_id" value="<?=$_GET[q_id];?>" /></td> <td><div align="left"> <input type="submit" name="Submit" id="Submit" value=" บันทึก " /> <input type="reset" name="reset" value=" ยกเลิก " /> </div></td> </tr>

Page 55: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</table> <p> <? if (isset($_POST[Submit])) { $sql = "INSERT INTO answer VALUES('', '$_POST[answer]', '$_POST[pname]', NOW(), $_POST[q_id] ) "; var_dump($sql); $result = mysql_query($sql) or die ("เพ่ิมขอมูลไมได"); echo "บันทึกขอมูลเรียบรอยแลว"; echo "<meta http-equiv=refresh content=0>" ; } ?> </p> <p>&nbsp;</p> <p>&nbsp; </p> </div> </form> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bordercolor="#000000" bgcolor="#CCCCCC" scope="row"><p class="style5">รานกิ๊ฟพอยท</p> <p class="style5">ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p class="style5">WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code sumordersale.php <? include("chk_login.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/index2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> <!-- .style10 {color: #000000; font-size: 14px; } .style11 {font-weight: bold}

Page 56: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

.style12 { font-size: 16px; font-weight: bold; } .style13 {font-size: 16px} --> </style> <style type="text/css"> <!-- .style9 {color: #000000} --> </style> <!-- InstanceEndEditable --> <style type="text/css"> <!-- .style5 {font-size: 14px} --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 16px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style></head> <body> <table width="1033" border="3" align="center" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="210" bgcolor="#2FBEFF" scope="row"><!– Search Google –> <div align="left"><!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"TARGET=_blank> <INPUT TYPE=text name=q size=25 maxlength=200 value=""> <input type=hidden name=oe value=tis-620 /> <A HREF="http://www.google.co.th/">

Page 57: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<INPUT type=submit name=btnG VALUE="Google Search"> <input type=hidden name=ie value=tis-620 /> </FORM></center> </div></th> <td width="813"><a href="index2.php"><img src="pic/1.jpg" width="160" height="40" border="0" /></a><a href="tes_buy.php"><img src="pic/9.jpg" width="160" height="40" border="0" /></a><a href="tes_payment.php"><img src="pic/10.jpg" width="160" height="40" border="0" /></a><a href="webboard.php"><img src="pic/4.jpg" width="160" height="40" border="0" /></a><a href="address.php"><img src="pic/5.jpg" width="160" height="40" border="0" /></a></td> </tr> <tr valign="top"> <th height="188" align="center" valign="top" bgcolor="#FFFFCC" scope="row"><table width="210" border="1" align="center"> <tr valign="top"> <th width="200" bgcolor="#CCFFFF" scope="col"><div align="left"><img src="pic/21.jpg" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center" class="style5">คุณ <?=$_COOKIE[m_name];?></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab">บริการรานคา</div> <div class="AccordionPanelContent"> <div align="left"> <p class="style5"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="tes_payment.php">วิธีการชําระเงิน</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="tes_buy.php">วิธีการสั่งซื้อสินคา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="webboard.php">กระดานถาม - ตอบ</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="address.php">ติดตอเรา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <span class="style5"><a href="sumordersale.php">ขอมูลการสั่งซื้อ</a></span></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">หมวดหมูสินคา</div> <div class="AccordionPanelContent"> <div align="left"> <?php include("config.php"); $sql = "select * from typeproduct" ;

Page 58: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

$rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="sertproduct.php?id=<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </a> </div> <br /> <div align="left"> <?php } ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /><a href="index2.php"> สินคาท้ังหมด</a></div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">สําหรับผูดูแลระบบ</div> <div class="AccordionPanelContent style5"><a href="emp_login.php">เขาสูระบบ</a></div> </div> </div></th> </tr> </table></th> <td><!-- InstanceBeginEditable name="EditRegion3" --> <p><img src="pic/90.jpg" width="802" height="35" /></p> <p align="left"><font color="#FF0099"> <? if (empty($page)) { $page = 1 ; } $per_page = 15 ; function printpage($page,$totalpage){ $j = $page - 1 ; if($j > 0 ){ $body .= " <a href=?page=".$j."><img src=imageweb/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=imageweb/next.gif border=0 /></a> " ; } return $body ; }

Page 59: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

$p_start = ( $per_page * $page ) - $per_page; include("config.php"); $sql="select * from `order` where Cus_ID='$_COOKIE[m_id]' order by or_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 ); ?> </font> <b>หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <table width="400" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#33FF66" bgcolor="#33FF66"> <tr> <th width="98" height="29" bordercolor="#CCFFFF" bgcolor="#CCFFFF" scope="col"><span class="style9">รหัสการขาย</span></th> <th width="161" bordercolor="#CCFFFF" bgcolor="#CCFFFF" scope="col"><span class="style9">วันท่ีขาย</span></th> <th width="131" bordercolor="#CCFFFF" bgcolor="#CCFFFF" scope="col"><span class="style9">ราคารวม</span></th> </tr> <? while ($data = mysql_fetch_array($result)){ ?> <tr> <td height="26" bordercolor="#CCCCCC" bgcolor="#CCFFCC"><div align="center"><a href="salede.php?oid=<?=$data[or_id];?>"> <?=$data[or_id];?> </a></div></td> <td bordercolor="#CCCCCC" bgcolor="#CCFFCC"><div align="center"> <?=$data[or_date];?> </div></td> <td bordercolor="#CCCCCC" bgcolor="#CCFFCC"><div align="right"> <?=$data[or_total];?> </div></td> <?php }?> </tr> </table> <p><b>หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <p>&nbsp;</p> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bordercolor="#000000" bgcolor="#CCCCCC" scope="row"><p class="style5">รานกิ๊ฟพอยท</p> <p class="style5">ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p class="style5">WWW.GIFFPOINT.COM</p></th>

Page 60: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code address.php <? include("chk_login.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/index2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> <!-- .style6 {color: #0000FF} .style7 {color: #FF0000} --> </style> <!-- InstanceEndEditable --> <style type="text/css"> <!-- .style5 {font-size: 14px} --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 16px; } body {

Page 61: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

background-image: url(pic/1920KPSJ_22015.jpg); } --> </style></head> <body> <table width="1033" border="3" align="center" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="210" bgcolor="#2FBEFF" scope="row"><!– Search Google –> <div align="left"><!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"TARGET=_blank> <INPUT TYPE=text name=q size=25 maxlength=200 value=""> <input type=hidden name=oe value=tis-620 /> <A HREF="http://www.google.co.th/"> <INPUT type=submit name=btnG VALUE="Google Search"> <input type=hidden name=ie value=tis-620 /> </FORM></center> </div></th> <td width="813"><a href="index2.php"><img src="pic/1.jpg" width="160" height="40" border="0" /></a><a href="tes_buy.php"><img src="pic/9.jpg" width="160" height="40" border="0" /></a><a href="tes_payment.php"><img src="pic/10.jpg" width="160" height="40" border="0" /></a><a href="webboard.php"><img src="pic/4.jpg" width="160" height="40" border="0" /></a><a href="address.php"><img src="pic/5.jpg" width="160" height="40" border="0" /></a></td> </tr> <tr valign="top"> <th height="188" align="center" valign="top" bgcolor="#FFFFCC" scope="row"><table width="210" border="1" align="center"> <tr valign="top"> <th width="200" bgcolor="#CCFFFF" scope="col"><div align="left"><img src="pic/21.jpg" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center" class="style5">คุณ <?=$_COOKIE[m_name];?></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab">บริการรานคา</div> <div class="AccordionPanelContent"> <div align="left"> <p class="style5"><img src="pic/13_20060309155019.gif" width="21" height="16" />

Page 62: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<a href="tes_payment.php">วิธีการชําระเงิน</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="tes_buy.php">วิธีการสั่งซื้อสินคา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="webboard.php">กระดานถาม - ตอบ</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <a href="address.php">ติดตอเรา</a></p> <p class="style5"><img src="pic/13_20060309155019.gif" alt="" width="21" height="16" /> <span class="style5"><a href="sumordersale.php">ขอมูลการสั่งซื้อ</a></span></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">หมวดหมูสินคา</div> <div class="AccordionPanelContent"> <div align="left"> <?php include("config.php"); $sql = "select * from typeproduct" ; $rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /> <a href="sertproduct.php?id=<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </a> </div> <br /> <div align="left"> <?php } ?> <img src="pic/13_20060309155019.gif" width="21" height="16" /><a href="index2.php"> สินคาท้ังหมด</a></div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">สําหรับผูดูแลระบบ</div> <div class="AccordionPanelContent style5"><a href="emp_login.php">เขาสูระบบ</a></div> </div> </div></th> </tr> </table></th> <td><!-- InstanceBeginEditable name="EditRegion3" --> <p align="center"><span class="style7">รานกิ๊ฟพอยท</span> </p> <p> <span class="style7">ท่ีอยู :</span> <span class="style6">311 ถนน ศรีสวัดิ์ดําเนิน ต ตลาด อ เมือง จ มหาสารคาม 44000</span></p> <p><span class="style7">เบอรโทรศัพทมือถือ : </span><span class="style6">081-2637684 , 083-4054622 </span></p> <p><span class="style7">เบอรโทรศัพททางราน :</span> <span class="style6">043- 713400</span></p> <p><span class="style7">แผนท่ีราน : </span><span class="style6">ไมมีรูปแผนท่ีรานคา</span></p> <p><span class="style7">เว็บไซตราน :</span> <a href="http://www.giffpoint.com">http://www.giffpoint.com</a>

Page 63: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<hr />&nbsp;</p> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bordercolor="#000000" bgcolor="#CCCCCC" scope="row"><p class="style5">รานกิ๊ฟพอยท</p> <p class="style5">ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p class="style5">WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code admin_deletecus.php <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <?php if(isset($_GET[Cus_ID])){ include("config.php"); $sql="delete from customer where Cus_ID='$_GET[Cus_ID]'"; mysql_query($sql) or die("ลบขอมูลไมได "); echo "<script>" ; echo "alert('ลบขอมูลสมาชิกเรียบรอยแลว');" ; echo "window.location='admin_show_cus.php';"; echo "</script>" ; } ?> <body> </body> </html>

Source Code admin_deleteemp.php <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <?php if(isset($_GET[Emp_ID])){ include("config.php");

Page 64: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

$sql="delete from employee where Emp_ID='$_GET[Emp_ID]'"; mysql_query($sql) or die("ลบขอมูลไมได "); //echo "ลบขอมูลเรียบรอยแลว" ; //echo "<meta http-equiv=refresh content=0;url=admin_show_cus.php />" ; echo "<script>" ; echo "alert('ลบขอมูลสมาชิกเรียบรอยแลว');" ; echo "window.location='admin_show_emp.php';"; echo "</script>" ; } ?> <body> </body> </html>

Source Code admin_insert_news.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/admin.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> <!-- .style6 { font-size: 14px } --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style9 {color: #000000} .style10 {color: #000000; font-size: 14px; } a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 14px; }

Page 65: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style> <script type="text/javascript" src="calendar_picker/epoch_classes.js"></script> <script type="text/javascript"> /*You can also place this code in a separate file and link to it like epoch_classes.js*/ var dp_cal1,dp_cal2; window.onload = function () { dp_cal1 = new Epoch('epoch_popup','popup',document.getElementById('date1')); dp_cal2 = new Epoch('epoch_popup','popup',document.getElementById('date2')); }; </script> </head> <body> <table width="1032" border="3" align="center" cellspacing="0"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="207" bgcolor="#435C78" scope="row"><input type="text" name="q" size="25" maxlength="200" value="" /> <input type="hidden" name="oe" value="tis-620" /> <A HREF="http://www.google.co.th/"> <input type="submit" name="btnG" value="Google Search" /> <input type="hidden" name="ie" value="tis-620" /></th> <td width="811" height="40" valign="top"><img src="pic/admin.gif" width="812" height="45" /></td> </tr> <tr valign="top"> <th height="307" align="center" valign="top" scope="row"><table width="200" border="0" align="center"> <tr valign="top"> <th scope="col"><div align="left"><img src="pic/wel.gif" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center">คุณ <?=$_COOKIE[cookie_name];?> </div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout2.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th scope="row"><img src="pic/home.gif" width="200" height="40" /></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0">

Page 66: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insertproduct.php">เพ่ิมขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">ลบขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">แกไขขอมูลสินคา</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลประเภทสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style9">- <span class="style6"><a href="admin_insert_typepro.php">เพ่ิ มขอมูลประเภทสินคา</a></span></p> <p align="left" class="style10">- <a href="admin_insert_typepro.php">ลบขอมูลประเภทสินคา</a></p> <p align="left"><span class="style10">- <a href="admin_insert_typepro.php">แกไขขอมูลประเภทสินคา</a></span></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลพนักงาน</div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_insertemp.php">เพ่ิมขอมูลพนกังาน</a></p> <p class="style6">- <a href="admin_show_emp.php">ลบขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">แกไขขอมูลพนักงาน</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลสมาชิก</span></div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_show_cus.php">ลบขอมูลสมาชิก</a></p> <p class="style6">- <a href="admin_show_cus.php">แกไขขอมูลสมาชิก</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการกระดานถาม - ตอบ</span></div> </div>

Page 67: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_showweboard.php">ลบคําถาม</a></p> <p align="left" class="style6">&nbsp;</p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลขาวประกาศ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_news.php">เพ่ิมขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">ลบขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">แกไขขาวประกาศ</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลประเภทขาว</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_typenews.php">เพ่ิมประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">ลบประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">แกไขประเภทขาว</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">ออกรายงาน</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="reportproductr.php">ออกรายงานสินคา</a></p> <p align="left" class="style6">- <a href="reportsale2.php">ออกรายงานการขาย</a></p> <p align="left" class="style6">- <a href="reportemp.php">ออกรายงานพนักงาน</a></p> <p align="left" class="style6"> - <a href="reportcustomer.php">ออกรายงานสมาชิก</a></p> </div> </div> </div></th> </tr> </table> </th> <td bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="EditRegion3" --> <form id="form1" name="form1" method="post" action=""> <table width="430" height="181" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#0000FF" bgcolor="#0000FF"> <tr> <td width="126" height="24" bordercolor="#0000FF" bgcolor="#99FFCC"><div align="left" class="style73 style82 style84">หัวขอขาว :</div></td>

Page 68: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<td width="297" bordercolor="#0000FF" bgcolor="#FFFFCC"><div align="left" class="style39 style38"><span class="style7"> <input type="text" name="inName" id="inName" /> </span></div></td> </tr> <tr> <td height="28" bordercolor="#0000FF" bgcolor="#99FFCC"><div align="left" class="style73 style82 style84">ประเภทขาว :</div></td> <td bordercolor="#0000FF" bgcolor="#FFFFCC"><span class="style58 style38"> <label> </label> </span> <div align="left" class="style39 style38"> <span class="style58"> <select name="inMode" class="style61" id="inMode"> <option selected="selected">---------เลือกประเภทขาว---------</option> <?php include("config.php"); $sql="select * from typenews"; $result = mysql_query($sql); while ($data = mysql_fetch_array($result)){ ?> <option value="<?=$data[TypeNews_ID];?>"> <?=$data[TypeNews_Name];?> </option> <?php } ?> </select> </span></div></td> </tr> <tr> <td height="125" bordercolor="#0000FF" bgcolor="#99FFCC"><div align="left" class="style73 style82 style84">รายละเอียด :</div></td> <td align="center" valign="top" bordercolor="#0000FF" bgcolor="#FFFFCC"><p align="left" class="style70 style38"> <label></label> <br /> <label></label> <textarea name="inDetail" id="inDetail" cols="45" rows="5"></textarea> <br /> </p></td> </tr> </table> <div align="center"><span class="style38"> <input type="submit" name="submit" value=" บันทึก " id="submit" /> </span> <span class="style38"><span class="style3"> <input type="reset" name="Reset" id="Reset" value="Reset" /> </span></span> </div> </form> <p align="center"><span class="style38"><span class="style3"> <?php if(isset($_POST[submit])){ include("config.php"); $sql2="INSERT INTO news values ('','$_POST[inMode]','$_POST[inName]','$_POST[inDetail]')"; mysql_query($sql2) or die ("เพ่ิมขอมูลไมได"); echo "เพ่ิมขอมูลเรียบรอย"; echo "<meta http-equiv=refresh content=3;url=admin_shownews.php />"; }

Page 69: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

?> </span></span></p> <p>&nbsp;</p> <p>&nbsp;</p><!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bgcolor="#CCCCCC" scope="row"><p>รานกิ๊ฟพอยท</p> <p>ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p>WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code admin_insert_typenews.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/admin.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> <!-- .style6 { font-size: 14px } --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style9 {color: #000000} .style10 {color: #000000; font-size: 14px; } a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th {

Page 70: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

font-size: 14px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style> <script type="text/javascript" src="calendar_picker/epoch_classes.js"></script> <script type="text/javascript"> /*You can also place this code in a separate file and link to it like epoch_classes.js*/ var dp_cal1,dp_cal2; window.onload = function () { dp_cal1 = new Epoch('epoch_popup','popup',document.getElementById('date1')); dp_cal2 = new Epoch('epoch_popup','popup',document.getElementById('date2')); }; </script> </head> <body> <table width="1032" border="3" align="center" cellspacing="0"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="207" bgcolor="#435C78" scope="row"><input type="text" name="q" size="25" maxlength="200" value="" /> <input type="hidden" name="oe" value="tis-620" /> <A HREF="http://www.google.co.th/"> <input type="submit" name="btnG" value="Google Search" /> <input type="hidden" name="ie" value="tis-620" /></th> <td width="811" height="40" valign="top"><img src="pic/admin.gif" width="812" height="45" /></td> </tr> <tr valign="top"> <th height="307" align="center" valign="top" scope="row"><table width="200" border="0" align="center"> <tr valign="top"> <th scope="col"><div align="left"><img src="pic/wel.gif" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center">คุณ <?=$_COOKIE[cookie_name];?> </div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout2.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th scope="row"><img src="pic/home.gif" width="200" height="40" /></th> </tr> <tr valign="top">

Page 71: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insertproduct.php">เพ่ิมขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">ลบขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">แกไขขอมูลสินคา</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลประเภทสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style9">- <span class="style6"><a href="admin_insert_typepro.php">เพ่ิ มขอมูลประเภทสินคา</a></span></p> <p align="left" class="style10">- <a href="admin_insert_typepro.php">ลบขอมูลประเภทสินคา</a></p> <p align="left"><span class="style10">- <a href="admin_insert_typepro.php">แกไขขอมูลประเภทสินคา</a></span></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลพนักงาน</div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_insertemp.php">เพ่ิมขอมูลพนกังาน</a></p> <p class="style6">- <a href="admin_show_emp.php">ลบขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">แกไขขอมูลพนักงาน</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลสมาชิก</span></div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_show_cus.php">ลบขอมูลสมาชิก</a></p> <p class="style6">- <a href="admin_show_cus.php">แกไขขอมูลสมาชิก</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" />

Page 72: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<span class="style6">จัดการกระดานถาม - ตอบ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_showweboard.php">ลบคําถาม</a></p> <p align="left" class="style6">&nbsp;</p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลขาวประกาศ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_news.php">เพ่ิมขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">ลบขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">แกไขขาวประกาศ</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลประเภทขาว</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_typenews.php">เพ่ิมประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">ลบประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">แกไขประเภทขาว</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">ออกรายงาน</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="reportproductr.php">ออกรายงานสินคา</a></p> <p align="left" class="style6">- <a href="reportsale2.php">ออกรายงานการขาย</a></p> <p align="left" class="style6">- <a href="reportemp.php">ออกรายงานพนักงาน</a></p> <p align="left" class="style6"> - <a href="reportcustomer.php">ออกรายงานสมาชิก</a></p> </div> </div> </div></th> </tr> </table> </th> <td bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="EditRegion3" --> <form action="" method="post" name="form1" id="form1"> <p> <label> <div align="center">

Page 73: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<div align="center">ชื่อประเภทขาว : <input type="text" name="intypenews" id="intypenews" /> <input type="submit" name="Submit" id="Submit" value=" บันทึกขอมูล " /> </div> </label> <p align="center"> <label> </label> <?php include("config.php") ; if(isset($_POST[Submit])) { $sql = "insert into typenews values('','$_POST[intypenews]' ) " ; mysql_query($sql) or die ("เพ่ิมขอมูลไมได"); echo "เพ่ิมขอมูลเรียบรอยแลว" ; echo "<meta http-equiv=refresh content=3;url=admin_insert_typenews.php />" ; } ?> </p> <hr /> <br /> <? include("config.php"); $sql="select*from typenews"; $result = mysql_query($sql); echo "<table border= 0 >"; while($data=mysql_fetch_array($result)){ echo "<tr><td>"; echo"รหัสขาว : $data[TypeNews_ID]<br/>"; echo"ชื่อประเภทขาว : $data[TypeNews_Name]<br/>"; echo "<a href='admin_update_typenews.php?TypeNews_ID=$data[TypeNews_ID]'><img src=b_edit.png border=0 /></a> | "; echo "<a href='admin_deletetypenews.php?TypeNews_ID=$data[TypeNews_ID]' onclick='return confirm(\"ลบขอมูล\");'><img src=b_drop.png border=0 /></a><hr>"; echo"</td>"; echo"</tr>"; } echo"</table><br>"; ?> </p> </form> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bgcolor="#CCCCCC" scope="row"><p>รานกิ๊ฟพอยท</p> <p>ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p>WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Page 74: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

Source Code admin_insert_typepro.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/admin.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> <!-- .style6 { font-size: 14px } --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style9 {color: #000000} .style10 {color: #000000; font-size: 14px; } a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 14px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style> <script type="text/javascript" src="calendar_picker/epoch_classes.js"></script> <script type="text/javascript"> /*You can also place this code in a separate file and link to it like epoch_classes.js*/ var dp_cal1,dp_cal2; window.onload = function () { dp_cal1 = new Epoch('epoch_popup','popup',document.getElementById('date1')); dp_cal2 = new Epoch('epoch_popup','popup',document.getElementById('date2')); }; </script> </head> <body>

Page 75: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<table width="1032" border="3" align="center" cellspacing="0"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="207" bgcolor="#435C78" scope="row"><input type="text" name="q" size="25" maxlength="200" value="" /> <input type="hidden" name="oe" value="tis-620" /> <A HREF="http://www.google.co.th/"> <input type="submit" name="btnG" value="Google Search" /> <input type="hidden" name="ie" value="tis-620" /></th> <td width="811" height="40" valign="top"><img src="pic/admin.gif" width="812" height="45" /></td> </tr> <tr valign="top"> <th height="307" align="center" valign="top" scope="row"><table width="200" border="0" align="center"> <tr valign="top"> <th scope="col"><div align="left"><img src="pic/wel.gif" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center">คุณ <?=$_COOKIE[cookie_name];?> </div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout2.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th scope="row"><img src="pic/home.gif" width="200" height="40" /></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insertproduct.php">เพ่ิมขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">ลบขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">แกไขขอมูลสินคา</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลประเภทสินคา</div>

Page 76: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</div> <div class="AccordionPanelContent"> <p align="left" class="style9">- <span class="style6"><a href="admin_insert_typepro.php">เพ่ิ มขอมูลประเภทสินคา</a></span></p> <p align="left" class="style10">- <a href="admin_insert_typepro.php">ลบขอมูลประเภทสินคา</a></p> <p align="left"><span class="style10">- <a href="admin_insert_typepro.php">แกไขขอมูลประเภทสินคา</a></span></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลพนักงาน</div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_insertemp.php">เพ่ิมขอมูลพนกังาน</a></p> <p class="style6">- <a href="admin_show_emp.php">ลบขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">แกไขขอมูลพนักงาน</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลสมาชิก</span></div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_show_cus.php">ลบขอมูลสมาชิก</a></p> <p class="style6">- <a href="admin_show_cus.php">แกไขขอมูลสมาชิก</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการกระดานถาม - ตอบ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_showweboard.php">ลบคําถาม</a></p> <p align="left" class="style6">&nbsp;</p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลขาวประกาศ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_news.php">เพ่ิมขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">ลบขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">แกไขขาวประกาศ</a></p> </div>

Page 77: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลประเภทขาว</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_typenews.php">เพ่ิมประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">ลบประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">แกไขประเภทขาว</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">ออกรายงาน</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="reportproductr.php">ออกรายงานสินคา</a></p> <p align="left" class="style6">- <a href="reportsale2.php">ออกรายงานการขาย</a></p> <p align="left" class="style6">- <a href="reportemp.php">ออกรายงานพนักงาน</a></p> <p align="left" class="style6"> - <a href="reportcustomer.php">ออกรายงานสมาชิก</a></p> </div> </div> </div></th> </tr> </table> </th> <td bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="EditRegion3" --> <form action="" method="post" name="form1" id="form1"><p> <label> <div align="center"> </label> <div align="center">ชื่อประเภทสินคา : <input type="text" name="intype" id="intype" /> <input type="submit" name="Submit" id="Submit" value=" บันทึกขอมูล " /> </div> <p align="center"> <label> </label> <?php include("config.php") ; if(isset($_POST[Submit])) { $sql = "insert into typeproduct values('','$_POST[intype]' ) " ; mysql_query($sql) or die ("เพ่ิมขอมูลไมได"); echo "เพ่ิมขอมูลเรียบรอยแลว" ; echo "<meta http-equiv=refresh content=0;url=admin_insert_typepro.php />" ; } ?> </p> </form> <p align="center">&nbsp; </p> <hr /> <br /> <?

Page 78: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

include("config.php"); $sql="select*from typeproduct"; $result = mysql_query($sql); echo "<table border= 0 >"; while($data=mysql_fetch_array($result)){ echo "<tr><td>"; echo"รหัสประเภทสินคา : $data[TypePro_ID]<br/>"; echo"ชื่อประเภทสินคา : $data[TypePro_Name]<br/>"; echo "<a href='admin_update_typepro.php?TypePro_ID=$data[TypePro_ID]'><img src=b_edit.png border=0 /></a> |"; echo "<a href='admin_deletetypeproduct.php?TypePro_ID=$data[TypePro_ID]' onclick='return confirm(\"ลบขอมูล\");'><img src=b_drop.png border=0 /></a><hr>"; echo"</td>"; echo"</tr>"; } echo"</table><br>"; ?> </p> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bgcolor="#CCCCCC" scope="row"><p>รานกิ๊ฟพอยท</p> <p>ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p>WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code admin_insertemp.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/admin.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> <!-- .style6 { font-size: 14px } --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />

Page 79: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<style type="text/css"> <!-- .style9 {color: #000000} .style10 {color: #000000; font-size: 14px; } a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 14px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style> <script type="text/javascript" src="calendar_picker/epoch_classes.js"></script> <script type="text/javascript"> /*You can also place this code in a separate file and link to it like epoch_classes.js*/ var dp_cal1,dp_cal2; window.onload = function () { dp_cal1 = new Epoch('epoch_popup','popup',document.getElementById('date1')); dp_cal2 = new Epoch('epoch_popup','popup',document.getElementById('date2')); }; </script> </head> <body> <table width="1032" border="3" align="center" cellspacing="0"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="207" bgcolor="#435C78" scope="row"><input type="text" name="q" size="25" maxlength="200" value="" /> <input type="hidden" name="oe" value="tis-620" /> <A HREF="http://www.google.co.th/"> <input type="submit" name="btnG" value="Google Search" /> <input type="hidden" name="ie" value="tis-620" /></th> <td width="811" height="40" valign="top"><img src="pic/admin.gif" width="812" height="45" /></td> </tr> <tr valign="top"> <th height="307" align="center" valign="top" scope="row"><table width="200" border="0" align="center"> <tr valign="top"> <th scope="col"><div align="left"><img src="pic/wel.gif" width="200" height="40" /></div></th> </tr>

Page 80: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center">คุณ <?=$_COOKIE[cookie_name];?> </div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout2.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th scope="row"><img src="pic/home.gif" width="200" height="40" /></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insertproduct.php">เพ่ิมขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">ลบขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">แกไขขอมูลสินคา</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลประเภทสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style9">- <span class="style6"><a href="admin_insert_typepro.php">เพ่ิ มขอมูลประเภทสินคา</a></span></p> <p align="left" class="style10">- <a href="admin_insert_typepro.php">ลบขอมูลประเภทสินคา</a></p> <p align="left"><span class="style10">- <a href="admin_insert_typepro.php">แกไขขอมูลประเภทสินคา</a></span></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลพนักงาน</div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_insertemp.php">เพ่ิมขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">ลบขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">แกไขขอมูลพนักงาน</a></p> </div>

Page 81: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลสมาชิก</span></div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_show_cus.php">ลบขอมูลสมาชิก</a></p> <p class="style6">- <a href="admin_show_cus.php">แกไขขอมูลสมาชิก</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการกระดานถาม - ตอบ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_showweboard.php">ลบคําถาม</a></p> <p align="left" class="style6">&nbsp;</p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลขาวประกาศ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_news.php">เพ่ิมขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">ลบขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">แกไขขาวประกาศ</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลประเภทขาว</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_typenews.php">เพ่ิมประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">ลบประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">แกไขประเภทขาว</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">ออกรายงาน</span></div> </div> <div class="AccordionPanelContent">

Page 82: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<p align="left" class="style6">- <a href="reportproductr.php">ออกรายงานสินคา</a></p> <p align="left" class="style6">- <a href="reportsale2.php">ออกรายงานการขาย</a></p> <p align="left" class="style6">- <a href="reportemp.php">ออกรายงานพนักงาน</a></p> <p align="left" class="style6"> - <a href="reportcustomer.php">ออกรายงานสมาชิก</a></p> </div> </div> </div></th> </tr> </table> </th> <td bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="EditRegion3" --> <form action="" method="post" name="form1" id="form1"> <table width="512" height="198" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#0000FF"> <tr> <td width="182" height="24" bgcolor="#99FFCC"><span class="style14">Username</span></td> <td width="323" bgcolor="#FFFFCC"><span class="style13"> <input type="text" name="inUser2" id="inUser2" /> *</span></td> </tr> <tr> <td width="182" height="24" bgcolor="#99FFCC"><span class="style14">Password</span></td> <td width="323" bgcolor="#FFFFCC"><span class="style13"> <input type="password" name="inPass2" id="inPass2" /> *</span></td> </tr> <tr> <td height="24" bgcolor="#99FFCC"><span class="style14">ชื่อ-สกุล</span></td> <td bgcolor="#FFFFCC"><input name="inName" type="text" id="inName" /></td> </tr> <tr> <td height="69" bgcolor="#99FFCC"><span class="style14">ท่ีอยู</span></td> <td bgcolor="#FFFFCC"><span class="style13"> <textarea name="inAddress" id="inAddress" cols="30" rows="4"></textarea> </span></td> </tr> <tr> <td height="24" bgcolor="#99FFCC"><span class="style14">เบอรโทรศัพท</span></td> <td bgcolor="#FFFFCC"><input name="inTel" type="text" id="inTel" /></td> </tr> <tr> <td height="26" bgcolor="#99FFCC"><span class="style14"></span></td> <td bgcolor="#FFFFCC"><span class="style13"> <label> <input type="submit" name="Submit2" id="Submit2" value=" บันทึกขอมูล " /> <input type="reset" name="Cancel" id="Cancel" value="ยกเลิก" /> </label> </span></td> </tr> </table> <p align="center"> <?php

Page 83: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

include("config.php") ; if(isset($_POST[Submit2])) { $sql = "insert into employee values('','$_POST[inName]', '$_POST[inAddress]','$_POST[inTel]', '$_POST[inPass2]', '$_POST[inUser2]')" ; mysql_query($sql) or die ("เพ่ิมขอมูลไมได"); echo "เพ่ิมขอมูลเรียบรอยแลว" ; echo "<meta http-equiv=refresh content=3;url=index.php />" ; } ?> </p> </form> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bgcolor="#CCCCCC" scope="row"><p>รานกิ๊ฟพอยท</p> <p>ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p>WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code admin_insertproduct.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/admin.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><style type="text/css"> <!-- body,td,th { font-size: 16px; } --> </style><!-- InstanceEndEditable --> <style type="text/css"> <!-- .style6 { font-size: 14px } --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />

Page 84: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<style type="text/css"> <!-- .style9 {color: #000000} .style10 {color: #000000; font-size: 14px; } a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 14px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style> <script type="text/javascript" src="calendar_picker/epoch_classes.js"></script> <script type="text/javascript"> /*You can also place this code in a separate file and link to it like epoch_classes.js*/ var dp_cal1,dp_cal2; window.onload = function () { dp_cal1 = new Epoch('epoch_popup','popup',document.getElementById('date1')); dp_cal2 = new Epoch('epoch_popup','popup',document.getElementById('date2')); }; </script> </head> <body> <table width="1032" border="3" align="center" cellspacing="0"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="207" bgcolor="#435C78" scope="row"><input type="text" name="q" size="25" maxlength="200" value="" /> <input type="hidden" name="oe" value="tis-620" /> <A HREF="http://www.google.co.th/"> <input type="submit" name="btnG" value="Google Search" /> <input type="hidden" name="ie" value="tis-620" /></th> <td width="811" height="40" valign="top"><img src="pic/admin.gif" width="812" height="45" /></td> </tr> <tr valign="top"> <th height="307" align="center" valign="top" scope="row"><table width="200" border="0" align="center"> <tr valign="top"> <th scope="col"><div align="left"><img src="pic/wel.gif" width="200" height="40" /></div></th> </tr>

Page 85: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center">คุณ <?=$_COOKIE[cookie_name];?> </div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout2.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th scope="row"><img src="pic/home.gif" width="200" height="40" /></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insertproduct.php">เพ่ิมขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">ลบขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">แกไขขอมูลสินคา</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลประเภทสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style9">- <span class="style6"><a href="admin_insert_typepro.php">เพ่ิ มขอมูลประเภทสินคา</a></span></p> <p align="left" class="style10">- <a href="admin_insert_typepro.php">ลบขอมูลประเภทสินคา</a></p> <p align="left"><span class="style10">- <a href="admin_insert_typepro.php">แกไขขอมูลประเภทสินคา</a></span></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลพนักงาน</div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_insertemp.php">เพ่ิมขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">ลบขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">แกไขขอมูลพนักงาน</a></p> </div>

Page 86: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลสมาชิก</span></div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_show_cus.php">ลบขอมูลสมาชิก</a></p> <p class="style6">- <a href="admin_show_cus.php">แกไขขอมูลสมาชิก</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการกระดานถาม - ตอบ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_showweboard.php">ลบคําถาม</a></p> <p align="left" class="style6">&nbsp;</p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลขาวประกาศ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_news.php">เพ่ิมขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">ลบขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">แกไขขาวประกาศ</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลประเภทขาว</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_typenews.php">เพ่ิมประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">ลบประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">แกไขประเภทขาว</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">ออกรายงาน</span></div> </div> <div class="AccordionPanelContent">

Page 87: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<p align="left" class="style6">- <a href="reportproductr.php">ออกรายงานสินคา</a></p> <p align="left" class="style6">- <a href="reportsale2.php">ออกรายงานการขาย</a></p> <p align="left" class="style6">- <a href="reportemp.php">ออกรายงานพนักงาน</a></p> <p align="left" class="style6"> - <a href="reportcustomer.php">ออกรายงานสมาชิก</a></p> </div> </div> </div></th> </tr> </table> </th> <td bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="EditRegion3" --> <form action="" method="post" name="form2" id="form2" enctype="multipart/form-data"> <table width="372" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#0000FF"> <tr> <td width="89" bgcolor="#CCFFFF"><span class="style7">รหัสสินคา</span></td> <td width="276" bordercolor="#FFFFCC" bgcolor="#FFFFCC"><input type="text" name="inid" id="inid" /></td> </tr> <tr> <td bgcolor="#CCFFFF"><span class="style7">ชื่อสินคา</span></td> <td bordercolor="#FFFFCC" bgcolor="#FFFFCC"><input type="text" name="inname" id="inname" /></td> </tr> <tr> <td bgcolor="#CCFFFF"><span class="style7">รายละเอียด</span></td> <td bordercolor="#FFFFCC" bgcolor="#FFFFCC"><textarea name="indetail" id="indetail" cols="30" rows="4"></textarea></td> </tr> <tr> <td bgcolor="#CCFFFF"><span class="style7">ราคา</span></td> <td bordercolor="#FFFFCC" bgcolor="#FFFFCC"><input type="text" name="inprice" id="inprice" /></td> </tr> <tr> <td bgcolor="#CCFFFF"><span class="style7">ประเภทสินคา</span></td> <td bordercolor="#FFFFCC" bgcolor="#FFFFCC"><label> <select name="intype" id="intype"> <option >----เลือกประเภทสินคา----</option> <?php include("config.php"); $sql = "select * from typeproduct" ; $rs = mysql_query($sql) ; while ($data = mysql_fetch_array($rs)){ ?> <option value="<?=$data[TypePro_ID];?>"> <?=$data[TypePro_Name];?> </option> <?php } ?> </select> </label></td> </tr> <tr> <td bgcolor="#CCFFFF"><span class="style7">รูปภาพ</span></td> <td bordercolor="#FFFFCC" bgcolor="#FFFFCC"><label>

Page 88: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<input name="inpicture" type="file" id="inpicture" /> </label></td> </tr> <tr> <td bgcolor="#CCFFFF">&nbsp;</td> <td bordercolor="#FFFFCC" bgcolor="#FFFFCC"><label> <input type="submit" name="Submit" id="Submit" value=" บันทึกขอมูล " /> <input type="reset" name="Reset" id="button" value="Reset" /> </label></td> </tr> </table> <p align="center"> <?php include("config.php"); if(isset($_POST[Submit])) { if(isset($_FILES[inpicture])){ if ($_FILES[inpicture][type] == "image/gif"){ $n = "gif" ; } else if ($_FILES[inpicture][type] == "image/jpeg"){ $n = "jpg" ; } copy($_FILES[inpicture][tmp_name],'images/'.$_POST[inid].'.'.$n); } $sql2 = "insert into product values('$_POST[inid]','$_POST[intype]', '$_POST[inname]', '$_POST[indetail]', '$_POST[inprice]', '$_POST[inid].$n') " ; mysql_query($sql2) or die ("เพ่ิมขอมูลไมได"); echo "เพ่ิมขอมูลเรียบรอยแลว" ; echo "<meta http-equiv=refresh content=0;url=admin_showproduct.php />" ; } ?> </p> </form> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bgcolor="#CCCCCC" scope="row"><p>รานกิ๊ฟพอยท</p> <p>ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p>WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Page 89: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

Source Code admin_show_cus.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/admin.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> <!-- .style6 { font-size: 14px } --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style9 {color: #000000} .style10 {color: #000000; font-size: 14px; } a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 14px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style> <script type="text/javascript" src="calendar_picker/epoch_classes.js"></script> <script type="text/javascript"> /*You can also place this code in a separate file and link to it like epoch_classes.js*/ var dp_cal1,dp_cal2; window.onload = function () { dp_cal1 = new Epoch('epoch_popup','popup',document.getElementById('date1')); dp_cal2 = new Epoch('epoch_popup','popup',document.getElementById('date2')); }; </script> </head> <body>

Page 90: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<table width="1032" border="3" align="center" cellspacing="0"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="207" bgcolor="#435C78" scope="row"><input type="text" name="q" size="25" maxlength="200" value="" /> <input type="hidden" name="oe" value="tis-620" /> <A HREF="http://www.google.co.th/"> <input type="submit" name="btnG" value="Google Search" /> <input type="hidden" name="ie" value="tis-620" /></th> <td width="811" height="40" valign="top"><img src="pic/admin.gif" width="812" height="45" /></td> </tr> <tr valign="top"> <th height="307" align="center" valign="top" scope="row"><table width="200" border="0" align="center"> <tr valign="top"> <th scope="col"><div align="left"><img src="pic/wel.gif" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center">คุณ <?=$_COOKIE[cookie_name];?> </div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout2.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th scope="row"><img src="pic/home.gif" width="200" height="40" /></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insertproduct.php">เพ่ิมขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">ลบขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">แกไขขอมูลสินคา</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลประเภทสินคา</div>

Page 91: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</div> <div class="AccordionPanelContent"> <p align="left" class="style9">- <span class="style6"><a href="admin_insert_typepro.php">เพ่ิ มขอมูลประเภทสินคา</a></span></p> <p align="left" class="style10">- <a href="admin_insert_typepro.php">ลบขอมูลประเภทสินคา</a></p> <p align="left"><span class="style10">- <a href="admin_insert_typepro.php">แกไขขอมูลประเภทสินคา</a></span></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลพนักงาน</div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_insertemp.php">เพ่ิมขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">ลบขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">แกไขขอมูลพนักงาน</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลสมาชิก</span></div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_show_cus.php">ลบขอมูลสมาชิก</a></p> <p class="style6">- <a href="admin_show_cus.php">แกไขขอมูลสมาชิก</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการกระดานถาม - ตอบ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_showweboard.php">ลบคําถาม</a></p> <p align="left" class="style6">&nbsp;</p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลขาวประกาศ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_news.php">เพ่ิมขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">ลบขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">แกไขขาวประกาศ</a></p> </div>

Page 92: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลประเภทขาว</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_typenews.php">เพ่ิมประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">ลบประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">แกไขประเภทขาว</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">ออกรายงาน</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="reportproductr.php">ออกรายงานสินคา</a></p> <p align="left" class="style6">- <a href="reportsale2.php">ออกรายงานการขาย</a></p> <p align="left" class="style6">- <a href="reportemp.php">ออกรายงานพนักงาน</a></p> <p align="left" class="style6"> - <a href="reportcustomer.php">ออกรายงานสมาชิก</a></p> </div> </div> </div></th> </tr> </table> </th> <td bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="EditRegion3" --> <p align="left"><font color="#FF0099"> <? if (empty($page)) { $page = 1 ; } $per_page = 3 ; function printpage($page,$totalpage){ $j = $page - 1 ; if($j > 0 ){ $body .= " <a href=?page=".$j."><img src=imageweb/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){

Page 93: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

$body .= " <a href=?page=".$j."><img src=imageweb/next.gif border=0 /></a> " ; } return $body ; } include("config.php") ; $p_start = ( $per_page * $page ) - $per_page; $sql="select * from customer"; $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 ); ?> </font> </p> <p align="left"><b> หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <p> <? include("config.php"); echo "<table border= 0 align =center>"; while($data=mysql_fetch_array($result)){ echo "<tr><td>"; echo"รหัสสมาชิก : $data[Cus_ID]<br/>"; echo"รหัสบัตรประจําตัวประชาชน : $data[Cus_Card]<br/>"; echo"ชื่อสมาชิก : $data[Cus_Name]<br/>"; echo"เพศ : $data[Cus_Sex]<br/>"; echo"ท่ีอยู : $data[Cus_Address]<br/>"; echo"เบอรโทรศัพท : $data[Cus_Tel]<br/>"; echo"e-mail : $data[email]<br/>"; echo"ชื่อผูใช : $data[UserName]<br/>"; echo"รหัสผาน : $data[Password]<br/>"; echo "<a href='admin_updatecus.php?Cus_ID=$data[Cus_ID]'><img src=b_edit.png border=0 /></a> |"; echo "<a href='admin_deletecus.php?Cus_ID=$data[Cus_ID]' onclick='return confirm(\"ลบขอมูล\");'><img src=b_drop.png border=0 align =center/></a><hr/>"; echo"</td>"; echo"</tr>"; } echo"</table>"; ?> </p> <p><b>หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <!-- InstanceEndEditable --></td> </tr> <tr>

Page 94: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<th height="99" colspan="2" bgcolor="#CCCCCC" scope="row"><p>รานกิ๊ฟพอยท</p> <p>ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p>WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code admin_show_emp.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/admin.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> <!-- .style6 { font-size: 14px } --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style9 {color: #000000} .style10 {color: #000000; font-size: 14px; } a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 14px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style>

Page 95: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<script type="text/javascript" src="calendar_picker/epoch_classes.js"></script> <script type="text/javascript"> /*You can also place this code in a separate file and link to it like epoch_classes.js*/ var dp_cal1,dp_cal2; window.onload = function () { dp_cal1 = new Epoch('epoch_popup','popup',document.getElementById('date1')); dp_cal2 = new Epoch('epoch_popup','popup',document.getElementById('date2')); }; </script> </head> <body> <table width="1032" border="3" align="center" cellspacing="0"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="207" bgcolor="#435C78" scope="row"><input type="text" name="q" size="25" maxlength="200" value="" /> <input type="hidden" name="oe" value="tis-620" /> <A HREF="http://www.google.co.th/"> <input type="submit" name="btnG" value="Google Search" /> <input type="hidden" name="ie" value="tis-620" /></th> <td width="811" height="40" valign="top"><img src="pic/admin.gif" width="812" height="45" /></td> </tr> <tr valign="top"> <th height="307" align="center" valign="top" scope="row"><table width="200" border="0" align="center"> <tr valign="top"> <th scope="col"><div align="left"><img src="pic/wel.gif" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center">คุณ <?=$_COOKIE[cookie_name];?> </div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout2.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th scope="row"><img src="pic/home.gif" width="200" height="40" /></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลสินคา</div> </div>

Page 96: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insertproduct.php">เพ่ิมขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">ลบขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">แกไขขอมูลสินคา</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลประเภทสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style9">- <span class="style6"><a href="admin_insert_typepro.php">เพ่ิ มขอมูลประเภทสินคา</a></span></p> <p align="left" class="style10">- <a href="admin_insert_typepro.php">ลบขอมูลประเภทสินคา</a></p> <p align="left"><span class="style10">- <a href="admin_insert_typepro.php">แกไขขอมูลประเภทสินคา</a></span></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลพนักงาน</div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_insertemp.php">เพ่ิมขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">ลบขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">แกไขขอมูลพนักงาน</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลสมาชิก</span></div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_show_cus.php">ลบขอมูลสมาชิก</a></p> <p class="style6">- <a href="admin_show_cus.php">แกไขขอมูลสมาชิก</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการกระดานถาม - ตอบ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_showweboard.php">ลบคําถาม</a></p> <p align="left" class="style6">&nbsp;</p> </div> </div>

Page 97: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลขาวประกาศ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_news.php">เพ่ิมขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">ลบขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">แกไขขาวประกาศ</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลประเภทขาว</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_typenews.php">เพ่ิมประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">ลบประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">แกไขประเภทขาว</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">ออกรายงาน</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="reportproductr.php">ออกรายงานสินคา</a></p> <p align="left" class="style6">- <a href="reportsale2.php">ออกรายงานการขาย</a></p> <p align="left" class="style6">- <a href="reportemp.php">ออกรายงานพนักงาน</a></p> <p align="left" class="style6"> - <a href="reportcustomer.php">ออกรายงานสมาชิก</a></p> </div> </div> </div></th> </tr> </table> </th> <td bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="EditRegion3" --> <form action="" method="post" name="form1" id="form1"> <p align="left"><font color="#FF0099"> <? if (empty($page)) { $page = 1 ; } $per_page = 10 ; function printpage($page,$totalpage){ $j = $page - 1 ; if($j > 0 ){

Page 98: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

$body .= " <a href=?page=".$j."><img src=imageweb/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=imageweb/next.gif border=0 /></a> " ; } return $body ; } include("config.php") ; $p_start = ( $per_page * $page ) - $per_page; $sql="select*from employee"; $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 ); ?> </font> </p> <p align="left"><b> หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <p> <? include("config.php"); echo "<table border= 0 align =center>"; while($data=mysql_fetch_array($result)){ echo "<tr><td>"; echo"รหัสพนักงาน : $data[Emp_ID]<br/>"; echo"ชื่อพนักงาน : $data[Emp_Name]<br/>"; echo"ท่ีอยู : $data[Emp_Address]<br/>"; echo"เบอรโทรศัพท : $data[Emp_Tel]<br/>"; echo"ชื่อผูใช : $data[UserName]<br/>"; echo"รหัสผาน : $data[User_ID]<br/>"; echo "<a href='admin_updateemp.php?Emp_ID=$data[Emp_ID]'><img src=b_edit.png border=0 /></a> |"; echo "<a href='admin_deleteemp.php?Emp_ID=$data[Emp_ID]'

Page 99: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

onclick='return confirm(\"ลบขอมูล\");'><img src=b_drop.png border=0 align =center/></a><hr/>"; echo"</td>"; echo"</tr>"; } echo"</table>"; ?> </p> <p><b>หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> </form> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bgcolor="#CCCCCC" scope="row"><p>รานกิ๊ฟพอยท</p> <p>ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p>WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code admin_shownews.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/admin.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable --> <style type="text/css"> <!-- .style6 { font-size: 14px } --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style9 {color: #000000} .style10 {color: #000000; font-size: 14px; } a:link { text-decoration: none; } a:visited {

Page 100: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 14px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style> <script type="text/javascript" src="calendar_picker/epoch_classes.js"></script> <script type="text/javascript"> /*You can also place this code in a separate file and link to it like epoch_classes.js*/ var dp_cal1,dp_cal2; window.onload = function () { dp_cal1 = new Epoch('epoch_popup','popup',document.getElementById('date1')); dp_cal2 = new Epoch('epoch_popup','popup',document.getElementById('date2')); }; </script> </head> <body> <table width="1032" border="3" align="center" cellspacing="0"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="207" bgcolor="#435C78" scope="row"><input type="text" name="q" size="25" maxlength="200" value="" /> <input type="hidden" name="oe" value="tis-620" /> <A HREF="http://www.google.co.th/"> <input type="submit" name="btnG" value="Google Search" /> <input type="hidden" name="ie" value="tis-620" /></th> <td width="811" height="40" valign="top"><img src="pic/admin.gif" width="812" height="45" /></td> </tr> <tr valign="top"> <th height="307" align="center" valign="top" scope="row"><table width="200" border="0" align="center"> <tr valign="top"> <th scope="col"><div align="left"><img src="pic/wel.gif" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center">คุณ <?=$_COOKIE[cookie_name];?> </div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout2.php">

Page 101: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th scope="row"><img src="pic/home.gif" width="200" height="40" /></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insertproduct.php">เพ่ิมขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">ลบขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">แกไขขอมูลสินคา</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลประเภทสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style9">- <span class="style6"><a href="admin_insert_typepro.php">เพ่ิ มขอมูลประเภทสินคา</a></span></p> <p align="left" class="style10">- <a href="admin_insert_typepro.php">ลบขอมูลประเภทสินคา</a></p> <p align="left"><span class="style10">- <a href="admin_insert_typepro.php">แกไขขอมูลประเภทสินคา</a></span></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลพนักงาน</div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_insertemp.php">เพ่ิมขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">ลบขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">แกไขขอมูลพนักงาน</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลสมาชิก</span></div> </div> <div class="AccordionPanelContent">

Page 102: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<div align="left"> <p class="style6">- <a href="admin_show_cus.php">ลบขอมูลสมาชิก</a></p> <p class="style6">- <a href="admin_show_cus.php">แกไขขอมูลสมาชิก</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการกระดานถาม - ตอบ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_showweboard.php">ลบคําถาม</a></p> <p align="left" class="style6">&nbsp;</p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลขาวประกาศ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_news.php">เพ่ิมขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">ลบขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">แกไขขาวประกาศ</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลประเภทขาว</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_typenews.php">เพ่ิมประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">ลบประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">แกไขประเภทขาว</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">ออกรายงาน</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="reportproductr.php">ออกรายงานสินคา</a></p> <p align="left" class="style6">- <a href="reportsale2.php">ออกรายงานการขาย</a></p> <p align="left" class="style6">- <a href="reportemp.php">ออกรายงานพนักงาน</a></p> <p align="left" class="style6"> - <a href="reportcustomer.php">ออกรายงานสมาชิก</a></p> </div> </div> </div></th>

Page 103: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

</tr> </table> </th> <td bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="EditRegion3" --> <form action="" method="post" name="form1" id="form1"> <p align="left"><font color="#FF0099"> <? if (empty($page)) { $page = 1 ; } $per_page = 10 ; function printpage($page,$totalpage){ $j = $page - 1 ; if($j > 0 ){ $body .= " <a href=?page=".$j."><img src=imageweb/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=imageweb/next.gif border=0 /></a> " ; } return $body ; } include("config.php") ; $p_start = ( $per_page * $page ) - $per_page; $sql="select*from news"; $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 ); ?> </font> </p> <p align="left"><b> หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <p>

Page 104: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<? include("config.php"); echo "<table border= 0 align =center>"; while($data=mysql_fetch_array($result)){ echo "<tr><td>"; echo"รหัสขาว : $data[News_ID]<br/>"; echo"ชื่อขาว : $data[News_Name]<br/>"; echo"ประเภทขาว: $data[TypeNews_ID]<br/>"; echo"รายละเอียดขาว: $data[News_Detail]<br/>"; echo "<a href='admin_update_news.php?News_ID=$data[News_ID]'><img src=b_edit.png border=0 /></a> |"; echo "<a href='admin_deletenews.php?News_ID=$data[News_ID]' onclick='return confirm(\"ลบขอมูล\");'><img src=b_drop.png border=0 align =center/></a><hr/>"; echo"</td>"; echo"</tr>"; } echo"</table>"; ?> </p> <p><b>หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> </form> <div align="center"></div> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bgcolor="#CCCCCC" scope="row"><p>รานกิ๊ฟพอยท</p> <p>ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p>WWW.GIFFPOINT.COM</p></th> </tr> </table> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script> </body> <!-- InstanceEnd --></html>

Source Code admin_showorder.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/admin.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> <!-- .style6 {

Page 105: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

font-size: 14px } --> </style> <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style9 {color: #000000} .style10 {color: #000000; font-size: 14px; } a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body,td,th { font-size: 14px; } body { background-image: url(pic/1920KPSJ_22015.jpg); } --> </style> <script type="text/javascript" src="calendar_picker/epoch_classes.js"></script> <script type="text/javascript"> /*You can also place this code in a separate file and link to it like epoch_classes.js*/ var dp_cal1,dp_cal2; window.onload = function () { dp_cal1 = new Epoch('epoch_popup','popup',document.getElementById('date1')); dp_cal2 = new Epoch('epoch_popup','popup',document.getElementById('date2')); }; </script> </head> <body> <table width="1032" border="3" align="center" cellspacing="0"> <tr> <th colspan="2" scope="col"><img src="pic/anigif.gif" width="1024" height="180" /></th> </tr> <tr> <th width="207" bgcolor="#435C78" scope="row"><input type="text" name="q" size="25" maxlength="200" value="" /> <input type="hidden" name="oe" value="tis-620" /> <A HREF="http://www.google.co.th/"> <input type="submit" name="btnG" value="Google Search" /> <input type="hidden" name="ie" value="tis-620" /></th> <td width="811" height="40" valign="top"><img src="pic/admin.gif" width="812" height="45" /></td> </tr> <tr valign="top">

Page 106: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<th height="307" align="center" valign="top" scope="row"><table width="200" border="0" align="center"> <tr valign="top"> <th scope="col"><div align="left"><img src="pic/wel.gif" width="200" height="40" /></div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div align="center">คุณ <?=$_COOKIE[cookie_name];?> </div></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><form id="form1" name="form1" method="post" action="logout2.php"> <label> <input type="submit" name="button" id="button" value="ออกจากระบบ" /> </label> </form> </th> </tr> <tr valign="top"> <th scope="row"><img src="pic/home.gif" width="200" height="40" /></th> </tr> <tr valign="top"> <th bgcolor="#CCFFFF" scope="row"><div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insertproduct.php">เพ่ิมขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">ลบขอมูลสินคา</a></p> <p align="left" class="style6">- <a href="admin_showproduct.php">แกไขขอมูลสินคา</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"> <img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลประเภทสินคา</div> </div> <div class="AccordionPanelContent"> <p align="left" class="style9">- <span class="style6"><a href="admin_insert_typepro.php">เพ่ิ มขอมูลประเภทสินคา</a></span></p> <p align="left" class="style10">- <a href="admin_insert_typepro.php">ลบขอมูลประเภทสินคา</a></p> <p align="left"><span class="style10">- <a href="admin_insert_typepro.php">แกไขขอมูลประเภทสินคา</a></span></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab style6"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> จัดการขอมูลพนักงาน</div> </div>

Page 107: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_insertemp.php">เพ่ิมขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">ลบขอมูลพนักงาน</a></p> <p class="style6">- <a href="admin_show_emp.php">แกไขขอมูลพนักงาน</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลสมาชิก</span></div> </div> <div class="AccordionPanelContent"> <div align="left"> <p class="style6">- <a href="admin_show_cus.php">ลบขอมูลสมาชิก</a></p> <p class="style6">- <a href="admin_show_cus.php">แกไขขอมูลสมาชิก</a></p> </div> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการกระดานถาม - ตอบ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_showweboard.php">ลบคําถาม</a></p> <p align="left" class="style6">&nbsp;</p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลขาวประกาศ</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_news.php">เพ่ิมขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">ลบขาวประกาศ</a></p> <p align="left" class="style6">- <a href="admin_shownews.php">แกไขขาวประกาศ</a></p> </div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">จัดการขอมูลประเภทขาว</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="admin_insert_typenews.php">เพ่ิมประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">ลบประเภทขาว</a></p> <p align="left" class="style6">- <a href="admin_insert_typenews.php">แกไขประเภทขาว</a></p> </div> </div>

Page 108: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

<div class="AccordionPanel"> <div class="AccordionPanelTab"> <div align="left"><img src="pic/13_20060309155019.gif" width="21" height="16" /> <span class="style6">ออกรายงาน</span></div> </div> <div class="AccordionPanelContent"> <p align="left" class="style6">- <a href="reportproductr.php">ออกรายงานสินคา</a></p> <p align="left" class="style6">- <a href="reportsale2.php">ออกรายงานการขาย</a></p> <p align="left" class="style6">- <a href="reportemp.php">ออกรายงานพนักงาน</a></p> <p align="left" class="style6"> - <a href="reportcustomer.php">ออกรายงานสมาชิก</a></p> </div> </div> </div></th> </tr> </table> </th> <td bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="EditRegion3" --> <form action="" method="post" name="form1" id="form1"> <h2 align="center" class="style7"><font color="#FF0066">รายการขายท้ังหมด</font> </h2> <p align="left"><font color="#FF0099"> <? if (empty($page)) { $page = 1 ; } $per_page = 15 ; function printpage($page,$totalpage){ $j = $page - 1 ; if($j > 0 ){ $body .= " <a href=?page=".$j."><img src=imageweb/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=imageweb/next.gif border=0 /></a> " ; } return $body ; } $p_start = ( $per_page * $page ) - $per_page; include("config.php"); $sql="select * from `order` order by or_id asc"; $result = mysql_query($sql); $numrow = mysql_num_rows($result); if ( $numrow <= $per_page ) {

Page 109: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

$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 ); ?> </font> </p> <p align="left"><b> หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <table width="400" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#33FF66" bgcolor="#33FF66"> <tr> <th width="98" height="29" bgcolor="#33FF66" scope="col"><span class="style9">รหัสการขาย</span></th> <th width="161" bgcolor="#33FF66" scope="col"><span class="style9">วันท่ีขาย</span></th> <th width="131" bgcolor="#33FF66" scope="col"><span class="style9">ราคารวม</span></th> </tr> <? while ($data = mysql_fetch_array($result)){ ?> <tr> <td height="26" bgcolor="#99FFCC"><div align="center"><a href="admin_showorderdetail.php?oid=<?=$data[or_id];?>"> <?=$data[or_id];?> </a></div></td> <td bgcolor="#99FFCC"><div align="center"> <?=$data[or_date];?> </div></td> <td bgcolor="#99FFCC"><div align="right"> <?=$data[or_total];?> </div></td> <?php }?> </tr> </table> <p><b>หนาท่ี</b> <?=printpage($page,$totalpage);?> </p> <p align="center" class="style8"><font color="#FF0066">* ถาเราอยากรูรายละเอียดการขาย ใหเราคลิกท่ีรหัสการขายของสินคานั้นๆเลยนะครับ</font></p> </form> <!-- InstanceEndEditable --></td> </tr> <tr> <th height="99" colspan="2" bgcolor="#CCCCCC" scope="row"><p>รานกิ๊ฟพอยท</p> <p>ตําบลตลาด อําเภอเมือง จังหวัดมหาสารคาม</p> <p>WWW.GIFFPOINT.COM</p></th> </tr> </table>

Page 110: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

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

Page 111: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

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

ประจาภาคเรียนที ่2/2553

วิชา : 0904402 โครงงานเทคโนโลยีสารสนเทศธุรกิจ 1 จํานวน 1 หนวยกิต (0-2-0) ช่ือโครงงาน : เว็บไซต ซ้ือ-ขาย รานกิ๊ฟพอยท รายช่ือผูศึกษาโครงงาน : 1. ช่ือ-สกุล นายพิเชษฐ แกวอาษา รหัสประจําตัว 50010912311 BC501 2. ช่ือ-สกุล นายวรพจน หาญมนต รหัสประจําตัว 50010912400 BC5042 อาจารยท่ีปรึกษาโครงงาน : อาจารย ...........................................................(อาจารยเอกชัย แนนอุดร)

(....................................................) กรรมการท่ีปรึกษา

วันท่ี ............/ ................/ ..............

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

วันท่ี ............/ ................/ ..............

(....................................................) กรรมการคนท่ี 2

วันท่ี ............/ ................/ ..............

Page 112: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

1.1 ความเปนมาและความสําคัญของปญหา ในยุคปจจุบันการขายสินคาตางๆ ไดนําเครื่องคอมพิวเตอรเขามามีบทบาทในการทํางาน

และมีการพัฒนาใหสามารถซ้ือขายบนโลกอินเตอรเน็ตเพ่ือตอบสนองความตองการของผูบริโภค ใหมีความสะดวกมากยิ่งขึ้นและเปนการยกระดับการเปนอยูใหดีขึ้น ฉะนั้นแลวการขายสินคาผานเว็บก็จะอีกเปนปจจัยหนึ่งท่ีจะชวยใหเจาของรานและพนักงาน หรือผูท่ีสนใจท่ีมีความตองการในการขายสินคาไดมีโอกาสในการขายขายสินคาท่ีงายมากขึ้น ซ่ึงซ่ิงรานกิ๊ฟพอยท ก็เปนองคกรหลักในการสงเสริมการขายสินคาผานเว็บ โดยจะนําเทคโนโลยีทางดานเครือขายอินเตอรเน็ตมาเปนส่ือกลางอีกชองทางในการเปดโอกาสใหผูทีมีความตองการซ้ือสินคากับทางราน ไดมีโอกาสซ้ือสินคากันงายขึ้น เพ่ืออํานวยความสะดวกตอการขายสินคา ในสวนของรานกิ๊ฟพอยท โดยการทําเว็บไซตซ้ือขายผานเว็บ จากเดิมท่ีขายสินคาเฉพาะในรานอยูแลวใหเพ่ิมชองทางการขายตางๆ ขึ้นมาใหมเพ่ือใหเอ้ือตอในสภาวะกาลปจจุบัน

ดังนั้นรานกิ๊ฟพอยท จึงตองการพัฒนาเว็บไซดของรานกิ๊ฟพอยท ขึ้นมาใหม เพ่ือเพ่ิมชองทางในการขายสินคาทําใหผูท่ีสนใจ ท่ีกําลังตองการซ้ือสินคาของรานกิ๊ฟพอยท เปนไปตามวัตถุประสงคท่ีตองการของทางราน เพ่ือใหการขายสินคาเกิดความรวดเร็ว และมีระบบกระดานสนทนาเอาไวถามตอบกับเจาของรานเผ่ือมีปญหาหรือขอสงสัยกระดานสนทนาจะเปนอีกชองทางหนึ่งท่ีจะสามารถติดตอกับเจาของรานของรานกิ๊ฟพอยท ได ระบบขาวประชาสัมพันธจะทําใหประชาชนท่ัวไปทราบถึงความเคล่ือนไหว หรือกิจกรรมตางๆ ของรานกิ๊ฟพอยท ท่ีจะจัดขึ้น และคาดวาระบบเหลานี้ท่ี นํามาพัฒนาเพ่ือท่ีจะรองรับการขายสินคาของรานกิ๊ฟพอยท สามารถทําไดอยางมีประสิทธิภาพมากขึ้น

1.2 วัตถุประสงคของการศึกษา เพ่ือศึกษาพัฒนาระบบการซ้ือขายสินคาประเภท ของขวัญ ตุกตา อุปกรณตกแตงรถยนต 1.3 ขอบเขตการดําเนินงาน โครงงานการพัฒนาเว็บไซตซื้อ-ขายสินคา กรณีศึกษา รานกิ๊ฟพอยท ซึ่งไดแบงกลุมผูใชออกเปน 3 กลุม ดังนี ้

Page 113: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

1.3.1 บุคคลท่ัวไป - ดูขอมูลท่ัวไปของรานกิ๊ฟพอยทได - ดูขาวสารกิจกรรมตางๆ ของราน

1.3.2 สมาชิก - Login เขาสูระบบได

- ดูขอมูลท่ัวไปของรานกิ๊ฟพอยทได - ซ้ือสินคาท่ีตองการได - ใชกระดานสนทนาได - ดูขาวสารกิจกรรมตางๆ ของรานได - สมาชิกสามารถแกไข ขอมูลของตนเองได

1.3.3 ผูดูแลระบบ - จัดการะบบสมาชิก - จัดการขอมูลสินคา - จัดการขาวประชาสัมพันธ

- จัดการกระดานถามตอบ - ระบบรายงานตาง ๆ

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

1.4.1.1 คอมพิวเตอร จํานวน 1 ชุด

1.4.1.2 กลองถายรูปดิจิตอล (Digital Camera) จํานวน 1 เคร่ือง

1.4.1.3 เคร่ืองสแกนเนอร (Scanner) จํานวน 1 เคร่ือง

1.4.1.4 เคร่ืองพิมพ (Printer) จํานวน 1 เคร่ือง

Page 114: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

1.4.2 ซอฟตแวร 1.4.2.1 โปรแกรม Adobe Dream weaver v.8.0 สําหรับตกแตงหนาเว็บไซต 1.4.2.2 ฐานขอมูล My SQL

1.4.2.3 โปรแกรม Edit plus v.2 สําหรับเขียนภาษา PHP เว็บไซต

1.4.2.4 Apache สําหรับการจําลองเคร่ืองเปน Web Server

1.4.2.5 โปรแกรม Adobe Photoshop CS สําหรับตกแตงรูปภาพ

1.4.2.6 โปรแกรม Adobe Flash v.8.0 สําหรับตกแตงรูปภาพ

1.4.2.7 โปรแกรม Microsoft Office เพื่อพิมพเอกสารประกอบ เชน คูมือ

1.5 ขั้นตอนในการดําเนินงาน 1.5.1 นําเสนอหัวขอตออาจารยที่ปรึกษา (ศึกษาทฤษฏีและเทคโนโลยีที่ใช)

1.5.2 ศึกษาและเก็บรวบรวมขอมูล

1.5.3 วิเคราะหขอมูล

1.5.4 ออกแบบโปรแกรม 1.5.5 พัฒนา –ทดสอบ

1.5.5.1. เขียนโปรแกรม

1.5.5.2. ทดสอบยอย

1.5.5.3. ทดสอบรวม

1.5.5.4. ทดสอบติดตั้งระบบ

1.5.6 นําเสนอผลงานตอคณะกรรมการ

1.5.7 จัดทําเอกสาร

Page 115: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

1.6 ระยะเวลาในการปฏิบัติงาน ตารางท่ี 1-1 แสดงระยะเวลาในการดําเนินงาน

กิจกรรม เดือน พ.ศ. 2553-2554

มิ.ย ก.ค ส.ค ก.ย ต.ค พ.ย ธ.ค ม.ค ก.พ มี.ค นําเสนอหัวขอตออาจารยท่ีปรึกษา

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

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

จัดทําคูมือ 1.7 ผลที่คาดวาจะไดรับ

1.7.1 สามารถเปนส่ือโฆษณาประชาสัมพันธ เพื่อเพิ่มยอดขายใหกับทางรานได

1.7.2 ระบบสามารถใหขอมูลดานลูกคาและสินคา แกเจาของกิจการ เพื่อนําไปสูการ

วางแผนการตลาด และการบริหารธุรกิจตอไป

1.7.3 สามารถชวยเขาถึงกลุมลูกคาเปาหมายไดมากข้ึน

1.7.4 สามารถชวยใหสรางความไดเปรียบคูแขงขันทางการคา

1.7.5 สามารถสรางภาพลักษณที่ดีใหกับรานในเร่ืองความทันสมัย ทางดานเทคโนโลย ี

1.7.6 เพ่ือใหลูกคาเขาถึงไดงาย และทําการส่ังจอง หรือซ้ือสินคาไดทันที พรอมท้ังดูสถานะ การจองและการส่ังซ้ือได 1.7.7 เพ่ือแนะนํารายละเอียดสินคาและสามารถใหลูกคามาเสนอแนะสินคาท่ีตองการได

Page 116: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

ภาคผนวก ง รายงานการพบอาจารยท่ีปรึกษา

Page 117: ภาคผนวก - bc.msu.ac.th289).pdfขั้นตอนการติดตั้งโปรแกรม AppServ 2.5.10 โปรแกรม AppServ คือ การเรียกชื่อของชุดติดตั้งโปรแกรมชุดหนึ่งที่ใช

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

ช่ือเรื่อง เว็บไซตซ้ือขายรานกิ๊ฟพอยท ต.ตลาด อ.เมือง จ.มหาสารคาม ผูศึกษา นายพิเชษฐ แกวอาษา รหัส 50010912311 BC501 นายวรพจน หาญมนต รหัส 50010912400 BC5042 ท่ีปรึกษา อาจารยเอกชัย แนนอุดร

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

ดูรายละเอียดเกี่ยวกับบทท่ี 1 บทนํา ตรวจทานงานท่ีแกไขบทท่ี 1 ดูรายละเอียดเกี่ยวกับบทท่ี 2 ทฤษฎีและวรรณกรรม

ท่ีเกี่ยวของ

ตรวจทานงานท่ีแกไขบทท่ี 2 ดูรายละเอียดเกี่ยวกับบทท่ี 3 วิเคราะระบบงานเดิม ตรวจทานงานท่ีแกไขบทท่ี 3 ดูรายละเอียดเกี่ยวกับบทท่ี 4 วิเคราะและออกแบบ

ระบบงานใหม

ตรวจทานงานท่ีแกไขบทท่ี 4 ตรวจทานรายงานบทท่ี 1 - 4 ดูความคืบหนาของตัวระบบงาน ตรวจทานรูปเลม บทท่ี 1 - 6