修改分类为literature

This commit is contained in:
wlx 2013-09-28 06:16:55 +00:00
parent 7aafcc16d1
commit 3f303c9b10
1 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ class Reference
public function uploadReferencePdf($file) public function uploadReferencePdf($file)
{ {
$files = new Files(); $files = new Files();
$file_info = $files->upload($file,'reference/',true); $file_info = $files->upload($file,'literature/',true);
if(isset($file_info['error']) && !empty($file_info['error'])) if(isset($file_info['error']) && !empty($file_info['error']))
{ {
@ -108,7 +108,7 @@ class Reference
$file_data = array( $file_data = array(
'filename' => $file_info['file_url'], 'filename' => $file_info['file_url'],
'filetype' => 'reference', 'filetype' => 'literature',
'filedesc' => $file_info['file_mime'], 'filedesc' => $file_info['file_mime'],
'userid' => view::User('id'), 'userid' => view::User('id'),
'filesize' => $file_info['file_size'], 'filesize' => $file_info['file_size'],
@ -188,7 +188,7 @@ class Reference
{ {
$sql = "SELECT att.*,ref.attid,ref.id as refid FROM {$this->table->attachments} att $sql = "SELECT att.*,ref.attid,ref.id as refid FROM {$this->table->attachments} att
LEFT JOIN {$this->table->reference} ref ON att.id=ref.attid LEFT JOIN {$this->table->reference} ref ON att.id=ref.attid
WHERE att.filetype='reference'"; WHERE att.filetype='literature'";
$rs = $this->db->query($sql); $rs = $this->db->query($sql);
$rows = $rs->fetchAll(); $rows = $rs->fetchAll();
return $rows; return $rows;