예제 #1
0
    <?php 
echo $form->field($model, 'amount')->textInput();
?>


    <div class="form-group field-thirdproduct-start_at required" style="width: 300px">
        <label class="control-label" for="thirdproduct-amount">起始时间</label>
        <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'start_at', 'language' => 'zh-CN', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'linkFormat' => 'yyyy-mm-dd  HH:ii', 'todayBtn' => true]]);
?>
    </div>
    <div class="form-group field-thirdproduct-end_at required" style="width: 300px">
        <label class="control-label" for="thirdproduct-amount">结束时间</label>
        <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'end_at', 'language' => 'zh-CN', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'linkFormat' => 'yyyy-mm-dd  HH:ii ', 'todayBtn' => true]]);
?>
    </div>
    <?php 
echo $form->field($model, 'rate')->textInput();
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>
예제 #2
0
 

    <?php 
echo $form->field($model, 'lost_id')->dropDownList(ArrayHelper::map(Lost::find()->all(), 'id', 'id'), ['promt' => 'Select Category']);
?>

    <?php 
echo $form->field($model, 'amount')->textInput(['maxlength' => 8]);
?>

    <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'start_date', 'language' => 'en', 'size' => 'ms', 'inline' => true, 'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd - HH:ii:ss P', 'todayBtn' => true]]);
?>

	<?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'end_date', 'language' => 'en', 'size' => 'ms', 'inline' => true, 'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd - HH:ii:ss P', 'todayBtn' => true]]);
?>

    

    

    <?php 
//$form->field($model, 'end_date')->textInput()
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
예제 #3
0
                                                    <?php 
echo Html::activeTextInput($searchModel, 'end_sqlusedtime', ['class' => 'form-control', 'style' => 'width:100px']);
?>

                                                    <label for="sqlattacksearch-sqltext">类型:</label>
                                                    <?php 
echo Html::activeDropDownList($searchModel, 'databasetype', SqlAttackService::getSqlTraceDbType(), ['class' => 'form-control']);
?>

                                                    <label for="exampleInputEmail2">执行时间:</label>
                                                    <?php 
echo DateTimePicker::widget(['language' => 'zh-CN', 'model' => $searchModel, 'attribute' => 'start_date', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'template' => '{input}{button}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd hh:ii:ss', 'todayBtn' => true]]);
?>
                                                    <label for="exampleInputEmail2">至</label>
                                                    <?php 
echo DateTimePicker::widget(['language' => 'zh-CN', 'model' => $searchModel, 'attribute' => 'end_date', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'template' => '{input}{button}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd hh:ii:ss', 'todayBtn' => true]]);
?>
                                                    <button type="submit" class="btn btn-default btn-primary btn-sm">查询</button>
                                                </div>
                                            </div>
                                        </div>
                                        <?php 
ActiveForm::end();
?>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="summary">第<b><?php 
echo $begin . '-' . $end;
?>
예제 #4
0
        <span>姓名:</span>
        <?php 
echo HTML::activeTextInput($model, "chinese", ['class' => 'form-control']);
?>
    </div>

    <div class="col-md-12">
        <span>性别:</span>
        <?php 
echo HTML::activeRadioList($model, "gender", ['男' => '男', '女' => '女']);
?>
    </div>
    <div class="col-md-12">
        <span>出生日期:</span>
    <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'birthdate', 'language' => 'en-US', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d', 'todayBtn' => true]]);
?>
        </div>
    <div class="col-md-12">
        <span>联系电话:</span>
        <?php 
echo HTML::activeTextInput($model, "phone", ['class' => 'form-control']);
?>
    </div>
    <div class="col-md-12">
        <span>家庭住址:</span>
        <?php 
echo HTML::activeTextInput($model, "address", ['class' => 'form-control']);
?>
    </div>
    <div class="col-md-12">
예제 #5
0
파일: index.php 프로젝트: wordnews/wei_shop
echo Html::dropDownList('action', isset($_GET['action']) ? $_GET['action'] : '', ['选择动作...', 'add' => '新增', 'edit' => '编辑', 'delete' => '删除'], ['style' => 'float: left; margin-top: 3px; margin-left: 2px']);
?>
            <?php 
if ($time = Yii::$app->request->get('UserLog')) {
    $model->first_time = $time['first_time'];
    $model->last_time = $time['last_time'];
}
?>
            <div style="float: left; width: 120px; margin-left: 3px; margin-top: -4px">
            <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'first_time', 'language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['startView' => 2, 'minView' => 2, 'maxView' => 5, 'autoclose' => true, 'linkFormat' => 'yyyy-mm-dd', 'format' => 'yyyy-mm-dd', 'todayBtn' => false]]);
