📁 File Manager
Editing:
/home/wedigitalindia/public_html/demo.wedigitalindia.com/dcl-erp/assets.php
<?php include_once("include/head.php"); ?> <div class="main-panel"> <div class="content-wrapper"> <div class="card"> <div class="card-body"> <div class="row"> <div class="col-md-3"> <h4 class="card-title">ASSETS LIST</h4> </div> <div class="col-md-9"> <a href="add-assets.php" class="btn btn-primary" style="float: right; margin-bottom: 10px;">Add Assets</a> </div> </div> <div class="row"> <div class="col-12"> <div class="table-responsive"> <table id="order-listing" class="table"> <thead> <tr> <th>S.No</th> <th>Asset Name</th> <th>Type</th> <th>Model No.</th> <th>Serial No.</th> <th>Assigned to</th> <th>Assigned Date</th> <th>Created At</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> <?php $count=1; $sql = "SELECT * FROM assets"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { $status = $row['status']; if($status == 1){ $status = 'Active'; }else{ $status = 'Inactive'; } ?> <tr> <td><?php echo $count++ ?></td> <td><?php echo $row['name'] ?></td> <td><?php echo $row['type'] ?></td> <td><?php echo $row['model_no'] ?></td> <td><?php echo $row['serial_no'] ?></td> <td><?php echo $row['assigned_to'] ?></td> <td><?php echo $row['date'] ?></td> <td><?php echo $row['created_at'] ?></td> <td><?php echo $status ?></td> <td> <a href="asset-edit.php?id=<?php echo $row['id']?>" class="btn btn-primary btn-sm">Edit</a> <button type="button" class="btn btn-danger btn-sm mb-2 ml-2" data-toggle="modal" data-target="#exampleModal-5">Delete</button> </td> </tr> <?php } } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <?php include_once("include/footer.php"); ?> </body> </html>
Save
Cancel