<?php
  ///////////////////////////////////////////////////
  //Журнал изменений
  //2010 (C)
  //Карпухин Павел
  ///////////////////////////////////////////////////

  $lang = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0,2);
  if(is_file ("../lang/".$lang.".php")) include "../lang/".$lang.".php";
     else include "../lang/ru.php";

  $title=$titlepage = $TEXT['know-zam3'];
  $helppage = $TEXT['zhurn-new-help'];

  require_once "../config.php";
  require_once "top.php";
  include "tags_know.js";
  ?>
  <title><?php echo $title; ?></title>
  <link rel="StyleSheet" type="text/css" href="../utils/grid.css" />
  <link rel="shortcut icon" href="../Favicon/know-base.ico" type="image/x-icon" />
  </head>
  <body leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" bottommargin="0" topmargin="0" >
  <?php
  if(!isset($button)) $button = $TEXT['btn_add'];
  if(!isset($action)) $action = "know_add_zam.php";

  if(empty($_GET['zh_str_id'])) puterror2($TEXT['error-zhurn1']);
  if(strlen($_GET['zh_str_id'])>11) puterror2($TEXT['error-zhurn2']);
  if(empty($_GET['zhurn_id'])) puterror2($TEXT['error-zhurn11']);
  if(strlen($_GET['zhurn_id'])>11) puterror2($TEXT['error-zhurn12']);
  if(strlen($_GET['otkr'])>1) puterror2($TEXT['error-zhurn12']);
  $old_zh_str_id = $_GET['zh_str_id'];
  $old_zhurn_id = $_GET['zhurn_id'];
  $old_otkr = $_GET['otkr'];
?>
<table class="tabledata" align="center">
  <tr><td class="z1"><?php echo $titlepage; ?></td></tr>
  <tr><td class="help"><?php echo $helppage; ?></td></tr>
