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

📄 child_contact.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>交往信息管理</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n";
echo "<s";
echo "cript>\r\nfunction del(contact_id, CUSTOMER_ID)\r\n{\r\n\tvar msg\t= \"你确认要删除所选记录吗?\";\r\n\tif(window.confirm(msg))\r\n\t{\r\n\t\tvar url\t= \"../contact/delete.php?contact_id=\"+contact_id+\"&CUSTOMER_ID=\"+CUSTOMER_ID+\"&cur_page=";
echo $cur_page;
echo "&sens=";
echo $_REQUEST['sens'];
echo "&order=";
echo $_REQUEST['order'];
echo "&del_r=child_r\";\r\n\t\tlocation = url;\r\n\t}\r\n}\r\n\r\nfunction contact_detail(contact_id)\r\n{\r\n\tURL=\"../contact/detail.php?CONTACT_ID=\"+contact_id;\r\n\tmyleft=(screen.availWidth-500)/2;\r\n\twindow.open(URL,\"read_notify\",\"height=500,width=500,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=\"+myleft+\",resizable=yes\");\r\n}\r\n</script>\r\n</head>\r\n\r\n<body style=\"background-color: transparent\" class";
echo "=\"bodycolor\" topmargin=\"5\">\r\n";
if ( $_REQUEST['customer_card'] == "" )
{
	echo "<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n\t<tr align=\"right\">\r\n\t\t<td><a href=\"#\" onClick=\"parent.window.location='../contact/new.php?customer_id=";
	echo $_REQUEST['CUSTOMER_ID'];
	echo "';\">【添加】</a></td>\r\n\t</tr>\r\n</table>\r\n<br>\r\n";
}
$connection = openconnection( );
$query = "SELECT c.CUSTOMER_NAME, ct.* FROM customer as c, contact as ct WHERE ct.CUSTOMER_ID=c.CUSTOMER_ID and ct.CUSTOMER_ID=".$_REQUEST['CUSTOMER_ID']." order by ct.CONTACT_ID desc";
$cursor = exequery( $connection, $query );
$count = 0;
echo "<table border=\"0\" cellspacing=\"1\" width=\"100%\" cellpadding=\"5\">\r\n";
while ( $row = mysql_fetch_array( $cursor ) )
{
	++$count;
	$contact_id = $row['CONTACT_ID'];
	$customer_id = $row['CUSTOMER_ID'];
	$customer_name = $row['CUSTOMER_NAME'];
	$contact_content = $row['CONTACT_CONTENT'];
	$contact_date = $row['CONTACT_DATE'];
	$contact_date_end = $row['CONTACT_DATE_END'];
	$create_user = $row['CREATE_USER'];
	$length = 36;
	echo "<tr>\r\n\t\t<td nowrap title=\"";
	echo $contact_content;
	echo "\"><a href=\"#\" onclick=\"contact_detail('";
	echo $contact_id;
	echo "');\">";
	echo strlen( $contact_content ) <= $length ? $contact_content : substr( $contact_content, 0, $length ).chr( 0 )."...";
	echo "</a></td>\r\n\t\t<td nowrap>";
	if ( $_SESSION['LOGIN_USER_ID'] == $create_user && $_REQUEST['customer_card'] == "" )
	{
		echo "<a href=\"#\" onclick=\"del('";
		echo $contact_id;
		echo "','";
		echo $_REQUEST['CUSTOMER_ID'];
		echo "')\"><img alt=\"删除交往记录\" border=\"0\" src=\"../../../images/littlegif/child_del.gif\"></a>";
	}
	echo "</td>\r\n\t</tr>\r\n";
}
echo "<center>";
if ( $count == 0 )
{
	message( "提示", "暂无记录" );
	exit( );
}
echo "</center>";
echo "</table>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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