Şuanki Dizin: /home/wwwdreamtechnolo/public_html/qrscandoctor.in/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/qrscandoctor.in/registration.php |
<?php include("header.php"); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); ?> <style> h3 { } .frm { width:100%; } .col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto { position: relative; width: 100%; min-height: 1px; padding-right: 0px !important; padding-left: 0px !important; } @media only screen and (max-width: 800px) { .col-xs-3 { margin-top:20px; } } </style> <!-- blog --> <?php $flag =0; $full_name =""; $address =""; $city =""; $post =""; $state =""; $pincode =""; $medical_qualification=""; $dob =""; $age =""; $blood_group =""; $mobile_no =""; $email =""; $photo =""; $adhar =""; $voter =""; $medical_certificate=""; $id = ""; $blood_group_error =""; $get_id=$db->get_max_id(); if($get_id=='') { $id_no='1001'; } else { $id_no=$get_id+1; } if(isset($_POST['add_btn'])) { $full_name = $_POST['full_name']; $address = $_POST['address']; $city = "";//$_POST['city']; $post = "";//$_POST['post']; $state = "";//$_POST['state']; $pincode = "";//$_POST['pincode']; $medical_qualification = $_POST['medical_qualification']; $dob = ""; //$_POST['dob']; $age = "";//$_POST['age']; $blood_group = ""; //$_POST['blood_group']; $mobile_no = $_POST['mobile_no']; $email = $_POST['email']; // if($blood_group=="Select Blood Group") // { // $blood_group_error = "Please select blood group"; // $flag = 1; // } // $valid_formats = array("jpg","png","gif","bmp","jpeg","pdf","JPEG","JPG","BMP","PNG","GIF","PDF"); // if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST") // { // $name = $_FILES['photo']['name']; // $size = $_FILES['photo']['size']; // if(strlen($name)) // { // list($txt, $ext) = explode(".", $name); // if(in_array($ext,$valid_formats)) // { // $files = array(); // function generateRandomString($length = 10) { // $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; // $charactersLength = strlen($characters); // $randomString = ''; // for ($i = 0; $i < $length; $i++) // { // $randomString .= $characters[rand(0, $charactersLength - 1)]; // } // return $randomString; // } // $current_random_string = generateRandomString(); // $actual_image_name = $current_random_string.".".strtolower($ext); // $tmp = $_FILES['photo']['tmp_name']; // $img_Dir = "registration/"; // if(!file_exists($img_Dir)) // { // mkdir($img_Dir); // } // if(move_uploaded_file($tmp,$img_Dir.$actual_image_name)) // { // } // else // { // $image_error = "failed" ; // $flag = 1; // } // } // else // { // $image_error = "Invalid file format"; // $flag = 1; // } // } // } // //2 // $valid_formats = array("jpg","png","gif","bmp","jpeg","pdf","JPEG","JPG","BMP","PNG","GIF","PDF"); // if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST") // { // $name = $_FILES['adhar']['name']; // $size = $_FILES['adhar']['size']; // if(strlen($name)) // { // list($txt, $ext) = explode(".", $name); // if(in_array($ext,$valid_formats)) // { // $files = array(); // function generateRandomString1($length = 10) { // $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; // $charactersLength = strlen($characters); // $randomString = ''; // for ($i = 0; $i < $length; $i++) // { // $randomString .= $characters[rand(0, $charactersLength - 1)]; // } // return $randomString; // } // $current_random_string = generateRandomString1(); // $actual_image_name1 = $current_random_string.".".strtolower($ext); // $tmp = $_FILES['adhar']['tmp_name']; // $img_Dir = "registration/"; // if(!file_exists($img_Dir)) // { // mkdir($img_Dir); // } // if(move_uploaded_file($tmp,$img_Dir.$actual_image_name1)) // { // } // else // { // $image_error = "failed" ; // $flag = 1; // } // } // else // { // $image_error = "Invalid file format"; // $flag = 1; // } // } // } // //3 // $valid_formats = array("jpg","png","gif","bmp","jpeg","pdf","JPEG","JPG","BMP","PNG","GIF","PDF"); // if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST") // { // $name = $_FILES['voter']['name']; // $size = $_FILES['voter']['size']; // if(strlen($name)) // { // list($txt, $ext) = explode(".", $name); // if(in_array($ext,$valid_formats)) // { // $files = array(); // function generateRandomString2($length = 10) { // $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; // $charactersLength = strlen($characters); // $randomString = ''; // for ($i = 0; $i < $length; $i++) // { // $randomString .= $characters[rand(0, $charactersLength - 1)]; // } // return $randomString; // } // $current_random_string = generateRandomString2(); // $actual_image_name2 = $current_random_string.".".strtolower($ext); // $tmp = $_FILES['voter']['tmp_name']; // $img_Dir = "registration/"; // if(!file_exists($img_Dir)) // { // mkdir($img_Dir); // } // if(move_uploaded_file($tmp,$img_Dir.$actual_image_name2)) // { // } // else // { // $image_error = "failed" ; // $flag = 1; // } // } // else // { // $image_error = "Invalid file format"; // $flag = 1; // } // } // } // //4 // $valid_formats = array("jpg","png","gif","bmp","jpeg","pdf","JPEG","JPG","BMP","PNG","GIF","PDF"); // if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST") // { // $name = $_FILES['medical_certificate']['name']; // $size = $_FILES['medical_certificate']['size']; // if(strlen($name)) // { // list($txt, $ext) = explode(".", $name); // if(in_array($ext,$valid_formats)) // { // $files = array(); // function generateRandomString3($length = 10) { // $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; // $charactersLength = strlen($characters); // $randomString = ''; // for ($i = 0; $i < $length; $i++) // { // $randomString .= $characters[rand(0, $charactersLength - 1)]; // } // return $randomString; // } // $current_random_string = generateRandomString3(); // $actual_image_name3 = $current_random_string.".".strtolower($ext); // $tmp = $_FILES['medical_certificate']['tmp_name']; // $img_Dir = "registration/"; // if(!file_exists($img_Dir)) // { // mkdir($img_Dir); // } // if(move_uploaded_file($tmp,$img_Dir.$actual_image_name3)) // { // } // else // { // $image_error = "failed" ; // $flag = 1; // } // } // else // { // $image_error = "Invalid file format"; // $flag = 1; // } // } // } /*if(strlen($pincode)!=6) { ?> <script> alert("Enter 6 Digit Pin Code No"); </script> <?php $flag=1; }*/ if(strlen($mobile_no)!=10) { ?> <script> alert("Enter 10 Digit Contact No"); </script> <?php $flag=1; } if($flag==0) { $db_id=$db->get_registration_id($mobile_no); if($db_id=="") { $actual_image_name = ""; $actual_image_name1 = ""; $actual_image_name2 = ""; $actual_image_name3= ""; if($db->add_registration($full_name,$address,$city,$post,$state,$pincode,$medical_qualification,$dob,$age,$blood_group,$mobile_no,$email,$actual_image_name,$actual_image_name1,$actual_image_name2,$actual_image_name3,$id_no)) { ?> <script> alert("Member Registered Successfully.. Kindly Pay The Fees To Download ID Card and Certificate."); window.location="pay-the-fees.php"; </script> <?php $full_name =""; $address =""; $city =""; $post =""; $state =""; $pincode =""; $medical_qualification=""; $dob =""; $age =""; $blood_group =""; $mobile_no =""; $email =""; } } else { ?> <script> alert("Member Alerady Exist"); </script> <?php } } } ?> <!-- mail --> <div style="background-color:#f9f9ff;"> <div class="container"> <div class="h3-head text-center"> <br /> <h3 class="title-2">MEMBER REGISTRATION</h3> </div> <div > <div class="row" style="min-height:700px;"> <div class="frm" > <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" autocomplete="off" enctype="multipart/form-data" > <h3 style="color:red !important;">MEMBERSHIP FORM</h3> <div class="col-md-12 col-md-12"> <label>Name</label> <input type="text" name="full_name" placeholder="Your Name" required="" class="form-control" value="<?php echo $full_name; ?>"> <br /> </div> <div class="col-md-12 col-md-12"> <label>Address</label> <input type="text" name="address" placeholder="Permanent Resident Address " required="" class="form-control" value="<?php echo $address; ?>" > <br /> </div> <!--<div class="col-md-12 col-md-12"> <div class="col-md-3 col-md-3 col-xs-3" style="display:inline-table;"> <label>City</label> <input type="text" name="city" placeholder="City" required="" class="form-control" style="display:inline-table;" value="<?php echo $city; ?>" > </div> <div class="col-md-3 col-md-3 col-xs-3" style="display:inline-table;"> <label>Post</label> <input type="text" name="post" placeholder="Post" required="" class="form-control" style="display:inline-table;" value="<?php echo $post; ?>" > </div> <div class="col-md-3 col-md-3 col-xs-3" style="display:inline-table;"> <label>State</label> <input type="text" name="state" placeholder="State" required="" class="form-control" style="display:inline-table;" value="<?php echo $state; ?>" > </div> <div class="col-md-2 col-md-2 col-xs-3" style="display:inline-table;"> <label>PinCode</label> <input type="number" name="pincode" placeholder="PinCode" required="" class="form-control" style="display:inline-table;" value="<?php echo $pincode; ?>" > </div> </div>--> <br /> <div class="col-md-12 col-md-12"> <div class="col-md-12 col-md-12" style="display:inline-table;"> <label>Medical Qualification</label> <input type="text" name="medical_qualification" placeholder="Medical Qualification " required="" class="form-control" style="display:inline-table;" value="<?php echo $medical_qualification; ?>" > </div> <!--<div class="col-md-3 col-md-3 col-xs-3" style="display:inline-table;">--> <!--<label>Date Of Birth</label>--> <!--<input type="date" id="from_date" name="dob" placeholder="Date Of Birth" required="" class="form-control" style="display:inline-table;" value="<?php echo $dob; ?>">--> <!-- </div>--> <!--<div class="col-md-3 col-md-3 col-xs-3" style="display:inline-table;"> <label>Age</label> <input type="number" name="age" placeholder="Enter Age" required="" class="form-control" style="display:inline-table;" value="<?php echo $age; ?>" > </div>--> <!-- <div class="col-md-2 col-md-2 col-xs-2" style="display:inline-table;">--> <!-- <label>Select Blood Group</label>--> <!-- <select name="blood_group" class="form-control">--> <?php if($blood_group!="") { ?> <option value="<?php echo $blood_group; ?>"><?php echo $blood_group; ?></option> <?php } ?> <!-- <option value="Select Blood Group">Blood Group</option>--> <!-- <option value="A+">A+</option>--> <!-- <option value="B+">B+</option>--> <!-- <option value="AB+">AB+</option>--> <!-- <option value="O+">O+</option>--> <!-- <option value="A-">A-</option>--> <!-- <option value="B-">B-</option>--> <!-- <option value="AB-">AB-</option>--> <!-- <option value="O-">O-</option>--> <!--</select>--> <!-- <span class="error_indicator"><?php echo $blood_group_error; ?></span>--> <!-- </div>--> </div> <br /> <div class="col-md-12 col-md-12"> <div class="col-md-12 col-md-12"> <label>Mobile No</label> <input type="number" name="mobile_no" placeholder="Mobile No " required="" class="form-control" style="display:inline-table;" value="<?php echo $mobile_no; ?>" > </div> <br /> <div class="col-md-12 col-md-12"> <label>College/Institute University Name : </label> <input type="text" name="email" placeholder="College/Institute University Name" required="" class="form-control" style="display:inline-table;" value="<?php echo $email; ?>" > </div> </div> <br /> <!--<div class="col-md-12 col-md-12">--> <!--<div class="col-md-4 col-md-4 col-xs-3" style="display:inline-table;">--> <!--<label>Photo Image</label>--> <!--<input type="file" name="photo" placeholder="Photo Image " required="" class="form-control" style="display:inline-table;" >--> <!-- </div>--> <!--<div class="col-md-4 col-md-4 col-xs-3" style="display:inline-table;">--> <!--<label>Adhar Card Image</label>--> <!--<input type="file" name="adhar" placeholder="Adhar Card Image " required="" class="form-control" style="display:inline-table;" >--> <!-- </div>--> <!-- </div>--> <!-- <br />--> <!-- <div class="col-md-12 col-md-12">--> <!-- <div class="col-md-4 col-md-4 col-xs-3" style="display:inline-table;">--> <!-- <label>Voter ID Image</label>--> <!--<input type="file" name="voter" placeholder="Voter ID Image " required="" class="form-control" style="display:inline-table;" >--> <!-- </div>--> <!-- <div class="col-md-4 col-md-4 col-xs-3" style="display:inline-table;">--> <!-- <label>Medical Education Certificate Image</label>--> <!--<input type="file" name="medical_certificate" placeholder="Medical Education Certificate Image " required="" class="form-control" style="display:inline-table;" >--> <!-- </div>--> <!--</div>--> <p> <b>प्रतिज्ञापत्र <b/> <br /> उपर दी गई सभी मालूमात सच है! अगर झूठ निकली है तो मै, भारतीय दंड विधान कलम 199, 193/2,200 के अनुसार शिक्षा एवंम दंड के लिए प्रार्थनीय रहुंगा / रहुंगी ! </p> <br > <br > <center> <input type="submit" value="Register" name="add_btn" class="btn btn-primary"> </center> <br /> <br /> <div class="clearfix"> </div> </form> </div> </div> <div class="clearfix"></div> </div> </div> </div> <!-- //mail --> <!-- map --> <?php include('footer.php'); ?>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4