MINI MINI MANI MO

Path : /home/phaetpan/domains/phaetpanya.com/public_html/
File Upload :
Current File : /home/phaetpan/domains/phaetpanya.com/public_html/career.php

<!DOCTYPE html>
<?php
session_start();
if($_POST['sendmail']){
	if(isset($_POST['g-recaptcha-response']) && !empty($_POST['g-recaptcha-response']))     
	{
		$secret = '6LfbmysUAAAAAKu410w3TDQb51wQqNWS7nRfz2Kj';
        //get verify response data
        $verifyResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secret.'&response='.$_POST['g-recaptcha-response']);
        $responseData = json_decode($verifyResponse);
		
		include("vibharamadmin/connect.php");
		$strSQL12 = "SELECT * FROM footer WHERE footer_id = 2";
		$objQuery12 = mysqli_query($objCon,$strSQL12);
		$objResult12 = mysqli_fetch_array($objQuery12,MYSQLI_ASSOC);

	   if($responseData->success)
		{
		
			$fname=$_REQUEST['fname'];  
			$lname=$_REQUEST['lname'];  
			$email=$_REQUEST['email'];
			$tel=$_REQUEST['tel'];
			$position=$_REQUEST['position'];
			$emailcontact = $objResult12["footer"];           
			$add=$_REQUEST['add']; 
			$content=$_REQUEST['content'];
			
			if (($fname=="")||($lname=="")||($email=="")||($tel=="")||($add=="")||($content==""))
				{
				echo "All fields are required, please fill <a href=\"\">the form</a> again.";
				}
			else{

			$strSQL = "SELECT * FROM contact WHERE contact_id = 1";   
			$objQuery = mysqli_query($objCon,$strSQL);
			$objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC);
			$contact = $objResult["add1"];

			$strSQL = "INSERT INTO career_job";         
			$strSQL .="(fname,lname,email,tel,position,address,content) VALUES ('".$_POST["fname"]."','".$_POST["lname"]."','".$_POST["email"]."','".$_POST["tel"]."','".$_POST["position"]."','".$_POST["add"]."','".$_POST["content"]."')"; 
			$objQuery = mysqli_query($objCon,$strSQL);
			
			$siteTitle = "Vibharam Hospital";
								 
			$msgSubject =  "Vibharam Hospital";
			$strSubject = "=?UTF-8?B?".base64_encode($msgSubject)."?=";
			
			$strHeader  = "MIME-Version: 1.0\r\n";
			$strHeader .= "Content-type: text/html; charset=utf-8\r\n";
			$strHeader .= "From: $emailcontact\r\n";
			$strHeader .= "Reply-To: $emailcontact\r\n";
			$strHeader .= "Contact: Vibharam Hospital";
		
			$strMessage = "<html xmlns=\"http://www.w3.org/1999/xhtml\">
			<head>
			<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
			<title>Vibharam Hospital</title> 
			<style type=\"text/css\" media=\"screen\">
			body,td,th {
				font-family: Verdana, Geneva, sans-serif;
				font-size: 13px; line-height:130%;
				color: #000000;
			}
			</style>
			</head>
			<body>
			<center><img src=\"http://phaetpanya.com/demo/images/logo-vibharam.png\"/></center>   
			<p>ขอบคุณที่สนใจร่วมงานกับโรงพยาบาลวิภาราม ขณะนี้ทางเราได้รับข้อความจากท่านแล้ว จะรีบดำเนินการและติดต่อกลับไป</p>

			<table width=\"100%\" border=\"1\" bordercolor=\"#003366\" cellpadding=\"5\" cellspacing=\"1\">
			  <tr>
				<th colspan=\"2\" bgcolor=\"#168C48\"><font color=\"#FFFFFF\">สมัครงาน</font></th>
			  </tr>
			  <tr>
				<td colspan=\"2\"><strong>ชื่อ-นามสกุล</strong> : ".$fname." ".$lname."</td>
			  </tr>
			  <tr>
				<td colspan=\"2\"><strong>อีเมล</strong> : ".$email."</td>
			  </tr>
			  <tr>
				<td colspan=\"2\"><strong>เบอร์โทร</strong> : ".$tel."</td>
			  </tr>
			  <tr>
				<td colspan=\"2\"><strong>ตำแหน่ง</strong> : ".$position."</td>
			  </tr>
				<tr>
				<td colspan=\"2\"><strong>ที่อยู่</strong> : ".$add."</td>
			  </tr>
			  <tr>
				<td colspan=\"2\"><strong>รายละเอียด</strong> : ".$content."</td>
			  </tr> 
			</table>
			<br />
			<hr style=\"color:#FF6600\" />
			".$contact." 
			</body>
			</html>";
		
			require 'class.phpmailer.php';

			$mail = new PHPMailer();
			$mail->CharSet = "utf-8";
			$mail->From = $emailcontact;
			$mail->FromName = "Vibharam Hospital";
			$mail->Host = "smtp.gmail.com";
			$mail->Port = 587;
			$mail->SMTPSecure = 'tls';
			$mail->SMTPAuth = true;
			$mail->IsSMTP();
			$mail->Mailer = "smtp";
			$mail->Username = "online@phaetpanya.com";
			$mail->Password = "1234567";
			
			$mail->AddAddress($emailcontact,"Vibharam Hospital");
			$mail->AddReplyTo('info@phaetpanya.com', 'Vibharam Hospital');

			$mail->AddAddress($email , $fname);
			$mail->AddAddress("info@phaetpanya.com" , "Vibharam Hospital");
			
			$mail->WordWrap = 50;                                 
			$mail->Subject = $msgSubject;
			$mail->msgHTML($strMessage);
					
			if($mail->Send())
			{
				echo '<script type="text/javascript">alert("Thank you ! Your message has been sent.");</script>';
				echo '<script type="text/javascript">window.location = \'http://phaetpanya.com/demo/career\'</script>';
			}
			else
			{
				echo '<script type="text/javascript">alert("Message Error !");</script>';
				echo '<script type="text/javascript">window.location = \'http://phaetpanya.com/demo/career\'</script>';
			}	
				
			}
		}
	}
	else
		{
			echo '<script type="text/javascript">alert("Recaptcha must be filled out");</script>';
			echo '<script type="text/javascript">window.location = \'http://phaetpanya.com/demo/career\'</script>';
		}
}
?>
<?php  
if($_SESSION['lang'] == "") $_SESSION['lang'] = "th" ;    
?>
<html dir="ltr" lang="en-US">
<head>

	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="" />
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />

	<!-- Stylesheets
	============================================= -->
	<link href="http://fonts.googleapis.com/css?family=Lato:300,400,600,700|Montserrat:400,700|Crete+Round:400italic" rel="stylesheet" type="text/css" />
    <link href="https://fonts.googleapis.com/css?family=Kanit" rel="stylesheet">
	<link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
	<link rel="stylesheet" href="css/style.css" type="text/css" />
	<link rel="stylesheet" href="css/swiper.css" type="text/css" />

	<!-- Medical Demo Specific Stylesheet -->
	<link rel="stylesheet" href="css/medical.css" type="text/css" />
	<!-- / -->

	<link rel="stylesheet" href="css/dark.css" type="text/css" />
	<link rel="stylesheet" href="css/font-icons.css" type="text/css" />
	<link rel="stylesheet" href="css/medical-icons.css" type="text/css" />
	<link rel="stylesheet" href="css/animate.css" type="text/css" />
	<link rel="stylesheet" href="css/magnific-popup.css" type="text/css" />

	<link rel="stylesheet" href="css/fonts.css" type="text/css" />

	<link rel="stylesheet" href="css/responsive.css" type="text/css" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<?php
		if($_SESSION["lang"] == "th")
		{
			?><link href="css/th.css" rel="stylesheet"><?php
		}
		elseif($_SESSION["lang"] == "en")
		{
			?><link href="css/en.css" rel="stylesheet"><?php
		}
		elseif($_SESSION["lang"] == "cn")
		{
			?><link href="css/cn.css" rel="stylesheet"><?php
		}
		elseif($_SESSION["lang"] == "jp")
		{
			?><link href="css/jp.css" rel="stylesheet"><?php
		}
		elseif($_SESSION["lang"] == "mm")
		{
			?><link href="css/mm.css" rel="stylesheet"><?php
		}
		elseif($_SESSION["lang"] == "ara")
		{
			?><link href="css/ara.css" rel="stylesheet"><?php
		}
	?>
	<!--[if lt IE 9]>
		<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
	<![endif]-->

	<link rel="stylesheet" href="css/colors.php?color=168c48" type="text/css" />

	<?php include "include/titledata.php"; ?>
	<!-- Document Title
	============================================= -->
	<title><?php echo $title8;?></title>
	<!-- KEYWORDS -->
	<meta name="keywords" content="<?php echo $key8;?>" />
	<!-- DESCRIPTION -->
	<meta name="description" content="<?php echo $des8;?>" /> 

 <style>
 .form-control.error { border: 2px solid red; }
 #primary-menu ul li#career > a, li#career a { color:#FFF!important; font-weight: 600; }
 </style>
