File Manager by Orions-Hunter
Editing: how_to_farming.php
<?php $page=3; include("assets/header.php"); include("database/db.php"); $query = "SELECT * FROM `how_to_farming`"; $result = mysqli_query($con, $query); ?> <!-- Page Header Start --> <div class="container-fluid page-header py-5 mb-5 wow fadeIn" data-wow-delay="0.1s"> <div class="container text-center py-5"> <h1 class="display-3 text-white mb-4 animated slideInDown">How to farming</h1> <nav aria-label="breadcrumb animated slideInDown"> <ol class="breadcrumb justify-content-center mb-0"> <li class="breadcrumb-item"><a href="#">Home</a></li> <li class="breadcrumb-item active" aria-current="page">How to farming</li> </ol> </nav> </div> </div> <!-- Page Header End --> <div class="container-xxl py-5"> <div class="container"> <div class="row g-4"> <?php while($row = mysqli_fetch_assoc($result)) { ?> <div class="col-lg-3 col-md-6 wow fadeInUp" data-wow-delay="0.1s"> <div class="team-item rounded"> <?php if($row['post_type']=='Private') { ?> <a type="button" class="myfunction"><span style="position: absolute;"><?php echo $row['id']; ?></span> <!-- The pop-up --> <div id="popupi<?php echo $row['id']; ?>" class="overlay"> <div class="popup"> <button class="btn_new mydifunction"><i class="bi bi-x-circle" style="font-size: 20px;"></i><span style="position: absolute; top: -100%;"><?php echo $row['id']; ?></span></button> <div class="row g-3" > <div class="form-group"> <p><?php echo $row['title']; ?></p> <label for="name">Enter Password</label> <input type="hidden" name="blog_id" class="blog_id" value="<?php echo $row['id']; ?>"> <input type="password" class="form-control password" id="" name="password" > <span class="text-danger fw-bold pass_wrong" style="font-size:12px;">Incorrect Password</span> <button type="button" style="margin-top: 7px; float: right;" class="btn btn-success submit_password" style="float:right;">Submit</button> </div> <!--<div class="form-group">--> <!--</div>--> </div> </div> </div> <img class="img-fluid" src="admin/dashboard/images/how_to_farming/<?php echo $row['cover_image']; ?>" alt="" style="width:342px;height:300px;"> </a> <div class="team-text"> <h4 class="mb-0"><?php echo $row['title']; ?></h4> <p class="text-primary"><?php echo date('F j, Y',strtotime($row['date'])) ?></p> </div> <div class="row d-flex bg-primary" style="height:60px;"> <a type="button" class="myfunction col-md-7 col-7 d-flex justify-content-start text-light mt-2" style="margin-left: 20px; font-size: 20px;"><span style="z-index:-99;position: relative;"><?php echo $row['id']; ?></span><strong>Read More</strong></a> <div class="col-md-4 col-4 team-social d-flex justify-content-end mt-2"> <a type="button" class="btn btn-square rounded-circle me-2 myfunction" ><i class="fa fa-arrow-right" style="margin-left: 10px;"></i><span style="z-index:-99;position: relative;"><?php echo $row['id']; ?></span></a> <!-- The pop-up --> <div id="popup<?php echo $row['id']; ?>" class="overlay" style="display: none;"> <div class="popup"> <button class="btn_new mydfunction"><i class="bi bi-x-circle" style="font-size: 20px;"></i><span style="position: absolute; top: -100%;"><?php echo $row['id']; ?></span></button> <div class="row g-3" > <div class="form-group"> <p><?php echo $row['title']; ?></p> <label for="name">Enter Password</label> <input type="hidden" name="blog_id" class="blog_id" value="<?php echo $row['id']; ?>"> <input type="password" class="form-control password" id="" name="password"> <span class="text-danger fw-bold pass_wrong" style="font-size:12px;">Incorrect Password</span> <button type="button" style="margin-top: 7px; float: right;" class="btn btn-success submit_password" style="float:right;">Submit</button> </div> <!--<div class="form-group">--> <!--</div>--> </div> </div> </div> </div> </div> <?php } else { ?> <a href="how_to_farming_detail.php?id=<?php echo $row['id']; ?>"><img class="img-fluid" src="admin/dashboard/images/how_to_farming/<?php echo $row['cover_image']; ?>" alt="" style="width:342px;height:300px;"></a> <div class="team-text"> <h4 class="mb-0"><?php echo $row['title']; ?></h4> <p class="text-primary"><?php echo date('F j, Y',strtotime($row['date'])) ?></p> </div> <div class="row d-flex bg-primary" style="height:60px;"> <a href="how_to_farming_detail.php?id=<?php echo $row['id']; ?>" class="col-md-7 col-7 d-flex justify-content-start text-light mt-2" style="margin-left: 20px; font-size: 20px;"><strong>Read More</strong></a> <div class="col-md-4 col-4 team-social d-flex justify-content-end mt-2"> <a class="btn btn-square rounded-circle me-2" href="how_to_farming_detail.php?id=<?php echo $row['id']; ?>"><i class="fa fa-arrow-right"></i></a> </div> </div> <?php } ?> </div> </div> <?php } ?> </div> </div> </div> <style> .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 9999; } .popup { background-color: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); max-width: 400px; margin: 0 auto; } .form-group button { padding: 10px 20px; background-color: #287f1c!important; color: #fff!important; border: none; cursor: pointer; } .btn_new { width: 3%; position: absolute; border: none; margin-left: 339px; margin-top: -24px; border-radius: 50px 50px 50px 50px; background: none; } </style> <?php include("assets/footer.php"); ?>
💾 Save
← Back to Dir