调整离线服务记录下载的时间为申请时间
This commit is contained in:
parent
ee2e6b633e
commit
671e840349
|
@ -270,7 +270,7 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
$sql="select * from offlineapp where ts_approved is not null and pdflink is not null order by ts_created desc";
|
$sql="select * from offlineapp where ts_approved is not null and pdflink is not null order by ts_created desc";
|
||||||
$rows=$this->db->fetchAll($sql);
|
$rows=$this->db->fetchAll($sql);
|
||||||
foreach($rows as $row){
|
foreach($rows as $row){
|
||||||
$content.='"'.$row['username'].'","'.$row['unit'].'","'.$row['phone'].'","'.$row['address'].'","'.$row['postcoe'].'","'.str_replace("\"","'",$row['project']).'","'.str_replace("\"","'",$row['datalist']).'","'.$row['email'].'",'.$row['ts_approved']."\n";
|
$content.='"'.$row['username'].'","'.$row['unit'].'","'.$row['phone'].'","'.$row['address'].'","'.$row['postcoe'].'","'.str_replace("\"","'",$row['project']).'","'.str_replace("\"","'",$row['datalist']).'","'.$row['email'].'",'.$row['ts_created']."\n";
|
||||||
}
|
}
|
||||||
$this->getResponse()->setHeader('Content-Type', 'application/octet-stream')
|
$this->getResponse()->setHeader('Content-Type', 'application/octet-stream')
|
||||||
->setHeader('Content-Disposition','attachment; filename="offlineapp.csv"')
|
->setHeader('Content-Disposition','attachment; filename="offlineapp.csv"')
|
||||||
|
|
Loading…
Reference in New Issue