Advertisement
| 07.16.2008 at 09:35AM PDT, ID: 23570335 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: |
Call CheckRep(cnnDB, sid)
Dim blnSubmitNew, strSubmitResults
If Cint(Request.Form("save")) = 1 Then
blnSubmitNew = True
Else
blnSubmitNew = False
End If
' ==============================================
' Save problem
If blnSubmitNew Then
' Get the information from the form fields
Dim uid, uemail, uphone, ulocation, category, department, title, description
Dim priority, status, rep, time_spent, solution, entered_by, uselectid, kb
uselectid = Request.Form("uselectid")
uid = Request.Form("uid")
uemail = Request.Form("uemail")
uphone = Request.Form("uphone")
ulocation = Request.Form("ulocation")
category = Cint(Request.Form("category"))
department = Request.Form("department")
title = Request.Form("title")
description = Request.Form("description")
priority = Cint(Request.Form("priority"))
status = Cint(Request.Form("status"))
rep = Cint(Request.Form("rep"))
time_spent = Cint(Request.Form("time_spent"))
solution = Request.Form("solution")
If Request.Form("kb") = "on" Then
kb = 1
Else
kb = 0
End If
' Check for required fields (uemail, category, department, title, description)
If uselectid <> 0 then
uid = usr(cnnDB, uselectid, "uid")
uemail = usr(cnnDB, uselectid, "email1")
uphone = usr(cnnDB, uselectid, "phone")
ulocation = usr(cnnDB, uselectid, "location1")
department = usr(cnnDB, uselectid, "department")
Else
If Len(uid)=0 Then
Call DisplayError(1, lang(cnnDB, "UserName"))
End if
if uemail = Cfg(cnnDB, "BaseEmail") Then
Call DisplayError(1, lang(cnnDB, "EMailAddress"))
End if
End If
if category = 0 Then
Call DisplayError(1, lang(cnnDB, "Category"))
End if
if (department = 0) And (uselectid = 0) Then
Call DisplayError(1, lang(cnnDB, "Department"))
End if
if Len(title)=0 Then
Call DisplayError(1, lang(cnnDB, "Title"))
Elseif Len(title) > 50 Then
title = Trim(title)
title = Left(title, 50)
End if
if Len(description)=0 Then
Call DisplayError(1, lang(cnnDB, "Description"))
End if
if (status=Cfg(cnnDB, "CloseStatus")) and (Len(solution)=0) Then
Call DisplayError(1, lang(cnnDB, "Solution"))
End if
' Get missing variables to enter problem
Dim id
Dim dname, depRes
Set depRes = SQLQuery(cnnDB, "SELECT dname FROM departments WHERE department_id=" & Request.Form("department"))
dname = depRes("dname")
Dim cname, catRes
Set catRes = SQLQuery(cnnDB, "SELECT cname, rep_id FROM categories WHERE category_id=" & Request.Form("category"))
cname = catRes("cname")
entered_by = sid
' Get the problem ID number then immediately update it
id = GetUnique(cnnDB, "problems")
' Convert strings to valid SQL strings
On Error Resume Next
uphone = Replace(uphone,"'","''")
ulocation = Replace(ulocation,"'","''")
title = Replace(title,"'","''")
description = Replace(description,"'","''")
solution = Replace(solution,"'","''")
On Error Goto 0
' All data is present
' Write problem into database
Dim probStr
' If status is closed, then include the closed date/time
If status = Cfg(cnnDB, "CloseStatus") Then
probStr = "INSERT INTO problems (id, uid, uemail, uphone, ulocation, " & _
"category, department, title, description, priority, status, start_date, rep, time_spent, " & _
"close_date, entered_by, solution, kb) " & _
"VALUES (" & id & ",'" & uid & "','" & uemail & "','" & uphone & "','" & _
ulocation & "'," & category & "," & department & ",'" & title & "','" & _
description & "'," & priority & "," & status & "," & SQLDate(Now, lhdAddSQLDelim) & "," & rep & "," & time_spent & _
"," & SQLDate(Now, lhdAddSQLDelim) & "," & entered_by & ",'" & solution & "', " & kb & ")"
Else
probStr = "INSERT INTO problems (id, uid, uemail, uphone, ulocation, " & _
"category, department, title, description, priority, status, start_date, rep, time_spent, " & _
"entered_by, solution, kb) " & _
"VALUES (" & id & ",'" & uid & "','" & uemail & "','" & uphone & "','" & _
ulocation & "'," & category & "," & department & ",'" & title & "','" & _
description & "'," & priority & "," & status & "," & SQLDate(Now, lhdAddSQLDelim) & "," & rep & "," & time_spent & _
"," & entered_by & ",'" & solution & "'," & kb & ")"
End If
|
Advertisement