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.

57 lines
1.4 KiB

  1. <%@LANGUAGE=JScript%>
  2. <!-- #INCLUDE FILE='Global_ServerUtils.asp' -->
  3. <!-- #INCLUDE FILE='Global_DBUtils.asp' -->
  4. <%
  5. var Language= Request.Form( "Lang" )
  6. if ( Language == "ja" )
  7. {
  8. Session.CodePage = 932;
  9. //Response.CharSet = "shift-jis";
  10. Session.CodePage = 65001;
  11. Response.CharSet = "shift-jis";
  12. }
  13. else
  14. {
  15. Session.CodePage = 1252
  16. Response.CharSet="iso-8859-1"
  17. }
  18. var TemplateID= Request.Form("TemplateID")
  19. var TemplateDescription = new String( Request.Form("TemplateDescription") )
  20. var TemplateName = new String( Request.Form("TemplateName") )
  21. Response.Write( "Querystring: " + Request.Form() )
  22. var g_DBConn = GetDBConnection( Application("SOLUTIONS3") )
  23. try
  24. {
  25. //TemplateDescription = TemplateDescription.replace( /"/g, "\"\"" )
  26. TemplateDescription = TemplateDescription.replace( /'/g, "''" )
  27. var Query = "SEP_SetTemplateData " + TemplateID + ",N'" + TemplateName + "',N'" + TemplateDescription + "', '" + Language + "'"
  28. Response.Write("<BR><BR>Query: " + Query )
  29. var rsTemplateID = g_DBConn.Execute( Query )
  30. g_DBConn.close()
  31. }
  32. catch ( err )
  33. {
  34. Response.Write( "Could not execute SEP_SetTemplateData(...)<BR>" )
  35. Response.Write( "Query: " + Query + "<BR>" )
  36. Response.Write( "[" + err.number + "] " + err.description )
  37. Response.End
  38. }
  39. Response.Redirect("http://" + g_ServerName + "/SEP_EditTemplate.asp?Val=" + TemplateID + "&Lang=" + Language )
  40. %>