Subversion Repositories DevTools

Rev

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

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|                                  ADMIN Page                                   |
'|                                                               |
'=====================================================
%>
<%
Option explicit
' Good idea to set when using redirect
Response.Expires = 0    ' always load the page, dont store
%>
<!--#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="sec/Crypt.asp"-->
<!--#include file="common/_form_window_common.asp"-->
<!--#include file="_action_buttons.asp"-->

<!--#include file="class/classActionButtonControl.asp"-->

<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_general.asp"-->
<%
'------------ Variable Definition -------------
Dim objBtnControl
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
Set objBtnControl = New ActionButtonControl
'----------------------------------------------
%>



<%
' Page Access Condition
If NOT objAccessControl.IsActive("ConfigureBuildService") Then
        Response.Redirect("message.asp?msg=401-9")
End If
%>
<%
Sub UpdateBuildInfo()

        On Error Resume Next
        OraDatabase.Parameters.Add "DATABASE_SERVER",                   Request("database server"),     ORAPARM_INPUT, ORATYPE_VARCHAR2 
        OraDatabase.Parameters.Add "ARCHIVE_SERVER",                    Request("archive server"),      ORAPARM_INPUT, ORATYPE_VARCHAR2 
        OraDatabase.Parameters.Add "MAIL_SERVER",                               Request("mail server"),         ORAPARM_INPUT, ORATYPE_VARCHAR2
        OraDatabase.Parameters.Add "BUILD_FAILURE_MAIL_SENDER", Request("build failure mail sender"),   ORAPARM_INPUT, ORATYPE_VARCHAR2 
        
        objEH.TryORA ( OraSession )
        
        OraDatabase.ExecuteSQL _
        "BEGIN PK_BUILDAPI.Update_Build_Service_Info ( :DATABASE_SERVER, :ARCHIVE_SERVER, :MAIL_SERVER, :BUILD_FAILURE_MAIL_SENDER ); END;"     
        
        objEH.CatchORA ( OraSession )

        OraDatabase.Parameters.Remove "DATABASE_SERVER"
        OraDatabase.Parameters.Remove "ARCHIVE_SERVER"
        OraDatabase.Parameters.Remove "MAIL_SERVER"
        OraDatabase.Parameters.Remove "BUILD_FAILURE_MAIL_SENDER"
End Sub
%>
<%
If Request("action") = "true" Then
        Call UpdateBuildInfo()
        If objEH.Finally Then
                Response.Redirect("admin.asp")
        End If
End If
%>
<html>
<head>

<title>Buid Service Administration</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>
<!-- DROPDOWN MENUS -->
<!--#include file="_menu_def.asp"-->
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
<!-- MENU LAYERS -------------------------------------->
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
</div>
<!-- TIPS LAYERS -------------------------------------->
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
<!-- HEADER -->
<!--#include file="_header.asp"-->

  <%
  '-- FROM START ---------------------------------------------------------------------------------------------------------
  objFormComponent.FormName = "UpdateBuildServiceConfig"
  objFormComponent.Action = ScriptName
  objFormComponent.OnSubmit = "ShowProgress();"
  Call objFormComponent.FormStart()
  %>   
  <tr>
    <td background="images/bg_login.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><%=ProgressBar%></td>
        <td align="right">&nbsp;          </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%"  border="0" cellpadding="0" cellspacing="2" bgcolor="#FFCC00">
          <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->  
          <%If NOT objEH.Finally Then%>
      <tr>
        <td class="form_iname">&nbsp;</td>
        <td>
                 <%objEH.DisplayMessage()%>
                </td>
        <td class="val_err"></td>
      </tr>
          <%End If%>
          <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
      <tr>
        <td nowrap class="form_iname" valign="top"><b>BUILD SERVICE</b></td>
        <td valign="top"></td>
                <td nowrap class="form_iname" valign="top"><b>CONFIGURATION</b></td>
      </tr>
          <%
          Dim rsQry, query
          
          query = "SELECT * FROM BUILD_SERVICE_CONFIG"

          Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
          
          
        
         While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
         %>
        <tr>
                <td nowrap class="form_iname" valign="top"><%=rsQry("service")%></td>
        <td valign="top"></td>
                <td valign="top"><%=objFormComponent.TextBox (rsQry("service"), rsQry("config"), "size='30' class='form_ivalue'" )%></td>
    </tr>
        <%
                rsQry.MoveNext()        
         Wend

         rsQry.Close()

         Set rsQry = Nothing 

          %>
      <tr>
        <td class="form_iname">&nbsp;</td>
        <td>&nbsp;</td>
        <td class="val_err"><input name="btn" type="submit" class="form_btn" value="Update">
      </tr>
    </table></td>
  </tr>
  <%=objPMod.ComposeHiddenTags()%>
    <input type="hidden" name="action" value="true">
    <%
  Call objFormComponent.FormEnd()
  '-- FROM END ----------------------------------------------------------------------------------------------------------------
%>
  <%
  '-- FROM START ---------------------------------------------------------------------------------------------------------
  objFormComponent.FormName = "GBE_MACHTYPE"
  objFormComponent.Action = ScriptName
  objFormComponent.OnSubmit = "ShowProgress();"
  Call objFormComponent.FormStart()
  %>   
<table width="50%"  border="0" cellspacing="10" cellpadding="0" >

<div align="left" class=" body_col">
Current List of GBE_MACHTYPE
</div>
      <tr>
          <td></td>
                <!-- GBE_MACHTYPE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">GBE_MACHTYPE VALUE</td>
                        <td align="left" nowrap background="images/bg_table_col.gif" class="body_col"></td>
                        
    </tr>

                  <%
                  ' Load some action buttons
                  Call objBtnControl.LoadActionButtons ( Array("btnEditGBE_Machtype", "btnDeleteGBE_Machtype"), OraDatabase )
                  objBtnControl.ButtonSpacer = 1
                  
                  Dim gbe_id, gbe_value
                  
                  Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM GBE_MACHTYPE ORDER BY GBE_ID", ORADYN_DEFAULT )
                  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
                  gbe_id = rsQry("gbe_id")
                  gbe_value = rsQry("gbe_value")
                  %>
          <tr>  
                        <td align="left" valign="top" class="body_txt"></td>
                <td align="left" valign="top" class="body_txt"><%=gbe_value%></td>
                        <td align="left" valign="top" class="body_txt"><%Call objBtnControl.Render  ( Array("btnEditGBE_Machtype", "btnDeleteGBE_Machtype"), objAccessControl )%></td>
                  </tr> 
                  <%
                  rsQry.MoveNext()
                  %>
                  <tr>
            <td colspan="6" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
          </tr>
                  <%
                  Wend
                  rsQry.Close()
                  Set rsQry = nothing
                  %>
                
      <tr>
        <td class="form_iname">&nbsp;</td>
        
        <td class="val_err"><a href=""><%Call Action_Buttons ( "Add GBE_MACHTYPE" )%> </a>
                <td>&nbsp;</td>
      </tr>

</table>        
  <%=objPMod.ComposeHiddenTags()%>
    <input type="hidden" name="action" value="true">
    <%
  Call objFormComponent.FormEnd()
  '-- FROM END ----------------------------------------------------------------------------------------------------------------
%>

</body>
</html>
<!-- FOOTER -->
<!--#include file="_footer.asp"-->
<%
Call Destroy_All_Objects
%>