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

📄 journey_add.asp

📁 适用于网络/信息企业
💻 ASP
字号:
<!--#include file="../INC/Conn.asp"-->
<!--#include file="inc/Check.asp"-->
<!--#include file="inc/public.asp"-->
<!--#include File="Procedure.asp"-->
<%
dim Makking
Makking = Trim(Request.QueryString("Makking"))    
'---------------------------------
select case Makking
case "save"

IF Request.Form("Journey_Whither") = "" OR Request.Form("Journey_Causation") = "" Then

	Save_title="·对不起,姓名不能为空"   
	call Save_err()

End if


	Journey_Whither		= Request.Form("Journey_Whither")
	Journey_Causation	= Request.Form("Journey_Causation")
	Journy_Remark		= Request.Form("Journy_Remark")


Set Rs = Conn.Execute("Select * From Journey Where TimeStr = '"& Request.QueryString("TimeStr") &"' AND Employee_ID = '"& Session("Eboer_CRM_Employee_ID") &"'")

	IF Rs.bof AND Rs.eof Then

	Conn.Execute("Insert Into Journey (TimeStr,Employee_ID,Journey_Whither,Journey_Causation,Journy_Remark) Values ('"& cdate(Request.QueryString("TimeStr")) &"','"& Session("Eboer_CRM_Employee_ID") &"','"& Journey_Whither &"','"& Journey_Causation &"','"& Journy_Remark &"')")
	
	Response.Write "<script>window.opener.location.reload();window.close();</script>"
	
	Else

	Conn.Execute("upDate Journey Set Journey_Whither = '"& Journey_Whither &"',Journey_Causation = '"& Journey_Causation &"',Journy_Remark = '"& Journy_Remark &"' Where TimeStr = '"& Request.QueryString("TimeStr") &"' AND Employee_ID = '"& Session("Eboer_CRM_Employee_ID") &"'")
	
	End IF
	
	Response.Write "<script>window.opener.location.reload();window.close();</script>"

	Rs.Close
	
Set Rs = Nothing

case ""

Set Rs = Conn.Execute("Select * From Journey Where TimeStr = '"& Request.QueryString("TimeStr") &"'AND Employee_ID = '"& Session("Eboer_CRM_Employee_ID") &"'")

IF Not(Rs.Bof AND Rs.eof) Then

	TimeStr				= Rs("TimeStr")
	Journey_Whither		= Rs("Journey_Whither")
	Journey_Causation	= Rs("Journey_Causation")
	Journy_Remark		= Rs("Journy_Remark")

End if

Rs.Close
Set Rs = Nothing

%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>亿博尔-客户关系管理系统</title>
</head>
<link href="Images/Admin.css" rel="stylesheet" type="text/css">
<body>
<table width="98%" height="40"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D8D8D8">
      <tr>
        <td height="30" align="left" bgcolor="ffffff"><table width="100%" height="100%"  border="0" cellpadding="3" cellspacing="0">
            <tr bgcolor="eeeeee">
              <td width="5%" align="center"><img src="Images/1.gif" width="13" height="12"></td>
                <td width="85%"><span class="style2">管理中心 &gt;&gt;&gt; 添加/修改行程</span></td>
                <td width="10%" align="right">&nbsp;</td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="98%" height="88%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D8D8D8">
  <tr>
    <td valign="top" bgcolor="ffffff"><table width="95%"  border="0" align="center" cellpadding="5" cellspacing="0">
        <tr>
          <td align="center" valign="top" bgcolor="ffffff"> 
            <form method='POST' name="form" action="Journey_Add.asp?Makking=save&TimeStr=<%=Request.QueryString("TimeStr")%>">
              <br>
              <table width=100% border=0 align='center' cellpadding=1 
      cellspacing=1 bordercolordark=#ffffff bgcolor="#EBEBEB" class='size09'>
                <tr> 
                  <td width="25%" height="12" align="right" bgcolor="ffffff">去向:</td>
                  <td height="12" bgcolor="ffffff"><input name="Journey_Whither" type="text" id="Journey_Whither" value="<%=Journey_Whither%>" size="30" maxlength="50"> 
                    <font color="#FF0000"> *</font></td>
                </tr>
                <tr> 
                  <td width="25%" height="0" align="right" bgcolor="ffffff">事由:</td>
                  <td height="12" bgcolor="ffffff"><input name="Journey_Causation" type="text" id="Journey_Causation" value="<%=Journey_Causation%>" size="30" maxlength="50">
                    <font color="#FF0000">*</font></td>
                </tr>
                <tr> 
                  <td width="25%" height="12" align="right" bgcolor="ffffff">备注:</td>
                  <td height="12" bgcolor="ffffff"><textarea name="Journy_Remark" cols="40" rows="5" id="Journy_Remark"><%=Journy_Remark%></textarea></td>
                </tr>
              </table>
              <p> 
                <input name="B1" type="image" src="Images/refer.gif" width="36" height="21" border="0">
                &nbsp;<%IF request.ServerVariables("http_referer")="" Then%><a href=""><img src="Images/back.gif" width="36" height="21" border="0" onClick="javascript:window.close()"></a><%Else%><a href="<%=request.ServerVariables("http_referer")%>"><img src="Images/back.gif" width="36" height="21" border="0"></a><%End IF%></p>
            </form></td>
        </tr>
      </table>      
      
    </td>
  </tr>
</table>
<%end select
Conn.Close
Set Conn = Nothing

%>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="6"></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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