<script src='https://www.google.com/recaptcha/api.js'></script>
 
</head>

<body class="stretched"> 
	
	<!-- Document Wrapper
	============================================= -->
	<div id="wrapper" class="clearfix">   
		<?php include "header.php"; ?> 
	
		<!-- Page Title
		============================================= -->
		<section id="page-title">

			<div class="container clearfix"> 
				<ol class="breadcrumb">
					<li><a href="index.php">หน้าแรก </a></li>
                    <li>ร่วมงานกับเรา</li> 
				</ol>
			</div>

		</section><!-- #page-title end -->

		<!-- Content
		============================================= -->
		<section id="content">

			<div class="content-wrap">

				<div class="container clearfix">
                
                
					<div class="promo promo-light bottommargin col_last"> 
							<h3><?php echo $key8;?> </h3> 
                      		 <h4><?php echo $des8;?></h4>
					</div>
                    
					<div class=" col-md-12 bottommargin-sm">
				<?php
					$strSQL = "SELECT * FROM career ORDER BY career_id ASC";
					$objQuery = mysqli_query($objCon,$strSQL);							
				?>
				<?php
					while($objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC))    
					{ 
					?>
						<?php 
							if($objResult["status"] == "1") 
							{
								?>
                                <div class="career-avariable col-md-6 nobottommargin">
                                
									<div class="fancy-title title-bottom-border">
										<h3 class="color"><?php echo $objResult["title"];?></h3> 
									</div>
									<p><?php echo $objResult["sub"];?></p>
									<div class="accordion accordion-bg clearfix">
										<div class="acctitle"><i class="icon-star3"></i> <?php echo $re ;?></div>
										<div class="acc_content clearfix">
											<?php echo $objResult["content"];?>
										</div>
									</div>
									<div class="divider divider-short"></div>
                                    
                                 </div>
								<?php
							}
						?>
					<?php
					}
				?>
				</div>
				

				</div>

			</div>

		</section><!-- #content end -->
 
  <?php include "footer.php"; ?>   
	</div><!-- #wrapper end --> 
	<!-- Go To Top ========================= -->
	<div id="gotoTop" class="icon-angle-up"></div>
  
</body>
</html>

OHA YOOOO