<!-- begin PAGE TITLE ROW --> <div class="row"> <div class="col-lg-12"> <div class="page-title"> <h1> Páginas editables </h1> <ol class="breadcrumb"> <li><i class="fa fa-dashboard"></i> <a href="<?php echo $this->createUrl('dashboard/'); ?>">Dashboard</a> </li> <li class="active">Páginas editables</li> </ol> </div> </div> <!-- /.col-lg-12 --> </div> <!-- /.row --> <!-- end PAGE TITLE ROW --> <!-- begin ADVANCED TABLES ROW --> <div class="row"> <div class="col-lg-12"> <div style = "margin:15px;"></div> <div class="portlet portlet-default"> <div class="portlet-heading"> <div class="portlet-title"> <h4>Páginas editables</h4> </div> <div class="clearfix"></div> </div> <div class="portlet-body"> <div class="table-responsive"> <table id="example-table" class="table table-striped table-bordered table-hover table-green"> <thead> <tr> <th><?php echo Inicio::model()->getAttributeLabel('titulo') ?></th> <th><center>Activo</center></th> <th><center>Opciones</center></th> </tr> </thead> <tbody> <?php if(isset($model) && !empty($model)){ foreach ($model as $item) { ?> <tr> <td><?php echo $item->titulo ?></td> <td align="center"> <span class="checkslide cambiarActivo" url="<?php echo $this->createUrl('activo',array('id'=>$item->id)) ?>" name="<?php echo $item->titulo; ?>"> <input type="checkbox" <?php echo ($item->activo == 1)? 'checked': '';?>> <label data-on="SI" data-off="NO"></label> </span> </td> <td class="center"> <center> <!--a href="<?php #echo $this->createUrl('/catalogoGalerias/create',array('id'=>$item->id_producto)) ?>" style="margin-right:15px;"> <span><i class="fa fa-picture-o"></i></span> </a--> <a href="<?php echo $this->createUrl('update',array('id'=>$item->id)) ?>" style="margin-right:15px;"> <span><i class="fa fa-pencil"></i></span> </a> <!--a href="<?php #echo $this->createUrl('view',array('id'=>$item->id_documento)) ?>" > <span><i class="fa fa-eye"></i></span> </a--> <!--a href="javaScript:void(0)" url="<?php echo $this->createUrl('delete',array('id'=>$item->id)) ?>" class="eliminarRegistro" name="<?php echo $item->titulo ?>" data-text = "<?php echo $item->titulo ?>" > <span><i class="fa fa-trash"></i></span> </a--> </center> </td> </tr> <?php } } ?> </tbody> </table> </div> <!-- /.table-responsive --> </div> <!-- /.portlet-body --> </div> <!-- /.portlet --> </div> <!-- /.col-lg-12 --> </div> <!-- /.row -->