Subversion Repositories DevTools

Rev

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

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|                                OSDefault                                              |
'|                                                   |
'=====================================================
%>
<%
Option explicit
Response.Expires = 0
%>
<!--#include file="common/globals.asp"-->
<!--#include file="common/config.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/_os_common.asp"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_general.asp"-->
<%
'------------ VARIABLE DEFINITION -------------
Dim rsQry
Dim selected, nodeSpec
Dim parHold_selection
Dim ProdId
Dim ProdName
Dim ProdVersion
'------------ CONSTANTS DECLARATION -----------
'------------ VARIABLE INIT -------------------
parHold_selection = Request("hold_selection")
'------------ CONDITIONS ----------------------
'----------------------------------------------
%>
<%
'------------ RUN BEFORE PAGE RENDER ----------
If (Request("action") <> "") Then
        '-- Select Action
        
        Select Case Request("action")
                Case "btnMoveUpProd"
                        Call OpenInWindow ( "_ShiftBulkProducts.asp?prod_id_list="& Request("prod_id_list") &"&shift_dir="& Server.URLEncode("-") &"&action=true&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
                Case "btnMoveDownProd"
                        Call OpenInWindow ( "_ShiftBulkProducts.asp?prod_id_list="& Request("prod_id_list") &"&shift_dir="& Server.URLEncode("+") &"&action=true&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
                Case "btnAcceptRejectProd"
                        Call OpenInWindow ( "_AcceptRejectProd.asp?prod_id_list="& Request("prod_id_list") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
                Case "btnCopyProd"
                        Call OpenInWindow ( "_CopyItems.asp?copy_type=prod_id_list&prod_id_list="& Request("prod_id_list") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
                Case "btnRemoveProdBulk"
                        Call OpenInWindow ( "_RemoveProductFromOs.asp?rfile="& SCRIPT_NAME &"&prod_id_list="& Request("prod_id_list") &"&"& objPMod.ComposeURL() )
                Case "btnIsNodeSpec"
                        Call OpenInWindow ( "_AddProductFromOs.asp?rfile="& SCRIPT_NAME &"&prod_id_list="& Request("node_spec_list") &"&"& objPMod.ComposeURL() )
                Case "btnRemoveObsoletePatches"
                        Call OpenInWindow ( "_RemoveObsoletePatches.asp?rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
                        On Error Resume Next
        
                        objEH.Try               
                        If Request("prod_id_list") <> "" Then
                                Call OpenChildWindow ("AddNewVersion","wAddNewVersion.asp?rfile="& SCRIPT_NAME &"&prod_id_list="& Request("prod_id_list") &"&"& objPMod.ComposeURL(), "600", "600", "True")                             
                        Else    
                                Err.Raise 8, "Please select a product."
                        End If                  

                        objEH.Catch     
                
        End Select
        
End If
'----------------------------------------------
%>
<html>
<head>
<title>Production Manager</title>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="scripts/common.js"></script>

</head>

<body leftmargin="0" topmargin="0">
<!-- HEADER ++++++++++++++++ -->
<!--#include file="_header.asp"-->
<!-- +++++++++++++++++++++++ -->
<!-- MAIN MENU  +  CRUMBS ++++++++++++++++ -->
<!--#include file="_main_menu.asp"-->
<!-- +++++++++++++++++++++++++++++++++++++ -->
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="1%" valign="top" background="images/bg_bage_0.gif">
        <!-- NODE BROWSER ++++++++++++++++++++++ -->
        <!--#include file="_bom_browser.asp"-->
        <!-- END OF NODE BROWSER +++++++++++++++ -->
        </td>
    <td width="1" background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="600"></td>
    <td width="100%" valign="top" bgcolor="#FFFFFF">
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <form name="FormName" method="post" action="<%=SCRIPT_NAME%>">
          <tr>
        <td valign="top" background="images/bg_green.gif"></td>
        <td align="right" valign="bottom" background="images/bg_green.gif" class="body_txtw"><%Call RenderTitle( objOsCollector )%></td>
        <td background="images/bg_green.gif"><img src="images/spacer.gif" width="10" height="20"></td>
      </tr>
      <tr>
        <td width="1%" valign="top" background="images/bg_green.gif"></td>
        <td width="100%" valign="bottom" background="images/bg_green.gif">
                <!-- TAB CONTROLS ++++++++++++++++++++++ -->
                <!--#include file="_tabs_definition.asp"-->
                <%
                Set objTabControl = New TabControl
                objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleWinXP/tab_style.html") ) ' Supply tab style definition
                objTabControl.TabStyle = "StyleWinXP"
                objTabControl.AddTabDefnition ( arrOsTabDef )
                objTabControl.Render ()
                %>
                <!-- END OF TAB CONTROLS +++++++++++++++ -->
                </td>
        <td width="1%" background="images/bg_green.gif"><img src="images/spacer.gif" width="10" height="35"></td>
        </tr>
      <tr>
        <td background="images/bg_bage_0.gif"><img src="images/spacer.gif" width="30" height="10"></td>
        <td background="images/bg_bage_0.gif">
                <!-- BUTTONS CONTROL +++++++++++++++++++ -->
                
        <td background="images/bg_green.gif"><img src="images/p_bar_corrner.gif" width="17" height="42"></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td valign="top"><%If Request.Cookies( enumCOOKIE_NAME )( "user_bar" ) = "hide" Then%><a href="<%=SCRIPT_NAME%>?user_bar=<%=enumDEFAULT%>&<%=objPMod.ComposeURL()%>"><img src="icons/b_left.gif" title="Maximize favourits" width="13" height="13" vspace="5" border="0"></a><%End If%></td>
        </tr>
    </table>
        <table width="100%"  border="0" cellspacing="10" cellpadding="0">
      <tr>
        <td>
                <!-- PAGE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
                <table width="100%"  border="0" cellspacing="3" cellpadding="0">
          <tr>
                        <td width="1" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
            <td width="1%" background="images/bg_table_border.gif"><table width="100%"  border="0" cellspacing="1" cellpadding="2">
              <tr>
                <td align="center" nowrap background="images/bg_table_col.gif" class="body_col">&nbsp;Install Order</td>
              </tr>
            </table></td>
                        <td width="10%" align="center" nowrap background="images/bg_table_col.gif" class="body_col">Product Name</td>
            <td width="10%" align="center" nowrap background="images/bg_table_col.gif" class="body_col">Version</td>
                        
                        <td width="78%" align="center" background="images/bg_table_col.gif" class="body_col">
                        <SPAN id="IMG_EXPAND_ALL" name="IMG_EXPAND_ALL" style="display:block;"><a href="javascript:;" onClick="ExpandAll(); ToggleDisplay('IMG_EXPAND_ALL','IMG_COLLAPSE_ALL');" title="Show All Installation Comments."><img src="icons/b_expand_all.gif" border="0" align="absmiddle" hspace="3"></a>Installation Comments</SPAN>
                        <SPAN id="IMG_COLLAPSE_ALL" name="IMG_COLLAPSE_ALL" style="display:none;"><a href="javascript:;" onClick="CollapseAll(); ToggleDisplay('IMG_EXPAND_ALL','IMG_COLLAPSE_ALL');" title="Hide All Installation Comments."><img src="icons/b_collapse_all.gif" border="0" align="absmiddle" hspace="3"></a>Installation Comments</SPAN>
                        </td>
                        <td width="1" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
          </tr>
                  <%If objOsCollector.Item("base_env_id") <> "" Then%>
                  <tr>
                        <td align="center" valign="top"></td>
                        <td align="center" valign="top"></td>
            <td class="body_row" valign="top"><a href="Os_BaseConf.asp?<%=objPMod.ComposeURL()%>" class="body_link"><%=objOsCollector.Item("base_env_name")%></a></td>
                        <td nowrap class="body_row" valign="top"></td>

            <td class="body_rowlite" valign="top">This base configuration contains the common operating system requirements and software applications.</td>
                        <td align="center"></td>
          </tr> 
                  <tr>
            <td colspan="7" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
          </tr>
                  <%End If%>
                  <%
                  ' Load some action buttons
                  Call objBtnControl.LoadActionButtons ( Array("btnEditProd", "btnRemoveProd"), OraDatabase )
                  objBtnControl.ButtonSpacer = 1
                  
                  OraDatabase.Parameters.Add "OS_ID",   dbPARos_id,             ORAPARM_INPUT, ORATYPE_NUMBER 
                  
                  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ProductsList.sql"), ORADYN_DEFAULT )
                  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
                        ProdId = rsQry("prod_id")
                        ProdName = rsQry("pkg_name").Value
                        ProdVersion = rsQry("pkg_version").Value
                        selected = ""
                        nodeSpec = ""
                        If rsQry("is_node_spec") = "on" Then 
                                nodeSpec = "checked"
                        End If  
                        If parHold_selection <> "" Then
                                
                                If IsTicked ( rsQry("prod_id"), Request("prod_id_list") ) Then 
                                        selected = "checked"
                                End If                  
                        End If
                  %>
          <tr>
                        <td align="center" valign="top"><input type="checkbox" name="prod_id_list" value="<%=ProdId%>" <%=selected%>></td>
                        <td align="center" valign="top" class="body_txt"><%=rsQry("seq_num")%></td>
            <td nowrap class="body_row" valign="top"><a href="ProdDefault.asp?prod_id=<%=ProdId%>&<%=objPMod.ComposeURL()%>" class="body_link"><%=GetProductIcon(rsQry)  &  ProdName%></a></td>
                        <td nowrap class="body_row" valign="top"><%=rsQry("pkg_version")%></td>

            <td class="body_rowlite" valign="top">
                                <DIV style="display:block;" id="SHORT_<%=ProdId%>" name="SHORT_<%=ProdId%>" >
                                        <a href="javascript:;" onclick="ToggleDisplay('SHORT_<%=ProdId%>','LONG_<%=ProdId%>');" class="body_rowlite" title="Click to see more...">Click to see more...</a>
                                </DIV>
                                <DIV style="display:none;" id="LONG_<%=ProdId%>" name="LONG_<%=ProdId%> style="display:none;">
                                        <a href="javascript:;" onclick="ToggleDisplay('SHORT_<%=ProdId%>','LONG_<%=ProdId%>');" class="body_row" title="Click to hide."><%=objFormater.TextToHtml( rsQry("product_comments") )%></a>
                                </DIV>                  
                        </td>
                        <td align="center" valign="top" bgcolor="#FAFAF6"><%If objAccessControl.IsActive("ChangeVersion") Then Call objBtnControl.Render  ( Array("btnEditProd") )%></td>
          </tr>
                  <%rsQry.MoveNext%>
                  
                  <%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
          <tr>
            <td colspan="6" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
          </tr>
                  <%End If%>
                  
                  <%
                  WEnd
                  
                  OraDatabase.Parameters.Remove "OS_ID"
                  %>
          <tr>
            <td colspan="6" background="images/bg_table_border.gif">
                         <table width="100%"  border="0" cellspacing="1" cellpadding="2">
              <tr>
                <td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
              </tr>
             </table>
                        </td>
          </tr>
         </table>       
                <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
                </td>
      </tr>
          <%=objPMod.ComposeHiddenTags()%>

          <input type="hidden" name="action" value="true">
        </form>
    </table>
        </td>
    <td width="1%" valign="top" background="images/bg_favourits.gif">
        <!-- PERSONAL BAR +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

        <!-- END OF PERSONAL BAR ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
   </td>
  </tr>
  <tr>
    <td background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="1" height="15"></td>
    <td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="20"></td>
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
</table>
<!-- FOOTER ++++++++++++++++ -->
<!--#include file="_footer.asp"-->
<!-- +++++++++++++++++++++++ -->
</body>
</html>
<%
'------------ RUN AFTER PAGE RENDER -----------
Set objPMod = Nothing
Set objCrumbs = Nothing
Set objTabControl = Nothing
Set objBtnControl = Nothing
'----------------------------------------------
%><!--#include file="common/globals_destructor.asp"-->