Esempio n. 1
0
 $_SESSION['city_id'] = (int) $landmarkInfo->city_id;
 $landmarkAllImages = $landmark->selectAllLandmarkItemsImages((int) $_GET['landmark_id']);
 ?>
 <!DOCTYPE html>
 <html>
 	<head>
 		<title>Промени</title>
         <meta charset = "UTF-8" />  
         <link rel="stylesheet" type="text/css" href="../css/forms.css">   
 	</head>
 	<body background="../images/background/back_edit.jpg">
 		<?php 
 if ($_SERVER['REQUEST_METHOD'] == 'POST') {
     ?>
             <?php 
     $errors = $landmark->isValidEditLandmark($_POST);
     $landmarkInfo = $landmark->select((int) $_GET['landmark_id']);
     ?>
             <?php 
     if (count($errors) == 0) {
         ?>
                 <?php 
         echo "<strong>Вашите данни са променени успешно!</strong>";
         ?>
             <?php 
     } else {
         ?>
                 <?php 
         echo isset($errors['same_data']) ? "<strong>" . $errors['same_data'] . "</strong>" : "";
         ?>
             <?php