Gifari Industries - BD Cyber Security Team
Home
/
home
/
decohaslibrary
/
public_html
/
✏️
Editing: popupnurse.php
<?php session_start(); $user = $_SESSION['username']; $log = $_SESSION['Students']; if ($log != "log"){ header ("Location: login.php"); } ?> <html> <head> <title>DECOHAS Library System </title> <link rel = "stylesheet" type ="text/css" href = "css/style.css"/> </head> <body > <style> .pagination a{ color:black; float:left; padding:8px 16px; text-decoration:none; background:#ddd; border:2px solid #F6F4F0; } .pagination a.active{ background:green; color:#fff; } .pagination a:hover:not(.active){ background:#ddd; } </style> <div id = "container"> <div id = "bg_container"> <div id="header" > </div> <div id ="bg_wrapper" > <h1 style="font-size:28px;">DECOHAS Online Library System<h1> </div> <div id ="wrapper"> <div class = "navbar"> <ul> <li><a href = "member.php"><img src = "images/home.gif" style="margin-right:3px; background:white;">Home</img></a></li> <li></li> <li><a href = "changepassm.php"><img src = "images/my_account.png" style="margin-right:3px;">Update password</img></a></li> <li><a href = "index.php"><img src = "images/logout.png" style="margin-right:3px;">Logout</img></a></li> </ul> </div> <!doctype/> <?php /* session_start(); $user = $_SESSION['username']; $log = $_SESSION['Students']; if ($log != "log"){ header ("Location: login.php"); } */ ?> <?php include 'sql.php'; ?> <html> <body> <?php $sql ="SELECT * FROM nursing_book"; $result = mysql_query($sql); $row_count = mysql_num_rows($result); //echo $row_count; //create pagination $total_per_page = 1; $totalpages = ceil($row_count/$total_per_page); if(isset($_GET['page']) && !empty($_GET['page'])) { $page = $_GET['page']; } else $page = 1; $offset = ($page - 1)*$total_per_page; $sql="SELECT * FROM nursing_book LIMIT $total_per_page OFFSET $offset"; $result_set=mysql_query($sql); while($row=mysql_fetch_array($result_set)) { ?> <frameset cols="50%"> <div style = "margin-top:10px;"> <div style=" margin-top:0px;"> <b ><a href="books/<?php echo $row['image']?>"style="text-decoration:none; font-size:17px; color:blue; margin-left:20px; " target="source"><?php echo $row['message'] ?> <br/></a></b> <div style="margin-left:20px; padding:4px;"> <?php //echo $row['other']?> </div> <iframe name="source" src="" width="99%" height="100%" frameborder = "0"></iframe> </div> </div> <div style=" margin-left:50px; margin-top:20px;width:100%px; border-radius:4px;"> <?php echo '<div class = "pagination" >'; for($i=1; $i<=$totalpages; $i++) { if($i==$page) echo '<a class ="active">'.$i. '</a>'; else echo '<a href="popupnurse.php?page='.$i.'">'. $i. '</a>'; } echo '</div>'; ?> </div> </frameset> <?php } ?> </div> <div id="footer" > <p >©2017 DECOHAS</p> </div> </div> </div> </body> </html>
💾 Save
❌ Cancel