<%@ Language=VBScript %> <% '***************************************************** ' File Name: edit_issue_admin.asp ' Purpose: shows issue information for editing ' Developer: Brian Kane/John Yu ' Create Date: February 5, 1999 ' Revisions: '***************************************************** 'declare variables Dim iFilter 'error code for returning filtered user recordset Dim rsUsers 'recordset of users in filter Dim rsIssue 'recordset of issue Dim rsIssueUser 'recordset of user info for user associated with issue Dim rsComments 'recordset of comments associated with issue Dim iErrIssue 'error message integer for issue Dim iErrComments 'error message integer for comments Dim iErrUser 'error message integer for user info 'call functions 'if admin is doing text filter search for user... If Request("TextFilter") <> "" Then NarrowSearch() End If 'page is called with IssueID querystring. get 'all pertinent issue, comment, and user info 'for this issue... If Request("IssueID") <> "" Then FetchIssue(CInt(Request("IssueID"))) FetchComments(CInt(Request("IssueID"))) FetchUser(rsIssue("HDUserSSN")) End If '******************************************************* ' Function: NarrowSearch ' Purpose: selects users from CSA table based on ' last name, first name characters entered ' in form ' Inputs: search string ' Returns: recordset of applicable users '******************************************************* Function NarrowSearch() Set rsUsers = Server.CreateObject("ADODB.Recordset") iFilter = oIT.GetUsersFilter(rsUsers,CStr(Replace(Request("TextFilter"),"'","''"))) End Function '***************************************************** ' Function: FetchIssue ' Purpose: gets issue recordset for viewing ' Inputs: IssueID ' Returns: passes recordset '***************************************************** Function FetchIssue(iIssueID) Set rsIssue = Server.CreateObject("ADODB.Recordset") iErrIssue = oIT.GetIssues(rsIssue,iIssueID) If iErrIssue < 0 Then Response.Redirect("error.asp?Message=IssueIDNonExistent") End If End Function '***************************************************** ' Function: FetchComments ' Purpose: gets comments recordset for viewing ' Inputs: IssueID ' Returns: passes recordset '***************************************************** Function FetchComments(iIssueID) Set rsComments = Server.CreateObject("ADODB.Recordset") iErrComments = oIT.ListComments(rsComments,iIssueID) End Function '***************************************************** ' Function: FetchUser ' Purpose: gets user recordset for viewing ' Inputs: User SSN ' Returns: passes recordset '***************************************************** Function FetchUser(vUserSSN) Set rsIssueUser = Server.CreateObject("ADODB.Recordset") iErrUser = oIT.GetUser(rsIssueUser,vUserSSN) End Function '************************************************************** ' Function: SetDropdown ' Purpose: to set the dropdown value with recordset value, ' if the recordset exists ' Inputs: recordset field ' Returns: nothing '************************************************************** Function SetDropdown(item) If IsObject(rsIssue) Then If Not isNull(rsIssue(item)) Then SetDropdown = rsIssue(item) Else SetDropdown = 0 End If End If End Function %> Issue Tracker - Edit Issues
" method="post"> Search: "" Then %> value="<%= Request("TextFilter") %>"<% End If %> size="10" class="TextBox">
" method="post" id=form1 name=form1 target="frmUpdateIssue" >
User Info:

Issue Detail
Issue Name:
" maxlength=30 style="HEIGHT: 19px; LEFT: 125px; POSITION: absolute; TOP: 70px; WIDTH: 190px"> 
Issue Description:
Affected System:
Priority:
Critical
checked<% End If %> type="radio" id="PriorityID" name="PriorityID" value=1 style="HEIGHT: 20px; LEFT: 320px; POSITION: absolute; TOP: 148px; WIDTH: 20px">
High
checked<% End If %> type="radio" id="PriorityID" name="PriorityID" value=2 style="HEIGHT: 20px; LEFT: 369px; POSITION: absolute; TOP: 148px; WIDTH: 20px">
Normal
checked<% End If %> type="radio" id="PriorityID" name="PriorityID" value=3 style="HEIGHT: 20px; LEFT: 434px; POSITION: absolute; TOP: 148px; WIDTH: 20px">
Location:
Functional Group:

Target Close Date:
" style="HEIGHT: 20px; LEFT: 125px; POSITION: absolute; TOP: 205px; WIDTH: 75px" class="TextBox" size="19">
Actual Close Date:
" style="HEIGHT: 20px; LEFT: 320px; POSITION: absolute; TOP: 205px; WIDTH: 75px" class="TextBox" size="19">
Owner:
Issue Type:
Issue Status:
LOE:
" style="HEIGHT: 19px; LEFT: 125px; POSITION: absolute; TOP: 274px; WIDTH: 98px" class="TextBox">
Issue Category:
Comment History:
<% If Not rsComments.EOF Then %> <% Else %> <% End If %> <% Do While Not rsComments.EOF %> <% rsComments.MoveNext Loop %>
Date CommentNo comments for this issue.
<%= dateValue(rsComments("CommentDate")) %>
)" style="COLOR: navy; CURSOR: hand;"> <%= rsComments("Comment") %>

)" type="button" value="Add Comment" id=button3 name=button3 class=TrackerBtnsWide>

Resolution Comments:

)" type="button" value="Print" id="Print" name="Print" class="TrackerBtns">
<% 'close recordsets and release their objects If Request("TextFilter") <> "" Then rsUsers.Close Set rsUsers = Nothing End If If Request("IssueID") <> "" Then rsIssue.Close Set rsIssue = Nothing rsIssueUser.Close Set rsIssueUser = Nothing rsComments.Close Set rsComments = Nothing End If %>