X7ROOT File Manager
Current Path:
/home/softbdltd/images-bd.com/wp-content87b/themes/eventum
home
/
softbdltd
/
images-bd.com
/
wp-content87b
/
themes
/
eventum
/
??
..
??
404.php
(729 B)
??
admin
??
author.php
(786 B)
??
blog-fullwidth.php
(985 B)
??
blog-left-sidebar.php
(1.25 KB)
??
blog-right-sidebar.php
(1.27 KB)
??
category.php
(809 B)
??
coming-soon.php
(5.21 KB)
??
comments.php
(3.05 KB)
??
css
??
e-cert.php
(5.36 KB)
??
error_log
(114.19 KB)
??
event-price.php
(13.13 KB)
??
fonts
??
footer-alternative.php
(38 B)
??
footer.php
(6.3 KB)
??
footer.php_backup
(6.74 KB)
??
functions.php
(4.69 KB)
??
header-alternative.php
(661 B)
??
header.php
(12.68 KB)
??
homepage.php
(1.07 KB)
??
images
??
index.php
(792 B)
??
js
??
languages
??
lib
??
page-archive-tmp.php
(2.13 KB)
??
page-left-sidebar.php
(1.76 KB)
??
page-right-sidebar.php
(1.3 KB)
??
page.php
(1.5 KB)
??
post-format
??
quick-preset.php
(4.38 KB)
??
quick-style.php
(5.06 KB)
??
registration.php_05_01_2018
(42.04 KB)
??
rtl.css
(2.73 KB)
??
run-details.php
(2.33 KB)
??
screenshot.png
(772 KB)
??
search.php
(695 B)
??
searchform.php
(293 B)
??
sidebar.php
(251 B)
??
single.php
(2.61 KB)
??
style.css
(1.8 KB)
??
theme-options
??
volunteer.php
(8.59 KB)
??
woocommerce
??
woocommerce.php
(688 B)
Editing: e-cert.php
<?php /* * Template Name: e-cert */ if (isset($_GET['check-ic-passport'])&& $_GET['check-ic-passport']==1) { if (isset($_REQUEST['ic-passport-no'])) { global $woocommerce; $icPassportNo = $_REQUEST['ic-passport-no']; $runType = $_REQUEST['runType']; global $wpdb; $sql = " SELECT COUNT(*) FROM wpni_gr_participants WHERE ic_pas_no='$icPassportNo' and category_name='$runType' "; $participantcount = $wpdb->get_var($sql); if($participantcount>0 && $runType=="5km-fun-run"){ echo "https://loverunglobal.com/staging/wp-content/uploads/2018/10/5km_certificate.pdf"; } else if ($participantcount>0 && $runType=="3k-pwd-run"){ echo "https://loverunglobal.com/staging/wp-content/uploads/2018/10/3km_certificate.pdf"; }else{ echo 'invalid'; die(); } } else { echo 'invalid'; die(); } }else{ get_header();?> <script> jQuery(document).ready(function(){ var runType=""; jQuery("#five_fun_run").click(function(e){ runType="5km-fun-run"; jQuery(".pls-div").show(); }) jQuery("#tree_pwd_run").click(function(e){ runType="3k-pwd-run"; jQuery(".pls-div").show(); }) jQuery("#btnCheck").click(function(e){ if(jQuery("#ic-pas-e-cert").val()!==""){ saveCostCategory(runType) }else{ alert("Please insert IC/PASSPORT number!"); } }) }); function saveCostCategory(runType) { var icpasecert = jQuery('#ic-pas-e-cert').val(); $.post("./?check-ic-passport=1&&ic-passport-no="+ icpasecert+"&&runType="+runType, function(data, status){ jQuery(this).removeClass("disabled"); if(status=="success" && data!=="invalid"){ jQuery(".thanks-e").show(); jQuery(".sorry-e").hide(); jQuery("#btn-down-cert").show(); jQuery("#btn-down-cert").attr("href", data); //window.location.href = "http://loverunglobal.com/staging/checkout/"; }else{ jQuery(".sorry-e").show(); jQuery(".thanks-e").hide(); jQuery("#btn-down-cert").hide(); } console.log(status); //console.log(data); } ); }; </script> <section id="main" class="clearfix"> <div class="container"> <div id="content" class="site-content" role="main"> <?php /* The loop */ ?> <?php while ( have_posts() ): the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( has_post_thumbnail() && ! post_password_required() ) : ?> <div class="entry-thumbnail"> <?php the_post_thumbnail(); ?> </div> <?php endif; ?> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages(); ?> </div> </div> <?php // comment_template(); ?> <?php endwhile; ?> </div> <!--/#content--> </div> <!--/container--> </section> <!--/#main--> <div class="vc_row wpb_row vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-2"><div class="vc_column-inner "><div class="wpb_wrapper"></div></div></div><div class="wpb_column vc_column_container vc_col-sm-8"><div class="vc_column-inner "><div class="wpb_wrapper"> <div class="wpb_raw_code wpb_content_element wpb_raw_html"> <div class="wpb_wrapper"> <div class="row pls-div" style="margin-top: 60px;"> <div class="col-md-8 col-sm-6 col-xs-12"> <div class="form-group ic-pas-e-cert"> <label for="ic-pas-e-cert">ENTER YOUR IC/PASSPORT NO.</label> <input type="text" class="form-control ic-pas-e-cert-class" name="ic-pas-e-cert" id="ic-pas-e-cert"> </div> </div> <div class="col-md-4 col-sm-6 col-xs-12"> <div class=""> <label for=""></label> <div class="themeum-button " style="display: inline; text-align:center;display:block;"><button data-hover-color="#ffffff" data-hover-bg-color="#b3b3b3" class="thm-color themeum_button_shortcode" style="border: 0; font-weight: normal;font-size: 17px; line-height: 17px; color: rgb(255, 255, 255); background: rgb(255, 0, 122); margin: 24px 0px 50px; padding: 10px 40px;" id="btnCheck">CHECK</button> </div> </div> </div> </div> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="form-group ic-pas-e-cert"> <p class="thanks-e">THANKS FOR SUPPORTING LOVERUN 2018@MALAYSIA!</p> <p class="sorry-e">IC/PASSPORT NUMBER NOT FOUND. PLEASE TRY AGAIN.</p> </div> </div> <div class="col-md-4 col-sm-12 col-xs-12"> <div class=""> <div class="themeum-button " style="display: inline; text-align:center;"><a data-hover-color="#ffffff" data-hover-bg-color="#b3b3b3" class="thm-color themeum_button_shortcode" style="font-weight: normal; font-size: 17px; line-height: 17px; color: rgb(255, 255, 255); background: rgb(255, 0, 122); margin: 10px 0px 50px; padding: 10px 25px; " href="#" target="_blank" id="btn-down-cert" >DOWNLOAD E-CERT</a></div> </div> </div> </div> </div> </div> </div></div></div><div class="wpb_column vc_column_container vc_col-sm-2"><div class="vc_column-inner "><div class="wpb_wrapper"></div></div></div></div> <?php get_footer(); } ?>
Upload File
Create Folder