Esempio n. 1
0
function TampilkanFormHeaderResetPasswordMahasiswa()
{
    getAjax();
    echo "<script>\r\n  function CheckPwd(frm) {\r\n    var pjg = frm.PWD1.value.length;\r\n    if (pjg != 6) alert('Panjang password harus 6 karakter');\r\n    var hsl = false;\r\n    hsl = pjg == 6;\r\n    if (hsl) {\r\n      hsl = frm.PWD1.value == frm.PWD2.value;\r\n      if (!hsl) alert('Password dan Konfirmasi Password tidak sama.');\r\n    }\r\n    return hsl;\r\n  }\r\n  </script>\r\n  \r\n  <p><table class=box cellspacing=1>\r\n  <form action='?' method=GET onSubmit=\"return CheckPwd(this)\">\r\n  <input type=hidden name='mnux' value='resetpwdmhsw'>\r\n  <input type=hidden name='gos' value='ResetPwdMhsw'>\r\n  \r\n  <tr><td class=ul colspan=2><b>{$_SESSION['KodeID']}</b></td></tr>\r\n  <tr><td class=inp>Hak akses</td><td class=ul>{$_SESSION['_ProdiID']}</td></tr>\r\n  <tr><td class=inp>NPM</td><td class=ul><input type=text id='MhswID' name='MhswID' value='{$_SESSION['MhswID']}' size=20 maxlength=50>&nbsp;&nbsp;<input type=button name=paslama value='Lihat Password Lama' onClick='carikelajax(this)'></td></tr>\r\n  <tr><td class=inp>Password Lama</td><td class=ul><input type=text id='PASLM' name='PWDLM' value='{$PWDLM}' size=16 maxlength=50 disabled=true></td></tr>\r\n  <tr><td class=inp>Password Baru</td><td class=ul><input type=password name='PWD1' size=6 maxlength=6></td></tr>\r\n  <tr><td class=inp>Konfirmasi Password (sekali lagi)</td><td class=ul><input type=password name='PWD2' size=6 maxlength=6></td></tr>\r\n  <tr><td colspan=2 class=ul><input type=submit name='Simpan' value='Reset Password Mahasiswa'></td></tr>\r\n  </form></table></p>";
}
Esempio n. 2
0
* Copyright (c) 2015, Aron Heinecke
* All rights reserved.
* 
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************************************************************/
$info = "";
if (true) {
    //DEBUG ONLY
    $e = ini_set('display_errors', true);
    if ($e !== "1") {
        echo $e;
    }
    error_reporting(E_ALL);
    $info = 'Error-Log:On';
}
require_once 'includes/ytdownl.php';
if (isset($_REQUEST['ajaxCont'])) {
    if (function_exists('getAjax')) {
        echo getAjax();
    } else {
        http_response_code(404);
        echo 'ERROR: No custom request function found!';
    }
} else {
    require_once 'includes/template.inc.php';
    showTemplate();
}
Esempio n. 3
0
function AssetEdt() {
	global $KodeID;
	$md = $_REQUEST['md']+0;
  getAjax();
	if($md==0) {
      $w = GetFields('asset', 'AssetID', $_REQUEST['AssetID'], '*');
	    $AssetID = "<b><input type=hidden name='AssetID' value='$w[AssetID]' size=20 malength=20> $w[AssetID]</b>";
      $lks = GetOption2('lokasiasset', "concat(LokasiID, ' - ', Nama)", 'LokasiID', $w['LokasiID'], '', 	 'LokasiID');
      $klp = GetOption2('kelompokasset', "concat(KelompokID, ' - ', Nama)", 'KelompokID', $w['KelompokID'], '', 'KelompokID');
      $vdr = GetOption2('vendor', "concat(VendorID, ' - ', Nama)", 'VendorID', $w['VendorID'], '', 'VendorID');
 	    $jdl="Edit Data";
	}
	else{
      $w = array();
      $w['AssetID'] = GetaField('asset', 'KodeID', $KodeID, "max(AssetID)");
	    $w['TglBeli']=date('y-m-d');
	    $w['TglSusut']=date('y-m-d');
      $AssetID = "<input type=text name='AssetID' value='$w[AssetID]' size=20 malength=20>";
      $lks = GetOption2('lokasiasset', "concat(LokasiID, ' - ', Nama)", 'LokasiID', $_SESSION['KodeID'], '', 	 'LokasiID');
      $klp = GetOption2('kelompokasset', "concat(KelompokID, ' - ', Nama)", 'KelompokID', $_SESSION['KodeID'], '', 'KelompokID');
      $vdr = GetOption2('vendor', "concat(VendorID, ' - ', Nama)", 'VendorID', $_SESSION['VendorID'], '', 'VendorID');
	    $jdl="Tambah Data";
	}
    $tglbeli=GetDateOption($w['TglBeli'], 'TglBeli');
    $tglsusut=GetDateOption($w['TglSusut'], 'TglSusut');
    $na = ($w['NA'] == 'Y')? 'checked' : '';
  CheckFormScript("AssetID, Nama");
  echo "<p><table class=box cellspacing=1 cellpadding=4>
  <form action='?' method=POST onSubmit=\"return CheckForm(this)\">
  <input type=hidden name='mnux' value='asset'>
  <input type=hidden name='gos' value='AssetSav'>
  <input type=hidden name='md' value='$md'>
  <tr><th class=ttl colspan=4>$jdl</th></tr>
  <tr><td class=inp>Asset ID</td>
  <td class=ul colspan=4>$AssetID</td></tr>
  <tr><td class=inp>Nama</td>
  <td class=ul colspan=4><input type=text name='Nama' value='$w[Nama]' size=70 maxlength=80></td></tr>
  <tr><td class=inp>Tanggal Perolehan</td>
	  <td class=ul colspan=4>$tglbeli</td></tr>
  <tr><td class=inp>Tangal Disusutkan</td>
	  <td class=ul colspan=4>$tglsusut</td></tr>
  <tr><td class=inp>Q t y</td>
	  <td class=ul colspan=4><input type=text name='Jumlah' value='$w[Jumlah]' size=10 maxlength=6></td></tr>
  <tr><td class=inp>Satuan</td>
	  <td class=ul colspan=4><input type=text name='Satuan' value='$w[Satuan]' size=10 maxlength=8></td></tr>
  <tr><td class=inp>Harga Beli </td>
	  <td class=ul colspan=4><input type=text name='HargaBeli' value='$w[HargaBeli]' size=20></td></tr>  
  <tr><td class=inp>Lokasi </td>
	  <td class=ul colspan=4><select name='LokasiID'>$lks</select></td></tr>
  <tr><td class=inp>Kelompok </td>
	  <td class=ul><select name='KelompokID' id='kelid' onchange='carikelajax(this)'>$klp</select></td>
	  <td class=ul colspan=2>-</td>
  <tr><td class=inp>Manfaat Komersil</td>
	  <td class=ul><input type=text id='mankom' name='ManfaatKomersil' value='$w[ManfaatKomersil]' size=10 maxlength=6></td>
  <td class=inp>Manfaat Fiskal</td>
	  <td class=ul><input type=text id='manfis' name='ManfaatFiskal' value='$w[ManfaatFiskal]' size=10 maxlength=6></td></tr>
  <tr><td class=inp>Prosentase Komersil</td>
	  <td class=ul><input type=text id='prokom' name='ProsentaseKomersil' value='$w[ProsentaseKomersil]' size=10 maxlength=6></td>
      <td class=inp>Prosentase Fiskal</td>
	  <td class=ul><input type=text id='profis' name='ProsentaseFiskal' value='$w[ProsentaseFiskal]' size=10 maxlength=6></td> </tr>
  <tr><td class=inp>Kondisi</td>
	  <td class=ul colspan=4><input type=text name='Kondisi' value='$w[Kondisi]' size=70 maxlength=80></td></tr>
  <tr><td class=inp>Pemakai</td>
	  <td class=ul colspan=4><input type=text name='Pemakai' value='$w[Pemakai]' size=70 maxlength=80></td></tr>
  <tr><td class=inp>No. Purchase Order(PO)</td>
	  <td class=ul colspan=4><input type=text name='PurchaseOrder' value='$w[PurchaseOrder]'></td></tr>
  <tr><td class=inp>Vendor</td>
	  <td class=ul colspan=4><select name='VendorID'>$vdr</select></td></tr>
  <tr><td class=inp>NA (tidak aktif)?</td>
  <td class=ul colspan=4><input type=checkbox name='NA' value='Y' $Na ></td></tr>
  <tr><td class=ul colspan=4><input type=submit name='Simpan' value='Simpan'>
  <input type=reset name='Reset' value='Reset'>
  <input type=button name='Batal' value='Batal' onClick=\"location='?mnux=asset'\"></td></tr>
  </form></table></p>";
}
Esempio n. 4
0
function ResetPasswordMahasiswa()
{
    getAjax();
    echo "<script>\n  function CheckPwd(frm) {\n    var pjg = frm.PWD1.value.length;\n\n    var hsl = false;\n    hsl = pjg == ;\n    if (hsl) {\n      hsl = frm.PWD1.value == frm.PWD2.value;\n      if (!hsl) alert('Password dan Konfirmasi Password tidak sama.');\n    }\n    return hsl;\n  }\n  </script>\n  \n  <p><table class=box cellspacing=1>\n  <form action='?' method=GET onSubmit=\"return CheckPwd(this)\">\n  <input type=hidden name='mnux' value='modules/resetpwdku'>\n  <input type=hidden name='gos' value='ResetPwdMhsw'>\n  \n  <tr><td class=ul colspan=2><b>{$_SESSION['KodeID']}</b> - {$_SESSION['_ProdiID']}</td></tr>\n\n  <input type=hidden id='MhswID' name='MhswID' value='{$_SESSION['_Login']}' size=12 maxlength=7>\n  <tr><td class=inp>Password Lama</td><td class=ul><input type=password name='PWDLM' size=12 maxlength=20></td></tr>\n  \n  <tr><td class=inp>Password Baru</td><td class=ul><input type=password name='PWD1' size=12 maxlength=20></td></tr>\n  <tr><td class=inp>Konfirmasi Password Baru</td><td class=ul><input type=password name='PWD2' size=12 maxlength=20></td></tr>\n  <tr><td colspan=2 class=ul><input type=submit name='Simpan' value='Selesai'></td></tr>\n  </form></table></p>";
}
Esempio n. 5
0
// Koneksi ke database
include "includes/connect.php";
// Membuat session login
cekSession();
?>
<html>
	<head>
		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
		<title>Mobil</title>
				
		<!-- CSS untuk menu -->
		<link type="text/css" rel="stylesheet" href="css/menu.css" />
		
		<?php 
// Memanggil jquery AJAX
getAjax();
?>
	</head>
	<body>
		<center>
			<div>
				<div style="float:right">
				
					<!-- Form pencarian mobil -->
					<form method="get" action="index.php">
						<input name="page" type="hidden" value="view_mobil" />
						<input name="txtCari" type="text" />
						<input type="submit" name="btnCari" value="Cari" />
					</form>
				</div>
				<div class="navigasi">