%@Language='JScript' CODEPAGE=1252%>
<%
var Language = new String( Request.QueryString("Language") )
if ( Language == "ja" )
{
Session.CodePage = 932;
Response.CharSet = "shift-jis";
}
else
{
Session.CodePage = 1252
Response.CharSet="iso-8859-1"
}
var SolutionID = new String( Request.QueryString("SolutionID" ) )
var TemplateID = Request.QueryString( "TemplateID" )
var ContactID = Request.QueryString( "ContactID" )
var ProductID = Request.QueryString( "ProductID" )
var ModuleID = Request.QueryString( "ModuleID" )
var Language = Request.QueryString( "Language" )
if ( SolutionID != "undefined" )
{
var spQuery = "OCAV3_GetSolutionData " + SolutionID
}
else
{
var spQuery = "SEP_GetSolutionData " + TemplateID + "," + ContactID + "," + ProductID + "," + ModuleID + ",'" + Language + "'"
}
//Response.Write("SPQuery: " + spQuery + "
\n\n" )
//Response.Write("QueryString: " + Request.QueryString() + "
\n\n" )
//Response.Write("
kbarts: " + KBArticles + "
\n\n\n\n" )
%>
<%
//Response.Write( Request.QueryString )
/*
* Localizable constants
*/
var L_STATUSERRORMSGTITLE_TEXT = "Unable to complete action";
var L_STATUSERRORMSG_TEXT = "Windows Online Crash Analysis was unable to complete the requested action. Please try this task again.";
var L_RETURNTOERRSTATUS_TEXT = "Return to error report status";
var L_CONTACT_COMPANY_NAME_TEXT = "Company Name:";
var L_CONTACT_COMPANY_ADDRESS_TEXT = "Company Address:";
var L_CONTACT_COMPANY_ADDRESS2_TEXT = "";
var L_CONTACT_COMPANY_CITY_TEXT = "City:";
var L_CONTACT_COMPANY_STATE_TEXT = "State:";
var L_CONTACT_COMPANY_ZIP_TEXT = "Zip:";
var L_CONTACT_COMPANY_PHONE_TEXT = "Phone:";
var L_CONTACT_COMPANY_SUPPORTPHONE_TEXT = "Support Phone:";
var L_CONTACT_COMPANY_FAX_TEXT = "Fax:";
var L_CONTACT_COMPANY_WEBSITE_TEXT = "Web site:";
var L_MANUFACTUERERINFORMATION_TEXT = "Manufacturer information";
var L_TRACKCRASH_TEXT = "Track this error report";
var L_TRACKCRASHACCESSKEY_TEXT = "c";
var L_ANALYSISSTATUS_TEXT = "Analysis status";
//var L_KBARTICLES_TEXT = "Knowledge Base articles";
var L_KBARTICLETEXT_TEXT = "Knowledge Base article";
var L_KBARTICLES_TEXT = "Additional Technical Information";
var L_RETURNTOSTATUS_TEXT = "Return to error report status";
var L_SURVEY_TOP_TITLE_TEXT = "Feedback (optional)";
var L_SURVEY_UNDERSTAND_INFO_TEXT = "Was the information easy to understand?";
var L_SURVEY_YES_OPTION_TEXT = "Yes";
var L_SURVEY_NO_OPTION_TEXT = "No";
var L_SURVEY_HELP_RESOLVE_TEXT = "Did this information help to resolve your issue?";
var L_SURVEY_ADD_COMMENTS_TEXT = "Comments (255-character maximum):";
var L_SUBMIT_TEXT = "Submit";
var L_RESET_TEXT = "Reset";
var L_GO_TEXT = "Go";
var L_TRACK_TEXT = "You can track this error report by clicking the Track this error report link. If you choose to track your error report, you will be notified of resolutions to this problem as they are identified.";
var L_RESEARCHING_TEXT =" Error is being researched Thank you for submitting an error report to Windows Online Crash Analysis. Unfortunately, we cannot provide you with specific information about how to resolve this problem at this time. The information that you and other users submit will be used to investigate this problem. Analysis This error is currently being researched. Getting Help If this problem occurred after you installed a new hardware device or software on your system, try one of the following:
For more information, see Product Support Services on the Microsoft Web site. "; // Local boolean values var bFromStatusPage = false; //did we get here from the status page var g_bDisplaySurvey = false; //display the survey? var g_bDisplayReproSteps = false; //display the comments? //local data structures holding the important stuff var CustomFields = { "CONTACT" : "CompanyName", "MODULE" : "ModuleName", "PRODUCT" : "ProductName", "PHONE" : "CompanyMainPhone", "URL" : "CompanyWebSite", "CONTACTNOURL" : "CompanyName" }; var ContactFields = { "CompanyName" : L_CONTACT_COMPANY_NAME_TEXT, "CompanyAddress1" : L_CONTACT_COMPANY_ADDRESS_TEXT + "", "CompanyAddress2" : L_CONTACT_COMPANY_ADDRESS2_TEXT, "CompanyCity" : L_CONTACT_COMPANY_CITY_TEXT, "CompanyState" : L_CONTACT_COMPANY_STATE_TEXT, "CompanyZip" : L_CONTACT_COMPANY_ZIP_TEXT, "CompanyMainPhone" : L_CONTACT_COMPANY_PHONE_TEXT, "CompanySupportPhone" : L_CONTACT_COMPANY_SUPPORTPHONE_TEXT, "CompanyFax" : L_CONTACT_COMPANY_FAX_TEXT, "CompanyWebSite" : L_CONTACT_COMPANY_WEBSITE_TEXT }; if ( !fnGetSolution() ) { //fnPrintFailStateText( "" ); //make sure we don't let them take the survey on a crummy solution g_bDisplaySurvey = false; g_bDisplayReproSteps = false; } if ( g_bDisplaySurvey && !bFromStatusPage ) { %> <% } if ( g_bDisplayReproSteps && !bFromStatusPage ) { %> <% } /****************************************************************************************** Begin Functions ******************************************************************************************/ function fnPrintResearchingText() { Response.Write( " " + L_RESEARCHING_TEXT + " " + L_RESEARCHINGADDITIONAL_TEXT + " " ); } function fnPrintFailStateText( szAdditionalLine ) { Response.Write( "" + L_STATUSERRORMSGTITLE_TEXT + " ") Response.Write( "" + L_STATUSERRORMSG_TEXT + " ") Response.Write( szAdditionalLine ) Response.End (); } function fnGetSolution() { //var TemplateID = Request.QueryString( "TemplateID" ) //var ContactID = Request.QueryString( "ContactID" ) //var ProductID = Request.QueryString( "ProductID" ) //var ModuleID = Request.QueryString( "ModuleID" ) //var Language = Request.QueryString( "Language" ) //var KBArticles = Request.QueryString( "KBArticles" ) var KBArticles = Request.QueryString( "KBArticles" ) try { var cnSolutionDB = new Object( GetDBConnection( Application("SOLUTIONS3" ) ) ); //var spQuery = "SEP_GetSolutionData " + TemplateID + "," + ContactID + "," + ProductID + "," + ModuleID + ",'" + Language + "'" //Response.Write("spQuery: " + spQuery + " " ) var rsSolutionData = cnSolutionDB.Execute( spQuery ); if ( rsSolutionData.EOF ) { return false; } else { var szSolutionBody = fnReplaceSolutionFields ( rsSolutionData ); //TODO: Once all the templates are edited and in the right format, get rid of the // p tags around the szSolutionBody, they will be in the template. //Response.Write( " " + szSolutionBody + " \n" ); Response.Write( szSolutionBody + "\n" ); if ( String( KBArticles ).toString() == "undefined" ) var KBArticles = new String( rsSolutionData( "KBArticles" ) ) var szKBArticles = fnBuildKBArticles ( KBArticles ); if ( szKBArticles ) { Response.Write( "" + L_KBARTICLES_TEXT + " " ); //Response.Write( "" + szKBArticles + " ");
Response.Write( szKBArticles + "" ); } //Since the RS is associated with the Connection object, closing just the connection will also close the RS. //if ( cnSolutionDB.State == adStateOpen ) cnSolutionDB.Close(); } return true; } catch ( err ) { //fnPrintError( err.description, "Error in fnGetSolution" ) //Response.Write( " " + err.description + " ") return false; } } function fnPrintSurveyRow ( szText, szClass ) { Response.Write( "\t |
" + szText + " |
Linked buckets |
Bucket ID | Type |
No linked buckets available | " + BucketID + " | \n" ) Response.Write("" + rsResults("Type") + " | \n" ) rsResults.MoveNext() } } catch( err ) { //Response.Write("err: " + err.description +) //Response.Write("No linked buckets available: " + err.description + "