ACC SHELL

Path : /srv/www/vhosts/unitedsolution/admin/page/
File Upload :
Current File : /srv/www/vhosts/unitedsolution/admin/page/category_edit.php

<?php

$category = new category;

if(!empty($_GET['id'])){
	
	$id = $_GET['id'];

}
else{
	
	$id = $_POST['id'];

}

if($_POST['button'] == 'ulozit'){
	
	$category->edit($_POST['id'],$_POST['name']);

}

$category->show_one($id);

echo '<h1 class="page_show_h">Statické stránky</h1>';


if($category->msg != CATEGORY_UPDATED){

echo '<div class="page_msg1">'.$category->msg.'</div>';

?>
<a id="page_bakc" href="default.php?page=page/category"><img border="0" src="img/Back.jpg" alt="Zpět" title="Zpět" /></a>
<form name="category" method="post" action="default.php?page=page/category_edit">
	<label for="name">Jméno kategorie: </label><input type="text" name="name" id="name" value="<?= $category->name ?>" />
	<input type="hidden" name="id" value="<?= $id ?>" />
	<input type="hidden" name="button" value="ulozit" />
	<input id="button_category_edit" name="button" type="image" src="img/Save.jpg" title="Uložit" value="ulozit" />
</form>

<? 
}
else{

	echo '<div class="page_msg2">'.$category->msg.'</div>';

}

 ?>

ACC SHELL 2018