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

📄 list.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
📖 第 1 页 / 共 2 页
字号:
echo "\$cur_page?>&CUSTOMER_ID2=";
echo "<?=";
echo "\$CUSTOMER_ID2?>\">手机";
echo "<?";
echo " if(\$_REQUEST['order'] == 'mobile') echo \"<img src='\".\$sensimg.\"' border='0'>\";?></a></td>\r\n      <td nowrap=\"nowrap\"><a href=\"";
echo "<?=";
echo "\$sufurl?>&order=email&cur_page=";
echo "<?=";
echo "\$cur_page?>&CUSTOMER_ID2=";
echo "<?=";
echo "\$CUSTOMER_ID2?>\">电子邮件";
echo "<?";
echo " if(\$_REQUEST['order'] == 'email') echo \"<img src='\".\$sensimg.\"' border='0'>\";?></a></td>\r\n  </tr>\r\n\r\n";
echo "<?";
echo "\r\n  \$LINKMAN_COUNT = 0;\r\n  while(\$ROW=mysql_fetch_array(\$cursor))\r\n  {\r\n    \$LINKMAN_COUNT++;\r\n\r\n    \$LINKMAN_ID\t\t= \$ROW[\"LINKMAN_ID\"];\r\n    \$CUSTOMER_ID1\t= \$ROW[\"CUSTOMER_ID\"];\r\n    \$LINKMAN_NAME1\t= \$ROW[\"LINKMAN_NAME\"];\r\n    \$SEX1\t\t\t= \$ROW[\"SEX\"];\r\n    \$BIRTHDAY1\t\t= \$ROW[\"BIRTHDAY\"];\r\n    \$POST_PRIV1\t\t= \$ROW[\"POST_PRIV\"];\r\n    \$HOBBY1\t\t\t= \$ROW[\"HOBBY\"];\r\n    \$ADD_HOME1\t\t= \$ROW[\"ADD_HOME\"];\r\n    ";
echo "\$POSTALCODE_HOME1\t= \$ROW[\"POSTALCODE_HOME\"];\r\n    \$TEL_NO_WORK1\t= \$ROW[\"TEL_NO_WORK\"];\r\n    \$TEL_NO_HOME1\t= \$ROW[\"TEL_NO_HOME\"];\r\n    \$MOBILE1\t\t= \$ROW[\"MOBILE\"];\r\n    \$EMAIL1\t\t\t= \$ROW[\"EMAIL\"];\r\n    \$OICQ1\t\t\t= \$ROW[\"OICQ\"];\r\n    \$ICQ1\t\t\t= \$ROW[\"ICQ\"];\r\n\t\$mostly_linkman\t= \$ROW[\"MOSTLY_LINKMAN\"];\r\n\r\n\t//联系人状态\r\n\tif(\$mostly_linkman\t== 1){\r\n\t\t\$c_title\t= \"主联系人\";\r\n\t\t\$c_img\t\t= \"<img src='../../../.";
echo "./images/littlegif/2-emphasis.gif' border='0'>\";\r\n\t}else{\r\n\t\t\$c_title\t= \"联系人\";\r\n\t\t\$c_img\t\t= \"<img src='../../../../images/littlegif/3-latent.gif' border='0'>\";\r\n\t}\r\n\r\n\t//联系人状态\r\n\tif(\$mostly_linkman\t== 1){\r\n\t\t\$c_title\t= \"主联系人\";\r\n\t\t\$c_img\t\t= \"<img src='../../../../images/littlegif/2-emphasis.gif' border='0'>\";\r\n\t}else{\r\n\t\t\$c_title\t= \"联系人\";\r\n\t\t\$c_img\t\t= \"<img src='../../../../images/little";
echo "gif/3-latent.gif' border='0'>\";\r\n\t}\r\n\r\n\tif(\$SEX1==\"0\")\r\n\t\t\$SEX_DESC=\"男\";\r\n\telse\r\n\t\t\$SEX_DESC=\"女\";\r\n\t\t\t\r\n\t\$query2\t\t= \"SELECT * from customer where CUSTOMER_ID=\$CUSTOMER_ID1\";\r\n\t\$cursor2\t= exequery(\$connection, \$query2);\r\n\tif(\$ROW2 = mysql_fetch_array(\$cursor2))\r\n\t{\r\n\t\t\$old_customer_name\t= \$ROW2[\"CUSTOMER_NAME\"];\r\n\t\t\$manage_user\t= \$ROW2[\"MANAGE_USER\"];\r\n\t\t\$customer_id\t= \$ROW2[\"CUSTOMER_ID\"];\r\n\t\t\$m";
echo "anage_user\t= \$ROW2[\"MANAGE_USER\"];\r\n\t\t\$purview\t\t= \$ROW2[\"PURVIEW\"];\r\n\t\t\$purview_dept\t= \$ROW2[\"PURVIEW_DEPT\"];\r\n\t\t\$purview_role\t= \$ROW2[\"PURVIEW_ROLE\"];\r\n\t\t\$purview_user\t= \$ROW2[\"PURVIEW_USER\"];\r\n\r\n\t\t\$customer_name\t= strlen(\$old_customer_name) <= 45 ? \$old_customer_name : (substr(\$old_customer_name, 0, 45).chr(0).'...');\r\n\t}\r\n\r\n\t//查询客户经理\r\n\t\$query3\t= \"select USER_ID from USER where USER_ID='\".\$";
echo "manage_user.\"'\";\r\n\t\$cursor3= exequery(\$connection, \$query3);\r\n\tif(\$row3 = mysql_fetch_row(\$cursor3))\r\n\t\t\$user_id\t= \$row3[0];\r\n\r\n\tif(\$LINKMAN_COUNT % 2 == 1)\r\n\t\t\$TableLine=\"TableLine1\";\r\n\telse\r\n\t\t\$TableLine=\"TableLine2\";\r\n\r\n\tswitch(\$purview){\r\n\t\t//默认\r\n\t\tcase '1':\r\n\t\t\t\$purview_ses\t= default_validate();\r\n\t\t\tbreak;\r\n\t\t//公开\r\n\t\tcase '2':\r\n\t\t\t\$purview_ses\t= \"<a href=\\\"#\\\" onclick=\\\"customer_detail('\".";
echo "\$customer_id.\"');\\\">\".\$customer_name.\"</a>\";\r\n\t\t\tbreak;\r\n\t\tcase '3':\r\n\t\t\t\$dept_validate\t= dept_validate();\t//部门验证\r\n\t\t\t\$role_validate\t= role_validate();\t//角色验证\r\n\t\t\t\$user_validate\t= user_validate();\t//人员验证\r\n\r\n\t\t\tif((\$dept_validate || \$role_validate || \$user_validate) === false){\r\n\t\t\t\t\$purview_ses\t= default_validate();\r\n\t\t\t}else{\r\n\t\t\t\t\$purview_ses\t= \"<a href=\\\"#\\\" onclick=\\\"customer_detail(";
echo "'\".\$customer_id.\"');\\\">\".\$customer_name.\"</a>\";\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t}\r\n\tif (\$manage_user == \$_SESSION['LOGIN_USER_ID']){\r\n\t\t\$purview_ses\t= \"<a href=\\\"#\\\" onclick=\\\"customer_detail('\".\$customer_id.\"');\\\">\".\$customer_name.\"</a>\";\r\n\t}\r\n\r\n\t//无权限查看则不显示记录\r\n\tif(\$purview_ses == false)\r\n\t\tcontinue;\r\n?>\r\n\r\n    <tr class=\"";
echo "<?=";
echo "\$TableLine?>\">\r\n\t  <td title=\"";
echo "<?=";
echo "\$c_title?>\">";
echo "<?=";
echo "\$c_img?></td>\r\n      <td title='";
echo "<?=";
echo "\$LINKMAN_NAME1?>'><a href=\"#\" onClick=\"linkman_detail('";
echo "<?=";
echo "\$LINKMAN_ID?>')\">";
echo "<?";
echo " echo strlen(\$LINKMAN_NAME1) <= 30 ? \$LINKMAN_NAME1 : (substr(\$LINKMAN_NAME1, 0, 30).chr(0).'...');?></a></td>\r\n      <td>";
echo "<?=";
echo "\$SEX_DESC?></td>\r\n      <td>";
echo "<?=";
echo "\$BIRTHDAY1?></td>\r\n      <td width='30%' title='";
echo "<?=";
echo "\$old_customer_name?>'>";
echo "<?=";
echo "\$purview_ses?></td>\r\n      <td title='";
echo "<?=";
echo "\$TEL_NO_WORK1?>'>";
echo "<?";
echo " echo strlen(\$TEL_NO_WORK1) <= 40 ? \$TEL_NO_WORK1 : (substr(\$TEL_NO_WORK1, 0, 40).chr(0).'...');?></td>\r\n      <td title='";
echo "<?=";
echo "\$MOBILE1?>'>";
echo "<?";
echo " echo strlen(\$MOBILE1) <= 40 ? \$MOBILE1 : (substr(\$MOBILE1, 0, 40).chr(0).'...');?></td>\r\n      <td title='";
echo "<?=";
echo "\$EMAIL1?>'>";
echo "<?";
echo " echo strlen(\$EMAIL1) <= 40 ? \$EMAIL1 : (substr(\$EMAIL1, 0, 40).chr(0).'...');?></td>\r\n    </tr>\r\n";
echo "<?";
echo "\r\n\t}\r\n\r\necho '<center>';\r\nif(\$LINKMAN_COUNT == 0){\r\n\tMessage(\"提示\", \"暂无记录\");\r\n\texit;\r\n}\r\necho '</center>';\r\n?>\r\n</table>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\">\r\n\t<tr>\r\n\t\t<td class=\"TableLine1\" nowrap align=\"right\">";
echo "<?";
echo " disp('sens='.\$_REQUEST['sens'].'&order='.\$_REQUEST['order']);?></td>\r\n\t</tr>\r\n</table>\r\n";
echo "<?";
echo "\r\n\tif ((\$n=(\$_REQUEST['cur_page']-\$GLOBALS['total_page_nums']))>0)\r\n\t{\r\n\t\t\$cur_page = \$_REQUEST['cur_page']-\$n;\r\n\t\theader('location:'.\$_SERVER['PHP_SELF'].'?&order='.\$_REQUEST['order'].'&sens='.\$_REQUEST['sens'].'&cur_page='.\$cur_page);\r\n\t}\r\n?>\r\n</body>\r\n</html>\r\n";
echo "<?";
echo "\r\nfunction default_validate()\r\n{\r\n\tglobal \$connection, \$customer_id, \$customer_name, \$manage_user;\r\n\t//先读客户经理角色级别\r\n\t\$query2\t= \"select up.* from user_priv as up, user as u where up.USER_PRIV=u.USER_PRIV and u.USER_ID='\".\$manage_user.\"'\";\r\n\t\$cursor2= exequery(\$connection, \$query2);\r\n\tif(\$row2= mysql_fetch_array(\$cursor2)){\r\n\t\t\$priv_no\t= \$row2[\"PRIV_NO\"];\r\n\t}\r\n\t\r\n\t//再读登陆者的角色级别\r\n\t\$";
echo "query3\t= \"select up.* from user_priv as up, user as u where up.USER_PRIV=u.USER_PRIV and u.USER_ID='\".\$_SESSION['LOGIN_USER_ID'].\"'\";\r\n\t\$cursor3= exequery(\$connection, \$query3);\r\n\tif(\$row3= mysql_fetch_array(\$cursor3)){\r\n\t\t\$login_priv_no\t= \$row3[\"PRIV_NO\"];\r\n\t}\r\n\r\n\tif(\$login_priv_no < \$priv_no){\r\n\t\t\$purview_ses\t= \"<a href=\\\"#\\\" onclick=\\\"customer_detail('\".\$customer_id.\"');\\\">\".\$customer_name.\"</a>\";";
echo "\r\n\t}else{\r\n\t\t\$purview_ses\t= false;\r\n\t}\r\n\r\n\treturn \$purview_ses;\r\n}\r\n\r\n//部门验证\r\nfunction dept_validate()\r\n{\r\n\tglobal \$connection, \$purview_dept;\r\n\r\n\tif(\$purview_dept == 'ALL_DEPT')\r\n\t\treturn true;\r\n\r\n\t\$query2\t= \"select d.* from department as d, user as u where u.DEPT_ID=d.DEPT_ID and u.USER_ID='\".\$_SESSION['LOGIN_USER_ID'].\"'\";\r\n\t\$cursor2= exequery(\$connection, \$query2);\r\n\tif(\$row2= mysql_fetch_";
echo "array(\$cursor2)){\r\n\t\t\$dept_id\t= \$row2[\"DEPT_ID\"];\r\n\t}\r\n\r\n\tif(array_search(\$dept_id, explode(\",\", \$purview_dept)) !== false){\r\n\t\treturn true;\r\n\t}else{\r\n\t\treturn false;\r\n\t}\r\n}\r\n\r\n//角色验证\r\nfunction role_validate()\r\n{\r\n\tglobal \$connection, \$purview_role;\r\n\r\n\t\$query2\t= \"select up.* from user_priv as up, user as u where up.USER_PRIV=u.USER_PRIV and u.USER_ID='\".\$_SESSION['LOGIN_USER_ID'].\"'\";\r\n\t\$curs";
echo "or2= exequery(\$connection, \$query2);\r\n\tif(\$row2= mysql_fetch_array(\$cursor2)){\r\n\t\t\$login_priv_no\t= \$row2[\"USER_PRIV\"];\r\n\t}\r\n\t\r\n\tif(array_search(\$login_priv_no, explode(\",\", \$purview_role)) !== false){\r\n\t\treturn true;\r\n\t}else{\r\n\t\treturn false;\r\n\t}\r\n}\r\n\r\n//人员验证\r\nfunction user_validate()\r\n{\r\n\tglobal \$connection, \$purview_user;\r\n\t\r\n\tif(array_search(\$_SESSION['LOGIN_USER_ID'], explode(\",\", \$purview";
echo "_user)) !== false){\r\n\t\treturn true;\r\n\t}else{\r\n\t\treturn false;\r\n\t}\r\n}\r\n?>";
?>

⌨️ 快捷键说明

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