⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 file.php

📁 极限OA开源系统
💻 PHP
字号:
<?
/********************************************************************************/
/* 极限办公自动化系统 (极限OA)													*/
/* ========================      												*/
/* 欢迎使用 极限OA,在您开始使用之前,请务必完整阅读本软件附带的全部说明档				*/
/********************************************************************************/
/* Welcome to http://www.xsp.cn & http://oa.xsp.cn								*/
/* 技术支持论坛 http://www.1119.net												*/
/********************************************************************************/
/* 商业购买请联系 临海市极限网络有限公司											*/
/* 联系电话: (0576) 5131349	邮件: mkt@xsp.cn	QQ: 562873							*/
/********************************************************************************/
if(!defined('KIN_UNION')){die("Hacking attempt");}
$pre_s = true;
if($pre_s) {

}



$menulist = makefoldercode();
function makefoldercode ($unionid=1) {
  global $db,$table_folder,$union_uid,$union_employs;

  $condi = "(!(type=1 && mid!='$union_uid') && !(type=2 && pid!=1 && name!='$union_employs')) && ";
 
  if($unionid == 1) {
	  $out .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" background=\"images/bg2.gif\">";
  }

  $f_tmp = $db->query_fetch("select * from $table_folder where $condi id='$unionid' order by dorder");
  if(!$f_tmp[id]) die('数据库数据损坏 无法继续');
  $f_tmp2 = $db->query("select * from $table_folder where $condi pid='$f_tmp[id]' order by dorder");
  $tmp_0 = $db->num_rows($f_tmp2);
  if($tmp_0>0) {
	  $tmp1 = "fo_$f_tmp[id]";
	  if($f_tmp[outspread]) {
		  $f_class = 'folder';
		  $f_style = '';
	  }else {
		  $f_class = 'collapsedFolder';
		  $f_style = ' style="display:none"';
	  }
	  $out .= "<tr><td valign=bottom class=\"$f_class\" onmouseup=\"with(findObj('$tmp1').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(e.gif)':'url(c.gif)'}\"><a href=\"document.php?action=file_main&fid=$f_tmp[id]\">$f_tmp[name]</a></td></tr>
		<tr><td class=\"submenu\" id=\"$tmp1\"$f_style><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">";
	  
	  while($f_tmp3=$db->fetch_array($f_tmp2)) {
		  $out .= makefoldercode($f_tmp3[id]);
	  }
	  $out .= "</table></td></tr>";
  }else {
	  $out .= "<tr><td valign=bottom class=\"iefile\"><a href=\"document.php?action=file_main&fid=$f_tmp[id]\">$f_tmp[name]</a></td></tr>";
  }

  if($unionid == 1) {
	  $out .= "</table>";
  }
	return $out;


}


include getData('document_file_frame');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -