Apa yang salah?

Oleh BpsTI 1 0 pada Sabtu, 30 Nov. 2019, 10:52:05


Kembali ke forum umum


Petunjuk Diskusi
Silahkan masuk untuk berdiskusi



<?php
include('config/main.php');
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>Selamat Datang - Admin</title>

		<meta name="description" content="overview &amp; stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="assets/font-awesome/4.5.0/css/font-awesome.min.css" />

		<!-- page specific plugin styles -->

		<!-- text fonts -->
		<link rel="stylesheet" href="assets/css/fonts.googleapis.com.css" />

		<!-- ace styles -->
		<link rel="stylesheet" href="assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
		<link rel="stylesheet" href="assets/css/ace-skins.min.css" />
		<link rel="stylesheet" href="assets/css/ace-rtl.min.css" />
		<link href="assets/images/santri.ico" rel="shotcut icon">

		<!-- ace settings handler -->
		<script src="assets/js/ace-extra.min.js"></script>
	</head>

	<body class="no-skin">
		<div id="navbar" class="navbar navbar-default          ace-save-state">
			<div class="navbar-container ace-save-state" id="navbar-container">
				<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
					<span class="sr-only">Toggle sidebar</span>

					<span class="icon-bar"></span>

					<span class="icon-bar"></span>

					<span class="icon-bar"></span>
				</button>

				<div class="navbar-header pull-left">
					<a href="index.html" class="navbar-brand">
						<small>
							<i class="fa fa-leaf"></i>
							Tahfidz Hadits
						</small>
					</a>
				</div>

					<div class="navbar-buttons navbar-header pull-right" role="dropdown-modal">
					<ul class="nav ace-nav">
						<li class="light-blue dropdown-modal">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<img class="nav-user-photo" src="assets/images/avatars/user.jpg" alt="Jason's Photo" />
								<span class="user-info">
									<small>Welcome</small>
									<p><?php echo $_SESSION['level']; ?></p>
								</span>

								<i class="ace-icon fa fa-caret-down"></i>
							</a>

							<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li class="dropdown-close"></li>

								<li>
									<a href="logout.php">
										<i class="ace-icon fa fa-power-off"></i>
										Logout
									</a>
								</li>
							</ul>
						</li>
					</ul>
				</div>
			</div><!-- /.navbar-container -->
		</div>

		<div class="main-container ace-save-state" id="main-container">
			<script type="text/javascript">
				try{ace.settings.loadState('main-container')}catch(e){}
			</script>

			<div id="sidebar" class="sidebar                  responsive                    ace-save-state">
				<script type="text/javascript">
					try{ace.settings.loadState('sidebar')}catch(e){}
				</script>

				<div class="sidebar-shortcuts" id="sidebar-shortcuts">
					<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
						<button class="btn btn-success">
							<i class="ace-icon fa fa-signal"></i>
						</button>

						<button class="btn btn-info">
							<i class="ace-icon fa fa-pencil"></i>
						</button>

						<button class="btn btn-warning">
							<i class="ace-icon fa fa-users"></i>
						</button>

						<button class="btn btn-danger">
							<i class="ace-icon fa fa-cogs"></i>
						</button>
					</div>

					<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
						<span class="btn btn-success"></span>

						<span class="btn btn-info"></span>

						<span class="btn btn-warning"></span>

						<span class="btn btn-danger"></span>
					</div>
				</div><!-- /.sidebar-shortcuts -->

				<ul class="nav nav-list">
					<li class="active<?php if(!isset($_GET['page'])) { echo "active"; } ?>">
						<a href="index.php">
							<i class="menu-icon fa fa-home"></i>
							<span class="menu-text"> Beranda </span>
						</a>

						<b class="arrow"></b>
					</li>
					<li class="">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-list"></i>
							<span class="menu-text"> Data Utama </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="">
								<a href="dbwarga.php">
									<i class="menu-icon fa fa-caret-right"></i>
									Warga Hadits
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="">
								<a href="dbpembina.php">
									<i class="menu-icon fa fa-caret-right"></i>
									Pembina Hadits
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="">
								<a href="dbpengurus.php">
									<i class="menu-icon fa fa-caret-right"></i>
									Pengurus Hadits
								</a>

								<b class="arrow"></b>
							</li>
						</ul>
					</li>

					<li class="">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-pencil-square-o"></i>
							<span class="menu-text"> Form Utama </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="">
								<a href="form-warga.php">
									<i class="menu-icon fa fa-caret-right"></i>
									Form Warga Hadits
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="">
								<a href="form-pembina.php">
									<i class="menu-icon fa fa-caret-right"></i>
									Form Pembina Hadits
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="">
								<a href="form-pengurus.php">
									<i class="menu-icon fa fa-caret-right"></i>
									Form Pengurus Hadits
								</a>

								<b class="arrow"></b>
							</li>

						</ul>
					</li>

						<b class="arrow"></b>
					</li>

					<li class="">
						<a href="gallery.html">
							<i class="menu-icon fa fa-picture-o"></i>
							<span class="menu-text"> Gallery </span>
						</a>

						<b class="arrow"></b>
					</li>
					</li>
				</ul><!-- /.nav-list -->

				<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
					<i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
				</div>
			</div>

			<div class="main-content">
				<div class="main-content-inner">
					<div class="breadcrumbs ace-save-state" id="breadcrumbs">
						<ul class="breadcrumb">
							<li>
								<i class="ace-icon fa fa-home home-icon"></i>
								<a href="#">Home</a>
							</li>

							<li>
								<a href="#">Forms</a>
							</li>
							<li class="active">Form Warga Hadits</li>
						</ul><!-- /.breadcrumb -->

						<div class="nav-search" id="nav-search">
							<form class="form-search">
								<span class="input-icon">
									<input type="text" name='idsantri' placeholder="ID Santri ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
									<i class="ace-icon fa fa-search nav-search-icon"></i>
								</span>
							</form>
						</div><!-- /.nav-search -->
					</div>

					<div class="page-content">
						<div class="page-header">
							<center><h1>
								Form Pendaftaran Warga Hadits
							</h1></center>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<?php
								$idpps=$_GET['idpps'];
								 $query=mysql_query("SELECT* FROM warga where idpps='$idpps'");
								  while($hasil=mysql_fetch_array($query)){
								?>
							
								<form action="crud.php" name="formidentitas" class="form-horizontal"  method="post">
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> ID PPS </label>
											<input type="hidden" id="idsantri" name="form-warga.php?"/>
										<div class="col-sm-9">
											<input type="text" id="idpps" name="idpps" placeholder="ID PPS" class="col-xs-10 col-sm-5"/>
										</div>
									</div>
				
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Nama </label>

										<div class="col-sm-9">
											<input type="text" id="nama" name="nama" value="<?= $hasil['nama'];?>" placeholder="Nama" class="col-xs-10 col-sm-5" />
										</div>
									</div>

									<div class="space-4"></div>

										<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Domisili </label>

										<div class="col-sm-9">
											<input type="text" id="domisili" name="domisili" placeholder="Domisili" class="col-xs-10 col-sm-5" />
										</div>
									</div>

									<div class="space-4"></div>
										<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Kelas </label>

										<div class="col-sm-9">
											<input type="text" id="kelas" name="kelas" placeholder="Kelas" class="col-xs-10 col-sm-5" />
										</div>
									</div>
									<div class="space-4"></div>

									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Tingkatan </label>
										<div class="radio" >
													<label>
														<input name="tingkatan" value="I'dadiyah" type="radio" class="ace input-lg" />
														<span class="lbl"> I'dadiyah</span>
													</label>
													
													<label>
														<input name="tingkatan" value="Ibtidaiyah" type="radio" class="ace input-lg" />
														<span class="lbl"> Ibtidaiyah</span>
													</label>
													
													<label>
														<input name="tingkatan" value="Tsanawiyah" type="radio" class="ace input-lg" />
														<span class="lbl"> Tsanawiyah</span>
													</label>
													
													<label>
														<input name="tingkatan" value="Aliyah" type="radio" class="ace input-lg" />
														<span class="lbl"> Aliyah</span>
													</label>
									</div>
									
									</div>

						<div class="space-4"></div>
							<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" > Kategori </label>
							<div class="checkbox">
							
							<label>
							<input  name="kategori" value="0" type="checkbox"  class="ace input-lg" />
								<span class="lbl bigger-120"> 0</span>
								</label>
							
							<label>
							<input  name="kategori" value="20" type="checkbox"  class="ace input-lg" />
								<span class="lbl bigger-120"> 20</span>
								</label>
													
							<label>
							<input  name="kategori" value="40" type="checkbox"  class="ace input-lg" />
						<span class="lbl bigger-120"> 40</span>
					</label>

						<label>
							<input  name="kategori" value="50" type="checkbox"  class="ace input-lg" />
							<span class="lbl bigger-120"> 50</span>
						</label>
													
						<label>
						<input  name="kategori" value="100" type="checkbox"  class="ace input-lg" />
						<span class="lbl bigger-120"> 100</span>
						</label>
									</div>
					
								<div class="space-4"></div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right" for="form-field-select-1">Pembina </label>
									<div class="col-md-5 col-sm-2 col-xs-9">
									<select name="pembina" class="form-control" id="form-field-select-1">
							<<?php
							  $query=mysql_query("SELECT * FROM pembina ORDER BY NO ASC");
							  while($hasil=mysql_fetch_array($query)){
							  ?>
							<option value="<?= $hasil['idpembina'];?>" ><?= $hasil['nama'];?></option>
						
							  <?php 
							  }
							  ?>
							 
							 </select>
									</div>
									</div>
									
						<div class="space-4"></div>
						<div class="form-group">
					<label class="col-sm-3 control-label no-padding-right" > Majlis </label>
					<div class="col-md-3 col-sm-3 col-xs-9">
						<select name="majlis" class="form-control" for="form-field-select-2" multiple="multiple">
                           <?php
							  $query=mysql_query("SELECT * FROM majlis ORDER BY NO ASC");
							  while($hasil=mysql_fetch_array($query)){
							  ?>
							<option value="<?= $hasil['idmajlis'];?>" ><?= $hasil['majlis'];?></option>
						
							  <?php 
							  }
							  ?>
							  </select>
					</div>
				  </div>
				<!--<div class="space-4"></div>
								<div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" > Foto </label>
                        <div class="col-md-3 col-sm-3 col-xs-9">
                          <input type="file" name="fileToUpload" id="fileToUpload" >
                        </div>
                      </div>
					  -->
									<div class="clearfix form-actions">
										<div class="col-md-offset-3 col-md-9">
											<button class="btn btn-info" type="button" name="simpan" value="simpan">
												<i class="ace-icon fa fa-check bigger-110"></i>
												Submit
											</button>

											&nbsp; &nbsp; &nbsp;
											<button class="btn" type="reset" value="reset">
												<i class="ace-icon fa fa-undo bigger-110"></i>
												Reset
											</button>
										</div>
									</div>
								  <?php } ?>
								</form>
				</div>
			</div><!-- /.main-content -->

			<div class="footer">
				<div class="footer-inner">
					<div class="footer-content">
						<span class="bigger-120">
							<span class="blue bolder">Tahfidz</span>
							Hadits &copy; 1440H-1441H
						</span>

						&nbsp; &nbsp;
						<span class="action-buttons">
							<a href="#">
								<i class="ace-icon fa fa-twitter-square light-blue bigger-150"></i>
							</a>

							<a href="#">
								<i class="ace-icon fa fa-facebook-square text-primary bigger-150"></i>
							</a>

							<a href="#">
								<i class="ace-icon fa fa-rss-square orange bigger-150"></i>
							</a>
						</span>
					</div>
				</div>
			</div>

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->

		<!-- basic scripts -->

		<!--[if !IE]> -->
		<script src="assets/js/jquery-2.1.4.min.js"></script>

		<!-- <![endif]-->

		<!--[if IE]>
