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/regisjob/ |
Upload File : |
<!DOCTYPE html> <!-- saved from url=(0061)https://rid.thaijobjob.com/landing/landingwork.php?y=2021&a=1 --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>มหาวิทยาลัยราชภัฎสงขลา</title> <script src="js/jquery.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/bootbox.min.js"></script> <link rel="stylesheet" href="css/bootstrap.min.css"> <link href="landingwork_files/style.css" rel="stylesheet"> <title>มหาวิทยาลัยราชภัฎสงขลา</title> <style type="text/css"> /*header area*/ .top-header{ /*background: #fff !important;*/ position: static; width: 100%; z-index: 99999; /* background-image: url('assets/img/topHeaderrgb(89,172,255),rgb(89,172,255).jpg'); */ height: 25%; background-image: linear-gradient(rgb(89,172,255), rgb(89,172,255)); } .footer { height: 10%; display: block; background-color: lightblue; text-align: center; /* background-image: url('assets/img/footerrgb(89,172,255),rgb(89,172,255).jpg'); */ background-image: linear-gradient(rgb(89,172,255), rgb(89,172,255)); width:100%; left:0; bottom:0; } .list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { z-index: 2; color: #fff; background-color: #82b8e6; border-color: #337ab7; } .menulist .active { background: #99FF33; border: #000000; } .menulist li:hover{ background: #bdd5ea; } .panel-default > .panel-heading { color: #fff; background-color: #63aff1; font-size: 25px; /* border: 1px solid ; */ } .panel-default > .panel-heading2 { color: #FFFFFF; background-color: #CC0000; font-size: 28px; /* border: 1px solid ; */ } .imgHead{ height: 30%; width: 30%; } </style> </head> <?php include("include/connect.php"); ?> <?php //CONNECT /* $conn=mysqli_connect("localhost","root","","jobregis"); mysqli_query($conn, "SET NAMES UTF8"); // Create connection $conn=mysqli_connect("localhost","root","","jobregis"); mysqli_query($conn, "SET NAMES UTF8"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } */ //-------------------------ฟังก์ชันดึงข้อมูลสำหรับวนloop----------------------// function records($conn,$sql){ //ฟังก์ชันดึงข้อมูลสำหรับวนloop unset($data); $result=mysqli_query($conn,$sql); $rows=mysqli_num_rows($result); for($i=0;$i<$rows;$i++){ //mysql_data_seek($result,$i); $data[$i]=mysqli_fetch_array($result,MYSQLI_ASSOC); } return $data; } ?> <?php function DateThai($strDate) { $strYear = date("Y",strtotime($strDate))+543; $strMonth= date("n",strtotime($strDate)); $strDay= date("j",strtotime($strDate)); $strHour= date("H",strtotime($strDate)); $strMinute= date("i",strtotime($strDate)); $strSeconds= date("s",strtotime($strDate)); $strMonthCut = Array("","ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."); $strMonthThai=$strMonthCut[$strMonth]; return "$strDay $strMonthThai $strYear"; } //echo $strDate = "2008-08-14 13:42:44"; ?> <body> <!-- header --> <div class="top-header"> <div class="container"> <div class="row"> <div class="col-md-12 form-inline center-text"> <div class="form-group"> <a href=""><img class="img-responsive " src="pic/logo.png" alt=""> </a> </div> </div> <div class="col-md-12 form-inline center-text"> <h2 style="color:#FFF">ระบบรับสมัครงาน มหาวิทยาลัยราชภัฏสงขลา</h2> <h4 style="color:#FFF">Songkhla Rajabhat University</h4> </div> </div> </div> </div> <!-- end header --> <!--layout menu --> <div class="container" style="margin-bottom:40px;"> <div class="row" style="padding-top: 20px;"> <div class="col-md-12"> <!-- information --> <section class="panel panel-default" style="margin-top:20px;"> <header> </header> <?php /* Example ตัวอย่างการใช้งาน $data=records($conn,"SELECT * FROM jobposition,jobpee WHERE jobposition.pee_id=jobpee.pee_id AND jobpee.pee_std='1' ORDER BY job_id DESC"); for($i=0;$i<count($data);$i++){ //echo $name=$data[$i]['job_name'];//คือ ตัวแปรเก็บข้อมูลด้านขวา = ชื่อฟิวส์ในตารางที่ต้องการแลดง //------------------------ end ฟังก์ชันดึงข้อมูลสำหรับวนloop----------------------// */ $data="SELECT * FROM jobposition,jobpee WHERE jobposition.pee_id=jobpee.pee_id AND jobpee.pee_std='1' ORDER BY job_id DESC"; $qu=mysqli_query($conn,$data); $nu=mysqli_num_rows($qu); if($nu<>'0'){ $i=0; while($result=mysqli_fetch_array($qu,MYSQLI_ASSOC)) { $b=$i+1; $i++; ?> <div class="bs-callout2 bs-callout-danger"> <center> <a href="submenu.php?job_id=<?php echo $result['job_id'];?>"> <h2><font color="#0000FF"><?php echo "รับสมัครตำแหน่ง ".$name=$result['job_name']." "."ครั้งที่ ".$result['pee_data']."/".$result['pee_number'];?></font> <img src="./landingwork_files/news.gif" alt="" width="50px" style="margin-top:-5px"><br> ( เปิดรับสมัครวันที่ <font color="#c70000"> <?php echo DateThai($strDate=$result['job_start']);?> - <?php echo DateThai($strDate=$result['job_end']);?> </font> ) </h2></a> </center> </div> <?php } ?> <?php }else{ echo "ไม่พบข้อมูล"; } ?> </section> </div> <br> <div class="col-md-9 col-md-offset-3" style="align:left; padding-top: 5px;"> </div> </div> </div> <!-- footer starts here --> <?php include("admin/foot.php");?> <!-- footer --> </body> </html>