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

📄 index.php

📁 通达OA2007SE源代码 非常好的
💻 PHP
字号:
<?
  function getalldate ($CODE)
  {
    global $connection;
    $query = (((''.'SELECT * from SYS_CODE where PARENT_NO=\'').$CODE).'\'');
    $cursor = exequery ($connection, $query);
    echo '<option value= ></option>';
    while ($ROW = mysql_fetch_array ($cursor))
    {
      $CODE_NO = $ROW['CODE_NO'];
      $CODE_NAME = $ROW['CODE_NAME'];
      echo (((('<option value='.$CODE_NO).'>').$CODE_NAME).'</option>');
    }
  }
  include_once 'inc/auth.php';
  include_once 'inc/utility_all.php';
  $PAGE_SIZE = 10;
  $query = 'select * from SALE_MANAGER where MANAGER_ID=1';
  $cursor = exequery ($connection, $query);
  if ($ROW = mysql_fetch_array ($cursor))
  {
    $MANAGER_ID = $ROW['MANAGER_ID'];
    $MANAGERS = $ROW['MANAGERS'];
  }
  echo '
<html>
<head>
<title>客户资料导出</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'cript Language="JavaScript">
	function td_calendar(fieldname)
{
  myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;
  mytop=document.body.scrollTop+event.clientY-event.offsetY+140;
  window.showModalDialog("/inc/calendar.php?FIELDNAME="+fieldname,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:205px;dialogTop:"+mytop+"px;dialogLeft:"+mylef';
  echo 't+"px");
}
	function LoadWindow()
{
  URL="/module/dept_select";
  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
  loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
  window.showModalDialog(URL,self,"edge:raised;scroll:1;status:0;help:0;resizable:1;dialogWidth:400px;dialogHeight:330px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
function chk(input,KC,KT';
  echo ',count)
  {
     var lstr="";
  	 if(count==1)
  	 {
  	 	if(document.all(KC).checked)
  	 	{
  	 		document.all(KT).value=document.all(KC).value;
  	 	}
  	  else
  	  {
  	  	document.all(KT).value="";
  	  }
  	 }
  	else
  	{
  	  for(i=0;i<document.all(KC).length;i++)
     {
        el=document.all(KC).item(i);
        if(el.checked)
        {
        	 val=el.value;
  ';
  echo '         lstr+=val+",";
        }
     }
  	document.all(KT).value=lstr;
    }
  }
function clear_user2()
{
  document.form1.COPY_TO_NAME.value="";
  document.form1.COPY_TO_ID.value="";
}
function clear_dept()
{
  document.form1.TO_NAME.value="";
  document.form1.TO_ID.value="";
}
function LoadWindow2()
{
  URL="/module/user_select?ID=2";
  loc_x=document.body.scrollLeft+eve';
  echo 'nt.clientX-event.offsetX-100;
  loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
  //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");
  window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:400px;dialogHeight:300px;dialogTop:"+loc_y+"px;dialogLeft:';
  echo '"+loc_x+"px");
}
function LoadWindow3()
{
  URL="manager_select";
  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
  loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
  //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");
  window.showModalDialog(URL,self,"edge:raised;';
  echo 'scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:300px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
function clear_user3()
{
  document.form1.SELL_MANAGE.value="";
  document.form1.SELL_MANAGEID.value="";
}
function func_find(select_obj,option_text)
{
 pos=option_text.indexOf("] ")+1;
 option_text=option_text.substr(0,pos);
 for (j=0; j';
  echo '<s';
  echo 'elect_obj.options.length; j++)
 {
   str=select_obj.options(j).text;
   if(str.indexOf(option_text)>=0)
      return j;
 }//for
 return j;
}
function func_insert()
{
 for (i=document.form1.select2.options.length-1; i>=0; i--)
 {
   if(document.form1.select2.options(i).selected)
   {
     option_text=document.form1.select2.options(i).text;
     option_value=document.form1.selec';
  echo 't2.options(i).value;
     option_style_color=document.form1.select2.options(i).style.color;
     var my_option = document.createElement("OPTION");
     my_option.text=option_text;
     my_option.value=option_value;
     my_option.style.color=option_style_color;
     //pos=func_find(select1,option_text);
     document.form1.select1.add(my_option);
     document.form1.select2.remove(i);
';
  echo '
  }
 }//for
}
function func_delete()
{
 for (i=document.form1.select1.options.length-1; i>=0; i--)
 {
   if(document.form1.select1.options(i).selected)
   {
     option_text=document.form1.select1.options(i).text;
     option_value=document.form1.select1.options(i).value;
     var my_option = document.createElement("OPTION");
     my_option.text=option_text;
     my_option.va';
  echo 'lue=option_value;
     //pos=func_find(select2,option_text);
     document.form1.select2.add(my_option);
     document.form1.select1.remove(i);
  }
 }//for
}
function func_select_all1()
{
 for (i=document.form1.select1.options.length-1; i>=0; i--)
   document.form1.select1.options(i).selected=true;
}
function func_select_all2()
{
 for (i=document.form1.select2.options.length-';
  echo '1; i>=0; i--)
   document.form1.select2.options(i).selected=true;
}
function exreport()
{
	 fld_str="";
	 fld_str1="";
	 if(document.form1.select1.options.length!=0)
   {
   	for (i=0; i< document.form1.select1.options.length; i++)
   {
     options_value=document.form1.select1.options(i).value;
     options_text=document.form1.select1.options(i).text;
     fld_str+=options_value+","';
  echo ';
     fld_str1+=options_text+",";
   }
   }
  else
  	{
  	  for (i=0; i< document.form1.select2.options.length; i++)
      {
       options_value=document.form1.select2.options(i).value;
       options_text=document.form1.select2.options(i).text;
       fld_str+=options_value+",";
       fld_str1+=options_text+",";
      }
  	}
  document.form1.FIELDMSG.value=fld_str;
  document.fo';
  echo 'rm1.FIELDMSGNAME.value=fld_str1;
  document.form1.submit();
}
function func_up()
{
  sel_count=0;
  for (i=document.form1.select1.options.length-1; i>=0; i--)
  {
    if(document.form1.select1.options(i).selected)
       sel_count++;
  }
  if(sel_count==0)
  {
     alert("调整顺序时,请选择其中一项!");
     return;
  }
  else if(sel_count>1)
  {
     alert("调整顺序时,只能选

⌨️ 快捷键说明

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