Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="page-content-wrapper">
- <div class="page-content">
- <div class="portlet box red">
- <div class="portlet-title">
- <div class="caption">
- <i class="fa fa-edit"></i>Portofolio
- </div>
- <div class="tools">
- <a href="javascript:;" class="collapse">
- </a>
- </div>
- </div>
- <div class="portlet-body">
- <div class="table-toolbar">
- <div class="btn-group">
- <a href="Create">
- <button id="sample_editable_1_new" class="btn green">
- Add New <i class="fa fa-plus"></i>
- </button></a>
- </div>
- </div>
- <table class="table table-striped table-hover table-bordered" id="sample_editable_1">
- <table class="dataTable table table-striped table-hover table-bordered" id="allan">
- <thead>
- <tr>
- <td>Name</td>
- <td>Picture</td>
- <td>Deskripsi</td>
- <td>User</td>
- <td>Aksi</td>
- </tr>
- </thead>
- <tbody>
- <tr class="gradeX">
- <?php foreach ($data as $model):?>
- <tr>
- <td><?php echo $model->name;?></td>
- <td><?php echo CHtml::image(Yii::app()->request->baseUrl.'/images/'.$model->picture.'','',array('width'=>150));?></td>
- <td><?php echo $model->description;?></td>
- <td><?php echo $model->user->username;?></td>
- <td><?php echo CHtml::link(CHtml::encode('Update'),array('update','id'=>$model->portofolio_id)); ?> | <?php echo CHtml::link(CHtml::encode('Delete'),array('Delete','id'=>$model->portofolio_id)); ?></td>
- </tr>
- <?php endforeach;?>
- </tbody></table>
- </table>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment