kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
aadharshilasouth.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"); $conn = mysqli_connect(SYSTEM_DBHOST,SYSTEM_DBUSER,SYSTEM_DBPWD,SYSTEM_DBNAME); $db = new SiteData(); $dbObj = new dbquery(); $pageObj = new Pages(); $menuObj = new Menus(); $Dbqur = new dbquery(); $project_sql = mysqli_query($conn, "select * from tbl_homecontent where id = 1 "); $hedrow = mysqli_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");} } //name, dob, email, phone, address, yop, courses, teacher, occu, salary, country, school, memories, donate, adoptation, //amount, bank if($_REQUEST['act']=='Submit'){ //echo "aaaa";exit; if ($_FILES['img']['name'] != "") { $path2 = "upload"; $delpath = $path2 . "/" . $_POST['T2']; @unlink($delpath); $s1 = rand(); $realname = $_FILES['img']['name']; $filetype = $_FILES['img']['type']; $realname = $s1 . "_" . $realname; $dest = $path2 . "/" . $realname; if(($filetype=='image/jpg')||($filetype=='image/jpeg')||($filetype=='image/JPG')||($filetype=='image/JPEG')||($filetype=='image/PNG')||($filetype=='image/png')){ move_uploaded_file($_FILES['img']['tmp_name'], $dest); $img_name = trim($realname); $img = $img_name; }else { echo "Invaild Image Format!Please Enter the correct Image Format";exit(); } } $name = $_REQUEST['name']; //$dob1 = $_REQUEST['dob']; $email = $_REQUEST['email']; $phone = $_REQUEST['phone']; $address = $_REQUEST['address']; $yop = $_REQUEST['yop']; $courses = $_REQUEST['courses']; $teacher = $_REQUEST['teacher']; $favteacher = $_REQUEST['favteacher']; $occu = $_REQUEST['occu']; $salary = $_REQUEST['salary']; $country = $_REQUEST['country']; $school = $_REQUEST['school']; $memories = $_REQUEST['memories']; $donate = $_REQUEST['donate']; $adoptation = $_REQUEST['adoptation']; $amount = $_REQUEST['amount']; $bank = $_REQUEST['bank']; $date = date("Y-m-d"); //$var = '20/04/2012'; $old_date = explode('/', $_REQUEST['dob']); $dob = $old_date[2].'-'.$old_date[1].'-'.$old_date[0]; $sql=mysqli_query($conn,"select * from tbl_alumni where phone= '$phone'"); $count = mysqli_num_rows($sql); if($count==0){ $query = $Dbqur->insertToDb("tbl_alumni","name='$name',`dob`='$dob', `email`='$email', `phone`='$phone', `address`='$address', `yearpass`='$yop', `stream`='$courses', `classteacher`='$teacher', `occupation`='$occu', `salary`='$salary', `country`='$country', `aboutschool`='$school', `donate`='$donate', `adoptation`='$adoptation',`memories`='$memories', `amout`='$amount', `bank`='$bank',`images`='$img', `favteacher`='$favteacher',`dated_added`='$date', `last_update`='$date'"); // echo $query;exit; if($query==1){ header("location:alumni.php?msg=success"); }else{ header("location:alumni.php?msg=errcode"); } }else{ echo "Duplicate Mobile Number Enterd!Please Enter the correct one";exit; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> <title>Admission Enquiry | Aadharshila Education & Charitable Trust</title> <meta name="keywords" content="Aadharshila Education & Charitable Trust Gujarat" /> <meta name="description" content="Aadharshila Education & Charitable Trust Gujarat" /> <meta name="copyright" content="Copyright 2022 Aadharshila Education & Charitable Trust"/> <meta name="ROBOTS" content="index,follow"/> <meta name="revisit-after" content="7 days"/> <meta name="document-classification" content="Aadharshila Education & Charitable Trust Gujarat"/> <meta name="publisher" content="Aadharshila Education & Charitable Trust Gujarat"/> <meta name="author" content="Aadharshila Education & Charitable Trust Gujarat"/> <meta name="copyright" content="Aadharshila Education & Charitable Trust Gujarat"/> <meta name="language" content="en-us"/> <meta name="distribution" content="GLOBAL"/> <meta name="geo.region" content="INDIA"/> <meta name="geo.placename" content="Aadharshila Education & Charitable Trust At. & Po. Valad, Opp. Reliance Petrol Pump, Naroda-Himmatnagar N. H. No. 48 Gandhinagar, Gujarat, India 382355"/> <?php include("css.php");?> <link rel="stylesheet" href="css/jquery-ui.css" /> <script type="text/javascript"> function validate() { if(document.contactform.name.value=="") { alert("Please Enter Name"); document.contactform.name.focus(); return false; } if(document.contactform.dob.value=="") { alert("Please Enter dob"); document.contactform.dob.focus(); return false; } if(document.contactform.email.value=="") { alert("Please Enter email"); document.contactform.email.focus(); return false; } if(document.contactform.courses.value=="") { alert("Please Enter Stream"); document.contactform.courses.focus(); return false; } if(document.contactform.favteacher.value=="") { alert("Please Enter Your Favourite Teacher"); document.contactform.favteacher.focus(); return false; } if(document.contactform.occu.value=="") { alert("Please Enter Occupation"); document.contactform.occu.focus(); return false; } if(document.contactform.country.value=="") { alert("Please Enter Country"); document.contactform.country.focus(); return false; } if(document.contactform.school.value=="") { alert("Please Enter About School"); document.contactform.school.focus(); return false; } if(document.contactform.img.value=="") { alert("Please Upload Image"); document.contactform.img.focus(); return false; } if(document.contactform.img.value != "") { if(!/(\.gif|\.jpg|\.png|\.jpeg)$/i.test(document.contactform.img.value)) { alert("please upload a valid image file\nPlease upload a image file with an extention of one of the following :\n\n GIF,JPEG,JPG"); return false; } } } </script> </head> <body> <div id="page"> <?php include("header.php");?> <div class="page-header" style="background-image: url(img/bggg.jpg);"> <div class="breadcrumb-box"> <div class="container"> <div class="section-title text-left animated fadeInUp visible" data-animation="fadeInUp"> <h2 class="title" style="font-size: 33px; font-weight: 600;">Alumni Registration</h2> </div> </div> </div> </div> <style type="text/css"> label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: 500; } .form-control{ margin-bottom: 30px; } .radi1133{ width: 17px; margin-right: 17px !important; margin-left: 10px !important; display: inline; vertical-align: middle; } .fileinput { display:inline-block } </style> <!-- slider --> <section id="additional11" 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-12"> <div align="justify"> <div class="bg-3"> <form role="form" name="contactform" method="post" enctype="multipart/form-data" > <input type="hidden" name="act" value="Submit"> <div class="form-group"> <?php if($_REQUEST['msg'] == "success") { ?> <div class="alert alert-success" align="center" > <strong><img src="img/right-sign.png" alt="Aadharshila Education & Charitable Trust" title="Aadharshila Education & Charitable Trust"> Thank You! We'll get back to you soon.</strong> </div> <?php } ?> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Name <span style="color:red">*</span></label> </div> <div class="col-md-7"> <div class="form-group"> <input type="text" name="name" id="textfield" class="form-control" placeholder="First Name Last Name "> </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Date Of Birth <span style="color:red">*</span></label> </div> <div class="col-md-7"> <div class="form-group"> <input type="text" name="dob" id="datepicker" class="form-control" placeholder="DD/MM/YYYY" autocomplete="off" > </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Email <span style="color:red">*</span></label> </div> <div class="col-md-7"> <div class="form-group"> <input type="email" name="email" id="textfield2" class="form-control" placeholder="Email ID" > </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Phone</label> </div> <div class="col-md-7"> <div class="form-group"> <input type="text" name="phone" class="form-control" maxlength="10" minlength="10" placeholder="1234567890"> </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Address</label> </div> <div class="col-md-7"> <div class="form-group"> <textarea name="address" placeholder="Address" rows="2" cols="40" class="form-control" style="resize:none;" ></textarea> </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Year of Passing</label> </div> <div class="col-md-7"> <div class="form-group"> <input type="text" name="yop" id="textfield2" class="form-control" placeholder="Year of Passing" > </div> </div> </div> <div class="clearfix"></div> <div class="col-md-6"> <div class="col-md-5"> <label>Stream<span style="color:red">*</span></label> </div> <div class="col-md-7"> <div class="form-group"> <select name="courses" class="form-control bg-white" > <option value="" selected="">Choose Stream</option> <option value="Commerce" >Commerce</option> <option value="Science" >Science</option> </select> </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Name Of the Class Teacher</label> </div> <div class="col-md-7"> <div class="form-group"> <input type="text" name="teacher" id="textfield2" class="form-control" placeholder="Name of the Class Teacher" > </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Your Favourite Teacher <span style="color:red">*</span></label> </div> <div class="col-md-7"> <div class="form-group"> <input type="text" name="favteacher" id="favteacher" class="form-control" placeholder="Your Favourite Class Teacher" required> </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Present Occupation <span style="color:red">*</span></label> </div> <div class="col-md-7"> <div class="form-group"> <input type="text" name="occu" id="textfield2" class="form-control" placeholder="Present Occupation" > </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Present Salary</label> </div> <div class="col-md-7"> <div class="form-group"> <input type="text" name="salary" id="textfield2" class="form-control" placeholder="Present Salary" > </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Resident Country <span style="color:red">*</span></label> </div> <div class="col-md-7"> <div class="form-group"> <input type="text" name="country" id="textfield2" class="form-control" placeholder="Resident Country" required> </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Few Words About School</label> </div> <div class="col-md-7"> <div class="form-group"> <textarea name="school" placeholder="Few Word About School" rows="2" cols="40" class="form-control" style="resize:none;" ></textarea> </div> </div> </div> <div class="col-md-12"> <label style="text-align: left;margin-bottom: 14px;font-size: 20px;">Countless memories entangled with school days</label> </div> <div class="col-md-6"> <div class="col-md-5"> <label style="text-align: left;">Donate for the development of Institution</label> </div> <div class="col-md-7"> <div class="form-group"> <input type="checkbox" name="donate" id="" class="form-control radi1133" value="yes" > <!-- <input type="radio" name="donate" id="" class="form-control radi1133" value="no">No --> </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label style="text-align: left;">Adopting Child for Education</label> </div> <div class="col-md-7"> <div class=""> <input type="checkbox" name="adoptation" id="" class="form-control radi1133" value="yes"> <!-- <input type="radio" name="adoptation" id="" class="form-control radi1133" value="no" >No --> </div> </div> </div> <div class="clearfix"></div> <div class="col-md-6"> <div class="col-md-5"> <label style="text-align: left;">Amount you wish to Donate</label> </div> <div class="col-md-7"> <div class="form-group"> <input type="text" name="amount" id="textfield2" class="form-control" > </div> </div> </div> <div class="col-md-6"> <div class="col-md-5"> <label>Upload Your Image <span style="color:red">*</span></label> </div> <div class="col-md-7"> <div class="form-group"> <input type='file'name="img" class="form-control" onchange="readURL(this);" /> <img id="blah" src="images/noimage.png" width="100" alt="your image" /> </div> </div> </div> <div class="col-md-6"> <div style="background: #056ab2; padding: 13px;color: #fff;"> <label style="color: #ff5c5c; font-size: 19px;">Bank Details</label> <div class="form-group"> <p> Bank Name : Union Bank <br/> Bank Account Name :G J Mirani Education Trust Bank <br/> A/c No: 391802010400133 <br/> Bank IFSC Code : UBIN0539180 <br/> </p> </div> </div> </div> <!-- <div class="col-md-6"> <div class="form-group"> <div class="col-md-5"> <label>Code</label> </div> <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> </div> </div> </div> --> <div class="col-md-12"> <p style="color: #fe021c;"><b>Note :- </b> Fund raised will be used for development & helping the needy </p> </div> <div class="col-md-12" style="text-align: center; margin-top: 30px;"> <input name="Submit" type="submit" class="top_cont btn btn-primary btn1" value="Submit" onclick="return validate();"> </div> </form> </div> </div> </div> </div> </div> </div> </div> <div class="clearfix"></div> </section> <?php include("footer.php"); ?> <!-- footer --> </div> <?php include("js.php");?> <script src="js/jquery-ui.js"></script> <script> $( function() { $( "#datepicker" ).datepicker({ dateFormat: 'dd/mm/yy', changeMonth: true, changeYear: true, yearRange: '1900:2100' }); } ); </script> <script> function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#blah') .attr('src', e.target.result) .width(115) .height(115); }; reader.readAsDataURL(input.files[0]); } } </script> </body> </html>