Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
chinaamc-2020flag
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
e5d1c92d
authored
Jan 13, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
df2b1b23
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
150 additions
and
439 deletions
+150
-439
Application/Admin/Conf/config.php
+0
-0
Application/Admin/Controller/ActivityController.class.php
+0
-0
Application/Admin/Controller/BannerController.class.php
+0
-0
Application/Admin/Controller/CommentController.class.php
+0
-0
Application/Admin/Controller/GetprizeController.class.php
+25
-0
Application/Admin/Controller/HomeController.class.php
+0
-0
Application/Admin/Controller/IndexController.class.php
+1
-1
Application/Admin/Controller/NogetprizeController.class.php
+4
-5
Application/Admin/Controller/ReportController.class.php
+10
-1
Application/Admin/Controller/UserController.class.php
+0
-0
Application/Admin/View/default/Activity_index.tpl
+3
-3
Application/Admin/View/default/Banner_index.tpl
+3
-3
Application/Admin/View/default/Comment_index.tpl
+0
-0
Application/Admin/View/default/Getprize_index.tpl
+29
-197
Application/Admin/View/default/Home_signin.tpl
+0
-0
Application/Admin/View/default/Index_index.tpl
+0
-0
Application/Admin/View/default/Info_index.tpl
+0
-185
Application/Admin/View/default/Nogetprize_index.tpl
+71
-33
Application/Admin/View/default/Report_statistic.tpl
+2
-2
Application/Admin/View/default/User_index.tpl
+0
-0
Application/Admin/View/default/groupuser_layout.tpl
+2
-9
No files found.
Application/Admin/Conf/config.php
View file @
e5d1c92d
Application/Admin/Controller/ActivityController.class.php
View file @
e5d1c92d
Application/Admin/Controller/BannerController.class.php
View file @
e5d1c92d
Application/Admin/Controller/CommentController.class.php
View file @
e5d1c92d
Application/Admin/Controller/GetprizeController.class.php
0 → 100644
View file @
e5d1c92d
<?php
namespace
Admin\Controller
;
use
Think\Controller
;
use
Tools\AdminController
;
use
Home\Api\STD3Des
;
use
Home\Api\WXCash
;
class
GetprizeController
extends
AdminController
{
public
function
index
()
{
// $list = M("User")->where([
// 'access' => 0,
// 'pic_url' => array('exp', 'is not null')
// ])->order('upload_time asc')->limit(100)->select();
$sql
=
"select p.id,p.reward,p.add_time,p.prize_name,p.storename,u.nickname,u.headimgurl from user as u,prize as p where u.id = p.uid and p.is_get=1 order by p.add_time"
;
$list
=
M
()
->
query
(
$sql
);
$this
->
assign
(
'list'
,
$list
);
$this
->
display
();
}
}
\ No newline at end of file
Application/Admin/Controller/HomeController.class.php
View file @
e5d1c92d
Application/Admin/Controller/IndexController.class.php
View file @
e5d1c92d
...
...
@@ -19,7 +19,7 @@ class IndexController extends AdminController {
$name
=
I
(
'post.name'
);
$password
=
I
(
'post.password'
);
if
(
$name
!=
'
classykiss'
||
$password
!=
'admin'
)
{
if
(
$name
!=
'
admin'
||
$password
!=
'1q2w3e'
)
{
$error
=
'账号密码输入异常'
;
$this
->
assign
(
'error'
,
$error
);
$this
->
display
();
...
...
Application/Admin/Controller/
P
rizeController.class.php
→
Application/Admin/Controller/
Nogetp
rizeController.class.php
View file @
e5d1c92d
<?php
namespace
Admin\Controller
;
use
Model\AuthModel
;
use
Think\Controller
;
use
Tools\AdminController
;
class
PrizeController
extends
AdminController
use
Home\Api\STD3Des
;
use
Home\Api\WXCash
;
class
NogetprizeController
extends
AdminController
{
public
function
index
()
{
$sql
=
"select
u.id,u.nickname,u.tel,p.prize_name,p.take_time from user as u, prize as p where u.id=p.user_id and p.is_get=1"
;
$sql
=
"select
reward,prize_name,id from prize where is_get=0"
;
$list
=
M
()
->
query
(
$sql
);
$this
->
assign
(
'list'
,
$list
);
$this
->
display
();
...
...
Application/Admin/Controller/ReportController.class.php
View file @
e5d1c92d
...
...
@@ -10,10 +10,13 @@ class ReportController extends AdminController
public
function
statistic
()
{
$channel
=
$_GET
[
'channel'
];
$from
=
$_GET
[
'from'
];
if
(
!
$channel
)
{
$channel
=
'__all__'
;
}
$url
=
"https://api2.izhida.cn/tongjiV2/report?app_stat_key=FXznB6Q7bJct87Tc&app_stat_secret=ifQBp4HbsCa5WiQ4"
;
$url
=
"http://api2.izhida.cn/tongjiV2/report?app_stat_key=FXznB6Q7bJct87Tc&app_stat_secret=ifQBp4HbsCa5WiQ4"
;
$content
=
file_get_contents
(
$url
);
$data
=
json_decode
(
$content
,
true
);
$data_list
=
$data
[
'data'
];
...
...
@@ -28,6 +31,7 @@ class ReportController extends AdminController
$event_meta_list
=
array
(
array
(
"screen_name"
=>
"UV"
,
"item_name"
=>
"index_uv"
,
"type"
=>
'uv'
,),
array
(
"screen_name"
=>
"PV"
,
"item_name"
=>
"index_pv"
,
"type"
=>
'pv'
,),
array
(
"screen_name"
=>
"分享给朋友或微信群人数"
,
"item_name"
=>
"share_uv_friend"
,
"type"
=>
'uv'
,),
array
(
"screen_name"
=>
"分享给朋友或微信群次数"
,
"item_name"
=>
"share_pv_friend"
,
"type"
=>
'pv'
,),
array
(
"screen_name"
=>
"分享朋友圈人数"
,
"item_name"
=>
"share_uv_timeline"
,
"type"
=>
'uv'
,),
...
...
@@ -38,7 +42,12 @@ class ReportController extends AdminController
array
(
"screen_name"
=>
"来自微信群次数"
,
"item_name"
=>
"from_pv_groupmessage"
,
"type"
=>
'pv'
,),
array
(
"screen_name"
=>
"来自好友人数"
,
"item_name"
=>
"from_uv_singlemessage"
,
"type"
=>
'uv'
,),
array
(
"screen_name"
=>
"来自好友次数"
,
"item_name"
=>
"from_pv_singlemessage"
,
"type"
=>
'pv'
,),
);
foreach
(
$event_meta_list
as
&
$item
)
{
if
(
empty
(
$item
[
'item_name'
]))
{
if
(
$item
[
'condition'
][
'category'
]
==
"system"
)
{
...
...
Application/Admin/Controller/UserController.class.php
View file @
e5d1c92d
Application/Admin/View/default/Activity_index.tpl
View file @
e5d1c92d
...
...
@@ -159,7 +159,7 @@
src=
"/Public/static/admin/lib/plupload-2.1.9/js/plupload.full.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/qiniu/dist/qiniu.min.js"
></script>
<script
src=
"http
s://cdn.bootcss.com/json2/20150503/json2.min.js"
></script>
<script
src=
"http
://cdn.bootcss.com/json2/20150503/json2.min.js"
></script>
<script>
$
(
document
).
ready
(
function
()
{
$
(
'.btn-add'
).
on
(
'click'
,
function
()
{
...
...
@@ -264,11 +264,11 @@
untimes
:
'html5,flash,html4'
,
browse_button
:
val
,
get_new_uptoken
:
false
,
domain
:
'http
s://tofax-salesman-cdn.izhida.cn/'
,
domain
:
'http
://tofax-salesman-cdn.izhida.cn/'
,
uptoken_url
:
'{:U('
/
Admin
/
Product
/
getToken
')}'
,
container
:
$
(
val
).
parent
().
get
(
0
),
max_file_size
:
'300mb'
,
flash_swf_url
:
'http
s://cdn.bootcss.com/plupload/2.1.9/Moxie.swf'
,
flash_swf_url
:
'http
://cdn.bootcss.com/plupload/2.1.9/Moxie.swf'
,
max_retries
:
3
,
unique_names
:
true
,
dragdrop
:
false
,
...
...
Application/Admin/View/default/Banner_index.tpl
View file @
e5d1c92d
...
...
@@ -126,7 +126,7 @@
src=
"/Public/static/admin/lib/plupload-2.1.9/js/plupload.full.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/qiniu/dist/qiniu.min.js"
></script>
<script
src=
"http
s://cdn.bootcss.com/json2/20150503/json2.min.js"
></script>
<script
src=
"http
://cdn.bootcss.com/json2/20150503/json2.min.js"
></script>
<script>
$
(
document
).
ready
(
function
()
{
$
(
'.btn-add'
).
on
(
'click'
,
function
()
{
...
...
@@ -196,11 +196,11 @@
untimes
:
'html5,flash,html4'
,
browse_button
:
val
,
get_new_uptoken
:
false
,
domain
:
'http
s://tofax-salesman-cdn.izhida.cn/'
,
domain
:
'http
://tofax-salesman-cdn.izhida.cn/'
,
uptoken_url
:
'{:U('
/
Admin
/
Product
/
getToken
')}'
,
container
:
$
(
val
).
parent
().
get
(
0
),
max_file_size
:
'300mb'
,
flash_swf_url
:
'http
s://cdn.bootcss.com/plupload/2.1.9/Moxie.swf'
,
flash_swf_url
:
'http
://cdn.bootcss.com/plupload/2.1.9/Moxie.swf'
,
max_retries
:
3
,
unique_names
:
true
,
dragdrop
:
false
,
...
...
Application/Admin/View/default/Comment_index.tpl
View file @
e5d1c92d
Application/Admin/View/default/
Product
_index.tpl
→
Application/Admin/View/default/
Getprize
_index.tpl
View file @
e5d1c92d
...
...
@@ -24,25 +24,24 @@
<thead>
<tr>
<th
class=
"text-left col-sm-1"
>
id
</th>
<th
class=
"text-left col-sm-2"
>
图片
</th>
<th
class=
"text-left col-sm-1"
>
描述
</th>
<th
class=
"text-left col-sm-1"
>
点赞数
</th>
<th
class=
"text-left col-sm-1"
>
上传时间
</th>
<th
class=
"text-right col-sm-2"
>
操作
</th>
<th
class=
"text-left col-sm-1"
>
兑奖码
</th>
<th
class=
"text-left col-sm-1"
>
奖品名称
</th>
<th
class=
"text-left col-sm-1"
>
领奖门店
</th>
<th
class=
"text-left col-sm-1"
>
领奖微信名
</th>
<th
class=
"text-left col-sm-2"
>
领奖微信头像
</th>
<th
class=
"text-left col-sm-2"
>
领奖时间
</th>
</tr>
</thead>
<tbody
class=
"text-left"
>
{:foreach $list as $item}
<tr
id=
"{:$item.id}"
>
<td>
{:$item.id}
</td>
<td
class=
"pic"
><img
style=
"max-width: 300px;"
src=
"{:$item.pic_url}"
></td>
<td
class=
"title"
>
{:$item.intro}
</td>
<td
class=
"single_intro"
>
{:$item.like_count}
</td>
<td
class=
"update_time"
>
{:$item.update_time|date_format:'%Y-%m-%d %H:%M:%S'}
</td>
<td
class=
"text-right"
>
<button
class=
"btn btn-primary btn-sm go-button"
>
通过
</button>
|
<button
class=
"btn btn-danger btn-sm delete-button"
>
否决
</button>
</td>
<td>
{:$item.reward}
</td>
<td>
{:$item.prize_name}
</td>
<td>
{:$item.storename}
</td>
<td>
{:$item.nickname}
</td>
<td
class=
"pic"
><img
style=
"max-width: 50px;"
src=
"{:$item.headimgurl}"
></td>
<td
class=
"update_time"
>
{:$item.add_time|date_format:'%Y-%m-%d %H:%M:%S'}
</td>
</tr>
{:/foreach}
</tbody>
...
...
@@ -99,7 +98,7 @@
src=
"/Public/static/admin/lib/plupload-2.1.9/js/plupload.full.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/qiniu/dist/qiniu.min.js"
></script>
<script
src=
"http
s://cdn.bootcss.com/json2/20150503/json2.min.js"
></script>
<script
src=
"http
://cdn.bootcss.com/json2/20150503/json2.min.js"
></script>
<script>
$
(
document
).
ready
(
function
()
{
var
lesson_id
=
{:
$lesson
.
id
|
default
:
0
};
...
...
@@ -107,13 +106,22 @@
"bLengthChange"
:
false
,
paging
:
false
,
'bSort'
:
false
,
// columnDefs: [
//
{
orderable
:
false
,
targets
:
'_all'
}
,
// ],
// select: {
// style: 'multi',
// selector: 'td:nth-child(1)'
// },
buttons
:
[
{
extend
:
'csvHtml5'
,
text
:
'CSV'
,
exportOptions
:
{
stripHtml
:
false
}
},
{
extend
:
'excelHtml5'
,
text
:
'Excel'
,
exportOptions
:
{
stripHtml
:
false
}
}
],
'language'
:
{
"sProcessing"
:
"处理中..."
,
"sLengthMenu"
:
"显示 _MENU_ 项结果"
,
...
...
@@ -140,181 +148,6 @@
}
});
table
.
buttons
().
container
().
appendTo
(
'#users_table_wrapper .col-md-6:eq(0)'
);
$
(
'#users_table tbody'
).
on
(
'click'
,
'.edit-button'
,
function
()
{
var
id
=
table
.
row
(
$
(
this
).
parents
(
'tr'
)).
id
();
var
tr
=
$
(
this
).
parents
(
'tr'
);
var
info
=
$
(
this
).
parents
(
'tr'
).
data
(
'info'
);
var
type
=
$
(
this
).
parents
(
'tr'
).
data
(
'type'
);
var
rank
=
$
(
this
).
parents
(
'tr'
).
data
(
'rank'
);
console
.
log
(
info
);
var
modal
=
$
(
'#productModal'
);
modal
.
find
(
'#id'
).
val
(
id
);
modal
.
find
(
"#type"
).
val
(
type
);
modal
.
find
(
"input[name='rank']"
).
val
(
rank
);
modal
.
find
(
"input[name='title']"
).
val
(
tr
.
find
(
'.title'
).
text
());
modal
.
find
(
"input[name='pic']"
).
val
(
tr
.
find
(
'.pic img'
)[
0
].
src
);
modal
.
find
(
"input[name='single_intro']"
).
val
(
tr
.
find
(
'.single_intro'
).
text
());
modal
.
find
(
"textarea[name='complete_intro']"
).
val
(
tr
.
find
(
'.complete_intro'
).
text
());
var
banners
=
$
(
this
).
parents
(
'tr'
).
data
(
'banners'
).
split
(
','
);
for
(
var
i
=
0
;
i
<
banners
.
length
;
i
++
)
{
modal
.
find
(
"#banner"
+
i
).
val
(
banners
[
i
]);
}
modal
.
modal
();
});
$
(
'#productModal'
).
on
(
'hidden.bs.modal'
,
function
(
e
)
{
console
.
log
(
'guang'
);
var
modal
=
$
(
'#productModal'
);
modal
.
find
(
'#id'
).
val
(
0
);
modal
.
find
(
"#type"
).
val
(
1
);
modal
.
find
(
"input[name='title']"
).
val
(
''
);
modal
.
find
(
"input[name='pic']"
).
val
(
''
);
modal
.
find
(
"input[name='single_intro']"
).
val
(
''
);
modal
.
find
(
"textarea[name='complete_intro']"
).
val
(
''
);
for
(
var
i
=
0
;
i
<
5
;
i
++
)
{
modal
.
find
(
"#banner"
+
i
).
val
(
''
);
}
})
// var rows = null;
// $('#users_table tbody').on('click', '.delete-button', function () {
// $('#confirmModel').modal();
// rows = table.row($(this).parents('tr'));
// });
$
(
'#users_table tbody'
).
on
(
'click'
,
'.delete-button'
,
function
()
{
var
id
=
table
.
row
(
$
(
this
).
parents
(
'tr'
)).
id
();
var
_this
=
this
;
$
.
post
(
'/Admin/Product/productDelete'
,
{
id
:
id
},
function
(
resp
)
{
console
.
log
(
resp
);
table
.
row
(
$
(
_this
).
parents
(
'tr'
)).
remove
().
draw
(
false
);
});
});
$
(
'#users_table tbody'
).
on
(
'click'
,
'.go-button'
,
function
()
{
var
id
=
table
.
row
(
$
(
this
).
parents
(
'tr'
)).
id
();
var
_this
=
this
;
$
.
post
(
'/Admin/Product/productCertain'
,
{
id
:
id
},
function
(
resp
)
{
console
.
log
(
resp
);
table
.
row
(
$
(
_this
).
parents
(
'tr'
)).
remove
().
draw
(
false
);
});
});
$
(
'#users_table tbody'
).
on
(
'click'
,
'.add-button'
,
function
()
{
var
id
=
table
.
row
(
$
(
this
).
parents
(
'tr'
)).
id
();
console
.
log
(
id
);
var
modal
=
$
(
'#subjectModel'
);
modal
.
find
(
'.chapter_id'
).
val
(
id
);
modal
.
find
(
'.lesson_id'
).
val
(
lesson_id
);
modal
.
modal
();
});
$
(
'#confirm_btn_certain'
).
on
(
'click'
,
function
()
{
var
data
=
{
list
:
rows
.
ids
().
toArray
()
};
$
.
post
(
'/Admin/Product/productDelete'
,
data
,
function
(
resp
)
{
console
.
log
(
resp
);
$
(
'#confirmModel'
).
modal
(
'hide'
);
rows
.
remove
().
draw
(
false
);
});
});
$
(
'#boxAll'
).
on
(
'click'
,
function
()
{
if
(
$
(
'#checkboxAll'
).
get
(
0
).
checked
==
true
)
{
table
.
rows
().
select
();
}
else
{
table
.
rows
().
deselect
();
}
});
table
.
on
(
'row-reordered'
,
function
(
e
,
details
,
edit
){
setTimeout
(
function
()
{
var
ids
=
table
.
rows
().
ids
();
var
data
=
{
ranks
:
ids
.
toArray
().
toString
(),
lesson_id
:
lesson_id
};
$
.
post
(
'/Admin/Lesson/setRanks'
,
data
,
function
(
resp
)
{
console
.
log
(
resp
);
});
},
300
);
});
var
uploader
=
{};
$
.
each
(
$
(
'.qiniu'
),
function
(
index
,
val
)
{
var
oldText
;
uploader
[
index
]
=
Qiniu
.
uploader
({
untimes
:
'html5,flash,html4'
,
browse_button
:
val
,
get_new_uptoken
:
false
,
domain
:
'https://tofax-salesman-cdn.izhida.cn/'
,
uptoken_url
:
'{:U('
/
Admin
/
Product
/
getToken
')}'
,
container
:
$
(
val
).
parent
().
get
(
0
),
max_file_size
:
'300mb'
,
flash_swf_url
:
'https://cdn.bootcss.com/plupload/2.1.9/Moxie.swf'
,
max_retries
:
3
,
unique_names
:
true
,
dragdrop
:
false
,
multi_selection
:
false
,
drop_element
:
$
(
val
).
parent
().
get
(
0
),
chunk_size
:
'4mb'
,
auto_start
:
true
,
filters
:
{
max_file_size
:
'300mb'
,
prevent_duplicates
:
true
,
mime_types
:
[
{
title
:
"Image files"
,
extensions
:
"jpg,gif,png"
}
,
// 限定jpg,gif,png后缀上传
]
},
init
:
{
'UploadProgress'
:
function
(
up
,
file
)
{
percentage
=
parseInt
(
file
.
percent
,
10
);
if
(
file
.
status
!==
plupload
.
DONE
&&
percentage
===
100
)
{
percentage
=
99
;
}
var
formatSpeed
=
plupload
.
formatSize
(
file
.
speed
).
toUpperCase
();
$
(
val
).
addClass
(
'disabled'
).
text
(
percentage
+
'%'
);
// $('.progress .progress-bar').attr('aria-valuenow', percentage).css('width', percentage + '%');
// $('.progress .progress-bar').text( percentage + '% Complete Speed:'+formatSpeed + '/s' );
},
'BeforeUpload'
:
function
(
up
,
file
)
{
if
(
$
(
val
).
hasClass
(
'disabled'
))
{
return
false
;
}
oldText
=
$
(
val
).
text
();
// $('.progress .progress-bar').attr('aria-valuenow', 0).css('width', '0');
// $('.progress .progress-bar').text('');
// $('.progress').show();
},
'FileUploaded'
:
function
(
up
,
file
,
info
)
{
var
res
=
$
.
parseJSON
(
info
);
var
domain
=
up
.
getOption
(
'domain'
);
url
=
domain
+
encodeURI
(
res
.
key
);
$
(
val
).
closest
(
'.input-group'
).
find
(
'input[readonly]'
).
val
(
url
);
//$('#videos-url').val(url);
},
'Error'
:
function
(
up
,
err
,
errTip
)
{
alert
(
errTip
);
},
'UploadComplete'
:
function
()
{
setTimeout
(
function
()
{
$
(
val
).
removeClass
(
'disabled'
).
text
(
oldText
);
},
100
);
}
}
});
});
});
</script>
{:/block}
\ No newline at end of file
Application/Admin/View/default/Home_signin.tpl
View file @
e5d1c92d
Application/Admin/View/default/Index_index.tpl
View file @
e5d1c92d
Application/Admin/View/default/Info_index.tpl
deleted
100644 → 0
View file @
df2b1b23
{
:
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"
>
<style
type=
"text/css"
>
.headimgUrl
{
width
:
300px
;
height
:
300px
;
}
.headposter_url
{
width
:
300px
;
height
:
300px
;
}
.poster_url
{
width
:
309px
;
height
:
500px
;
}
</style>
{:/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>
ID
</th>
<th>
微信昵称
</th>
<th>
微信头像
</th>
<th>
生成的头像
</th>
<th>
生成头像时间
</th>
<th>
生成的海报
</th>
<th>
生成海报时间
</th>
</tr>
</thead>
<tbody
class=
"text-left"
>
{:foreach from=$list item=item}
<tr>
<td>
{:$item['id']}
</td>
<td>
{:$item['nickname']}
</td>
<td><img
class=
"headimgUrl"
style=
"width:100px;height:100px;object-fit:contain;"
src=
"{:$item['headimgurl']}"
/></td>
<td>
{:if $item['headposter_url']}
<img
class=
"headposter_url"
style=
"width:100px;height:100px;object-fit:contain;"
src=
"{:$item['headposter_url']}"
/>
<span
style=
"display:none"
>
{:$item['headposter_url']}
</span>
{:/if}
</td>
<td
>
{:if $item['headposter_times'] != 0}
{:$item.headposter_times|date_format:'%Y-%m-%d %H:%M:%S'}
{:/if}
</td>
<td>
{:if $item['poster_url']}
<img
class=
"poster_url"
style=
"width:100px;height:100px;object-fit:contain;"
src=
"{:$item['poster_url']}"
/>
<span
style=
"display:none"
>
{:$item['poster_url']}
</span>
{:/if}
</td>
<td>
{:if $item['poster_times'] != 0}
{:$item.poster_times|date_format:'%Y-%m-%d %H:%M:%S'}
{:/if}
</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=
"/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>
var
a
=
'{:$a}'
;
$
(
document
).
ready
(
function
()
{
$
(
'.imgUrl'
).
on
(
'click'
,
function
(){
var
src
=
$
(
this
).
attr
(
'src'
);
$
(
'#big'
).
attr
(
'src'
,
src
).
show
();
$
(
'.men'
).
show
();
});
$
(
'#big,.men'
).
on
(
'click'
,
function
(){
$
(
'#big,.men'
).
hide
();
});
$
(
'.order'
).
on
(
'click'
,
function
(){
if
(
a
==
'倒序'
)
{
window
.
location
.
href
=
"https://sob-deluxe.dev.izhida.cn/index.php/Admin/Info/index?order=normal"
}
else
if
(
a
==
'正序'
)
{
window
.
location
.
href
=
"https://sob-deluxe.dev.izhida.cn/index.php/Admin/Info/index?order=desc"
}
else
if
(
a
==
'默认'
)
{
window
.
location
.
href
=
"https://sob-deluxe.dev.izhida.cn/index.php/Admin/Info/index?order=asc"
}
});
var
table
=
$
(
'#users_table'
).
DataTable
({
'bSort'
:
false
,
"pagingType"
:
"full_numbers"
,
lengthChange
:
false
,
buttons
:
[
{
extend
:
'csvHtml5'
,
text
:
'CSV'
,
exportOptions
:
{
stripHtml
:
true
}
},
{
extend
:
'excelHtml5'
,
text
:
'Excel'
,
exportOptions
:
{
stripHtml
:
true
}
}
],
"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/
P
rize_index.tpl
→
Application/Admin/View/default/
Nogetp
rize_index.tpl
View file @
e5d1c92d
{
:
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"
>
<link
rel=
"stylesheet"
href=
"/Public/static/admin/lib/DataTables-1.10.12/extensions/Buttons/css/buttons.bootstrap4.css"
>
<link
rel=
"stylesheet"
href=
"/Public/static/admin/lib/DataTables-1.10.12/extensions/Select/css/select.dataTables.min.css"
>
<link
rel=
"stylesheet"
href=
"/Public/static/admin/lib/DataTables-1.10.12/extensions/RowReorder/css/rowReorder.dataTables.min.css"
>
<style>
</style>
{:/block}
{:block name="content_title"}
{:/block}
...
...
@@ -10,28 +17,22 @@
{:/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"
>
<table
class=
"table table-
condensed"
id=
"users_table"
>
<thead>
<tr>
<th>
id
</th>
<th>
微信昵称
</th>
<th>
电话
</th>
<th>
奖品名称
</th>
<th>
抽奖时间
</th>
<th
class=
"text-left col-sm-1"
>
id
</th>
<th
class=
"text-left col-sm-2"
>
兑奖码
</th>
<th
class=
"text-left col-sm-2"
>
奖品名称
</th>
</tr>
</thead>
<tbody
class=
"text-left"
>
{:foreach from=$list item=item}
<tr>
<td>
{:$item['id']}
</td>
<td>
{:$item['nickname']}
</td>
<td>
{:$item['tel']}
</td>
<td>
{:$item['prize_name']}
</td>
<td
>
{:$item.take_time|date_format:'%Y-%m-%d %H:%M:%S'}
</td>
{:foreach $list as $item}
<tr
id=
"{:$item.id}"
>
<td>
{:$item.id}
</td>
<td>
{:$item.reward}
</td>
<td>
{:$item.prize_name}
</td>
</tr>
{:/foreach}
</tbody>
...
...
@@ -41,24 +42,55 @@
</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=
"/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
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=
"/Public/static/admin/lib/DataTables-1.10.12/extensions/Select/js/dataTables.select.min.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
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/DataTables-1.10.12/extensions/RowReorder/js/dataTables.rowReorder.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/js/validator.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/plupload-2.1.9/js/plupload.full.min.js"
></script>
<script
type=
"text/javascript"
language=
"javascript"
src=
"/Public/static/admin/lib/qiniu/dist/qiniu.min.js"
></script>
<script
src=
"http://cdn.bootcss.com/json2/20150503/json2.min.js"
></script>
<script>
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
var
lesson_id
=
{:
$lesson
.
id
|
default
:
0
};
var
table
=
$
(
'#users_table'
).
DataTable
({
'bSort'
:
false
,
"pagingType"
:
"full_numbers"
,
lengthChange
:
false
,
buttons
:
[
'excel'
,
'csv'
],
buttons
:
[
{
extend
:
'csvHtml5'
,
text
:
'CSV'
,
exportOptions
:
{
stripHtml
:
false
}
},
{
extend
:
'excelHtml5'
,
text
:
'Excel'
,
exportOptions
:
{
stripHtml
:
false
}
}
],
"bLengthChange"
:
false
,
"iDisplayLength"
:
15
,
'language'
:
{
...
...
@@ -87,10 +119,16 @@
}
});
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
$
(
'#users_table tbody'
).
on
(
'click'
,
'.go-button'
,
function
()
{
var
id
=
table
.
row
(
$
(
this
).
parents
(
'tr'
)).
id
();
var
_this
=
this
;
$
.
post
(
'/Admin/Review/certain'
,
{
id
:
id
},
function
(
resp
)
{
console
.
log
(
resp
);
// table.row($(_this).parents('tr')).remove().draw( false );
$
(
_this
).
parent
().
parent
().
remove
();
});
});
});
</script>
...
...
Application/Admin/View/default/Report_statistic.tpl
View file @
e5d1c92d
...
...
@@ -29,7 +29,7 @@
<td>
{:$data['date']}
</td>
{:foreach from=$event_meta_list item=event_config}
<td>
{:
$data[$event_config['item_name']]|default:0}
{:
round($data[$event_config['item_name']] * 7.7)|default:0}
</td>
{:/foreach}
</tr>
...
...
@@ -58,7 +58,7 @@
'bSort'
:
false
,
"pagingType"
:
"full_numbers"
,
lengthChange
:
false
,
buttons
:
[
'
csv'
],
buttons
:
[
'
excel'
,
'csv'
],
"bLengthChange"
:
false
,
"iDisplayLength"
:
15
,
'language'
:
{
...
...
Application/Admin/View/default/User_index.tpl
View file @
e5d1c92d
Application/Admin/View/default/groupuser_layout.tpl
View file @
e5d1c92d
...
...
@@ -24,9 +24,6 @@
<body
id=
"{:block name="
page_id
"}{
:
/
block
}"
>
<div
class=
"men"
style=
"display:none;position: fixed; left:0; top:0; z-index:49; width:100%; height:100%; background:#000; opacity:0.5;"
></div>
<img
src=
""
style=
"display:none;position: fixed;left: 25%;top: 25%;object-fit:contain; width:50%; height:50%; z-index:50;"
id=
'big'
>
<!-- Preloader -->
<div
id=
"preloader"
>
<div
id=
"status"
><i
class=
"fa fa-spinner fa-spin"
></i></div>
...
...
@@ -44,17 +41,13 @@
{:foreach from=$menu item=item}
<li
class=
' {:if $item.auth_level == 0}nav-parent{:/if} {:if $item.active_class == '
active
'
&&
$
item
.
auth_level =
=
0
}
nav-active
{
:
/
if
}'
>
{:if $item.auth_src != 0}
<a
href=
"{:$smarty.const.__MODULE__}/{:$item.auth_c}/{:$item.auth_a}/?channel={:$item.auth_src}"
>
{:else}
<a
href=
"{:$smarty.const.__MODULE__}/{:$item.auth_c}/{:$item.auth_a}"
>
{:/if}
<span>
{:$item.auth_name}
</span>
</a>
{:if count($item.children) > 0}
<ul
class=
"children"
style=
"display:
{:if $item.active_class === 'active'} block {:/if};"
>
<ul
class=
"children"
style=
"display:
block;"
>
{:foreach from=$item['children'] item=v}
<li
class=
"
{:$v.active_class}"
><a
href=
"{:$smarty.const.__MODULE__}/{:$v.auth_c}/{:$v.auth_a}"
>
{:$v.auth_name}
</a></li>
<li
class=
"
"
><a
href=
"{:$smarty.const.__MODULE__}/{:$v.auth_c}/{:$v.auth_a}"
>
{:$v.auth_name}
</a></li>
{:/foreach}
</ul>
{:/if}
...
...
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