<?php
  ///////////////////////////////////////////////////
  //2007 (C)
  //Карпухин Павел
  ///////////////////////////////////////////////////

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

  $title=$titlepage=$TEXT['ex-title'];
  $helppage=$TEXT['ex-help2'];
  require_once "../../config.php";
  require_once "../../util/top_layer2.php";

  if($result2['user'] == 1) puterror3($TEXT['error-loginform4']);
  if($result2['master'] == 1) puterror3($TEXT['error-loginform4']);
  if($result2['moderator'] == 1) puterror3($TEXT['error-loginform4']);
?>
<form action=export.php method=post>
<table align="center" width=20% class=topheader border="0" cellspacing="2">
    <tr><td class="useraddedit"><span class="zag2"><?php echo $TEXT['tbl-org']; ?></span></td>
        <td class="useraddedit"><select class="input" name="org_id">
    <?php
        $query4 = "SELECT DISTINCT `organizaciya` FROM `tbl_supp_archive` ORDER BY organizaciya ";
        $organizaciya_tmp = mysql_query($query4);
          if(!$organizaciya_tmp) puterror3($TEXT['error-tbl25']);
              while($organizaciya = mysql_fetch_array($organizaciya_tmp,MYSQL_ASSOC))
                {
                 $chk = "<option value=".$organizaciya['organizaciya'].">".$organizaciya['organizaciya']."";
                 echo $chk;
                }
    ?>
    </select></td><td><input type=checkbox name=old_org ></td></tr>
     <tr><td width=3% align="right" class=menu><input type=radio name=typepar value=1 checked></td><td align="left"><?php echo $TEXT['ex-text7']; ?></td><td>&nbsp;</td></tr>
     <tr><td width=3% align="right" class=menu><input type=radio name=typepar value=2></td><td align="left"><?php echo $TEXT['ex-text8']; ?></td><td>&nbsp;</td></tr>
     <tr><td>&nbsp;</td><td align="left"><input type=submit value="<?php echo $TEXT['ex-btn']; ?>" /></td><td>&nbsp;</td></tr>
</table>
</form>
<?php
  require_once "../../util/bottom_exp.php";
?>