<?  
	 
	  include ("bd.php");
if ($show=="") 
{
print "<meta http-equiv=refresh content=\"1; url=add.php?show=pass\">";
}
if ($show=="pass") {
echo ("<center><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
<form action=\"add.php?show=user\" method=\"post\">
Логин: <input type=\"password\" name=\"user_name\"><br><br>
Пароль: <input type=\"password\" name=\"user_pass\"><br><br>
<input type=\"submit\" name=\"user\" style=\"width: 170px\">
</center>");
}
if ($show=="user") {
echo ("<meta http-equiv=refresh content=\"1; url=add.php?show=$user_name@~@$user_pass\">");
}
include("pass/pass.php");
if($show=="$user_name@~@$user_pass")
{ 

	  print "<link rel=\"stylesheet\" href=\"style.css\" />
<form ENCTYPE=\"multipart/form-data\" method=\"post\">
  <table width=\"760\" border=\"0\" align=\"center\">
    <tr>
	  <td>&nbsp;</td>
      <td><font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\"> 
        Сегодня: ";
      
	  	$k=date("D  d M");
	$k = stripslashes($k);
$k = ereg_replace("Mon","Понедельник",$k);//Дни неделя
$k = ereg_replace("Tue","Вторник",$k);
$k = ereg_replace("Wed","Среда",$k);
$k = ereg_replace("Thu","Четверг",$k);
$k = ereg_replace("Fri","Пятница",$k);
$k = ereg_replace("Sat","Суббота",$k);
$k = ereg_replace("Sun","Воскресенье",$k);
$k = ereg_replace("Jan","Января",$k);//Месяци
$k = ereg_replace("Feb","Февраля",$k);
$k = ereg_replace("Mar","Марта",$k);
$k = ereg_replace("Apr","Апреля",$k);
$k = ereg_replace("May","Мая",$k);
$k = ereg_replace("Jun","Июня",$k);
$k = ereg_replace("Jul","Июля",$k);
$k = ereg_replace("Aug","Августа",$k);
$k = ereg_replace("Sep","Сентября",$k);
$k = ereg_replace("Oct","Октября",$k);
$k = ereg_replace("Nov","Ноября",$k);
$k = ereg_replace("Dec","Декабря",$k);

	 print "$k";
	 print "
        </font> </td>
    </tr><tr>
      <td width=\"22%\"><font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\"><b>Дата 
        погоды:</B></font></td>
      <td width=\"78%\"> <select name=\"ned\" class=\"categoryselect\">
          <option value=\"Понедельник\">Понедельник</option>
          <option value=\"Вторник\">Вторник</option>
          <option value=\"Среда\">Среда</option>
          <option value=\"Четверг\">Четверг</option>
          <option value=\"Пятница\">Пятница</option>
          <option value=\"Суббота\">Суббота</option>
          <option value=\"Воскресение\">Воскресение</option>
        </select>
        <select name=\"day\"  class=\"categoryselect\">
          <option value=\"1\">1</option>
          <option value=\"2\">2</option>
          <option value=\"3\">3</option>
          <option value=\"4\">4</option>
          <option value=\"5\">5</option>
          <option value=\"6\">6</option>
          <option value=\"7\">7</option>
          <option value=\"8\">8</option>
          <option value=\"9\">9</option>
          <option value=\"10\">10</option>
          <option value=\"11\">11</option>
          <option value=\"12\">12</option>
          <option value=\"13\">13</option>
          <option value=\"14\">14</option>
          <option value=\"15\">15</option>
          <option value=\"16\">16</option>
          <option value=\"17\">17</option>
          <option value=\"18\">18</option>
          <option value=\"19\">19</option>
          <option value=\"20\">20</option>
          <option value=\"21\">21</option>
          <option value=\"22\">22</option>
          <option value=\"23\">23</option>
          <option value=\"24\">24</option>
          <option value=\"25\">25</option>
          <option value=\"26\">26</option>
          <option value=\"27\">27</option>
          <option value=\"28\">28</option>
          <option value=\"29\">29</option>
          <option value=\"30\">30</option>
          <option value=\"31\">31</option>
        </select>
        <select name=\"name\" class=\"categoryselect\">
          <option value=\"01\">Января</option>
          <option value=\"02\">Февраля</option>
          <option value=\"03\">Марта</option>
          <option value=\"04\">Апреля</option>
          <option value=\"05\">Мая</option>
          <option value=\"06\">Июня</option>
          <option value=\"07\">Июля</option>
          <option value=\"08\">Августа</option>
          <option value=\"09\">Сентября</option>
          <option value=\"10\">Октября</option>
          <option value=\"11\">Ноября</option>
          <option value=\"12\">Декабря</option>
        </select>       </td>
    </tr>
    <tr> 
      <td width=\"22%\"><font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\"><b>Температура:</B> 
        ( Ночь)</font></td>
      <td width=\"78%\"> 
        <select name=\"no1\"  class=\"categoryselect\">
          <option value=\"+\">+</option>
          <option value=\" \"> </option>
          <option value=\"-\">-</option>
        </select> <select name=\"no2\"  class=\"categoryselect\">
          <option value=\"0\">0</option>
          <option value=\"1\">1</option>
          <option value=\"2\">2</option>
          <option value=\"3\">3</option>
          <option value=\"4\">4</option>
          <option value=\"5\">5</option>
          <option value=\"6\">6</option>
          <option value=\"7\">7</option>
          <option value=\"8\">8</option>
          <option value=\"9\">9</option>
          <option value=\"10\">10</option>
          <option value=\"11\">11</option>
          <option value=\"12\">12</option>
          <option value=\"13\">13</option>
          <option value=\"14\">14</option>
          <option value=\"15\">15</option>
          <option value=\"16\">16</option>
          <option value=\"17\">17</option>
          <option value=\"18\">18</option>
          <option value=\"19\">19</option>
          <option value=\"20\">20</option>
          <option value=\"21\">21</option>
          <option value=\"22\">22</option>
          <option value=\"23\">23</option>
          <option value=\"24\">24</option>
          <option value=\"25\">25</option>
          <option value=\"26\">26</option>
          <option value=\"27\">27</option>
          <option value=\"28\">28</option>
          <option value=\"29\">29</option>
          <option value=\"30\">30</option>
          <option value=\"31\">31</option>
          <option value=\"32\">32</option>
          <option value=\"33\">33</option>
          <option value=\"34\">34</option>
          <option value=\"35\">35</option>
          <option value=\"36\">36</option>
          <option value=\"37\">37</option>
          <option value=\"38\">38</option>
          <option value=\"39\">39</option>
          <option value=\"40\">40</option>
          <option value=\"41\">41</option>
          <option value=\"42\">42</option>
          <option value=\"43\">43</option>
          <option value=\"44\">44</option>
          <option value=\"45\">45</option>
          <option value=\"46\">46</option>
          <option value=\"47\">47</option>
          <option value=\"48\">48</option>
          <option value=\"49\">49</option>
          <option value=\"50\">50</option>
          <option value=\"51\">51</option>
          <option value=\"52\">52</option>
          <option value=\"53\">53</option>
          <option value=\"54\">54</option>
          <option value=\"55\">55</option>
          <option value=\"56\">56</option>
          <option value=\"57\">57</option>
          <option value=\"58\">58</option>
          <option value=\"59\">59</option>
          <option value=\"60\">60</option>
          <option value=\"61\">61</option>
        </select><font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\">
        ... </font>
        <select name=\"no3\"  class=\"categoryselect\">
          <option value=\"+\">+</option>
          <option value=\" \"> </option>
          <option value=\"-\">-</option>
        </select> <select name=\"no4\"  class=\"categoryselect\">
          <option value=\"0\">0</option>
          <option value=\"1\">1</option>
          <option value=\"2\">2</option>
          <option value=\"3\">3</option>
          <option value=\"4\">4</option>
          <option value=\"5\">5</option>
          <option value=\"6\">6</option>
          <option value=\"7\">7</option>
          <option value=\"8\">8</option>
          <option value=\"9\">9</option>
          <option value=\"10\">10</option>
          <option value=\"11\">11</option>
          <option value=\"12\">12</option>
          <option value=\"13\">13</option>
          <option value=\"14\">14</option>
          <option value=\"15\">15</option>
          <option value=\"16\">16</option>
          <option value=\"17\">17</option>
          <option value=\"18\">18</option>
          <option value=\"19\">19</option>
          <option value=\"20\">20</option>
          <option value=\"21\">21</option>
          <option value=\"22\">22</option>
          <option value=\"23\">23</option>
          <option value=\"24\">24</option>
          <option value=\"25\">25</option>
          <option value=\"26\">26</option>
          <option value=\"27\">27</option>
          <option value=\"28\">28</option>
          <option value=\"29\">29</option>
          <option value=\"30\">30</option>
          <option value=\"31\">31</option>
          <option value=\"32\">32</option>
          <option value=\"33\">33</option>
          <option value=\"34\">34</option>
          <option value=\"35\">35</option>
          <option value=\"36\">36</option>
          <option value=\"37\">37</option>
          <option value=\"38\">38</option>
          <option value=\"39\">39</option>
          <option value=\"40\">40</option>
          <option value=\"41\">41</option>
          <option value=\"42\">42</option>
          <option value=\"43\">43</option>
          <option value=\"44\">44</option>
          <option value=\"45\">45</option>
          <option value=\"46\">46</option>
          <option value=\"47\">47</option>
          <option value=\"48\">48</option>
          <option value=\"49\">49</option>
          <option value=\"50\">50</option>
          <option value=\"51\">51</option>
          <option value=\"52\">52</option>
          <option value=\"53\">53</option>
          <option value=\"54\">54</option>
          <option value=\"55\">55</option>
          <option value=\"56\">56</option>
          <option value=\"57\">57</option>
          <option value=\"58\">58</option>
          <option value=\"59\">59</option>
          <option value=\"60\">60</option>
          <option value=\"61\">61</option>
        </select> </td>
    </tr>
    <tr> 
      <td width=\"22%\"><font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\"><b>Температура:</B> 
        ( День)</font></td>
      <td width=\"78%\"> 
        <select name=\"d1\"  class=\"categoryselect\">
          <option value=\"+\">+</option>
          <option value=\" \"> </option>
          <option value=\"-\">-</option>
        </select> <select name=\"d2\"  class=\"categoryselect\">
          <option value=\"0\">0</option>
          <option value=\"1\">1</option>
          <option value=\"2\">2</option>
          <option value=\"3\">3</option>
          <option value=\"4\">4</option>
          <option value=\"5\">5</option>
          <option value=\"6\">6</option>
          <option value=\"7\">7</option>
          <option value=\"8\">8</option>
          <option value=\"9\">9</option>
          <option value=\"10\">10</option>
          <option value=\"11\">11</option>
          <option value=\"12\">12</option>
          <option value=\"13\">13</option>
          <option value=\"14\">14</option>
          <option value=\"15\">15</option>
          <option value=\"16\">16</option>
          <option value=\"17\">17</option>
          <option value=\"18\">18</option>
          <option value=\"19\">19</option>
          <option value=\"20\">20</option>
          <option value=\"21\">21</option>
          <option value=\"22\">22</option>
          <option value=\"23\">23</option>
          <option value=\"24\">24</option>
          <option value=\"25\">25</option>
          <option value=\"26\">26</option>
          <option value=\"27\">27</option>
          <option value=\"28\">28</option>
          <option value=\"29\">29</option>
          <option value=\"30\">30</option>
          <option value=\"31\">31</option>
          <option value=\"32\">32</option>
          <option value=\"33\">33</option>
          <option value=\"34\">34</option>
          <option value=\"35\">35</option>
          <option value=\"36\">36</option>
          <option value=\"37\">37</option>
          <option value=\"38\">38</option>
          <option value=\"39\">39</option>
          <option value=\"40\">40</option>
          <option value=\"41\">41</option>
          <option value=\"42\">42</option>
          <option value=\"43\">43</option>
          <option value=\"44\">44</option>
          <option value=\"45\">45</option>
          <option value=\"46\">46</option>
          <option value=\"47\">47</option>
          <option value=\"48\">48</option>
          <option value=\"49\">49</option>
          <option value=\"50\">50</option>
          <option value=\"51\">51</option>
          <option value=\"52\">52</option>
          <option value=\"53\">53</option>
          <option value=\"54\">54</option>
          <option value=\"55\">55</option>
          <option value=\"56\">56</option>
          <option value=\"57\">57</option>
          <option value=\"58\">58</option>
          <option value=\"59\">59</option>
          <option value=\"60\">60</option>
          <option value=\"61\">61</option>
        </select><font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\">
        ... </font>
        <select name=\"d3\"  class=\"categoryselect\">
          <option value=\"+\">+</option>
          <option value=\" \"> </option>
          <option value=\"-\">-</option>
        </select> <select name=\"d4\"  class=\"categoryselect\">
          <option value=\"0\">0</option>
          <option value=\"1\">1</option>
          <option value=\"2\">2</option>
          <option value=\"3\">3</option>
          <option value=\"4\">4</option>
          <option value=\"5\">5</option>
          <option value=\"6\">6</option>
          <option value=\"7\">7</option>
          <option value=\"8\">8</option>
          <option value=\"9\">9</option>
          <option value=\"10\">10</option>
          <option value=\"11\">11</option>
          <option value=\"12\">12</option>
          <option value=\"13\">13</option>
          <option value=\"14\">14</option>
          <option value=\"15\">15</option>
          <option value=\"16\">16</option>
          <option value=\"17\">17</option>
          <option value=\"18\">18</option>
          <option value=\"19\">19</option>
          <option value=\"20\">20</option>
          <option value=\"21\">21</option>
          <option value=\"22\">22</option>
          <option value=\"23\">23</option>
          <option value=\"24\">24</option>
          <option value=\"25\">25</option>
          <option value=\"26\">26</option>
          <option value=\"27\">27</option>
          <option value=\"28\">28</option>
          <option value=\"29\">29</option>
          <option value=\"30\">30</option>
          <option value=\"31\">31</option>
          <option value=\"32\">32</option>
          <option value=\"33\">33</option>
          <option value=\"34\">34</option>
          <option value=\"35\">35</option>
          <option value=\"36\">36</option>
          <option value=\"37\">37</option>
          <option value=\"38\">38</option>
          <option value=\"39\">39</option>
          <option value=\"40\">40</option>
          <option value=\"41\">41</option>
          <option value=\"42\">42</option>
          <option value=\"43\">43</option>
          <option value=\"44\">44</option>
          <option value=\"45\">45</option>
          <option value=\"46\">46</option>
          <option value=\"47\">47</option>
          <option value=\"48\">48</option>
          <option value=\"49\">49</option>
          <option value=\"50\">50</option>
          <option value=\"51\">51</option>
          <option value=\"52\">52</option>
          <option value=\"53\">53</option>
          <option value=\"54\">54</option>
          <option value=\"55\">55</option>
          <option value=\"56\">56</option>
          <option value=\"57\">57</option>
          <option value=\"58\">58</option>
          <option value=\"59\">59</option>
          <option value=\"60\">60</option>
          <option value=\"61\">61</option>
        </select> </td>
    </tr>
    <tr> 
      <td width=\"22%\"><font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\"><b>Ветер:</B></font></td>
      <td width=\"78%\"> <select name=\"vet\"  class=\"categoryselect\">
          <option value=\"Штиль\">Штиль</option>
          <option value=\"Сев\">Сев</option>
          <option value=\"Южн\">Южн</option>
          <option value=\"Зап\">Зап</option>
          <option value=\"Вост\">Вост</option>
          <option value=\"С-З\">С-З</option>
          <option value=\"С-В\">С-В</option>
          <option value=\"Ю-З\">Ю-З</option>
          <option value=\"Ю-В\">Ю-В</option>
        </select>
        <font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\">... 
        </font> 
        <select name=\"vet1\"  class=\"categoryselect\">
          <option value=\"0\">0</option>
          <option value=\"1\">1</option>
          <option value=\"2\">2</option>
          <option value=\"3\">3</option>
          <option value=\"4\">4</option>
          <option value=\"5\">5</option>
          <option value=\"6\">6</option>
          <option value=\"7\">7</option>
          <option value=\"8\">8</option>
          <option value=\"9\">9</option>
          <option value=\"10\">10</option>
          <option value=\"11\">11</option>
          <option value=\"12\">12</option>
          <option value=\"13\">13</option>
          <option value=\"14\">14</option>
          <option value=\"15\">15</option>
          <option value=\"16\">16</option>
          <option value=\"17\">17</option>
          <option value=\"18\">18</option>
          <option value=\"19\">19</option>
          <option value=\"20\">20</option>
          <option value=\"21\">21</option>
          <option value=\"22\">22</option>
          <option value=\"23\">23</option>
          <option value=\"24\">24</option>
          <option value=\"25\">25</option>
          <option value=\"26\">26</option>
          <option value=\"27\">27</option>
          <option value=\"28\">28</option>
          <option value=\"29\">29</option>
          <option value=\"30\">30</option>
          <option value=\"31\">31</option>
          <option value=\"32\">32</option>
          <option value=\"33\">33</option>
          <option value=\"34\">34</option>
          <option value=\"35\">35</option>
          <option value=\"36\">36</option>
          <option value=\"37\">37</option>
          <option value=\"38\">38</option>
          <option value=\"39\">39</option>
          <option value=\"40\">40</option>
          <option value=\"41\">41</option>
          <option value=\"42\">42</option>
          <option value=\"43\">43</option>
          <option value=\"44\">44</option>
          <option value=\"45\">45</option>
          <option value=\"46\">46</option>
          <option value=\"47\">47</option>
          <option value=\"48\">48</option>
          <option value=\"49\">49</option>
          <option value=\"50\">50</option>
          <option value=\"51\">51</option>
          <option value=\"52\">52</option>
          <option value=\"53\">53</option>
          <option value=\"54\">54</option>
          <option value=\"55\">55</option>
          <option value=\"56\">56</option>
          <option value=\"57\">57</option>
          <option value=\"58\">58</option>
          <option value=\"59\">59</option>
          <option value=\"60\">60</option>
          <option value=\"61\">61</option>
        </select>
        <font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\">/</font> 
        <select name=\"vet2\"  class=\"categoryselect\">
          <option value=\"0\">0</option>
          <option value=\"1\">1</option>
          <option value=\"2\">2</option>
          <option value=\"3\">3</option>
          <option value=\"4\">4</option>
          <option value=\"5\">5</option>
          <option value=\"6\">6</option>
          <option value=\"7\">7</option>
          <option value=\"8\">8</option>
          <option value=\"9\">9</option>
          <option value=\"10\">10</option>
          <option value=\"11\">11</option>
          <option value=\"12\">12</option>
          <option value=\"13\">13</option>
          <option value=\"14\">14</option>
          <option value=\"15\">15</option>
          <option value=\"16\">16</option>
          <option value=\"17\">17</option>
          <option value=\"18\">18</option>
          <option value=\"19\">19</option>
          <option value=\"20\">20</option>
          <option value=\"21\">21</option>
          <option value=\"22\">22</option>
          <option value=\"23\">23</option>
          <option value=\"24\">24</option>
          <option value=\"25\">25</option>
          <option value=\"26\">26</option>
          <option value=\"27\">27</option>
          <option value=\"28\">28</option>
          <option value=\"29\">29</option>
          <option value=\"30\">30</option>
          <option value=\"31\">31</option>
          <option value=\"32\">32</option>
          <option value=\"33\">33</option>
          <option value=\"34\">34</option>
          <option value=\"35\">35</option>
          <option value=\"36\">36</option>
          <option value=\"37\">37</option>
          <option value=\"38\">38</option>
          <option value=\"39\">39</option>
          <option value=\"40\">40</option>
          <option value=\"41\">41</option>
          <option value=\"42\">42</option>
          <option value=\"43\">43</option>
          <option value=\"44\">44</option>
          <option value=\"45\">45</option>
          <option value=\"46\">46</option>
          <option value=\"47\">47</option>
          <option value=\"48\">48</option>
          <option value=\"49\">49</option>
          <option value=\"50\">50</option>
          <option value=\"51\">51</option>
          <option value=\"52\">52</option>
          <option value=\"53\">53</option>
          <option value=\"54\">54</option>
          <option value=\"55\">55</option>
          <option value=\"56\">56</option>
          <option value=\"57\">57</option>
          <option value=\"58\">58</option>
          <option value=\"59\">59</option>
          <option value=\"60\">60</option>
          <option value=\"61\">61</option>
        </select> <font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\">M/C</font></td>
      <td></td>
    </tr>
    <tr> 
      <td> <font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\"><b>Облачность, осадки:</b></font> </td>
      <td><select name=\"pog\" class=\"categoryselect\">
          <option value=\"Ясно\">Ясно</option>
          <option value=\"Пероблачность\">Пер. Облачность</option>
		  <option value=\"Облачно\">Облачно</option>
          <option value=\"Дождь\">Дождь</option>
          <option value=\"Гроза\">Гроза</option>
          <option value=\"Снег\">Снег</option>
          <option value=\"Метель\">Метель</option>
        </select>
      </td>
    </tr>
	<tr> 
      <td> <font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\"><b>Давление, мм рт. ст.:</b></font> </td>
      <td> 
        <select name=\"davl_n\"  class=\"categoryselect\">
          <option value=\"650\">650</option>
          <option value=\"651\">651</option>
          <option value=\"652\">652</option>
          <option value=\"653\">653</option>
          <option value=\"654\">654</option>
          <option value=\"655\">655</option>
          <option value=\"656\">656</option>
          <option value=\"657\">657</option>
          <option value=\"658\">658</option>
          <option value=\"659\">659</option>
          <option value=\"660\">660</option>
          <option value=\"661\">661</option>
		  <option value=\"662\">662</option>
          <option value=\"663\">663</option>
          <option value=\"664\">664</option>
          <option value=\"665\">665</option>
          <option value=\"666\">666</option>

          <option value=\"667\">667</option>
          <option value=\"668\">668</option>
          <option value=\"669\">669</option>
          <option value=\"670\">670</option>
          <option value=\"671\">671</option>
          <option value=\"672\">672</option>
          <option value=\"673\">673</option>
          <option value=\"674\">674</option>
          <option value=\"675\">675</option>
          <option value=\"676\">676</option>
          <option value=\"677\">677</option>
          <option value=\"678\">678</option>
          <option value=\"679\">679</option>
          <option value=\"680\">680</option>
          <option value=\"681\">681</option>
          <option value=\"682\">682</option>
          <option value=\"683\">683</option>
          <option value=\"684\">684</option>
          <option value=\"685\">685</option>
          <option value=\"686\">686</option>
          <option value=\"687\">687</option>
          <option value=\"688\">688</option>
          <option value=\"689\">689</option>
          <option value=\"690\">690</option>
		  <option value=\"691\">691</option>
          <option value=\"692\">692</option>
          <option value=\"693\">693</option>
          <option value=\"694\">694</option>
          <option value=\"695\">695</option>
          <option value=\"696\">696</option>
          <option value=\"697\">697</option>
          <option value=\"698\">698</option>
          <option value=\"699\">699</option>
          <option value=\"700\">700</option>
		   <option value=\"701\">701</option>
          <option value=\"702\">702</option>
          <option value=\"703\">703</option>
          <option value=\"704\">704</option>
          <option value=\"705\">705</option>
          <option value=\"706\">706</option>
          <option value=\"707\">707</option>
          <option value=\"708\">708</option>
          <option value=\"709\">709</option>
          <option value=\"710\">710</option>
          <option value=\"711\">711</option>
          <option value=\"712\">712</option>
          <option value=\"713\">713</option>
          <option value=\"714\">714</option>
          <option value=\"715\">715</option>
          <option value=\"716\">716</option>
          <option value=\"717\">717</option>
          <option value=\"718\">718</option>
          <option value=\"719\">719</option>
          <option value=\"720\">720</option>
          <option value=\"721\">721</option>
          <option value=\"722\">722</option>
          <option value=\"723\">723</option>
          <option value=\"724\">724</option>
          <option value=\"725\">725</option>
          <option value=\"726\">726</option>
          <option value=\"727\">727</option>
          <option value=\"728\">728</option>
          <option value=\"729\">729</option>
          <option value=\"730\">730</option>
          <option value=\"731\">731</option>
          <option value=\"732\">732</option>
          <option value=\"733\">733</option>
          <option value=\"734\">734</option>
          <option value=\"735\">735</option>
          <option value=\"736\">736</option>
          <option value=\"737\">737</option>
          <option value=\"738\">738</option>
          <option value=\"739\">739</option>
          <option value=\"740\">740</option>
          <option value=\"741\">741</option>
          <option value=\"742\">742</option>
          <option value=\"743\">743</option>
          <option value=\"744\">744</option>
          <option value=\"745\">745</option>
          <option value=\"746\">746</option>
          <option value=\"747\">747</option>
          <option value=\"748\">748</option>
          <option value=\"749\">749</option>
          <option value=\"750\">750</option>
          <option value=\"751\">751</option>
          <option value=\"752\">752</option>
          <option value=\"753\">753</option>
          <option value=\"754\">754</option>
          <option value=\"755\">755</option>
          <option value=\"756\">756</option>
          <option value=\"757\">757</option>
          <option value=\"758\">758</option>
          <option value=\"759\">759</option>
          <option value=\"760\" selected>760</option>
          <option value=\"761\">761</option>
		  <option value=\"762\">762</option>
          <option value=\"763\">763</option>
          <option value=\"764\">764</option>
          <option value=\"765\">765</option>
          <option value=\"766\">766</option>
          <option value=\"767\">767</option>
          <option value=\"768\">768</option>
          <option value=\"769\">769</option>
          <option value=\"770\">770</option>
          <option value=\"771\">771</option>
          <option value=\"772\">772</option>
          <option value=\"773\">773</option>
          <option value=\"774\">774</option>
          <option value=\"775\">775</option>
          <option value=\"776\">776</option>
          <option value=\"777\">777</option>
          <option value=\"778\">778</option>
          <option value=\"779\">779</option>
          <option value=\"780\">780</option>
          <option value=\"781\">781</option>
          <option value=\"782\">782</option>
          <option value=\"783\">783</option>
          <option value=\"784\">784</option>
          <option value=\"785\">785</option>
          <option value=\"786\">786</option>
          <option value=\"787\">787</option>
          <option value=\"788\">788</option>
          <option value=\"789\">789</option>
          <option value=\"790\">790</option>
		  <option value=\"791\">791</option>
          <option value=\"792\">792</option>
          <option value=\"793\">793</option>
          <option value=\"794\">794</option>
          <option value=\"795\">795</option>
          <option value=\"796\">796</option>
          <option value=\"797\">797</option>
          <option value=\"798\">798</option>
          <option value=\"799\">799</option>
          <option value=\"800\">800</option>
        </select>
      </td>
    </tr>
	<tr> 
      <td> <font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\"><b>Влажность (%):</b></font> </td>
      <td> 
        <select name=\"vlagn_n\"  class=\"categoryselect\">
          <option value=\"0\">0</option>
          <option value=\"1\">1</option>
          <option value=\"2\">2</option>
          <option value=\"3\">3</option>
          <option value=\"4\">4</option>
          <option value=\"5\">5</option>
          <option value=\"6\">6</option>
          <option value=\"7\">7</option>
          <option value=\"8\">8</option>
          <option value=\"9\">9</option>
          <option value=\"10\">10</option>
          <option value=\"11\">11</option>
          <option value=\"12\">12</option>
          <option value=\"13\">13</option>
          <option value=\"14\">14</option>
          <option value=\"15\">15</option>
          <option value=\"16\">16</option>
          <option value=\"17\">17</option>
          <option value=\"18\">18</option>
          <option value=\"19\">19</option>
          <option value=\"20\">20</option>
          <option value=\"21\">21</option>
          <option value=\"22\">22</option>
          <option value=\"23\">23</option>
          <option value=\"24\">24</option>
          <option value=\"25\" selected>25</option>
          <option value=\"26\">26</option>
          <option value=\"27\">27</option>
          <option value=\"28\">28</option>
          <option value=\"29\">29</option>
          <option value=\"30\">30</option>
          <option value=\"31\">31</option>
          <option value=\"32\">32</option>
          <option value=\"33\">33</option>
          <option value=\"34\">34</option>
          <option value=\"35\">35</option>
          <option value=\"36\">36</option>
          <option value=\"37\">37</option>
          <option value=\"38\">38</option>
          <option value=\"39\">39</option>
          <option value=\"40\">40</option>
          <option value=\"41\">41</option>
          <option value=\"42\">42</option>
          <option value=\"43\">43</option>
          <option value=\"44\">44</option>
          <option value=\"45\">45</option>
          <option value=\"46\">46</option>
          <option value=\"47\">47</option>
          <option value=\"48\">48</option>
          <option value=\"49\">49</option>
          <option value=\"50\">50</option>
          <option value=\"51\">51</option>
          <option value=\"52\">52</option>
          <option value=\"53\">53</option>
          <option value=\"54\">54</option>
          <option value=\"55\">55</option>
          <option value=\"56\">56</option>
          <option value=\"57\">57</option>
          <option value=\"58\">58</option>
          <option value=\"59\">59</option>
          <option value=\"60\">60</option>
          <option value=\"61\">61</option>
		  <option value=\"62\">62</option>
          <option value=\"63\">63</option>
          <option value=\"64\">64</option>
          <option value=\"65\">65</option>
          <option value=\"66\">66</option>
          <option value=\"67\">67</option>
          <option value=\"68\">68</option>
          <option value=\"69\">69</option>
          <option value=\"70\">70</option>
          <option value=\"71\">71</option>
          <option value=\"72\">72</option>
          <option value=\"73\">73</option>
          <option value=\"74\">74</option>
          <option value=\"75\">75</option>
          <option value=\"76\">76</option>
          <option value=\"77\">77</option>
          <option value=\"78\">78</option>
          <option value=\"79\">79</option>
          <option value=\"80\">80</option>
          <option value=\"81\">81</option>
          <option value=\"82\">82</option>
          <option value=\"83\">83</option>
          <option value=\"84\">84</option>
          <option value=\"85\">85</option>
          <option value=\"86\">86</option>
          <option value=\"87\">87</option>
          <option value=\"88\">88</option>
          <option value=\"89\">89</option>
          <option value=\"90\">90</option>
		  <option value=\"91\">91</option>
          <option value=\"92\">92</option>
          <option value=\"93\">93</option>
          <option value=\"94\">94</option>
          <option value=\"95\">95</option>
          <option value=\"96\">96</option>
          <option value=\"97\">97</option>
          <option value=\"98\">98</option>
          <option value=\"99\">99</option>
          <option value=\"100\">100</option>
        </select>
      </td>
    </tr>
	<tr> 
      <td> <font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\"><b>Средняя суточная температура:</b></font> </td>
      <td><select name=\"s1\"  class=\"categoryselect\">
          <option value=\"+\">+</option>
          <option value=\" \"> </option>
          <option value=\"-\">-</option>
        </select>  <select name=\"s2\"  class=\"categoryselect\">
          <option value=\"0\">0</option>
          <option value=\"1\">1</option>
          <option value=\"2\">2</option>
          <option value=\"3\">3</option>
          <option value=\"4\">4</option>
          <option value=\"5\">5</option>
          <option value=\"6\">6</option>
          <option value=\"7\">7</option>
          <option value=\"8\">8</option>
          <option value=\"9\">9</option>
          <option value=\"10\">10</option>
          <option value=\"11\">11</option>
          <option value=\"12\">12</option>
          <option value=\"13\">13</option>
          <option value=\"14\">14</option>
          <option value=\"15\">15</option>
          <option value=\"16\">16</option>
          <option value=\"17\">17</option>
          <option value=\"18\">18</option>
          <option value=\"19\">19</option>
          <option value=\"20\">20</option>
          <option value=\"21\">21</option>
          <option value=\"22\">22</option>
          <option value=\"23\">23</option>
          <option value=\"24\">24</option>
          <option value=\"25\">25</option>
          <option value=\"26\">26</option>
          <option value=\"27\">27</option>
          <option value=\"28\">28</option>
          <option value=\"29\">29</option>
          <option value=\"30\">30</option>
          <option value=\"31\">31</option>
          <option value=\"32\">32</option>
          <option value=\"33\">33</option>
          <option value=\"34\">34</option>
          <option value=\"35\">35</option>
          <option value=\"36\">36</option>
          <option value=\"37\">37</option>
          <option value=\"38\">38</option>
          <option value=\"39\">39</option>
          <option value=\"40\">40</option>
          <option value=\"41\">41</option>
          <option value=\"42\">42</option>
          <option value=\"43\">43</option>
          <option value=\"44\">44</option>
          <option value=\"45\">45</option>
          <option value=\"46\">46</option>
          <option value=\"47\">47</option>
          <option value=\"48\">48</option>
          <option value=\"49\">49</option>
          <option value=\"50\">50</option>
          <option value=\"51\">51</option>
          <option value=\"52\">52</option>
          <option value=\"53\">53</option>
          <option value=\"54\">54</option>
          <option value=\"55\">55</option>
          <option value=\"56\">56</option>
          <option value=\"57\">57</option>
          <option value=\"58\">58</option>
          <option value=\"59\">59</option>
          <option value=\"60\">60</option>
          <option value=\"61\">61</option>
        </select>
      </td>
    </tr>
    <tr> 
      <td width=\"22%\"><font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\"><b>Текст:</B></font></td>
      <td width=\"78%\"><textarea name=\"msg\" cols=\"50\" rows=\"8\" class=\"categoryselect\" style=\"BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid\">Здесь можно добавить рекламный текст</textarea></td>
    </tr>
    <tr> 
      <td width=\"22%\">&nbsp;</td>
      <td width=\"78%\"> <input type=submit name=submit value=Добавить! style=\"BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BACKGROUND: ffffff;\"> 
      </td>
    </tr>
  </table>
</form>";



if(isset($submit) and $msg!="")
{
$msg = stripslashes($msg);
$msg = ereg_replace(":","&#58;",$msg);
$msg = ereg_replace("\r","",$msg);
$msg = ereg_replace("\n","<br>",$msg);
$msg = ereg_replace("Здесь можно добавить рекламный текст"," ",$msg);

$day0 = "$day";

$day0 = stripslashes($day0);
$day0 = ereg_replace("01","1",$day0);
$day0 = ereg_replace("02","2",$day0);
$day0 = ereg_replace("03","3",$day0);
$day0 = ereg_replace("04","4",$day0);
$day0 = ereg_replace("05","5",$day0);
$day0 = ereg_replace("06","6",$day0);
$day0 = ereg_replace("07","7",$day0);
$day0 = ereg_replace("08","8",$day0);
$day0 = ereg_replace("09","9",$day0);

$name0 = "$name";

$name0 = stripslashes($name0);
$name0 = ereg_replace("01","Января",$name0);
$name0 = ereg_replace("02","Февраля",$name0);
$name0 = ereg_replace("03","Марта",$name0);
$name0 = ereg_replace("04","Апреля",$name0);
$name0 = ereg_replace("05","Мая",$name0);
$name0 = ereg_replace("06","Июня",$name0);
$name0 = ereg_replace("07","Июля",$name0);
$name0 = ereg_replace("08","Августа",$name0);
$name0 = ereg_replace("09","Сентября",$name0);
$name0 = ereg_replace("10","Октября",$name0);
$name0 = ereg_replace("11","Ноября",$name0);
$name0 = ereg_replace("12","Декабря",$name0);

$img = "$pog";
$img = stripslashes($img);
$img = ereg_replace("Дождь","dojd.gif",$img);
$img = ereg_replace("Ясно","js.gif",$img);
$img = ereg_replace("Пероблачность","p-o.gif",$img);
$img = ereg_replace("Облачно","obl.gif",$img);
$img = ereg_replace("Гроза","gr.gif",$img);
$img = ereg_replace("Снег","sn.gif",$img);
$img = ereg_replace("Метель","met.gif",$img);

$vetk = $vet;
$vetk = stripslashes($vetk);
$vetk = ereg_replace("Штиль","sh.gif",$vetk);
$vetk = ereg_replace("Южн","u.gif",$vetk);
$vetk = ereg_replace("Сев","s.gif",$vetk);
$vetk = ereg_replace("Зап","z.gif",$vetk);
$vetk = ereg_replace("Вост","w.gif",$vetk);
$vetk = ereg_replace("С-З","s-z.gif",$vetk);
$vetk = ereg_replace("С-В","s-w.gif",$vetk);
$vetk = ereg_replace("Ю-З","u-z.gif",$vetk);
$vetk = ereg_replace("Ю-В","u-w.gif",$vetk);

$pog = stripslashes($pog);
$pog = ereg_replace("Пероблачность","Пер. Облачность",$pog);

$added_time = time()+ ($config_date_adjust*60);

$random=date("U");
$date=date("d.m.Y");
$fp=@fopen("data/temper/$day$name.txt","w+");
$fpjs=@fopen("data/msg/$day$name.msgn","w+");
$fps=@fopen("data/s/$day$name.s","w+");
$fpis_img=@fopen("data/fpis_img/$day$name.fpis_img","w+");
$davl=@fopen("data/davl/$day$name.davl","w+");
$vlagn=@fopen("data/vlagn/$day$name.vlagn","w+");
$date=@fopen("data/date/$day$name.date","w+");
$veter=@fopen("data/veter/$day$name.veter","w+");
$veter_skor=@fopen("data/veter/skor/$day$name.veter_skor","w+");
$veter_napr_n=@fopen("data/veter/napr/$day$name.veter_napr","w+");
$pog_s=@fopen("data/pog/$day$name.pog","w+");
$no_s=@fopen("data/temper/no/$day$name.no","w+");
$day_s=@fopen("data/temper/day/$day$name.day","w+");
$fn=$_FILES['newfile']['name'];
$var = $HTTP_POST_FILES['newfile']['tmp_name'];

$info = "<table width=\"148\" height=\"40\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\">
<tr valign=\"top\"><td width=\"20\"><img src=\"$site_url/weather/img/$img\" alt=\"$pog\" width=\"20\" height=\"20\" border=\"0\" hspace=\"2\" vspace=\"2\"></td>
<td width=\"128\"><font color=\"#000000\" style=\"font-family:Arial; font-size:11px; font-weight:none; text-decoration:none;\">$ned $day0 $name0<br>$pog<br>Ветер: $vet $vet1/$vet2 м/с<br>Ночью: $no1$no2...$no3$no4<br>Днем: $d1$d2...$d3$d4<br>$msg</font></td>
</tr></table>";
$infojs ="$msg";
$infojs_img = "<img src=\"$site_url/weather/img/$img\" alt=\"$pog\" width=\"20\" height=\"20\" border=\"0\" hspace=\"2\" vspace=\"2\">";
$infos ="$s1$s2";
$davl_1="$davl_n";
$vlagn_1="$vlagn_n";
$date_n="$ned $day0 $name0";
$veter_n="$vet";
$veter_skor_n="$vet1/$vet2";
$pog_n="$pog";
$no_n="$no1$no2...$no3$no4";
$day_n="$d1$d2...$d3$d4";
$veter_napr_s="<img src=\"$site_url/weather/img/$vetk\" alt=\"$veter_n\" width=\"24\" height=\"24\" border=\"0\" hspace=\"2\" vspace=\"2\">";
fputs($day_s,$day_n);
fclose($day_s);
fputs($no_s,$no_n);
fclose($no_s);
fputs($pog_s,$pog_n);
fclose($pog_s);
fputs($veter_napr_n,$veter_napr_s);
fclose($veter_napr_n);
fputs($veter_skor,$veter_skor_n);
fclose($veter_skor);
fputs($veter,$veter_n);
fclose($veter);
fputs($date,$date_n);
fclose($date);
fputs($davl,$davl_1);
fclose($davl);
fputs($vlagn,$vlagn_1);
fclose($vlagn);
fputs($fpis_img,$infojs_img);
fclose($fpis_img);
fputs($fps,$infos);
fclose($fps);
fputs($fpjs,$infojs);
fclose($fpjs);
fputs($fp,$info);
fclose($fp);

print "<div align=\"center\"><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">Спасибо! Новость добавлена</font></div>";
print "<meta http-equiv=refresh content=\"1; url=add.php?show=$user_name@~@$user_pass\">";
}
}
?>
