當前位置: 首頁>>代碼示例>>PHP>>正文


PHP X2Html::activeDatePicker方法代碼示例

本文整理匯總了PHP中X2Html::activeDatePicker方法的典型用法代碼示例。如果您正苦於以下問題:PHP X2Html::activeDatePicker方法的具體用法?PHP X2Html::activeDatePicker怎麽用?PHP X2Html::activeDatePicker使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在X2Html的用法示例。


在下文中一共展示了X2Html::activeDatePicker方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: renderFilterCellByType

 public function renderFilterCellByType()
 {
     $model = $this->grid->filter;
     switch ($this->filterType) {
         case 'date':
             return X2Html::activeDatePicker($model, $this->name);
             break;
         case 'dateTime':
             return X2Html::activeDatePicker($model, $this->name, array(), 'datetime');
             break;
     }
 }
開發者ID:keyeMyria,項目名稱:CRM,代碼行數:12,代碼來源:X2DataColumnGeneric.php

示例2: array

'>
    <div class="cell action-duration">
        <div class="action-duration-input">
            <label for="timetrack-hours"><?php 
echo Yii::t('actions', 'Hours');
?>
</label>
            <input class="action-duration-display" type="number" min="0" max="99" 
             name="timetrack-hours" />
        </div>
        <span class="action-duration-display">:</span>
        <div class="action-duration-input">
            <label for="timetrack-minutes"><?php 
echo Yii::t('actions', 'Minutes');
?>
</label>
            <input class="action-duration-display" type="number" min="0" max="59" 
             name="timetrack-minutes" />
        </div>
    </div>

    <div class="cell">
        <?php 
echo CHtml::activeLabel($this->model, $this->startDateAttribute, array('class' => 'action-start-time-label'));
echo X2Html::activeDatePicker($this->model, $this->startDateAttribute, array('onClick' => "\$('#ui-datepicker-div').css('z-index', '100');", 'class' => 'action-due-date', 'id' => $this->resolveId('action-due-date')), 'datetime', array_merge(array('dateFormat' => Formatter::formatDatePicker('medium'), 'timeFormat' => Formatter::formatTimePicker(), 'ampm' => Formatter::formatAMPM()), $this->options));
echo CHtml::activeLabel($this->model, $this->endDateAttribute, array('class' => 'action-end-time-label'));
echo X2Html::activeDatePicker($this->model, $this->endDateAttribute, array('onClick' => "\$('#ui-datepicker-div').css('z-index', '100');", 'class' => 'action-complete-date', 'id' => $this->resolveId('action-complete-date')), 'datetime', array_merge(array('dateFormat' => Formatter::formatDatePicker('medium'), 'timeFormat' => Formatter::formatTimePicker(), 'ampm' => Formatter::formatAMPM()), $this->options));
?>
    </div>
</div>
開發者ID:tymiles003,項目名稱:X2CRM,代碼行數:30,代碼來源:activeDateRangeInput.php

示例3: array

                <label for="timetrack-hours"><?php 
echo Yii::t('actions', 'Hours');
?>
</label>
                <input class="action-duration-display" type="number" min="0" max="99" 
                 name="timetrack-hours" />
            </div>
            <span class="action-duration-display">:</span>
            <div class="action-duration-input">
                <label for="timetrack-minutes"><?php 
echo Yii::t('actions', 'Minutes');
?>
</label>
                <input class="action-duration-display" type="number" min="0" max="59" 
                 name="timetrack-minutes" />
            </div>
        </div>

        <div class="cell">

            <?php 
$model->type = 'call';
echo CHtml::activeLabel($model, 'dueDate', array('class' => 'action-start-time-label'));
echo X2Html::activeDatePicker($model, 'dueDate', array('onClick' => "\$('#ui-datepicker-div').css('z-index', '100');", 'class' => 'action-due-date', 'id' => $this->resolveId('call-form-action-due-date')), 'datetime', array('dateFormat' => Formatter::formatDatePicker('medium'), 'timeFormat' => Formatter::formatTimePicker(), 'ampm' => Formatter::formatAMPM()));
echo CHtml::activeLabel($model, 'completeDate', array('class' => 'action-end-time-label'));
echo X2Html::activeDatePicker($model, 'completeDate', array('onClick' => "\$('#ui-datepicker-div').css('z-index', '100');", 'class' => 'action-complete-date', 'id' => $this->resolveId('call-form-action-complete-date')), 'datetime', array('dateFormat' => Formatter::formatDatePicker('medium'), 'timeFormat' => Formatter::formatTimePicker(), 'ampm' => Formatter::formatAMPM()));
?>
        </div>
    </div><!-- #action-event-panel -->
</div>
開發者ID:keyeMyria,項目名稱:CRM,代碼行數:30,代碼來源:_callForm.php

示例4: renderFilterCellByType

 public function renderFilterCellByType()
 {
     $model = $this->grid->filter;
     $fieldName = $this->name;
     switch ($this->filterType) {
         case 'date':
             $model->{$fieldName} = Formatter::parseDate($model->{$fieldName});
             return X2Html::activeDatePicker($model, $this->name);
             break;
         case 'dateTime':
             $model->{$fieldName} = Formatter::parseDate($model->{$fieldName});
             return X2Html::activeDatePicker($model, $this->name, array(), 'datetime');
             break;
     }
 }
開發者ID:dsyman2,項目名稱:X2CRM,代碼行數:15,代碼來源:X2DataColumnGeneric.php

示例5: array

            <div class="cell">
                <?php 
    echo $form->labelEx($actionModel, 'startDate');
    $actionModel->dueDate = Formatter::formatDateTime($actionModel->dueDate);
    echo X2Html::activeDatePicker($actionModel, 'dueDate', $form->resolveHtmlOptions($actionModel, 'dueDate', array('onClick' => "\$('#ui-datepicker-div').css('z-index', '20');")), 'datetime', array('dateFormat' => Formatter::formatDatePicker('medium'), 'timeFormat' => Formatter::formatTimePicker(), 'ampm' => Formatter::formatAMPM(), 'changeMonth' => false));
    ?>
            </div>
            <?php 
}
if ($actionModel->complete == 'Yes' || $actionModel->isTimedType) {
    ?>
                <div class="cell">
                    <?php 
    echo $form->labelEx($actionModel, $actionModel->isTimedType ? 'endDate' : 'completeDate');
    $actionModel->completeDate = Formatter::formatDateTime($actionModel->completeDate);
    echo X2Html::activeDatePicker($actionModel, 'completeDate', $form->resolveHtmlOptions($actionModel, 'completeDate', array('onClick' => "\$('#ui-datepicker-div').css('z-index', '20');")), 'datetime', array('dateFormat' => Formatter::formatDatePicker('medium'), 'timeFormat' => Formatter::formatTimePicker(), 'ampm' => Formatter::formatAMPM(), 'changeMonth' => false));
    ?>
                </div>
            <?php 
}
?>
        </div><!-- #action-backdating -->
</div><!-- .form -->
<?php 
if (!$backdating && file_exists(__DIR__ . DIRECTORY_SEPARATOR . '_actionTimersForm.php') && $actionModel->complete == 'Yes') {
    $this->renderPartial('_actionTimersForm', array('model' => $actionModel, 'form' => $form));
}
?>
</div>
<?php 
$this->endWidget();
開發者ID:keyeMyria,項目名稱:CRM,代碼行數:31,代碼來源:_form.php


注:本文中的X2Html::activeDatePicker方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。