<?php
include("config.php");
$data1 = mysql_query("SELECT * FROM `memberinfo`");
 // var_dump($data1);
  print_r($info);
  while($info = mysql_fetch_array($data1)) 
	{ 
	$a="";
	$b="";
	$c=$info['chargeforsms'] ;
	$d=$info['totalsms'];
	 $charge=($c * $d);
	 //echo $charge;
	 $clientname=$info['clientname'] ;
	 $undelivered=$info['undelivered'] ;
	  $country=$info['country'] ;
	
	$a.='<td>'.$info['senddate'].'</td>
	<td>'.$info['senderid'].'</td>
	<td>'.$info['smstext'].'</td>
	<td>'.$info['smstype'].'</td>
	';
	$delivered=$info['delivered'];
	$subtooperator=$info['subtooperator'];
	$chargeforsms=$info['chargeforsms'];
	$totalsms=$info['totalsms'];
	$pdf=$info['pdf'];
	
	
	
	
}
?>

<link href="css/style.css" rel="stylesheet"/>
 <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
 <style>
.ui-progressbar {
position: relative;
}
.progress-label {
position: absolute;
left: 50%;
top: 4px;
font-weight: bold;
text-shadow: 1px 1px 0 #fff;
}
</style>
<script>
$(function() {
var progressbar = $( "#progressbar" ),
progressLabel = $( ".progress-label" );
progressbar.progressbar({
value: false,
change: function() {
progressLabel.text( progressbar.progressbar( "value" ) + "%" );
},
complete: function() {
progressLabel.text( "Complete!" );
}
});
function progress() {
var val = progressbar.progressbar( "value" ) || 0;
progressbar.progressbar( "value", val + 1 );
if ( val < 99 ) {
setTimeout( progress, 100 );
}
}
setTimeout( progress, 500 );
});
</script>

<div class="title">
<h2> <span style="font-size:18px; font:Arial, Helvetica, sans-serif; font-family:Arial, Helvetica, sans-serif;">DLR Details :</span> <?php echo $clientname; ?></h2>
</div>
<div style="width:100%;">
<div style="float:left; width:45%;">
<h3 class="newline"> Progress </h3>
<div style="margin:10px 0px; clear:both;">
<div class="bar"></div>
<span style="float:left; margin-left:10px; font-size:10px;">Total SMS : <?php echo $totalsms; ?> </span>
</div>
<div style="margin:10px 0px; padding:10px 0px; clear:both;">
<div style="width:400px; background:#f1f1f1; float:left;">&nbsp;</div>
<span style="float:left; margin-left:10px; font-size:10px;"><strong>In Queue : 0</strong> </span>
</div>
<table class="sidebrd" style="margin-top:50px;" width="550" border="0" cellspacing="0" cellpadding="0">
  <tr class="bgrey">
   <td class="sdate">Send Date </td>
	<td class="sdate">Sender Id </td>
	<td class="stext">SMS Text </td>
	<td class="stype">SMS Type </td>
	 </tr>
	  <tr>
   <?php
   echo $a;
 ?>
	  </tr>
 


</table>
</div>
<div style="float:right; width:45%;">
<h3 class="newline"> SMS Summary </h3>

<table class="sidebrdright" border="0" width="500" cellpadding="0" cellspacing="0">
  <tr>
  
	<td>Delivered </td>
	  <td><span class="smsund"><?php echo $delivered; ?> </span> </td>
	
	  </tr>
	  
	   <tr>
  
	<td>UnDelivered </td>
	  <td><span class="smsd"><?php echo $undelivered; ?> </span> </td>
	
	  </tr>
	    <td>Submitted to operator  </td>
	  <td><span class="smssub"><?php echo $subtooperator; ?> </span></td>
	  <tr>
	  
	  
	    </tr>
			
	  <tr>
	  <td>Charges for SMS  </td>
	  <td> <span class="smsdww"><?php echo $chargeforsms; ?> </span> </td>
	  </tr>
	  

	    <tr>
	 <td>Total for SMS </td>
	  <td> <span class="chargesms"><?php echo $totalsms; ?> </span></td>
	  </tr>
	   <tr>
	 <td>Credits deducted</td>
	  <td><span class="chargesms"><?php echo $charge; ?> </span> </td>
	  </tr>
	    <tr>
	 <td>Downlond Pdf</td>
	  <td>
	  <a href="pdf/<?php echo $pdf; ?>" download><?php echo $pdf; ?></a>
	   </td>
	  </tr>
 <tr>
	 <td>Country </td>
	  <td><?php echo $country; ?> </td>
	  </tr>

</table>
</div>

<p style="display:block; clear:both;"><a href="index.php" class="back">Create New Record</a></p>
</div>