* @package doc * @version $Id$ * @link http://www.zentao.net */ ?>
doclib->files?>
config->requestType == 'GET') { echo html::hidden('m', 'doc'); echo html::hidden('f', 'showFiles'); echo html::hidden('type', $type); echo html::hidden('objectID', $object->id); echo html::hidden('viewType', ($viewType == 'list' ? 'list' : 'card')); echo html::hidden('recTotal', isset($this->get->recTotal) ? $this->get->recTotal : 0); echo html::hidden('recPerPage', isset($this->get->recPerPage) ? $this->get->recPerPage : 0); echo html::hidden('pageID', isset($this->get->pageID) ? $this->get->pageID : 0); } ?>
get->title, "class='form-control search-query' placeholder='{$lang->doc->fileTitle}'");?> doc->search);?>
recTotal&recPerPage=$pager->recPerPage";?> pathname)) continue;?>
doc->id);?> doc->fileTitle);?> doc->filePath);?> doc->extension);?> doc->size);?> doc->addedBy);?> doc->addedDate);?> actions;?>
id;?> objectID");?>'>title . '.' . $file->extension . ' [' . strtoupper($file->objectType) . ' #' . $file->objectID . ']';?> pathname;?> extension;?> size / 1024 , 1) . 'K';?> addedBy) ? $file->addedBy : '';?> addedDate) ? substr($file->addedDate, 0, 10) : '';?> id", $lang->doc->download, "data-toggle='modal'", '', true, false, $file); common::printLink('file', 'delete', "fileID=$file->id", $lang->delete, 'hiddenwin', '', true, false, $file); ?>
show();?>
pathname)) continue;?>
extension) !== false and file_exists($file->realPath)) { $imageSize = getimagesize($file->realPath); $imageWidth = $imageSize ? $imageSize[0] : 0; } $sessionString = $config->requestType == 'PATH_INFO' ? '?' : '&'; $sessionString .= session_name() . '=' . session_id(); $fileID = $file->id; $url = helper::createLink('file', 'download', 'fileID=' . $fileID) . $sessionString ; ?> extension?>' target='_blank' onclick="return downloadFile(id?>, 'extension?>', )"> createLink('file', 'download', "fileID=$file->id&mouse=left"); if(in_array($file->extension, $config->file->imageExtensions)) { echo "
"; } else { $iconClass = 'icon-file'; if(strpos('zip,tar,gz,bz2,rar', $file->extension) !== false) $iconClass = 'icon-file-archive'; else if(strpos('csv,xls,xlsx', $file->extension) !== false) $iconClass = 'icon-file-excel'; else if(strpos('doc,docx', $file->extension) !== false) $iconClass = 'icon-file-word'; else if(strpos('ppt,pptx', $file->extension) !== false) $iconClass = 'icon-file-powerpoint'; else if(strpos('pdf', $file->extension) !== false) $iconClass = 'icon-file-pdf'; else if(strpos('mp3,ogg,wav', $file->extension) !== false) $iconClass = 'icon-file-audio'; else if(strpos('avi,mp4,mov', $file->extension) !== false) $iconClass = 'icon-file-movie'; else if(strpos('txt,md', $file->extension) !== false) $iconClass = 'icon-file-text-o'; else if(strpos('html,htm', $file->extension) !== false) $iconClass = 'icon-globe'; echo ""; } ?>
show();?>