Server IP : 10.254.12.21 / Your IP : 10.254.12.21 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/arit/ |
Upload File : |
<? session_start(); //include "IntroForm_Check.php";?> <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" href="images/logotab.ico"> </head> <!-- เลือกวันที่--> <link type="text/css" href="calendar2/flora.calendars.picker.css" rel="stylesheet"/> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="calendar2/jquery.calendars.min.js"></script> <script type="text/javascript" src="calendar2/jquery.calendars.plus.min.js"></script> <script type="text/javascript" src="calendar2/jquery.calendars.picker.min.js"></script> <script type="text/javascript" src="calendar2/jquery.calendars.thai.min.js"></script> <script type="text/javascript" src="calendar2/jquery.calendars.thai-th.js"></script> <script type="text/javascript" src="calendar2/jquery.calendars.picker-th.js"></script> <script type="text/javascript"> $(function() { $('#mydate').calendarsPicker({calendar: $.calendars.instance('thai','th')}); }); </script> <link href="structer.css" rel="stylesheet" type="text/css"> <!-- คณะและสาขาวิชา่--> <script language="javascript"> menu = new Array(); menu[-1] = new Array(0, "ไม่มีข้อมูล"); menu[1] = new Array( 101, "การศึกษาปฐมวัย", 102, "สังคมศาตร์", 103, "ภาษาไทย",104,"ภาษาอังกฤษ",105,"คณิตศาสตร์",106,"วิทยาศาสตร์ทั่วไป"); menu[2] = new Array(201, "พัฒนาชุมชน", 202, "ภาษาอังกฤษ",203,"รัฐประศาสนศาสตร์",204,"ภาษาไทย",205,"การจัดการทางวัฒนธรรม",206,"สังคมศาสตร์เพื่อมัคคุเทศก์"); menu[3] = new Array(301, "อุตสาหกรรมท่องเที่ยว", 302, "บริหารทรัพยากรมนุษย์",303,"การจัดการ",304,"การตลาด",305,"คอมพิวเตอร์ธุรกิจ",306,"เศรษฐศาสตร์ ",307,"นิเทศศาสตร์ "); menu[4] = new Array(401, "การเพาะเลี้ยงสัตว์น้ำ", 402, "เกษตรศาสตร์",403,"วิทยาศาสตร์และเทคโนโลยีการอาหาร");//ถ้าเพิ่ม สาขาก็เพิ่มmenu[4] menu[5] = new Array(501, "วิศวกรรมการจัดการ", 502, "เทคโนโลยีอุตสาหกรรม (ต่อเนื่อง)"); menu[6] = new Array(601, "การแพทย์แผนไทยประยุกต์", 602, "สาธารณสุขศาสตร์",603,"ฟิสิกส์",604,"เคมี",605,"ชีววิทยา",606,"เทคโนโลยียางและพอลิเมอร์",607,"เทคโนโลยีสารสนเทศ",608,"วิทยาการคอมพิวเตอร์",609,"วิทยาศาสตร์สิ่งแวดล้อม",610,"คหกรรมศาสตร์",611,"ชีววิทยาประยุกต์",612,"คณิตศาสตร์และสถิติ"); menu[7] = new Array(701, "ออกแบบประยุกต์ศิลป์", 702, "นาฏยรังสรรค์",703,"ดนตรีสากล",704,"ดนตรีไทย",705,"ทัศนศิลป์"); menu[8] = new Array(801, "หลักสูตรและการสอน", 802, "การบริหารการศึกษา",803,"ยุทธศาสตร์การพัฒนา",804,"วิทยาศาสตร์ศึกษา",805,"สาธารณสุขชุมชน",806,"การจัดการเทคโนโลยีการเกษตร",807,"การบริหารธุรกิจ"); function showSubMenu(i)//อันนี้ไม่ต้องแก้ { box = document.f1.Branch; i++; while(box.options.length) box.options[0] = null; c = 0; for(m = 0; m < menu[i-1].length/2; m++) { if((document.f1.action.value == "post") && (menu[i-1][m*2] >= 0)) { box.options[c++] = new Option(menu[i-1][m*2+1], menu[i-1][m*2]); } else { box.options[c++] = new Option(menu[i-1][m*2+1], menu[i-1][m*2]); } } } </script> <script language="JavaScript"> // ตรวจสอบข้อมูลก่อนเพิ่ม function checkFields2() { missinginfo = ""; if (document.f1.Title.value == "") { missinginfo += "\n - * สังกัด/คณะ"; } if (document.f1.keyword.value == "") { missinginfo += "\n - * ชื่อ"; } if (document.f1.Lname.value == "") { missinginfo += "\n - * สกุล"; } if (missinginfo != "") { missinginfo ="_____________________________\n" + "กรุณากรอกข้อมูลต่อไปนี้ :\n" + missinginfo + "\n_____________________________" + "\nกรุณากลับไปกรอกอีกครั้ง "; alert(missinginfo); return false; } else return true; } </script> <title>แบบฟอร์มแนะนำทรัพยากรเข้าห้องสมุด</title> </head> <style type="text/css"> .news_content { width:750px; float:right; } .news_menu { width:200px; float:left; height:800px; } .sidebar_menu { list-style: none; margin: 0 0 30px; padding: 0; } .sidebar_menu li { margin: 0; padding: 2px 0 3px 16px; background: url(./images/templatemo_list_01.png) no-repeat scroll 0 8px; border-bottom: 1px dotted #ccc } .sidebar_menu li a { font-size: 14px; } #sidebar h3 { font-size: 16px; padding: 0 0 15px 0; margin: 0 0 15px 0; background: url(./images/sidebar_header_bg.png) left bottom no-repeat } h1 { margin: 0 0 5px 0; padding: 10px 0 10px 10px; font-size: 24px; font-weight: normal; color: #ffffff; background: #26405b; } h2 { margin: 0 0 10px 0; padding: 5px 0 5px 10px; font-size: 16px; } h4 { margin: 0; padding: 3px 0 3px 10px; font-size: 18px; font-weight: bold; color: #03F; background: #EEE; } .section_02_box { float: left; width: 350px; border: 1px solid #CCCCCC; margin: 0 20px 0 0px; } .section_02_box .section_02_box_content{ float: left; padding: 15px; } .section_02_box_content .section_02_box_content_title { font-weight: bold; } .section_02_box_content ul{ clear: both; list-style: none; margin: 0; padding: 0; } .section_02_box_content ul li{ padding: 0 0 5px 15px; margin: 0; background: url(images/templatemo_listicon.gif) top left no-repeat; } .section_02_box img { float: left; margin: 3px 15px 0 0; } .cleaner_with_height { clear: both; width: 100%; height: 20px; } .style1 {color: #0000FF} </style> </head> <body> <!--start logo --> <div id="logo"> <? include "logo.php";?> </div> <!--end logo --> <!-- start nav --> <nav> <div id="nav"> <div id="content-nav"> <? include "navigator.php";?> </div> </div> </nav> <!-- start article --> <article> <div id="content"> <!-- start content --> <div class="content-title"> แบบฟอร์มแนะนำทรัพยากรเข้าห้องสมุด <img src="images/dot21.jpg" width="12px;"> <div class="content-line"></div> </div> <div class="content-text"> <div class="news_menu"> <ul class="sidebar_menu"> <li><a href="IntroForm_Admin2.php">ค้นหาข้อมูล</a></li> <? include('IntroForm_Authen.php'); if(empty($numrows)) { ?> <li><a href="IntroForm_login.php">เข้าระบบ</a></li> <? } else { ?> <li><a href="IntroForm_Admin.php">แบบฟอร์มออกร้านหนังสือ</a></li> <li><a href="IntroForm_Publisher.php">ข้อมูลสำนักพิมพ์</a></li> <li><a href="IntroForm_logout.php">ออกจากระบบ</a></li> <? } ?> </ul> </div> <div class="news_content"> <form action="IntroForm_Admin2.php" method="get" name="f1" onSubmit="return checkFields2();"> <h2> ข้อมูลผู้แนะนำทรัพยากร <? echo "$BoothName "; ?></h2> <p style="margin-left:20px;"> <span class="style1"> **ชื่อหรือนามสกุล <input name="keyword" id="keyword" type="text" value="<? echo $_GET[keyword]; ?>"/> ประเภทการสั่งซื้อ <select name="OrderType" id="OrderType"> <? $OrderType=$_GET[OrderType]; $nameorder=$_GET[nameorder]; include "connect_intro_resource.php"; $query2=mysql_query("select * from ordertype order by OrderTypeID desc "); $row2=mysql_num_rows($query2); for ($j=1;$j<=$row2;$j++) { $arr2=mysql_fetch_array($query2); $OrderTypeID=$arr2[OrderTypeID]; $OrderTypeName=$arr2[OrderTypeName]; $color=$arr2[color]; if ($OrderType==$OrderTypeID) { echo " <option value='$OrderTypeID' selected >$OrderTypeName</option>"; $nameorder=$OrderTypeName; } else { echo " <option value='$OrderTypeID'>$OrderTypeName</option>"; } } ?> </select> <input type="hidden" name="nameorder" id="nameorder"> </span> <span class="style1"> <input name="" type="submit" value="ค้นหา" /> </p> </form > <? include "connect_intro_resource.php"; if (!empty($_GET[keyword])) { $keyword=$_GET[keyword]; $keyword = ereg_replace('[[:space:]]+', '', trim($keyword)); $OrderType=$_GET[OrderType]; if ($OrderType==6) { $query=mysql_query("select * from introdetail where Fname like '$keyword%' or Lname like '$keyword%' order by IntroID desc "); //echo "OrderType=$OrderType"; } else { $query=mysql_query("select * from introdetail where OrderType='$OrderType' and Fname like '$keyword%' or Lname like '$keyword%' order by IntroID desc "); } echo "<h2> ผลการค้นหาคำว่า <font color='red'> $keyword </font> ประเภท <font color='red'> $nameorder </font> </h2>"; } else { $query=mysql_query("select * from introdetail order by IntroID desc "); } $row=mysql_num_rows($query); if (!empty($row)) { $pagelen=30; $page=$_GET['page']; if(empty($page)) { $page=1; } //$sql="select * from drives_magazine order by id_magazine desc " ; //$query=mysql_query($sql); //$nums=mysql_num_rows($query); $totalpage=ceil($row/$pagelen); $goto =($page-1)*$pagelen; echo"<table class='table' width='100%'>"; echo " <tr><td> Goto ::"; for($i=1;$i<=$totalpage;$i++) { if($i==$page) echo"<b><font size='4'>$i</font></b>"; else echo "<a href=IntroForm_Admin2.php?page=$i&keyword=$keyword&OrderType=$OrderType> $i </a>"; } echo"<br><br></td><td>(ทั้งหมด $row รายการ)</td></tr></table>"; if (!empty($keyword)) { $keyword=$_GET[keyword]; $keyword = ereg_replace('[[:space:]]+', '', trim($keyword)); $OrderType=$_GET[OrderType]; if ($OrderType==6) { $query=mysql_query("select * from introdetail where Fname like '$keyword%' or Lname like '$keyword%' order by IntroID desc limit $goto,$pagelen"); } else { $query=mysql_query("select * from introdetail where OrderType='$OrderType' and Fname like '$keyword%' or Lname like '$keyword%' order by IntroID desc limit $goto,$pagelen"); } } else { $query=mysql_query("select * from introdetail order by IntroID desc limit $goto,$pagelen "); } $row=mysql_num_rows($query); ?> <table width="100%" border="1" cellpadding="3" cellspacing="0"> <tr bgcolor="#063171"> <td align="center" valign="middle" width="40"><font color="#FFFFFF"><strong>รหัส</strong></font></td> <td align="center" valign="middle" width="250"><font color="#FFFFFF"><strong>ชื่อเรื่อง</strong></font></td> <td align="left" valign="middle" width="112"><font color="#FFFFFF"><strong>ชื่อผู้แต่ง</strong></font></td> <td align="left" valign="middle" width="112"><font color="#FFFFFF"><strong>ISBN</strong></font></td> <td align="center" valign="middle"><font color="#FFFFFF"><strong>เลขเรียกหนังสือ</strong></font></td> <td align="center" valign="middle" width="90"><font color="#FFFFFF"><strong>ผู้แนะนำ</strong></font></td> <td align="center" valign="middle" width="90"><font color="#FFFFFF"><strong>สถานะการดำเนินการ</strong></font></td> <td align="center" valign="middle" width="30"><font color="#FFFFFF"><strong>แก้ไข</strong></font></td> <td align="center" valign="middle" width="30"><font color="#FFFFFF"><strong>ดูข้อมูล</strong></font></td> </tr> <? for ($i=1;$i<=$row;$i++) { $arr=mysql_fetch_array($query); $IntroID=$arr[IntroID]; $Fname=$arr[Fname]; $Lname=$arr[Lname]; $Title =$arr[Title]; $Author =$arr[Author]; $Publisher =$arr[Publisher]; $PulbilshYear =$arr[PulbilshYear]; $SourceStatus =$arr[SourceStatus]; $CallNumber =$arr[CallNumber]; $ISBN =$arr[ISBN]; $query2=mysql_query("select * from statustype where StatusTypeID = '$SourceStatus' "); $arr2=mysql_fetch_array($query2); $StatusTypeName=$arr2[StatusTypeName]; $StatusTypeID=$arr2[StatusTypeID]; $color=$arr2[color]; if ($i%2==0) { $cr="#fffce6"; } else { $cr="#FFFFFF"; } echo "<tr bgcolor='$cr'>"; echo "<td align='center'>$IntroID</td>"; echo "<td>$Title</td>"; echo "<td>$Author</td>"; echo "<td>$ISBN</td>"; echo "<td>$CallNumber</td>"; echo "<td >$Fname $Lname </td>"; echo "<td bgcolor=$color>$StatusTypeName </td>"; echo "<td bgcolor=$color> <a href=IntroForm_Edit.php?page=$page&keyword=$keyword&OrderType=$OrderType&Edit=$IntroID> <img src='images/editicon.png'> </a> </td>"; ?> <td valign="middle" align="center"> <a href="javascript:%20void%20window.open('IntroForm_ShowData.php?IntroID=<? echo"$IntroID";?>', 'new', 'menubar=no, toolbar=no, location=no, status=no, scrollbars=no, resizable=no, maximize=no, width=800, height=800');"><img src="images/Open-icon.png" width="20"> </a> </td> <? echo "</tr>"; // echo "<tr><td colspan='6'> </tr>"; } ?> </table> <p>หมายเหตุ::: สีแสดงสถานะการดำเนินการจัดซื้อ </p> <p><span style="background-color:#CCCCCC">สีเทา </span>หมายถึง อยู่ระหว่างพิจารณาจัดซื้อ </p> <p><span style="background-color:#ffff00">สีเหลือง </span>หมายถึง อยู่ระหว่างดำเนินการจัดซื้อ </p> <p><span style="background-color:#79d4fa">สีฟ้า </span >หมายถึง อยู่ระหว่างการเตรียมออกให้บริการ</p> <p><span style="background-color:#00ff00">สีเขียว </span >หมายถึง พร้อมให้บริการ (ดำเนินการจัดซื้อเสร็จแล้ว)<p><span style="background-color:#fb3131"> สีแดง </span> หมายถึง พิจารณาไม่จัดซื้อ </p> <span style="background-color:#FFCCFF"> สีชมพู </span> หมายถึง รองบประมาณปี59</p> <? } ?> </div> <!-- end news_content --> </div> <!-- end content-text --> </div> <!-- end content --> </article> <footer> <? include "footer.php";?> </footer> </body> </html>