Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12256 kshitij.so 1
<table id="upload-data" style="width: 80%">
2
        <thead>
3
            <tr>
4
                <th>Upload Id</th>
5
				<th>Requested By</th>
6
				<th>Request Timestamp</th>
7
				<th>Total Items</th>
8
				<th>Status</th>
9
				<th>Download Report</th>
10
				<th>View Results</th>
11
            </tr>
12
        </thead>
13
        <tbody>
14
	#set($items = $action.getPreviousUploads())
15
    #foreach ( $item in $items )
16
            <tr style="border: 1px">
17
                <td>$item.getUploadId()</td>
18
				<td>$item.getUserEmail()</td>
19
				<td>$action.getTimestamp($item.getUploadId())</td>
20
				<td>$item.getItem_id()</td>
21
				#if($item.isProcessed())
22
						<td style="color:green;font-weight:bold;">Ready</td>
23
				#else
24
						<td style="color:red;font-weight:bold;">Pending</td>
25
				#end
26
				#if($item.isProcessed())
27
					<td><a href="/Support/competition-scraping!downloadReport?requestId=$item.getUploadId()"><input type="button" value="Download Report" class="downloadReport" uploadId="$item.getUploadId()"></a></td>
28
				#else
29
					<td><input type="button" value="Download Report" disabled/></td>
30
				#end
31
				#if($item.isProcessed())
32
					<td><input type="button" value="View Report" class="viewReport" uploadId="$item.getUploadId()"></td>
33
				#else
34
					<td><input type="button" value="View Report" disabled/></td>
35
				#end
36
            </tr>
37
    #end
38
        </tbody>
39
    </table>