Quote:<meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>Untitled Document</title> </head> <body> <table width="125" border="1"> <tr> <td>Index</td> </tr> <tr> <td>เพิ่มวิชา</td> </tr> <tr> <td>แก้ไข/ลบ</td> </tr> <tr> <td>คำนวณ</td> </tr> <tr> <td>ดูเกรด</td> </tr> <tr> <td>Logout</td> </tr> </table> </body> </html>
Quote:Parse error: syntax error, unexpected T_IF, expecting T_CASE or T_DEFAULT or '}' in C:\AppServ\www\test\right.php on line 5
Quote:หน้า index.php <html> <head> <title>gg</title> <frameset cols="135,*" frame="YES" border="2" framespacing="2" rows="*"> <frame name="leftframe" src="left.php"> <frame name="rightframe" src="right.php"> </frameset>
Quote:left.php <a href="index.php?crtp=manager_view.php">view <p> <a href="index.php?crtp=manager_cule.php">cule
Quote:right.php <?php $manager_view = $_GET['manager_view']; switch ($manager_view){ if(empty($manager_view)) { require_once("manager_view.php"); #ถ้าไม่มีหน้าใหนให้แสดงหน้านี้ } case add: require_once "manager_view.php"; break; #ถ้าส่งค่ามาเป็น add ให้ดึงไฟล์นี้มาแสดง case addcourse : require_once "addcourse.php"; break; } ?>
<?php if($crtp=="add") { include('add.php'); } else if($crtp=="edit") { include('edit.php'); } else if($crtp=="view") { include('view.php'); } else if($crtp=="delete") { include('delete.php'); } else include('show.php');//ถ้าไม่มีค่าส่งมาก็ให้แสดงหน้านี้ไปเลย ?>
Quote:index.php <frameset rows="*" cols="200,*" framespacing="0" frameborder="NO" border="0"> <frame src="menu.php" name="L" > <?php if($crtp=="add") { include('add.php'); } else if($crtp=="edit") { include('edit.php'); } else if($crtp=="view") { include('view.php'); } else if($crtp=="delete") { include('delete.php'); } else include('show.php');//ถ้าไม่มีค่าส่งมาก็ให้แสดงหน้านี้ไปเลย ?> </frameset>
Quote:menu.php <a href="index.php?crtp=add">add</a> </div> <a href="index.php?crtp=edit">edit</a> </div> <a href="index.php?crtp=view">view</a> </div> <a href="index.php?crtp=delete">del</a> </div>
<!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=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <table width="1000" border="1"> <tr> <td width="216"><? include('menuf.php'); ?></td> <td width="556"> <? if($a=="a") { include('a.php'); } else if($b=="b") { include('b.php'); } else if($c=="c") { include('c.php'); } #else n........... else { include('main.php'); } ?> </td> <td width="206"> </td> </tr> </table> </body> </html>
<!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=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <table width="230" border="1"> <tr> <td><a href="index.php?a=a">เมนู1</a></td> </tr> <tr> <td><a href="index.php?b=b">เมน2</a></td> </tr> <tr> <td><a href="index.php?c=c">เมนู3</a></td> </tr> <tr> <td><a href="index.php?d=d">เมนู4</a></td> </tr> <tr> <td><a href="index.php?e=e">เมนู5</a></td> </tr> </table> </body> </html>
<!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=iso-8859-1" /> <title>Untitled Document</title> </head> <body> main </body> </html>
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> a </body> </html>
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> b </body> </html>
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> c </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง