Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
backend
Commits
206a8d56
Commit
206a8d56
authored
Nov 19, 2018
by
LiuJunYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动/商家
parent
3e63713b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
3 deletions
+21
-3
application/admin/controller/Project.php
+18
-0
application/admin/view/project/index.html
+2
-2
application/admin/view/project/save.html
+0
-0
application/database.php
+1
-1
public/upload/qrcode/20181119/4da8f9bbc5596da3b73c54ac0ec38bfa.jpg
+0
-0
public/upload/qrcode/20181119/5abb3bd9ac9f1e2a54a4afe65905a831.jpg
+0
-0
No files found.
application/admin/controller/Project.php
View file @
206a8d56
...
@@ -11,7 +11,10 @@ namespace app\admin\controller;
...
@@ -11,7 +11,10 @@ namespace app\admin\controller;
use
app\admin\controller\AuthBase
;
use
app\admin\controller\AuthBase
;
use
app\common\model\Admin
as
AdminModel
;
use
app\common\model\Admin
as
AdminModel
;
use
app\admin\controller\Upload
;
use
app\admin\controller\Upload
;
use
app\common\model\Catalogs
;
use
app\common\model\Citys
;
use
app\common\model\Project
as
ProjectModel
;
use
app\common\model\Project
as
ProjectModel
;
use
app\common\model\Tags
;
class
Project
extends
AuthBase
class
Project
extends
AuthBase
{
{
...
@@ -548,4 +551,19 @@ class Project extends AuthBase
...
@@ -548,4 +551,19 @@ class Project extends AuthBase
$project
->
allowField
(
'id'
,
'sort'
)
->
update
(
input
(
'post.'
));
$project
->
allowField
(
'id'
,
'sort'
)
->
update
(
input
(
'post.'
));
halt
(
$project
->
getLastSql
());
halt
(
$project
->
getLastSql
());
}
}
public
function
save
()
{
if
(
input
(
'id'
)){
$info
=
ProjectModel
::
get
(
input
(
'id'
));
$this
->
assign
(
'info'
,
$info
);
}
//分类
$catalogs
=
Catalogs
::
all
();
//城市
$city
=
Citys
::
all
();
//标签
$tags
=
Tags
::
all
();
return
$this
->
fetch
(
''
,
compact
(
'catalogs'
,
'city'
,
'tags'
));
}
}
}
application/admin/view/project/index.html
View file @
206a8d56
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<button
type=
"submit"
class=
"btn btn-primary"
>
搜索
</button>
<button
type=
"submit"
class=
"btn btn-primary"
>
搜索
</button>
</form>
</form>
<div
class=
" pull-left margin-left"
>
<div
class=
" pull-left margin-left"
>
<a
href=
"{:url('admin/project/
creat
e')}"
class=
"btn btn-success"
>
创建活动/商家
</a>
<a
href=
"{:url('admin/project/
sav
e')}"
class=
"btn btn-success"
>
创建活动/商家
</a>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
<input
type=
"number"
size=
"4"
style=
"width:50px"
onchange=
"setSort(this.value,{$vo.id})"
value=
"{$vo.sort}"
>
<input
type=
"number"
size=
"4"
style=
"width:50px"
onchange=
"setSort(this.value,{$vo.id})"
value=
"{$vo.sort}"
>
</td>
</td>
<td>
<td>
<a
href=
"{:url('admin/project/
updateProject
',['id'=>$vo.id,'page'=>input('page')])}"
class=
"btn btn-xs btn-primary"
><i
class=
"fa fa-pencil"
></i></a>
<a
href=
"{:url('admin/project/
save
',['id'=>$vo.id,'page'=>input('page')])}"
class=
"btn btn-xs btn-primary"
><i
class=
"fa fa-pencil"
></i></a>
<a
href=
"javascript:"
oid=
"{$vo.id}"
class=
"btn btn-xs btn-danger btn-delete"
><i
class=
"fa fa-trash"
></i></a>
<a
href=
"javascript:"
oid=
"{$vo.id}"
class=
"btn btn-xs btn-danger btn-delete"
><i
class=
"fa fa-trash"
></i></a>
</td>
</td>
</tr>
</tr>
...
...
application/admin/view/project/save.html
0 → 100644
View file @
206a8d56
This diff is collapsed.
Click to expand it.
application/database.php
View file @
206a8d56
...
@@ -13,7 +13,7 @@ $config = [
...
@@ -13,7 +13,7 @@ $config = [
// 数据库类型
// 数据库类型
'type'
=>
'mysql'
,
'type'
=>
'mysql'
,
// 服务器地址
// 服务器地址
'hostname'
=>
'
127.0.0.1
'
,
'hostname'
=>
'
mkt.jqlink.tech
'
,
// 数据库名
// 数据库名
'database'
=>
'maveler'
,
'database'
=>
'maveler'
,
// 用户名
// 用户名
...
...
public/upload/qrcode/20181119/4da8f9bbc5596da3b73c54ac0ec38bfa.jpg
0 → 100644
View file @
206a8d56
27.3 KB
public/upload/qrcode/20181119/5abb3bd9ac9f1e2a54a4afe65905a831.jpg
0 → 100644
View file @
206a8d56
27.3 KB
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