I can't test this at the moment but what I am talking about is something like the edits is the following code:
Code:
<!-- list of products -->
<?php
$AAA=0//NICCOL
while (!$downloads->EOF) {
$AAA++;//NICCOL
$AAF= floor($AAA/2);//NICCOL
if ($AAF=($AAA/2){$row_class="download-even";}//NICCOL
else{$row_class="download-odd";}//NICCOL
// MySQL 3.22 does not have INTERVAL
list($dt_year, $dt_month, $dt_day) = explode('-', $downloads->fields['date_purchased_day']);
$download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads->fields['download_maxdays'], $dt_year);
$download_expiry = date('Y-m-d H:i:s', $download_timestamp);
$is_downloadable = ( (file_exists(DIR_FS_DOWNLOAD . $downloads->fields['orders_products_filename']) && (($downloads->fields['download_count'] > 0 && $download_timestamp > time()) || $downloads->fields['download_maxdays'] == 0)) ) ? true : false;
$zv_filesize = filesize (DIR_FS_DOWNLOAD . $downloads->fields['orders_products_filename']);
if ($zv_filesize >= 1024) {
$zv_filesize = number_format($zv_filesize/1024/1024,2);
$zv_filesize_units = TEXT_FILESIZE_MEGS;
} else {
$zv_filesize = number_format($zv_filesize);
$zv_filesize_units = TEXT_FILESIZE_BYTES;
}
?>
<tr class="tableRow<?php echo ' '.$row_class; ?>">
<!-- left box -->
If you compare it to your existing file you should see which bits to add. That should create two new classes in the code. The classes will be:
.download-even
.download-odd
But as I say I am not in a position to test this so it may have lots of typos in it. But the theory should work. Got to sleep now :-)
Nik