优化ctms-api语法、修复已知BUG;
主要修复ctms-api、dacms对PHP新版本的支持问题
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
|
||||
use yii\helpers\Html;
|
||||
|
||||
$this->title = 'About';
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="site-about">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<p>This is the About page. You may modify the following file to customize its content:</p>
|
||||
|
||||
<code><?= __FILE__ ?></code>
|
||||
</div>
|
||||
Executable
+89
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $form yii\bootstrap\ActiveForm */
|
||||
|
||||
/* @var $model \frontend\models\ContactForm */
|
||||
|
||||
use yii\bootstrap5\Html;
|
||||
use yii\bootstrap5\ActiveForm;
|
||||
use yii\captcha\Captcha;
|
||||
|
||||
$this->title = Yii::t('frontend', 'Contact');
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="site-contact">
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<p>
|
||||
<?= Html::encode(Yii::t('frontend', 'Page:Contact Tips')) ?>
|
||||
</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>
|
||||
<?= $form->field($model, 'name')->textInput(['autofocus' => TRUE]) ?>
|
||||
<?= $form->field($model, 'email') ?>
|
||||
<?= $form->field($model, 'subject') ?>
|
||||
<?= $form->field($model, 'body')->textarea(['rows' => 6]) ?>
|
||||
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
|
||||
'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
|
||||
]) ?>
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton(Yii::t('frontend', 'Submit'), ['class' => 'btn btn-primary', 'name' => 'contact-button']) ?>
|
||||
</div>
|
||||
<?php ActiveForm::end(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-7">
|
||||
<div class="jumbotron" style="background-color:#eee;">
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid clearfix">
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="thumbnail">
|
||||
<img alt="300x200" src="http://public.hiluker.com/hiluker/qrcode-hiluker.jpg"/>
|
||||
<div class="caption" contenteditable="true">
|
||||
<p>
|
||||
hiluker
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="thumbnail">
|
||||
<img alt="300x200" src="http://public.hiluker.com/luker_fm2.jpg"/>
|
||||
<div class="caption" contenteditable="true">
|
||||
<p>
|
||||
fm453
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<p>
|
||||
QQ:393213759
|
||||
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=393213759&site=qq&menu=yes">
|
||||
<img border="0" src="http://wpa.qq.com/pa?p=2:393213759:51" alt="点击联系作者(方少)"
|
||||
title="点击联系作者(方少)"/>
|
||||
</a>
|
||||
QQ:1280880631
|
||||
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=393213759&site=qq&menu=yes">
|
||||
<img border="0" src="http://wpa.qq.com/pa?p=2:1280880631:51" alt="点击联系工作室"
|
||||
title="点击联系作者团队"/>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<style>
|
||||
.thumbnail {
|
||||
text-overflow: clip;
|
||||
}
|
||||
</style>
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $name string */
|
||||
/* @var $message string */
|
||||
|
||||
/* @var $exception Exception */
|
||||
|
||||
use yii\helpers\Html;
|
||||
|
||||
$this->title = $name;
|
||||
?>
|
||||
<div class="site-error">
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<div class="alert alert-danger">
|
||||
<?= nl2br(Html::encode($message)) ?>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
The above error occurred while the Web server was processing your request.
|
||||
</p>
|
||||
<p>
|
||||
Please contact us if you think this is a server error. Thank you.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
|
||||
$this->title = Yii::t('frontend', 'Site Name');
|
||||
$modules = Yii::$app->params['dataModules'];
|
||||
?>
|
||||
<div class="site-index">
|
||||
|
||||
<div class="jumbotron">
|
||||
<h1>欢迎您!</h1>
|
||||
|
||||
<p class="lead">接口服务不断开放中,欢迎合作洽谈!</p>
|
||||
|
||||
<p><a class="btn btn-lg btn-success" href="">已开放API</a></p>
|
||||
<p style="text-align: left;">
|
||||
|
||||
<?php foreach ($modules as $k => $v) { ?>
|
||||
<button class="btn btn-lg btn-default" style="margin-top: 15px;margin-bottom: 15px;"
|
||||
title="<?php echo $k; ?>"><?php echo $v; ?></button>
|
||||
<?php } ?>
|
||||
|
||||
<button class="btn btn-lg btn-default" style="margin-top: 15px;margin-bottom: 15px;" title="">……</button>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Executable
+38
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $form yii\bootstrap5\ActiveForm */
|
||||
|
||||
/* @var $model \common\models\LoginForm */
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\bootstrap5\ActiveForm;
|
||||
|
||||
$this->title = Yii::t('frontend', 'Login');
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="site-login">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
|
||||
|
||||
<?= $form->field($model, 'username')->textInput(['autofocus' => TRUE]) ?>
|
||||
|
||||
<?= $form->field($model, 'password')->passwordInput() ?>
|
||||
|
||||
<?= $form->field($model, 'rememberMe')->checkbox() ?>
|
||||
|
||||
<div style="color:#999;margin:1em 0">
|
||||
如果您忘记了登陆密码,可点击这里申请 <?= Html::a('重设密码', ['site/request-password-reset']) ?>.
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton(Yii::t('frontend', 'Login'), ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
|
||||
$this->title = Yii::t('frontend', 'Site Name');
|
||||
$message = Yii::t('frontend', 'The site is now offline. Please view later…');
|
||||
|
||||
?>
|
||||
<div class="alert alert-warning">
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $form yii\bootstrap5\ActiveForm */
|
||||
|
||||
/* @var $model \frontend\models\PasswordResetRequestForm */
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\bootstrap5\ActiveForm;
|
||||
|
||||
$this->title = '申请修改密码';
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="site-request-password-reset">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<p>请填写您注册时用的邮箱,系统将密码重置链接发送至您的邮箱.</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<?php $form = ActiveForm::begin(['id' => 'request-password-reset-form']); ?>
|
||||
|
||||
<?= $form->field($model, 'email')->textInput(['autofocus' => TRUE]) ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton('发送', ['class' => 'btn btn-primary']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Executable
+32
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $form yii\bootstrap5\ActiveForm */
|
||||
|
||||
/* @var $model \frontend\models\ResetPasswordForm */
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\bootstrap5\ActiveForm;
|
||||
|
||||
$this->title = 'Reset password';
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="site-reset-password">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<p>设置新的密码:</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<?php $form = ActiveForm::begin(['id' => 'reset-password-form']); ?>
|
||||
|
||||
<?= $form->field($model, 'password')->passwordInput(['autofocus' => TRUE]) ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton('Save', ['class' => 'btn btn-primary']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Executable
+36
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $form yii\bootstrap5\ActiveForm */
|
||||
|
||||
/* @var $model \frontend\models\SignupForm */
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\bootstrap5\ActiveForm;
|
||||
|
||||
$this->title = '注册';
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="site-signup">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<p>请提供以下信息进行注册:</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>
|
||||
|
||||
<?= $form->field($model, 'username')->textInput(['autofocus' => TRUE]) ?>
|
||||
|
||||
<?= $form->field($model, 'email') ?>
|
||||
|
||||
<?= $form->field($model, 'password')->passwordInput() ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton(Yii::t('frontend', 'Signup'), ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user