Editando: award_nomination.php
<?php $page_name_camp = 'campaigns'; include '../common/header.php'; ?> <?php ob_start(); //error_reporting(E_ALL ^ E_NOTICE); error_reporting(0); include '../common/db_con.php'; // $ip_address=$_SERVER['REMOTE_ADDR']; // $geopluginURL='http://www.geoplugin.net/php.gp?ip='.$ip_address; // $addrDetailsArr = unserialize(file_get_contents($geopluginURL)); // $city = $addrDetailsArr['geoplugin_city']; // $state = $addrDetailsArr['geoplugin_region']; // $country = $addrDetailsArr['geoplugin_countryName']; // $location = $city.', '.$state.', IN' ; // $message= $_GET['message'] ; //////////////////// sponsor image //////////////////////////////////////// if (empty($sponcer_code)){ $sponcer_code = ""; } else { $sponcer_code = $_GET['sponcer_code']; } $sponcer_code = $_GET['sponcer_code']; $result_1 = mysqli_query($db_con, "SELECT sum(no_of_certificate) total_cert FROM gen_comp_dtls_mst where comp_cd='$sponcer_code'") or die(mysql_error()); while($result_1_1 = mysqli_fetch_array($result_1, MYSQLI_ASSOC)) { $total_cert = $result_1_1['total_cert']; } $result_2 = mysqli_query($db_con, "SELECT count(*) used_cert FROM gen_allforms_mst where comp_cd='$sponcer_code'") or die(mysql_error()); while($result_1_2 = mysqli_fetch_array($result_2, MYSQLI_ASSOC)) { $used_cert = $result_1_2['used_cert']; } $balance = $total_cert - $used_cert ; // if ($balance <= 0 ) { echo ' : not avalable certificate '; } else { echo ' avalable certificate '; } $don_query = mysqli_query($db_con, "SELECT * FROM gen_company_mst where comp_cd='$sponcer_code'") or die(mysql_error()); $count = mysqli_num_rows($don_query); if($count == 0) { $comp_cd = 'DAMOOGA' ; $image_path = '../assets/img/programs/logo-doona.png'; $comp_name = 'Doona Info Tech' ; } else { while($don_row_list = mysqli_fetch_array($don_query, MYSQLI_ASSOC)) { $comp_cd = $don_row_list['comp_cd'] ; $image_path = 'sponcer_logo/'.$don_row_list['image_path'] ; $comp_name = $don_row_list_1['comp_name'] ; } } //////////////////// sponsor image end //////////////////////////////////////// ?> <section class="wrapper bg-light"> <div class="container pt-10 pt-md-14 pb-0 text-center"> <div class="row"> <div class="col-lg-8 mx-auto"> <h1 class="display-1 mb-3">Award Nomination Form</h1> <p>If you wish to nominate for awards <a href="sponcer_comp.php">Become a Award Sponsor</a></p> </div> <!-- /column --> </div> <!-- /.row --> </div> <!-- /.container --> </section> <!-- /section --> <section class="wrapper bg-light"> <div class="container"> <div class="row gx-lg-8 gx-xl-12"> <?php if (isset($_POST['n_name'])){ $award_date = date('Y-m-d H:i:s'); $n_type = $_POST['amount']; $n_category = $_POST['n_category']; $n_name = $_POST['n_name']; $n_father_name = $_POST['n_father_name']; $n_designation = $_POST['n_designation']; $n_org_name = $_POST['n_org_name']; $n_email = $_POST['n_email']; $n_mobile = $_POST['n_mobile']; $n_address = $_POST['n_address']; $n_location = $_POST['n_location']; $n_pincode = $_POST['n_pincode']; $r_name = $_POST['r_name']; $r_email = $_POST['r_email']; $r_mobile = $_POST['r_mobile']; $r_address = $_POST['r_address']; $ip_add = $_SERVER['REMOTE_ADDR'] ; $don_query_5 = mysqli_query($db_con, "SELECT * FROM gen_awards_mst where n_mobile='$n_mobile' and n_email = '$n_email'") or die(mysql_error()); $count = mysqli_num_rows($don_query_5); if($count == 0) { $sql_form = "insert into gen_awards_mst (award_date, n_type, n_category, n_name, n_father_name, n_designation, n_org_name, n_email, n_mobile, n_desc, n_address, n_location, n_pincode, r_name, r_email, r_mobile, r_address, ip_add) values ('$award_date', '$n_type', '$n_category', '$n_name', '$n_father_name', '$n_designation', '$n_org_name', '$n_email', '$n_mobile', '$n_desc', '$n_address', '$n_location', '$n_pincode', '$r_name', '$r_email', '$r_mobile', '$r_address', '$ip_add')" or die(mysqli_error()); if(mysqli_query($db_con, $sql_form)){ $last_id = mysqli_insert_id($db_con); //echo "New record created successfully. Last inserted ID is: " . $last_id; // echo "<div class='form'><h3>Welcome $person_name,</h3><p> //Thank you so much for information. We will contact you very soon!</p></div>"; header("Location: process.php?comp_cd=$comp_cd&form_id=$last_id"); } else { echo "Error: " . $sql . "<br>" . mysqli_error($conn); } }else { while($don_query_5_1 = mysqli_fetch_array($don_query_5, MYSQLI_ASSOC)) { $last_id_1 = $don_query_5_1['award_id']; $award_name = $don_query_5_1['n_name']; $payment_status = $don_query_5_1['payment_ref_no']; } ?> <section class="wrapper bg-light"> <div class="container pt-5 pb-15"> <div class="row text-center"> <div class="col-xl-10 mx-auto"> <p class="pb-0"><span class="badge bg-blue rounded-pill">Kind Attention</span></p> <p class="lead fs-lg pb-6">Dear <?PHP echo $award_name ;?> you are already nominated for Outstanding Achievers Award 2022</p> </div> <!-- /column --> </div> <!-- /.row --> <div class="row gy-6"> <?PHP if (!empty($payment_status)) { ?> <div class="col-md-6 col-lg-4"> <a href="gen_cert.php?form_id=<?PHP echo $last_id_1 ; ?>&down=ys" class="card lift"> <div class="card-body p-5 d-flex flex-row"> <div> <span class="badge bg-pale-blue text-blue rounded py-1 mb-2">Download</span> <h4 class="mb-1">Download your Certificate here</h4> <p class="mb-0 text-body">Digital Certificate</p> </div> </div> </a> </div> <?PHP } else { ?> <div class="col-md-6 col-lg-4"> <a href="process.php?form_id=<?PHP echo $last_id_1 ; ?>" class="card lift"> <div class="card-body p-5 d-flex flex-row"> <div> <span class="badge bg-pale-blue text-blue rounded py-1 mb-2">Try Now</span> <h4 class="mb-1">your payment failed. try and get now</h4> <p class="mb-0 text-body">Digital Certificate</p> </div> </div> </a> </div> <?PHP } ?> <!--/column --> <div class="col-md-6 col-lg-4"> <a href="#" class="card lift"> <div class="card-body p-5 d-flex flex-row"> <div> <span class="badge bg-pale-aqua text-aqua rounded py-1 mb-2">Gift to Awards</span> <h4 class="mb-1">Awards send as gift to your collegues</h4> <p class="mb-0 text-body">All front line workers</p> </div> </div> </a> </div> <!--/column --> <div class="col-md-6 col-lg-4"> <a href="#" class="card lift"> <div class="card-body p-5 d-flex flex-row"> <div> <span class="badge bg-pale-blue text-blue rounded py-1 mb-2">Refer your Friends</span> <h4 class="mb-1">Refer your Friends, co workers and relativers</h4> <p class="mb-0 text-body">Referal programe</p> </div> </div> </a> </div> <!--/column --> </div> <!--/.row --> </div> <!-- /.container --> </section> <!-- /section --> <?PHP //echo "the mobile number already registred corona pledge".$mobile_no ; //header("Location: process.php?message=User name or Email id already exists."); } } else { ?> <?PHP if ($comp_cd == 'DAMOOGA') { ?> <div class="col-lg-8 order-lg-2"> <div class="blog single"> <div class="card"> <div class="card-body"> <h3 class="mb-3">Award Registration</h3> <form id="paypal_donate_form" name="vol_form" class="" action="" method="post"> <p class="lead mb-3">I wish to nominate : </p> <div class="row mb-3"> <div class="col"> <div class="form-check"> <input class="form-check-input" type="radio" id="flexRadioDefault1" name="amount" required="" value="Myself"> <label class="form-check-label" for="flexRadioDefault1">My Self</label> </div> </div> <div class="col"> <div class="form-check"> <input class="form-check-input" type="radio" id="flexRadioDefault2" name="amount" required="" value="other"> <label class="form-check-label" for="flexRadioDefault2">Someone else</label> </div> </div> </div> <div class="row" id="custom_other_amount" > <h3 class="mb-3">Your Information!</h3> </div> <div class="row"> <!-- Script for Donation Form Custom Amount --> <script type="text/javascript"> $(document).ready(function(e) { var $custom_other_amount = $("#custom_other_amount"); $custom_other_amount.hide(); $("#paypal_donate_form [name='amount']").change(function() { var $this = $(this); if ($this.val() == 'other') { $custom_other_amount.show().append('<div class="col-lg-12 form-label-group"><div class="form-label-group mb-4"><input type="text" placeholder="Name*" name="r_name" id="c-name" required="" class="form-control" value=""/><label for="c-email">Name*</label></div></div>'); $custom_other_amount.show().append('<div class="col-lg-6 form-label-group"><div class="form-label-group mb-4"><input type="email" placeholder="Name*" name="r_email" id="c-name" required="" class="form-control" value=""/><label for="c-email">Email*</label></div></div>'); $custom_other_amount.show().append('<div class="col-lg-6 form-label-group"><div class="form-label-group mb-4"><input type="text" placeholder="Name*" name="r_mobile" id="c-name" required="" class="form-control" value=""/><label for="c-email">Mobile No*</label></div></div>'); } else{ $custom_other_amount.children( ".form-label-group" ).remove(); $custom_other_amount.hide(); } }); }); </script> <!-- Paypal Form Ends --> </div> <div class="row" > <h3 class="mb-3">Nominee Information (Warriors)</h3> </div> <p class="lead mb-3">For the following Award Category:</p> <div class="form-label-group mb-4"> <select name="n_category" class="form-select" aria-label="Default select example" required> <option value="">Select Award Category</option> <option value="Health">Doctor / Nursing / Health care workers</option> <option value="Help">Helping Community (distributing medicine/ medical kits/Ration/Other)</option> <option value="Police">Police / Fire Safety / Security Workers</option> <option value="Media">Visuval / Print / Social Media</option> <option value="Ngo">NGO / Voluteers </option> <option value="transport">Postal / Truck and Delivery / Utility workers</option> <option value="Govt">Government officers / Teachers / Bankers</option> <option value="Others">Others </option> </select> </div> <div class="row"> <div class="col-lg-6"> <div class="form-floating mb-4"> <input type="text" class="form-control" placeholder="Name of the Nominee*" id="c-name" name="n_name" required> <label for="c-name">Name of the Nominee*</label> </div> </div> <div class="col-lg-6"> <div class="form-floating mb-4"> <input type="text" class="form-control" placeholder="Nominee Father Name*" id="c-father_name" name="n_father_name" required> <label for="c-father_name">Nominee Father Name*</label> </div> </div> </div> <div class="row"> <div class="col-lg-6"> <div class="form-floating mb-4"> <input type="text" class="form-control" placeholder="Nominee Designation/ Occupation*" id="c-designation" name="n_designation" required> <label for="c-designation">Nominee Designation*</label> </div> </div> <div class="col-lg-6"> <div class="form-floating mb-4"> <input type="text" class="form-control" placeholder="Nominee Designation/ Occupation*" id="c-org_name" name="n_org_name" required> <label for="c-org_name">Organisation Name</label> </div> </div> </div> <div class="row"> <div class="col-lg-6"> <div class="form-floating mb-4"> <input type="email" class="form-control" placeholder="Email*" id="c-email" name="n_email" required> <label for="c-email">Email*</label> </div> </div> <div class="col-lg-6"> <div class="form-floating mb-4"> <input type="text" class="form-control" placeholder="Name*" id="c-mobile" name="n_mobile"> <label for="c-mobile">Mobile *</label> </div> </div> </div> <div class="form-floating mb-4"> <input type="text" class="form-control" placeholder="address*" id="c-address" name="n_address"> <label for="c-address">Nominee postal address*</label> </div> <div class="row"> <div class="col-lg-6"> <div class="form-floating mb-4"> <input type="text" class="form-control" placeholder="City Name*" id="c-location" name="n_location"> <label for="c-location">City Name*</label> </div> </div> <div class="col-lg-6"> <div class="form-floating mb-4"> <input type="text" class="form-control" placeholder="Email*" id="c-pincode" name="n_pincode"> <label for="c-pincode">Pincode*</label> </div> </div> </div> <div class="form-floating mb-4"> <textarea id="textareaExample" class="form-control" placeholder="Describe your initiative/activity on how do you help the society/nation during this pandemic*" style="height: 120px" required name="n_desc"></textarea> <label for="c-address">Describe your activity on how do you help the society/during this pandemic*</label> </div> <div class="form-check mb-4"> <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault" required> <label class="form-check-label" for="flexCheckDefault">By submitting this form you agree to the <a href="#">Terms of Use</a> and to your data being handled in accordance with our <a href="#">Privacy Policy</a>.</label> <p></p> <label class="form-check-label" for="flexCheckDefault">I/we understand that, - The Damooga Foundation COVID19 WARRIOR Award is completely non-commercial social initiative by Damooga Foundation & Outstanding ACHIEVERS AWARDS' FORUM. - Only the complete form will be eligible for appreciation certificate/award. - Appreciation certificate/award will be presented in digital And Physical format and will be sent to the email id or address of the applicant. - Selected stories will also be featured in the Our Social Media Channels.</label> </div> <button type="submit" class="btn btn-primary rounded-pill mb-0">Next</button> </form> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.blog --> </div> <!-- /column --> <aside class="col-lg-4 sidebar mt-11 mt-lg-6"> <div class="widget"> <h3 class="widget-title mb-3">Outstanding Achievers Awards - 2022 </h3> <p>During Covid-19 Pandemic, Apart from doctors, there are others warriors too like Police, Bankers, Government officers, Sweepers, Health care workers, Social workers, Grocery store workers, Retail and Restaurant workers, Truck drivers and delivery services, Postal workers, Firefighters and other first responders, Teachers, Housekeeping staff, Utility workers, etc.</p> <p>Stepping out for work each day, ‘Corona Warriors’ Maintain Isolation at home compelled by their jobs to step out every day, this is how the army of corona warriors helping India battle the pandemic of COVID-19 are living their lives.</p> <div class="clearfix"></div> <h3 class="widget-title mb-3">DFNGO recognizes their work and honors such corona warriors with a Certificate of Appreciation and the Outstanding Achievers Award. </h3> <p>A recognition and appreciation programme of frontline healthcare workers through online nomination form.</p> </div> <!-- /.widget --> <div class="widget"> <p>To get bulk or instant certificate call us @ 81909 91122, If you have any other questions, please contact awards@dfngo.in</p> <div class="clearfix"></div> </div> </aside> <!-- /column .sidebar --> </div> <!-- /.row --> <?PHP } else { if ($balance <= 0 ) { ?> <div class="row"> <div class="col-lg-12 pledge-details"> <h1>Download your free certificate here</h1> <p>It's great to award a certificate for taking part in learning about the Global Goals. Please fill in the details below to download printable certificates. To help us measure the impact of your amazing work we'd love you to share how many people have taken part.</p> <a href="buy_certificate.php">you need to buy certificate </a> </div> </div> <?php } else { ?> <div class="row"> <div class="col-lg-12 pledge-details"> <h1>Download your free certificate here sponcer </h1> <p>It's great to award a certificate for taking part in learning about the Global Goals. Please fill in the details below to download printable certificates. To help us measure the impact of your amazing work we'd love you to share how many people have taken part.</p> <a href="sponcer_comp.php">Become a Pledge Sponsor</a> </div> </div> <div class="row justify-content-center"> <div class="col-lg-7"> <form id="vol_form" name="vol_form" class="" action="" method="post"> <div class="form-group"> <label>Full Name</label> <input type="hidden" class="form-control" name="corona_pledge" value="corona_pledge"> <input type="hidden" class="form-control" name="comp_cd" value="<?php echo $comp_cd; ?>"> <input type="hidden" class="form-control" name="business_name" id="bz_name" placeholder="Organisation Name" value="global"> <input type="text" class="form-control" name="form_name" required=""> </div> <div class="form-group"> <label>Email address</label> <input type="email" class="form-control" name="form_email" required=""> </div> <div class="form-group"> <label>Mobile No</label> <input type="text" class="form-control" name="form_phone" required=""> </div> <div class="form-group"> <label>Location</label> <input type="text" class="form-control" name="city_name" required="" value="<?PHP echo $location ;?>"> </div> <p class="terms">By submitting this form you agree to the <a href="#">Terms of Use</a> and to your data being handled in accordance with our <a href="#">Privacy Policy</a>.</p> <button type="submit" class="btn btn-primary">Next</button> </form> </div> </div> <?PHP } } } ?> </div> <!-- /.container --> </section> <?php include '../common/footer.php' ;?>
Cancelar
Kerym Chaeceran