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

📄 index.php

📁 极限网络智能办公系统 - Office Automation 2.8 100% 源码
💻 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\r\n";
echo "<s";
echo "cript>\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";
echo "<s";
echo "elect_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.option";
echo "s(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   i";
echo "f(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_all";
echo "1()\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";
echo "   document.form1.STYLE.value=fld_str;\r\n   document.form1.submit();\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/edit.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> &nbsp; 报表样式定义</span>\r\n    &nbsp;\r\n   </td>\r\n  </tr>\r\n</table>\r\n\r\n\r\n<br>\r\n<br>\r\n\r\n<table width=\"500\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\" bordercolorlight=\"#000000\" bordercolordark=\"#FFFFFF\" class=\"big\">\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  </t";
echo "r>\r\n  <tr>\r\n    <td valign=\"top\" align=\"center\" bgcolor=\"#CCCCCC\">\r\n    ";
echo "<s";
echo "elect  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=\"#";
echo "CCCCCC\">\r\n    ";
echo "<s";
echo "elect  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\r\n  <tr bgcolor=\"#CCCCCC\">\r\n    <td align=\"center\" valign=\"top\" colspan=\"3\">\r\n    <form action=\"submit.php\" method=\"post\" name=\"form1\">\r\n    点击条目时,可以组合CTRL或SHIFT键进行多选<br>\r\n      <input type=\"button\" class=\"BigButton\" value=\"保 存\" onclick=\"mysubmit();\">&nbsp;&nbsp;&";
echo "nbsp;&nbsp;\r\n      <input type=\"button\" class=\"BigButton\" value=\"返 回\" onclick=\"location='../index.php'\">\r\n      <input type=\"hidden\" name=\"FLOW_ID\" value=\"";
echo $FLOW_ID;
echo "\">\r\n      <input type=\"hidden\" name=\"STYLE\" value=\"\">\r\n    </form>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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