HOME


Mini Shell 1.0
DIR:/home/rahuldwi/public_html/admin/
Upload File :
Current File : /home/rahuldwi/public_html/admin/print2.php
 <?



include 'connection.php';

 session_start();

  

$sql ="SELECT * FROM member WHERE id ='".$_GET['id']."' and cardstatus='active'";

$exc = $mysqli->query($sql);

if(mysqli_num_rows($exc)>0){

$row = $exc->fetch_assoc();

?>


  <br>
  <a class="btn btn-default" id="pp" style="border: 1px solid;cursor: pointer;margin-left: 600px;"  onclick="print();">Print ID Card</a>
<a class="btn btn-default" id="pp" style="border: 1px solid;cursor: pointer;"  onclick="back();">Back</a>
<br><br>
 <div id="DivIdToPrint" style="display: none;">
<!DOCTYPE html>
<html>
  <head>
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
    />
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  
    <style>
      body {
        font-family: Arial, Helvetica, sans-serif;
        margin: 0;
        padding: 0;
      }
      .card {
    
        max-width: 100%;
        text-align: center;
        margin-top: -20px;
      }
 
      img {
       
        border: 1px solid #ddd;
        
      }
 
      .designation {
        font-size: 18px;
      }
 
      .social {
        margin: 20px 0;
      }
 
      a {
        font-size: 26px;
        padding: 7px 12px;
        text-decoration: none;
        background-color: #04456f;
        color: white;
        border-radius: 10px;
      }
 
      a:hover {
        background-color: #00c8ff;
      }
    </style>
  </head>
 
  <body>

  <div class="card">
    <table class="table">
    <tbody>
      <tr>

         
         <img src="idcard.jpg">



         <p id="img" style="margin-top: -503px;margin-left: -540px;font-size: 10px;font-weight: 700;"><? echo $row["memberid"];?></p>

        <p id="img" style="margin-top: 65px;margin-left: -421px;"><img src="../member/photo/<? echo $row["img"];?>" style="width: 140px;height: 178px;"></p>

        
          <p id="descr" style="font-size: 14px;margin-left: -330px !important;margin-top: 30px"><? echo $row["name"];?></p>
          <p id="descr" style="font-size: 14px;margin-left: -344px !important;margin-top: -10px"><? echo $row["post"];?></p>
          <p id="descr" style="font-size: 14px;margin-left: -330px !important;margin-top: -10px"><? echo $row["father"];?></p>
          <p id="descr" style="font-size: 14px;margin-left: -350px !important;margin-top: -8px"><? echo $row["birth"];?></p>
          <p id="descr" style="font-size: 14px;margin-left: -347px !important;margin-top: -10px"><? echo $row["mobile"];?></p>
          <p id="descr" style="font-size: 14px;margin-left: -335px !important;margin-top: -11px"><? echo $row["adhar"];?></p>
      
      </tr>
     
       
           
    </tbody>
  </table>
  
    </div>
    
  </body>
</html>
</div>
<br>
<script type="text/javascript">
    function back(){
        window.location.href="https://nyfo.org.in/admin/idcardlist.php";
    }
    function print(){
        var divToPrint=document.getElementById('DivIdToPrint');

  var newWin=window.open('','Print-Window');

  newWin.document.open();

  newWin.document.write('<html><body onload="window.print()">'+divToPrint.innerHTML+'</body></html>');

  newWin.document.close();

  setTimeout(function(){newWin.close();},10);

    }
</script>   





<? } else { ?>

  <h1>Id Card Not Found</h1>

<? } ?>