本文整理汇总了PHP中ActiveRecord::getDateFormatSearch方法的典型用法代码示例。如果您正苦于以下问题:PHP ActiveRecord::getDateFormatSearch方法的具体用法?PHP ActiveRecord::getDateFormatSearch怎么用?PHP ActiveRecord::getDateFormatSearch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ActiveRecord
的用法示例。
在下文中一共展示了ActiveRecord::getDateFormatSearch方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<div class="in-row clearfix">
<?php
echo $form->labelEx($model, 'contact_name_no', array('class' => 'lb-1'));
?>
<div class="group-1">
<?php
echo $form->textField($model, 'contact_name_no', array('class' => 'text'));
?>
<div class="clear" style='clear: both;'></div>
<?php
echo $form->error($model, 'contact_name_no');
?>
</div>
</div>
<div class="in-row clearfix">
<?php
echo $form->labelEx($model, 'dnc_expiry_date', array('class' => 'lb-1'));
?>
<div class="group-1">
<?php
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'dnc_expiry_date', 'options' => array('showAnim' => 'fold', 'dateFormat' => ActiveRecord::getDateFormatSearch(), 'changeMonth' => true, 'changeYear' => true, 'showOn' => 'button', 'buttonImage' => Yii::app()->theme->baseUrl . '/admin/images/icon_calendar_r.gif', 'buttonImageOnly' => true), 'htmlOptions' => array('class' => 'text', 'style' => 'width:166px;', 'readonly' => 'readonly')));
?>
<div class="clear" style='clear: both;'></div>
<?php
echo $form->error($model, 'dnc_expiry_date');
?>
</div>
</div>
示例2: array
echo $form->label($model, 'type', array('class' => 'lb', 'label' => 'Type'));
?>
<div class="group-5">
<?php
echo $form->dropDownList($model, 'type', Listing::$aTextSaleRent, array('empty' => 'All', 'class' => ''));
?>
</div>
</div>
</div>
<div class="col-2">
<div class="in-row clearfix">
<?php
echo $form->labelEx($model, 'SubmittedTo', array('class' => 'lb'));
?>
<?php
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'SubmittedTo', 'options' => array('showAnim' => 'fold', 'dateFormat' => ActiveRecord::getDateFormatSearch(), 'changeMonth' => true, 'changeYear' => true, 'showOn' => 'button', 'buttonImage' => Yii::app()->theme->baseUrl . '/img/calendar-ico.png', 'buttonImageOnly' => true), 'htmlOptions' => array('class' => 'text w-7', 'style' => 'float:left')));
?>
</div>
<div class="in-row clearfix">
<?php
echo CHtml::submitButton('Search', array('class' => 'btn-3 f-right', 'style' => ''));
?>
</div>
</div>
</div>
</div>
<a href="<?php
echo Yii::app()->createAbsoluteUrl('member/member_profile/createTransaction', array('type' => Listing::FOR_RENT, 'list' => 'transaction', 'add_property' => ProTransactions::ADD_UNLISTED));
?>
示例3: array
</div>
<div class="row">
<?php
echo $form->label($model, 'ext_listing_type_id');
?>
<?php
echo $form->dropDownList($model, 'ext_listing_type_id', ProTransactionsPropertyDetail::$aListingType, array('empty' => 'All', 'class' => ''));
?>
</div>
<div class="row">
<?php
echo $form->label($model, 'created_date');
?>
<?php
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'created_date', 'options' => array('showAnim' => 'fold', 'dateFormat' => ActiveRecord::getDateFormatSearch(), 'changeMonth' => true, 'changeYear' => true, 'showOn' => 'button', 'buttonImage' => Yii::app()->theme->baseUrl . '/img/calendar-ico.png', 'buttonImageOnly' => true), 'htmlOptions' => array('style' => 'width: 200px;margin-right:10px;')));
?>
</div>
<div class="row buttons" style="padding-left: 159px;">
<?php
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'label' => Yii::t('translation', 'Search'), 'type' => 'null', 'size' => 'small'));
?>
</div>
<?php
$this->endWidget();
?>
示例4: fnBindDateFilter
fnBindDateFilter();
});
function fnBindDateFilter(){
$('.ad_datepicker input').datepicker({
changeMonth:true,
changeYear:true,
// showOn: 'button',
// buttonImage: '<?php
echo Yii::app()->theme->baseUrl . '/img/calendar-ico.png';
?>
',
// buttonImageOnly: true,
dateFormat: '<?php
echo ActiveRecord::getDateFormatSearch();
?>
',
});
}
</script>
<link rel="stylesheet" href="<?php
echo Yii::app()->theme->baseUrl;
?>
/css/verz_custom.css" />
<style>
/*for search index*/
/*.choose-list { position: relative; z-index: 10; }