Example #1
0
                    <th class="warning" style="width: 200px;"><?php 
echo $model->getAttributeLabel('customer_id');
?>
</th>
                    <td class="info"><?php 
echo isset($arrNetCustomer[$model->customer_id]) ? $arrNetCustomer[$model->customer_id] : '';
?>
</td>
                </tr>
                <tr>
                    <th class="warning"><?php 
echo $model->getAttributeLabel('entry_date');
?>
</th>
                    <td class="info"><?php 
echo DateTimeUtils::htmlDateFormat($model->entry_date, DateTimeUtils::FM_VIEW_DATE_WD, $fmShortDatePhp, true);
?>
</td>
                </tr>
                <tr>
                    <th class="warning"><?php 
echo $model->getAttributeLabel('credit');
?>
</th>
                    <td class="info"><?php 
echo NumberUtils::format($model->credit);
?>
</td>
                </tr>
            </table>
            <div style="display: none">
Example #2
0
                <?php 
    echo $model->getAttributeLabel('id');
    ?>
                <span class="pull-right"><?php 
    echo $model->id;
    ?>
</span>
            </a></li><?php 
}
?>
            <li><a href="javascript:void(0);">
                <?php 
echo $model->getAttributeLabel('entry_date');
?>
                <?php 
echo DateTimeUtils::htmlDateFormat($model->entry_date, DateTimeUtils::FM_VIEW_DATE_WD, $fmShortDatePhp, ['class' => 'pull-right']);
?>
            </a></li>
            <li><a href="javascript:void(0);">
                <?php 
echo $model->getAttributeLabel('account_source');
?>
                <span class="pull-right"><?php 
echo isset($arrAccount[$model->account_source]) ? $arrAccount[$model->account_source] : '';
?>
</span>
            </a></li>
            <li><a href="javascript:void(0);">
                <?php 
echo $model->getAttributeLabel('account_target');
?>
Example #3
0
        ?>
">
                    <td style="vertical-align: middle; text-align: center"><?php 
        echo $item->item_no;
        ?>
</td>
                    <td style="vertical-align: middle; text-align: left"><?php 
        echo $item->item_name;
        ?>
</td>
                    <td style="vertical-align: middle; text-align: right"><?php 
        echo NumberUtils::format($item->price);
        ?>
</td>
                    <td style="vertical-align: middle; text-align: left"><?php 
        echo DateTimeUtils::htmlDateFormat($item->pay_date, DateTimeUtils::FM_VIEW_DATE, DateTimeUtils::FM_DB_DATE, true);
        ?>
</td>
                    <td style="vertical-align: middle; text-align: left"><?php 
        echo $item->description;
        ?>
</td>
                </tr>
            <?php 
    }
    ?>
</tbody>
        </table>
    </div></div></div></div></div>
</div></div></div><?php 
}
Example #4
0
 $htmlAction = '<div class="btn-group">';
 $htmlAction .= StringUtils::format("<a href='javascript:void(0)' onclick='editBillItem(this);' data-maps='{0}' class='btn btn-{1}'>{2}</a>", [$datasetUpdateStr, $btnClass, $lblEdit]);
 $htmlAction .= '<button type="button" class="btn btn-' . $btnClass . ' dropdown-toggle" data-toggle="dropdown">';
 $htmlAction .= '<span class="caret"></span><span class="sr-only">Toggle Dropdown</span>';
 $htmlAction .= '</button>';
 $htmlAction .= '<ul class="dropdown-menu" role="menu">';
 $htmlAction .= implode('', $arrBtns);
 $htmlAction .= '</ul></div>';
 // show error columns
 $colItemNameStyle = '';
 $colPriceStyle = '';
 $colPayDateStyle = '';
 $colDescriptionStyle = '';
 $htmlItemName = $item->item_name;
 $htmlPrice = is_numeric($item->price) ? NumberUtils::format($item->price) : $item->price;
 $htmlPayDate = empty($item->pay_date) ? '' : DateTimeUtils::htmlDateFormat($item->pay_date, DateTimeUtils::FM_VIEW_DATE_WD, $fmShortDatePhp, true);
 $htmlDescription = $item->description;
 if (!$item->is_valid) {
     $errorItemName = $item->getErrors('item_name');
     if (count($errorItemName) > 0) {
         $colItemNameStyle = ' class="danger"';
         $htmlItemName = '<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="top" title="' . $errorItemName[0] . '"></i> ' . $htmlItemName;
     }
     $errorPrice = $item->getErrors('price');
     if (count($errorPrice) > 0) {
         $colPriceStyle = ' class="danger"';
         $htmlPrice = '<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="top" title="' . $errorPrice[0] . '"></i> ' . $htmlPrice;
     }
     $errorPayDate = $item->getErrors('pay_date');
     if (count($errorPayDate) > 0) {
         $colPayDateStyle = ' class="danger"';
Example #5
0
<?php

use app\components\DateTimeUtils;
use app\components\MasterValueUtils;
use app\components\NumberUtils;
use app\components\StringUtils;
$this->title = Yii::t('oth.note', 'Notes List');
$currentDate = DateTimeUtils::getNow();
$currentDateStr = DateTimeUtils::htmlDateFormat($currentDate, DateTimeUtils::FM_VIEW_DATE, null, true);
$rowindex = 0;
?>

<div class="row"><div class="col-md-12"><div class="box">
    <div class="box-header with-border">
        <h3 class="box-title"><?php 
echo Yii::t('oth.note', 'Items');
?>
</h3>
    </div>
    <div class="box-body table-responsive no-padding"><table class="table table-bordered"><tbody>
        <tr class="warning">
            <th style="text-align: center"><?php 
echo Yii::t('fin.grid', 'No.');
?>
</th>
            <th style="text-align: center"><?php 
echo Yii::t('fin.grid', 'Note');
?>
</th>
            <th style="text-align: center"><?php 
echo Yii::t('fin.grid', 'Start Date');
Example #6
0
?>

<?php 
if ($model) {
    ?>
<div class="row"><div class="col-md-12"><div class="box box-widget widget-detail">
    <?php 
    $startDate = DateTimeUtils::parse($model->start_date, DateTimeUtils::FM_DB_DATE);
    $endDateHtml = null;
    $endDate = null;
    if (empty($model->end_date)) {
        $endDate = DateTimeUtils::getNow();
        $endDateHtml = '<span class="text-fuchsia pull-right">' . $endDate->format(DateTimeUtils::FM_VIEW_DATE_WD) . '</span>';
    } else {
        $endDate = DateTimeUtils::parse($model->end_date, DateTimeUtils::FM_DB_DATE);
        $endDateHtml = DateTimeUtils::htmlDateFormat($endDate, DateTimeUtils::FM_VIEW_DATE_WD, null, ['class' => 'pull-right']);
    }
    $interval = $endDate->diff($startDate);
    $days = ($interval->invert === 1 ? 1 : -1) * $interval->days + 1;
    ?>
    <div class="widget-detail-header bg-maroon"><h3 class="widget-detail-title"><?php 
    echo Yii::t('fin.form', 'Details');
    ?>
</h3></div>
    <div class="box-footer">
        <ul class="nav nav-stacked nav-no-padding">
            <li><a href="javascript:void(0);">
                <?php 
    echo $model->getAttributeLabel('id');
    ?>
                <span class="pull-right"><?php 
Example #7
0
                <th class="warning" style="width: 200px;"><?php 
    echo $model->getAttributeLabel('share_id');
    ?>
</th>
                <td class="info"><?php 
    echo $model->share_id;
    ?>
</td>
            </tr>
            <tr>
                <th class="warning"><?php 
    echo $model->getAttributeLabel('share_date');
    ?>
</th>
                <td class="info"><?php 
    echo DateTimeUtils::htmlDateFormat($model->share_date, DateTimeUtils::FM_VIEW_DATE_WD, DateTimeUtils::FM_DB_DATE, true);
    ?>
</td>
            </tr>
            <tr>
                <th class="warning"><?php 
    echo $model->getAttributeLabel('share_value');
    ?>
</th>
                <td class="info"><?php 
    echo NumberUtils::format($model->share_value);
    ?>
</td>
            </tr>
            <tr>
                <th class="warning"><?php