Commit a2e0c0f0 authored by NideXTC's avatar NideXTC
Browse files

more support for msdoc

parent 6114919d
......@@ -67,6 +67,37 @@ class CMIS
'xls' => 'application/vnd.ms-excel',
'ppt' => 'application/vnd.ms-powerpoint',
"dot"=> "application/msword",
"docx"=> "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"dotx"=> "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
"docm"=> "application/vnd.ms-word.document.macroEnabled.12",
"dotm"=> "application/vnd.ms-word.template.macroEnabled.12",
"xlt"=> "application/vnd.ms-excel",
"xla"=> "application/vnd.ms-excel",
"xlsx"=> "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"xltx"=> "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
"xlsm"=> "application/vnd.ms-excel.sheet.macroEnabled.12",
"xltm"=> "application/vnd.ms-excel.template.macroEnabled.12",
"xlam"=> "application/vnd.ms-excel.addin.macroEnabled.12",
"xlsb"=> "application/vnd.ms-excel.sheet.binary.macroEnabled.12",
"pot"=> "application/vnd.ms-powerpoint",
"pps"=> "application/vnd.ms-powerpoint",
"ppa"=> "application/vnd.ms-powerpoint",
"pptx"=> "application/vnd.openxmlformats-officedocument.presentationml.presentation",
"potx"=> "application/vnd.openxmlformats-officedocument.presentationml.template",
"ppsx"=> "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
"ppam"=> "application/vnd.ms-powerpoint.addin.macroEnabled.12",
"pptm"=> "application/vnd.ms-powerpoint.presentation.macroEnabled.12",
"potm"=> "application/vnd.ms-powerpoint.template.macroEnabled.12",
"ppsm"=> "application/vnd.ms-powerpoint.slideshow.macroEnabled.12",
"mdb"=> "application/vnd.ms-access",
// open office
'odt' => 'application/vnd.oasis.opendocument.text',
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
......
......@@ -26,8 +26,8 @@ class DocumentModel extends DocumentModelAbstract
/*if (Database::isOracle()) {
$sql = '
select *
from (select rownum rnk, a.*
select *
from (select rownum rnk, a.*
from res_letterbox a
order by res_id)
where rnk between ' . ($maxItems * $skipCount) . ' AND ' . ($skipCount * $maxItems + $maxItems);
......@@ -38,7 +38,7 @@ class DocumentModel extends DocumentModelAbstract
$stmt = Database::getInstance()->query($sql);
}*/
$sql = 'SELECT * FROM res_letterbox LIMIT 15000';
$sql = 'SELECT * FROM res_letterbox';
$stmt = Database::getInstance()->query($sql);
......@@ -61,7 +61,7 @@ class DocumentModel extends DocumentModelAbstract
->setPath($value['path'])
->setFilename($value['filename'])
->setFilesize($value['filesize'])
->setOtherProperties($otherProperties);
->setOtherProperties($otherProperties);
$array[$value['folders_system_id']][] = $document;
......
......@@ -99,7 +99,6 @@ class Database
foreach ($result as $key => $val) {
if (preg_match('/_id/', $key)) {
$type = 'Id';
} else if (preg_match('/date/', $key)) {
......
......@@ -35,6 +35,7 @@ acceptedType[] = "jpg"
acceptedType[] = "pdf"
acceptedType[] = "gif"
acceptedType[] = "doc"
acceptedType[] = "docx"
acceptedType[] = "xls"
acceptedType[] = "odt"
acceptedType[] = "ods"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment