Add files via upload
This commit is contained in:
@ -8,7 +8,7 @@ include_once('../assets/php/form.php');
|
||||
class formAddCinema extends Form{
|
||||
|
||||
public function __construct(){
|
||||
$op = array("action"=>"./?state=mc&option=a");
|
||||
$op = array("action"=>"./?state=mc");
|
||||
parent::__construct('formAddCinema',$op);
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@ class formAddFilm extends Form{
|
||||
const EXTENSIONS = array('gif','jpg','jpe','jpeg','png');
|
||||
|
||||
public function __construct() {
|
||||
$options = array("action" => "./?state=mf&option=a", 'enctype' => 'multipart/form-data');
|
||||
$options = array("action" => "./?state=mf", 'enctype' => 'multipart/form-data');
|
||||
parent::__construct('formAddFilm', $options);
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@ class formAddManager extends Form{
|
||||
const HTML5_EMAIL_REGEXP = '^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$';
|
||||
|
||||
public function __construct() {
|
||||
$options = array("action" => "./?state=mg&option=a");
|
||||
$options = array("action" => "./?state=mg");
|
||||
parent::__construct('formAddManager', $options);
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@ class formAddPromotion extends Form{
|
||||
const EXTENSIONS = array('gif','jpg','jpe','jpeg','png');
|
||||
|
||||
public function __construct() {
|
||||
$options = array("action" => "./?state=mp&option=a", 'enctype' => 'multipart/form-data');
|
||||
$options = array("action" => "./?state=mp", 'enctype' => 'multipart/form-data');
|
||||
parent::__construct('formAddPromotion', $options);
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@ include_once('../assets/php/form.php');
|
||||
class formDeleteCinema extends Form{
|
||||
|
||||
public function __construct(){
|
||||
$op = array("action"=>"./?state=mc&option=d");
|
||||
$op = array("action"=>"./?state=mc");
|
||||
parent::__construct('formAddCinema',$op);
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ class formDeleteFilm extends Form{
|
||||
const HTML5_EMAIL_REGEXP = '^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$';
|
||||
|
||||
public function __construct() {
|
||||
$options = array("action" => "./?state=mf&option=d");
|
||||
$options = array("action" => "./?state=mf");
|
||||
parent::__construct('formDeleteFilm', $options);
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ class formDeleteManager extends Form{
|
||||
const HTML5_EMAIL_REGEXP = '^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$';
|
||||
|
||||
public function __construct() {
|
||||
$options = array("action" => "./?state=mg&option=d");
|
||||
$options = array("action" => "./?state=mg");
|
||||
parent::__construct('formDeleteManager', $options);
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ class formDeletePromotion extends Form{
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$op = array("action" => "./?state=mp&option=d");
|
||||
$op = array("action" => "./?state=mp");
|
||||
parent::__construct('formEditPromotion', $op);
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@ include_once('../assets/php/form.php');
|
||||
class formEditCinema extends Form{
|
||||
|
||||
public function __construct(){
|
||||
$op = array("action"=>"./?state=mc&option=e");
|
||||
$op = array("action"=>"./?state=mc");
|
||||
parent::__construct('formAddCinema',$op);
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@ class formEditFilm extends Form{
|
||||
const EXTENSIONS = array('gif','jpg','jpe','jpeg','png');
|
||||
|
||||
public function __construct() {
|
||||
$options = array("action" => "./?state=mf&option=e", 'enctype' => 'multipart/form-data');
|
||||
$options = array("action" => "./?state=mf", 'enctype' => 'multipart/form-data');
|
||||
parent::__construct('formEditFilm', $options);
|
||||
}
|
||||
|
||||
@ -137,7 +137,7 @@ class formEditFilm extends Form{
|
||||
<div class='column side'></div>
|
||||
</div>
|
||||
";
|
||||
//$result = './?state=mf';
|
||||
//$result = './?state=mf';
|
||||
|
||||
}else {
|
||||
$result['img'] = 'El archivo tiene un nombre o tipo no soportado';
|
||||
|
@ -11,7 +11,7 @@ class formEditManager extends Form{
|
||||
const HTML5_EMAIL_REGEXP = '^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$';
|
||||
|
||||
public function __construct() {
|
||||
$options = array("action" => "./?state=mg&option=e");
|
||||
$options = array("action" => "./?state=mg");
|
||||
parent::__construct('formEditManager', $options);
|
||||
}
|
||||
|
||||
@ -69,7 +69,7 @@ class formEditManager extends Form{
|
||||
</div>
|
||||
<div class='column side'></div>
|
||||
</div>";
|
||||
//$result = './?state=mg';
|
||||
// $result = './?state=mg';
|
||||
|
||||
}
|
||||
else{
|
||||
|
@ -12,7 +12,7 @@ class formEditPromotion extends Form{
|
||||
const EXTENSIONS = array('gif','jpg','jpe','jpeg','png');
|
||||
|
||||
public function __construct() {
|
||||
$options = array("action" => "./?state=mp&option=e", 'enctype' => 'multipart/form-data');
|
||||
$options = array("action" => "./?state=mp", 'enctype' => 'multipart/form-data');
|
||||
parent::__construct('formEditPromotion', $options);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user