Ejemplo n.º 1
0
 public function getCombotablefield(Request $request)
 {
     if ($request->input('table') == '') {
         return json_encode(array());
     }
     if ($request->ajax() == true && \Auth::check() == true) {
         $items = array();
         $table = $request->input('table');
         if ($table != '') {
             $rows = Module::getTableField($request->input('table'));
             foreach ($rows as $row) {
                 $items[] = array($row, $row);
             }
         }
         return json_encode($items);
     } else {
         return json_encode(array('OMG' => "  Ops .. Cant access the page !"));
     }
 }
Ejemplo n.º 2
0
 public function getIndex()
 {
     $this->data['tables'] = Module::getTableList($this->db);
     return view('sximo.tables.index', $this->data);
 }