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

📄 send_email.php

📁 通达网络办公 - Office Anywhere 2008 增强版100%源码(3.4.081216) 内含 通达OA2008增強版接近完美破解补丁20081216集 及 最新通达OA2008ADV(
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
echo "<html>\r\n<head>\r\n<title>EMAIL工资条</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><script src=\"/inc/js/module.js\"></script>\r\n\r\n<script>\r\n\r\nfunction func_find(select_obj,option_text)\r\n{\r\n pos=option_text.indexOf(\"] \")+1;\r\n option_text=option_text.substr(0,pos);\r\n\r\n for (j=0; j<select_obj.options.length; j++)\r\n {\r\n   str=select_obj.options(j).text;\r\n   if(str.indexOf(option_text)>=0)\r\n      return j;\r\n }//for\r\n\r\n return j;\r\n}\r\n\r\n\r\nfunction func_insert()\r\n{\r\n for (i=select2.options.length-1; i>=0; i--)\r\n {\r\n   if(select2.options(i).selected)\r\n   {\r\n     option_text=select2.options(i).text;\r\n     option_value=select2.options(i).value;\r\n     option_style_color=select2.options(i).style.color;\r\n\r\n     var my_option = document.createElement(\"OPTION\");\r\n     my_option.text=option_text;\r\n     my_option.value=option_value;\r\n     my_option.style.color=option_style_color;\r\n\r\n     //pos=func_find(select1,option_text);\r\n     select1.add(my_option);\r\n     select2.remove(i);\r\n  }\r\n }//for\r\n\r\n\r\n}\r\n\r\nfunction func_delete()\r\n{\r\n for (i=select1.options.length-1; i>=0; i--)\r\n {\r\n   if(select1.options(i).selected)\r\n   {\r\n     option_text=select1.options(i).text;\r\n     option_value=select1.options(i).value;\r\n\r\n     var my_option = document.createElement(\"OPTION\");\r\n     my_option.text=option_text;\r\n     my_option.value=option_value;\r\n\r\n     //pos=func_find(select2,option_text);\r\n     select2.add(my_option);\r\n     select1.remove(i);\r\n  }\r\n }//for\r\n\r\n}\r\n\r\nfunction func_select_all1()\r\n{\r\n for (i=select1.options.length-1; i>=0; i--)\r\n   select1.options(i).selected=true;\r\n}\r\n\r\nfunction func_select_all2()\r\n{\r\n for (i=select2.options.length-1; i>=0; i--)\r\n   select2.options(i).selected=true;\r\n}\r\n\r\n\r\nfunction mysubmit()\r\n{\r\n   fld_str=\"\";\r\n   for (i=0; i< select1.options.length; i++)\r\n   {\r\n      options_value=select1.options(i).value;\r\n      fld_str+=options_value+\",\";\r\n    }\r\n    document.all(\"STYLE\").value=fld_str;\r\n}\r\n\r\nfunction exreport()\r\n{\r\n\t fld_str=\"\";\r\n   for (i=0; i< select1.options.length; i++)\r\n   {\r\n      options_value=select1.options(i).value;\r\n      fld_str+=options_value+\",\";\r\n   }\r\n URL=\"email_result.php?COPY_TO_ID=\"+document.all(\"COPY_TO_ID\").value+\"&fld_str=\"+fld_str+\"&FLOW_ID=\"+document.all(\"FLOW_ID\").value;\r\n location=URL;\r\n}\r\n\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" >\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/menu/email.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\">&nbsp;&nbsp;EMAIL工资条</span>\r\n   </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n<div align=\"center\">\r\n<table class=\"TableBlock\" align=\"center\" >\r\n  <tr>\r\n  \t<form name=\"form1\">\r\n    <td nowrap class=\"TableContent\">&nbsp;&nbsp;人员: </td>\r\n    <td nowrap class=\"TableData\">\r\n        <input type=\"hidden\" name=\"COPY_TO_ID\" value=\"\">\r\n        <textarea cols=40 name=\"COPY_TO_NAME\" rows=3 class=\"BigStatic\" wrap=\"yes\" readonly></textarea>\r\n        <a href=\"javascript:;\" class=\"orgAdd\" onClick=\"SelectUser('','COPY_TO_ID', 'COPY_TO_NAME')\">选择</a>\r\n        <a href=\"javascript:;\" class=\"orgClear\" onClick=\"ClearUser('COPY_TO_ID', 'COPY_TO_NAME')\">清空</a>\r\n    </td>\r\n  </form>\r\n  </tr>\r\n  <tr>\t\r\n  <td nowrap class=\"TableContent\">&nbsp;&nbsp;输出内容:</td>\r\n  <td nowrap class=\"TableData\" align=\"left\">\r\n  \t<table width=\"150\" class=\"TableBlock\">\r\n      <tr bgcolor=\"#CCCCCC\">\r\n    <td align=\"center\"><b>显示字段</b></td>\r\n    <td align=\"center\">&nbsp;</td>\r\n    <td align=\"center\" valign=\"top\"><b>可选字段</b></td>\r\n  </tr>\r\n  <tr>\r\n    <td valign=\"top\" align=\"center\" bgcolor=\"#CCCCCC\">\r\n    <select name=\"select1\" ondblclick=\"func_delete();\" MULTIPLE style=\"width:200;height:280\">\r\n";
$query = "SELECT STYLE from SAL_FLOW where FLOW_ID=".$FLOW_ID;
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$STYLE = $ROW['STYLE'];
}
if ( $STYLE != "" )
{
	$STYLE_ARRAY = explode( ",", $STYLE );
	$ARRAY_COUNT = sizeof( $STYLE_ARRAY );
	$COUNT = 0;
	if ( $STYLE_ARRAY[$ARRAY_COUNT - 1] == "" )
	{
		--$ARRAY_COUNT;
	}
	$I = 0;
	for ( ;	$I < $ARRAY_COUNT;	++$I	)
	{
		$query1 = "select ITEM_ID,ITEM_NAME from SAL_ITEM where ITEM_ID='".$STYLE_ARRAY[$I]."'";
		$cursor1 = exequery( $connection, $query1 );
		if ( $ROW = mysql_fetch_array( $cursor1 ) )
		{
			$ITEM_NAME = $ROW['ITEM_NAME'];
			$ITEM_ID = $ROW['ITEM_ID'];
		}
		echo "         <option value=\"";
		echo $ITEM_ID;
		echo "\">";
		echo $ITEM_NAME;
		echo "</option>\r\n\r\n";
	}
}
echo "    </select>\r\n    <input type=\"button\" value=\" 全 选 \" onClick=\"func_select_all1();\" class=\"SmallInput\">\r\n    </td>\r\n\r\n    <td align=\"center\" bgcolor=\"#999999\">\r\n      <input type=\"button\" class=\"SmallInput\" value=\" ← \" onClick=\"func_insert();\">\r\n      <br><br>\r\n      <input type=\"button\" class=\"SmallInput\" value=\" → \" onClick=\"func_delete();\">\r\n    </td>\r\n\r\n    <td align=\"center\" valign=\"top\" bgcolor=\"#CCCCCC\">\r\n    <select  name=\"select2\" ondblclick=\"func_insert();\" MULTIPLE style=\"width:200;height:280\">\r\n       ";
$query = "SELECT ITEM_ID,ITEM_NAME from SAL_ITEM where ISPRINT='1' ORDER BY `ITEM_ID`";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	$ITEM_ID = $ROW['ITEM_ID'];
	$ITEM_NAME = $ROW['ITEM_NAME'];
	$sign = 0;
	$I = 0;
	for ( ;	$I < $ARRAY_COUNT;	++$I	)
	{
		if ( $STYLE_ARRAY[$I] == $ITEM_ID )
		{
			$sign = 1;
		}
	}
	if ( $sign == 0 )
	{
		echo "       <option value=\"";
		echo $ITEM_ID;
		echo "\">";
		echo $ITEM_NAME;
		echo "</option>\r\n       ";
	}
}
echo "    </select>\r\n    <input type=\"button\" value=\" 全 选 \" onClick=\"func_select_all2();\" class=\"SmallInput\">\r\n    </td>\r\n  </tr>\r\n</table>\r\n</td>\r\n  </tr>\r\n  <tfoot align=\"center\" class=\"TableFooter\">\r\n    <td nowrap colspan=\"4\" align=\"center\">\r\n    \t <input type=\"hidden\" name=\"FLOW_ID\" value=\"";
echo $FLOW_ID;
echo "\">\r\n       <input type=\"hidden\" name=\"STYLE\" value=\"\">\r\n       <input type=\"submit\" value=\"确定\" class=\"BigButton\"  name=\"button\" onClick=\"exreport()\">&nbsp;&nbsp;\r\n        <input type=\"submit\" value=\"返回\" class=\"BigButton\"  name=\"button\" onClick=\"location='index.php'\">\r\n    </td>\r\n   </tfoot>\r\n</table>\r\n</div>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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