Advertisement
Guest User

inputpengajuandetail.php

a guest
Nov 14th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.69 KB | None | 0 0
  1. <?php
  2. error_reporting(1);
  3. $admin = $_SESSION['Name'];
  4. $sql = $mysqli->query("SELECT a.Area, c.id_kec, b.id_kel, c.Nama_Kecamatan, b.Nama_Kelurahan FROM (table_user a JOIN table_kelurahan b ON a.Area=b.id_kel) Join table_kecamatan c ON b.id_kec = c.id_kec WHERE Id_User = '$idbosku'");
  5. $row = $sql->fetch_object();
  6. $Nama_Kelurahan = $row->Nama_Kelurahan;
  7. $Nama_Kecamatan = $row->Nama_Kecamatan;
  8. $id_kel = $row->id_kel;
  9. $id_kec = $row->id_kec;
  10. $NikInput = $_GET['NikInput'];
  11.  
  12. $sql4 = $mysqli->query("SELECT * FROM table_pengajuan WHERE Nik = '$NikInput' AND status_verifikasi = '1'");
  13. $cek4 = mysqli_num_rows($sql4);
  14. $row4 = $sql4->fetch_object();
  15.  
  16.  
  17.  
  18. $sql2 = $mysqli->query("SELECT * FROM table_pengajuan WHERE Nik = '$NikInput' AND status_verifikasi = '2'");
  19. $cek = mysqli_num_rows($sql2);
  20. $row2 = $sql2->fetch_object();
  21. $log_verifikasiuserkecamatan = $row2->log_verifikasiuserkecamatan;
  22. $log_verifikasiuserkecamatan = substr($log_verifikasiuserkecamatan, 0,4);
  23. $sql3 = $mysqli->query("SELECT * FROM table_pengajuan WHERE Nik = '$NikInput' AND status_verifikasi = '3' ORDER BY log_verifikasiuserkecamatan DESC LIMIT 1");
  24. $cek3 = mysqli_num_rows($sql3);
  25. $row3 = $sql3->fetch_object();
  26. $log_verifikasiuserkecamatan3 = $row3->log_verifikasiuserkecamatan;
  27. $verifikasiuserkecamatan3 = $row3->verifikasiuserkecamatan;
  28.  
  29.  
  30.  
  31.  
  32. ?>
  33. <div class="content-wrapper">
  34.  
  35. <!-- Page header -->
  36. <div class="page-header">
  37.  
  38. <?php
  39. if ($cek4 > 0){
  40. ?>
  41. <div class="alert alert-danger">
  42. <strong>Data NIK Sedang dalam status pending!</strong> mohon tunggu atau email kepada kecamatan untuk menolak pengajuan.
  43. </div>
  44. <?php } else {
  45.  
  46. ?>
  47.  
  48.  
  49.  
  50. <div class="page-header-content">
  51. <div class="page-title">
  52. <h4><i class="icon-arrow-left52 position-left"></i> <span class="text-semibold">Aplikasi</span> - SIMKESRA <?php echo $pesan; ?> </h4>
  53. </div>
  54.  
  55.  
  56. </div>
  57.  
  58.  
  59. </div>
  60. <!-- /page header -->
  61.  
  62.  
  63. <!-- Content area -->
  64. <div class="content">
  65.  
  66. <!-- Form horizontal -->
  67. <div class="panel panel-flat">
  68.  
  69.  
  70. <div class="panel-body">
  71.  
  72. <form id="myform" class="form-horizontal" action="././module/simpan.php?act=input_pengajuan" method="post" enctype="multipart/form-data">
  73. <fieldset class="content-group">
  74. <legend class="text-bold">Isi Data dibawah ini dengan valid dan apa adanya</legend>
  75.  
  76. <div class="form-group">
  77. <label class="control-label col-lg-2">NIK</label>
  78. <div class="col-lg-10" >
  79. <input required id="Nik" pattern="(.){16,16}" oninvalid="this.setCustomValidity('Wajib isi dengan 16 Nomor Induk Kependudukan (NIK)')"
  80. oninput="setCustomValidity('')" type="text" readonly name="Nik" class="form-control" value="<?php echo $NikInput; ?>" maxlength="16" placeholder="Isi NIK Pengajuan">
  81.  
  82. </div>
  83.  
  84. </div>
  85.  
  86.  
  87. <div class="form-group">
  88. <label class="control-label col-lg-2">Status Pengajuan</label>
  89. <div class="col-lg-10">
  90. <input style="<?php if ($cek > 0){
  91. echo "color : green";
  92. } else if ($cek3 > 0) {
  93. echo "color : red";
  94. } else {
  95. echo "color : blue";
  96. } ?>" readonly type="text" oninvalid="this.setCustomValidity('Wajib diisi')"
  97. oninput="setCustomValidity('')" name="statuspengajuan" required class="form-control" placeholder="Isi Nama" value="<?php if ($cek > 0){
  98. echo "NIK sudah pernah mendapat bantuan pada tahun ".$log_verifikasiuserkecamatan;
  99. } else if ($cek3 > 0) {
  100. echo "NIK sudah pernah mengajukan, namun ditolak pada waktu (".$log_verifikasiuserkecamatan3." ) oleh admin kecamatan ".$verifikasiuserkecamatan3;
  101. } else {
  102. echo "NIK belum pernah mendapat bantuan";
  103. } ?>">
  104.  
  105. </div>
  106. </div>
  107.  
  108. <div class="form-group">
  109. <label class="control-label col-lg-2">Nama</label>
  110. <div class="col-lg-10">
  111. <input required type="text" oninvalid="this.setCustomValidity('Wajib diisi')"
  112. oninput="setCustomValidity('')" name="Nama" class="form-control" id="nama" placeholder="Isi Nama" value="<?php echo $row3->Nama; ?>">
  113.  
  114. </div>
  115. </div>
  116.  
  117. <div class="form-group">
  118. <label class="control-label col-lg-2">E-Mail</label>
  119. <div class="col-lg-10">
  120. <input type="email" oninvalid="this.setCustomValidity('Wajib isi dengan format email, Contoh : saya@gmail.com')"
  121. oninput="setCustomValidity('')" name="Email" required class="form-control" placeholder="Isi E-Mail" id="email" value="<?php echo $row3->Email; ?>">
  122.  
  123. </div>
  124. </div>
  125.  
  126. <div class="form-group">
  127. <label class="control-label col-lg-2">Nomor Telepon</label>
  128. <div class="col-lg-10">
  129. <input type="text" oninvalid="this.setCustomValidity('Wajib diisi')"
  130. oninput="setCustomValidity('')" maxlength="13" id="telp" class="form-control" required name="No_Telepon" placeholder="Isi Nomor Telepon" value="<?php echo $row3->No_Telepon; ?>">
  131.  
  132. </div>
  133. </div>
  134.  
  135.  
  136. <div class="form-group">
  137. <label class="control-label col-lg-2">Nomor Rekening</label>
  138. <div class="col-lg-10">
  139. <input type="text" oninvalid="this.setCustomValidity('Wajib diisi')"
  140. oninput="setCustomValidity('')" maxlength="25" class="form-control" id="rekening" placeholder="Isi Nomor Rekening Pengajuan" name="No_Rekening">
  141.  
  142. <input type="hidden" value="<?php echo $admin ?>" class="form-control" name="admin">
  143. </div>
  144. </div>
  145.  
  146.  
  147.  
  148.  
  149. <div class="form-group">
  150. <label class="control-label col-lg-2">Nama Bank Rekening</label>
  151. <div class="col-lg-10">
  152. <?php
  153.  
  154. echo "<select class='form-control' name='Id_Bank'>
  155. <option selected></option>";
  156. $sql1 = "select * from table_bank";
  157. $result = $mysqli->query($sql1);
  158. while ($obj = $result->fetch_object()){
  159. echo "<option value=$obj->Id_Bank>$obj->Nama_Bank</option>";
  160. }
  161. echo "</select>"; ?>
  162. </div>
  163. </div>
  164.  
  165. <div class="form-group">
  166. <label class="control-label col-lg-2">Pekerjaan</label>
  167. <div class="col-lg-10">
  168. <?php
  169. include"../config/conn.php";
  170. echo "<select class='form-control' name='Id_Pekerjaan' required>
  171. <option selected></option>";
  172. $sql1 = "select * from table_pekerjaan ORDER BY Nama_Pekerjaan";
  173. $result = $mysqli->query($sql1);
  174. while ($obj = $result->fetch_object()){
  175. echo "<option value=$obj->Id_Pekerjaan>$obj->Nama_Pekerjaan</option>";
  176. }
  177. echo "</select>"; ?>
  178. </div>
  179. </div>
  180.  
  181.  
  182.  
  183.  
  184.  
  185. <div class="form-group">
  186. <label class="control-label col-lg-2">Alamat Sesuai KTP</label>
  187. <div class="col-lg-10">
  188. <textarea oninvalid="this.setCustomValidity('Wajib diisi')"
  189. oninput="setCustomValidity('')" class="form-control" placeholder="Isi Alamat Sesuai KTP Pengajuan" name="Alamat" id="alamat" required><?php echo $row3->Alamat; ?></textarea>
  190. </div>
  191. </div>
  192.  
  193. <div class="form-group">
  194. <label class="control-label col-lg-2">Tempat Mengajar</label>
  195. <div class="col-lg-10">
  196. <input type="text" oninvalid="this.setCustomValidity('Wajib diisi')"
  197. oninput="setCustomValidity('')" class="form-control" placeholder="Tempat Mengajar" name="Tempat_Mengajar" id="tempat_mengajar" value="<?php echo $row3->Tempat_Mengajar; ?>" required>
  198. </div>
  199. </div>
  200.  
  201. <div class="form-group">
  202. <label class="control-label col-lg-2">Jumlah Siswa</label>
  203. <div class="col-lg-10">
  204. <input type="text" oninvalid="this.setCustomValidity('Wajib diisi')"
  205. oninput="setCustomValidity('')" id="siswa" class="form-control" placeholder="Isi Jumlah Siswa" name="Siswa" value="<?php echo $row3->Siswa; ?>" required>
  206. </div>
  207. </div>
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214. <legend class="text-bold">Wilayah Pengajuan, Pilih Kecamatan dan Kelurahan</legend>
  215.  
  216. <div class="form-group">
  217. <label class="control-label col-lg-2">Kecamatan</label>
  218. <div class="col-lg-10">
  219. <input type="text" class="form-control" value="<?php echo $Nama_Kecamatan ?>" readonly>
  220. <input type="hidden" class="form-control" name="id_kec" value="<?php echo $id_kec ?>">
  221. </div>
  222. </div>
  223.  
  224. <div class="form-group">
  225. <label class="control-label col-lg-2">Kelurahan</label>
  226. <div class="col-lg-10">
  227. <input type="text" class="form-control" value="<?php echo $Nama_Kelurahan ?>" readonly>
  228. <input type="hidden" class="form-control" name="id_kel" value="<?php echo $id_kel ?>">
  229. </div>
  230. </div>
  231.  
  232. <legend class="text-bold">Upload Pas Foto dan KTP (Maximal Ukuran 2 MB)</legend>
  233. <div class="form-group">
  234. <label class="col-lg-2 control-label text-semibold">Upload Pas Foto</label>
  235.  
  236. <div class="col-lg-10">
  237. <input oninvalid="this.setCustomValidity('Wajib Upload Pas Foto')"
  238. oninput="setCustomValidity('')" class="form-control" type="file" class="form-control" id="Pasfoto" name="Pasfoto" onchange="getImg(this,2000,'image/png|image/jpg|image/jpeg')" required>
  239.  
  240. </div>
  241. </div>
  242. <div class="form-group">
  243. <label class="col-lg-2 control-label text-semibold">Upload KTP</label>
  244. <div class="col-lg-10">
  245. <input oninvalid="this.setCustomValidity('Wajib Upload KTP')"
  246. oninput="setCustomValidity('')" class="form-control" type="file" class="form-control" id="Ktp" name="Ktp" onchange="getImg(this,2000,'image/png|image/jpg|image/jpeg')" required>
  247. </div>
  248. </div>
  249.  
  250. <legend class="text-bold">Pilih Status Pengajar</legend>
  251. <div class="form-group">
  252.  
  253. <div class="col-lg-10">
  254. <input checked type="radio" name="rad" id="rad1" class="rad" value="5"/> Guru Ngaji &nbsp;&nbsp;
  255. <input type="radio" name="rad" id="rad2" class="rad" value="6"/> Amil &nbsp;&nbsp;
  256. <input type="radio" name="rad" id="rad1" class="rad" value="7"/> DTA &nbsp;&nbsp;
  257. <input type="radio" name="rad" id="rad1" class="rad" value="8"/> MI &nbsp;&nbsp;
  258. <input type="radio" name="rad" id="rad1" class="rad" value="9"/> MTS &nbsp;&nbsp;
  259. <input type="radio" name="rad" id="rad1" class="rad" value="10"/> RA &nbsp;&nbsp;
  260. <input type="radio" name="rad" id="rad1" class="rad" value="11"/> TPQ
  261. </div>
  262. </div>
  263. <legend id="textuploadsk" style="display:show" class="text-bold">Input SK dan Upload Scan SK</legend>
  264. <div id="nomorsk1" style="display:show" class="form-group">
  265. <label class="control-label col-lg-2">Nomor SK</label>
  266. <div class="col-lg-10">
  267. <input type="text" maxlength="50" id="required_8" class="form-control" placeholder="Isi Nomor SK Pengajuan" name="Nomor_SK_Guru">
  268. </div>
  269. </div>
  270.  
  271. <div id="tanggalsk" style="display:show" class="form-group">
  272. <label class="control-label col-lg-2">Tanggal SK</label>
  273. <div class="col-lg-10">
  274. <input onkeydown="return false;" name="Tanggal_SK" type="text" id="tanggal" placeholder="Tanggal SK" class="form-control" value="01-01-2000">
  275.  
  276. </div>
  277. </div>
  278.  
  279. <div id="uploadfoto7" style="display:show" class="form-group">
  280. <label class="col-lg-2 control-label text-semibold">Upload SK</label>
  281. <div class="col-lg-10">
  282. <input type="file" class="form-control" id="required_9" name="File_SK" onchange="getImg(this,2000,'image/png|image/jpg|image/jpeg')">
  283. </div>
  284. </div>
  285. <legend id="textuploadfoto" style="display:show" class="text-bold">Upload 5 Foto kegiatan dengan background 15 Siswa</legend>
  286. <div id="uploadfoto1" style="display:show" class="form-group">
  287. <label class="col-lg-2 control-label text-semibold">Upload Foto 1:</label>
  288. <div class="col-lg-10">
  289. <input type="file" class="form-control" id="required_1" name="Gambar1" onchange="getImg(this,2000,'image/png|image/jpg|image/jpeg')">
  290. </div>
  291. </div>
  292. <div id="uploadfoto2" style="display:show" class="form-group">
  293. <label class="col-lg-2 control-label text-semibold">Upload Foto 2:</label>
  294. <div class="col-lg-10">
  295. <input type="file" class="form-control" id="required_2" name="Gambar2" onchange="getImg(this,2000,'image/png|image/jpg|image/jpeg')">
  296. </div>
  297. </div>
  298. <div id="uploadfoto3" style="display:show" class="form-group">
  299. <label class="col-lg-2 control-label text-semibold">Upload Foto 3:</label>
  300. <div class="col-lg-10">
  301. <input type="file" class="form-control" id="required_3" name="Gambar3" onchange="getImg(this,2000,'image/png|image/jpg|image/jpeg')">
  302. </div>
  303. </div>
  304. <div id="uploadfoto4" style="display:show" class="form-group">
  305. <label class="col-lg-2 control-label text-semibold">Upload Foto 4:</label>
  306. <div class="col-lg-10">
  307. <input type="file" class="form-control" id="required_4" name="Gambar4" onchange="getImg(this,2000,'image/png|image/jpg|image/jpeg')">
  308. </div>
  309. </div>
  310. <div id="uploadfoto5" style="display:show" class="form-group">
  311. <label class="col-lg-2 control-label text-semibold">Upload Foto 5:</label>
  312. <div class="col-lg-10">
  313. <input type="file" class="form-control" id="required_5" name="Gambar5" onchange="getImg(this,2000,'image/png|image/jpg|image/jpeg')">
  314. </div>
  315. </div>
  316. <div id="nomorsk2" style="display:none" class="form-group">
  317. <label class="control-label col-lg-2">Nomor SK</label>
  318. <div class="col-lg-10">
  319. <input type="text" maxlength="50" id="required_6" class="form-control" placeholder="Isi Nomor SK Pengajuan" name="Nomor_SK">
  320. </div>
  321. </div>
  322.  
  323. <div id="tanggalsk2" style="display:none" class="form-group">
  324. <label class="control-label col-lg-2">Tanggal SK</label>
  325. <div class="col-lg-10">
  326. <input onkeydown="return false;" name="Tanggal_SK2" type="text" id="tanggal2" placeholder="Tanggal SK" class="form-control" value="01-01-2000">
  327.  
  328. </div>
  329. </div>
  330.  
  331.  
  332. <div id="uploadfoto8" style="display:none" class="form-group">
  333. <label class="col-lg-2 control-label text-semibold">Upload Scan SK:</label>
  334. <div class="col-lg-10">
  335. <input type="file" class="form-control" id="required_10" name="File_SK2" onchange="getImg(this,2000,'image/png|image/jpg|image/jpeg')">
  336. </div>
  337. </div>
  338.  
  339. <div id="uploadfoto6" style="display:none" class="form-group">
  340. <label class="col-lg-2 control-label text-semibold">Upload Foto Dokumentasi:</label>
  341. <div class="col-lg-10">
  342. <input type="file" class="form-control" id="required_7" name="Gambar6" onchange="getImg(this,2000,'image/png|image/jpg|image/jpeg')">
  343. </div>
  344. </div>
  345.  
  346.  
  347.  
  348.  
  349.  
  350. <div class="text-left">
  351. <span> * Pastikan semua data yang Pengajuan masukan diatas adalah benar adanya, jika sudah dicek silahkan tekan tombol ajukan dibawah ini</span>
  352.  
  353. </div>
  354.  
  355.  
  356. <div class="text-right">
  357. <button type="submit" class="btn btn-success btn-sm" name="simpan" id="sweet_success">Ajukan <i class="icon-play3 position-right"></i></button>
  358. </div>
  359. </form>
  360. <center><div id="loading"></div></center><br>
  361. <div id="result"></div>
  362. </div>
  363. </div>
  364.  
  365.  
  366.  
  367.  
  368. <script>
  369. // just for the demos, avoids form submit
  370. jQuery.validator.setDefaults({
  371. debug: false,
  372. success: "valid"
  373. });
  374. $( "#myform" ).validate({
  375. rules: {
  376. Ktp: {
  377. required: true,
  378. accept: "image/*"
  379. },
  380. Pasfoto: {
  381. required: true,
  382. accept: "image/*"
  383. },
  384. Gambar1: {
  385. required: true,
  386. accept: "image/*"
  387. },
  388. Gambar2: {
  389. required: true,
  390. accept: "image/*"
  391. },
  392. Gambar3: {
  393. required: true,
  394. accept: "image/*"
  395. },
  396. Gambar4: {
  397. required: true,
  398. accept: "image/*"
  399. },
  400. Gambar5: {
  401. required: true,
  402. accept: "image/*"
  403. },
  404. Gambar6: {
  405. accept: "image/*"
  406. },
  407. File_SK: {
  408. required: true,
  409. accept: "image/*"
  410. },
  411. File_SK2: {
  412. accept: "image/*"
  413. },
  414. Nomor_SK_Guru: {
  415. required: true
  416. },
  417. Tanggal_SK: {
  418. required: true
  419. },
  420. Nama: {
  421. required: true
  422. }
  423.  
  424.  
  425. }
  426.  
  427.  
  428. });
  429. </script>
  430. <script>
  431. function getImg(input,max,accepted){
  432. var upImg=new Image(),test,size,msg=input.form;
  433. msg=msg.elements[0].children[0];
  434.  
  435. return input.files?validate():
  436. (upImg.src=input.value,upImg.onerror=upImg.onload=validate);
  437. "author: b.b. Troy III p.a.e";
  438. function validate(){
  439. test=(input.files?input.files[0]:upImg);
  440. size=(test.size||test.fileSize)/1024;
  441. mime=(test.type||test.mimeType);
  442. mime.match(RegExp(accepted,'i'))?
  443. size>max?($('#Pasfoto,#Ktp').val(''),alert("Maximal Gambar 2 MB !!")):
  444. "Upload ready...":
  445. (input.form.reset(),alert("Hanya tipe file "+accepted+" yang diperbolehkan"))
  446. }
  447. }
  448. </script>
  449.  
  450.  
  451.  
  452.  
  453. <script type="text/javascript">
  454. $(document).ready(function(){
  455. $('[id^=Nik]').keypress(validateNumber);
  456. $('[id^=telp]').keypress(validateNumber);
  457. $('[id^=rekening]').keypress(validateNumber);
  458. $('[id^=siswa]').keypress(validateNumber);
  459.  
  460.  
  461. });
  462.  
  463. function validateNumber(event) {
  464. var key = window.event ? event.keyCode : event.which;
  465. if (event.keyCode === 8 || event.keyCode === 46) {
  466. return true;
  467. } else if ( key < 48 || key > 57 ) {
  468. return false;
  469. } else {
  470. return true;
  471. }
  472. };
  473. </script>
  474.  
  475. <script type="text/javascript">
  476. $(document).ready(function() { ;
  477. $("#kecamatan").html('');
  478. $("#kelurahan").html('');
  479. $("#kecamatan").append('<option value="">Pilih</option>');
  480. $("#kelurahan").append('<option value="">Pilih</option>');
  481. url = 'get_kecamatan.php';
  482. $.ajax({ url: url,
  483. type: 'GET',
  484. dataType: 'json',
  485. success: function(result) {
  486. for (var i = 0; i < result.length; i++)
  487. $("#kecamatan").append('<option value="' + result[i].id_kec + '">' + result[i].nama + '</option>');
  488. }
  489. });
  490. });
  491. $("#kecamatan").change(function(){
  492. var id_kec = $("#kecamatan").val();
  493. var url = 'get_kelurahan.php?id_kec=' + id_kec;
  494. $("#kelurahan").html(''); $("#kelurahan").append('<option value="">Pilih</option>');
  495. $.ajax({ url : url,
  496. type: 'GET',
  497. dataType : 'json',
  498. success : function(result){
  499. for(var i = 0; i < result.length; i++)
  500. $("#kelurahan").append('<option value="'+ result[i].id_kel +'">' + result[i].nama + '</option>');
  501. }
  502. });
  503. });
  504.  
  505.  
  506. </script>
  507. <script type="text/javascript">
  508. $(function(){
  509. $(":radio.rad").click(function(){
  510. $("#form1, #form2").hide()
  511. if($(this).val() == "6"){
  512. $("#tanggalsk, #textuploadfoto, #uploadfoto1, #uploadfoto2, #uploadfoto3, #uploadfoto4, #uploadfoto5, #uploadfoto7, #nomorsk1 ,#textuploadsk").hide();
  513. $("#required_1, #tanggal, #required_2, #required_3, #required_4, #required_5, #required_8, #required_9").prop("required", false);
  514. $("#required_6, #tanggal2, #required_7, #required_10").prop("required", true);
  515. $("#tanggalsk2, #nomorsk2, #uploadfoto6, #uploadfoto8").show();
  516. }else{
  517.  
  518. $("#tanggalsk, #textuploadfoto, #uploadfoto1, #uploadfoto2, #uploadfoto3, #uploadfoto4, #uploadfoto5, #uploadfoto7, #nomorsk1 ,#textuploadsk").show();
  519. $("#required_6, #tanggal2, #required_7, #required_10").prop("required", false);
  520. $("#required_1, #tanggal, #required_2, #required_3, #required_4, #required_5, #required_8, #required_9").prop("required", true);
  521. $("#tanggalsk2, #nomorsk2, #uploadfoto6, #uploadfoto8").hide();
  522. }
  523. });
  524. });
  525. </script>
  526.  
  527.  
  528.  
  529. <script type="text/javascript">
  530. $(document).ready(function(){
  531.  
  532. $("#myform").submit(function(e)
  533. {
  534.  
  535.  
  536. var formObj = $(this);
  537. var formURL = formObj.attr("action");
  538. var formData = new FormData(this);
  539.  
  540. $.ajax({
  541. url: formURL,
  542. type: 'POST',
  543. data: formData,
  544. contentType: false,
  545. cache: false,
  546. processData:false,
  547. beforeSend: function (){
  548.  
  549. $("#loading").show(1000).html("<img src='load.gif' height='50'>");
  550. $('#sweet_success').attr('disabled', 'disabled'); //id buttonnya sweet_success
  551.  
  552.  
  553. },
  554. success: function(data, textStatus, jqXHR){
  555.  
  556. $("#result").html(data);
  557. $("#loading").hide();
  558. },
  559. error: function(jqXHR, textStatus, errorThrown){
  560. }
  561. });
  562. e.preventDefault(); //Prevent Default action.
  563. e.unbind();
  564. });
  565.  
  566. });
  567. </script>
  568.  
  569.  
  570.  
  571.  
  572. <?php }
  573.  
  574. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement