Ejemplo n.º 1
0
            } else {
                $errors = array_push($errors, "There was an issue with your input. Please try again");
            }
        }
    }
    $required = array("homeslides_text");
    foreach ($required as $require) {
        $value = trim($_POST[$require]);
        if (!has_value($value)) {
            $errors[$require] = ucfirst($require) . " can't be blank.";
        }
    }
    $max_lengths = array("homeslides_text" => 40);
    max_length($max_lengths);
    if (empty($errors)) {
        $updateSlide = editSlide($savedId, $text, $imagesrc, $slideLink);
        $message = $updateSlide;
    }
}
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>EDFC | Admin - Edit a Slide</title>
<link rel="stylesheet" href="../../css/normalize.css"/>
  <link rel="stylesheet" href="../../css/foundation.css" />
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" href="../css/main.css"/>
</head>
<body>
Ejemplo n.º 2
0
 case "unpublish_category":
     publishCategories(0, $option);
     break;
     // SLIDES
 // SLIDES
 case "cancel":
     cancelSlide($option);
     break;
 case "slides":
     showSlides($option);
     break;
 case "new":
     editSlide(0, $option, $fpss_config);
     break;
 case "edit":
     editSlide($cid[0], $option, $fpss_config);
     break;
 case "save":
     saveSlide($option);
     break;
 case "orderup":
     orderSlide($cid[0], -1, $option);
     break;
 case "orderdown":
     orderSlide($cid[0], 1, $option);
     break;
 case "saveorder":
     saveOrder($cid, $option);
     break;
 case "publish":
     publishImages($cid, 1, $option);