📄 send_mobile.php
字号:
<?php
include_once( "inc/auth.php" );
echo "<html>\r\n<head>\r\n<title>手机工资条</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\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 clear_user2()\r\n{\r\n document.form1.COPY_TO_NAME.value=\"\";\r\n document.form1.COPY_TO_ID.value=\"\";\r\n}\r\n\r\nfunction LoadWindow2()\r\n{\r\n URL=\"/module/user_select?ID=2\";\r\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n //window.open(URL,\"read_notify\",\"height=400,width=550,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=150,resizable=yes\");\r\n window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:350px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\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=\"mobile_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/mobile_sms.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> 手机工资条</span>\r\n </td>\r\n </tr>\r\n</table>\r\n<br>\r\n<div align=\"center\">\r\n<table border=\"0\" cellspacing=\"1\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\" >\r\n <tr>\r\n \t<form name=\"form1\">\r\n <td nowrap class=\"TableContent\"> 人员: </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 <input value=\"选择\" type=\"button\" onClick=\"LoadWindow2()\" class=\"SmallButton\" title=\"选择人员\" name=\"button\">\r\n <input type=\"button\" value=\"清空\" class=\"SmallButton\" onClick=\"clear_user2()\" title=\"清空人员\" name=\"button\">\r\n </td>\r\n </form>\r\n </tr>\r\n <tr>\t\r\n <td nowrap class=\"TableContent\"> 输出内容:</td>\r\n <td nowrap class=\"TableData\" align=\"left\">\r\n \t<table width=\"150\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\" bordercolorlight=\"#000000\" bordercolordark=\"#FFFFFF\" class=\"small\">\r\n <tr bgcolor=\"#CCCCCC\">\r\n <td align=\"center\"><b>显示字段</b></td>\r\n <td align=\"center\"> </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 <tr>\r\n <td nowrap class=\"TableControl\" 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()\"> \r\n <input type=\"submit\" value=\"返回\" class=\"BigButton\" name=\"button\" onclick=\"location='index.php'\">\r\n </td>\r\n </tr>\r\n\t\r\n</table>\r\n\r\n</div>\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -