:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/public_html/admin/pages/projects/**
:: Editing File: list_projects.php
<?php include '../../include/config.php'; include '../../auth.php'; include "../../include/header.php"; include "../../include/sidebar.php"; ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1>Properties List</h1> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="<?php echo $DOMAIN_NAME_ADMIN;?>"><i class="fa fa-home"></i> Home </a></li> <li class="breadcrumb-item active">Dashboard</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <div class="box"> <div class="box-header"> <h3 class="box-title"> All Portfolio List</h3> <a href="add_projects.php" style="float: right;background-color: #ff6028;border-color: #ff6028;" class="btn btn-primary">+Add New Portfolio </a> </div> <!-- /.box-header --> <div class="box-body"> <div class="table-responsive"> <?php if (isset($_SESSION['message'])) { ?> <div class="alert alert-info" style="width: 100%;text-align: center;background: #777777 !important;"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> <?php echo $_SESSION['message']; unset($_SESSION['message']); ?> </div> <?php } ?> <table id="example" class="table table-bordered table-hover display nowrap margin-top-10"> <thead> <tr> <th>#</th> <th>Category Name</th> <!-- <th>Properties Name</th> --> <th>Image</th> <!-- <th>Properties Location</th> <th>Properties Other Image</th>--> <th>Status</th> <td>Action</td> </tr> </thead> <tbody> <?php $lead="SELECT * FROM tbl_porjects order by id"; $stmt_lead=$conn->query($lead); $client_lead = $stmt_lead->fetchAll(); $count_id = '1'; foreach ($client_lead as $row) { $sql="SELECT name FROM tbl_category where id = '".$row['category_id']."' order by id desc"; $stmt1=$conn->query($sql); $category = $stmt1->fetch(); ?> <tr> <td><?php echo $count_id++; ?></td> <td><?php echo $category['name']; ?></a></td> <!--<td><?php /*echo $row['porperties_name']; */?></a></td>--> <td> <?php if(!empty($row['image'])) { ?> <img src="<?php echo $DOMAIN_NAME_ADMIN.'/storage/projects/'.$row['image']?>" class="form-control" name="" style="width:80px;height:80px"> <?php } else { ?> <img src="<?php echo $DOMAIN_NAME_ADMIN.'/storage/gallery.jpg'?>" width="100px" height="100px" style="float:right"> <?php } ?> </td> <!--<td><?php /* echo $row['porperties_location']; ?></a></td> <td><a href="list_image.php?properties_id=<?php echo $row['id']; */ ?>">List All images</a></td> --><td><?php if( $row['status'] == '1'){ echo "Active"; } else { echo "Inactive"; }?></td> <td> <a href="edit_projects.php?id=<?php echo $row['id'];?>"><i class='fa fa-pencil'></i></a> <a href="delete_projects.php?id=<?php echo $row['id'];?>" onclick="confirm_click()"><i class='fa fa-trash'></i></a> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.Main content Completed--> </div> <!-- /.content-wrapper --> <?php include "../../include/footer.php"; ?>