<?php
session_start();
include 'admin/koneksi/koneksi.php';
include 'include/app.php';

$skr = date('Y-m-d');
?>
<!Doctype html>
<html lang="en-US">
	<head>
		<!-- ==============================================
		Title and basic Metas
		=============================================== -->
        <meta charset="utf-8">
        <title><?= $app['nama_aplikasi'];?> - <?= $app['nama_perusahaan'];?></title>
		<meta name="description" content="Survey Kepuasan Pelanggan">
		<meta name="author" content="GendhiSoftware">
		
		<!-- ==============================================
		Mobile Metas
		=============================================== -->
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
		
		<!-- ==============================================
		Fonts and CSS
		=============================================== -->
		<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css">
		<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
        <link href="css/style.css" rel="stylesheet" type="text/css">
		<style>
		.time{
			height:60px;
			font-size: 30px;
			line-height: 1;
			background:<?php echo $app['jam'];?>;
			color:#fff;
			padding-top: 0;
			position:fixed;
			bottom:0px;
			width:10%; 
		}
		.footer{
			height:60px;
			line-height:0px;
			background:<?php echo $app['footer'];?>;
			color:#fff;
			margin-left:10%;
			position:fixed;
			bottom:0px;
			width:90%; 
		}
		.socialize {
			background: <?php echo $app['header'];?>;
			padding: 3px 0 1px 0;
			position:relative ;
			margin: 0 0.5% 0.5% 0.5%;
		width:100%;
		}
		body {
			font-size: 15px;
			font-family: 'Open Sans', sans-serif;
			background: url(admin/images/<?= $app['background'];?>)  no-repeat  ;
			-webkit-background-size: cover;
			-moz-background-size: cover;
			-o-background-size: cover;
			background-size: 100% 100%;
				position:fixed;

		}
		@keyframes marquee {
		  from {
			transform: translateX(0);
		  }
		  to {
			transform: translateX(-75%);
		  }
		}

		@keyframes marquee-r {
		  from {
			transform: translateX(-75%);
		  }
		  to {
			transform: translateX(0);
		  }
		}

		.marquee {
		  position: relative;
		  width: 100vw;
		  max-width: 100%;
		  height: 10em;
		  overflow: hidden;
		}

		@media screen and (max-width: 768px) {
		  .marquee {
			height: 6em;
		  }
		}

		.track {
		  position: absolute;
		  white-space: nowrap;
		  will-change: transform;
		  animation: marquee 40s linear infinite;
		}

		
		@media screen and (max-width: 768px) {
		  .marquee-text {
			font-size: 6em;
		  }
		}
		</style>
		<!-- ==============================================
		JS
		=============================================== -->
		<script src="js/jquery-1.10.2.min.js"></script>
        <script src="js/modernizr.custom.97074.js"></script>
		
		<!--[if lt IE 9]>
			<script src="js/selectivizr.js"></script>
            <script src="js/respond.min.js"></script>
        <![endif]-->

        <!-- ==============================================
		Favicons
		=============================================== -->
       
        <link rel="shortcut icon" href="admin/images/<?= $app['logo'];?>">
		
    </head>
    <body>
		<div class="wrapper">
			<section class="section home">
				<div class="row">
					<div class="socialize">
						<h2 class="h2" style="color:<?= $app['text_header'];?>"><img src="admin/images/<?= $app['logo'];?>" width="6%" alt="Image">  <?= $app['nama_perusahaan'];?></h2>
					</div>
				</div>
				<div class="center-box">
					<br/>
					<div class="container">
							<?php if($app['kategori']==1){ ?>
							
															<table width="100%">
																<tr>
																<?php
																$sql_p = mysql_query("SELECT * from jenis_kelamin");
																while($d_p = mysql_fetch_array($sql_p)){
																?>
																<form method="GET">
																	<td width="10%"><input type="radio" onchange="submit();" name="jenis_kelamin" value="<?= $d_p['kd_jenis'];?>" class="form-control" <?php if(isset($_GET['jenis_kelamin']) && $_GET['jenis_kelamin']==$d_p['kd_jenis']){ echo 'checked';}?>/></td>
																	<td><h2><?= $d_p['jenis_kelamin'];?></h2></td>
																</form>
																	<?php ;} ?>
																</tr>
															</table>
							<br/>
							<?php ;} ?>
						<h3 class="h3" style="color:<?= $app['text_isi'];?>"><?php $pertanyaan = mysql_fetch_array(mysql_query("SELECT * from pertanyaan where status=1 ORDER by id DESC")); echo $pertanyaan['pertanyaan'];?></h3>
							<br/>									
						<div class="row">
						<div class="tile tile-item tile-client">
							<a class="ascensorLink tile-nav" data-toggle="modal" role="button" href="#portfolio-1" >
								<h5 class="h5">Sangat Puas</h5>
								<i class="fa fa-thumbs-o-up fa-5x"></i>
							</a>
						</div>
						
						<div class="tile tile-item tile-team">
							<a class="ascensorLink tile-nav" data-toggle="modal" role="button" href="#portfolio-2" >
								<h5 class="h5">Puas</h5>
								<i class="fa fa-smile-o fa-5x"></i>
							</a>
						</div>
						<div class="tile tile-item tile-about">
							<a class="ascensorLink  tile-nav" data-toggle="modal" role="button" href="#portfolio-3">
								<h5 class="h5">Cukup</h5>
								<i class="fa fa-meh-o fa-5x"></i>
							</a>
						</div>
						<div class="tile tile-item tile-service">
							<a class="ascensorLink  tile-nav" data-toggle="modal" role="button" href="#portfolio-4">
								<h5 class="h5">Tidak Puas</h5>
								<i class="fa fa-frown-o fa-5x"></i>
							</a>
						</div>
						<div class="clearfix"><br/></div>
						<div class="clearfix"></div>
						
						<h1 align="center" style="color:<?= $app['text_isi'];?>"><?php $tanggal = date('d M Y');
								$day = date('D', strtotime($tanggal));
								$dayList = array(
									'Sun' => 'Minggu',
									'Mon' => 'Senin',
									'Tue' => 'Selasa',
									'Wed' => 'Rabu',
									'Thu' => 'Kamis',
									'Fri' => 'Jumat',
									'Sat' => 'Sabtu'
								);
						echo $dayList[$day].", ".$tanggal;
						$profil = mysql_fetch_array(mysql_query("SELECT * from user"));
						?></h1>
						<h3 align="center" style="color:<?= $app['text_isi'];?>">KRITIK DAN SARAN : WA : <?= $profil['hp'];?> EMAIL : <?= $profil['email'];?></h3>
						<script type="text/javascript">
							var detik = <?php echo date('s'); ?>;
							var menit = <?php echo date('i'); ?>;
							var jam   = <?php echo date('H'); ?>;
						 
							function clock()
							{
							if (detik!=0 && detik%60==0) {
								menit++;
								detik=0;
							}
							second = detik;
							 
							if (menit!=0 && menit%60==0) {
								jam++;
								menit=0;
							}
							minute = menit;
							 
							if (jam!=0 && jam%24==0) {
								jam=0;
							}
							hour = jam;
							 
							if (detik<10){
								second='0'+detik;
							}
							if (menit<10){
								minute='0'+menit;
							}
							 
							if (jam<10){
								hour='0'+jam;
							}
							waktu = hour+':'+minute+':'+second;
							 
							document.getElementById("clock").innerHTML = waktu;
							detik++;
						}
					 
						setInterval(clock,1000);
						</script>
				</div>
			</div>
		</div>
			</section> <!-- /home -->
			<div class="time">
				<h3><div align="center" id="clock"></div></h3>
						
				
			</div>
			<div class="footer">
			<div class="marquee">
			  <div class="track">
				<div class="marquee-text">
					<table width="100%">
						<tr>
						<?php $s_feed=mysql_query("SELECT * FROM feed where status='1' ");
							while ($d_feed = mysql_fetch_array($s_feed)){
						?>
						
						<td>  <h3 style="color:<?= $app['text_footer'];?>"><?= $d_feed['tanggal'];?><h3>  </td><td width="10%"><h3 style="color:<?= $app['footer'];?>">--<h3></td><td> <h3 style="color:<?= $app['text_footer'];?>"> <?= $d_feed['feed'];?><h3></td><td width="10%"><h3 style="color:<?= $app['footer'];?>">---------<h3></td>
						<?php
							;}
						?>
						</tr>
					</table>
				</div>
			  </div>
			</div>
			</div>
		</div> <!-- /wrapper -->
		<?php if (isset($_GET['jenis_kelamin'])){ ?>
		<?php $jenis_kelamin = mysql_fetch_array(mysql_query("SELECT * from jenis_kelamin where kd_jenis='$_GET[jenis_kelamin]'")); ?>
		 <?php ;} ?>
		<!-- ==============================================
								MODAL
		=============================================== -->
		<!-- Sangat Puas -->
								<div class="modal fade" id="portfolio-1" tabindex="-1" role="dialog" aria-hidden="true">
									<div class="modal-dialog">
										<div class="contact-box">
										    <?php if($app['kategori']==1){ ?>
									  	    <?php if (!isset($_GET['jenis_kelamin'])){ ?>
									  	    <div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda Belum Memilih kategori</h3>
											</div>  
											<?php ;} ?> 
											<?php if (isset($_GET['jenis_kelamin'])){ ?>
											<div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda <?php if (isset($_GET['jenis_kelamin'])){ ?><?= $jenis_kelamin['jenis_kelamin'];?> <?php ;} ?> Memilih Sangat Puas ?</h3>
											</div>
											<div class="modal-body">
												<div class="container">
													<div class="row">
														<div class="col-sm-2">
														</div>
														<div class="col-sm-8">
														<div class="row">
															<?php if (isset($_GET['jenis_kelamin'])){ ?>
															<form method="POST" action="include/submit?jenis_kelamin=<?= $_GET['jenis_kelamin']?>">
															 <?php ;} else { ?>
															 <form method="POST" action="include/submit">
															 <?php ;}  ?>
															<table width="100%" border="0">
															<tr>
															<td align="center"><p align="center"><i class="fa fa-thumbs-o-up fa-5x"></i></p></td>
														
															</tr>
															<?php if($app['saran']==1){ ?>
															<tr>
																<td ><textarea name="saran" rows="5" class="form-control" placeholder="Saran/Komentar/Kesan terhadap pelayanan kami"></textarea></td>
															</tr>
															<?php ;} ?>
															</table>
															<br/>
															<input type="hidden" name="survey" value="SP"/>
															<input type="hidden" name="id_pertanyaan" value="<?= $pertanyaan['id'];?>"/>
															<p align="center"> <button type="submit" class="btn btn-lg btn-success " ><b><i class="fa fa-check"></i> Ya</b></button>
															
															 <button  data-dismiss="modal" aria-hidden="true" class="btn btn-lg btn-danger" ><b><i class="fa fa-times"></i> Tidak</b></button></p>
														</form>
														</div>
														</div>
														<div class="col-sm-2">
															
														</div>
													</div>
												</div>
											</div>
											<?php ;} ?>
									  	   
									  	     <?php ;}  else {?>
												<div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda <?php if (isset($_GET['jenis_kelamin'])){ ?><?= $jenis_kelamin['jenis_kelamin'];?> <?php ;} ?> Memilih Sangat Puas ?</h3>
											</div>
											<div class="modal-body">
												<div class="container">
													<div class="row">
														<div class="col-sm-2">
														</div>
														<div class="col-sm-8">
														<div class="row">
															<?php if (isset($_GET['jenis_kelamin'])){ ?>
															<form method="POST" action="include/submit?jenis_kelamin=<?= $_GET['jenis_kelamin']?>">
															 <?php ;} else { ?>
															 <form method="POST" action="include/submit">
															 <?php ;}  ?>
															<table width="100%" border="0">
															<tr>
															<td align="center"><p align="center"><i class="fa fa-thumbs-o-up fa-5x"></i></p></td>
														
															</tr>
															<?php if($app['saran']==1){ ?>
															<tr>
																<td ><textarea name="saran" rows="5" class="form-control" placeholder="Saran/Komentar/Kesan terhadap pelayanan kami"></textarea></td>
															</tr>
															<?php ;} ?>
															</table>
															<br/>
															<input type="hidden" name="survey" value="SP"/>
															<input type="hidden" name="id_pertanyaan" value="<?= $pertanyaan['id'];?>"/>
															<p align="center"> <button type="submit" class="btn btn-lg btn-success " ><b><i class="fa fa-check"></i> Ya</b></button>
															
															 <button  data-dismiss="modal" aria-hidden="true" class="btn btn-lg btn-danger" ><b><i class="fa fa-times"></i> Tidak</b></button></p>
														</form>
														</div>
														</div>
														<div class="col-sm-2">
															
														</div>
													</div>
												</div>
											</div>
													

													<?php ;} ?>
										</div>
									</div>
								</div>
		<!-- Puas -->
								<div class="modal fade" id="portfolio-2" tabindex="-1" role="dialog" aria-hidden="true">
									<div class="modal-dialog">
										<div class="contact-box">
									  	    <?php if($app['kategori']==1){ ?>
									  	    <?php if (!isset($_GET['jenis_kelamin'])){ ?>
									  	    <div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda Belum Memilih kategori</h3>
											</div>  

									  	    <?php ;} ?>
											  <?php if (isset($_GET['jenis_kelamin'])){ ?>
											<div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda <?php if (isset($_GET['jenis_kelamin'])){ ?><?= $jenis_kelamin['jenis_kelamin'];?> <?php ;} ?> Memilih Puas ?</h3>
											</div>
											<div class="modal-body">
												<div class="container">
													<div class="row">
													
														<div class="col-sm-2">
														</div>
														<div class="col-sm-8">
														<div class="row">	
														<?php if (isset($_GET['jenis_kelamin'])){ ?>
															<form method="POST" action="include/submit?jenis_kelamin=<?= $_GET['jenis_kelamin']?>">
															 <?php ;} else { ?>
															 <form method="POST" action="include/submit">
															 <?php ;}  ?>
															<table width="100%" border="0">
															<tr>
															<td align="center"><p align="center"><i class="fa fa-smile-o fa-5x"></i></p></td>
															
															</tr>
															<?php if($app['saran']==1){ ?>
															<tr>
																<td ><textarea name="saran" rows="5" class="form-control" placeholder="Saran/Komentar/Kesan terhadap pelayanan kami"></textarea></td>
															</tr>
															<?php ;} ?>
															</table>
															<br/>
															<input type="hidden" name="survey" value="P"/>
															<input type="hidden" name="id_pertanyaan" value="<?= $pertanyaan['id'];?>"/>
															<p align="center"> <button type="submit" class="btn btn-lg btn-success " ><b><i class="fa fa-check"></i> Ya</b></button>
															
															 <button  data-dismiss="modal" aria-hidden="true" class="btn btn-lg btn-danger" ><b><i class="fa fa-times"></i> Tidak</b></button></p>
														</form>
														</div>
														</div>
														<div class="col-sm-2">
															
														</div>
													</div>
												</div>
											</div>
											<?php ;} ?>
									  	     <?php ;} else { ?>
												<div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda <?php if (isset($_GET['jenis_kelamin'])){ ?><?= $jenis_kelamin['jenis_kelamin'];?> <?php ;} ?> Memilih Puas ?</h3>
											</div>
											<div class="modal-body">
												<div class="container">
													<div class="row">
													
														<div class="col-sm-2">
														</div>
														<div class="col-sm-8">
														<div class="row">	
														<?php if (isset($_GET['jenis_kelamin'])){ ?>
															<form method="POST" action="include/submit?jenis_kelamin=<?= $_GET['jenis_kelamin']?>">
															 <?php ;} else { ?>
															 <form method="POST" action="include/submit">
															 <?php ;}  ?>
															<table width="100%" border="0">
															<tr>
															<td align="center"><p align="center"><i class="fa fa-smile-o fa-5x"></i></p></td>
															
															</tr>
															<?php if($app['saran']==1){ ?>
															<tr>
																<td ><textarea name="saran" rows="5" class="form-control" placeholder="Saran/Komentar/Kesan terhadap pelayanan kami"></textarea></td>
															</tr>
															<?php ;} ?>
															</table>
															<br/>
															<input type="hidden" name="survey" value="P"/>
															<input type="hidden" name="id_pertanyaan" value="<?= $pertanyaan['id'];?>"/>
															<p align="center"> <button type="submit" class="btn btn-lg btn-success " ><b><i class="fa fa-check"></i> Ya</b></button>
															
															 <button  data-dismiss="modal" aria-hidden="true" class="btn btn-lg btn-danger" ><b><i class="fa fa-times"></i> Tidak</b></button></p>
														</form>
														</div>
														</div>
														<div class="col-sm-2">
															
														</div>
													</div>
												</div>
											</div>

												<?php ;} ?> 
										</div>
									</div>
								</div>
		<!-- Cukup -->
								<div class="modal fade" id="portfolio-3" tabindex="-1" role="dialog" aria-hidden="true">
									<div class="modal-dialog">
										<div class="contact-box">
									  	     <?php if($app['kategori']==1){ ?>
									  	     <?php if (!isset($_GET['jenis_kelamin'])){ ?>
									  	    <div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda Belum Memilih kategori</h3>
											</div>    
									  	   <?php ;} ?>
											 <?php if (isset($_GET['jenis_kelamin'])){ ?>
											<div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda <?php if (isset($_GET['jenis_kelamin'])){ ?><?= $jenis_kelamin['jenis_kelamin'];?> <?php ;} ?> Memilih Cukup ?</h3>
											</div>
											<div class="modal-body">
												<div class="container">
													<div class="row">
														<div class="col-sm-2">
														</div>
														<div class="col-sm-8">
														<div class="row">
															
															<?php if (isset($_GET['jenis_kelamin'])){ ?>
															<form method="POST" action="include/submit?jenis_kelamin=<?= $_GET['jenis_kelamin']?>">
															 <?php ;} else { ?>
															 <form method="POST" action="include/submit">
															 <?php ;}  ?>
															<table width="100%" border="0">
															<tr>
															<td align="center"><p align="center"><i class="fa fa-meh-o fa-5x"></i></p></td>
															
															</tr>
															<?php if($app['saran']==1){ ?>
															<tr>
																<td ><textarea name="saran" rows="5" class="form-control" placeholder="Saran/Komentar/Kesan terhadap pelayanan kami"></textarea></td>
															</tr>
															<?php ;} ?>
															</table>
															<br/>
															<input type="hidden" name="survey" value="C"/>
															<input type="hidden" name="id_pertanyaan" value="<?= $pertanyaan['id'];?>"/>
															<p align="center"> <button type="submit" class="btn btn-lg btn-success " ><b><i class="fa fa-check"></i> Ya</b></button>
															
															 <button  data-dismiss="modal" aria-hidden="true" class="btn btn-lg btn-danger" ><b><i class="fa fa-times"></i> Tidak</b></button></p>
														</form>
														</div>
														</div>
														<div class="col-sm-2">
															
														</div>
													</div>
												</div>
											</div>
											<?php ;} ?>
									  	     <?php ;} else { ?>
												<div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda <?php if (isset($_GET['jenis_kelamin'])){ ?><?= $jenis_kelamin['jenis_kelamin'];?> <?php ;} ?> Memilih Cukup ?</h3>
											</div>
											<div class="modal-body">
												<div class="container">
													<div class="row">
														<div class="col-sm-2">
														</div>
														<div class="col-sm-8">
														<div class="row">
															
															<?php if (isset($_GET['jenis_kelamin'])){ ?>
															<form method="POST" action="include/submit?jenis_kelamin=<?= $_GET['jenis_kelamin']?>">
															 <?php ;} else { ?>
															 <form method="POST" action="include/submit">
															 <?php ;}  ?>
															<table width="100%" border="0">
															<tr>
															<td align="center"><p align="center"><i class="fa fa-meh-o fa-5x"></i></p></td>
															
															</tr>
															<?php if($app['saran']==1){ ?>
															<tr>
																<td ><textarea name="saran" rows="5" class="form-control" placeholder="Saran/Komentar/Kesan terhadap pelayanan kami"></textarea></td>
															</tr>
															<?php ;} ?>
															</table>
															<br/>
															<input type="hidden" name="survey" value="C"/>
															<input type="hidden" name="id_pertanyaan" value="<?= $pertanyaan['id'];?>"/>
															<p align="center"> <button type="submit" class="btn btn-lg btn-success " ><b><i class="fa fa-check"></i> Ya</b></button>
															
															 <button  data-dismiss="modal" aria-hidden="true" class="btn btn-lg btn-danger" ><b><i class="fa fa-times"></i> Tidak</b></button></p>
														</form>
														</div>
														</div>
														<div class="col-sm-2">
															
														</div>
													</div>
												</div>
											</div>	
												<?php ;} ?>  
										</div>
									</div>
								</div>
		<!-- Tidak Puas -->
								<div class="modal fade" id="portfolio-4" tabindex="-1" role="dialog" aria-hidden="true">
									<div class="modal-dialog">
										<div class="contact-box">
									  	    <?php if($app['kategori']==1){ ?>
									  	    <?php if (!isset($_GET['jenis_kelamin'])){ ?>
									  	    <div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda Belum Memilih kategori</h3>
											</div>    
									  	   <?php ;} ?>
											 <?php if (isset($_GET['jenis_kelamin'])){ ?>
											<div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda <?php if (isset($_GET['jenis_kelamin'])){ ?><?= $jenis_kelamin['jenis_kelamin'];?> <?php ;} ?> Memilih Tidak Puas ?</h3>
											</div>
											<div class="modal-body">
												<div class="container">
													<div class="row">
														<div class="col-sm-2">
														</div>
														<div class="col-sm-8">
														<div class="row">
															
															<?php if (isset($_GET['jenis_kelamin'])){ ?>
															<form method="POST" action="include/submit?jenis_kelamin=<?= $_GET['jenis_kelamin']?>">
															 <?php ;} else { ?>
															 <form method="POST" action="include/submit">
															 <?php ;}  ?>
															<table width="100%" border="0">
															<tr>
															<td align="center"><p align="center"><i class="fa fa-frown-o fa-5x"></i></p></td>
															
															</tr>
															<?php if($app['saran']==1){ ?>
															<tr>
																<td ><textarea name="saran" rows="5" class="form-control" placeholder="Saran/Komentar/Kesan terhadap pelayanan kami"></textarea></td>
															</tr>
															<?php ;} ?>
															</table>
															<br/>
															<input type="hidden" name="survey" value="TP"/>
															<input type="hidden" name="id_pertanyaan" value="<?= $pertanyaan['id'];?>"/>
															<p align="center"> <button type="submit" class="btn btn-lg btn-success " ><b><i class="fa fa-check"></i> Ya</b></button>
															
															 <button  data-dismiss="modal" aria-hidden="true" class="btn btn-lg btn-danger" ><b><i class="fa fa-times"></i> Tidak</b></button></p>
														</form>
														</div>
														</div>
														<div class="col-sm-2">
														</div>
													</div>
												</div>
											</div>
											<?php ;} ?>
									  	     <?php ;} else {?>
												<div class="modal-header">
										  		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										  		<h3 class="h3 modal-title">Anda <?php if (isset($_GET['jenis_kelamin'])){ ?><?= $jenis_kelamin['jenis_kelamin'];?> <?php ;} ?> Memilih Tidak Puas ?</h3>
											</div>
											<div class="modal-body">
												<div class="container">
													<div class="row">
														<div class="col-sm-2">
														</div>
														<div class="col-sm-8">
														<div class="row">
															
															<?php if (isset($_GET['jenis_kelamin'])){ ?>
															<form method="POST" action="include/submit?jenis_kelamin=<?= $_GET['jenis_kelamin']?>">
															 <?php ;} else { ?>
															 <form method="POST" action="include/submit">
															 <?php ;}  ?>
															<table width="100%" border="0">
															<tr>
															<td align="center"><p align="center"><i class="fa fa-frown-o fa-5x"></i></p></td>
															
															</tr>
															<?php if($app['saran']==1){ ?>
															<tr>
																<td ><textarea name="saran" rows="5" class="form-control" placeholder="Saran/Komentar/Kesan terhadap pelayanan kami"></textarea></td>
															</tr>
															<?php ;} ?>
															</table>
															<br/>
															<input type="hidden" name="survey" value="TP"/>
															<input type="hidden" name="id_pertanyaan" value="<?= $pertanyaan['id'];?>"/>
															<p align="center"> <button type="submit" class="btn btn-lg btn-success " ><b><i class="fa fa-check"></i> Ya</b></button>
															
															 <button  data-dismiss="modal" aria-hidden="true" class="btn btn-lg btn-danger" ><b><i class="fa fa-times"></i> Tidak</b></button></p>
														</form>
														</div>
														</div>
														<div class="col-sm-2">
														</div>
													</div>
												</div>
											</div>
												<?php ;} ?>  
										</div>
									</div>
								</div>
		<!-- ==============================================
		JS
		=============================================== -->
		<script src="js/jquery.ascensor.js"></script>
        <script src="js/bootstrap.min.js"></script>
		<script src="js/jquery.mixitup.min.js"></script>
		<script src="js/jquery.hoverdir.js"></script>
		<script src="js/jquery.placeholder.min.js"></script>
        <script src="js/main.js"></script>
		<script src="js/bootstrap-notify/bootstrap-notify.min.js"></script>
		<?php
		if (isset($_GET['sukses'])) : ?>
		<script type="text/javascript">
		$(document).ready(function(){
				$.notify({
					icon: 'font-icon font-icon-lock',
					title: '<strong>Berhasil.</strong>',
					message: '<?=base64_decode($_GET['sukses']);?>'
				},{
					type: 'success',
					placement: {
						align: "center"
					}
				});
		});
		</script>
		<?php endif;?>
        
 </body>
</html>