<?php setcookie("login", $_COOKIE["login"] , time()+3600, "/", "deim.etse.urv.es", 1 ); ?>
<?php setcookie("sessio", $_COOKIE["sessio"] , time()+3600, "/", "deim.etse.urv.es", 1 ); ?>
<html>
  <head>
    <link rel="stylesheet" href="../estils/hoja.css" type="text/css" />
    <title>Afegir personal</title>
  </head>

  <body leftmargin="0" topmargin="0" bgcolor="#8F0000">
    <table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">
      <tr>
        <!-- Menú dret -->
        <td align="left" valign="top" width="100" bgcolor="#4F0000">
          <?php include("../menu.inc") ?>
        </td>

        <!-- Capçalera -->
        <td align="left" valign="top" width="100%" class="centered">
        <h2>Departament d'Enginyeria Informàtica i Matemàtiques</h2>
        <img src="images/separador.gif">
        <br><br>
        <div align="left"><blockquote>

        <!-- Començament del cos -->
        <?php 
          require("../private/connect.inc");
          require("../private/ident.inc");
          require("../private/func-personal.inc");
          ident();
	        autoritzar($_COOKIE["login"], "personal");
        ?>
        <h2>Administració Personal: Afegir</h2>
        <form action="preview.php" method="post">
          <b>Nom:</b> <input name="nom" size="65" maxlength="50" type="text"><br><br>
          <b>Despatx:</b> <input name="despatx" size="15" maxlength=\"15\" type="text">&nbsp;
          <b>Telf:</b> <input name="telf" size="9" maxlength="9" type="int"><br><br>
          <b>E-Mail:</b> <input name="email" size="30" maxlength="30" type="text">&nbsp;
          <b>Web:</b> <input name="web" size="30" maxlength="60" type="text"><br><br>
          <b>Area:</b>
          <select name="area">
          <?php
            $link=Conectar();
            $result=mysql_query("SELECT area FROM arees ORDER BY aid");
            while($row = mysql_fetch_array($result)){
              echo "<option>" . $row["area"] . "</option>";
            }
            mysql_free_result($result);
          ?>
          </select><br><br>
          <input type="radio" name="extra" value="Becari">Becari<br>
          <input type="radio" name="extra" value="Professor Associat">Professor Associat<br>
          <input type="radio" name="extra" value="Cap" CHECKED>Cap dels anteriors 
          <br><br>
          <b>Horari de consultes:</b><br><input type="text" name="consultes" size="65">
          <br><br>
          &nbsp;&nbsp;<input type="image" src="images/vistaprevia.jpg" border=\"0\"></form>
          <input type="image" onClick="history.go(-1)" src="images/tornar.jpg">
        </blockquote></div>
        </td>
        <td align="left" valign="top" width="100">
          <br />
          <br />
          <br />
          <br />
          <a href="../desconectar.php" class="link2"><img src="images/tancar.jpg" border="0"></a>
        </td>
      </tr>
    </table>
  </body>
</html>

