Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<table width="100%" border="0" cellspacing="0" cellpadding="2px;" class="list">
2
	<tr>
3
	<td width='33%'>
4
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
5
	<tr class="listHead">
6
		<td class="left"><?php echo $spText['common']['Rank']?></td>
7
		<td class="right" colspan="2"><?php echo $spText['common']['Details']?></td>
8
	</tr>
9
	<?php
10
	$colCount = 2;
11
	if(count($list) > 0){
12
		$catCount = count($list);
13
		$i = 0;
14
		foreach($list as $listInfo){
15
 
16
			$class = ($i % 2) ? "blue_row" : "white_row";
17
            if($catCount == ($i + 1)){
18
                $leftBotClass = "tab_left_bot";
19
                $rightBotClass = "tab_right_bot";
20
            }else{
21
                $leftBotClass = "td_left_border td_br_right";
22
                $rightBotClass = "td_br_right";
23
            }
24
            $foundStyle = empty($listInfo['found']) ? "" : "background-color: #ffff00;";
25
			?>
26
			<tr class="<?php echo $class?>" style="<?php echo $foundStyle?>">
27
				<td class="<?php echo $leftBotClass?>" width='100px;'><b><?php echo $listInfo['rank']; ?></b></td>
28
				<td class='td_br_right' id='seresult' colspan="2">
29
					<a href='<?php echo $listInfo['url']?>' target='_blank'><?php echo stripslashes($listInfo['title']);?></a>
30
					<p><?php echo stripslashes($listInfo['description']);?><p>
31
					<label><?php echo $listInfo['url']?></label>
32
				</td>
33
			</tr>
34
			<?php
35
			$i++;
36
		}
37
	}else{
38
		?>
39
		<tr class="blue_row">
40
			<td class="tab_left_bot_noborder"></td>
41
			<td class="tab_right_bot" colspan="2" style="text-align: left;"><?php echo $spText['common']['No Records Found']?>!</td>
42
		</tr>
43
		<?php
44
	}
45
	?>
46
	<tr class="listBot">
47
		<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
48
		<td class="right"></td>
49
	</tr>
50
	</table>
51
	</td>
52
	</tr>
53
</table>