<?php 
session_start();
include('db.php'); 
include("pdate.php"); 
 
  

?>
<title> جزئیات سرمایه نقدی</title>
<link href="css/fontstyle.css" rel="stylesheet" type="text/css"/>	
<div align="center"  ><h1 class='fotntitle'><?php include("info/companyName.php")?></h1></div>
<div>
   <fieldset  dir='rtl' style="border: 1px solid #000;font-size: 16px;font-weight: bold">
  <legend class='fotntitle'>  جزئیات مـوجــودی پـولهـای نقد</legend>
 

  <blockquote class='fotntitle' dir='rtl' style="border: 1px solid #000;width: 700px;font-size: 14px;font-weight: bold">
			 
			 <ul>
			 <table border="0" width="600px" style="line-height: 40px">
			

			<?php
			$date=pdate("Y-m-d");
			echo" <tr>
				<td  colspan='3' style='font-size: 25px;font-weight: bold'> پـولهــای نقـدی بـه تـاریخ&nbsp;$date</td>
			</tr>";
			
			
			
			              
					      $asset_sql="select * from dailyasset where date='$date'";
						  $asset_query=$db ->query($asset_sql);
						  while($asset_row=$asset_query ->fetch_array()){
						          $currencyId=$asset_row['currencyId'];
						          $amount=$asset_row['amount'];
						    //=========================================
							    $currencyName_sql="select * from currencies where id='$currencyId'  ";
								$currencyName_query= $db ->query($currencyName_sql);
								$currencyName_row=$currencyName_query ->fetch_array();
								$currencyName=$currencyName_row['name'];
													  
						    //=========================================
						          
						  echo "
						  
						    <tr>
								<td style='width: 100px'><li>$currencyName</li></td>
								<td style='width: 400px'><hr style='height:1px;border:none;color:#333;background-color:#333;'></td>
								<td style='width: 100px;text-align: right'>".number_format($amount,2)." </td>
							</tr>";
						  
						  
						   
						  
						  
						  
						  
						  
						  }

                          
						  


					    
			?>
	
		
			 
			  
			 
			 
			 
							
			 
			</table>
			</ul>
			
		</blockquote>
		 
	  
	</table>
	</fieldset>
	</div>