예제 #1
0
 public function formatDatetime($value)
 {
     return SnapFormat::datetime($this->normalizeDateValue($value));
 }
예제 #2
0
<?php

/* @var $this MenuItemController */
/* @var $data MenuItem */
?>
<div class="alert alert-<?php 
echo $data->level == 'error' ? 'danger' : $data->level;
?>
">
	<strong><?php 
echo $data->level;
?>
 - <?php 
echo $data->category;
?>
</strong> - 
	<span class="date"><?php 
echo SnapFormat::datetime($data->logtime);
?>
</span><br />
	<p>&nbsp;</p>
	<pre><?php 
echo $data->message;
?>
</pre>
</div>
예제 #3
0
<div class="row">
    <div class="col-sm-2">
        <?php 
echo SnapFormat::datetime($data->payment_date, 'short');
?>
    </div>
    <div class="col-sm-6">
        <?php 
echo CHtml::encode($data->payment_note);
?>
    </div>
    <div class="col-sm-1">
        <?php 
echo CHtml::encode($data->payment_type);
?>
    </div>
    <div class="col-sm-1 text-right">
        <?php 
echo $data->payment_value > 0 ? SnapFormat::currency($data->payment_value) : '';
?>
    </div>
    <div class="col-sm-1 text-right">
        <?php 
echo $data->payment_value < 0 ? SnapFormat::currency(abs($data->payment_value)) : '';
?>
    </div>
    <div class="col-sm-1 text-right">
        <?php 
echo SnapFormat::currency($data->balance_at_date);
?>
    </div>
예제 #4
0
	<div class="col-md-6">
	<?php 
$this->beginWidget('bootstrap.widgets.BsPanel', array('title' => 'Recent Activity', 'titleTag' => 'h1', 'type' => BsHtml::PANEL_TYPE_INFO));
?>
		<?php 
foreach ($RecentActivity as $Log) {
    ?>
		<p class="alert alert-<?php 
    echo $Log->level == 'error' ? 'danger' : $Log->level;
    ?>
">
			<strong><?php 
    echo $Log->category;
    ?>
</strong> - 
			<span class="date"><?php 
    echo SnapFormat::datetime($Log->logtime);
    ?>
</span><br />
			<?php 
    echo $Log->message;
    ?>
		<p>
		<?php 
}
?>
	<?php 
$this->endWidget();
?>
	</div>
</div>