?>
            </div>
            <div style="float: left; width: 120px; margin-left: 3px; margin-top: -4px">
            <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'last_time', 'language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['startView' => 2, 'minView' => 2, 'maxView' => 5, 'autoclose' => true, 'linkFormat' => 'yyyy-mm-dd', 'format' => 'yyyy-mm-dd', 'todayBtn' => false]]);
?>
            </div>&nbsp;

            <input type="submit" onclick="query('<?php 
echo Yii::$app->urlManager->createUrl(['userlog/index']);
?>
')" value=" 搜索 " class="button">

        </form>

    </div>

    <?php 
Pjax::begin();
?>
예제 #6
0
use dosamigos\datetimepicker\DateTimePicker;
/* @var $this yii\web\View */
/* @var $model frontend\models\MeetingTime */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="meeting-time-form">

  <div class="row">
    <div class="col-md-4">
    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'start', 'language' => 'pl', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'format' => 'MM dd, yyyy HH:ii P', 'todayBtn' => true, 'minuteStep' => 15, 'pickerPosition' => 'bottom-left']]);
?>
   
    </div>
  </div>  
  <div class="clearfix"><p></div>
  <div class="row">
      <div class="col-md-4">
     <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('frontend', 'Add') : Yii::t('frontend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
    </div>
  </div>
    <?php 
예제 #7
0
echo Html::activeTextInput($accLogErr, 'error_status', ['class' => 'form-control', 'style' => 'width:100px']);
?>

                                                            <label for="sqllogsearch-sqltext">来源:</label>
                                                            <?php 
echo Html::activeTextInput($accLogErr, 'source', ['class' => 'form-control', 'style' => 'width:100px']);
?>

                                                            <label for="sqllogsearch-sqltext">类型:</label>
                                                            <?php 
echo Html::activeTextInput($accLogErr, 'log_type', ['class' => 'form-control', 'style' => 'width:100px']);
?>

                                                            <label for="exampleInputEmail2">请求时间:</label>
                                                            <?php 
echo DateTimePicker::widget(['language' => 'zh-CN', 'model' => $accLogErr, 'attribute' => 'request_time', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'template' => '{input}{button}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayBtn' => true]]);
?>
                                                            <button type="submit" class="btn btn-default btn-primary btn-sm">查询</button>
                                                        </div>
                                                    </div>
                                                </div>
                                                <?php 
ActiveForm::end();
?>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                                <div class="summary">第<b><?php 
echo $begin . '-' . $end;
?>
예제 #8
0
    ?>
           

                    <?php 
    echo $form->field($model, 'description', ['template' => '{label}<div class="help-block help-block-info">Краткое описание задачи. Если имеет место быть нестандартный размер - помещать информацию здесь, либо ниже под отмеченной галочкой другое. Нестандартный тип задачи описывать здесь же.</div>{input}{hint}{error}'])->textArea(['rows' => 6]);
    ?>
            

                    <?php 
    echo $form->field($model, 'slogan')->textInput();
    ?>

                    <div class="form-group">
                    <label class="control-label" for="contactrequest-duedate">Дата готовности и время готовности *</label>
                    <?php 
    echo DateTimePicker::widget(['model' => $model, 'attribute' => 'duedate', 'language' => 'ru', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'format' => 'dd-mm-yyyy HH:ii', 'todayBtn' => true]]);
    ?>
                    <div class="help-block help-block-info">Пример: 03.05.2013 15:30</div>
                    </div>   

                    <?php 
    echo $form->field($model, 'proofs', ['template' => '{label}<div class="help-block help-block-info">Ссылки на образцы (если это необходимо) и изображения для работы. <!--Drag and Drop поможет перености ссылки в текстовом виде.--></div>{input}{hint}{error}'])->textArea(['rows' => 6]);
    ?>

                    <?php 
    echo $form->field($model, 'attachments[]')->widget(\dosamigos\fileinput\BootstrapFileInput::className(), ['options' => ['accept' => 'image/*', 'multiple' => true], 'clientOptions' => ['previewFileType' => 'text', 'browseClass' => 'btn btn-success', 'uploadClass' => 'btn btn-info', 'removeClass' => 'btn btn-danger', 'removeIcon' => '<i class="glyphicon glyphicon-trash"></i> ']]);
    ?>

                    <div class="form-group">
                        <?php 
    echo Html::submitButton('Готово', ['class' => 'btn btn-primary', 'name' => 'contact-button']);