/** * Método para setear * @param string $method Método a ejecutar (create, update, save) * @param array $data Array con la data => Input::post('model') * @param array $otherData Array con datos adicionales * @return Obj */ public static function setSector($method, $data, $optData = null) { //Se aplica la autocarga $obj = new sector($data); //Se verifica si contiene una data adicional para autocargar if ($optData) { $obj->dump_result_self($optData); } $rs = $obj->{$method}(); return $rs ? $obj : FALSE; }
//echo 'password = '******'<tr>'; echo '<td width="5%" align="center"></td>'; echo '<td width="15%"><input type="checkbox" name="selector[]" id="selector[]" value="' . $list->sector_id . '"/>'; echo '<td width="60%" >' . $list->name . '</td>'; echo '<td width="10%" ><a href = "index.php?view=edit&id=' . $list->sector_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> Edit</a></td>'; echo '<td><a href = "index.php?view=view§orId=' . $list->sector_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> View</a></td>'; echo '</tr>'; } //} } else { $sector = new sector(); $sectorList = $sector->listOfsectors(); foreach ($sectorList as $list) { echo '<tr>'; echo "nothing to display"; echo '</tr>'; } } ?> </tbody> </table> <?php