mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-02-17 22:48:35 +00:00
Initial commit, Ecard system build with CodeIgniter PHP framework
Currently working - Basic structure - Basic caching and gzip compression for speed - Admin authentication
This commit is contained in:
committed by
Ismo Vuorinen
parent
345d8ea65a
commit
c10c9e3131
33
application/views/_partial_cardlist.php
Normal file
33
application/views/_partial_cardlist.php
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
<div class="large-12 columns">
|
||||
<div class="panel">
|
||||
<ul class="small-block-grid-2 large-block-grid-5">
|
||||
<?php
|
||||
|
||||
$t_start = "1302000000";
|
||||
$t_end = time();
|
||||
|
||||
if (empty($amount)) {
|
||||
$amount = 5;
|
||||
}
|
||||
|
||||
for ($i=0; $i < $amount; $i++) {
|
||||
$url = site_url('/ecards/' . md5($i));
|
||||
|
||||
$url = '<a href="'.$url.'" title="'.$i.'">';
|
||||
|
||||
?>
|
||||
<li class="image-panel">
|
||||
<?php echo $url; ?>
|
||||
<img src="http://placekitten.com/800/500" alt="placeholder+image">
|
||||
<em><?php echo date("d.m.Y \k\l\o H.i", rand($t_start, $t_end)); ?></em>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user