<?php include "layouts/menu.php"; ?> 
    <?php $idd=$_REQUEST['idd'];?>
  <?php $mfin2=$_REQUEST['mfin2'];?>
  <!--  page-wrapper -->

    <link href="vendors/pnotify/dist/pnotify.css" rel="stylesheet">
    <link href="vendors/pnotify/dist/pnotify.buttons.css" rel="stylesheet">
    <link href="../vendors/pnotify/dist/pnotify.nonblock.css" rel="stylesheet">
  <style> 
input[type=text] {
    width: 100%;
   
    box-sizing: border-box;
    border: 1px solid #555;
    outline: Gray;
	
}

input[type=text]:focus {
    background-color: #d1e0e3;
}

.div1 {
    width: 100%;
    height: 100%;
       border: 4px solid #ff3d39;
    background-color: #69f7db;
	float:center;
}

.div2 {
    width: 380px;
    height: 240px;    
background-color:#f4f6df;
    border: 4px solid #376ca1;
	float:right;
}
label {
  
  color: black;
  font-weight: bold;
  
}
td,th{
  
  color: black;
  font-weight: bold;
  
}

</style>

         <div class="right_col" role="main">
              <div class="">
          <?php
						$qry=mysqli_query($conn, "select * from entry where id='$idd'");
						$row=mysqli_fetch_array($qry);
						$mfin2 = $row['mfin'];  $hpl = $row['hpl']; $hpll = $hpl + 1;
						$qry1=mysqli_query($conn, "select * from user where mfin='$mfin2' &&  hpl='$hpl'");
					$n1=mysqli_num_rows($qry1);
					$row1=mysqli_fetch_array($qry1);
				$remarks = $row['remarks'];
		if($remarks!=NULL){
echo '<script language="javascript">';
echo 'alert("'.$remarks.'")';
echo '</script>'; } 	?>



            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Customer Detailed View <small>Activity report</small></h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                      </li>
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                        <ul class="dropdown-menu" role="menu">
                          <li><a href="#">Settings 1</a>
                          </li>
                          <li><a href="#">Settings 2</a>
                          </li>
                        </ul>
                      </li>
                      <li><a class="close-link"><i class="fa fa-close"></i></a>
                      </li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <div class="col-md-3 col-sm-3 col-xs-12 profile_left">
                      <div class="profile_img">
                        <div id="crop-avatar">
                          <!-- Current avatar -->
						  <?php $imgg = $row['uimg']; 
if($imgg != NULL) { 
?>
<img class="img-responsive avatar-view" src="user/<?php echo $row['uimg']; ?>" alt="Avatar" title="Change the avatar">
<?php } 
else{ 
?>
                          <img class="img-responsive avatar-view" src="us.jpg" alt="Avatar" title="Change the avatar">
<?php } ?>
                        </div>
                      </div>
                      <h1><b><?php echo $row['name']; ?></b></h1>

                     <font color="blue"> <ul class="list-unstyled user_data">
                        <h4><b><li><i class="fa fa-map-marker fa-2x user-profile-icon"></i> 
						S/O <?php echo $row['fname']; ?> </br>
						<?php echo $row['address']; ?> </br>
						<?php echo $row['address1']; ?> </br>
						<?php echo $row['address2']; ?> 
					
                        </li></h4></b>
						
						 <h3><b><li><i class="fa fa-phone fa-2x user-profile-icon"></i> 
					
						<?php echo $row['pno']; ?>
                        </li></h3></b> </font>

                      
                      </ul>

<?php 

$mfin2 = $row['mfin'];
							$hpl = $row['hpl'];
							$sql333 = mysqli_query($conn, "select * from pending where mfin='$mfin2' && hpl='$hpl'");
							$row333 = mysqli_fetch_array($sql333);
							?>
                      <!-- start skills -->
             

                      <!-- end of skills -->

                    </div>
                    <div class="col-md-9 col-sm-9 col-xs-12">

                      <!-- <div class="profile_title">
                        <div class="col-md-6">
                          <h2>User Activity Report</h2>
                        </div>
                        <div class="col-md-6">
                          <div id="reportrange" class="pull-right" style="margin-top: 5px; background: #fff; cursor: pointer; padding: 5px 10px; border: 1px solid #E6E9ED">
                            <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
                            <span>December 30, 2014 - January 28, 2015</span> <b class="caret"></b>
                          </div>
                        </div>
                      </div>
                      
                      <div id="graph_bar" style="width:100%; height:280px;"></div>
                      end of user-activity-graph -->

                      <div class="" role="tabpanel" data-example-id="togglable-tabs">
                        <ul id="myTab" class="nav nav-tabs bar_tabs" role="tablist">
                          <li role="presentation" class="active"><a href="#tab_content1" id="home-tab" role="tab" data-toggle="tab" aria-expanded="true"><h5><b>Loan Details</h5></b></a>
                          </li>
                          <li role="presentation" class=""><a href="#tab_content2" role="tab" id="profile-tab2" data-toggle="tab" aria-expanded="false"><h5><b>Co-Applicant /  Guarantor </h5></b></a>
                          </li>
                          
                        </ul>
                        <div id="myTabContent" class="tab-content">
                          <div role="tabpanel" class="tab-pane fade active in" id="tab_content1" aria-labelledby="home-tab">
                       
						<table class="data table table-striped no-margin">


