<?php

if(isset($_POST['CMD']))
{
   db_update("uloziste", "PRIKAZ=\"". trim($_POST['CMD']) ."\", ODPOVED=\"\", DATUM=". time(), "ID=". $_SESSION['UZIVATEL_ID']);
};

?>
<div class="nadpis_navigace">
  <a href="?" title="home">home</a>
</div>
<iframe class="cmd_line" src="user_cmd.php?cas=<?php echo time(); ?>#konec" scrolling="yes"></iframe>
<div id="varovani" align="center" style="display:none; position: absolute; top: 353px; right: 103px; color:#f00; background-color: #fff; font-size: 12px;">Dokud je kurzor nad historií příkazů, je aktualizace pozastavena!</div>

<iframe class="levy_panel" src="user_left.php" scrolling="no" border="0" frameborder="0" framespacing="0"></iframe>

<div class="pravy_panel">
  <input title="gui" class="tlacitko2" type="button" name="GUI" onclick="okno_full('okno3','user_gui.php');" value="GUI" style="background-color: #2d65ff; margin-bottom: 30px;">
  <input title="dir" class="tlacitko2" type="button" name="DIR" onclick="okno('okno1','user_dir.php',600,330);" value="dir ../.">
  <input title="procesy" class="tlacitko2" type="button" name="PROCESY" onclick="okno('okno2','user_procesy.php',200,400);" value="procesy">
  <input title="vypnout" class="tlacitko3" type="button" name="VYPNOUT" onclick="prikaz('shutdown');" value=" " style="background-image: url('img/shut.png');">
  <input title="restartovat" class="tlacitko3" type="button" name="RESTARTOVAT" onclick="prikaz('restart');" value=" " style="background-image: url('img/rest.png');">
  <input title="zrušit vypínání" class="tlacitko3" type="button" name="ZRUSIT" onclick="prikaz('abort');" value=" " style="background-image: url('img/abort.png');">
</div>

<form action="?" method="post" name="form1" id="form1">
  <div style="position: absolute; top: 332px; *top: 330px; left: 125px;">
    <input style="width: 300px;" type="text" id="CMD" name="CMD" value="">
  </div>
  <input title="enter" class="tlacitko" type="submit" name="ENTER" value=" " style="position: absolute; top: 368px; left: 245px;">
  <script language="JavaScript">
    document.getElementById('CMD').focus();
  </script>
</form>
