Advertisement
Advertisement
| 08.22.2008 at 09:52AM PDT, ID: 23670832 |
|
[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: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235: 236: 237: 238: 239: 240: 241: 242: 243: 244: 245: 246: 247: 248: 249: 250: 251: 252: 253: 254: 255: 256: 257: 258: 259: 260: 261: 262: 263: 264: 265: 266: 267: 268: 269: 270: 271: 272: 273: 274: 275: 276: 277: 278: 279: 280: 281: 282: 283: 284: 285: 286: 287: 288: 289: 290: 291: 292: 293: 294: 295: 296: 297: 298: 299: 300: 301: 302: 303: 304: 305: 306: 307: 308: 309: 310: 311: 312: 313: 314: 315: 316: 317: 318: 319: 320: 321: 322: 323: 324: 325: 326: 327: 328: 329: 330: 331: 332: 333: 334: 335: 336: 337: 338: 339: 340: 341: 342: 343: 344: 345: 346: 347: 348: 349: 350: 351: 352: 353: 354: 355: 356: 357: 358: 359: 360: 361: 362: 363: 364: 365: 366: 367: 368: 369: 370: 371: 372: 373: 374: 375: 376: 377: 378: 379: 380: 381: 382: 383: 384: 385: 386: 387: 388: 389: 390: 391: 392: 393: 394: 395: 396: 397: 398: 399: 400: 401: 402: 403: 404: 405: 406: 407: 408: 409: 410: 411: 412: 413: 414: 415: 416: 417: 418: 419: 420: 421: 422: 423: 424: 425: 426: 427: 428: 429: 430: 431: 432: 433: 434: 435: 436: 437: 438: 439: 440: 441: 442: 443: 444: 445: 446: 447: 448: 449: 450: 451: 452: 453: 454: 455: 456: 457: 458: 459: 460: 461: 462: 463: 464: 465: 466: 467: 468: 469: 470: 471: 472: 473: 474: 475: 476: 477: 478: 479: 480: 481: 482: 483: 484: 485: 486: 487: 488: 489: 490: 491: 492: 493: 494: 495: 496: 497: 498: 499: 500: 501: 502: 503: 504: 505: 506: 507: 508: 509: 510: 511: 512: 513: 514: 515: 516: 517: 518: 519: 520: 521: 522: 523: 524: 525: 526: 527: |
<%@LANGUAGE="VBSCRIPT"%>
<%Response.Clear%>
<% Response.ContentType = "application/vnd.ms-excel" %>
<%session.timeout=540 'time in minutes %>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers="1"
MM_authFailedURL="/login_failed.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<!--#include virtual="/Connections/aed_1.asp" -->
<%
Dim rsUser__MMColParam
rsUser__MMColParam = "1"
If (Session("MM_username") <> "") Then
rsUser__MMColParam = Session("MM_username")
End If
%>
<%
Dim rsUser
Dim rsUser_cmd
Dim rsUser_numRows
Set rsUser_cmd = Server.CreateObject ("ADODB.Command")
rsUser_cmd.ActiveConnection = MM_aed_1_STRING
rsUser_cmd.CommandText = "SELECT * FROM login WHERE user_name = ?"
rsUser_cmd.Prepared = true
rsUser_cmd.Parameters.Append rsUser_cmd.CreateParameter("param1", 200, 1, 255, rsUser__MMColParam) ' adVarChar
Set rsUser = rsUser_cmd.Execute
rsUser_numRows = 0
%>
<%
Dim rs_contact__date1
rs_contact__date1 = "1"
If (Request.QueryString("date1") <> "") Then
rs_contact__date1 = Request.QueryString("date1")
End If
%>
<%
Dim rs_contact__date2
rs_contact__date2 = "1"
If (Request.QueryString("date2") <> "") Then
rs_contact__date2 = Request.QueryString("date2")
End If
%>
<%
Dim rs_contact__exp
rs_contact__exp = "1"
If (Request.QueryString("exp") <> "") Then
rs_contact__exp = Request.QueryString("exp")
End If
%>
<%
Dim rs_contact
Dim rs_contact_cmd
Dim rs_contact_numRows
Set rs_contact_cmd = Server.CreateObject ("ADODB.Command")
rs_contact_cmd.ActiveConnection = MM_aed_1_STRING
rs_contact_cmd.CommandText = "SELECT DISTINCT (AED_Master.ACT_no) AS Expr1, Client.ACT_no, * FROM ((ACT_Master RIGHT JOIN Client ON ACT_Master.ACT_No=Client.ACT_no) INNER JOIN AED_master ON Client.ACT_no=AED_master.ACT_No) INNER JOIN Models ON AED_master.Model_ID=Models.Model_ID WHERE " & Recordset1__exp & " >= ? AND " & Recordset1__exp & " <= ?;"
rs_contact_cmd.Prepared = true
rs_contact_cmd.Parameters.Append rs_contact_cmd.CreateParameter("param1", 200, 1, 255, rs_contact__date1) ' adVarChar
rs_contact_cmd.Parameters.Append rs_contact_cmd.CreateParameter("param2", 135, 1, -1, rs_contact__date2) ' adDBTimeStamp
rs_contact_cmd.Parameters.Append rs_contact_cmd.CreateParameter("param3", 200, 1, 255, rs_contact__exp) ' adVarChar
Set rs_contact = rs_contact_cmd.Execute
rs_contact_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
rs_contact_numRows = rs_contact_numRows + Repeat1__numRows
%>
<%
Dim MM_paramName
%>
<%
' *** Recordset Stats, Move To Record, and Go To Record: declare stats variables
Dim rs_contact_total
Dim rs_contact_first
Dim rs_contact_last
' set the record count
rs_contact_total = rs_contact.RecordCount
' set the number of rows displayed on this page
If (rs_contact_numRows < 0) Then
rs_contact_numRows = rs_contact_total
Elseif (rs_contact_numRows = 0) Then
rs_contact_numRows = 1
End If
' set the first and last displayed record
rs_contact_first = 1
rs_contact_last = rs_contact_first + rs_contact_numRows - 1
' if we have the correct record count, check the other stats
If (rs_contact_total <> -1) Then
If (rs_contact_first > rs_contact_total) Then
rs_contact_first = rs_contact_total
End If
If (rs_contact_last > rs_contact_total) Then
rs_contact_last = rs_contact_total
End If
If (rs_contact_numRows > rs_contact_total) Then
rs_contact_numRows = rs_contact_total
End If
End If
%>
<%
' *** Recordset Stats: if we don't know the record count, manually count them
If (rs_contact_total = -1) Then
' count the total records by iterating through the recordset
rs_contact_total=0
While (Not rs_contact.EOF)
rs_contact_total = rs_contact_total + 1
rs_contact.MoveNext
Wend
' reset the cursor to the beginning
If (rs_contact.CursorType > 0) Then
rs_contact.MoveFirst
Else
rs_contact.Requery
End If
' set the number of rows displayed on this page
If (rs_contact_numRows < 0 Or rs_contact_numRows > rs_contact_total) Then
rs_contact_numRows = rs_contact_total
End If
' set the first and last displayed record
rs_contact_first = 1
rs_contact_last = rs_contact_first + rs_contact_numRows - 1
If (rs_contact_first > rs_contact_total) Then
rs_contact_first = rs_contact_total
End If
If (rs_contact_last > rs_contact_total) Then
rs_contact_last = rs_contact_total
End If
End If
%>
<%
' *** Move To Record and Go To Record: declare variables
Dim MM_rs
Dim MM_rsCount
Dim MM_size
Dim MM_uniqueCol
Dim MM_offset
Dim MM_atTotal
Dim MM_paramIsDefined
Dim MM_param
Dim MM_index
Set MM_rs = rs_contact
MM_rsCount = rs_contact_total
MM_size = rs_contact_numRows
MM_uniqueCol = ""
MM_paramName = ""
MM_offset = 0
MM_atTotal = false
MM_paramIsDefined = false
If (MM_paramName <> "") Then
MM_paramIsDefined = (Request.QueryString(MM_paramName) <> "")
End If
%>
<%
' *** Move To Record: handle 'index' or 'offset' parameter
if (Not MM_paramIsDefined And MM_rsCount <> 0) then
' use index parameter if defined, otherwise use offset parameter
MM_param = Request.QueryString("index")
If (MM_param = "") Then
MM_param = Request.QueryString("offset")
End If
If (MM_param <> "") Then
MM_offset = Int(MM_param)
End If
' if we have a record count, check if we are past the end of the recordset
If (MM_rsCount <> -1) Then
If (MM_offset >= MM_rsCount Or MM_offset = -1) Then ' past end or move last
If ((MM_rsCount Mod MM_size) > 0) Then ' last page not a full repeat region
MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
Else
MM_offset = MM_rsCount - MM_size
End If
End If
End If
' move the cursor to the selected record
MM_index = 0
While ((Not MM_rs.EOF) And (MM_index < MM_offset Or MM_offset = -1))
MM_rs.MoveNext
MM_index = MM_index + 1
Wend
If (MM_rs.EOF) Then
MM_offset = MM_index ' set MM_offset to the last possible record
End If
End If
%>
<%
' *** Move To Record: if we dont know the record count, check the display range
If (MM_rsCount = -1) Then
' walk to the end of the display range for this page
MM_index = MM_offset
While (Not MM_rs.EOF And (MM_size < 0 Or MM_index < MM_offset + MM_size))
MM_rs.MoveNext
MM_index = MM_index + 1
Wend
' if we walked off the end of the recordset, set MM_rsCount and MM_size
If (MM_rs.EOF) Then
MM_rsCount = MM_index
If (MM_size < 0 Or MM_size > MM_rsCount) Then
MM_size = MM_rsCount
End If
End If
' if we walked off the end, set the offset based on page size
If (MM_rs.EOF And Not MM_paramIsDefined) Then
If (MM_offset > MM_rsCount - MM_size Or MM_offset = -1) Then
If ((MM_rsCount Mod MM_size) > 0) Then
MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
Else
MM_offset = MM_rsCount - MM_size
End If
End If
End If
' reset the cursor to the beginning
If (MM_rs.CursorType > 0) Then
MM_rs.MoveFirst
Else
MM_rs.Requery
End If
' move the cursor to the selected record
MM_index = 0
While (Not MM_rs.EOF And MM_index < MM_offset)
MM_rs.MoveNext
MM_index = MM_index + 1
Wend
End If
%>
<%
' *** Move To Record: update recordset stats
' set the first and last displayed record
rs_contact_first = MM_offset + 1
rs_contact_last = MM_offset + MM_size
If (MM_rsCount <> -1) Then
If (rs_contact_first > MM_rsCount) Then
rs_contact_first = MM_rsCount
End If
If (rs_contact_last > MM_rsCount) Then
rs_contact_last = MM_rsCount
End If
End If
' set the boolean used by hide region to check if we are on the last record
MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth
Dim MM_removeList
Dim MM_item
Dim MM_nextItem
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If
MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<%
' *** Move To Record: set the strings for the first, last, next, and previous links
Dim MM_keepMove
Dim MM_moveParam
Dim MM_moveFirst
Dim MM_moveLast
Dim MM_moveNext
Dim MM_movePrev
Dim MM_urlStr
Dim MM_paramList
Dim MM_paramIndex
Dim MM_nextParam
MM_keepMove = MM_keepBoth
MM_moveParam = "index"
' if the page has a repeated region, remove 'offset' from the maintained parameters
If (MM_size > 1) Then
MM_moveParam = "offset"
If (MM_keepMove <> "") Then
MM_paramList = Split(MM_keepMove, "&")
MM_keepMove = ""
For MM_paramIndex = 0 To UBound(MM_paramList)
MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1)
If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex)
End If
Next
If (MM_keepMove <> "") Then
MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
End If
End If
End If
' set the strings for the move to links
If (MM_keepMove <> "") Then
MM_keepMove = Server.HTMLEncode(MM_keepMove) & "&"
End If
MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="
MM_moveFirst = MM_urlStr & "0"
MM_moveLast = MM_urlStr & "-1"
MM_moveNext = MM_urlStr & CStr(MM_offset + MM_size)
If (MM_offset - MM_size < 0) Then
MM_movePrev = MM_urlStr & "0"
Else
MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
End If
%>
<%session.timeout=540 'time in minutes %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HeartAED Intranet Home</title>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<link href="/CSS/main.css" rel="stylesheet" type="text/css">
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="../includes/datetimepicker.js" type="text/javascript"></script>
<style type="text/css">
<!--
#apDiv4 {
position:absolute;
width:auto;
height:auto;
z-index:1;
left: 168px;
top: 200px;
}
#apDiv3 {
position:absolute;
width:595px;
height:251px;
z-index:1;
left: 346px;
top: auto;
overflow: scroll;
}
#apDiv5 {
position:absolute;
width:200px;
height:115px;
z-index:12;
left: 706px;
top: 70px;
}
#apDiv6 {
position:absolute;
width:auto;
height:auto;
z-index:2;
left: 281px;
top: 272px;
}
.style1 {
font-size: 9px;
font-weight: bold;
font-family: "ITC Avant Garde", "ITC Avant Garde Demi";
}
.style2 {
font-size: 24px
}
#apDiv7 {
position:absolute;
width:auto;
height:auto;
z-index:3;
left: 193px;
top: 199px;
}
-->
</style>
</head>
<body>
<p class="date">
Report Generated on <%
response.Write(Date) %> By: <%=(rsUser.Fields.Item("user_first").Value)%><br>
</p>
<span class="results_total"><%=(rs_contact_total)%> Found</span>
<table border="1">
<tr>
<td width="290"><strong>Client</strong></td>
<td width="268"><strong>Address</strong></td>
<td width="86"><strong>City</strong></td>
<td width="35"><strong>State</strong></td>
<td width="72"><strong>Zip</strong></td>
<td width="113"><strong>AED Model</strong></td>
<td width="105"><strong>Adult Pads</strong></td>
<td width="100"><strong>Battery</strong></td>
<td width="78"><strong>Ped Pads</strong></td>
</tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT rs_contact.EOF))
%><tr>
<td height="23" class="body_text"><%=(rs_contact.Fields.Item("Client.Client").Value)%> </td>
<td class="body_text"><%=(rs_contact.Fields.Item("Client.Address").Value)%></td>
<td class="body_text"><%=(rs_contact.Fields.Item("Client.City").Value)%></td>
<td class="body_text"><%=(rs_contact.Fields.Item("Client.State").Value)%></td>
<td class="body_text"><%=(rs_contact.Fields.Item("Client.Zipplus").Value)%></td>
<td class="body_text"><%=(rs_contact.Fields.Item("Model").Value)%></td>
<td class="body_text"><%=(rs_contact.Fields.Item("Adult_Pads").Value)%></td>
<td class="body_text"><%=(rs_contact.Fields.Item("Battery").Value)%></td>
<td class="body_text"><%=(rs_contact.Fields.Item("Ped_Pads").Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rs_contact.MoveNext()
Wend
%></table>
</div>
</body>
</html>
<%
rsUser.Close()
Set rsUser = Nothing
%>
<%
rs_contact.Close()
Set rs_contact = Nothing
%>
|