Exemplo n.º 1
0
?>



<div class="row-fluid">
    <div class="span2 offset1">
        <?php 
if (Yii::app()->user->checkAccess('administrator') || Yii::app()->user->checkAccess('client')) {
    ?>
            <?php 
    $this->beginWidget('zii.widgets.CPortlet', array('title' => '<span class=" icon-wrench"></span>Admin Action', 'titleCssClass' => '', 'htmlOptions' => array('style' => 'text-align: left;padding-left: 20px;')));
    ?>
            <h5>
                <span class="icon-download"></span>
                <?php 
    echo CHtml::link("Export Data <span class='label label-info'>" . BarryOptLog::getCountAll() . "</span>", array('/export'));
    ?>
            </h5>
            <hr>
            <h5>
                <span class="icon-calendar"></span>

                <?php 
    echo CHtml::link("Export Today  <span class='label label-info'>" . BarryOptLog::getCountToday() . "</span>", array('/export/today'));
    ?>
            </h5>
            <hr>
            <h5>
                <span class="icon-calendar"></span>
                <?php 
    echo CHtml::link("Export Range", "#", array("onclick" => '$("#exportModal").dialog("open"); return false;'));