One Hat Cyber Team
Your IP :
172.70.80.190
Server IP :
188.114.96.4
Server :
Linux thuru 6.5.11-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-4 (2023-11-20T10:19Z) x86_64
Server Software :
Apache/2.4.51 (Unix) OpenSSL/1.0.2k-fips
PHP Version :
7.3.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
thuruk
/
public_html
/
application
/
views
/
Edit File:
indexcopy.php
<?php // include('session.php'); // include('config.php'); // $con = mysqli_connect($host,$user,$pass,$db); // $qure = 'select * from newuser_plants'; // $result = mysqli_query($con,$qure); // $count = mysqli_num_rows($result); //session_start(); header( 'Content-Type: text/html; charset=utf-8' ); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Home test Thuru Kapakaru - Athulathin Hoda Wemu</title> <!-- Stylesheets --> <link href="<?php echo base_url();?>public/assets/css/bootstrap.css" rel="stylesheet"> <link href="<?php echo base_url();?>public/assets/css/style.css" rel="stylesheet"> <link href="<?php echo base_url();?>public/assets/css/revolution-slider.css" rel="stylesheet"> <link href="<?php echo base_url();?>public/assets/css/mystyle.css" rel="stylesheet"> <link href="<?php echo base_url();?>public/assets/css/main.css" rel="stylesheet"> <link href="<?php echo base_url();?>public/assets/css/newstyle.css" rel="stylesheet"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <link href="<?php echo base_url();?>public/assets/css/responsive.css" rel="stylesheet"> <style> /* The Modal (background) */ .modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1000; /* Sit on top */ padding-top: 100px; /* Location of the box */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0,0,0); /* Fallback color */ background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ } /* Modal Content */ .modal-content { background-color: #fefefe; margin: auto; padding: 20px; border: 1px solid #888; width: 50%; } /* The Close Button */ .closepop { color: #aaaaaa; float: right; font-size: 28px; font-weight: bold; } .closepop:hover, .closepop:focus { color: #000; text-decoration: none; cursor: pointer; } .qrsection { display: inline-block; width: 45%; } .qrsection h2 { text-align: center; } .qrsection img { text-align: center; display: block; margin-left: auto; margin-right: auto; margin-top: 15px; } .qr-btn { height: 50px; } </style> <?php $page="homepage"; ?> </head> <body> <div class="page-wrapper"> <!-- Preloader <div class="preloader"></div>--> <!-- Main Header --> <?php // $path = $_SERVER['DOCUMENT_ROOT']; $path = "/resources/includes/header.php"; /*$path .= */ require_once(__DIR__.$path); ?> <!--End Main Header --> <!--Main Slider--> <section class="main-slider revolution-slider"> <div class="tp-banner-container"> <div class="tp-banner"> <ul> <li data-transition="fade" data-slotamount="1" data-masterspeed="1000" data-thumb="<?php echo base_url();?>public/assets/images/main-slider/slider-1.jpg" data-saveperformance="off" data-title=""> <img src="<?php echo base_url();?>public/assets/images/main-slider/slider-1.jpg" alt="" data-bgposition="center top" data-bgfit="cover" data-bgrepeat="no-repeat"> <div class="tp-caption sfl sfb tp-resizeme" data-x="left" data-hoffset="15" data-y="center" data-voffset="-150" data-speed="1500" data-start="500" data-easing="easeOutExpo" data-splitin="none" data-splitout="none" data-elementdelay="0.01" data-endelementdelay="0.3" data-endspeed="1200" data-endeasing="Power4.easeIn"><!--<div class="circular-drop">0<sub>2</sub></div>--></div> <div class="tp-caption sfr sfb tp-resizeme" data-x="left" data-hoffset="90" data-y="center" data-voffset="-50" data-speed="1500" data-start="1000" data-easing="easeOutExpo" data-splitin="none" data-splitout="none" data-elementdelay="0.01" data-endelementdelay="0.3" data-endspeed="1200" data-endeasing="Power4.easeIn"></div> <div class="tp-caption sfl sfb tp-resizeme" data-x="left" data-hoffset="90" data-y="center" data-voffset="40" data-speed="1500" data-start="1500" data-easing="easeOutExpo" data-splitin="none" data-splitout="none" data-elementdelay="0.01" data-endelementdelay="0.3" data-endspeed="1200" data-endeasing="Power4.easeIn"><h3 class="bg-color">Save the world & save life</h3></div> <div class="tp-caption sfl sfb tp-resizeme" data-x="left" data-hoffset="90" data-y="center" data-voffset="110" data-speed="1500" data-start="2000" data-easing="easeOutExpo" data-splitin="none" data-splitout="none" data-elementdelay="0.01" data-endelementdelay="0.3" data-endspeed="1200" data-endeasing="Power4.easeIn"><div class="text slider-text">DOWNLOAD OUR MOBILE APP</div></div> <div class="tp-caption sfr sfb tp-resizeme" data-x="left" data-hoffset="90" data-y="center" data-voffset="190" data-speed="1500" data-start="2000" data-easing="easeOutExpo" data-splitin="none" data-splitout="none" data-elementdelay="0.01" data-endelementdelay="0.3" data-endspeed="1200" data-endeasing="Power4.easeIn"><a href="https://play.google.com/store/apps/details?id=com.thurukepakaru.thuruapp" class="theme-btn btn-style-one">PLAYSTORE</a> <a href="https://apps.apple.com/lk/app/thuru-kepakaru/id1566712001" class="theme-btn btn-style-one">APPSTORE</a> <!-- Trigger/Open The Modal --> <button class="qr-btn" id="myBtn">QR Code</button> </div> </li> <li data-transition="fade" data-slotamount="1" data-masterspeed="1000" data-thumb="<?php echo base_url();?>public/assets/images/main-slider/slider-2.jpg" data-saveperformance="off" data-title=""> <img src="<?php echo base_url();?>public/assets/images/main-slider/slider-2.JPG" alt="" data-bgposition="center top" data-bgfit="cover" data-bgrepeat="no-repeat"> <div class="tp-caption sfl sfb tp-resizeme" data-x="center" data-hoffset="0" data-y="center" data-voffset="-120" data-speed="1500" data-start="500" data-easing="easeOutExpo" data-splitin="none" data-splitout="none" data-elementdelay="0.01" data-endelementdelay="0.3" data-endspeed="1200" data-endeasing="Power4.easeIn"><h2 class="normal-font">Download</h2></div> <div class="tp-caption sfr sfb tp-resizeme" data-x="center" data-hoffset="0" data-y="center" data-voffset="-30" data-speed="1500" data-start="1000" data-easing="easeOutExpo" data-splitin="none" data-splitout="none" data-elementdelay="0.01" data-endelementdelay="0.3" data-endspeed="1200" data-endeasing="Power4.easeIn"><h2>Our Mobile App</h2></div> <div class="tp-caption sfl sfb tp-resizeme" data-x="center" data-hoffset="0" data-y="center" data-voffset="50" data-speed="1500" data-start="1500" data-easing="easeOutExpo" data-splitin="none" data-splitout="none" data-elementdelay="0.01" data-endelementdelay="0.3" data-endspeed="1200" data-endeasing="Power4.easeIn"><h4>Android | iOS</h4></div> <div class="buttons"> <div class="col-md-6 tp-caption sfr sfb tp-resizeme playstore" data-x="center" data-hoffset="0" data-y="center" data-voffset="120" data-speed="1500" data-start="2000" data-easing="easeOutExpo" data-splitin="none" data-splitout="none" data-elementdelay="0.01" data-endelementdelay="0.3" data-endspeed="1200" data-endeasing="Power4.easeIn"><a href="https://play.google.com/store/apps/details?id=com.thurukepakaru.thuruapp" class="theme-btn btn-style-one">PlayStore</a> <a href="https://apps.apple.com/lk/app/thuru-kepakaru/id1566712001" class="theme-btn btn-style-one">AppStore</a> <!-- Trigger/Open The Modal --> <button class="qr-btn" id="myBtnTwo">QR Code</button> </div> </div> </li> </ul> </div> </div> </section> <div class="title-box text-center"> </div> <!--first section--> <div class="container-fluid logo-section"> <div class="row"> <div class="col-md-6 col-sm-12 test1"> <div class="row plants-count"> <div class="title-box number-box text-center logo-num"> <h1 id="count" ><?php echo $tree_count; ?></h1> <p id="plant-count">Number of Trees <br> cared for</p> <hr> </div> </div> <div class="row support-row"> <h4>Supported by:</h4> <div class="col-md-4 col-xs-12 col-sm-4 support-logo"> <img class="logo-tile" src="<?php echo base_url();?>public/assets/images/gammadda-logo.png"> </div> <div class="col-md-4 col-xs-12 col-sm-4 support-logo"> <img class="logo-tile " src="<?php echo base_url();?>public/assets/images/logo-slon.png"> </div> <div class="col-md-4 col-xs-12 col-sm-4 support-logo logo-three"> <img class="logo-tile" src="<?php echo base_url();?>public/assets/images/logo-vforce.png"> </div> </div> </div> <div class="col-md-6 col-sm-12 col-xs-12 test2"> <h2 class="red">Who We Are</h2> <p>Thuru Kepakaru promotes the plating of trees with designated owners. One is able to upload images and the relevant details of the plant including its name, type, height, location planted etc. each time you plant a tree. The longer you take care of the tree, and update the app with the details of the visible progress of the tree the admin panel and supervisors will rate the progress, and the more points you earn. Accumulation of points will result in exclusive online badges and a corresponding raise in the rank of the user within the app. The app will be your guide which helps maintain and keep a constant track of the number of trees planted island wide, and help monitor the growth of each tree. If by any chance the tree decays this too will be recorded. This will further help gather information of trees planted and the location in which it can be found, by simply scanning the QR code given to each tree.</p> <p>Sign in to increase the plant population in the country and become a true nature hero.</p> </div> </div> </div> <!--Testimonials--> <section class="testimonials-section" style="background-image:url(<?php echo base_url();?>public/assets/images/main-slider/1.jpg);"> <div class="auto-container"> <!--Slider--> <div class="row"> <h2 class="parallax-heading">Search Planted Tree Here </h2> </div> <div class="row"> <div class="container"> <div class="col-xs-12"> <!--search area--> <div class="s003 col-xs-12"> <form action="<?php echo base_url();?>SearchResult/DisplayResult" > <div class="inner-form"> <div class="input-field second-wrap"> <input id="search" type="text"name="keyword" placeholder="Enter Keywords?" /> </div> <div class="form-group search-group"> <select class="form-control" id="sel1" name="type"> <option>Location</option> <option>Plant</option> </select> </div> <div class="input-field third-wrap"> <button class="btn-search" type="submit" > <svg class="svg-inline--fa fa-search fa-w-16" aria-hidden="true" data-prefix="fas" data-icon="search" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <path fill="currentColor" d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"></path> </svg> </button> </div> </div> </form> </div> </div> </div> </div> </div> </section> <!--Recent Projects Section--> <section class="recent-projects"> <div class="auto-container"> <div class="sec-title clearfix"> <div class="pull-left"> <h2>Most Recent <span class="normal-font theme_color">Project</span></h2> <div class="text">Island wide Tree Planting Project </div> </div> </div> <div class="row clearfix"> <?php $query="select * from newuser_plants order by created_time DESC LIMIT 12"; if ($result = mysqli_query($connect,$query)) { // Get field information for all fields while ($row = mysqli_fetch_assoc($result)) { ?> <div class="column default-featured-column col-md-2 col-sm-6 col-xs-12"> <article class="inner-box wow fadeInLeft" data-wow-delay="0ms" data-wow-duration="1500ms"> <figure class="image-box tile"> <a href="#" class="" data-toggle="modal" data-target="#project-popup<?php echo $row['user_plant_id'];?>" ><img class="recent-images" src="<?php echo $row['plant_image'];?>" alt=""></a> </figure> <div class="content-box"> <div class="column-info"><?php echo $row['plant_name']; ?></div> <div class="text"><p><?php $this->load->helper('text'); echo character_limiter($row['plant_description'],15);?> <br><?php echo $row['created_date'];?></p></div> <!-- <a href="#" class="theme-btn btn-style-three" data-toggle="modal" data-target="#project-popup">Learn More</a> --> </div> </article> </div> <!--Recent Projects Popup--> <div class="modal fade pop-box" id="project-popup<?php echo $row['user_plant_id'] ?>" tabindex="-1" role="dialog" aria-labelledby="donate-popup" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <!--Donation Section--> <section class="donation-section"> <div class="donation-form-outer"> <form method="post" action="contact.html"> <!--Form Portlet--> <div class="form-portlet"> <h4><?php echo $row['plant_name']?></h4> <hr class="project-pop-line"> <div class="col-md-5 col-xs-12"> <img class="recent-images" src="<?php echo $row['plant_image'];?>" alt=""> </div> <div class="row clearfix"> <div class="form-group col-lg-6 col-md-7 col-xs-12"> <p>Name : <?php echo $row['plant_name']?></p> <p>Date: <?php echo $row['created_date']?></p> <p><?php echo $row['plant_description'];?></p> <a href="./trees"><span class="more-btn">Read More</span></a> </div> <div class="recent-box"> <div class="col-md-3 recent-box-left"> <img src=<?php base_url();"./images/plants/Amba.jpeg"?>> </div> </div> </div> </div> </div> </form> </div> </div> </div> <?php } mysqli_free_result($result); } ?> </div> <div class="center"> <a href="<?php echo base_url().'PlantList/getTreeList/'; ?>" class="theme-btn btn-style-three new-button">See All Projects</a> </div> </div> </section> <!--Featured Fluid Section--> <section class="featured-fluid-section"> <div class="outer clearfix"> <!--Image Column--> <div class="image-column" style="background-image:url(<?php echo base_url();?>public/assets/images/resource/join-us.jpg);"> </div> <!--Text Column--> <article class="column text-column dark-column wow fadeInRight" data-wow-delay="0ms" data-wow-duration="1500ms" style="background-image:url(images/resource/fluid-image-2.jpg);"> <div class="content-box pull-left"> <h2>Join us<span class="theme_color"> now</span>!</h2> <div class="title-text">“Only when the last tree has died and the last river being poisoned and the last fish being caught will we realize we cannot eat” <br><br><b>-Cree Indian Proverb-</b> </div> <div class="text">Based on the theme “Athulathin Hoda Wemu” the project aims to contribute towards the environmental development in Sri Lanka. This is our invitation to you to sign in to increase the plant population in the country and become a true nature hero. Mother nature has blessed us with many, now it is time for us to give in return. </div> <?php if(isset($_SESSION['user_id'])){ $add_new_tree = base_url()."CreateTree/AddPlant"; echo '<a href="'.$add_new_tree.'" class="theme-btn btn-donate new-tree-btn"> Plant New Tree</a>'; }else{ $path = base_url()."Login"; echo ' <a href="'.$path.'" class="theme-btn btn-style-two">Login Now</a>'; } ?> </div> <div class="clearfix"></div> </article> </div> </div> </section> <!--Events Section--> <section class="events-section latest-events"> <div class="auto-container"> <div class="sec-title text-center"> <h2>Our <span class="normal-font theme_color">Projects</span></h2> <div class="text"></div> </div> <div class="row clearfix"> <?php foreach($event_list->result() as $row) :?> <div class="column default-featured-column style-two col-lg-4 col-md-6 col-sm-6 col-xs-12"> <article class="inner-box"> <figure class="image-box event-figure"> <a href="#"><img src="<?php echo $row->event_image?>" style="height:300px" alt=""></a> <!-- <div class="post-tag">Featured</div>--> </figure> <div class="content-box"> <h3><a href="#"><?php echo $row->event_name?></a></h3> <div class="column-info"><?php echo $row->event_date?></div> <div class="text"><p><?php /* $this->load->helper('text'); echo character_limiter($row->event_description,50);*/ if (strlen($row->event_description) > 30) echo $str = substr($row->event_description, 0, 30) . '...'; ?></p> </div> <a data-toggle="modal" data-target="#project-popup<?php echo $row->main_events_id ?>" class="theme-btn btn-style-three">Read More</a> </div> </article> </div> <div class="modal fade pop-box" id="project-popup<?php echo $row->main_events_id ?>" tabindex="-1" role="dialog" aria-labelledby="donate-popup" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <!--Donation Section--> <section class="donation-section"> <div class="donation-form-outer"> <form method="post" action="contact.html"> <!--Form Portlet--> <div class="form-portlet"> <h4><?php echo $row->event_name?></h4> <hr> <div class="col-md-6 col-xs-12"> <img class="recent-images" src="<?php echo $row->event_image;?>" alt=""> </div> <div class="row clearfix"> <div class="form-group col-lg-6 col-md-6 col-xs-12"> <p>Name : <?php echo $row->event_name;?></p> <!-- <p>Date: <?php echo $row->created_date;?></p> --> <!-- <a href="./trees"><span class="more-btn">Read More</span></a> --> </div> <?php echo $row->event_description; ?> <div class="recent-box"> <div class="col-md-3 recent-box-left"> <img src=<?php base_url();"./images/plants/Amba.jpeg"?>> </div> </div> </div> </div> </div> </form> </div> <!-- /.modal-content --> </div> </div> <?php endforeach ; ?> </div> </div> </section> <!--footer--> <?php include __DIR__.'/resources/includes/footer.php'; ?> </div> <!--End pagewrapper--> <!-- The Modal --> <div id="myModal" class="modal"> <!-- Modal content --> <div class="modal-content"> <span class="closepop">×</span> <div class="qrsection"> <h2>iOS</h2> <img src="<?php echo base_url();?>public/assets/iOS.png"> </div> <div class="qrsection"> <h2>Andriod</h2> <img src="<?php echo base_url();?>public/assets/Android.png"> </div> </div> </div> <!-- The Modal --> <div id="myModalTwo" class="modal"> <!-- Modal content --> <div class="modal-content"> <span class="close">×</span> <div class="qrsection"> <h2>iOS</h2> <img src="<?php echo base_url();?>public/assets/iOS.png"> </div> <div class="qrsection"> <h2>Andriod</h2> <img src="<?php echo base_url();?>public/assets/Android.png"> </div> </div> </div> <!--Join Popup--> <div class="modal fade pop-box" id="join-popup" tabindex="-1" role="dialog" aria-labelledby="donate-popup" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <!--Donation Section--> <section class="donation-section"> <div class="donation-form-outer"> <form method="post" action="CreateEvent/EventRegistration"> <!--Form Portlet--> <div class="form-portlet"> <h4>Join Us</h4> <div class="row clearfix"> <div class="form-group col-lg-6 col-md-6 col-xs-12"> <div class="field-label">First Name <span class="required">*</span></div> <input type="text" name="fname" value="" placeholder="First Name" required> </div> <div class="form-group col-lg-6 col-md-6 col-xs-12"> <div class="field-label">Last Name <span class="required">*</span></div> <input type="text" name="lname" value="" placeholder="Last Name" required> </div> <div class="form-group col-lg-6 col-md-6 col-xs-12"> <div class="field-label">NIC Number <span class="required">*</span></div> <input type="email" name="nic" value="" placeholder="NIC Number" required> </div> <div class="form-group col-lg-6 col-md-6 col-xs-12"> <div class="field-label">Contact Number <span class="required">*</span></div> <input type="text" name="contact" value="" placeholder="Contact Number" required> </div> <div class="form-group col-lg-6 col-md-6 col-xs-12"> <div class="field-label">Address <span class="required">*</span></div> <input type="text" name="address" value="" placeholder="Address" required> </div> </div> </div> <br> <div class="text-left"><button type="submit" class="theme-btn btn-style-two">Submit</button></div> </form> </div> </section> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- /.modal --> <!--search bar js--> <script src="(<?php echo base_url();?>public/assets/js/extention/choices.js"></script> <script> const choices = new Choices('[data-trigger]', { searchEnabled: false, itemSelectText: '', }); </script> <!--End search bar js--> <script src="<?php echo base_url();?>public/assets/js/jquery.js"></script> <script src="<?php echo base_url();?>public/assets/js/bootstrap.min.js"></script> <script src="<?php echo base_url();?>public/assets/js/revolution.min.js"></script> <script src="<?php echo base_url();?>public/assets/js/jquery.fancybox.pack.js"></script> <script src="<?php echo base_url();?>public/assets/js/jquery.fancybox-media.js"></script> <script src="<?php echo base_url();?>public/assets/js/owl.js"></script> <script src="<?php echo base_url();?>public/assets/js/wow.js"></script> <script src="<?php echo base_url();?>public/assets/js/script.js"></script> <script> $('#myModal').on('shown.bs.modal', function () { $('#myInput').trigger('focus') }) // .s003 form .inner-form { // display: flex !important; // } </script> <script> // Get the modal var modal = document.getElementById("myModal"); var modaltwo = document.getElementById("myModalTwo"); // Get the button that opens the modal var btn = document.getElementById("myBtn"); var btntwo = document.getElementById("myBtnTwo"); // Get the <span> element that closes the modal var spantwo = document.getElementsByClassName("closepop")[0]; var span = document.getElementsByClassName("close")[0]; // When the user clicks the button, open the modal btn.onclick = function() { modal.style.display = "block"; } btntwo.onclick = function() { modaltwo.style.display = "block"; } // When the user clicks on <span> (x), close the modal spantwo.onclick = function() { modal.style.display = "none"; } span.onclick = function() { modaltwo.style.display = "none"; } // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; } } window.onclick = function(event) { if (event.target == modaltwo) { modaltwo.style.display = "none"; } } </script> </body> </html>
Simpan