示例#1
0
    </tr>
    <tr>
      <td>Gaji Bersih</td>
      <td colspan="4"><input type="text" name="gajibersih" id="gajibersih" value="<?php 
echo $gaber;
?>
" readonly></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td colspan="4"><input type="submit" name="submit" id="submit" value="Simpan" class="btnStyle">
        <a href="index.php?pil=gaji">
        <input type="button" name="cetak" id="cetak" value="Hitung Baru" class="btnStyle" style="width:100px;">
        </a></td>
      </tr>
  </table>
  </div>
</form>
</body>
</html>
<?php 
if (isset($_POST['submit'])) {
    if ($_POST['submit']) {
        if (insertDataGaji($_POST['kodegaji'], $_POST['nip'], $_POST['gajipokok'], $_POST['insentive'], $_POST['tunj_jab'], $_POST['gajikotor'], $_POST['pph'], $_POST['gajibersih'], $_POST['bulan'])) {
            echo '<script language="javascript">alert("Data Berhasil di Simpan");location.replace("index.php?pil=view_gaji"); </script>';
            //header ('location:index.php?pil=view_gaji');
        } else {
            echo "Entry Data Gagal";
        }
    }
}
示例#2
0
    </tr>
    <tr>
      <td>Gaji Bersih</td>
      <td colspan="4"><input type="text" name="gajibersih" id="gajibersih" value="<?php 
echo $gaber;
?>
" readonly></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td colspan="4"><input type="submit" name="submit" id="submit" value="Simpan" class="btnStyle">
        <a href="index.php?pil=gaji">
        <input type="button" name="cetak" id="cetak" value="Hitung Baru" class="btnStyle" style="width:100px;">
        </a></td>
      </tr>
  </table>
  </div>
</form>
</body>
</html>
<?php 
if (isset($_POST['submit'])) {
    if ($_POST['submit']) {
        if (insertDataGaji($_POST['kodegaji'], $_POST['nip'], $_POST['gajipokok'], $_POST['insentive'], $_POST['tunj_jab'], $_POST['jamsostek'], $_POST['gajikotor'], $_POST['pph'], $_POST['thr'], $_POST['jamsostek1'], $_POST[''], $_POST['uangmakan'], $_POST[''], $_POST['bonus'], $_POST['gajibersih'], $_POST['bpjs'], $_POST['bulan'])) {
            echo '<script language="javascript">alert("Data Berhasil di Simpan");location.replace("index.php?pil=view_gaji"); </script>';
            //header ('location:index.php?pil=view_gaji');
        } else {
            echo "Entry Data Gagal";
        }
    }
}