<tr><td>Enquiry Date :</td><td>&nbsp;&nbsp;&nbsp;</td><td><font color="red" size="4"><?php echo $row['hpdate'];?> </td></tr>
<tr><td>Req Amount : </td><td>&nbsp;&nbsp;&nbsp;</td><td><font color="red" size="4"><?php echo $row['hpamount'];?></td></tr>
<tr><td>Due : </td><td>&nbsp;&nbsp;&nbsp;</td><td><font color="red" size="4">(<?php echo $row['duemnt'];?>)</td></tr>

   </table>     

			  <!-- end recent activity -->

                          </div>
                          <div role="tabpanel" class="tab-pane fade" id="tab_content2" aria-labelledby="profile-tab2">
</br>
			 <div class="col-md-12 col-sm-12 col-xs-12 profile_details">
	
	<div class="col-md-6 col-sm-6 col-xs-12 profile_details">
                        <div class="well profile_view">
                          <div class="col-sm-12">
                            <h1 class="brief"><i><b>CO-Applicant  </b></i></h1>
                            <div class="left col-xs-7">
                              <h2><b><?php echo $row['cobname'];?></b></h2>
             <ul>   <li>	<b><font size="2.5" color="blue">S/O <?php echo $row['cofname']; ?></font></br></b>
	<b><font size="2.5" color="blue"><?php echo $row['co']; ?></font></br></b>
	<b><font size="2.5" color="blue"><?php echo $row['co01']; ?></font></br></b>
	<b><font size="2.5" color="blue"><?php echo $row['co02']; ?></font></br></b>
	<b><font size="2.5" color="blue"><?php echo $row['coalmark']; ?></font></br></b>
</li>
<li><i class="fa fa-phone"></i> Phone #: <?php echo $row['cobpno'];?> </br>
						</li>
                              </ul>
                            </div>
                            <div class="right col-xs-5 text-center">
				<?php $imgg = $row['uimg']; 
if($imgg != NULL) { 
?>
<img class="img-circle img-responsive" src="user/<?php echo $row['img']; ?>" alt="Avatar" title="Change the avatar">
<?php } 
else{ 
?>
                          <img class="img-circle img-responsive" src="us.jpg" alt="Avatar" title="Change the avatar">
<?php } ?>
                            </div>
                          </div>
                          <div class="col-xs-12 bottom text-center">
                            <div class="col-xs-12 col-sm-12 emphasis">
            </div>
                        </div>
                      </div>
					   </div>
					   
					    <div class="col-md-6 col-sm-6 col-xs-12 profile_details">
                        <div class="well profile_view">
                          <div class="col-sm-12">
                            <h1 class="brief"><i><b>Guarantor  </b></i></h1>
                            <div class="left col-xs-7">
                              <h2><b><?php echo $row['cobname2'];?></b></h2>
             <ul>   <li>		<b><font size="2.5" color="blue">S/O <?php echo $row['cofname2']; ?></font></br></b>
	<b><font size="2.5" color="blue"><?php echo $row['co2']; ?></font></br></b>
	<b><font size="2.5" color="blue"><?php echo $row['co201']; ?></font></br></b>
	<b><font size="2.5" color="blue"><?php echo $row['co202']; ?></font></br></b>
	<b><font size="2.5" color="blue"><?php echo $row['coalmark2']; ?></font></br></b>
</li>
<li><i class="fa fa-phone"></i> Phone #: <?php echo $row['cobpno2'];?> </br>
						</li>
                              </ul>
                            </div>
                            <div class="right col-xs-5 text-center">
				<?php $imgg = $row['uimg']; 
if($imgg != NULL) { 
?>
<img class="img-circle img-responsive" src="user/<?php echo $row['img']; ?>" alt="Avatar" title="Change the avatar">
<?php } 
else{ 
?>
                          <img class="img-circle img-responsive" src="us.jpg" alt="Avatar" title="Change the avatar">
<?php } ?>
                            </div>
                          </div>
                          <div class="col-xs-12 bottom text-center">
                            <div class="col-xs-12 col-sm-12 emphasis">
            </div>
                        </div>
                      </div>
					   </div>
			 <div class="col-md-6 col-sm-6 col-xs-12 profile_details">
                        <div class="well profile_view">
                          <div class="col-sm-12">
                            <h1 class="brief"><i><b>Office Address</b></i></h1>
                            <div class="left col-xs-7">
                            
             <ul>   <li>	
	<b><font size="2.5" color="blue"><?php echo $row['oaddress']; ?></font></br></b>
	<b><font size="2.5" color="blue"><?php echo $row['oaddress1']; ?></font></br></b>
	<b><font size="2.5" color="blue"><?php echo $row['oaddress2']; ?></font></br></b>
	<b><font size="2.5" color="blue"><?php echo $row['opno']; ?></font></br></b>
</li>
<li><i class="fa fa-phone"></i> Phone #: <?php echo $row['pnooffice'];?> </br>
						</li>
                              </ul>
                            </div>
                          
                          </div>
                          <div class="col-xs-12 bottom text-center">
                            <div class="col-xs-12 col-sm-12 emphasis">
            </div>
                        </div>
                      </div>
					   </div>		   

                </div>
                            <!-- end user projects -->

                          </div>
                       
              
</div>	</div>						
</div>
</div></div>
		  
		  
		  </div>     </div>
                <!-- end of weather widget -->
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->

        <!-- footer content -->
       <script src="vendors/pnotify/dist/pnotify.js"></script>
    <script src="vendors/pnotify/dist/pnotify.buttons.js"></script>
    <script src="vendors/pnotify/dist/pnotify.nonblock.js"></script>
	   <?php include "layouts/footer.php"; ?>
  </body>
</html>
