Subversion Repositories DevTools

Rev

Rev 6793 | Rev 7225 | Go to most recent revision | 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_login_optional.asp"-->
<!--#include file="_access_control_general.asp"-->
<%
'------------ Variable Definition -------------
Dim objBtnControl
Dim rsProj
Dim bCanEdit
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
Set objBtnControl = New ActionButtonControl
bCanEdit = canActionControl("CreateNewProject")
'----------------------------------------------
%>
<%
'-----------------------------------------------------------------------------------------------------------------------
Function Get_Projects
        Get_Projects = _
        " SELECT * FROM projects ORDER BY proj_name ASC"
End Function
'-----------------------------------------------------------------------------------------------------------------------
%>
<html>
<head>
<title>Project Administration</title>
<link rel="shortcut icon" href="<%=FavIcon%>"/>
<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?ver=<%=VixVerNum%>" type="text/css">
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
<!--#include file="_jquery_includes.asp"-->
<!-- DROPDOWN MENUS -->
<!--#include file="_menu_def.asp"-->
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
<!-- HEADER -->
<!--#include file="_header.asp"-->
<div class="div_table">
  <table align=center border="0" cellspacing="1" cellpadding="2" class='stdBrown'>
      <caption>Project Information</caption>
      <thead>
        <tr>
          <th nowrap>Project Name </th>
          <th nowrap>Code Review Base URL</th>
          <th nowrap>JIRA Key</th>
          <th >&nbsp;</th>
        </tr>
      </thead>
            <%Set rsProj = OraDatabase.DbCreateDynaset( Get_Projects, cint(0))
        While ((NOT rsProj.BOF) AND (NOT rsProj.EOF))
        %>
      <tr>
        <td nowrap><%=UCase(rsProj.Fields("proj_name"))%></td>
        <td nowrap><%=rsProj.Fields("base_url")%></td>
        <td nowrap><%=rsProj.Fields("jira_key")%></td>
        <td align="center" nowrap>
        <%If bCanEdit Then%>
            <span class=pointer onclick="MM_openVixIFrame('_wform_edit_projects.asp?proj_id=<%=rsProj.Fields("proj_id")%>','Edit Project Config')"><%=LIMG_EDIT%></span>
        <%Else%>
            <%=LIMG_EDIT_DISABLED%>
        <%End If%>
        </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>
</div>
<!-- FOOTER -->
<!--#include file="_footer.asp"-->
</body>
</html>