Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - Admin
- [DISPLAY]
- <div class="form-group">
- <label for="text1" class="control-label col-lg-2">Batas Upload Dokumen </label>
- <div class="col-lg-10">
- <div class="control-group">
- <div class="controls">
- <div class="input-prepend input-group">
- <span class="add-on input-group-addon"><i class="glyphicon glyphicon-calendar fa fa-calendar"></i></span><input type="text" style="width: 200px" name="reservation" id="reservation" class="form-control" value="<?=$value?>" />
- </div>
- </div>
- </div>
- </fieldset>
- </div>
- </div>
- =======================================================================================================================================
- [INPUT]
- if (trim($reservation)=="") {
- echo "<script>alert('Tanggal harus di isi');</script>";
- echo "<meta http-equiv='refresh' content='0;url=?page=vwconfig'>";
- exit;
- }
- else{
- /* versi PDO */
- try{
- if(!empty($id)){
- $sql = $conn->prepare("UPDATE data_config SET value = '$reservation'
- WHERE id = :id ");
- $sql->bindParam(":id", $_POST['id']);
- $sql->execute();
- echo "<script>alert('Data Config telah di simpan.');</script>";
- echo "<meta http-equiv='refresh' content='0;url=?page=vwconfig'>";
- }else{
- $sql = $conn->prepare("INSERT INTO data_config ( code,label,value,group_data)
- VALUES('reservation','reservation', '$reservation','dokumen')");
- $sql->execute();
- =======================================================================================================================================
- Siswa
- [DISPLAY PEMBERITAHUAN TANGGAL]
- <div class="alert alert-<?=$alertInfo?>">
- Tanggal Pengisian Upload Dokumen<br>
- <strong><?=$dataconfig['value']?></strong>
- </div>
- =======================================================================================================================================
- [DISPLAY HIDE/UNHIDE BUTTON]
- <?php
- $sql1 = $conn->prepare("SELECT * FROM dok_kk, psb
- WHERE dok_kk.no_reg = psb.no_reg
- AND dok_kk.no_reg = :noreg ");
- $sql1->bindParam(":noreg", $_SESSION['noreg']);
- $sql1->execute();
- $r1 = $sql1->fetch();
- if ($r1['pic_dok_kk']!=''){
- echo "<p align = center><img class='img-responsive' src='../cfg/dist/img_kk/$r1[pic_dok_kk]' oncontextmenu='return false;'></p>";
- } else {
- echo "<p align = center><img class='img-responsive' src='../cfg/dist/img_kk/image_not_available.jpg' oncontextmenu='return false;'></p>";
- }
- if($buttonUpload==true){
- if ($r1['pic_dok_kk'] != ''){
- ?>
- <center><button type="button" class="btn btn-success" name="submit" onclick="window.location='?page=edkk&tid=<?php echo $r1['id_dok_kk']; ?>' ">Ubah Kartu Keluarga</button></center>
- <?php } else { ?>
- <center><button type="button" class="btn btn-primary" onclick="window.location='?page=adkk'">Unggah Kartu Keluarga</button></center>
- <?php }
- }
- ?>
- =======================================================================================================================================
- *NOTE :
- MASUKKAN KE SETIAP BUTTON YANG AKAN DI HIDE/UNHIDE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement