예제 #1
0
?>

    <div class="page-header">
        <h1>Forms</h1>
    </div>

    <h2>Default styles</h2>

    <div class="bs-docs-example">
        <?php 
echo TbHtml::beginFormTb();
?>
            <fieldset>
                <legend>Legend</legend>
                <?php 
echo TbHtml::label('Label name', 'text');
?>
                <?php 
echo TbHtml::textField('text', '', array('placeholder' => 'Type something...'));
?>
                <?php 
echo TbHtml::checkBox('checkMeOut', false, array('label' => 'Check me out'));
?>
                <?php 
echo TbHtml::submitButton('Submit');
?>
            </fieldset>
        <?php 
echo TbHtml::endForm();
?>
    </div>
예제 #2
0
                                    <div class="row-fluid">           
 

<?php 
//array que ir� receber os sados selecionados
$selected_category = array();
//para cada plataforma
foreach ($model->category as $cat) {
    array_push($selected_category, $cat->id);
}
?>
                        
			<div>
				
				<?php 
echo TbHtml::label($model->getAttributeLabel('category'), 'Category');
?>
                            <p>
				<div class="portlet-content">
				<?php 
echo TbHtml::CheckBoxList('Category', $selected_category, CHtml::listData(Category::model()->findAll(), 'id', 'name'), array('template' => '{input} {label}'));
?>
				<?php 
echo $form->error($model, 'category');
?>
				</div>
                        </p>
                     
                        
<br/><br/>
                        </div>
예제 #3
0
			<!--
			<?php 
//array que ir� receber as plataformas selecionadas
$selected_devices = array();
//para cada plataforma, insere os id_plataforma escolhidos no array
//var_dump($model->platforms);
foreach ($model->devices as $device) {
    array_push($selected_devices, $device->ID);
}
?>
			
			
			<br/><br/>
			<div>
				<?php 
echo TbHtml::label($model->getAttributeLabel('devices'), 'Device');
?>
				
				<div class="portlet-content" id="divprincipal">
				<?php 
echo TbHtml::CheckBoxList('Devices', $selected_devices, CHtml::listData(Device::model()->findAll(), 'ID', 'DESCRIPTION'), array('template' => '{input} {label}'));
?>
				<?php 
echo $form->error($model, 'device');
?>
				</div>
			</div>
			-->

    </br>
예제 #4
0
<!-- Message dialog info -->
<p class="alert alert-info">Fields with <span class="required">*</span> are required.</p>

  <?php 
echo $form->textFieldControlGroup($model, 'id_tenant', array('span' => 2, 'maxlength' => 4, 'readonly' => 'readonly', 'value' => $model->autonumber()));
?>
  <?php 
echo $form->textFieldControlGroup($model, 'tenant_name', array('span' => 3, 'maxlength' => 25));
?>
  <?php 
echo $form->textFieldControlGroup($model, 'pic', array('span' => 3, 'maxlength' => 45));
?>
  
<div class="control-group">
        <?php 
echo TbHtml::label('Phone <span class="required">*</span>', 'Phone', array('class' => 'control-label'));
?>
    <div class="controls">
    <?php 
$this->widget('yiiwheels.widgets.maskinput.WhMaskInput', array('name' => 'Tenant[phone]', 'mask' => '999999999999', 'htmlOptions' => array('placeholder' => '')));
?>
    <?php 
echo $form->error($model, 'phone');
?>
    </div>
</div>

  <?php 
echo $form->textAreaControlGroup($model, 'location', array('span' => 5, 'maxlength' => 30, 'rows' => 5));
?>
    
예제 #5
0
                    'showButtonPane'  => true,
		//'maxDate'		  => '0',
                ),
                                        
              ));*/
?>
        
        </div>
        </div>-->
		 <?php 
echo TbHtml::textFieldControlGroup('receipt_date', date('Y-m-d'), array('label' => 'Receipt Date', 'readonly' => true));
?>
      
      <div class="control-group">
        <?php 
echo TbHtml::label('Tenant', 'Tenant', array('class' => 'control-label'));
?>
       <div class="controls">
       
        <?php 
$this->widget('yiiwheels.widgets.select2.WhSelect2', array('asDropDownList' => false, 'name' => 'tenant', 'pluginOptions' => array('width' => '90%', 'initSelection' => 'js:function(element,callback){}', 'ajax' => array('url' => $this->createUrl('/transaction/AddPoint/GetTenant'), 'dataType' => 'json', 'data' => "js:function(term,page) {\n                             return {q: term};\n                           }", 'results' => "js:function(data,page) {\n                             return {results: data};\n                           }"))));
?>
       
      </div></div>

       <?php 
echo TbHtml::textFieldControlGroup('pointearned', '', array('label' => 'Point', 'readonly' => true));
?>
       
    </div>
예제 #6
0
                    var start_date = $("#Voucher_start_date").val();
                    if (dateText < start_date){
                        errorMsgBox("End date must be greater than start date");
                        $(this).val("");
                    }
                }')));
?>
        <?php 
echo $form->error($model, 'end_date');
?>
        </div>
    </div>

    <div class="control-group">
        <?php 
echo TbHtml::label('Point Required <span class="required">*</span>', 'Point Required', array('class' => 'control-label'));
?>
        <div class="controls">
        <?php 
$this->widget('yiiwheels.widgets.maskinput.WhMaskInput', array('name' => 'Voucher[point_required]', 'mask' => '11111', 'htmlOptions' => array('placeholder' => '')));
//echo $form->textFieldControlGroup($model,'point_required',array('span'=>2));
?>
        <?php 
echo $form->error($model, 'point_required');
?>
        </div>
    </div>

    <?php 
echo $form->fileFieldControlGroup($model, 'image', array('span' => 5, 'onchange' => 'Preview.previewImage(this)'));
?>
예제 #7
0
?>
   </div>
  </div>

<div class="control-group">
   <?php 
echo TbHtml::label('Telephone', 'lbltelephone', array('class' => 'control-label'));
?>
   <div clas="controls">
   <?php 
echo TbHtml::label('-', 'telephone', array('class' => 'control-label', 'id' => 'phone'));
?>
   </div>
  </div>

<div class="control-group">
   <?php 
echo TbHtml::label('Location', 'lbllocation', array('class' => 'control-label'));
?>
   <div clas="controls">
   <?php 
echo TbHtml::label('-', 'location', array('class' => 'control-label', 'id' => 'location'));
?>
   </div>
  </div>


  <?php 
echo TbHtml::endForm();
?>
</fieldset>
예제 #8
0
파일: write.php 프로젝트: argenis1763/vc
<?php 
$this->breadcrumbs = array('Essays');
$this->menu = array(array('label' => CHtml::image(Yii::app()->theme->baseUrl . "/img/operaciones/list29.png") . 'Mis Essays', 'url' => array('index'), 'visible' => Yii::app()->user->checkAccess('Estudiante') && !Yii::app()->user->isSuperAdmin), array('label' => CHtml::image(Yii::app()->theme->baseUrl . "/img/operaciones/group.png") . 'Mis Estudiantes', 'url' => array('index'), 'visible' => Yii::app()->user->checkAccess('Tutor') || Yii::app()->user->checkAccess('College') || Yii::app()->user->isSuperAdmin), array('label' => CHtml::image(Yii::app()->theme->baseUrl . "/img/operaciones/speech59.png") . 'Chat', 'url' => '#'), array('label' => CHtml::image(Yii::app()->theme->baseUrl . "/img/operaciones/user.png") . 'Perfil', 'url' => '#', 'visible' => Yii::app()->user->checkAccess('Estudiante') && !Yii::app()->user->isSuperAdmin));
?>
<legend>Essay: <?php 
echo $essay->title_essay;
?>
</legend>

<?php 
echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_INLINE);
?>

	<?php 
echo TbHtml::label('<b>Status Essay</b>', 'text');
?>
	<?php 
echo EssaysHasCrugeUser::model()->validarStatus($essay->status);
?>
		
	<?php 
if (Yii::app()->user->checkAccess('Tutor') || Yii::app()->user->checkAccess('College') || Yii::app()->user->isSuperAdmin) {
    ?>
		<?php 
    echo "|";
    ?>
		<?php 
    echo TbHtml::Button('Cambiar Status', array('name' => 'end', 'color' => TbHtml::BUTTON_COLOR_DANGER, 'size' => TbHtml::BUTTON_SIZE_MINI, 'onclick' => '$("#myModal").dialog("open"); return false;'));
    ?>
	
예제 #9
0
                                    </div></div>
                
                    /*  <div class="span6">
                                    <div class="row-fluid">  
              <?php 
//array que ir� receber os sados selecionados
$selected_category = array();
//para cada plataforma
foreach ($model->appUsers as $cat) {
    array_push($selected_category, $cat->id);
}
?>
                    <div class="group-div">
			<div>
				<?php 
echo TbHtml::label($model->getAttributeLabel('appUsers'), 'AppUsers');
?>
                            <p>
				<div class="portlet-content">
				<?php 
echo TbHtml::CheckBoxList('AppUsers', $selected_category, CHtml::listData(AppUsers::model()->findAll(), 'id', 'name'), array('template' => '{input} {label}'));
?>
				<?php 
echo $form->error($model, 'appUsers');
?>
				</div>
                        </p>
                        </div>
                    
                    <?php 
echo CHtml::link(CHtml::encode('Remove'), array('appUsers/delete', 'id' => $model->id), array('submit' => array('appUsers/delete', 'id' => $model->id), 'class' => 'delete btn btn-danger', 'confirm' => 'This will remove the image. Are you sure?'));
예제 #10
0
            <?php 
echo TbHtml::label('Phone 2', 'Phone 2', array('class' => 'control-label'));
?>
            <div class="controls">
            <?php 
$this->widget('yiiwheels.widgets.maskinput.WhMaskInput', array('name' => 'Member[phone2]', 'mask' => '999999999999', 'htmlOptions' => array('placeholder' => '', 'class' => 'span25')));
?>
      <?php 
echo $form->error($model, 'phone2');
?>
        </div>
       </div>

        <div class="control-group">
        <?php 
echo TbHtml::label('Mobile 2', 'Mobile 2', array('class' => 'control-label'));
?>
        <div class="controls">
        <?php 
$this->widget('yiiwheels.widgets.maskinput.WhMaskInput', array('name' => 'Member[mobile2]', 'mask' => '999999999999', 'htmlOptions' => array('placeholder' => '', 'class' => 'span25')));
?>
        <?php 
echo $form->error($model, 'mobile2');
?>
        </div>
    </div>
   </div>
   <!-- akhir area phone2 -->

   <!-- area income -->        
   <div class="span-8" style="width:85%;margin-left:2px;">
예제 #11
0
?>
    <div class="form-inline" style="margin-bottom: 20px;"> 
        <?php 
echo CHtml::hiddenField('FileForm[' . $uniqueId . '][photos][' . $idx . '][photo_id]', $model->photo_id);
echo CHtml::hiddenField('FileForm[' . $uniqueId . '][photos][' . $idx . '][title]', $model->title);
echo CHtml::hiddenField('FileForm[' . $uniqueId . '][photos][' . $idx . '][filename]', $model->filename);
echo CHtml::hiddenField('FileForm[' . $uniqueId . '][photos][' . $idx . '][thumb_filename]', $model->thumb_filename);
echo CHtml::hiddenField('FileForm[' . $uniqueId . '][photos][' . $idx . '][mime_type]', $model->mime_type);
$sTitleMaxLength = 'Max length is ' . Yii::app()->params['lengthPhotoTitle'] . ' symbols';
$sDescMaxLength = 'Max length is ' . Yii::app()->params['lengthPhotoDescription'] . ' symbols';
echo TbHtml::textField('FileForm[' . $uniqueId . '][photos][' . $idx . '][description]', $model->description, array('class' => 'fl-l', 'span' => 6, 'style' => 'margin-left: 10px; margin-right: 10px;', 'placeholder' => Yii::t('main', 'photo description'), 'title' => $sDescMaxLength, 'alt' => $sDescMaxLength));
echo TbHtml::textField('FileForm[' . $uniqueId . '][photos][' . $idx . '][sort_order]', $model->sort_order, array('class' => 'fl-l ' . $radiobuttonClass, 'span' => 1, 'style' => 'margin-left: 10px', 'placeholder' => Yii::t('main', 'order num')));
if ($this->portfolioType == 1) {
    echo '<div class="fl-l ml-10 mr-10 ' . $radiobuttonClass . '" style="margin-left: 10px; margin-right: 10px;">';
    $istopID = 'FileForm_' . $uniqueId . '_' . $idx . '_is_top';
    echo TbHtml::label(Yii::t('main', 'Main photo') . '&nbsp;', $istopID, array('class' => 'checkbox'));
    echo CHtml::radioButton('FileForm[' . $uniqueId . '][is_top]', $model->is_top, array('id' => $istopID, 'value' => $idx, 'class' => "ml-10 mr-10 "));
    echo '</div>';
}
?>
        
        <button class="delete-uploaded btn ml-10 mr-10" type="button">
            <i class="icon-trash"></i>
            <span><?php 
echo Yii::t('main', 'Delete');
?>
</span>
        </button>
        
        <br>
        <?php 
예제 #12
0
파일: _nodoCPVF.php 프로젝트: cicb/tpc
<?php

$status = $model->ConfiPVFuncionSta == 'ALTA';
$fid = $model->FuncionesId;
$eid = $model->EventoId;
$pid = $model->PuntosventaId;
$padre = $model->puntoventa->tipoid == 0;
$nombre = $model->puntoventa->PuntosventaNom;
echo CHtml::openTag('li', array('id' => "{$fid}-{$pid}", 'class' => 'nodo ', 'style' => 'border-top:1px dashed #888;'));
//LI NODO
if (isset($padre) and $padre) {
    # Si tiene hijos muestra el boton de +
    echo TbHtml::link(' ', array('funciones/verRama', 'EventoId' => $eid, 'FuncionesId' => $fid, 'PuntosventaId' => $pid), array('class' => 'nodo-toggle fa fa-plus-square', 'id' => "link-{$fid}-" . $pid, 'data-estado' => 'inicial', 'style' => 'margin:5px'));
}
echo TbHtml::checkBox("chk-{$fid}-{$pid}", $status, array('class' => 'CPVFSta', 'data-fid' => $fid, 'data-pid' => $pid));
echo TbHtml::label($nombre, "chk-{$fid}-{$pid}", array('style' => 'display:inline;width:100%'));
echo CHtml::openTag('div', array('
				class' => 'fechas-cpf text-right', 'style' => 'width:100%;'));
echo TbHtml::textField("CPF_FecIni-{$fid}-{$pid}", $model->ConfiPVFuncionFecIni, array('data-fid' => $fid, 'data-pid' => $pid, 'class' => 'picker box1  CPVFFecIni', 'style' => 'font-size:10px;width:105px'));
echo TbHtml::link(' ', '#', array('class' => 'fa fa-calendar text-info ', 'title' => 'Fecha de inicio', 'onclick' => "\$('#CPF_FecIni-{$fid}-{$pid}').datetimepicker('show');return false;\n\t\t\t\t"));
echo " / ";
echo TbHtml::textField("CPF_FecFin-{$fid}-{$pid}", $model->ConfiPVFuncionFecFin, array('data-fid' => $fid, 'data-pid' => $pid, 'class' => 'picker box1  CPVFFecFin', 'style' => 'font-size:10px;width:105px'));
echo TbHtml::link(' ', '#', array('class' => 'fa fa-calendar  text-warning', 'title' => 'Fecha Fin', 'onclick' => "\$('#CPF_FecFin-{$fid}-{$pid}').datetimepicker('show');return false;\n\t\t\t\t"));
echo CHtml::closeTag('div');
echo CHtml::closeTag('li');
예제 #13
0
       <?php 
$this->widget('yiiwheels.widgets.select2.WhSelect2', array('asDropDownList' => false, 'name' => 'voucher_name', 'events' => array('change' => "js:function (element) {\n                    \n                    if (element.val != '') {\n\n                        var id=element.val.split('-');\n                        \$('#voucher_name').val(id[0]);\n                        \$('#point_required').val(id[1]); \n                                    \n                    }\n \n                 }"), 'pluginOptions' => array('width' => '90%', 'initSelection' => 'js:function(element,callback){}', 'ajax' => array('url' => $this->createUrl('/transaction/RedeemPoint/SearchDataVoucher'), 'dataType' => 'json', 'data' => "js: function(term,page) {\n                            return {q: term};\n                         }", 'results' => "js: function(data,page) {\n                             return {results: data};\n                         }"))));
?>
       
      </div></div>
     <?php 
echo TbHtml::textFieldControlGroup('point_required', '', array('label' => 'Point Required', 'readonly' => 'readonly'));
?>
   </div>

    <div class="span-4" style="margin-left:-2px;width:45%;float:right;">
     

      <div class="control-group">
        <?php 
echo TbHtml::label('Number Voucher', 'Number Voucher', array('class' => 'control-label'));
?>
       <div class="controls">
        
       <input type="number" min="0" max="999" step="1" name="number_voucher" id="number_voucher"  onKeyPress="return numbersonly(this, event)"/>
       
      </div></div>
       <?php 
echo TbHtml::textFieldControlGroup('total_redeem', '', array('label' => 'Total Redeem', 'readonly' => 'readonly'));
?>
       
    </div>

    <div class="span-8" style="margin-left:-2px">
       <?php 
echo TbHtml::button('Add To List', array('style' => 'width:930px', 'id' => 'addtolist'));
예제 #14
0
<?php echo TbHtml::pageHeader('', 'User Account '); ?>

<fieldset>
    <legend>Change Password</legend>
<?php echo TbHtml::beginFormTb()?>
      <?php echo TbHtml::label('<b>New Password</b>','new_password');?>
      <?php echo TbHtml::passwordField('new_password','',array('placeholder'=>'Enter new password here...')); ?>
      <div class="form-actions">
        <?php echo TbHtml::submitButton('Change',array(
		    'color'=>TbHtml::BUTTON_COLOR_SUCCESS,
		    'size'=>TbHtml::BUTTON_SIZE_DEFAULT,
		)); ?>
      </div>
 

<?php echo TbHtml::endForm();?>
</fieldset>

<?php $this->widget('zii.widgets.CDetailView',array(
    'htmlOptions' => array(
        'class' => 'table table-striped table-condensed table-hover',
    ),
    'data'=>$model,
    'attributes'=>array(
		//'id',
		'username',
		'first_name',
		'middle_name',
		'last_name',
               
                $model->is_mda?
예제 #15
0
  <div class="control-group" style="margin-left:40%">
		  <?php 
echo TbHtml::label('Start', 'Start', array('class' => 'control-label'));
?>
		<div class="controls">
		  <?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('htmlOptions' => array('readonly' => 'readonly', 'style' => 'width:180px;float:left', 'name' => 'tglawal'), 'options' => array('dateFormat' => 'yy-mm-dd', 'yearRange' => '-2', 'changeYear' => true, 'changeMonth' => true, 'buttonImage' => './images/calendar.png', 'buttonImageOnly' => true, 'showOn' => 'button', 'showButtonPane' => true)));
?>
		
		</div>
	  </div>
</div>
<div class="span-4" style="width:49%;margin-left:2px;">
<div class="control-group">
		  <?php 
echo TbHtml::label('End', 'End', array('class' => 'control-label'));
?>
		<div class="controls">
		  <?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('htmlOptions' => array('readonly' => 'readonly', 'style' => 'width:180px;float:left', 'name' => 'tglakhir'), 'options' => array('dateFormat' => 'yy-mm-dd', 'yearRange' => '-2', 'changeYear' => true, 'changeMonth' => true, 'buttonImage' => './images/calendar.png', 'buttonImageOnly' => true, 'showOn' => 'button', 'showButtonPane' => true)));
?>
		
		</div>
	  </div>
</div>
<div style="clear:both"></div>
<div class="form-actions">
  <div style="margin-left:35%">
  <?php 
echo TbHtml::submitButton('<i class="icon-fa-print icon-fa-large" style="margin-top:7px;"></i> Print', array('color' => TbHtml::BUTTON_COLOR_INVERSE, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'id' => 'btncommand'));
echo "&nbsp;&nbsp;";
예제 #16
0
<!-- Message dialog info -->
<p class="alert alert-info">Fields with <span class="required">*</span> are required.</p>

<div class="control-group">
     
        <div class="controls">
       
			<input type="hidden" name="username" value="<?php 
echo $model->username;
?>
" />
        </div>
    </div>
<div class="control-group">
         <?php 
echo TbHtml::label('Old Password', 'Old Password', array('class' => 'control-label'));
?>
        <div class="controls">
       
			<input type="password" name="old_password" value="" class="span3"/>
        </div>
    </div>
<?php 
echo $form->passwordFieldControlGroup($model, 'password', array('span' => 3, 'maxlength' => 10, 'value' => ''));
echo $form->passwordFieldControlGroup($model, 'repeat_password', array('span' => 3, 'maxlength' => 10));
?>


<?php 
// Meload command button simpan/ubah dan batal di ./view/common/_command.php
// @formid id dari form rule
예제 #17
0
<fieldset>
    <legend>Reset Password</legend>
<?php echo TbHtml::beginFormTb()?>
      <?php echo TbHtml::label('<b>Email</b>','email');?>
      <?php echo TbHtml::textField('email','',array('placeholder'=>'Enter your email here...','span'=>5)); ?>
      <div class="form-actions">
        <?php echo TbHtml::submitButton('Submit',array(
		    'color'=>TbHtml::BUTTON_COLOR_SUCCESS,
		    'size'=>TbHtml::BUTTON_SIZE_DEFAULT,
		)); ?>
      </div>
 

<?php echo TbHtml::endForm();?>
</fieldset>
예제 #18
0
            
            <?php 
//array que ir� receber as plataformas selecionadas
$selected_platforms = array();
//para cada plataforma, insere os id_plataforma escolhidos no array
//var_dump($model->platforms);
foreach ($model->platforms as $platform) {
    array_push($selected_platforms, $platform->id);
}
?>
			
			
			<div>
				<?php 
echo TbHtml::label($model->getAttributeLabel('platforms'), 'Platforms');
?>
				
				<div class="portlet-content">
				<!--echo TbHtml::inlineCheckBoxList('Platforms',/*'', $platformsArray,*/-->
				<?php 
echo TbHtml::CheckBoxList('Platforms', $selected_platforms, CHtml::listData(Platforms::model()->findAll(), 'id', 'name'), array('id' => 'item', 'template' => '{input} {label}', 'onchange' => 'verificaChecks()'));
?>
				<?php 
echo $form->error($model, 'platforms');
?>
				</div>
			</div>


    </br>
예제 #19
0
            <p><b><h5>Imagem da plataforma:</h5></b></p>
        	<input class="form-control" type="file" id="image" name="image"
			accept="application/png">
	</div>
            <?php 
//array que ir� receber as characteristics selecionadas
$selected_characteristic = array();
//para cada plataforma, insere os id_plataforma escolhidos no array
foreach ($model->characteristic as $characteristic) {
    array_push($selected_characteristic, $characteristic->id);
}
?>
			
			<div>
				<?php 
echo TbHtml::label($model->getAttributeLabel('characteristic'), 'Characteristic');
?>
			    <p class="help-block">Choose the platform's characteristics:</p>
                            <div class="model-char">	
				<div class="portlet-content">
				<?php 
echo TbHtml::CheckBoxList('Characteristic', $selected_characteristic, CHtml::listData(Characteristic::model()->findAll(), 'id', 'name'), array('template' => '{input} {label}'));
?>
				<?php 
echo $form->error($model, 'characteristic');
?>
				</div>
			</div>
    </div>
    </div>
    
예제 #20
0
     </td>
     <td><?php echo $form->textFieldControlGroup($model,'responsibility_center',array('maxlength'=>5000)); ?></td>
 </tr>
 
 <tr>
     <td><?php echo $form->dropDownListControlGroup($model,'sectoral_council_id',
             TbHtml::listData(EacLookup::model()->findAll('type=:type',array(':type'=>  EacLookup::SECTORAL_COUNCIL)),"id","description"),
             array(
                 'empty'=>'--select--'
             )); ?>
     </td>
     <td><?php echo $form->dropDownListControlGroup($model,'implementation_status_id',TbHtml::listData(EacLookup::model()->findAll('type=:type',array(':type'=>  EacLookup::IMPLEMENTATION_STATUS)),"id","description"), 
             array(
                 'empty'=>'--select--'
             )); ?></td>
       <td><?php echo TbHtml::label('Date To', 'dateTo'); ?>
         <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                                          'model'=>$model,
                                          'attribute'=>'dateTo',
                                          'options'=>array(
                                              'showAnim'=>'fold',
                                              'showOn'=>'both',//focus,button,both
                                              'changeMonth'=>true,
                                              'changeYear'=>true,
                                              'yearRange'=>'-100:+0',//last hundred years
                                              'buttonText'=>'Please select date',
                                              'buttonImage'=>Yii::app()->request->baseUrl."/images/calendar.png",
                                              'buttonImageOnly'=>true,
                                              'dateFormat'=>'yy-mm-dd',
                                          ),
                                          'htmlOptions'=>array(