note4

Tuesday, September 18, 2018

2:05 PM




<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Card Printing</title>

<link href="index111.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>

body {
    background-color: trasparent;
}



div#container {
   margin: 0 auto 0 auto;
   position: relative;
   text-align: left;
   width: 233px;
}

#Image1 {
   border: 0px #000000 solid;
   height: 100%;
   left: 0;
   padding: 0px 0px 0px 0px;
   top: 0;
   width: 100%;
}
#Image2 {
   border: 0px #000000 solid;
   height: 100%;
   left: 0;
   padding: 0px 0px 0px 0px;
   top: 0;
   width: 100%;
}
#wb_Image1 {
   height: 365px;
   left: 0px;
   position: absolute;
   top: 0px;
   width: 233px;
   z-index: 0;
       left: -0px;
}
#wb_Image2 {
   height: 360px;
   left: 0px;
   position: absolute;
   top: 355px;
   width: 233px;
   z-index: 2;
       left: -0px;
}
#Html1 {
   height: 710px;
   left: 0px;
   position: absolute;
   top: 0px;
   width: 233px;
   z-index: 1;
}
</style>
<style>
.card {

    max-width: 233px;

        margin-top: -7px;
    margin-right: auto;
    margin: -0px;
     background-repeat: no-repeat;
}
div#container
{
width: 100%;
    position: relative;
    text-align: left;
    margin-left: -8px;
}

<style>
@font-face {
        font-family: sans-serif;
    src: url(OpenSans-Semibold-webfont.ttf);
}

div {
         font-family: sans-serif;
    }   


.profession {
  color: #a94526;
  font-size: 13px;
    font-weight: 600;
}
.department {
  color: black;
  font-size: 12px;
    font-weight: 800;
}

.location {
  color: black;
  font-size: 12px;
    font-weight: 400;
}
.idno {
  color: white;
  font-size: 13px;
    font-weight: 900;
}

.name {
  color: black;
  font-size: 13px;
    font-weight: 800;
}
.name_ar {
  color: black;
  font-size: 14px;
    font-weight: 900;
}
       
       
       


#Image1
{
   border: transparent;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}



.style4 {font-size: 16px}
.style6 {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
}
.style7 {
    font-size: 18px;
    font-weight: bold;
    font-family: myFirstFont;
}
.style9 {font-size: 14px}
</style>

</head>
<?php
    $con=mysqli_connect("localhost","root","","card")
or die ( mysqli_error($con) );
$query= 'SET CHARACTER SET utf8';
mysqli_query($con,$query)
or die ('Can\'t charset in DataBase');
?>
    <?php
            $query = mysqli_query($con, "SELECT * FROM background");
            while($row = mysqli_fetch_assoc($query)){
           
            $id = $row['id'];
            $img = $row['img'];
            $img_back = $row['img_back'];
        ?>
<body>
<center>
   <div id="container">
      <div id="wb_Image1">
        <DIV id="wb_Image1" style="top: -7px; width: 233px; height: 362px; position: absolute; z-index: -1;"> <img src="<?php echo $img;?>" id="Image1" alt="">      </div>
      <div id="Html1">      </div>
   <div id="wb_Image2">
      <DIV id="wb_Image1" style="top: -0px; width: 233px; height: 358px; position: absolute; z-index: -1;"> <img src="http://192.168.1.164/card/files/background/<?php echo $img_back;?>" id="Image2" alt="">      </div>
</div>
   <?php
}
mysqli_close($con);
?>




<?php
    $con=mysqli_connect("localhost","root","","card")
or die ( mysqli_error($con) );
$query= 'SET CHARACTER SET utf8';
mysqli_query($con,$query)
or die ('Can\'t charset in DataBase');
?>

    <?php
            $id=$_GET['id'];
            $query = mysqli_query($con, "SELECT * FROM profile_card WHERE id='$id'");
            while($row = mysqli_fetch_assoc($query)){       

            $Name = $row['Name'];
            $ArabicName = $row['ArabicName'];
            $Profession = $row['Profession'];
                $Department = $row['Department'];
                $Location = $row['Location'];
                    $IdNo = $row['IdNo'];
                        $Photo = $row['Photo'];
        ?>

<div class="card">
    <table width="233" height="265" border="0" align="center" cellpadding="1" cellspacing="0" background="trasnparent"><!--DWLayoutTable-->

       <tr>
         <td width="233" height="74" valign="top"></td>
      </tr>
  
      <tr>
          <?php if($row['Photo'] != ""): ?>
         <td> <div align="center"><img width="68" height="88" align="top" src="http://democard.is-great.net/files/photo/<?php echo $Photo;?>"></div></td>
    <?php else: ?>
         <img src="no.jpg" width="70px" height="90px" id="wb_uid0">
                                    <?php endif; ?>
   
      </tr>
     
     
        <tr>
       
        <td height=20px"><div align="center" class="name_ar"><span class="style7"><?php echo $ArabicName;?></span></div></td>
       
      </tr>
     
     
      <tr>
        <td style="width:90%;" border="0" height=33px>
           <strong class="name style4"></strong>
        <div align="center" class="name"><?php echo $Name;?><strong></strong></div></td>
      </tr>
  
      <tr>
         <td height=30px"><div align="center" class="profession"><?php echo $Profession;?><strong></strong></div></td>
      </tr>
   
      <tr>
          <td height=16px">    <strong class="name style4"></strong>
        <div align="center" class="name"><?php echo $Location;?><strong></strong></div></td>
      </td>
      </tr>
        <tr>
         <td height=20px"><div align="center" class="department"><span class="style7"></span><?php echo $Department;?></div></td>
      </tr>
      <tr>
         <td height=30px">
       
            
        <div align="center" class="name">ID No: <?php echo $IdNo;?><strong></strong></div></td>
         
      </tr>
 
</table>

</div></div>

   <?php
}
mysqli_close($con);
?>

  
</body>
</html>

0 comments: