这是我的HTML代码 我想要的是下载文件时我希望单选按钮变为绿色
下载并且一切正常发生
<table border="0" cellpadding="2" width="80%">
<tr align="center" style="background:url(../images/nav.png) repeat-x; color:#FFF; font-weight:bold">
<td>Status</td>
<td>Request Id</td>
<td>File Name</td>
<td>Date</td>
</tr>
<? $sql=mysql_query( "select * from ipad_download "); while($row=mysql_fetch_array($sql)){
?>
<tr align="center" bgcolor="#E8F8FF" style="color:#006">
<td>
<input type="radio" name="status" id="status" />
</td>
<td>
<?=$row[ 'RequestId']?>
</td>
<td><a href='' onClick="return download_ipadReport('<?=$row['fileName'] ?>');"><?=$row['fileName']?></a>
</td>
<td>
<?=$row[ 'Date']?>
</td>
</tr>
<? } ?>
</table>
和要下载的代码是
<?
include '../dbConnect.php';
session_start();
$createdUser=$_SESSION['userName'];
$file=$_GET['file'];
//$file = $createdUser."_".$date.'.xls';
if (file_exists($file)) {
header('Content-Description: File Transfer');
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename=ipadServiceReport.xls');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
readfile($file);
exit;
}
?>
因此,当文件完全下载时,我希望单选按钮变为绿色。