website_jukni/pastebin/themes/i386/views/list.php

46 lines
2.3 KiB
PHP
Raw Permalink Normal View History

<?php $this->load->view('defaults/header');?>
<div class="page-header">
<h1><?php echo lang('paste_recent'); ?> <a href="<?php echo site_url('lists/rss'); ?>">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJDSURBVHjajJJNSBRhGMd/887MzrQxRSLbFuYhoUhEKsMo8paHUKFLdBDrUIdunvq4RdClOq8Hb0FBSAVCUhFR1CGD/MrIJYqs1kLUXd382N356plZFOrUO/MMz/vO83+e93n+f+1zF+kQBoOQNLBJg0CTj7z/rvWjGbEOIwKp9O7WkhtQc/wMWrlIkP8Kc1lMS8eyFHpkpo5SgWCCVO7Z5JARhuz1Qg29fh87u6/9VWL1/SPc4Qy6n8c0FehiXin6dcCQaylDMhqGz8ydS2hKkmxNkWxowWnuBLHK6G2C8X6UJkBlxUmNqLYyNbzF74QLDrgFgh9LLE0NsPKxjW1Hz2EdPIubsOFdH2HgbwAlC4S19dT13o+3pS+vcSfvUcq9YnbwA6muW9hNpym/FWBxfh0CZkKGkPBZeJFhcWQAu6EN52QGZ/8prEKW+cdXq0039UiLXhUYzdjebOJQQI30UXp6mZn+Dtam32Afu0iyrgUvN0r+ZQbr8HncSpUVJfwRhBWC0hyGV8CxXBL5SWYf9sYBidYLIG2V87/ifVjTWAX6AlxeK2C0X8e58hOr/Qa2XJ3iLMWxB1h72tHs7bgryzHAN2o2gJorTrLxRHVazd0o4TXiyV2Yjs90uzauGvvppmqcLjwmbZ3V7BO2HOrBnbgrQRqWUgTZ5+Snx4WeKfzCCrmb3axODKNH+vvUyWjqyK4DiKQ0eXSpFsgVvLJQWpH+xSpr4otg/HI0TR/t97cxTUS+QxIMRTLi/9ZYJPI/AgwAoc3W7ZrqR2IAAAAASUVORK5CYII=" alt="rss" title="RSS" /></a>
</h1>
<?php $this->load->view('view/search');?>
</div>
<?php
if(!empty($pastes)){ ?>
<table class="recent table table-striped table-bordered">
<thead>
<tr>
<th class="title"><?php echo lang('table_title'); ?></th>
<th class="name"><?php echo lang('table_name'); ?></th>
<th class="lang"><?php echo lang('table_lang'); ?></th>
<th class="hidden">UNIX</th>
<th class="time"><?php echo lang('table_time'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach($pastes as $paste) {
?>
<tr>
<td class="first"><a href="<?php echo site_url("view/".$paste['pid']); ?>"><?php echo $paste['title']; ?></a></td>
<td><?php echo $paste['name']; ?></td>
<td><?php echo $paste['lang']; ?></td>
<td class="hidden"><?php echo $paste['created']; ?></td>
<td><?php $p = explode(",", timespan($paste['created'], time()));
echo sprintf($this->lang->line('paste_ago'),$p[0]); ?>.</td>
</tr>
<?php }?>
</tbody>
</table>
<?php } else { ?>
<p><?php echo lang('paste_missing'); ?> :(</p>
<?php }?>
<?php echo $pages; ?>
<div class="spacer"></div>
<?php $this->load->view('defaults/footer');?>