<?php $user_id=$_SESSION['id'];
$orgzs="National Hawker Federation Telangana State";
$sqlrg=mysqli_fetch_array(mysqli_query($conn,"select * from user_profile where id='".$user_id."' and organizations='".$orgzs."'")); ?>
<div class="sv-tab-panel">
    <div class="row">
        <div class="col-md-12">
            <h3 class="mb-2">My Id Card</h3>
             <div class="image-container2" id="divPrints"> 
             <img src="assets/images/nhflogo.png" class="test2" alt="Picture"> 
            <table class="shadow2" style="font-size:18px;margin:0px auto;width:480px;height:640px;border-radius:5px;border:1px solid #ccc;" >
                <tbody>
                    <tr class="first" style="background: rgb(235,110,35);background: linear-gradient(90deg, rgba(235,110,35,1) 0%, rgba(163,132,52,1) 48%, rgba(80,143,65,1) 100%);color:#fff">
                        <td colspan="1" style="width:152px;padding:10px;line-height:1.36;border-radius:10px 10px 0px 0px; text-align:left">
                            <b style="color:#fff;font-size:16px!important;"><img src="assets/images/nhflogo.png" style="width:100px"></b>
                        </td>
                        <td colspan="5">
                            <h6 style="text-align:left;font-weight:800;width:253px;padding:10px;line-height:1.36;border-radius:10px 10px 0px 0px;color:#fff;font-size:28px;text-transform:uppercase">Identity Card</h6>
                        </td>
                    </tr>
                    <tr class="first" style="color:#fff">
                        <td colspan="6">
                            <img src="assets/images/nhf2.jpg">
                        </td>
                    </tr>
                    <tr style="width:480px">
                        <td colspan="6">
                            <h6 style="text-align:center;font-weight:800;font-size:26px;margin-top:10px">Crystal Arcade Street Vendor <br/>Assocition Regd. by Govt. Of T.S.</h6>
                        </td>
                    </tr>
                    <tr style="width:480px">
                        <td colspan="" style="text-align:center"><b>Id.No.<br /><?= $sqlrg['user_id'];?></b></td>
                        <td colspan="3"><img src="assets/images/user.jpg" style="width:180px;padding:5px;height:180px;margin:auto;border:2px solid #333;border-radius:5px;" alt="Photo"></td>
                        <td colspan="2" style="text-align:center"><b>Regd No.<br />1052/15</b></td>
                    </tr>
                    <tr style="width:480px">
                        <th colspan="" style="width:115px;padding-left:10px;">Id No. </th>
                        <th width="150px" colspan="4"> <b>:</b> <?= $sqlrg['user_id'];?></th>
                        <th> </th>
                    </tr>
                    <tr style="width:480px">
                        <th colspan="" style="width:115px;padding-left:10px;">Name </th>
                        <th colspan="4"> <b>:</b> <?= $sqlrg['name'];?></th>
                        <td></td>
                    </tr>
                    <tr style="width:480px">
                        <th colspan="" style="width:115px;padding-left:10px;">S/O</th>
                        <th colspan="4" width="150px"> <b>:</b> <?= $sqlrg['father_name'];?></th>
                        <td></td>
                    </tr>
                    <tr style="width:480px">
                        <th colspan="" style="width:115px;padding-left:10px;">Age </th>
                        <th colspan="5"> <b>:</b> <?php 
                        echo date_diff(date_create($sqlrg['dob']), date_create('today'))->y; ?></th>
                    </tr>
                    <tr style="width:480px">
                        <th colspan="" style="width:115px;padding-left:10px;">Area </th>
                        <th colspan="5"> <b>:</b> <?= $sqlrg['address'];?></th>
                    </tr>
                    <tr style="width:480px">
                        <th colspan="" style="width:115px;padding-left:10px;">Desig. </th>
                        <th colspan="5"><b>:</b> <?= $sqlrg['designation'];?></th>
                    </tr>
                    <tr style="width:480px">
                        <th colspan="" style="width:115px;padding-left:10px;">Cell No. </th>
                        <th colspan="5"> <b>:</b> +91-<?= $sqlrg['contact_no'];?></th>
                    </tr>
                    <tr style="width:480px">
                        <td colspan="4">&nbsp;&nbsp;</td>
                        <th colspan="2" style="text-align:center"><img src="assets/images/generalsecretary.jpg" height="60px"></th>
                    </tr>
                    <tr style="width:480px">
                         <th style="text-align:center"></th>												
                                                 <th style="text-align:center"><img src="assets/images/adhhar-verified.png" height="50px"></th>
                                                 <th style="text-align:center"></th>
                        <th colspan="3" style="text-align:center">Signature Of G.Sect.</th>
                    </tr>
                </tbody>
            </table>
            </div>
            <center>  <button class="btn btn-success btn-md mt-2" onclick="Printivs();">Print</button></center>
        </div>
         <div class="col-md-12 mt-2">
             <table style="font-size:22px;height:640px;width:480px;margin:0px auto;border-radius:5px;border:1px solid #ccc;background-color:#b0e0e7" id="divcard">
                <tbody>
                    <tr class="first" style="background:#b0e0e7;color:#000;width:480px;">
                        <td colspan="4" style="padding:10px;line-height:1.36;border-radius:10px 10px 0px 0px; text-align:center">
                            <b style="color:#246d42;font-weight:bold;font-size:22px!important;">1. This Card is Related only to the identify<br/> the member of the Federation</b>
                        </td> 
                    </tr>
                    <tr class="first" style="background:#b0e0e7;color:#272e74;width:480px;">
                        <td colspan="4" style="padding:10px;line-height:1.36;border-radius:10px 10px 0px 0px; text-align:center">
                            <b style="color:#000;font-size:26px!important;">Issued On : </b> <?= $sqlrg['registration_date'];?>
                        </td> 
                    </tr>

                    <tr class="first" style="background:#b0e0e7;color:#272e74;width:480px;">
                        <td colspan="4" style="padding:10px;line-height:1.36;border-radius:10px 10px 0px 0px; text-align:center">
                            <b style="color:#000;font-size:26px!important;">Validity : </b> <?php $date = $sqlrg['registration_date'];
                                                echo date('Y-m-d', strtotime("+24 months $date")); ?>
                        </td> 
                    </tr> 
                    <tr class="first" style="backgroud:#b0e0e7;width:480px;">
                        <td colspan="4">
                            <h6 style="text-align:center;color:#272e74;font-size:28px!important;font-weight:800;margin-top:10px">Office Address :</h6>
                        </td>
                    </tr>
                    <tr class="first" style="background:#b0e0e7;width:480px;">
                        <td colspan="4">
                            <h6 style="text-align:center;font-size:28px;color:#000;font-weight:800;margin-top:10px">Hyderabad Techniacal College, Inside old M.C.H Office, Q.Q.S.U.D.A, Dar-ul-Shifa, Hyd-24</h6>
                        </td>
                    </tr>
                    <tr class="first" style="background:#b0e0e7;width:480px;">
                        <td colspan="4">
                            <h6 style="text-align:center;color:#2a2c8f;font-weight:800;font-size:28px;margin-top:10px">Ph. : 8919910012, 8801750705, 9700503960, 9391299995</h6>
                        </td>
                    </tr> 
                    <tr class="first" style="background:#b0e0e7;width:480px;">
                        <td colspan="4">
                            <h6 style="text-align:center;color:#2a2c8f;font-weight:800;margin-top:10px;font-size: 23px;margin-bottom:20px;">If found please return to above address</h6>
                        </td>
                    </tr>
                    <tr class="first" style="width:480px;">
                          <th colspan="2" style="text-align:left"><img src="admin/images/<?= $res1['signature'];?>" height="50px"> &nbsp; </th>
                        <th colspan="2" style="text-align:right"><img src="admin/images/<?= $res1['signature'];?>" height="50px"> &nbsp; </th>
                    </tr>
                   <tr class="first" style="width:480px;">
                        <th colspan="2" style="text-align:left;font-size:13px;color:#2a2c8f;font-weight:800;">Signature Of Muqaddam / Choudhary &nbsp; </th>
                        <th colspan="2" style="text-align:right;font-size:13px;color:#2a2c8f;font-weight:800;">Signature Of Card Holder</th>
                    </tr>
                </tbody>
            </table>
            <center><button class="btn btn-success btn-md mt-2" onclick="Printcard();">Print</button></center>
        </div> 
    </div>
</div> 