korsygfhrtzangaiide
Elepffwdsff
/
home3
/
nmslyumy
/
public_html
/
odishaexpress
/
template
/
Upload FileeE
HOME
<div class="content"> <div class="container"> <div class="col-sm-12"> <ol class="breadcrumb"> <li><a href="#">Home</a></li> <li><a href="#">Page</a></li> <li class="active"><?php echo str_replace(".html","",$_GET["p2"]);?></li> </ol> </div> <?php $ppp=str_replace(".html","",str_replace("-"," ",$_GET["p2"])); ?> <?php if($ppp=="contact"){ $cnt=$conn->query("select its_adr1 from its_contact"); $cnd=$cnt->fetch_array(); ?> <div class="col-sm-12"> <div class="col-sm-6"> <?php echo str_replace("09668079646","",$cnd['its_adr1']);?> </div> <?php if(isset($_POST["enq"])){ $to = "samirkumarjena@gmail.com"; $subject = "Odisha Express Enquiry"; $message ='<!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="600" height="112" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="135" height="32"><strong>Name :</strong></td> <td width="465">'.$_POST["name"].' </td> </tr> <tr> <td height="26"><strong>Email :</strong></td> <td>'.$_POST["email"].'</td> </tr> <tr> <td height="24"><strong>Mobile : </strong></td> <td> '.$_POST["phno"].'</td> </tr> <tr> <td><strong>Message : </strong></td> <td>'.$_POST["msg"].'</td> </tr> </table> </body> </html> '; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers $headers .= 'From: <info@odishaexpress.com>' . "\r\n"; mail($to,$subject,$message,$headers); $msg="Request Send Successfully "; } ?> <form method="post"> <div class="col-sm-6"> <?php if(!empty($msg)){?> <div style="color:green;font-weight:bold;"><?php echo $msg;?></div> <?php } ?> <div class="panel panel-primary"> <div class="panel-heading">Get a Free Enquiry</div> <div class="panel-body"> <label><strong>NAME</strong></label> <input type="text" name="name" style="width:100%;" required /> <label><strong>EMAIL</strong></label> <input type="email" name="email" style="width:100%;"/> <label><strong>MOBILE</strong></label> <input type="number" name="phno" style="width:100%;" required /> <label><strong>MESSAGE</strong></label> <textarea style="width:100%;height:100px;" name="msg" required></textarea> <label></label><br /> <input type="submit" name="enq" value="Send Enquery" class="btn btn-primary" /> </div> </div> </div> </form> </div> <?php } else{ //get page link /* $plink=$conn->query("select its_pagelink from its_menu where its_menuname='$ppp'"); $plinkd=$plink->fetch_array(); $piid=$plinkd["its_pagelink"]; if($piid==""){ $plink=$conn->query("select its_pagelink from its_submenu where its_submenuname='$ppp'"); $plinkd=$plink->fetch_array($plink); $piid=$plinkd["its_pagelink"]; } if($piid==""){ $plink=$conn->query("select its_pagelink from its_innermenu where its_innermenuname='$ppp'"); $plinkd=$plink->fetch_array($plink); $piid=$plinkd["its_pagelink"]; } if($piid==""){ $plink=$conn->query("select its_pagelink from its_footmenu where its_footermenu='$ppp'"); $plinkd=$plink->fetch_array(); $piid=$plinkd["its_pagelink"]; } */ if($piid==""){ $plink=$conn->query("select its_page from its_implink where its_linkname='$ppp'"); $plinkd=$plink->fetch_array(); $piid=$plinkd["its_page"]; } //get details from page $pg=$conn->query("select * from its_page where its_pid='$piid'"); $pgd=$pg->fetch_array(); ?> <div class="col-sm-12"> <?php echo $pgd["its_content"];?> </div> <?php } ?> </div> </div>