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

$title = $TEXT['nositel-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_add'];
$action = "add.php";

$query_iskh = "SELECT MAX(position) AS position FROM `tbl_tip_izd` WHERE use_prog='2'";
 $result_iskh = mysqli_query($dbcnx,$query_iskh);
  if(!$result_iskh) {puterror($result2['skin'],$TEXT['error-tbl15']); require_once "../utils/bottom_adm_film.php"; exit();}
  $result_iskh2 = mysqli_fetch_array($result_iskh);
  $pos = $result_iskh2['position']+1;

?>
<form enctype='multipart/form-data' action=<?php echo $action; ?> method=post>
<table align="center">
<tr><td class="inform"><?php echo $TEXT['tbl-nositel']; ?>:</td><td class="bold_it"><input size=50 maxlength=127 type=text name=tip_izd ></td></tr>
<tr><td class="inform"><?php echo $TEXT['book-lang-pos']; ?>:</td><td class="bold_it"><input size=5 maxlength=5 type=text name=position value="<?php echo $pos; ?>" ></td></tr>
<tr><td></td><td><input class="button2" type=submit value='<?php echo $button; ?>'></td></tr>
</table>
</form>
<?php
require_once "../utils/bottom_adm_film.php";
?>