first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
class stReminderGadgetActions extends stGadgetActions
|
||||
{
|
||||
public function executeIndex()
|
||||
{
|
||||
stEventDispatcher::getInstance()->notify(new sfEvent($this, 'stReminderBackend.beforeReminderCount', array()));
|
||||
$c = new Criteria();
|
||||
$c->add(BackendAlertPeer::DISPLAY,1);
|
||||
$c->addDescendingOrderByColumn(BackendAlertPeer::CREATED_AT);
|
||||
$this->items = BackendAlertPeer::doSelect($c);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<div class="content_update_box">
|
||||
<table>
|
||||
<?php foreach ($items as $item) :?>
|
||||
<tr>
|
||||
<?php $item->setCulture($sf_params->get('culture')); ?>
|
||||
<td style="width: 130px; vertical-align: top;">
|
||||
<?php echo $item->getCreatedAt(); ?>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $item->getName(); ?>
|
||||
|
||||
</td>
|
||||
<tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
<style type="text/css">
|
||||
.content_update_box {
|
||||
max-width: 480px;
|
||||
margin: 0px auto
|
||||
}
|
||||
</style>
|
||||
<div class="clear"></div>
|
||||
Reference in New Issue
Block a user