<?php
  ///////////////////////////////////////////////////
  //2010 (C)
  //Карпухин Павел
  ///////////////////////////////////////////////////
require_once "../utils/chlang.php";

$title = $TEXT['vozrast-title'];

require_once "../config_a.php";
require_once "../utils/functions.php";
require_once "../utils/top_adm_film.php";

if($result2['administrator'] == 0) {puterror($result2['skin'],$TEXT['error-loginform2']); require_once "../utils/bottom_adm_film.php"; exit();}

$button = $TEXT['btn_save'];
$action = "edit.php";

if(strlen($_GET['vozr_id'])>5) {puterror($result2['skin'],$TEXT['error-id-long']); require_once "../utils/bottom_adm_film.php"; exit();}
$_GET['vozr_id'] = rep($_GET['vozr_id']);
  
$old_vozrast_id = $_GET['vozr_id'];

$query10 = "SELECT * FROM `tbl_vozrast` WHERE `vozr_id`='".$_GET['vozr_id']."' ";
 $result10 = mysqli_query($dbcnx,$query10);
  if(!$result10) {puterror($result2['skin'],$TEXT['error-tbl24']); require_once "../utils/bottom_adm_film.php"; exit();}
   $result_vozrast = mysqli_fetch_array($result10);
    $vozrast = $result_vozrast['vozrast'];
?>
<form enctype='multipart/form-data' action=<?php echo $action; ?> method=post>
<table align="center">
<tr><td class="inform"><?php echo $TEXT['global-edit']; ?>:</td><td><input size=30 maxlength=127 type=text name=vozrast value='<?php echo $vozrast; ?>'></td></tr>
<tr><td></td><td><input class="button2" type=submit value='<?php echo $button; ?>' />
<input type=hidden name=vozr_id value='<?php echo $old_vozrast_id; ?>' />
</td></tr>
</table>
</form>
<?php
require_once "../utils/bottom_adm_film.php";
?>