HOME


Mini Shell 1.0
DIR:/home/rahuldwi/public_html/admin/
Upload File :
Current File : /home/rahuldwi/public_html/admin/card.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();

?>







<div id="DivIdToPrint">

<!DOCTYPE html>

<html>

  <head>

    <link

      rel="stylesheet"

      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"

    />

    <style>

      body {

        font-family: Arial, Helvetica, sans-serif;

        margin: 0;

        padding: 0;

      }

      .card {

        border: 1px solid #ddd;

        max-width: 100%;

        padding: 5px;

        margin: auto;

        text-align: center;

      }

 

      img {

        width: 50%;

        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>



  <br>

  <table style="width:100%;">

    <tr>

    
      <td style="width:100%;border-top:15px solid #EF7C23;border-bottom:15px solid #168B44;">

      


    <div class="card2" style="border-bottom: none;width:45%;float:left;text-align: center;margin-top: 40px;">


      <img src="106x106.png" alt="image" style="width:190px;border:none;" />

          
      <h2 style="text-align:center;height: 10px;"><span style="color:#EF7C23;">NATIONALLIST</span> <span style="color:#168B44;">YOUTH</span> </h2>
      <h2 style="text-align:center;height: 12px;"><span style="color:#EF7C23;">FARMERS</span> <span style="color:#168B44;">ORGANIZATION</span> </h2>
      <h4 style="text-align:center;height: 5px;">REGN- 326/2019-2020</h4>
     

      <br>

    </div>

    <div class="card2" style="border-bottom: none;width:55%;float: right;margin-top: 80px;">

      <h1 style="text-align: left;color: #EF7C23;height: 25px;">Avinash Tomar</h1>
      <h2 style="text-align: left;color: #168B44;height: 28px;">(State President Youth, Gujrat)</h2>
      <h3 style="text-align: left;color: #000;height: 10px;">Contact No.+91-9727000022</h3>
      <h3 style="text-align: left;color: #000;height: 10px;">Email Id.gujrat@nyfo.org.in</h3>
      <h3 style="text-align: left;color: #000;height: 10px;">Offcial Website:-www.nyfo.org.in</h3>
      <h3 style="text-align: left;color: #000;height: 10px;">Head office Email Id:-nyfoofficial@gmail.com</h3>





      

    </div>


      <br>

    <div class="card2" style="border-bottom: none;width:100%;float: right;margin-top: 80px;">
        <h3 style="text-align: center;color: #000;height: 10px;">Head Office:- S-3, Secoend Floor, Star City Mall, Mayur Vihar - New Delhi- 110092</h3>      
    </div>
      </td>

    

    </tr>

  </table>

  

  </body>

</html>

 </div>

 <br>

<a class="btn btn-default" id="pp" style="border: 1px solid;cursor: pointer;margin-left: 600px;"  onclick="print();">Print</a>

<script type="text/javascript">

    

    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>

<? } ?>