Subversion Repositories DevTools

Rev

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

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|                                  ADMIN Page                                           |
'|                 PROJECTS                              |
'|                                                               |
'=====================================================
%>
<%
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
Dim rsProj
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
Set objBtnControl = New ActionButtonControl
'----------------------------------------------
%>
<%
'-----------------------------------------------------------------------------------------------------------------------
Function Get_Projects
        Get_Projects = _
        " SELECT * FROM projects ORDER BY proj_name ASC"
End Function
'-----------------------------------------------------------------------------------------------------------------------
%>
<%
'-------------Page Access Condition-------------------------------------------------------------------------------------
If NOT objAccessControl.IsActive("ConfigureBuildService") Then
        Response.Redirect("message.asp?msg=401-9")
End If
%>


<html>
<head>

<title>Project 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"-->
<div class="div_table">
  <%
  '-- FROM START ---------------------------------------------------------------------------------------------------------
  objFormComponent.FormName = "ProjectAdmin"
  objFormComponent.Action = ScriptName
  objFormComponent.OnSubmit = "ShowProgress();"
  Call objFormComponent.FormStart()
  %>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td background="images/bg_bage_0a.gif">
          <table width="100%"  border="0" cellspacing="1" cellpadding="2">
            <tr>
              <td width="1%" background="images/bg_bage_0.gif"></td>
              <td width="200px" background="images/bg_bage_0.gif" class="body_col" nowrap>Project Name </td>
              <td width="400px" background="images/bg_bage_0.gif" class="body_col" nowrap>Code Review Base URL</td>
              <td width="100px" background="images/bg_bage_0.gif" class="body_col" nowrap>JIRA Key</td>
              <td width="1%" background="images/bg_bage_0.gif">&nbsp;</td>
            </tr>
                                          <!-- NORMAL ROW +++++++++++++++++++ -->
                                    <%Set rsProj = OraDatabase.DbCreateDynaset( Get_Projects, cint(0))
                        While ((NOT rsProj.BOF) AND (NOT rsProj.EOF))
                        %>
                  <tr>
                    <td background="images/bg_bage_0.gif" align="center"></td>
                    <td bgcolor="#FFFFFF" class="body_row" nowrap><%=UCase(rsProj.Fields("proj_name"))%></td>
                    <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsProj.Fields("base_url")%></td>
                    <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsProj.Fields("jira_key")%></td>
                    <td align="center" nowrap background="images/bg_bage_0.gif"><a href="javascript:;" onclick="MM_openBrWindow('_wform_edit_projects.asp?proj_id=<%=rsProj.Fields("proj_id")%>','ProjectEdit','scrollbars=no,resizable=yes,width=600,height=150')"><img src="icons/i_edit.gif" width="16" height="16" hspace="2" border="0" align="absmiddle"></a></td>
                  </tr>
                  <%rsProj.MoveNext
                  WEnd%>
                        <%If rsProj.RecordCount < 1 Then%>
                              <tr> 
                    <td nowrap class="err_alert"><img src="images/h_trsp_dot.gif" width="16" height="16" align="absmiddle" vspace="4"><b>No projects available!</b></td>
                  </tr>
                  <tr> 
                    <td background="images/bg_home_orglite.gif"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
                  </tr>
                        <%End If%>
                                          <!-- +++++++++++++++++++++++++++++++++ -->
                                        </table>
        </td>
      </tr>
                  <%=objPMod.ComposeHiddenTags()%>
                  <input type="hidden" name="action" value="true">
                  <%Call objFormComponent.FormEnd()%>
    </table>
  </div>
</body>
</html>
<!-- FOOTER -->
<!--#include file="_footer.asp"-->
<%
Call Destroy_All_Objects
%>