Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopBack
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
newshop
newShopBack
Commits
c849bc30
Commit
c849bc30
authored
Nov 15, 2019
by
郭勇志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除多余文件
parent
5d701867
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
195 deletions
+0
-195
main.php
backend/views/layouts/main.php
+0
-80
error.php
backend/views/site/error.php
+0
-27
index.php
backend/views/site/index.php
+0
-53
login.php
backend/views/site/login.php
+0
-35
No files found.
backend/views/layouts/main.php
deleted
100644 → 0
View file @
5d701867
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use
backend\assets\AppAsset
;
use
yii\helpers\Html
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\NavBar
;
use
yii\widgets\Breadcrumbs
;
use
common\widgets\Alert
;
AppAsset
::
register
(
$this
);
?>
<?php
$this
->
beginPage
()
?>
<!DOCTYPE html>
<html
lang=
"
<?=
Yii
::
$app
->
language
?>
"
>
<head>
<meta
charset=
"
<?=
Yii
::
$app
->
charset
?>
"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<?php
$this
->
registerCsrfMetaTags
()
?>
<title>
<?=
Html
::
encode
(
$this
->
title
)
?>
</title>
<?php
$this
->
head
()
?>
</head>
<body>
<?php
$this
->
beginBody
()
?>
<div
class=
"wrap"
>
<?php
NavBar
::
begin
([
'brandLabel'
=>
Yii
::
$app
->
name
,
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'options'
=>
[
'class'
=>
'navbar-inverse navbar-fixed-top'
,
],
]);
$menuItems
=
[
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
];
if
(
Yii
::
$app
->
user
->
isGuest
)
{
$menuItems
[]
=
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]];
}
else
{
$menuItems
[]
=
'<li>'
.
Html
::
beginForm
([
'/site/logout'
],
'post'
)
.
Html
::
submitButton
(
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
[
'class'
=>
'btn btn-link logout'
]
)
.
Html
::
endForm
()
.
'</li>'
;
}
echo
Nav
::
widget
([
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
'items'
=>
$menuItems
,
]);
NavBar
::
end
();
?>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
?>
<?=
Alert
::
widget
()
?>
<?=
$content
?>
</div>
</div>
<footer
class=
"footer"
>
<div
class=
"container"
>
<p
class=
"pull-left"
>
©
<?=
Html
::
encode
(
Yii
::
$app
->
name
)
?>
<?=
date
(
'Y'
)
?>
</p>
<p
class=
"pull-right"
>
<?=
Yii
::
powered
()
?>
</p>
</div>
</footer>
<?php
$this
->
endBody
()
?>
</body>
</html>
<?php
$this
->
endPage
()
?>
backend/views/site/error.php
deleted
100644 → 0
View file @
5d701867
<?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>
backend/views/site/index.php
deleted
100644 → 0
View file @
5d701867
<?php
/* @var $this yii\web\View */
$this
->
title
=
'My Yii Application'
;
?>
<div
class=
"site-index"
>
<div
class=
"jumbotron"
>
<h1>
Congratulations!
</h1>
<p
class=
"lead"
>
You have successfully created your Yii-powered application.
</p>
<p><a
class=
"btn btn-lg btn-success"
href=
"http://www.yiiframework.com"
>
Get started with Yii
</a></p>
</div>
<div
class=
"body-content"
>
<div
class=
"row"
>
<div
class=
"col-lg-4"
>
<h2>
Heading
</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
</p>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/doc/"
>
Yii Documentation
»
</a></p>
</div>
<div
class=
"col-lg-4"
>
<h2>
Heading
</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
</p>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/forum/"
>
Yii Forum
»
</a></p>
</div>
<div
class=
"col-lg-4"
>
<h2>
Heading
</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
</p>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/extensions/"
>
Yii Extensions
»
</a></p>
</div>
</div>
</div>
</div>
backend/views/site/login.php
deleted
100644 → 0
View file @
5d701867
<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
use
yii\helpers\Html
;
use
yii\bootstrap\ActiveForm
;
$this
->
title
=
'Login'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
<div
class=
"site-login"
>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<p>
Please fill out the following fields to login:
</p>
<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
class=
"form-group"
>
<?=
Html
::
submitButton
(
'Login'
,
[
'class'
=>
'btn btn-primary'
,
'name'
=>
'login-button'
])
?>
</div>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment