<?php
if (!defined('IN_CONTEXT')) die('access violation error!');
?>
<div class="content_toolbar">
<?php
include_once(dirname(__FILE__).'/_search.php');
?>
</div>
<div class="space"></div>
<table cellspacing="1" class="list_table" id="full_bulletin_list">
	<!--<thead>
		<tr>
		    <th> ID </th>
            <th><?php _e('Name'); ?></th>
            <th><?php _e('Create Time'); ?></th>
        </tr>
    </thead>
    -->
    <tbody>
    <?php
    if (sizeof($downloads) > 0) {
        $row_idx = 0;
        foreach ($downloads as $download) {
    ?>
        <tr class="row_style_<?php echo $row_idx; ?>">
        	<td><?php //echo $download->id; ?></td>
        	<td><a href="index.php?<?php echo Html::xuriquery('mod_download', 'download', array('file_name' => $download->name, 'dw_id' => $download->id)); ?>"><?php echo $download->name; ?></a></td>
        	<td><?php echo date('y-n-j g:i', $download->create_time); ?></td>
        </tr>
    <?php
            $row_idx = 1 - $row_idx;
        }
    } else {
    ?>
    	<tr>
    		<td colspan="4" class="row_style_0"><?php _e('No Records!'); ?></td>
    	</tr>
    <?php
    }
    ?>
    </tbody>
</table>
<?php
include_once(P_TPL.'/common/pager.php');
?>