<?php
(@include ('../dt_page/lic.php')) or die("<p style='font-family:Arial, Helvetica, sans-serif; margin-top:80px; font-size:16px; line-height:180%; letter-spacing:2px;' align='center'><img src='https://primadesain.com/images/block.png' width='90' height='90' /></br></br>You not have a license to use this script on this domain,<br>Please contact us to purchase a license.<br><strong><a href='http://www.primadesain.com'>www.primadesain.com</a></strong></p><br><p style='font-family:Arial, Helvetica, sans-serif; margin-top:30px; font-size:12px; line-height:180%; letter-spacing:2px;' align='center'>&copy;2009 - ".date("Y")." www.primadesain.com</p>");
$lic=$license;if(!$lic){echo "<p style='font-family:Arial, Helvetica, sans-serif; margin-top:80px; font-size:16px; line-height:180%; letter-spacing:2px;' align='center'><img src='https://primadesain.com/images/block.png' width='90' height='90' /></br></br>You not have a license to use this script on this domain,<br>Please contact us to purchase a license.<br><strong><a href='http://www.primadesain.com'>www.primadesain.com</a></strong></p><br><p style='font-family:Arial, Helvetica, sans-serif; margin-top:30px; font-size:12px; line-height:180%; letter-spacing:2px;' align='center'>&copy;2009 - ".date("Y")." www.primadesain.com</p>";}$svr=$_SERVER['SERVER_NAME'];$c=curl_init();curl_setopt($c,CURLOPT_URL,"http://www.primadesain.com/verifylicenses.php");curl_setopt($c,CURLOPT_TIMEOUT,30);curl_setopt($c,CURLOPT_POST,1);curl_setopt($c,CURLOPT_RETURNTRANSFER,1);$postfields='svr='.$svr.'&lic='.$lic;curl_setopt($c,CURLOPT_POSTFIELDS,$postfields);$result=curl_exec($c);if($result=="fail"){echo "<p style='font-family:Arial, Helvetica, sans-serif; margin-top:80px; font-size:16px; line-height:180%; letter-spacing:2px;' align='center'><img src='https://primadesain.com/images/block.png' width='90' height='90' /></br></br>You not have a license to use this script on this domain,<br>Please contact us to purchase a license.<br><strong><a href='http://www.primadesain.com'>www.primadesain.com</a></strong></p><br><p style='font-family:Arial, Helvetica, sans-serif; margin-top:30px; font-size:12px; line-height:180%; letter-spacing:2px;' align='center'>&copy;2009 - ".date("Y")." www.primadesain.com</p>";die();}
if (basename($_SERVER['SCRIPT_FILENAME']) == basename(__FILE__)){
echo "<p align=center><br><br><br><br><br><br><font size=\"6\" color=\"#FF0000\">ILLEGAL ACCESS !!";
echo "<meta http-equiv=\"refresh\" content=\"2; url=../index.php\">";
exit();} 
?>
<?php
if($db->dataku("status", $user_session) == 0 || $db->dataku("blokir", $user_session) == 1) {
echo "<div class='alert alert-danger alert-dismissable'><button type='button' class='close' data-dismiss='alert' aria-hidden='true'></button>".$LANG["status0"]."</div>";
}else{
?>

        <script src="../assets/treeview/jquery_002.js"></script>
<link href="../assets/admin/pages/css/todo.css" rel="stylesheet" type="text/css"/>
<link href="../assets/treeview/treeviewx.css" rel="stylesheet">
        <script src="../assets/treeview/treeview.js"></script>
<?php    
if(isset($_GET["co"])){ $co = anti_injection(base64_decode($_GET["co"])); }                  
                              
$query2 = "SELECT * FROM konfirmasi WHERE kode='".mysql_real_escape_string($co)."'"; 
$result2 = mysql_query($query2);
$numc2 = mysql_num_rows($result2);
$rowc2 = mysql_fetch_array($result2);
$stsconfirm=$rowc2['status'];
$memo=$rowc2['catatan'];
$image=$rowc2['foto'];
$invoice=$rowc2['invoice'];
$usernya=$rowc2['username'];
$dateconfrm=$rowc2['tgl'];
$kode=$rowc2['kode'];
$jumlah=$rowc2['jumlah'];
$rektujuan=$rowc2['rektujuan'];

$adafotow = $db->dataku("foto", $usernya);
	$dirfotow = "./images/$adafotow";
	if (!empty($adafotow) && (file_exists($dirfotow))){
		$gambarw = "<a href='".$dirfotow."' class='highslide pull-left' onclick='return hs.expand(this)'><img src='".$dirfotow."' width='27' height='27' class='todo-userpic'></a>";
		}
	else
		{
		$gambarw = "<a class='pull-left' href='javascript:;'><img src='../images/no_image.png' width='27' height='27' class='todo-userpic'></a>";
		} 

$namapartner=$db->dataku("nama", $usernya);
$emailpartner=$db->dataku("email", $usernya);
$hppartner=$db->dataku("hp", $usernya);
if($emailpartner){
$emailpartner=$emailpartner;
}else{
$emailpartner="<i>not-set</i>";
}
if($hppartner){
$hppartner=$hppartner;
}else{
$hppartner="<i>not-set</i>";
}

if($stsconfirm == 0){
	$sts = "<span class='label label-warning'>Pending</span>";
}else{
	$sts = "<span class='label label-success'>Confirmed</span>";
}

$dirimage = "../images/confirm/".$image."";
	if (!empty($image) && (file_exists($dirimage))){
		$gambarx = "<img src='".$dirimage."'></a>";
		}
	else
		{
		$gambarx = "<img src='../images/no-photo.png'>";
		} 
?>
                
<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
											<h4 class="modal-title"><i class="icon-info"></i>&nbsp;&nbsp;Information Confirm <?php echo $kode ?></h4>
										</div>
										
                                        
                                      <?php if(!$numc2){ ?>

<div class="modal-body">
	<div class="row">
		<div class="col-md-12">
            <p>
Data Not Found!
			</p>
        </div>
	</div>
</div>   
<?php } else { ?>  
                                        
                                        
                                        
                                        
                                        <div class="modal-body">
                                        <div class="well">
                                        <p><strong>Confirm from :</strong></p>
                                        <li class="media">
                                        <?php echo $gambarw; ?>
                                        <div class="media-body todo-comment">
										<p class="todo-comment-head">
										<span class="todo-comment-username"><?php echo $namapartner; ?></span> &nbsp; <span class="todo-comment-date">[ user: <?php echo $usernya; ?> ]</span></p><p class="todo-text-color">Email: <?php echo $emailpartner; ?> | Phone: <?php echo $hppartner; ?></p><p class="todo-text-color" style="line-height:200%;">Confirm Date : <?php echo formatgl($dateconfrm); ?><br />Memo : <?php echo $memo; ?>
                                        </div>
                                        </p></div></li>
                                        
                                         
                                        
                                        
                                      
										 <div class="panel-group accordion" id="accordion1">      
                                 <div class="panel panel-default">
									<div class="panel-heading">
										<h4 class="panel-title">
                                        <a aria-expanded="false" class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion1" href="#collapse_1"><button class="btn green" type="button"><i class="fa fa-image"></i>&nbsp;Image Attachment</button></a>
                                        </h4>
									</div>

									<div style="height: 0px;" aria-expanded="false" id="collapse_1" class="panel-collapse collapse">
                                       
                                       <div style="overflow: hidden; position: relative; display: block;" class="pan-container">
            <div style="transform: matrix(1, 0, 0, 1, 25, 10); backface-visibility: hidden; transform-origin: 50% 50% 0px; cursor: move; transition: none 0s ease 0s ;" id="treeview-pan" class="pan-wrap"><div class="tree">
										<?php echo $gambarx; ?>
                                        </div></div>
                                       </div>
										</div>
									</div>
                                        
                                        
                                      
										</div>
                                        
                                        
                                       
                                        </div>
                                        <?php } ?>  
										 
			
                                        <div class="modal-footer">
                                        
											<button type="button" class="btn red" data-dismiss="modal"><i class="fa fa-times"></i>&nbsp;Close</button>
										</div>
                                       
  
<?php }  ?>
