Subversion Repositories DevTools

Rev

Rev 129 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
Option explicit
Response.Expires = 0   ' always load the page, dont store
%>
<%
'=====================================================
'               Add Code Review URL
'=====================================================
%>
<!--#include file="common/conf.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/formating.asp"-->
<!--#include file="common/qstr.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/common_dbedit.asp"-->
<!--#include file="common/_popup_window_common.asp"-->
<%
' Set rfile parameter. This is a return page after Login
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_login.asp"-->
<!--#include file="_access_control_general.asp"-->
<!--#include file="_access_control_project.asp"-->
<%
'------------ Variable Definition -------------
Dim parPv_id
Dim parCr_id
Dim rsQry
Dim pkgName
Dim pkgVersion
Dim baseURL
Dim codeReviewURL
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
parPv_id = Request("pv_id")
parRtag_id = Request("rtag_id")
'----------------------------------------------
%>
<%
'-----------------------------------------------------------------------------------------------------------------------------------
Sub AddCodeReviewURL ( nPv_id, nProj_id, sURL, sReason, dDateOfReview )

   OraDatabase.Parameters.Add "PV_ID",           nPv_id,         ORAPARM_INPUT,  ORATYPE_NUMBER
   OraDatabase.Parameters.Add "PROJ_ID",         nProj_id,       ORAPARM_INPUT,    ORATYPE_NUMBER
   OraDatabase.Parameters.Add "URL",             sURL,           ORAPARM_INPUT,    ORATYPE_VARCHAR2
   OraDatabase.Parameters.Add "REASON",          sReason,        ORAPARM_INPUT,    ORATYPE_VARCHAR2
   OraDatabase.Parameters.Add "DATE_OF_REVIEW",  dDateOfReview,  ORAPARM_INPUT,    ORATYPE_DATE

   objEH.TryORA ( OraSession )
   On Error Resume Next

   OraDatabase.ExecuteSQL _
   "BEGIN PK_PACKAGE.ADD_CODE_REVIEW_URL ( :PV_ID, :PROJ_ID, :URL, :REASON, :DATE_OF_REVIEW );  END;"

   objEH.CatchORA ( OraSession )

   OraDatabase.Parameters.Remove "PV_ID"
   OraDatabase.Parameters.Remove "PROJ_ID"
   OraDatabase.Parameters.Remove "URL"
   OraDatabase.Parameters.Remove "REASON"
   OraDatabase.Parameters.Remove "DATE_OF_REVIEW"

End Sub
'-----------------------------------------------------------------------------------------------------------------------------------
%>
<%
'------------ Action Requirements -------------------
'Process submition
baseURL = Get_Base_URL(Get_Proj_ID(parRtag_id))
If CBool(Request("action")) AND objAccessControl.UserLogedIn Then
  If ValidateCodeReviewURL (Request("code_review_url")) Then
    Call AddCodeReviewURL ( parPv_id, Get_Proj_ID(parRtag_id), codeReviewURL, Request("reason"), Request("date_of_review") )
     Call OpenInParentWindow ("fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id)
     Call CloseWindow
   End If

End If
Call Get_Pkg_Short_Info(  parPv_id, NULL, pkgName, pkgVersion, NULL, NULL, NULL )
%>
<html>
  <head>
    <title>Release Manager</title>
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
      <link rel="stylesheet" href="images/navigation.css" type="text/css">
        <script language="JavaScript" src="images/common.js"></script>
        <!--  TIPS  -->
        <script language="JavaScript" src="images/tipster.js"></script>
        <script language="JavaScript" src="images/_help_tips.js"></script>
  </head>
  <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
    <!-- TIPS LAYERS -------------------------------------->
    <div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
    <!----------------------------------------------------->
    <form action="_wform_add_code_review_url.asp" method="post" name="codereview" onsubmit="MM_validateForm('date_of_review','Date of Review','RisDate','code_review_url','Code Review URL','RmaxLength:4000','reason','Reason for Review','maxLength:4000');return document.MM_returnValue;">
      <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
        <tr>
          <td width="1%" background="images/lbox_bg_orange.gif"><img src="images/s_code_review_off.gif" width="21" height="23" hspace="5" border="0"></td>
          <td width="50%" background="images/lbox_bg_blue.gif" nowrap class="wform_ttl">&nbsp;Code Review URL for
            <%=pkgName%>
            &nbsp;<%=pkgVersion%>
          </td>
          <td width="50%" background="images/lbox_bg_blue.gif" align="right" nowrap class="wform_ttl">
            <input type="submit" name="btn" value="Save" class="form_btn"> <input type="reset" name="btn" value="Close" class="form_btn" onclick="self.close()">
          </td>
          <td background="images/lbox_bg_blue.gif" align="right" width="1%" nowrap><img src="images/h_trsp_dot.gif" width="5" height="22"></td>
        </tr>
        <tr>
          <td height="100%" width="1%">&nbsp;</td>
          <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
            <br>
            <br>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
                <td width="100%">
                  <table width="100%" border="0" cellspacing="1" cellpadding="4">
                    <tr>
                      <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Date of Review</td>
                      <td nowrap background="images/bg_form_lightbluedark.gif" class="form_item"  width="100%">
                        <input name="date_of_review" type="text" size="20" maxlength="20" class="form_item" value='<%=EuroDate( Date )%>'>&nbsp;&nbsp;&nbsp;</td>
                    </tr>
                    <tr>
                      <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Code Review URL</td>
                      <td nowrap background="images/bg_form_lightbluedark.gif" class="form_item" width="100%">
                        <input name="code_review_url" type="text" size="120" maxlength="200" class="form_item" value='<%=baseURL%>'>
                      </td>
                    </tr>
                    <tr>
                      <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Reason for Review</td>
                      <td nowrap background="images/bg_form_lightbluedark.gif" class="form_item" width="100%">
                        <input name="reason" type="text" size="120" maxlength="200" class="form_item">
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <input type="hidden" name="action" value="true">
            <input type="hidden" name="pv_id" value="<%=parPv_id%>">
            <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
            <br>
           <br>
          </td>
        </tr>
        <tr>
          <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
          <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
        </tr>
      </table>
    </form>
  </body>
</html>
<!-- DESTRUCTOR ------->
<!--#include file="common/destructor.asp"-->