📄 document.php
字号:
<?
/********************************************************************************/
/* 极限办公自动化系统 (极限OA) */
/* ======================== */
/* 欢迎使用 极限OA,在您开始使用之前,请务必完整阅读本软件附带的全部说明档 */
/********************************************************************************/
/* Welcome to http://www.xsp.cn & http://oa.xsp.cn */
/* 技术支持论坛 http://www.1119.net */
/********************************************************************************/
/* 商业购买请联系 临海市极限网络有限公司 */
/* 联系电话: (0576) 5131349 邮件: mkt@xsp.cn QQ: 562873 */
/********************************************************************************/
require "./includes/headinc.php";
switch($action) {
case file:
checkright(41,11);
include'document/file.php';
break;
case file_left:
checkright(41,11);
include'document/file_left.php';
break;
case file_main:
checkright(41,11);
include'document/file_main.php';
break;
case filetype:
checkright(41,11);
include'document/filetype.php';
break;
case template:
checkright(41,11);
include'document/template.php';
break;
Default:
checkright(41,11);
include'document/file.php';
break;
}
function attachicon($type) {
if (eregi("(zip|tar|gzip|gz|cab|arj|arc|lzh|lha)$",$type)) {
$apic = 'zip';$apic2 = '压缩文件';
}elseif (eregi("(rar)$",$type)) {
$apic = 'rar';$apic2 = '压缩文件';
}elseif (eregi("(gif|jpg|jpeg|png|bmp)$",$type)) {
$apic = 'image';$apic2 = '图像文件';
}elseif (eregi("(mp3|asf|wma|mpg|wav|wmv|mpeg|asx|avi|mid|m3u|vqf)$",$type)) {
$apic = 'av';$apic2 = '音像文件';
}elseif (eregi("(swf|swi|fla)$",$type)) {
$apic = 'flash';$apic2 = 'Flash文件';
}elseif (eregi("(rm|ra|rmvb|rv)$",$type)) {
$apic = 'rm';$apic2 = 'realplay文件';
}elseif (eregi("(htm|html|jsp|java|php|asp|cgi|js|pl)$",$type)) {
$apic = 'html';$apic2 = '网络文件';
}elseif (eregi("(txt|rtf|wri|chm)$",$type)) {
$apic = 'text';$apic2 = '文本文件';
}elseif (eregi("(doc)$",$type)) {
$apic = 'word';$apic2 = 'Word文档';
}elseif (eregi("(mdb)$",$type)) {
$apic = 'access';$apic2 = 'Access数据库';
}elseif (eregi("(xls|xlw|xla)$",$type)) {
$apic = 'excel';$apic2 = 'Excel表格';
}elseif (eregi("(ppt)$",$type)) {
$apic = 'powerpoint';$apic2 = '幻灯片文件';
}elseif (eregi("(ppt)$",$type)) {
$apic = 'pdf';$apic2 = 'Acrobat文件';
}elseif (eregi("(exe|com|bat|dll)$",$type)) {
$apic = 'exe';$apic2 = '程序文件';
}else {
$apic = 'other';$apic2 = '未知类型';
}
return "$apic:$apic2";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -