<div class="row-fluid" >
    <div class="span12">    
        <div class="head clearfix">
            <div class="isw-ok"></div>
            <h1>View Employee Card</h1> 
         </div> 
         <form class="form-horizontal" action="" method="post" enctype="multipart/form-data">
              <fieldset>                            
                <div class="row-form clearfix">
                    <div class="span3">
                        <label>Print Logo Type</label>
                        <select name="type" required>
                            <option value="">Select Type</option>
                            <option value="1">Hindi</option>
                            <option value="2">English</option>                        
                        </select>
                    </div>
                
                    <div class="span1">
                        <label>&nbsp;</label>
                        <input type="submit" tabindex="3" name="search" class="btn btn-block" value="Search">
                    </div>
                </div>
              </fieldset>
		</form>                  
      	<?php
		if(isset($_POST['search']))
		{?>
        
        <div class="row">
            <br>
            <div class="span10"></div>
            <div class="span1">
                <div class="form-group">
                    <a href="javascript:void(0);" class="btn btn-primary btn-labeled btn-labeled-left btn-sm" onclick="printDiv();"> PRINT</a>
                </div>
            </div>
        </div> 

        <div id="outprint">
            <style>
            .text ul {
            padding-left: 0px;
            list-style: none;
            }
            .company-name h4 {
            font-size: 21px;
            font-weight: 600;
            color: #0b3d92;
            padding-left: 15px;
            margin-bottom:0px;
            margin-top:0px;
            }
            .text ul li {
            border-bottom: 1px solid #0b3d92;
            line-height: 0px;
            }
            .text ul li p {
            color: #000;
            font-size: 13px;
            margin: 12px;
            }
            .image img {
            width:100px;
            margin: 20px auto;
            display: block;
            }
            .border1 {
            border: 1px solid #0b3d92;
            border-radius: 15px;
            padding:10px 0px;
            }
            .address {
            padding: 5px 7px;
            background: #0b3d92;
            margin: 0px;
            color: #fff;
            font-size: 13px;
            }
            .top-gap {
            margin-top: 20px;
            }
            .col-md-51{
            width: 49%;
            }
            .col-md-81{
            width: 65%;
            float: left;
            }
            .col-md-41{
            width: 30%;
            float: right;
            }
            .right-box {
            float: right;
            margin-left:5px; 
            margin-top: 20px; 
            }
            .left-box {
            float: left;
            margin-right: 5px;
            margin-top: 20px;
            }
            .image p {
	        text-align: center;
	        border: 1px solid #000;
	        padding: 50px 10px;
	        width: 70px;
	        margin: 20px auto;
	    	}
	    	.image img{width:50px;}
	    	#font-st{font-size:12px;}
            </style>
            <style type = "text/css">
          
              
              
              @page {
                  size: A4;
                  margin: 0;
                }
                @media print {
                  html, body {
                    width: 210mm;
                    height: 297mm;
                  }
                  /* ... the rest of the rules ... */
                }
           
            </style>
            
            <div class="top-gap">
                <div class="row1">
                	<?php
                    $st	  = implode("','",explode('&',$_SESSION['post']));
					$st_qry = " and `state` in ('$st') ";
					if($_SESSION['post']=="Uttar Pradesh-2"){
					    $menu		= mysql_query("SELECT * FROM `tbl_emp_rsp` where `status`='0' order by `emp_name` asc ");
					}else{
					    $menu		= mysql_query("SELECT * FROM `tbl_emp_records` where `status`='0' $st_qry order by `emp_name` asc ");
					}
                    while($show_menu = mysql_fetch_array($menu)) 
                    {?>
                    <div class="col-md-51 gap-1 left-box">
                    <div class="">
                      <div class="row1 border1">
                         <div class="main-wapper">
                            <div class="company-name">
                               <h4>RUDRAANSH HOLDINGS LLP</h4>
                            </div>
                            <div class="col-md-81">
                               <div class="text">
                                  <ul>
                                     <li><p>Emp. Code - <?php echo ucwords($show_menu['emp_code']); ?></p></li>
                                     <li><p>Name - <?php echo ucwords($show_menu['emp_name']); ?></p></li>
                                     <li><p>Father Name - <?php echo ucwords($show_menu['fname']);?></p></li>
                                     <li><p>Designation - <?php echo ucwords($show_menu['desiganation']); ?></p></li>
                                     <li><p>Aadhar No. - <?php echo $show_menu['aadhar_no']; ?></p></li>
                                     <li><p>DOB. - <?php if($show_menu['dob']!='0000-00-00'){echo date('d-m-Y',strtotime($show_menu['dob']));}?></p></li>
                                     <li><p>Location - <?php echo ucwords($show_menu['head_qtrer']);?></p></li>
                                     <!--<li><p>Location - <?php echo strtolower($show_menu['head_qtrer']);?></p></li>-->
                                     <li><p style="font-weight:600">On RSPL Limited's duty</p></li>
                                  </ul>
                               </div>
                            </div>
                            <div class="col-md-41">
                               <div class="image">
                                  <p>PHOTO</p>
                                  <?php if($_POST['type']==1){?>
                                  <img src="images/1-ghadi.png" />
                                  <?php }?>
                                  <?php if($_POST['type']==2){?>
                                  <img src="images/2-ghadi.png"/>
                                  <?php }?>
                               </div>
                            </div>
                            <div style="clear: both;"></div>
                            
                            <p class="address">
                               Head Office - C-1,Ground Floor, Chittora Appartment, Plot No A-4 Tilak Marg C-scheme Jaipur, 302001, Jaipur, Rajasthan 302001
                            </p>
                         </div>
                      </div>		
                    </div>		
                    </div>
                    <?php }?>                                      
                </div>
            </div>
        </div>
        <?php }?>
    </div>
</div>