Skip to content

Commit

Permalink
[m]some modification of paging in Admin's file
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnzhang committed May 20, 2015
1 parent 085ed3d commit 0262568
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Print/Admin/Controller/FileController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function search()
{
$this->redirect('Admin/Index/login');
}
$status = I('post.status', null, 'int');
$status = I('get.status', null, 'int');
switch ($status)
{
case 0:
Expand Down Expand Up @@ -92,7 +92,6 @@ public function search()
{
$file['ppt_layout'] = $ppt_layout[$file['ppt_layout']];
}
unset($file);
$this->data = $result;
$this->assign('page', $show);
$this->assign('status', $status);
Expand Down Expand Up @@ -222,7 +221,7 @@ public function notifyUsers()
{
echo "发送不成功";
}
echo $phone."\t\t".$msgInfo["user_name"]."\t\t".$msgInfo["info"]."\t\t".$msgInfo["status"];
echo $phone."\t\t".$msgInfo["user_name"]."\t\t".$msgInfo["info"]."\t\t".$msgInfo["status"]."<br />";
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Print/Admin/View/File/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{//页面主体}
<div style="text-align:center;">
<h2>文件状态:</h2>
<form action="__URL__/search" method="post">
<form action="__URL__/search" method="get">
<select name='status' id='status'>
<option value='0' style="width:100px">所有文件</option>
<option value='1' style="width:100px">已经上传文件</option>
Expand Down
10 changes: 10 additions & 0 deletions Print/Admin/View/File/index.html
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
<EXTEND name="base" />
<block name="script">
<script>
$(document).ready(function(){
var status = {$status};
if ((status>=0)&&(status<=4)){
$("#status").val(status);
}
});
</script>
</block>

0 comments on commit 0262568

Please sign in to comment.