소스 검색

Update diy_list.php

tags/6.2.7
叙述、别离 1 년 전
부모
커밋
609894949c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      src/admin/diy_list.php

+ 3
- 3
src/admin/diy_list.php 파일 보기

@@ -11,7 +11,7 @@
require_once(dirname(__FILE__)."/config.php");
CheckPurview('c_New');
$diyid = isset($diyid) && is_numeric($diyid) ? $diyid : 0;
$action = isset($action) && in_array($action, array('post', 'list', 'edit', 'check', 'delete','excel')) ? $action : '';
$action = isset($action) && in_array($action, array('post', 'list', 'edit', 'check', 'delete', 'excel')) ? $action : '';
if (empty($diyid)) {
showMsg("操作失败", 'javascript:;');
exit();
@@ -173,7 +173,7 @@ if ($action == 'post') {
} elseif ($action == 'excel') {
ob_end_clean();//清除缓冲区,避免乱码
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:attachment;filename={$diy->name}_".date("Y-m-d").".xls");
header("Content-Disposition:attachment;filename={$diy->name}".date("Y-m-d").".xls");
print(chr(0xEF).chr(0xBB).chr(0xBF));//清除bom
$fieldlist = (array)$diy->getFieldList();
echo "<table><tr>";
@@ -193,7 +193,7 @@ if ($action == 'post') {
{
echo "<td>".$arr[$key]."</td>";
}
$status = $arr['ifcheck'] == 1 ? '<span class="btn btn-success btn-sm">已审核</span>' : '<span class="btn btn-danger btn-sm">未审核</span>';
$status = $arr['ifcheck'] == 1 ? '已审核' : '未审核';
echo "<td>".$status."</td>";
echo "</tr>";
}


불러오는 중...
취소
저장