<?php

use yii\helpers\Url;
use qcbase\models\Config;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\widgets\Editor;

/* @var $this yii\web\View */
?>

<div class="nav">
    <!--<div class="return"><a href="">返回上一级</a></div>-->
    <ul class="cc">
        <li ><a href="<?= Url::to(['config/basic']) ?>">基本配置</a></li>
        <li class="current"><a href="<?= Url::to(['config/system']) ?>">系统配置</a></li>
        <li ><a href="<?= Url::to(['config/reimbursement']) ?>">报销配置</a></li>
        <li ><a href="<?= Url::to(['config/application']) ?>">申请单配置</a></li>
    </ul>
</div>
<?php
$form = ActiveForm::begin([
            'id' => 'main-form',
            'action' => ['config/update'],
            'fieldConfig' => [
                'options' => ['tag' => 'tr'],
                'template' => "<th width='180px'>{label}</th><td>{input}{error}</td><td>{hint}</td>",
            ]
        ]);
?>

<div class="h_a">温馨提示</div>
<div class="prompt_text">
    <p>请在修改完配置后，<a href="javascript:parent.iframeJudge({elem:this, id:'cache', title:'更新缓存', href:'<?= Url::to(['/site/cache']) ?>' });">更新缓存</a>，否则数据将不会同步更新 !</p>
</div>


<div class="h_a">基本属性</div>
<div class="table_full">
    <table width="100%">
        <col class="th" />
        <col width="500" />
        <col />

        <?= $form->field($model, 'page_count')->textInput(['class' => 'input length_5'])->hint('$page_count') ?>

        <?= $form->field($model, 'sys_upload_type')->textInput(['class' => 'input length_5'])->hint('$sys_upload_type') ?>

        <?= $form->field($model, 'sys_upload_size')->textInput(['class' => 'input length_5'])->hint('$sys_upload_size') ?>

        <?= $form->field($model, 'mail_host')->textInput(['class' => 'input length_5'])->hint('$mail_host') ?>

        <?= $form->field($model, 'mail_post')->textInput(['class' => 'input length_5'])->hint('$mail_post') ?>

        <?= $form->field($model, 'mail_user')->textInput(['class' => 'input length_5'])->hint('$mail_user') ?>

        <?= $form->field($model, 'mail_pwd')->passwordInput(['class' => 'input length_5'])->hint('$mail_pwd') ?>

        <?= $form->field($model, 'mail_subject')->textInput(['class' => 'input length_5'])->hint('$mail_subject') ?>

        <?=
        Editor::widget(['model' => $model, 'form' => $form, 'attribute' => 'mail_content', 'fieldConfig' => ['options' => ['colspan' => '4']], 'editorType' => 'simple', 'inputConfig' => ['class' => ''],'hint'=>'$mail_content', 'width' => '100%', 'height' => 100])
        ?>
<!--        <tr>
            <td></td>
            <td> <a href="javascript:;" class="btn">['{$realname}', '{$num}', ' {$name}', ' {$project}', '{$reporter}', ' {$assignee}']</a></td>
            <td></td>
        </tr>-->
       

    </table>
</div>

<input name="config_name" type="hidden" value="system" />

<div class="btn_wrap">
    <div class="btn_wrap_pd">
        <button class="btn btn_submit mr10" type="submit">提交</button>
    </div>
</div>

<?php ActiveForm::end(); ?>
