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
5a73aa90
Commit
5a73aa90
authored
Jul 09, 2019
by
wangjiangze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
6736c928
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
4 deletions
+33
-4
ConfAction.class.php
SooonerHotel/App/Lib/Action/Sp/ConfAction.class.php
+1
-0
SpAction.class.php
SooonerHotel/App/Lib/Action/Sp/SpAction.class.php
+1
-0
add.html
SooonerHotel/App/Tpl/Sp/zh-cn/Conf/add.html
+6
-0
index.html
SooonerHotel/App/Tpl/Sp/zh-cn/Conf/index.html
+4
-3
add.html
SooonerHotel/App/Tpl/Sp/zh-cn/Sp/add.html
+12
-0
index.html
SooonerHotel/App/Tpl/Sp/zh-cn/Sp/index.html
+9
-1
No files found.
SooonerHotel/App/Lib/Action/Sp/ConfAction.class.php
View file @
5a73aa90
...
@@ -46,6 +46,7 @@ class ConfAction extends CommonAction{
...
@@ -46,6 +46,7 @@ class ConfAction extends CommonAction{
$data
[
'sp_id'
]
=
I
(
"sp_id"
);
$data
[
'sp_id'
]
=
I
(
"sp_id"
);
$data
[
'remark'
]
=
I
(
"remark"
);
$data
[
'remark'
]
=
I
(
"remark"
);
$data
[
'status'
]
=
I
(
"status"
);
$data
[
'status'
]
=
I
(
"status"
);
$data
[
'v'
]
=
I
(
"v"
);
if
(
$id
){
if
(
$id
){
$data
[
'id'
]
=
$id
;
$data
[
'id'
]
=
$id
;
...
...
SooonerHotel/App/Lib/Action/Sp/SpAction.class.php
View file @
5a73aa90
...
@@ -52,6 +52,7 @@ class SpAction extends CommonAction{
...
@@ -52,6 +52,7 @@ class SpAction extends CommonAction{
$data
[
'mobile'
]
=
I
(
"mobile"
);
$data
[
'mobile'
]
=
I
(
"mobile"
);
$data
[
'remark'
]
=
I
(
"remark"
);
$data
[
'remark'
]
=
I
(
"remark"
);
$data
[
'status'
]
=
I
(
"status"
);
$data
[
'status'
]
=
I
(
"status"
);
$data
[
'push_type'
]
=
I
(
"push_type"
);
if
(
$id
){
if
(
$id
){
$data
[
'id'
]
=
$id
;
$data
[
'id'
]
=
$id
;
...
...
SooonerHotel/App/Tpl/Sp/zh-cn/Conf/add.html
View file @
5a73aa90
...
@@ -41,6 +41,12 @@ body{padding:20px}
...
@@ -41,6 +41,12 @@ body{padding:20px}
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
placeholder=
"请输入配置类型code"
name=
"type_code"
value=
"{$info.type_code}"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
placeholder=
"请输入配置类型code"
name=
"type_code"
value=
"{$info.type_code}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
配置值
</label>
<div
class=
"col-sm-6"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
placeholder=
"请输入配置值"
name=
"v"
value=
"{$info.v}"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputPassword3"
class=
"col-sm-2 control-label"
>
备注
</label>
<label
for=
"inputPassword3"
class=
"col-sm-2 control-label"
>
备注
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
...
...
SooonerHotel/App/Tpl/Sp/zh-cn/Conf/index.html
View file @
5a73aa90
...
@@ -66,9 +66,10 @@ onRowContextMenu : onRowContextMenu
...
@@ -66,9 +66,10 @@ onRowContextMenu : onRowContextMenu
<thead>
<thead>
<tr>
<tr>
<th
data-options=
"field:'name',width:40"
sortable=
"true"
>
配置名称
</th>
<th
data-options=
"field:'name',width:40"
sortable=
"true"
>
配置名称
</th>
<th
data-options=
"field:'type_code',width:20"
>
配置类型code
</th>
<th
data-options=
"field:'type_code',width:30"
>
配置类型code
</th>
<th
data-options=
"field:'sp_name',width:40"
>
合作方
</th>
<th
data-options=
"field:'v',width:60"
>
配置值
</th>
<th
data-options=
"field:'remark',width:40"
>
备注
</th>
<th
data-options=
"field:'sp_name',width:20"
>
合作方
</th>
<th
data-options=
"field:'remark',width:20"
>
备注
</th>
<th
data-options=
"field:'addtime',width:20"
sortable=
"true"
>
创建时间
</th>
<th
data-options=
"field:'addtime',width:20"
sortable=
"true"
>
创建时间
</th>
<th
data-options=
"field:'updatetime',width:20"
sortable=
"true"
>
更新时间
</th>
<th
data-options=
"field:'updatetime',width:20"
sortable=
"true"
>
更新时间
</th>
<th
data-options=
"field:'status'"
sortable=
"true"
align=
"center"
>
状态
</th>
<th
data-options=
"field:'status'"
sortable=
"true"
align=
"center"
>
状态
</th>
...
...
SooonerHotel/App/Tpl/Sp/zh-cn/Sp/add.html
View file @
5a73aa90
...
@@ -42,6 +42,17 @@ body{padding:20px}
...
@@ -42,6 +42,17 @@ body{padding:20px}
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
placeholder=
"请输入手机号"
name=
"mobile"
value=
"{$info.mobile}"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
placeholder=
"请输入手机号"
name=
"mobile"
value=
"{$info.mobile}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputPassword3"
class=
"col-sm-2 control-label"
>
是否推送
</label>
<div
class=
"col-sm-9"
>
<label
class=
"radio-inline"
>
<input
type=
"radio"
name=
"push_type"
id=
"optionsRadios4"
value=
"1"
>
推送
</label>
<label
class=
"radio-inline"
>
<input
type=
"radio"
name=
"push_type"
id=
"optionsRadios4"
value=
"0"
checked=
"checked"
>
不推送
</label>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputPassword3"
class=
"col-sm-2 control-label"
>
备注
</label>
<label
for=
"inputPassword3"
class=
"col-sm-2 control-label"
>
备注
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
...
@@ -119,6 +130,7 @@ $().ready(function(){
...
@@ -119,6 +130,7 @@ $().ready(function(){
$
(
"select[id='province_select'] option[value='"
+
province_id
+
"']"
).
attr
(
"selected"
,
true
);
$
(
"select[id='province_select'] option[value='"
+
province_id
+
"']"
).
attr
(
"selected"
,
true
);
$
(
"select[name='region_id'] option[value='{$info.region_id}']"
).
attr
(
"selected"
,
true
);
$
(
"select[name='region_id'] option[value='{$info.region_id}']"
).
attr
(
"selected"
,
true
);
$
(
"input[name='status'][value='{$info.status}']"
).
attr
(
"checked"
,
true
);
$
(
"input[name='status'][value='{$info.status}']"
).
attr
(
"checked"
,
true
);
$
(
"input[name='push_type'][value='{$info.push_type}']"
).
attr
(
"checked"
,
true
);
<
/if
>
<
/if
>
});
});
</script>
</script>
...
...
SooonerHotel/App/Tpl/Sp/zh-cn/Sp/index.html
View file @
5a73aa90
...
@@ -67,6 +67,8 @@ onRowContextMenu : onRowContextMenu
...
@@ -67,6 +67,8 @@ onRowContextMenu : onRowContextMenu
<th
data-options=
"field:'addtime',width:30"
sortable=
"true"
>
创建时间
</th>
<th
data-options=
"field:'addtime',width:30"
sortable=
"true"
>
创建时间
</th>
<th
data-options=
"field:'updatetime',width:30"
sortable=
"true"
>
更新时间
</th>
<th
data-options=
"field:'updatetime',width:30"
sortable=
"true"
>
更新时间
</th>
<th
data-options=
"field:'status'"
sortable=
"true"
align=
"center"
>
状态
</th>
<th
data-options=
"field:'status'"
sortable=
"true"
align=
"center"
>
状态
</th>
<th
data-options=
"field:'push_type'"
sortable=
"true"
align=
"center"
formatter=
"PushTypeAction"
>
是否推送
</th>
<th
data-options=
"field:'push_offset'"
sortable=
"true"
align=
"center"
>
推送时间
</th>
<th
field=
"action"
align=
"center"
formatter=
"InputAction"
>
操作
</th>
<th
field=
"action"
align=
"center"
formatter=
"InputAction"
>
操作
</th>
</tr>
</tr>
</thead>
</thead>
...
@@ -100,7 +102,13 @@ function onRowContextMenu(e, rowIndex, rowData){
...
@@ -100,7 +102,13 @@ function onRowContextMenu(e, rowIndex, rowData){
function
InputAction
(
value
,
row
,
index
)
{
function
InputAction
(
value
,
row
,
index
)
{
return
'<a href="javascript:void(0)" id="mb'
+
index
+
'" class="easyui-menubutton" menu="#mm1" iconCls="icon-list" onmouseover="setSelectRow('
+
index
+
')">'
+
this
.
title
+
'</a>'
;
return
'<a href="javascript:void(0)" id="mb'
+
index
+
'" class="easyui-menubutton" menu="#mm1" iconCls="icon-list" onmouseover="setSelectRow('
+
index
+
')">'
+
this
.
title
+
'</a>'
;
}
}
function
PushTypeAction
(
value
,
row
,
index
)
{
if
(
value
==
1
){
return
"推送"
;
}
else
{
return
"不推送"
;
}
}
function
setSelectRow
(
index
)
{
function
setSelectRow
(
index
)
{
$
(
'#dg'
).
datagrid
(
'unselectAll'
);
$
(
'#dg'
).
datagrid
(
'unselectAll'
);
$
(
'#dg'
).
datagrid
(
'selectRow'
,
index
);
$
(
'#dg'
).
datagrid
(
'selectRow'
,
index
);
...
...
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