コード例 #1
0
 function __construct()
 {
     $this->table = 'noticia';
     $this->fields = array('texto', 'fecha');
     $this->level = 0;
     parent::__construct();
 }
コード例 #2
0
ファイル: Equipo.php プロジェクト: RamonCidL/Carrilanas
 function __construct()
 {
     $this->table = 'equipo';
     $this->listTable = 'equipoConCategoria';
     $this->fields = array('nombre', 'foto', 'comentario', 'categoria_id');
     $this->level = 1;
     parent::__construct();
 }
コード例 #3
0
 function __construct()
 {
     $this->table = 'carrera';
     $this->detailView = 'inscripcion';
     $this->fields = array('nombre', 'fecha', 'lugar', 'distancia', 'mapa');
     $this->level = 10;
     parent::__construct();
 }
コード例 #4
0
ファイル: Foto.php プロジェクト: RamonCidL/Carrilanas
 function __construct()
 {
     $this->table = 'foto';
     $this->listTable = 'fotoConMiembro';
     $this->fields = array('titulo', 'foto', 'comentario', 'miembro_id');
     $this->level = 10;
     parent::__construct();
 }
コード例 #5
0
ファイル: Miembro.php プロジェクト: RamonCidL/Carrilanas
 function __construct()
 {
     $this->table = 'miembro';
     $this->listTable = 'miembroConEquipo';
     $this->fields = array('nombre', 'foto', 'password', 'telefono', 'correo', 'equipo_id');
     $this->level = 1;
     parent::__construct();
 }
コード例 #6
0
 function __construct()
 {
     $this->table = 'piloto';
     $this->listTable = 'pilotoConEquipo';
     $this->fields = array('nombre', 'direccion', 'telefono', 'email', 'fecha_de_nacimiento', 'foto', 'equipo_id');
     $this->level = 10;
     parent::__construct();
 }
コード例 #7
0
 function __construct()
 {
     $this->table = 'pruebas';
     $this->listTable = 'pruebasView';
     $this->detailView = 'fotoDePrueba';
     $this->fields = array('nombre', 'fecha', 'pagado', 'comentario', 'usuario_id', 'foto_id');
     $this->level = 0;
     parent::__construct();
 }
コード例 #8
0
ファイル: Prueba.php プロジェクト: RamonCidL/Carrilanas
 function __construct()
 {
     $this->table = 'pruebas';
     $this->listTable = '';
     $this->formTemplate = 'pruebaForm.tpl';
     $this->listTemplate = 'pruebaList.tpl';
     $this->detailView = 'piloto';
     $this->fields = array('nombre', 'fecha', 'pagado', 'comentario', 'usuario_id', 'foto');
     $this->level = 0;
     parent::__construct();
 }
コード例 #9
0
 public function scan()
 {
     if (Efiwebsetting::getData('checkOAuth') == 'yes') {
         IMBAuth::checkOAuth();
     }
     $id_user = isset($_GET['id_user']) ? addslashes($_GET['id_user']) : "";
     if (!$id_user) {
         Generic::errorMsg("Please login!");
     }
     if (!User::checkUserID($id_user)) {
         Generic::errorMsg("ID User not found!");
     }
     $QR = Generic::mustCheck($_GET['QR'], "No QR found!");
     $objOrder = new MasterOrderModel();
     // check, QR validapakah table free
     // table status = 0, occupied, 1 is free
     if (!Mastertable::isQRValid($QR)) {
         Generic::errorMsg("Invalid QR Code");
     }
     $objUser = new UserModel();
     $objUser->getByID($id_user);
     $objTable = Mastertable::getTableBYQR($QR);
     $id_table = $objTable[0]->id_table;
     $objTable = Mastertable::getTableID($id_table);
     $isTableFree = MasterTable::isTableFree($objTable);
     // Table free
     if ($isTableFree) {
         $paymentMethod = Generic::mustCheck($_GET['payment_method'], "Payment Method Required");
         $this->requestRestoPermission($objUser, $objTable, $paymentMethod);
     } else {
         $objOrder = MasterOrder::getActiveOrderByTableID($id_table);
         Generic::checkCountWithMsg($objOrder, "Empty ID Order!");
         $this->requestJoinTable($objUser, $objOrder);
     }
     die;
 }
コード例 #10
0
ファイル: Calendario.php プロジェクト: RamonCidL/Carrilanas
 function __construct()
 {
     $this->level = 10;
     parent::__construct();
 }