Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
xiaozhan
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
冷斌
xiaozhan
Commits
72271018
Commit
72271018
authored
Feb 19, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a37b635f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
0 deletions
+65
-0
admin/themes/simplebootx/Admin/Impression/index2.html
+49
-0
application/Admin/Controller/ImpressionController.class.php
+16
-0
No files found.
admin/themes/simplebootx/Admin/Impression/index2.html
0 → 100755
View file @
72271018
<admintpl
file=
"header"
/>
</head>
<body>
<div
class=
"wrap"
>
<ul
class=
"nav nav-tabs"
>
<li
class=
"active"
><a
>
列表
</a></li>
<li><a
href=
"{:U('Impression/add')}"
>
添加
</a></li>
</ul>
<form
method=
"post"
class=
"js-ajax-form"
action=
"{:U('Impression/listorders')}"
>
<div
class=
"table-actions"
>
<button
class=
"btn btn-primary btn-small js-ajax-submit"
type=
"submit"
>
{:L('SORT')}
</button>
</div>
<table
class=
"table table-hover table-bordered"
>
<thead>
<tr>
<th>
排序
</th>
<th
align=
"center"
>
ID
</th>
<th>
名称
</th>
<th>
颜色
</th>
<th
align=
"center"
>
{:L('ACTIONS')}
</th>
</tr>
</thead>
<tbody>
<foreach
name=
"lists"
item=
"vo"
>
<tr>
<td><input
name=
"listorders[{$vo['id']}]"
type=
"text"
size=
"3"
value=
"{$vo['orderno']}"
class=
"input input-order"
></td>
<td
align=
"center"
>
{$vo.id}
</td>
<td>
{$vo['name']}
</td>
<td><input
style=
"width:50px;height:20px;background:#{$vo['colour']};"
disabled
/></td>
<td
align=
"center"
>
<a
href=
"{:U('Impression/edit',array('id'=>$vo['id']))}"
>
编辑
</a>
|
<a
href=
"{:U('Impression/del',array('id'=>$vo['id']))}"
class=
"js-ajax-dialog-btn"
data-msg=
"您确定要删除吗?"
>
删除
</a>
</td>
</tr>
</foreach>
</tbody>
</table>
<div
class=
"pagination"
>
{$page}
</div>
<div
class=
"table-actions"
>
<button
class=
"btn btn-primary btn-small js-ajax-submit"
type=
"submit"
>
{:L('SORT')}
</button>
</div>
</form>
</div>
<script
src=
"__PUBLIC__/js/common.js"
></script>
</body>
</html>
\ No newline at end of file
application/Admin/Controller/ImpressionController.class.php
View file @
72271018
...
...
@@ -136,4 +136,20 @@ class ImpressionController extends AdminbaseController {
setcaches
(
$key
,
$rules
);
return
1
;
}
function
index2
(){
$gift_model
=
M
(
"impression_label"
);
$count
=
$gift_model
->
count
();
$page
=
$this
->
page
(
$count
,
20
);
$lists
=
$gift_model
//->where()
->
order
(
"orderno asc, id desc"
)
->
limit
(
$page
->
firstRow
.
','
.
$page
->
listRows
)
->
select
();
$this
->
assign
(
'lists'
,
$lists
);
$this
->
assign
(
"page"
,
$page
->
show
(
'Admin'
));
$this
->
display
();
}
}
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