<script src="assets/js/jquery-1.11.3.min.js"></script>
<![endif]-->
		<script type="text/javascript">
			if('ontouchstart' in document.documentElement) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="assets/js/bootstrap.min.js"></script>

		<!-- page specific plugin scripts -->

		<!--[if lte IE 8]>
		  <script src="assets/js/excanvas.min.js"></script>
		<![endif]-->
		<script src="assets/js/jquery-ui.custom.min.js"></script>
		<script src="assets/js/jquery.ui.touch-punch.min.js"></script>
		<script src="assets/js/chosen.jquery.min.js"></script>
		<script src="assets/js/spinbox.min.js"></script>
		<script src="assets/js/bootstrap-datepicker.min.js"></script>
		<script src="assets/js/bootstrap-timepicker.min.js"></script>
		<script src="assets/js/moment.min.js"></script>
		<script src="assets/js/daterangepicker.min.js"></script>
		<script src="assets/js/bootstrap-datetimepicker.min.js"></script>
		<script src="assets/js/bootstrap-colorpicker.min.js"></script>
		<script src="assets/js/jquery.knob.min.js"></script>
		<script src="assets/js/autosize.min.js"></script>
		<script src="assets/js/jquery.inputlimiter.min.js"></script>
		<script src="assets/js/jquery.maskedinput.min.js"></script>
		<script src="assets/js/bootstrap-tag.min.js"></script>

		<!-- ace scripts -->
		<script src="assets/js/ace-elements.min.js"></script>
		<script src="assets/js/ace.min.js"></script>

<?php
      $del = @$_GET['act'];
      if (isset($del)) {
        
        $hapus = mysqli_query($link, "DELETE FROM users WHERE id = '$del'");
        if ($hapus) {
          echo '<script>
                  setTimeout(function() {
                  swal({
                  title: "Sip!",
                  text: "User berhasil dihapus!",
                  type: "success"
                  }, function() {
                  window.location = "register.php?users";
                  });
                  }, 50);
                </script>';
        };
      }
    ?>

	</body>
</html>
0 jempol


Belum ada tanggapan