Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SooonerHotel
Project
Project
Details
Activity
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
吴贤德
SooonerHotel
Commits
d5e0d758
Commit
d5e0d758
authored
Aug 07, 2019
by
wangjiangze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分前端许可码更新
parent
4f0f54b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
FrontAction.class.php
SooonerHotel/App/Lib/Action/Hotel/FrontAction.class.php
+10
-0
add.html
SooonerHotel/App/Tpl/Hotel/zh-cn/Front/add.html
+11
-0
No files found.
SooonerHotel/App/Lib/Action/Hotel/FrontAction.class.php
View file @
d5e0d758
<?php
require
'./App/Predis/autoload.php'
;
class
FrontAction
extends
CommonAction
{
//管理
...
...
@@ -35,6 +37,13 @@ class FrontAction extends CommonAction{
if
(
$id
){
$info
=
$model
->
where
(
"id =
$id
"
)
->
find
();
$redisConfig
=
C
(
'RedisConfig'
);
$server
=
$redisConfig
[
"server"
];
$options
=
$redisConfig
[
"options"
];
$redis
=
new
Predis\Client
(
$server
,
$options
);
$licence_lists
=
$redis
->
hgetall
(
"LE:"
.
$info
[
'code'
]);
$this
->
licence_lists
=
$licence_lists
;
$this
->
info
=
$info
;
$storage_list
=
$deviceStorageModel
->
field
(
"id,`path`,`size`"
)
->
where
(
"device_id =
$id
"
)
->
select
();
$this
->
storage_list
=
$storage_list
;
...
...
@@ -62,6 +71,7 @@ class FrontAction extends CommonAction{
$data
[
'port'
]
=
I
(
"port"
);
$data
[
'virtual_ip'
]
=
I
(
"virtual_ip"
);
$data
[
'netcard'
]
=
I
(
"netcard"
);
$data
[
'licence'
]
=
I
(
"licence"
)
?
I
(
"licence"
)
:
''
;
$data
[
'remark'
]
=
I
(
"remark"
);
$data
[
'status'
]
=
I
(
"status"
);
...
...
SooonerHotel/App/Tpl/Hotel/zh-cn/Front/add.html
View file @
d5e0d758
...
...
@@ -96,6 +96,17 @@ body{padding:20px}
</div>
</volist>
</div>
<div
class=
"form-group"
>
<label
for=
"name"
class=
"col-sm-2 control-label"
>
分前端许可码
</label>
<div
class=
"col-sm-6"
name=
"type"
>
<select
class=
"form-control"
name=
"licence"
>
<option
value=
"0"
>
请选择分前端许可码
</option>
<volist
name=
"licence_lists"
id=
"item"
>
<option
value=
"{$key}"
>
【{$item|date='Y-m-d H:i:s',###}】{$key}
</option>
</volist>
</select>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputPassword3"
class=
"col-sm-2 control-label"
>
备注
</label>
<div
class=
"col-sm-9"
>
...
...
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