<link href="css/form.css" type="text/css" rel="stylesheet" />


<?php
    
    echo "<h3>MENAMBAHKAN DATA PENGGUNA</h3>";
    echo "<h3 align=\"right\"><a href=\"?page=ls_user&page_desc=Daftar Pengguna\" style=\"color:#FF0066\">Lihat Semua Pengguna</a></h3>";

?>

<form name="form1" method="post" action="_save_pengguna.php">
  <table width="600" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="204">&nbsp;</td>
      <td width="396">&nbsp;</td>
    </tr>
    <tr>
      <td valign="top">ID Pengguna</td>
      <td valign="top"><input type="text" name="txtId" id="txtId" class="kotak" size="40" required></td>
    </tr>

    <tr>
      <td valign="top">Nama Lengkap</td>
      <td valign="top"><input type="text" name="txtNama" id="txtNama" class="kotak" size="40" required></td>
    </tr>

    <tr>
      <td valign="top">Sandi</td>
      <td valign="top"><input type="password" name="txtSandi1" id="txtSandi1" class="kotak" size="40" required></td>
    </tr>

    <tr>
      <td valign="top">Ulangi Sandi</td>
      <td valign="top"><input type="password" name="txtSandi2" id="txtSandi2" class="kotak" size="40" required></td>
    </tr>

    <tr>
      <td valign="top">Level Pengguna</td>
      <td valign="top">
          <select name="txtLevel" id="txtLevel" class="kotak">
          <option value="ULP">Unit Layanan Pengadaan Barang/jasa (ULP Kabupaten Madiun)</option>
          <option value="TPK">Tim Pengelola Kegiatan Desa (TPK Desa)</option>
          </select>
      </td>
    </tr>

    <tr>
      <td valign="top">Desa*<br/><font color="red" size="1">Hanya diisi untuk Level TPK</font> </td>
      <td valign="top">
          <select name="txtDesa" id="txtDesa" class="kotak">
            <option value="0">&nbsp;</option>
            <?php
                $q=mysqli_query($mysqli,"SELECT * FROM m_desa ORDER BY nama_desa ASC");
                while($d=mysqli_fetch_array($q)){
                    echo "<option value='$d[id_desa]'>$d[nama_desa]</option>";
                }
            ?>
          </select>
      </td>
    </tr>
    
    <tr>
      <td width="204">&nbsp;</td>
      <td width="396">&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Simpan" class="tombol"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>

