<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?php
  ///////////////////////////////////////////////////
  //2007 (C)
  //Карпухин Павел
  ///////////////////////////////////////////////////

   if(empty($title))       $title       = $TEXT['global-title'];
   if(empty($description)) $description = $TEXT['global-description'];
   if(empty($keywords))    $keywords    = $TEXT['global-keywords'];
   $address = "http://".$_SERVER['SERVER_ADDR']."/personal/resources.php";
?>
<html>
<head>
<meta http-equiv="Expires" content="Mon, 23 May 1995 02:00:00 GMT" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?php echo $description; ?>" />
<meta name="keywords" content="<?php echo $keywords; ?>" />
<title><?php echo $title; ?></title>
<script type="text/javascript" language="JavaScript" src="utils/drop_down.js"></script>
<script type="text/javascript" language="JavaScript" src="lang/calendar2-<?php echo $lang; ?>.js"></script>
<link rel="StyleSheet" type="text/css" href="utils/reader.css" />
<link rel="StyleSheet" type="text/css" href="utils/grid.css" />
<link rel="icon" href="Favicon/users.ico" type="image/x-icon" />
<link rel="shortcut icon" href="Favicon/user.ico" type="image/x-icon" />
</head>
<body leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" bottommargin="0" topmargin="0" >
<?php
$month["1"] = $TEXT['month01'];
$month["2"] = $TEXT['month02'];
$month["3"] = $TEXT['month03'];
$month["4"] = $TEXT['month04'];
$month["5"] = $TEXT['month05'];
$month["6"] = $TEXT['month06'];
$month["7"] = $TEXT['month07'];
$month["8"] = $TEXT['month08'];
$month["9"] = $TEXT['month09'];
$month["01"] = $TEXT['month01'];
$month["02"] = $TEXT['month02'];
$month["03"] = $TEXT['month03'];
$month["04"] = $TEXT['month04'];
$month["05"] = $TEXT['month05'];
$month["06"] = $TEXT['month06'];
$month["07"] = $TEXT['month07'];
$month["08"] = $TEXT['month08'];
$month["09"] = $TEXT['month09'];
$month["10"] = $TEXT['month10'];
$month["11"] = $TEXT['month11'];
$month["12"] = $TEXT['month12'];
$date_day = date("d");
$week["0"] = $TEXT['week01'];
$week["1"] = $TEXT['week02'];
$week["2"] = $TEXT['week03'];
$week["3"] = $TEXT['week04'];
$week["4"] = $TEXT['week05'];
$week["5"] = $TEXT['week06'];
$week["6"] = $TEXT['week07'];
$date_week = date("w");
$date_month = date("m");
$date_year = date("Y");
$year = $TEXT['year'];

$chislo = (date("$week[$date_week]\<\B\R />$date_day $month[$date_month]\<\B\R /> $date_year $year"));

  if(! @mysql_select_db($dbname,$dbcnx))
  {
    echo "<table align='center' border='0'><tr align='center' ><td><img alt='stop' src='img/stop.png' /></td></tr><tr  align='center' ><td><span class='res'>".$TEXT['error-conf3']."</span></td></tr></table>
             </body></html>";
    exit();
  }

  $query_srv = "SELECT `glob_w`, `glob_h`, `user_w`, `user_h` FROM `tbl_srv_param` LIMIT 1";
  $result_srv = mysql_query($query_srv);
  if(!$result_srv) puterror2($TEXT['error-tbl44']);
   $result_srv_set = mysql_fetch_array($result_srv,MYSQL_ASSOC);

  $TEXT['user-width'] = $result_srv_set['user_w']; // ширина формы - инф. о пользователе
  $TEXT['user-height'] = $result_srv_set['user_h']; // высота формы - инф. о пользователе
  $TEXT['user-top'] = ($result_srv_set['glob_h']/2)-($result_srv_set['user_h']/2); // выравнивание на экране (пикселей от верхнего края) - инф. о пользователе
  $TEXT['user-left'] = ($result_srv_set['glob_w']/2)-($result_srv_set['user_w']/2); // выравнивание на экране (пикселей от левого края) - инф. о пользователе

  if(empty($_GET['org_id'])) $_GET['org_id'] = "";
  if(strlen($_GET['org_id'])>11) puterror($TEXT['error-org']);
  $_GET['org_id'] = rep($_GET['org_id']);

  if(!empty($_GET['org_id'])) $temp_org = "upravlenie.php?org_id=".$_GET['org_id']."";
    else $temp_org = "index.php";

?>
<div id="fixedtop">
<form action=meetings.php?org_id=<?php echo $_GET['org_id']; ?> name="rprt" method=post>
<table class=clock width="100%" border="0" cellspacing="0">
    <tr align="center">
        <td align="left"><img alt="picture" src='img/top_image.png' height='20' border='0' /></td>
        <td class="clock"><?php echo $chislo; ?></td>
    </tr>
</table>
  <table width=100% class=topheader border="0" cellspacing="5">
     <tr align="center" valign="middle">
     <td align="right"><input class=inputsearch size=30 maxlength=10 type=text name=data title="<?php echo $TEXT['search-btn-title']; ?>" >&nbsp;<input type=submit value='<?php echo $TEXT['search-btn']; ?>'></td>
     </tr><tr>
       <td align="right" class=menu>
                  <script type="text/javascript" language="JavaScript">
                    var o_cal = new tcal ({
                    // form name
                     'formname': 'rprt',
                      // input name
                      'controlname': 'data'
                    });
                 </script>
           <input type=hidden name=org_id value=<?php echo $_GET['org_id']; ?>>
       </td>
     </tr>
    </table>
</form>
<div class="menu_news_mesto">
<table align="right" width=15% border="0">
<tr align="right">
       <td align="right" class="menu">
          <ul id="nav">
          <li><a href="#"><?php echo $TEXT['menu']; ?></a>
            <ul>
            <li><a href="<?php echo $temp_org; ?>" class=link title="<?php echo $TEXT['menu-btn1-title']; ?>"><?php echo $TEXT['menu-btn1']; ?></a></li>
            <li><a href="index_meet.php" class=link title="<?php echo $TEXT['meet-help2']; ?>"><?php echo $TEXT['support32']; ?></a></li>
            </ul>
          </li>
          </ul>
       </td>
</tr>
</table>
</div>
</div>
<div id="fixedbody">