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

📄 index.php

📁 极限网络智能办公系统 Office Automation V3.0官方100%源代码.
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?
include_once("inc/auth.php");
include_once("inc/utility_all.php");
$PAGE_SIZE=10;
?>

<html>
<head>
<title>合同综合查询</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
	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 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:215px;dialogTop:"+mytop+"px;dialogLeft:"+myleft+"px");
}
function chk(input,KC,KT,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;
           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+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;scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:350px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
</script>
</head>
<div align="left">
<fieldset style="width:95%;padding-bottom:5px;">
	 <legend class="small" align=left>
      <b>销售部门、人员</b>
  </legend>
<table cellspacing="1" class="small" align="left" cellpadding="3" border="0">
  <form action="list.php"  method="post" name="form1">
  <tr>
    <td nowrap class="TableData">&nbsp;&nbsp;销售部门: </td>
    <td nowrap class="TableData">
        <input type="hidden" name="TO_ID">
        <textarea cols=21 name=TO_NAME rows=2 class="BigStatic" wrap="yes" readonly><?=$TO_NAME?></textarea>
        <input value="选择" type="button" class="SmallButton" title="选择销售部门" name="button" onClick="LoadWindow()">
        &nbsp;<input type="button" value="清空" class="SmallButton" onClick="clear_dept()" title="清空部门" name="button">
    </td>
    <td nowrap class="TableData"> &nbsp;
    	<select name="SELLER_TYPE" class="SmallSelect">
         <option value="CONTRACT_LINKMAN2">签约人(卖方)</option>
          <option value="SELLER ">创建人</option>
          </select></td>
    <td nowrap class="TableData">
        <input type="hidden" name="COPY_TO_ID" value="">
        <textarea cols=21 name="COPY_TO_NAME" rows=2 class="BigStatic"  wrap="yes" readonly></textarea>
        <input value="选择" type="button" onClick="LoadWindow2()" class="SmallButton" title="选择销售人员" name="button">
        &nbsp;<input type="button" value="清空" class="SmallButton" onClick="clear_user2()" title="清空人员" name="button">
    </td>
  </tr>
  <tr>
  	<td nowrap class="TableData"  colspan="6" align="right">
    (*所有条件可以组合查询)&nbsp;&nbsp;<input value="查询" type="submit" class="SmallButton" title="快速查询" name="button">
    </td>
  </tr>

</table>
</fieldset>
</div>
<br>
<div align="left">
<fieldset style="width:95%;padding-bottom:5px;">
	 <legend class="small" align=left>
      <b>合同信息</b>
  </legend>
<table cellspacing="1" class="small" align="left" cellpadding="3">
  <tr>
    <td nowrap class="TableData">&nbsp;&nbsp;合同类型: </td>
    <td nowrap class="TableData" >
        <select name="CONTRACT_TYPE" class="SmallSelect">
<?
        GETALLDATE("CONTRACT_TYPE");
?>
        </select>
    </td>
    <td nowrap class="TableData">合同编号: </td>
    <td nowrap class="TableData">
    <input type="text" name="CONTRACT_NO" class="SmallInput" size="15" maxlength="100" value="<?=$CONTRACT_NO?>">
    </td>

    <td nowrap class="TableData">合同名称: </td>
    <td nowrap class="TableData">
    <input type="text" name="CONTRACT_NAME" class="SmallInput" size="15" maxlength="100" value="<?=$CONTRACT_NAME?>">
    </td>
  </tr>
  <tr>
  	<td nowrap class="TableData">&nbsp;&nbsp;签约人(买方): </td>
    <td nowrap class="TableData">
        <input type="text" name="CONTRACT_LINKMAN1" class="SmallInput" size="15" maxlength="100" value="<?=$CONTRACT_LINKMAN1?>">
    </td>
    <td nowrap class="TableData">签约人(卖方): </td>
    <td nowrap class="TableData">
     <input type="text" name="CONTRACT_LINKMANNAME2" class="SmallInput" size="15" maxlength="100" value="<?=$CONTRACT_LINKMAN2?>">
    </td>
    <td nowrap class="TableData">创建人: </td>
    <td nowrap class="TableData">
     <input type="text" name="SELLER_NAME" class="SmallInput" size="15" maxlength="100" value="<?=$CONTRACT_LINKMAN2?>">
    </td>
  </tr>
  <tr>
  	<td nowrap class="TableData" valign="bottom">&nbsp;&nbsp;合同描述: </td>
    <td nowrap class="TableData" colspan="5">
      <textarea cols=29 name="CONTRACT_MEMO" rows=2 class="SmallStatic" wrap="yes"></textarea>
      &nbsp;&nbsp;合同条款:
      <textarea cols=29 name="CONTRACT_ARTICLE" rows=2 class="SmallStatic" wrap="yes"></textarea>
    </td>
  </tr>
  <tr>
  	<td nowrap class="TableData" valign="bottom">&nbsp;&nbsp;合同内容: </td>
    <td nowrap class="TableData" colspan="5">
      <textarea cols=72 name="CONTRACT_CONTENT" rows=3 class="SmallStatic" wrap="yes"></textarea>
    </td>
  </tr>
 <tr>
 	<td nowrap class="TableData">
 	 	&nbsp;<select name="DATE_TYPE" class="SmallSelect">
   <option value="BEGIN">生效日期</option>
   <option value="END">终止日期</option>
   <option value="CREATE">创建日期</option>
   </select>
 	</td>
    <td nowrap class="TableData" colspan="7">
      <input type="text" name="DATE1" size="15" maxlength="10" class="SmallStatic" readonly value="<?=$BEGIN_DATE?>">
        <img src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar('form1.DATE1');">
       至<input type="text" name="DATE2" size="15" maxlength="10" class="SmallStatic" readonly value="<?=$BEGIN_DATE?>">
        <img src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar('form1.DATE2');">
      &nbsp;&nbsp;<input type="radio" name='SIGN' id='SIGN1' value="1">&nbsp;<label for="SIGN1">款到合同</label><input type="radio" name='SIGN' id='SIGN2' value="0">&nbsp;<label for="SIGN2">欠款合同</label>
     </td>


 </tr>
 <?
 $count=0;
 $connection=OpenConnection();
 $query = "select count(*) from FIELDSETTING where TABLENAME='CONTRACT' and ISQUERY='1'";
 $cursor=exequery($connection,$query);
 if($ROW=mysql_fetch_array($cursor))
{
   $count=$ROW[0];
}
 if($count>0)
 {
?>
   <tr>
    <td nowrap  class="TableHeader" colspan="6" align="left">
     &nbsp;&nbsp;用户自定义字段:
    </td>
   </tr>
<?
  $query = "select * from FIELDSETTING where TABLENAME='CONTRACT' AND ISQUERY='1' ORDER BY ORDERNO ASC  ";
  $cursor=exequery($connection,$query);
   while($ROW=mysql_fetch_array($cursor))
  {
  	   $FIELDNAME=$ROW["FIELDNAME"];
       $ORDERNO=$ROW["ORDERNO"];
       $STYPE=$ROW["STYPE"];
       $TYPENAME=$ROW["TYPENAME"];
       $TYPEVALUE=$ROW["TYPEVALUE"];
       $TYPECODE=$ROW["TYPECODE"];
       $ISQUERY=$ROW["ISQUERY"];
       $ISGROUY=$ROW["ISGROUY"];
       $FIELDNAME=$ROW["FIELDNAME"];
       $FIELDNO=$ROW["FIELDNO"];
?>
   <tr>
    <td nowrap class="TableData">&nbsp;&nbsp;<?=$FIELDNAME?>:</td>
    <td nowrap class="TableData" colspan="5">
<?
    if($STYPE=="T")
    {
?>
     <input type="text" name='CONTRACT<?=$FIELDNO?>' class="SmallInput" size="33" maxlength="25" value="">
<?
    }
    if($STYPE=="MT")
    {
?>
     <textarea cols=37 rows=1 name='CONTRACT<?=$FIELDNO?>' class="SmallInput" wrap="yes"></textarea>

<?
    }
    if($STYPE=="D")
    {
       $TYPEVALUE=str_replace(",",",",$TYPEVALUE);
       $TYPEVALUE_ARRAY=explode(",",$TYPEVALUE);
       $TYPENAME=str_replace(",",",",$TYPENAME);
       $TYPENAME_ARRAY=explode(",",$TYPENAME);
       $TYPENAME_COUNT=sizeof($TYPENAME_ARRAY);
       if($TYPENAME_ARRAY[$TYPENAME_COUNT-1]=="")$TYPENAME_COUNT--;
?>
       <select name='CONTRACT<?=$FIELDNO?>' class="SmallSelect">
       <option value=""></option>
<?
       for($I=0;$I<$TYPENAME_COUNT;$I++)
       {
?>

       <option value="<?=$TYPEVALUE_ARRAY[$I]?>"><?=$TYPENAME_ARRAY[$I]?></option>

<?

       }
     }
     if($STYPE=="C")
    {
       $TYPEVALUE=str_replace(",",",",$TYPEVALUE);
       $TYPEVALUE_ARRAY=explode(",",$TYPEVALUE);
       $TYPENAME=str_replace(",",",",$TYPENAME);
       $TYPENAME_ARRAY=explode(",",$TYPENAME);
       $TYPENAME_COUNT=sizeof($TYPENAME_ARRAY);
       if($TYPENAME_ARRAY[$TYPENAME_COUNT-1]=="")$TYPENAME_COUNT--;
?>
       <input type="hidden" name='CONTRACT<?=$FIELDNO?>'>
<?
       for($I=0;$I<$TYPENAME_COUNT;$I++)
       {
?>
       <input type="checkbox" name='CCONTRACT<?=$FIELDNO?>' id='CCONTRACT<?=$FIELDNO?><?=$I?>' value="<?=$TYPEVALUE_ARRAY[$I]?>" onclick="return chk(this,'CCONTRACT<?=$FIELDNO?>','CONTRACT<?=$FIELDNO?>','<?=$TYPENAME_COUNT?>');"><label for="CCONTRACT<?=$FIELDNO?><?=$I?>"><?=$TYPENAME_ARRAY[$I]?></label>

<?
       }

⌨️ 快捷键说明

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