<?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['user-e-mail'];
  $helppage = "";

  require_once "../config.php";
  require_once "top.php";
  ?>
  <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_mailform.php";
?>
<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['user-e-mail']; ?></td><td><input type="text" size=40 maxlength=155 name="ssilka" /></td></tr>
 <tr><td class="useraddedit"><?php echo $TEXT['link-descrip']; ?></td><td><input type="text" size=40 maxlength=200 name="descrip" /></td></tr>
 <tr><td class="useraddedit"><?php echo $TEXT['izm-visible']; ?></td><td><input type="text" size=40 maxlength=200 name="otobr" /></td></tr>
<tr><td align="center" colspan="2"><input class="button" type=submit value='<?php echo $button; ?>' /></td></tr>
</table>
</form>
<?php
  if(!empty($_POST['ssilka'])) echo "<p class=\"statssilka\"><img class=\"tipsimg\" alt=\"tips\" src=\"../img/inet16.png\" />&lt;a href=\"mailto:".$_POST['ssilka']."\" title=\"".$_POST['descrip']."\"&gt;&lt;span class=\"fntkorich\"&gt;".$_POST['otobr']."&lt;/span&gt;&lt;/a&gt;</p>";
?>
</body>
</html>