Exemple #1
0
            ?>
                            </div>
                            <?php 
            foreach ($lineas as $data) {
                ?>
                                <div class='linea-info hide' data-lin='<?php 
                echo $data['id'];
                ?>
'>
                                    <div class='info-wraper'>
                                        <div><yText>Nombre:</yText><?php 
                echo " " . $data['nombre_linea'];
                ?>
</div>
                                        <div><yText>Categoria:</yText><?php 
                echo " " . SnCategorias::model()->getCategoria($data['id_categoria']);
                ?>
</div>
                                        <div><yText>Descripción:</yText></div>
                                        <div><?php 
                echo $data['descripcion_linea'];
                ?>
</div>
                                        <?php 
                if ($this->getColaboradoresLineas($data['id'], 0) == 1) {
                    ?>
                                            <div><yText>Colaboradores:</yText></div>
                                            <?php 
                    $this->getColaboradoresLineas($data['id'], 1);
                    ?>
                                        <?php 
 public function id_categoriaChoices()
 {
     $m = SnCategorias::model()->findAll();
     $return = array();
     foreach ($m as $data) {
         $return[$data->id_categoria] = $data->categoria;
     }
     return $return;
 }