44 lines
1.6 KiB
PHP
Executable File
44 lines
1.6 KiB
PHP
Executable File
<?php
|
|
|
|
/* @var $this yii\web\View */
|
|
use yii\helpers\Html;
|
|
use yii\bootstrap\ActiveForm;
|
|
use yii\helpers\Url;
|
|
$this->title = '数据模型批处理工具-数据表生成器';
|
|
?>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row-fluid">
|
|
<div class="col-lg-12">
|
|
<div class="page-header">
|
|
<h1>
|
|
预定义
|
|
</h1>
|
|
</div>
|
|
<?php $form = ActiveForm::begin(); ?>
|
|
<form action="" method="post" class="form-horizontal form" id="setting-form">
|
|
<input name="_csrf-backend" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
|
|
<div class="form-group">
|
|
<label for="step2[database]">数据库名</label><input class="form-control" type="text" name="step2[database]" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="step2[dbPrefix]">库前缀</label><input class="form-control" type="text" name="step2[dbPrefix]" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="step2[tablePrefix]">表前缀</label><input class="form-control" type="text" name="step2[tablePrefix]" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="step2[name]">表名</label><input class="form-control" type="text" name="step2[name]" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="step2[tableTitle]">表备注(如:聊天室)</label><input class="form-control" type="text" name="step2[tableTitle]" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="step2[type]">表归属类(如:all,sys,chat,shop,site,realty……)</label><input class="form-control" type="text" name="step2[type]" />
|
|
</div>
|
|
<button type="submit" class="btn btn-success">提交</button>
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|