Файловый менеджер - Редактировать - /home/umudio/public_html/priests.php
Назад
<?php session_start(); if (isset($_POST["username"]) && isset($_POST["password"])) { $manager = $_POST["username"]; $password = $_POST["password"]; include("includes/config.php"); $cmem = "SELECT id FROM auth WHERE username='$manager' AND password='$password' LIMIT 1"; $run_cmem = mysqli_query($con, $cmem); $count_mem = mysqli_num_rows($run_cmem); if ($count_mem == 1) { while ($row = mysqli_fetch_array($run_cmem)) { $id = $row["id"]; } $_SESSION["id"] = $id; $_SESSION["manager"] = $manager; $_SESSION["password"] = $password; header("location: mod-auth"); exit(); } else { echo "<script>alert('Incorrect Password !!!')</script>"; echo "<script>window.open('./','_self')</script>"; exit(); } } ?> <?php include("includes/config.php"); ?> <?php $added = " where archived='No'"; $added2 = " where archived='Yes'"; $ss = "Displaying All"; if (isset($_POST['dmonth2'])) { if ($_POST['dmonth2'] == 'All') { $added = $added; $added2 = $added2; $ss = "Displaying All"; } else { $added = $added . " and dob LIKE '%" . $_POST['dmonth2'] . "%'"; $added2 = $added2 . " and dob LIKE '%" . $_POST['dmonth2'] . "%'"; $ss = "Displaying Priests Born in " . $_POST['dmonth2']; } } if (isset($_POST['dmonth'])) { if ($_POST['dmonth'] == 'All') { if ($_POST['dyear'] == '') { $added = $added; $added2 = $added2; $ss = "Displaying All"; } else { $added = $added . " and date_format(ordination,'%Y %b %d') LIKE '%" . $_POST['dyear'] . "%'"; $added2 = $added2 . " and date_format(ordination,'%Y %b %d') LIKE '%" . $_POST['dyear'] . "%'"; $ss = "Displaying Priests Ordained in " . $_POST['dyear']; } } else { if ($_POST['dyear'] == '') { $added = $added . " and date_format(ordination,'%Y %b %d') LIKE '%" . $_POST['dmonth'] . "%'"; $added2 = $added2 . " and date_format(ordination,'%Y %b %d') LIKE '%" . $_POST['dmonth'] . "%'"; $ss = "Displaying Priests Ordained in " . $_POST['dmonth']; } else { $added = $added . " and date_format(ordination,'%Y %b %d') LIKE '%" . $_POST['dmonth'] . "%' and date_format(ordination,'%Y %b %d') LIKE '%" . $_POST['dyear'] . "%'"; $added2 = $added2 . " and date_format(ordination,'%Y %b %d') LIKE '%" . $_POST['dmonth'] . "%' and date_format(ordination,'%Y %b %d') LIKE '%" . $_POST['dyear'] . "%'"; $ss = "Displaying Priests Ordained in " . $_POST['dmonth'] . " " . $_POST['dyear']; } } } ?> <!doctype html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> <?php include("includes/pages-header.php"); ?> <div class="header-height"></div> <div class="pager-header"> <div class="container"> <div class="page-content"> <h2>Umuahia Diocesan Priests</h2> <p>One thing I ask of the Lord. This I long to dwell in the house of the Lord, <br> all the days of my life.</p> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="./">Home</a></li> <li class="breadcrumb-item active">Umuahia Diocesan Priests</li> </ol> </div> </div> </div><!-- /Page Header --> <!-- /Page Header --> <div class="" style="background-color: #F2F2F2;padding: 30px;"> <div class="row"> <div class="col-lg-12"> <h2>Umuahia Diocesan Priests</h2> <form method="post" name="search" id="search"> <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#F7F7F7"> <tr> <td align="center" bgcolor="#E9E9E9"><b>Search By Ordination</b></td> <td align="center" valign="middle" bgcolor="#E9E9E9"><strong>Month: <select name="dmonth" id="dmonth"> <option value="All">All</option> <option value="Jan">January</option> <option value="Feb">February</option> <option value="Mar">March</option> <option value="Apr">April</option> <option value="May">May</option> <option value="Jun">June</option> <option value="Jul">July</option> <option value="Aug">August</option> <option value="Sep">September</option> <option value="Oct">October</option> <option value="Nov">November</option> <option value="Dec">December</option> </select> </strong></td> <td align="center" valign="middle" bgcolor="#E9E9E9"><strong>Year: <input name="dyear" id="dyear" type="number" maxlength="4" size="5" min="1900" max="3000"> </strong></td> <td align="center" valign="middle" bgcolor="#E9E9E9"> <input name="button2" type="submit" class="style14" id="button2" value=" Search " /></td> <td align="center" valign="middle" bgcolor="#E9E9E9"><b><a href="priests.php">Show All</a></b></td> </tr> </table> </form> <hr /> <div class="headingbigger"><?php echo $ss; ?></div> <hr /> <div class="headingstyled">Priests of the Diocese</div> <?php include("includes/config.php"); $query_dio = mysqli_query($con, "SELECT *, date_format(ordination,'%Y %b %d') as dord, date_format(dob,'%Y %b %d') as ddob FROM priests" . $added . " and status='Umuahia Diocesan Priest'"); $row_dio = mysqli_fetch_assoc($query_dio); $totalRows_dio = mysqli_num_rows($query_dio); ?> <?php if ($totalRows_dio > 0) { $gv = 1; ?> <table width="100%" cellspacing="2" cellpadding="3" style="border-collapse:separate; border-spacing:3px;" > <tr valign="top"> <td style="background-color:#333333; color:#FFFFFF"><b>S/N</b></td> <td style="background-color:#333333; color:#FFFFFF"><b>Name</b></td> <td style="background-color:#333333; color:#FFFFFF"><b>Title</b></td> <td style="background-color:#333333; color:#FFFFFF"><b>E-mail</b></td> <td style="background-color:#333333; color:#FFFFFF"><b>Phone</b></td> <td style="background-color:#333333; color:#FFFFFF"><b>Ordination</b></td> <td style="background-color:#333333; color:#FFFFFF"><b>Date of Birth</b></td> <td style="background-color:#333333; color:#FFFFFF"><b> </b></td> </tr> <?php do { ?><tr valign="top"> <td bgcolor="#d9d9d9"><?php echo $gv; ?></td> <td bgcolor="#d9d9d9"><?php echo $row_dio['namer']; ?></td> <td bgcolor="#d9d9d9"><?php echo $row_dio['titler']; ?></td> <td bgcolor="#d9d9d9"><?php echo $row_dio['email']; ?></td> <td bgcolor="#d9d9d9"><?php echo $row_dio['phone']; ?></td> <td bgcolor="#d9d9d9"><?php echo $row_dio['dord']; ?></td> <td bgcolor="#d9d9d9"><?php echo $row_dio['ddob']; ?></td> <td bgcolor="#efefef"><a href="viewpriest?sn=<?php echo $row_dio['sn']; ?>">View</a></td> </tr> <?php $gv++; } while ($row_dio = mysqli_fetch_assoc($query_dio)); ?> </table> <?php } else { echo ("None!"); } ?> </div> <?php //include("includes/sidecontent.php") ?> </div> </div> <?php include("includes/footer.php"); ?> <a data-scroll href="#header" id="scroll-to-top"><i class="arrow_up"></i></a> <!-- jQuery Lib --> <script src="js/vendor/jquery-1.12.4.min.js"></script> <!-- Bootstrap JS --> <script src="js/vendor/bootstrap.min.js"></script> <!-- Tether JS --> <script src="js/vendor/tether.min.js"></script> <!-- Imagesloaded JS --> <script src="js/vendor/imagesloaded.pkgd.min.js"></script> <!-- OWL-Carousel JS --> <script src="js/vendor/owl.carousel.min.js"></script> <!-- isotope JS --> <script src="js/vendor/jquery.isotope.v3.0.2.js"></script> <!-- Smooth Scroll JS --> <script src="js/vendor/smooth-scroll.min.js"></script> <!-- venobox JS --> <script src="js/vendor/venobox.min.js"></script> <!-- ajaxchimp JS --> <script src="js/vendor/jquery.ajaxchimp.min.js"></script> <!-- Counterup JS --> <script src="js/vendor/jquery.counterup.min.js"></script> <!-- waypoints js --> <script src="js/vendor/jquery.waypoints.v2.0.3.min.js"></script> <!-- Slick Nav JS --> <script src="js/vendor/jquery.slicknav.min.js"></script> <!-- Nivo Slider JS --> <script src="js/vendor/jquery.nivo.slider.pack.js"></script> <!-- Letter Animation JS --> <script src="js/vendor/letteranimation.min.js"></script> <!-- Wow JS --> <script src="js/vendor/wow.min.js"></script> <!-- Contact JS --> <script src="js/contact.js"></script> <!-- Main JS --> <script src="js/main.js"></script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 5.6.40 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка