Beispiel #1
0
        <?php 
echo $form->error($model, 'schedule_date');
?>
    </div>
        
    <div class="in-row clearfix">
        <?php 
echo $form->labelEx($model, 'schedule_time', array('class' => 'lb'));
?>
        <div class="group-4">
            <?php 
Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker');
?>
                <?php 
//                $this->widget('zii.widgets.jui.CJuiDatePicker', array(
$this->widget('CJuiDateTimePicker', array('model' => $model, 'attribute' => 'schedule_time', 'mode' => 'time', 'options' => array('showAnim' => 'fold', 'dateFormat' => ActiveRecord::getDateFormatJquery(), 'changeMonth' => true, 'changeYear' => true, 'showOn' => 'button', 'buttonImage' => Yii::app()->theme->baseUrl . '/img/calendar-ico.png', 'buttonImageOnly' => true), 'htmlOptions' => array('class' => 'text w-5', 'style' => 'width: 200px;', 'readonly' => true)));
?>
        </div>
        <?php 
echo $form->error($model, 'schedule_time');
?>
    </div>
        
    <div class="in-row clearfix">
        <?php 
echo $form->labelEx($model, 'remark', array('class' => 'lb'));
?>
        <div class="group-4">
            <?php 
echo $form->textArea($model, 'remark', array('class' => 'text w-0', 'size' => 60, 'maxlength' => 255));
?>
Beispiel #2
0
echo Yii::t('translation', $form->labelEx($model, 'voucher_ma_gross_comm'));
?>
		<?php 
echo $form->textField($model, 'voucher_ma_gross_comm', array('size' => 60, 'maxlength' => 16, 'class' => 'number_only'));
?>
		<?php 
echo $form->error($model, 'voucher_ma_gross_comm');
?>
	</div>
    
        <div class="row">
		<?php 
echo Yii::t('translation', $form->labelEx($model, 'receipt_date_paid'));
?>
                <?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'receipt_date_paid', 'options' => array('showAnim' => 'fold', 'dateFormat' => ActiveRecord::getDateFormatJquery(), 'changeMonth' => true, 'changeYear' => true, 'showOn' => 'button', 'buttonImage' => Yii::app()->theme->baseUrl . '/img/calendar-ico.png', 'buttonImageOnly' => true), 'htmlOptions' => array('class' => '', 'style' => 'width: 200px;margin-right:10px;', 'readonly' => 'readonly')));
?>
            <?php 
echo $form->error($model, 'receipt_date_paid');
?>
	</div>
    

	<div class="row buttons" style="padding-left: 135px;">
		        <?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'label' => $model->isNewRecord ? Yii::t('translation', 'Create') : Yii::t('translation', 'Save'), 'type' => 'null', 'size' => 'small'));
?>
	
        <button class="iframe_close" type="button">Cancel</button>
        </div>
Beispiel #3
0
                <div class="in-row clearfix pass_expiry_date">
                    <!--<label class="lb">Pass Expiry Date <span class="require">*</span> :</label>-->
                    <?php 
echo $form->labelEx($model, 'pass_expiry_date', array('class' => 'lb'));
?>

                    <?php 
if ($model->pass_expiry_date != '') {
    $model->pass_expiry_date = DateHelper::toDateFormat($model->pass_expiry_date);
}
?>

                    <div class="group-4">
                        <?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'pass_expiry_date', 'options' => array('showAnim' => 'fold', 'dateFormat' => ActiveRecord::getDateFormatJquery(), 'changeMonth' => true, 'changeYear' => true, 'showOn' => 'button', 'buttonImage' => Yii::app()->theme->baseUrl . '/admin/images/icon_calendar_r.gif', 'buttonImageOnly' => true), 'htmlOptions' => array('class' => 'w-16', 'style' => 'height:20px;width:245px;margin-left:3px;')));
?>

                        <?php 
echo $form->error($model, 'pass_expiry_date');
?>

                    </div>
                </div>

                <div class="in-row clearfix scanned_employment_pass">
                    <!--<label class="lb">Upload Employment Pass/Passport <span class="require"></span> :</label>-->
                    <?php 
echo $form->labelEx($model, 'scanned_employment_pass', array('class' => 'lb'));
?>
echo $form->dropDownList($mTransactions->mTenatDefault, 'id_type', Users::$aIdType, array('empty' => 'Select', 'class' => 'text'));
?>
                    <?php 
echo $form->error($mTransactions->mTenatDefault, 'id_type');
?>
                </div>
                
            </div>

            <div class="in-row clearfix pass_expiry_date">
                <?php 
echo $form->labelEx($mTransactions->mTenatDefault, 'pass_expiry_date', array('class' => 'lb'));
?>
                <div class="group-4">
                    <?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $mTransactions->mTenatDefault, 'attribute' => 'pass_expiry_date', 'options' => array('showAnim' => 'fold', 'dateFormat' => ActiveRecord::getDateFormatJquery(), 'changeMonth' => true, 'changeYear' => true, 'showOn' => 'button', 'buttonImage' => Yii::app()->theme->baseUrl . '/img/calendar-ico.png', 'buttonImageOnly' => true), 'htmlOptions' => array('class' => 'text', 'style' => 'width:166px;')));
?>
                    <?php 
echo $form->error($mTransactions->mTenatDefault, 'pass_expiry_date');
?>
                </div>                
            </div>        

            <div class="in-row clearfix scanned_employment_pass">
                <?php 
$display = 'display_none';
$scanned_employment_pass = $mTransactions->mTenatDefault->scanned_employment_pass;
$mUserRelation = $mTransactions->mTenatDefault->rUser;
//                        if($mUserRelation){
//                            $scanned_employment_pass = $mUserRelation->upload_employment_pass_passport;
//                        }
Beispiel #5
0
    <div class="row more_col daily_col report_type_1">
        <div class="mycol1">
                <?php 
echo Yii::t('translation', $form->label($model, 'date_from'));
?>
                <?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'date_from', 'options' => array('showAnim' => 'fold', 'dateFormat' => ActiveRecord::getDateFormatJquery(), 'maxDate' => '0', 'changeMonth' => true, 'changeYear' => true, 'showOn' => 'button', 'buttonImage' => Yii::app()->theme->baseUrl . '/img/calendar-ico.png', 'buttonImageOnly' => true, 'showButtonPanel' => true), 'htmlOptions' => array('class' => 'w-16', 'size' => '16', 'readonly' => 'readonly', 'style' => 'float:left;margin-right: 10px;')));
?>
     		
        </div>
        <div class="mycol2">
                <?php 
echo Yii::t('translation', $form->label($model, 'date_to'));
?>
                <?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'date_to', 'options' => array('showAnim' => 'fold', 'dateFormat' => ActiveRecord::getDateFormatJquery(), 'maxDate' => '0', 'changeMonth' => true, 'changeYear' => true, 'showOn' => 'button', 'buttonImage' => Yii::app()->theme->baseUrl . '/img/calendar-ico.png', 'buttonImageOnly' => true, 'showButtonPanel' => true), 'htmlOptions' => array('readonly' => 'readonly', 'class' => 'w-16', 'size' => '16', 'style' => 'float:left;margin-right: 10px;')));
?>
     		
        </div>
    </div>
    
    <div class="row buttons" style="padding-left: 159px;">
        <?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'label' => Yii::t('translation', 'Show Report'), 'type' => 'null', 'size' => 'small'));
?>
	
        <?php 
// if(isset($_SESSION['REPORT_DATA']['COUNT_TRANS'])):
$cAction = strtolower(Yii::app()->controller->action->id);
$link = Yii::app()->createAbsoluteUrl('admin/transactions/summaryReport', array('to_excel' => 1));
?>