Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
pingan-promise
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
da025131
authored
Mar 13, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
185685a0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
212 deletions
+0
-212
Application/Admin/Controller/ActivityController.class.php
+0
-40
Application/Admin/Controller/BannerController.class.php
+0
-38
Application/Admin/Controller/CommentController.class.php
+0
-16
Application/Admin/Controller/ProductController.class.php
+0
-20
Application/Admin/View/default/Activity_index.tpl
+0
-0
Application/Admin/View/default/Banner_index.tpl
+0
-0
Application/Admin/View/default/Comment_index.tpl
+0
-98
Application/Admin/View/default/Product_index.tpl
+0
-0
No files found.
Application/Admin/Controller/ActivityController.class.php
deleted
100644 → 0
View file @
185685a0
<?php
namespace
Admin\Controller
;
use
Think\Controller
;
use
Tools\AdminController
;
class
ActivityController
extends
AdminController
{
public
function
index
()
{
$list
=
M
(
"Activity"
)
->
select
();
$this
->
assign
(
'list'
,
$list
);
$this
->
display
();
}
public
function
activityAdd
()
{
// dump($_POST);
// die();
M
()
->
query
(
$sql
=
'TRUNCATE table `activity`'
);
$activity
=
$_POST
[
'activity'
];
foreach
(
$activity
as
$item
)
{
if
(
$item
[
'pic'
]
&&
$item
[
'url'
])
{
M
(
"Activity"
)
->
add
([
'pic'
=>
$item
[
'pic'
],
'url'
=>
$item
[
'url'
],
'rank'
=>
$item
[
'rank'
],
]);
}
}
$this
->
redirect
(
'index'
);
}
public
function
delete
()
{
M
(
'Activity'
)
->
where
([
'id'
=>
$_GET
[
'id'
]])
->
delete
();
$this
->
redirect
(
'index'
);
}
}
\ No newline at end of file
Application/Admin/Controller/BannerController.class.php
deleted
100644 → 0
View file @
185685a0
<?php
namespace
Admin\Controller
;
use
Think\Controller
;
use
Tools\AdminController
;
class
BannerController
extends
AdminController
{
public
function
index
()
{
$list
=
M
(
"Banner"
)
->
select
();
$this
->
assign
(
'list'
,
$list
);
$this
->
display
();
}
public
function
bannerAdd
()
{
M
()
->
query
(
$sql
=
'TRUNCATE table `banner`'
);
$activity
=
$_POST
[
'banner'
];
foreach
(
$activity
as
$item
)
{
if
(
$item
[
'pic'
]
&&
$item
[
'url'
])
{
M
(
"Banner"
)
->
add
([
'pic'
=>
$item
[
'pic'
],
'url'
=>
$item
[
'url'
],
'rank'
=>
$item
[
'rank'
],
]);
}
}
$this
->
redirect
(
'index'
);
}
public
function
delete
()
{
M
(
'Banner'
)
->
where
([
'id'
=>
$_GET
[
'id'
]])
->
delete
();
$this
->
redirect
(
'index'
);
}
}
\ No newline at end of file
Application/Admin/Controller/CommentController.class.php
deleted
100644 → 0
View file @
185685a0
<?php
namespace
Admin\Controller
;
use
Think\Controller
;
use
Tools\AdminController
;
class
CommentController
extends
AdminController
{
public
function
index
()
{
$list
=
M
(
"Comment"
)
->
select
();
$this
->
assign
(
'list'
,
$list
);
$this
->
display
();
}
}
\ No newline at end of file
Application/Admin/Controller/ProductController.class.php
deleted
100644 → 0
View file @
185685a0
<?php
namespace
Admin\Controller
;
use
Think\Controller
;
use
Tools\AdminController
;
use
Home\Api\STD3Des
;
use
Home\Api\WXCash
;
class
ProductController
extends
AdminController
{
public
function
index
()
{
$sql
=
"select p.id, p.type,p.prize_name, p.take_time, u.tel, u.name, u.address, u.phone_type from prize p left join `user` u on p.user_id = u.id where p.is_get=1 ORDER BY p.take_time DESC;"
;
$list
=
M
()
->
query
(
$sql
);
$this
->
assign
(
'list'
,
$list
);
$this
->
display
();
}
}
\ No newline at end of file
Application/Admin/View/default/Activity_index.tpl
deleted
100644 → 0
View file @
185685a0
This diff is collapsed.
Click to expand it.
Application/Admin/View/default/Banner_index.tpl
deleted
100644 → 0
View file @
185685a0
This diff is collapsed.
Click to expand it.
Application/Admin/View/default/Comment_index.tpl
deleted
100644 → 0
View file @
185685a0
{
:
extends
file
=
"groupuser_layout.tpl"
}
{:block name="header_css" append}
<link
rel=
"stylesheet"
href=
"/Public/static/admin/lib/DataTables-1.10.12/media/css/dataTables.bootstrap4.min.css"
>
<link
rel=
"stylesheet"
href=
"/Public/static/admin/lib/DataTables-1.10.12/extensions/Buttons/css/buttons.bootstrap4.css"
>
{:/block}
{:block name="content_title"}
{:/block}
{:block name="content_breadcrumb"}
首页
{:/block}
{:block name="content_body"}
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered"
id=
"users_table"
>
<thead>
<tr>
<th
class=
"text-left"
>
id
</th>
<th
class=
"text-left"
>
评论内容
</th>
<th
class=
"text-left"
>
时间
</th>
</tr>
</thead>
<tbody
class=
"text-left"
>
{:foreach $list as $item}
<tr
id=
"{:$item.id}"
>
<td>
{:$item.id}
</td>
<td>
{:$item.comment}
</td>
<td
class=
"add_time"
>
{:$item.add_time|date_format:'%Y-%m-%d %H:%M:%S'}
</td>
</tr>
{:/foreach}
</tbody>
</table>
</div>
</div>
</div>
{:/block}
{:block name="body_js" append}
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/DataTables-1.10.12/media/js/jquery.dataTables.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/DataTables-1.10.12/media/js/dataTables.bootstrap4.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/DataTables-1.10.12/extensions/Buttons/js/dataTables.buttons.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/DataTables-1.10.12/extensions/Buttons/js/buttons.bootstrap4.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"//cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"//cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"//cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/DataTables-1.10.12/extensions/Buttons/js/buttons.html5.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/DataTables-1.10.12/extensions/Buttons/js/buttons.print.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/DataTables-1.10.12/extensions/Buttons/js/buttons.colVis.min.js"
></script>
<script>
$
(
document
).
ready
(
function
()
{
var
table
=
$
(
'#users_table'
).
DataTable
({
'bSort'
:
false
,
"pagingType"
:
"full_numbers"
,
lengthChange
:
false
,
buttons
:
[
'excel'
,
'csv'
],
"bLengthChange"
:
false
,
"iDisplayLength"
:
15
,
'language'
:
{
"sProcessing"
:
"处理中..."
,
"sLengthMenu"
:
"显示 _MENU_ 项结果"
,
"sZeroRecords"
:
"没有匹配结果"
,
"sInfo"
:
"显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项"
,
"sInfoEmpty"
:
"显示第 0 至 0 项结果,共 0 项"
,
"sInfoFiltered"
:
"(由 _MAX_ 项结果过滤)"
,
"sInfoPostFix"
:
""
,
"sSearch"
:
"搜索:"
,
"sUrl"
:
""
,
"sEmptyTable"
:
"表中数据为空"
,
"sLoadingRecords"
:
"载入中..."
,
"sInfoThousands"
:
","
,
"oPaginate"
:
{
"sFirst"
:
"首页"
,
"sPrevious"
:
"上页"
,
"sNext"
:
"下页"
,
"sLast"
:
"末页"
},
"oAria"
:
{
"sSortAscending"
:
": 以升序排列此列"
,
"sSortDescending"
:
": 以降序排列此列"
}
}
});
table
.
buttons
().
container
().
appendTo
(
'#users_table_wrapper .col-md-6:eq(0)'
);
jQuery
(
"select"
).
chosen
({
'min-width'
:
'100px'
,
'white-space'
:
'nowrap'
,
disable_search_threshold
:
10
});
});
</script>
{:/block}
\ No newline at end of file
Application/Admin/View/default/Product_index.tpl
deleted
100644 → 0
View file @
185685a0
This diff is collapsed.
Click to expand it.
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