Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

252 lines
8.1 KiB

  1. <%@LANGUAGE=JScript CODEPAGE=1252 %>
  2. <html>
  3. <head>
  4. <TITLE>Add/Edit Contact</TITLE>
  5. <!-- #INCLUDE FILE='Global_ServerUtils.asp' -->
  6. <!-- #INCLUDE FILE='Global_DBUtils.asp' -->
  7. <meta http-equiv="Content-Type" CONTENT="text/html; charset=iso-8859-1" />
  8. <link rel="stylesheet" TYPE="text/css" HREF="/main.css">
  9. <link rel="stylesheet" TYPE="text/css" HREF="/CustomStyles.css">
  10. </head>
  11. <body bgcolor='#ffffff' topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' tabindex=0>
  12. <%
  13. //Response.Write( Request.QueryString() )
  14. var id = new Number( Request.QueryString("Val" ) )
  15. if ( id == -1 )
  16. {
  17. rContactName = ""
  18. rContactID = -1
  19. rCompanyName = ""
  20. rCompanyAddress1 = ""
  21. rCompanyAddress2 = ""
  22. rCompanyCity = ""
  23. rCompanyState = ""
  24. rCompanyCity = ""
  25. rCompanyZip = ""
  26. rCompanyMainPhone = ""
  27. rCompanySupportPhone = ""
  28. rCompanyFax = ""
  29. rCompanyWebSite = ""
  30. rContactOccupation = ""
  31. rContactAddress1 = ""
  32. rContactAddress2 = ""
  33. rContactCity = ""
  34. rContactState = ""
  35. rContactZip = ""
  36. rContactPhone = ""
  37. rContactEMail = ""
  38. }
  39. else
  40. {
  41. g_DBConn = GetDBConnection( Application("SOLUTIONS3") )
  42. var MyData = g_DBConn.Execute("SEP_GetContact " + String( id ) )
  43. if ( !MyData.EOF)
  44. {
  45. rContactName = MyData("ContactName")
  46. rCompanyName = Server.HTMLEncode( MyData("CompanyName") )
  47. rCompanyAddress1 = MyData("CompanyAddress1")
  48. rCompanyAddress2 = MyData("CompanyAddress2")
  49. rCompanyCity = MyData("CompanyCity")
  50. rCompanyState = MyData("CompanyState")
  51. rCompanyCity = MyData("CompanyCity")
  52. rCompanyZip = MyData("CompanyZip")
  53. rCompanyMainPhone = MyData("CompanyMainPhone")
  54. rCompanySupportPhone = MyData("CompanySupportPhone")
  55. rCompanyFax = MyData("CompanyFax")
  56. rCompanyWebSite = MyData("CompanyWebSite")
  57. rContactOccupation = MyData("ContactOccupation")
  58. rContactAddress1 = MyData("ContactAddress1")
  59. rContactAddress2 = MyData("ContactAddress2")
  60. rContactCity = MyData("ContactCity")
  61. rContactState = MyData("ContactState")
  62. rContactZip = MyData("ContactZip")
  63. rContactPhone = MyData("ContactPhone")
  64. rContactEMail = MyData("ContactEMail")
  65. rContactID = Request.QueryString("Val")
  66. }
  67. else
  68. {
  69. Response.Write ( "<CENTER><B>Contact Data Not Found For: " + Request.QueryString("id") + "</B></CENTER>" )
  70. Response.End
  71. }
  72. }
  73. %>
  74. <FORM NAME=ModuleForm ACTION="SEP_GoContact.asp" METHOD=POST>
  75. <INPUT TYPE=HIDDEN NAME=SolutionID VALUE=<%=Request.QueryString("solution")%>>
  76. <INPUT TYPE=HIDDEN NAME=Lang VALUE=<%=Request.QueryString("lang")%>>
  77. <INPUT TYPE=HIDDEN NAME=ContactID VALUE=<%=rContactID%>>
  78. <table>
  79. <tr>
  80. <td>
  81. <p class='clsPTitle'>Edit/Add Contact Information</p>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>
  86. <table class="clsTableInfo" border="0" cellpadding="2" cellspacing="0" style='border:1px solid #6681d9;'>
  87. <tr>
  88. <td align="left" nowrap class="clsTDInfo" colspan=2>
  89. Company Information
  90. </td>
  91. </tr>
  92. <tr>
  93. <td class='sys-table-cell-bgcolor1'>Name</td>
  94. <td class='sys-table-cell-bgcolor1'>
  95. <input class='clsResponseInput2 ' NAME=CompanyName SIZE=40 MAXLENGTH=128 VALUE="<%=rCompanyName%>">
  96. </td>
  97. </tr>
  98. <tr>
  99. <td class='sys-table-cell-bgcolor1'>Address1</td>
  100. <td class='sys-table-cell-bgcolor1'>
  101. <input class='clsResponseInput2 ' NAME=CompanyAddress1 SIZE=40 MAXLENGTH=64 VALUE="<%=rCompanyAddress1%>">
  102. </td>
  103. </tr>
  104. <tr>
  105. <td class='sys-table-cell-bgcolor1'>Address2</td>
  106. <td class='sys-table-cell-bgcolor1'>
  107. <input class='clsResponseInput2 ' NAME=CompanyAddress2 SIZE=40 MAXLENGTH=64 VALUE="<%=rCompanyAddress2%>">
  108. </td>
  109. </tr>
  110. <tr>
  111. <td class='sys-table-cell-bgcolor1'>City
  112. <td class='sys-table-cell-bgcolor1'>
  113. <input class='clsResponseInput2 ' NAME=CompanyCity MAXLENGTH=32 SIZE=16 VALUE="<%=rCompanyCity%>">
  114. </TD>
  115. </tr>
  116. <tr>
  117. <TD class='sys-table-cell-bgcolor1'>State
  118. <td class='sys-table-cell-bgcolor1'>
  119. <input class='clsResponseInput2 ' NAME=CompanyState MAXLENGTH=16 SIZE=2 VALUE="<%=rCompanyState%>">
  120. </TD>
  121. </tr>
  122. <tr>
  123. <TD class='sys-table-cell-bgcolor1'>Zip:</td>
  124. <td class='sys-table-cell-bgcolor1'>
  125. <input class='clsResponseInput2' NAME=CompanyZip MAXLENGTH=16 SIZE=8 VALUE="<%=rCompanyZip%>">
  126. </TD>
  127. </TR>
  128. <TR>
  129. <td class='sys-table-cell-bgcolor1'>
  130. Main Phone
  131. </TD>
  132. <TD class='sys-table-cell-bgcolor1'>
  133. <input class='clsResponseInput2 ' SIZE=16 NAME=CompanyMainPhone MAXLENGTH=16 VALUE="<%=rCompanyMainPhone%>">
  134. </TD>
  135. </TR>
  136. <TR>
  137. <TD class='sys-table-cell-bgcolor1'>Support Phone</TD>
  138. <TD class='sys-table-cell-bgcolor1'>
  139. <input class='clsResponseInput2 ' SIZE=16 NAME=CompanySupportPhone MAXLENGTH=16 VALUE="<%=rCompanySupportPhone%>">
  140. </TD>
  141. </TR>
  142. <TR>
  143. <TD class='sys-table-cell-bgcolor1'>Fax</TD>
  144. <TD class='sys-table-cell-bgcolor1'>
  145. <input class='clsResponseInput2 ' SIZE=16 NAME=CompanyFax MAXLENGTH=16 VALUE="<%=rCompanyFax%>">
  146. </TD>
  147. </TR>
  148. <TR>
  149. <TD class='sys-table-cell-bgcolor1'>Web Site</TD>
  150. <TD class='sys-table-cell-bgcolor1'>
  151. <input class='clsResponseInput2 ' SIZE=16 NAME=CompanyWebSite MAXLENGTH=128 VALUE="<%=rCompanyWebSite%>">
  152. </TD>
  153. </TR>
  154. </table>
  155. </td>
  156. <td valign='top'>
  157. <table class="clsTableInfo" border="0" cellpadding="2" cellspacing="0" style='border:1px solid #6681d9;'>
  158. <tr>
  159. <td align="left" nowrap class="clsTDInfo" colspan=2>
  160. Contact Information
  161. </td>
  162. </tr>
  163. <TR>
  164. <td class='sys-table-cell-bgcolor1'>Name</td>
  165. <td class='sys-table-cell-bgcolor1'>
  166. <input class='clsResponseInput2 ' SIZE=40 NAME=ContactName MAXLENGTH=32 VALUE="<%=rContactName%>">
  167. </TD>
  168. </TR>
  169. <TR>
  170. <td class='sys-table-cell-bgcolor1'>Address1</td>
  171. <td class='sys-table-cell-bgcolor1'>
  172. <input class='clsResponseInput2 ' SIZE=40 NAME=ContactAddress1 MAXLENGTH=64 VALUE="<%=rContactAddress1%>">
  173. </TD>
  174. </TR>
  175. <TR>
  176. <td class='sys-table-cell-bgcolor1'>Address2</td>
  177. <td class='sys-table-cell-bgcolor1'>
  178. <input class='clsResponseInput2 ' SIZE=40 NAME=ContactAddress2 MAXLENGTH=64 VALUE="<%=rContactAddress2%>">
  179. </TD>
  180. </TR>
  181. <TR>
  182. <td class='sys-table-cell-bgcolor1'>City</td>
  183. <td class='sys-table-cell-bgcolor1'>
  184. <input class='clsResponseInput2 ' NAME=ContactCity SIZE=16 MAXLENGTH=32 VALUE="<%=rContactCity%>">
  185. </TD>
  186. </tr>
  187. <tr>
  188. <td class='sys-table-cell-bgcolor1'>State</td>
  189. <td class='sys-table-cell-bgcolor1'>
  190. <input class='clsResponseInput2 ' NAME=ContactState MAXLENGTH=16 SIZE=2 VALUE="<%=rContactState%>">
  191. </td>
  192. </tr>
  193. <tr>
  194. <td class='sys-table-cell-bgcolor1'>Zip</td>
  195. <td class='sys-table-cell-bgcolor1'>
  196. <input class='clsResponseInput2 ' NAME=ContactZip MAXLENGTH=16 SIZE=8 VALUE="<%=rContactZip%>">
  197. </TD>
  198. </TR>
  199. <TR>
  200. <td class='sys-table-cell-bgcolor1'>Occupation</TD>
  201. <td class='sys-table-cell-bgcolor1'>
  202. <input class='clsResponseInput2 ' SIZE=16 NAME=ContactOccupation MAXLENGTH=32 VALUE="<%=rContactOccupation%>">
  203. </TD>
  204. </TR>
  205. <TR>
  206. <td class='sys-table-cell-bgcolor1'>Phone</TD>
  207. <td class='sys-table-cell-bgcolor1'>
  208. <input class='clsResponseInput2 ' SIZE=16 NAME=ContactPhone MAXLENGTH=16 VALUE="<%=rContactPhone%>">
  209. </TD>
  210. </TR>
  211. <TR>
  212. <td class='sys-table-cell-bgcolor1'>EMail</TD>
  213. <td class='sys-table-cell-bgcolor1'>
  214. <input class='clsResponseInput2 ' SIZE=16 NAME=ContactEMail MAXLENGTH=64 VALUE="<%=rContactEMail%>">
  215. </TD>
  216. </TR>
  217. </table>
  218. </td>
  219. </tr>
  220. <tr>
  221. <td style='padding-left:16px'>
  222. <INPUT TYPE=SUBMIT VALUE=Update id=SUBMIT1 name=SUBMIT1>
  223. </td>
  224. </tr>
  225. </table>
  226. </form>
  227. <SCRIPT LANGUAGE=Javascript>
  228. window.parent.frames("sepLeftNav").document.location.reload()
  229. </SCRIPT>
  230. </body>
  231. </html>