Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<table id="upload-data" style="width: 80%">
        <thead>
            <tr>
                <th>Upload Id</th>
                                <th>Requested By</th>
                                <th>Request Timestamp</th>
                                <th>Total Items</th>
                                <th>Status</th>
                                <th>Download Report</th>
                                <th>View Results</th>
            </tr>
        </thead>
        <tbody>
        #set($items = $action.getPreviousUploads())
    #foreach ( $item in $items )
            <tr style="border: 1px">
                <td>$item.getUploadId()</td>
                                <td>$item.getUserEmail()</td>
                                <td>$action.getTimestamp($item.getUploadId())</td>
                                <td>$item.getItem_id()</td>
                                #if($item.isProcessed())
                                                <td style="color:green;font-weight:bold;">Ready</td>
                                #else
                                                <td style="color:red;font-weight:bold;">Pending</td>
                                #end
                                #if($item.isProcessed())
                                        <td><a href="/Support/competition-scraping!downloadReport?requestId=$item.getUploadId()"><input type="button" value="Download Report" class="downloadReport" uploadId="$item.getUploadId()"></a></td>
                                #else
                                        <td><input type="button" value="Download Report" disabled/></td>
                                #end
                                #if($item.isProcessed())
                                        <td><input type="button" value="View Report" class="viewReport" uploadId="$item.getUploadId()"></td>
                                #else
                                        <td><input type="button" value="View Report" disabled/></td>
                                #end
            </tr>
    #end
        </tbody>
    </table>