Server IP : 192.185.129.71 / Your IP : 3.16.75.169 Web Server : Apache System : Linux bh-ht-3.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : svymadmin ( 4072) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home4/svymadmin/public_html/vivekaexcel.edu.in/application/views/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include "header.php"?> <?php include "navigation.php"?> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <form id="TypeValidation" class="form-horizontal" action="<?php echo base_url();?>admin/news/uploads" method="POST" enctype="multipart/form-data"> <div class="card "> <div class="card-header card-header-rose card-header-text"> <div class="card-text"> <h4 class="card-title">News & Update</h4> </div> </div> <div class="card-body "> <div class="row"> <label class="col-sm-2 col-form-label">News Date</label> <div class="col-sm-7"> <div class="form-group"> <input type="date" class="form-control datepicker" name="date"> </div> </div> <label class="col-sm-3 label-on-right"> <code>required</code> </label> </div> <div class="row"> <label class="col-sm-2 col-form-label">Category</label> <div class="col-sm-7"> <div class="form-group"> <input class="form-control" type="text" name="category" /> </div> </div> <label class="col-sm-3 label-on-right"> <code>required</code> </label> </div> <div class="row"> <label class="col-sm-2 col-form-label">Title</label> <div class="col-sm-7"> <div class="form-group"> <input class="form-control" type="text" name="title" /> </div> </div> <label class="col-sm-3 label-on-right"> <code>required</code> </label> </div> <div class="row"> <label class="col-sm-2 col-form-label">Description</label> <div class="col-sm-7"> <div class="form-group"> <textarea class="form-control" type="text" name="description"></textarea> </div> </div> <label class="col-sm-3 label-on-right"> <code>required</code> </label> </div> <div class="row"> <div class="col-md-3"></div> <div class="fileinput fileinput-new text-center" data-provides="fileinput"> <input type="file" class="form-control" name="image"> </div> <label class="col-sm-3 label-on-right"> <code>required</code> </label> </div> </div> <div class="card-footer ml-auto mr-auto"> <button type="submit" class="btn btn-rose">Submit</button> </div> </div> </form> </div> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header card-header-primary card-header-icon"> <div class="card-icon"> <i class="material-icons">assignment</i> </div> <h4 class="card-title">DataTables.net</h4> </div> <div class="card-body"> <div class="toolbar"> <!-- Here you can write extra buttons/actions for the toolbar --> </div> <div class="material-datatables"> <table id="datatables" class="table table-striped table-no-bordered table-hover" cellspacing="0" width="100%" style="width:100%"> <thead> <tr> <th>Sl. No.</th> <th>Category</th> <th>Title</th> <th>Date</th> <th>Image</th> <th class="disabled-sorting text-right">Actions</th> </tr> </thead> <tfoot> <tr> <th>Sl. No.</th> <th>Category</th> <th>Title</th> <th>Date</th> <th>Image</th> <th class="text-right">Actions</th> </tr> </tfoot> <tbody> <?php $count=1; foreach($news as $row):?> <tr> <td><?php echo $count;?></td> <td><?php echo $row['category'];?></td> <td><?php echo $row['title'];?></td> <td><?php echo $row['date'];?></td> <td><img src="<?php echo base_url().'uploads/news/'.$row['image'];?>" style="width: 200px;"></td> <td class="text-right"> <a href="<?php echo base_url().'admin/news/edit/'.$row['id'];?>" class="btn btn-link btn-warning btn-just-icon edit"><i class="material-icons">dvr</i></a> <a href="<?php echo base_url().'admin/news/delete/'.$row['id'];?>" class="btn btn-link btn-danger btn-just-icon remove"><i class="material-icons">close</i></a> </td> </tr> <?php $count++;endforeach;?> </tbody> </table> </div> </div> <!-- end content--> </div> <!-- end card --> </div> <!-- end col-md-12 --> </div> </div> </div> <?php include "footer.php"?>