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

📄 index.php

📁 极限网络智能办公系统 - Office Automation 2008 官方100% 源码
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?
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"];
   $DELETE_FLAG=$ROW["DELETE_FLAG"];
}
?>

<html>
<head>
<title>活动快速搜索 </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
	function check_one(el)
{
   if(!el.checked)
      document.all("allbox").checked=false;
}
  function delete_customer(ACTIVITY_ID,urlstr)
{
 msg='确认要删除该活动?这也将删除相关的活动明细和活动付款记录。';
 if(window.confirm(msg))
 {
  URL="delete.php?ACTIVITY_ID=" + ACTIVITY_ID+"&"+urlstr+"&CUR_PAGE=<?=$CUR_PAGE?>&ORDERFIELD=<?=$ORDERFIELD?>&ORDERTYPE=<?=$ORDERTYPE?>";
  window.location=URL;
 }
}
function ad_query()
{
  URL="ad_query";
  window.location=URL;
}
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 set_page(urlstr)
{
 PAGE_START=PAGE_NUM.value;
 location="index.php?CUR_PAGE="+PAGE_START+"&"+urlstr;
}
function check_all()
{
 for (i=0;i<document.all("email_select").length;i++)
 {
   if(document.all("allbox").checked)
      document.all("email_select").item(i).checked=true;
   else
      document.all("email_select").item(i).checked=false;
 }

 if(i==0)
 {
   if(document.all("allbox").checked)
      document.all("email_select").checked=true;
   else
      document.all("email_select").checked=false;
 }
}
function delete_mail(urlstr)
{
  delete_str="";
  for(i=0;i<document.all("email_select").length;i++)
  {

      el=document.all("email_select").item(i);
      if(el.checked)
      {  val=el.value;
         delete_str+=val + ",";
      }
  }

  if(i==0)
  {
      el=document.all("email_select");
      if(el.checked)
      {  val=el.value;
         delete_str+=val + ",";
      }
  }

  if(delete_str=="")
  {
     alert("请至少选择其中一个活动");
     return;
  }

  msg='确认要删除所选活动?';
  if(window.confirm(msg))
  {
   
    URL="delete.php?delete_str="+delete_str+"&"+urlstr+"&CUR_PAGE=<?=$CUR_PAGE?>&ORDERFIELD=<?=$ORDERFIELD?>&ORDERTYPE=<?=$ORDERTYPE?>";
    window.location=URL;
  }
}
function LoadWindow()
{
  URL="/module/user_select_single";
  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
  loc_y=document.body.scrollTop+event.clientY-event.offsetY+200;
  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");
}

function detail(CANCEL_ID)
{
 URL="showdetail.php?ACTIVITY_ID="+CANCEL_ID;
 myleft=(screen.availWidth-500)/2;
 window.open(URL,"read_notify","height=450,width=500,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
}

function detail_list(CANCEL_ID)
{
 URL="customer_line/?ACTIVITY_ID="+CANCEL_ID;
 myleft=(screen.availWidth-500)/2;
 window.open(URL,"read_notify","height=300,width=500,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
}
</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">
  <form action="index.php"  method="post" name="form1">
  <tr>
     <td nowrap class="TableData">&nbsp;&nbsp;活动名称: </td>
    <td nowrap class="TableData">
        <input type="text" name="ACTIVITY_NAME" class="SmallInput" size="10" maxlength="100" value="<?=$ACTIVITY_NAME?>">
    </td>
    <td nowrap class="TableData">&nbsp;&nbsp;活动类型: </td>
    <td nowrap class="TableData" >
        <select name="ACTIVITY_TYPE" class="SmallSelect">
<?
        GETALLDATE("ACTIVITY_TYPE",$ACTIVITY_TYPE);
?>
        </select>
    </td>
     <td nowrap class="TableData">负责人: </td>
    <td nowrap class="TableData">
        <input type="hidden" name="TO_ID" value="<?=$TO_ID?>">
<?
      $query2="select USER_NAME from USER where USER_ID='$TO_ID'";
      $cursor2 = exequery($connection, $query2);
       if($ROW=mysql_fetch_array($cursor2))
       $USER_NAME=$ROW["USER_NAME"];
?>
        <input type="text" name="TO_NAME" class="SmallStatic" readonly size="15" maxlength="100"  value="<?=$USER_NAME?>">
        <input type="button" value="选择" class="SmallButton" onClick="LoadWindow()" title="指定负责人" name="button">
    </td>
    <td nowrap class="TableData">进行状态: </td>
    <td nowrap class="TableData">
        <select name="ACTIVITY_STATUS" class="SmallSelect">
<?
print $ACTIVITY_STATUS;
        GETALLDATE("ACTIVITY_STATUS",$ACTIVITY_STATUS);
?>
        </select>
    </td>
   </tr>
 <tr>
 	<td nowrap class="TableData">
 	 	&nbsp;&nbsp;<select name="DATE_TYPE" class="SmallSelect">
   <option value="BEGIN" <? if($DATE_TYPE="BEGIN") echo " selected"; ?>>生效日期</option>
   <option value="END" <? if($DATE_TYPE="END") echo " selected"; ?>>终止日期</option>
   </select>
 	</td>
    <td nowrap class="TableData" colspan="7">
      <input type="text" name="DATE1" size="15" maxlength="10" class="SmallStatic" readonly value="<?=$DATE1?>">
        <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="<?=$DATE2?>">
        <img src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar('form1.DATE2');">
     </td>


 </tr>
 <tr>
 	<td nowrap class="TableData"  colspan="3" >
 	&nbsp;&nbsp;<input value="快速查询" type="submit" class="SmallButton" title="快速查询" name="button">
  </td>
 </tr>
</form>
</table>
</fieldset>
</div>
<br>
<br>
<?
//-----------先组织SQL语句-----------
if($ACTIVITY_NAME!="")
 {
     if($urlstr=="")$urlstr="ACTIVITY_NAME=".$ACTIVITY_NAME;
     else $urlstr=$urlstr."&ACTIVITY_NAME=".$ACTIVITY_NAME;
     if($WHERE_STR=="")
         $WHERE_STR.=" where a.ACTIVITY_NAME like '%".$ACTIVITY_NAME."%'";
     else
         $WHERE_STR.=" and a.ACTIVITY_NAME like '%".$ACTIVITY_NAME."%'";
 }

⌨️ 快捷键说明

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