H69UNtblNBNpha2dtB1Odn8qYp1Qk5NK2gi7yfceofo9N
/
home
/
ymswebso
/
public_html
/
buydotcom
/
app
/
View
/
News
/
Nama File / Folder
Size
Action
admin_index.ctp
4.316KB
Hapus
Edit
Rename
index.ctp
2.483KB
Hapus
Edit
Rename
<div class="content"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="portlet"> <h2 class="portlet-title"> <u>Manage News</u> <u class="pull-right margin-top-mobile-15-pc-minus-7" style="border-bottom:none;"> <a data-toggle="modal" href="/admin/news/add" class="btn btn-green"><span class="fa fa-plus-square" style="font-size:14px;"></span> Add New News</a> </u> </h2> <div class="portlet-body"> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="custom-table"> <thead> <tr> <th class="padding-left-10" width="5%">ID</th> <th class="padding-left-10" width="20%">Title</th> <th class="padding-left-10" width="30%">Description</th> <th class="padding-left-10" width="10%">Sort Order</th> <th style="text-align:center;" width="15%">Status</th> <th style="text-align:center;" width="18%">Action</th> </tr> </thead> <thead> <?php //print_r($mobilemodels); foreach($news as $new){?> <tr> <td colspan="6" height="5"></td> </tr> <tr> <td bgcolor="#F2F2F2" class="padding-left-25 padding-top-11 padding-bottom-11">#<?php echo $new['News']['id']; ?></td> <td bgcolor="#F2F2F2" class="padding-left-10 padding-top-11 padding-bottom-11"><?php echo $new['News']['title']; ?></td> <td bgcolor="#F2F2F2" class="padding-left-10 padding-top-11 padding-bottom-11"><?php echo $new['News']['description']; ?></td> <td bgcolor="#F2F2F2" class="padding-left-10 padding-top-11 padding-bottom-11"><?php echo $new['News']['order']; ?></td> <td bgcolor="#F2F2F2" style="text-align:center;"> <?php if($new['News']['status'] == 'Yes'){?> <span class="whitetext completed"><strong>Active</strong></span> <?php }else{?> <span class="whitetext cancelled"><strong>Inactive</strong></span> <?php }?> </td> <td bgcolor="#F2F2F2" style="text-align:center;"> <a href="/admin/news/updatestatus/yes/<?php echo $new['News']['id']; ?>"><img src="/backend/img/active.png"></a> <img src="/backend/img/backslash.png"><a href="/admin/news/updatestatus/no/<?php echo $new['News']['id']; ?>"><img src="/backend/img/inactive.png"></a><img src="/backend/img/backslash.png"><a href="/admin/news/edit/<?php echo $new['News']['id']; ?>"><img src="/backend/img/edit.png"></a><img src="/backend/img/backslash.png"> <?php echo $this->Form->postLink( $this->Html->image('../backend/img/delete.png', array("alt" => __('Delete'), "title" => __('Delete'))), array('action' => 'delete', $new['News']['id']), array('escape' => false, 'confirm' => __('Delete Opration will remove the data permanently form database. Are sure to delete this record.')) ); ?> </td> </tr> <?php }?> <tr> <td colspan="6" height="20"></td> </tr> <tr> <td colspan="6" class="text-center"> <ul class="pagination"> <?php echo $this->Paginator->prev(__('prev'), array('tag' => 'li'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a')); echo $this->Paginator->numbers(array('separator' => '','currentTag' => 'a', 'currentClass' => 'active','tag' => 'li','first' => 1)); echo $this->Paginator->next(__('next'), array('tag' => 'li','currentClass' => 'disabled'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a')); ?> </ul> </td> </tr> </thead> </table> </div> <!-- /.portlet-body --> </div> <!-- /.portlet --> </div> <!-- /.col --> </div> <!-- /.row --> </div> <!-- /.container --> </div> <!-- .content -->