kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
kameshwarcollege.ac.in
/
Upload FileeE
HOME
<?php //index.php session_start(); require_once("includes/settings.php"); require_once("includes/database.php"); require_once("includes/classes/db.cls.php"); require_once("includes/classes/sitedata.cls.php"); require_once("includes/functions/common.php"); require_once("includes/classes/Pages.cls.php"); require_once("includes/classes/DBquery.cls.php"); require_once("includes/classes/Menus.cls.php"); $db = new SiteData(); $dbObj = new dbquery(); $pageObj = new Pages(); $menuObj = new Menus(); $Dbqur = new dbquery(); $project_sql = mysql_query("select * from tbl_homecontent where id = 1 "); $hedrow = mysql_fetch_array($project_sql); if(isset($_GET['page'])){ $url = filter($_REQUEST['page']); $res = $pageObj->getPageByUrl($url); $total = $res['NO_OF_ITEMS']; $page_id = stripslashes($res['oDATA'][0]['page_id']); $page_name = stripslashes($res['oDATA'][0]['page_name']); $page_contents = stripslashes($res['oDATA'][0]['page_contents']); $page_type = stripslashes($res['oDATA'][0]['page_type']); $page_title = stripslashes($res['oDATA'][0]['page_title']); $page_metadesc = stripslashes($res['oDATA'][0]['page_metadesc']); $page_metakeywords = stripslashes($res['oDATA'][0]['page_metakeywords']); if($total == 0){redirect(SITE_HOME."index.php");} } if($_REQUEST['act']=='sendMail'){ if($_REQUEST['vercode']==$_SESSION["vercode"]){ $name = $_REQUEST['name']; $email = $_REQUEST['email']; $phone = $_REQUEST['phone']; $courses = $_REQUEST['courses']; $city = $_REQUEST['city']; $message = $_REQUEST['message']; $result = mysql_query("SELECT MAX(id) FROM tbl_registration"); $row = mysql_fetch_row($result); $highest_id = $row[0]+1; $new_val = sprintf("%04d",$highest_id); $roll = date('Y').$new_val; $query = $Dbqur->insertToDb("tbl_registration","rollno='$roll',`name`='$name', `fname`='$fname', `phone`='$phone', `email`='$email', `studyingin`='$courses', `city`='$city', `message`='$message'"); $email_from = $email; // Who the email is from $email_subject = "New Enquiry for Atmiya Vidya Niketan"; // The Subject of the email $email_message .= "Name : ".$name."<br>"; $email_message .= "Email Address : ".$email."<br>"; $email_message .= "Phone No : ".$mob."<br>"; $email_message .= "Studying In: ".$courses."<br>"; $email_message .= "Living in : ".$city."<br>"; $email_message .= "Message/Query : ".$message."<br>"; // $a = "adhsupport@gmail.com"; $a = "avn3609@gmail.com"; $email_to = $a; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: ".$email_from. "\r\n"; $headers .= "CC: ".$email. "\r\n"; $ok = @mail($email_to, $email_subject, $email_message, $headers); if($ok) { ?> <script>window.location="apply-online.php?msg=success";</script> <?php }else{ header("location:apply-online.php?msg=errcode"); } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> <title><?=$page_title?></title> <meta name="keywords" content="<?=$page_metakeywords?>" /> <meta name="description" content="<?=$page_metadesc?>" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="copyright" content="Copyright 2019 Kameshwar College of Education"/> <meta name="ROBOTS" content="index,follow"/> <meta name="revisit-after" content="3 days"/> <meta name="document-classification" content="Kameshwar College of Education | B.Ed. M.Ed. College Ahmedabad, India"/> <meta name="publisher" content="http://www.kameshwareducation.org/"/> <meta name="author" content="http://www.kameshwareducation.org/"/> <meta name="copyright" content="http://www.kameshwareducation.org/"/> <meta name="language" content="en-us"/> <meta name="distribution" content="GLOBAL"/> <meta name="geo.region" content="INDIA"/> <meta name="geo.placename" content="Ahmedabad, India"/> <?php include("css.php");?> </head> <body> <div id="page"> <?php include("header.php");?> <div class="page-header" style="background:url(img/bback.jpg)0px 0px;"> <div class="breadcrumb-box"> <div class="container"> <div class="section-title text-left animated fadeInUp visible" data-animation="fadeInUp"> <h2 class="title">Admission Enquiry</h2> </div> </div> </div> </div> <!-- slider --> <section id="additional" class="page-section"> <div class="container"> <div class="row"> <!--<h3 class="title" align="center">NEWS & EVENTS</h3>--> <div class="col-md-12"> <!-- Content --> <div data-animation="fadeInDown" class="animated fadeInDown visible"> <div class="col-md-9"> <div align="justify"> <div class="bg-3"> <form role="form" name="contactform" method="post" enctype="multipart/form-data" > <input type="hidden" name="act" value="sendMail"> <div class="form-group"> <?php if($_REQUEST['msg'] == "success") { ?> <div class="alert alert-success" align="center" style="padding: 10px;background: #b22222;color: #fff;margin: 5px;"> <strong>ThankYou!</strong> We will get back to you soon. </div> <?php } ?> </div> <div class="form-group"> <input type="text" name="name" id="textfield" class="form-control" pattern="[A-Za-z ]{1,32}" placeholder="Name*" required> </div> <div class="form-group"> <input type="email" name="email" id="textfield2" class="form-control" placeholder="Email ID*" required> </div> <div class="form-group"> <input type="text" name="phone" pattern="[6-9]{1}[0-9]{9}" title="Invalid Mobile Number" id="textfield3" class="form-control" placeholder="Mobile*" required> </div> <div class="form-group"> <select name="courses" class="form-control bg-white" required > <option value="" disabled="" selected="">Studying in*</option> <?php $cosque=mysql_query("SELECT * from tbl_course WHERE status=1 "); while($crec=mysql_fetch_array($cosque)){ ?> <option value="<?=$crec['cosname'];?>" ><?=$crec['cosname'];?></option> <?php } ?> <!-- <option value="Jr. KG" >Jr. KG</option> <option value="KG" >KG</option> <option value="Class I">Class I</option> <option value="Class II">Class II</option> <option value="Class III">Class III</option> <option value="Class IV">Class IV</option> <option value="Class V">Class V</option> <option value="Class VI">Class VI</option> <option value="Class VII">Class VII</option> <option value="Class VIII">Class VIII</option> --> </select> </div> <div class="form-group"> <input type="text" name="city" id="textfield6" class="form-control" placeholder="City"> </div> <div class="form-group"> <textarea name="message" rows="3" id="textfield5" class="form-control bg-white" style="resize:none" placeholder="Message/Query"></textarea> </div> <div class="form-group"> <div class=""><label> <span style="float:left; padding:0px 0px 0 0"> <img src="captcha.php" align="absmiddle" style="border:1px solid #d9d9d9;" alt="captcha"></span> <input name="vercode" type="text" class="form-control form-field" id="textfield6" style="width:120px;margin:0" placeholder="Enter Code" required=""></label> <input name="Submit" type="submit" class="top_cont btn btn-primary btn1" value="Submit"> </div> </div> <div class="form-group" align="center"> </div> </form> </div> </div> </div> <div class="col-md-3"> <div class="quicknav"> <h2 class="h2" style="margin-bottom:15px;margin-top:0;font-size:20px;"> <i class="fa fa-check-circle" style=" background: #ff7790; color: #ffffff;border-radius: 7px;padding: 3px 4px;"></i> <span>Quick Links</span></h2> </div> <?php $get_menu = $dbObj->fetch_data("ihm_menus", "menu_page = $page_id"); $get_all_sub_menu = $dbObj->fetch_data("ihm_menus", "menu_pid = '".$get_menu[0]['menu_pid']."'","menu_position asc, menu_name asc"); //echo $get_all_sub_menu[0]['menu_name'];exit; ?> <?php //include('includepage/major_macilities_left_menu.php');?> <div class="propertyTypesWidget sidebarWidget" > <ul> <?php foreach($get_all_sub_menu as $key){ if(is_numeric($key['menu_page'])){ $get_page_url = $dbObj->fetch_data("ihm_pages","page_id = '".$key['menu_page']."'"); ?> <a href="page.php?page=<?=$get_page_url[0]['page_url'];?>"><li <?php if($_REQUEST['page'] == $get_page_url[0]['page_url']){?>class="active"<?php } ?> > <?=$key['menu_name'];?> </li> </a> <?php }else{ ?> <a href="<?=$key['menu_page'];?>"> <li> <?=$key['menu_name'];?> </li></a> <?php } } ?> </ul> </div> </div> </div> </div> </div> </div> <div class="clearfix"></div> </section> <?php include("footer.php"); ?> <!-- footer --> </div> <?php include("js.php");?> </body> </html>