Server IP : 202.29.229.35 / Your IP : 3.16.206.12 Web Server : Apache System : Linux aapanel2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : www ( 1001) PHP Version : 5.5.38 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.ivecr2.ac.th/system_admin/ |
Upload File : |
<?php session_start(); if($_SESSION['r_statuslogin'] != 1){ echo '<script language="javascript">alert("สำหรับผู้ดูแลระบบเท่านั้น")</script>'; echo'<meta http-equiv="refresh" content="0;url=../index.php">'; exit(); } include('connect/connect.php'); //include('connect/function.php'); $wrokID=$_SESSION['r_workId'];//รหัสงาน $adminID=$_SESSION['r_adID'];//รหัส ad $queryperlogin = "select * from tbl_datatecher1 where tecNumber='$adminid' "; $resultperlogin=mysqli_query($connect1,$queryperlogin); $rsperteclogin=mysqli_fetch_assoc($resultperlogin); $tecPrefixThailogin=$rsperteclogin['tecPrefixThai'];//คำนำหน้าชื่อ $selectworklogin = $rsperteclogin['selectwork'];//กลุ่มงาน //คำนำหน้าชื่อ $sqlpflogin="select * from ref_prefix_name where PREFIX_NAME_ID=$tecPrefixThai"; $resulpflogin=mysqli_query($connect1,$sqlpflogin); $rspflogin=mysqli_fetch_assoc($resulpflogin); $tecPrefixThaiorilogin=$rspflogin['FULLNAME']; //ชื่อกลุ่มงาน $sqlworklogin="select * from tbl_departmentall where daNodpt='$selectworklogin' "; $resqlworklogin=mysqli_query($connect1,$sqlworklogin); $rsworklogin=mysqli_fetch_assoc($resqlworklogin); $worknamelogin = $rsworklogin['daFname']; $tecnamelogin=$tecPrefixThaiorilogin." ".$rsperteclogin['tecFnameThai']." ".$tecLnamelogin=$rsperteclogin['tecLnameThai']." (".$worknamelogin.")"; ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="style.css" /> <!------------นำเมาส์ชี้ที่่รูปแล้วเกิดภาพซ้อน-------------------> <style type="text/css"> /*Credits: Dynamic Drive CSS Library */ /*URL: http://www.dynamicdrive.com/style/ */ .thumbnail{ position: relative; z-index: 0; } .thumbnail:hover{ background-color: transparent; z-index: 50; } .thumbnail span{ /*CSS for enlarged image*/ position: absolute; background-color: lightyellow;/* สีขอบรูปใหญ่ */ padding: 5px; /*ขนาดเส้นกรอบ */ left: -1000px; border: 1.5px dashed gray; /*ขนาดและสีเส้นปะ*/ visibility: hidden; color: black; text-decoration: none ; } .thumbnail span img{ /*CSS for enlarged image*/ border-width: 0; padding: 2px; } .thumbnail:hover span{ /*CSS for enlarged image on hover*/ visibility: visible; top: 0; left: 60px; /*รูปเยื้องทางซ้าย*/ } .style24 {color: #FFFFFF} </style> <!----------------------------> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> <table width="500" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="top"><form action="?i=SlidepicIns" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="500" border="0" align="center" cellpadding="0" cellspacing="5"> <tr> <td colspan="2" align="center" valign="top">ฟอร์ม Upload File </td> </tr> <tr> <td width="150" align="right" valign="top">ชื่อป้ายโฆษณา : </td> <td width="350" align="left" valign="top"><label for="title"></label> <span id="sprytextfield1"> <input name="title" type="text" id="title" size="50" maxlength="90" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> </tr> <tr> <td align="right" valign="top">link เว็บไซต์ :</td> <td align="left" valign="top"><input name="linkweb" type="text" id="linkweb" size="50" /></td> </tr> <tr> <td width="150" align="right" valign="top">แนบไฟล์ : </td> <td width="350" align="left" valign="top"><input name="filedocument" type="file" id="filedocument" size="20" /></td> </tr> <tr> <td align="right" valign="top"> </td> <td align="left" valign="middle"><font color="#FF0000">ขนาดรูป 750x246px.(.jpg เท่านั้น)</font></td> </tr> <tr> <td align="right" valign="top">Upload File โดย : </td> <td align="left" valign="middle"><?php echo $tecnamelogin;?></td> </tr> <tr> <td width="150" align="right" valign="top"> </td> <td width="350" align="left" valign="top"> <input type="submit" name="Submit" value="บันทึก" /> <input type="reset" name="Submit2" value="ยกเลิก" /></td> </tr> </table> </form></td> </tr> </table> <p align="center"> </p> <table width="800" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <td width="20" height="28" align="center" valign="middle" bgcolor="#EBEBEB"> </td> <td colspan="3" align="center" valign="middle" bgcolor="#EBEBEB">ชื่อป้ายโฆษณา</td> <td width="152" align="center" valign="middle" bgcolor="#EBEBEB">วันที่อัพไฟล์</td> </tr> <?php if($wrokID == 1 || $wrokID == 5){ $sql="select * from tbl_imageslde order by id desc"; }else{ $sql="select * from tbl_imageslde where dp_ID='$adminID' order by id desc"; echo $sql; } $result=mysqli_query($connect1,$sql); $num=mysqli_num_rows($result); while($rs=mysqli_fetch_assoc($result)){ $filedocument=$rs['file']; $date=displaydate($rs['date']); $file=$rs['file']; $dp_ID=$rs['dp_ID']; $queryper = "select * from tbl_datatecher1 where tecNumber='$dp_ID' "; //echo $queryper; $resultper=mysqli_query($connect1,$queryper); $rspertec=mysqli_fetch_assoc($resultper); $tecPrefixThai=$rspertec['tecPrefixThai'];//คำนำหน้าชื่อ $selectwork = $rspertec['selectwork'];//กลุ่มงาน //คำนำหน้าชื่อ $sqlpf="select * from ref_prefix_name where PREFIX_NAME_ID=$tecPrefixThai"; $resulpf=mysqli_query($connect1,$sqlpf); $rspf=mysqli_fetch_assoc($resulpf); $tecPrefixThaiori=$rspf['FULLNAME']; //ชื่อกลุ่มงาน $sqlwork="select * from tbl_departmentall where daNodpt='$selectwork' "; $resqlwork=mysqli_query($connect1,$sqlwork); $rswork=mysqli_fetch_assoc($resqlwork); $workname = $rswork['daFname']; $workusername=$tecPrefixThaiori." ".$rspertec['tecFnameThai']." ".$tecLname=$rspertec['tecLnameThai']." (".$workname.")"; //------------------¡ÒÃÊÅѺÊբͧá¶Ç-------------------------------------- if($bg == "#F5F5F5") { //Êèǹ¢Í§¡Òà ÊÅѺÊÕ $bg = "#FDFDFD"; } else { $bg = "#F5F5F5"; } ?> <tr bgcolor="<?php echo $bg?>" > <td width="20" align="center" valign="middle" bgcolor="<?php echo $bg?>"><img src="images/icon07.png" width="20" height="12" /></td> <td width="559" align="left" valign="top" bgcolor="<?php echo $bg?>"> <?php if($rs['status_ori'] == 0){ ?><font color="#000000"><?php echo $rs['title'];?></font><?php }else{ ?><font color="#FF0000"><?php echo $rs['title'];?></font><?php } ?> >> <a class="thumbnail" href="#">ดูตัวอย่าง<span><img width="400" src="imageSlide/<?php echo $file ?>" /><br /> </span></a> <font color="#0099FF" size="-2"><i>เพิ่มข้อมูลโดย : <?php echo $workusername." (".$workname.")";?></i></font></td> <td width="39" align="center" valign="top" bgcolor="<?php echo $bg?>"><?php if($rs['status_ori'] == 0){ ?> <a href="?i=slideupdstatus&st=1&slideid=<?php echo $rs['id'];?>">ซ่อน</a> <?php }else{ ?> <a href="?i=slideupdstatus&st=0&slideid=<?php echo $rs['id'];?>">แสดง</a><?php } ?></td> <td width="24" align="center" valign="top" bgcolor="<?php echo $bg?>"><a href="index.php?i=delSlidepic&id=<?php echo $rs['id'];?>"><img src="images/33333.jpg" width="18" height="16" border="0" /></a></td> <td width="152" align="center" valign="top" bgcolor="<?php echo $bg?>">เมื่อ :: <?php echo $date;?></td> </tr> <?php /**/ $num--; } ?> </table> <script type="text/javascript"> var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); </script>