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.

99 lines
2.6 KiB

  1. <%@LANGUAGE=JScript CODEPAGE=1252 %>
  2. <!-- #INCLUDE FILE='Global_ServerUtils.asp' -->
  3. <!-- #INCLUDE FILE='Global_DBUtils.asp' -->
  4. <head>
  5. <link rel="stylesheet" TYPE="text/css" HREF="/main.css">
  6. <link rel="stylesheet" TYPE="text/css" HREF="/CustomStyles.css">
  7. </head>
  8. <body bgcolor='#ffffff' topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' tabindex='0'>
  9. <table>
  10. <tr>
  11. <td>
  12. <%
  13. var SolutionID = Request.QueryString( "SolutionID" )
  14. var TemplateID = Request.QueryString( "TemplateID" )
  15. var ContactID = Request.QueryString( "ContactID" )
  16. var ProductID = Request.QueryString( "ProductID" )
  17. var ModuleID = Request.QueryString( "ModuleID" )
  18. var Language = Request.QueryString( "Language" )
  19. var KBArticles = Request.QueryString("KBArticles")
  20. var SolutionType = Request.QueryString("SolutionType")
  21. var DeliveryType = Request.QueryString("DeliveryType")
  22. var SP = Request.QueryString( "SP" )
  23. var Mode = new String( Request.QueryString( "Mode" ) )
  24. var SP = 0
  25. g_DBConn = GetDBConnection( Application("SOLUTIONS3") )
  26. if ( Mode.toString() == "user" )
  27. Mode = 1
  28. else
  29. Mode = 0
  30. /* This is the header from the Create solution sproc
  31. CREATE PROCEDURE SEP_SetSolutionData(
  32. @SolutionID int,
  33. @SolutionType tinyint,
  34. @DeliveryType tinyint,
  35. @SP tinyint,
  36. @TemplateID int,
  37. @ProductID int,
  38. @Description nvarchar(1024),
  39. @ContactID int,
  40. @ModuleID int,
  41. @UserMode tinyint = 0
  42. ) AS
  43. */
  44. try
  45. {
  46. var Query = "SEP_SetSolutionData " + SolutionID + "," + SolutionType + "," + DeliveryType + "," + SP + "," + TemplateID + "," + ProductID + ",'" + KBArticles + "'," + ContactID + "," + ModuleID + "," + Mode
  47. var NewSolutionID = g_DBConn.Execute( Query )
  48. if ( !NewSolutionID.EOF )
  49. {
  50. Response.Write("<p class=clsPTitle>Create Solution Results</p>" )
  51. Response.Write("<p>Created SolutionID: " + NewSolutionID("SolutionID") + "</p>")
  52. %>
  53. <SCRIPT LANGUAGE=Javascript>
  54. window.parent.frames("sepLeftNav").document.location = "sep_leftnav.asp?Val=<%=NewSolutionID("SolutionID")%>"
  55. window.location = "sep_defaultbody.asp"
  56. </SCRIPT>
  57. <%
  58. }
  59. }
  60. catch( err )
  61. {
  62. Response.Write("<p class='clsPTitle'>Could not Create Response</p>" )
  63. Response.Write("<p>Could not create solution due to the following error<br>Err: " + err.description + "<br>Please contact <a href='mailto:[email protected]'>SOlson</a> and report the problem" )
  64. Response.Write("<p>Query: " + Query + "</p>" )
  65. Response.Write("<p>Query String: " + Request.QueryString() + "</p>" )
  66. }
  67. %>
  68. </td>
  69. </tr>
  70. </table>
  71. </body>