if ($value=="Process")
$str.='<img src="1.png">';
if ($value=="Receive")
$str.='<img src="2.png">';
if ($value=="Reject")
$str.='<img src="3.png">';
$value=$str;
<p>The .table-bordered class adds borders to a table:</p> <table class="table table-bordered"> <thead> <th>No</th> <th>DocName</th> <th>CurrentDate</th> <th>EmpId</th> <th>Page</th> <th>DocFile</th> </thead> <tr> <?php $no = 1; ?> <?php $query = mysql_query("SELECT * FROM hr WHERE (DATE(`currentdate`) = CURDATE()) ORDER BY id DESC") or die(mysql_error()); while ($row = mysql_fetch_array($query)) { ?> <td><?php echo $no; $no++ ?></td> <td> <?php echo $row['DocName'] . ''; ?> </td> <td> <?php echo $row['currentdate'] . ''; ?> </td> <td> <?php echo $row['EmpId'] . ''; ?> </td> <td> <?php echo $row['page'] . ''; ?> </td> <td> <?php echo $row['DocFile'] . ''; ?> </td> </tr> <?php }; ?> </table> </div> |
<?php
$fileTempName = $_FILES['RemoteFile']['tmp_name'];
$fileSize = $_FILES['RemoteFile']['size'];
$fileName = "UploadedImages\\".$_FILES['RemoteFile']['name'];
if (file_exists($fileName))
$fWriteHandle = fopen($fileName, 'w');
else
$fWriteHandle = fopen($fileName, 'w');
$fReadHandle = fopen($fileTempName, 'rb');
$fileContent = fread($fReadHandle, $fileSize);
fwrite($fWriteHandle, $fileContent);
fclose($fWriteHandle);
echo "DWTBarcodeUploadSuccess:".$_FILES['RemoteFile']['name'];
?>
<script>
function AcquireImage(){
var DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');
DWObject.IfShowUI = false;
DWObject.SelectSource();
DWObject.OpenSource();
DWObject.AcquireImage();
}
function btnUpload_onclick(){
DWObject.HTTPUploadThroughPostEx(
strHTTPServer,
DWObject.CurrentImageIndexInBuffer,
strActionPage,
uploadfilename,
strImageType );
}
</script>
if ($value=="Process") $str.='<img src="1.png">'; if ($value=="Receive") $str.='<i...