</table>
<br />
<form enctype='multipart/form-data' name='form' action=<?php echo $action; ?> method=post>
<table class="tabledata" align="center" border="0">
<tr><td class="useraddedit"><?php echo $TEXT['izm-soobsch']; ?></td><td><textarea cols="50" rows="15" name=zh_soobschenie ></textarea></td>
<td>
        <a href="javascript:inserttags('<span%20class=&quot;fntbld&quot;>','</span>')" title="<?php echo $TEXT['new-tag1']; ?>"><img alt="картинка" src="../admin/img/bold.png" align=middle /></a>
        <a href="javascript:inserttags('<span%20class=&quot;fntit&quot;>','</span>')" title="<?php echo $TEXT['new-tag2']; ?>"><img alt="картинка" src="../admin/img/italic.png" align=middle /></a>
        <a href="javascript:inserttags('<span%20class=&quot;fntunderline&quot;>','</span>')" title="<?php echo $TEXT['new-tag3']; ?>"><img alt="картинка" src="../admin/img/underline.png" align=middle /></a>
        <a href="javascript:inserttags('<span%20class=&quot;fntzacherknuto&quot;>','</span>')" title="<?php echo $TEXT['new-tag4']; ?>"><img alt="картинка" src="../admin/img/linetrough.png" align=middle /></a>
        <br />
        <a href="javascript:inserttags('<sup>','</sup>')" title="<?php echo $TEXT['new-tag6']; ?>"><img alt="картинка" src="../admin/img/sup.png" align=middle /></a>
        <a href="javascript:inserttags('<sub>','</sub>')" title="<?php echo $TEXT['new-tag5']; ?>"><img alt="картинка" src="../admin/img/sub.png" align=middle /></a>
        <a href="javascript:inserttags('<p>','</p>')" title="<?php echo $TEXT['new-tag7']; ?>"><img alt="картинка" src="../admin/img/paragraf.png" align=middle /></a>
        <a href="javascript:inserttags('<hr />','')" title="<?php echo $TEXT['new-tag8']; ?>"><img alt="картинка" src="../admin/img/hr.png" align=middle /></a>
        <br />
        <a href="javascript:inserttags('<span%20class=&quot;fntbldzag&quot;>','</span>')" title="<?php echo $TEXT['new-tag16'].$TEXT['new-tag17']; ?>"><img alt="font16" src="../admin/img/fontsize16.png" align=middle /></a>
        <a href="javascript:inserttags('<span%20class=&quot;fntred&quot;>','</span>')" title="<?php echo $TEXT['new-tag20'].$TEXT['new-tag21']; ?>"><img alt="text-red" src="../admin/img/textcolor-red.png" align=middle /></a>
        <a href="javascript:inserttags('<span%20class=&quot;fntgreen&quot;>','</span>')" title="<?php echo $TEXT['new-tag20'].$TEXT['new-tag22']; ?>"><img alt="text-green" src="../admin/img/textcolor-green.png" align=middle /></a>
        <a href="javascript:inserttags('<span%20class=&quot;fntblue&quot;>','</span>')" title="<?php echo $TEXT['new-tag20'].$TEXT['new-tag23']; ?>"><img alt="text-blue" src="../admin/img/textcolor-blue.png" align=middle /></a>
        <br />
        <a href="javascript:inserttags('<span%20class=&quot;fntmarckgreen&quot;>','</span>')" title="<?php echo $TEXT['new-tag31']; ?>"><img alt="marc-green" src="../admin/img/marck-green.png" align=middle border=0 /></a>
        <a href="javascript:inserttags('<span%20class=&quot;fntmarckorange&quot;>','</span>')" title="<?php echo $TEXT['new-tag29']; ?>"><img alt="marc-orange" src="../admin/img/marck-orange.png" align=middle border=0 /></a>
        <a href="javascript:inserttags('<span%20class=&quot;fntmarckyellow&quot;>','</span>')" title="<?php echo $TEXT['new-tag30']; ?>"><img alt="marc-yellow" src="../admin/img/marck-yellow.png" align=middle border=0 /></a>
        <a href="javascript:inserttags('<span%20class=&quot;fntmarckgray&quot;>','</span>')" title="<?php echo $TEXT['new-tag28']; ?>"><img alt="marc-grey" src="../admin/img/marck-grey.png" align=middle border=0 /></a>
        <br />
        <a href="javascript:inserttags('&ldquo;','&rdquo;')" title="<?php echo $TEXT['new-tag15']; ?>"><img alt="картинка" src="../admin/img/quote1.png" align=middle /></a>
        <a href="javascript:inserttags('&laquo;','&raquo;')" title="<?php echo $TEXT['new-tag15']; ?>"><img alt="картинка" src="../admin/img/quote2.png" align=middle /></a>
        <a href="javascript:inserttags('<a%20href=&quot;mailto:&quot;>','</a>')" title="<?php echo $TEXT['new-tag13']; ?>"><img alt="картинка" src="../admin/img/email.png" align=middle /></a>
        <a href="javascript:inserttags('<a%20href=&quot;http://&quot;%20target=&quot;_blank&quot;>','</a>')" title="<?php echo $TEXT['new-tag14']; ?>"><img alt="картинка" src="../admin/img/url.png" align=middle /></a>
        <br />
        <a href="javascript:inserttags('%20:smile:%20','')"><img alt="картинка" src="../img/smile.png" align=middle /></a>
        <a href="javascript:inserttags('%20:tongue:%20','')"><img alt="картинка" src="../img/tongue.png" align=middle /></a>
        <a href="javascript:inserttags('%20:wink:%20','')"><img alt="картинка" src="../img/wink.png" align=middle /></a>
        <a href="javascript:inserttags('%20:wassat:%20','')"><img alt="картинка" src="../img/wassat.png" align=middle /></a>
        <br />
        <a href="javascript:inserttags('%20:sad:%20','')"><img alt="картинка" src="../img/sad.png" align=middle /></a>
        <a href="javascript:inserttags('%20:crying:%20','')"><img alt="картинка" src="../img/crying.png" align=middle /></a>
        <a href="javascript:inserttags('%20:angry:%20','')"><img alt="картинка" src="../img/angry.png" align=middle /></a>
</td>
</tr>
<tr>
<td></td>
<td>
  <input class="button" type=submit value='<?php echo $button; ?>' />
  <input type=hidden name=zh_str_id value='<?php echo $old_zh_str_id; ?>' />
  <input type=hidden name=zhurn_id value='<?php echo $old_zhurn_id; ?>' />
  <input type=hidden name=otkr value='<?php echo $old_otkr; ?>' />
</td>
<td></td>
</tr>
</table>
</form>
</body>
</html>