Subversion Repositories DevTools

Rev

Rev 5957 | Rev 6048 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5357 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|				    ADMIN Page	             		        	 |
6
'|                 PROJECTS                       	 |
7
'|                                            			 |
8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
13
Response.Expires = 0	' always load the page, dont store
14
%>
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<!--#include file="sec/Crypt.asp"-->
21
<!--#include file="common/_form_window_common.asp"-->
22
<!--#include file="_action_buttons.asp"-->
23
 
24
<!--#include file="class/classActionButtonControl.asp"-->
25
 
26
<%
27
'------------ ACCESS CONTROL ------------------
28
%>
29
<!--#include file="_access_control_general.asp"-->
30
<%
31
'------------ Variable Definition -------------
32
Dim objBtnControl
33
Dim rsProj
5983 dpurdie 34
Dim bCanEdit
5357 dpurdie 35
'------------ Constants Declaration -----------
36
'------------ Variable Init -------------------
37
Set objBtnControl = New ActionButtonControl
5983 dpurdie 38
bCanEdit = canActionControl("CreateNewProject")
5357 dpurdie 39
'----------------------------------------------
40
%>
41
<%
42
'-----------------------------------------------------------------------------------------------------------------------
43
Function Get_Projects
44
	Get_Projects = _
45
	" SELECT * FROM projects ORDER BY proj_name ASC"
46
End Function
47
'-----------------------------------------------------------------------------------------------------------------------
48
%>
49
<html>
50
<head>
51
<title>Project Administration</title>
52
<link rel="shortcut icon" href="<%=FavIcon%>"/>
53
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
54
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
55
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
56
<link rel="stylesheet" href="images/navigation.css" type="text/css">
57
<script language="JavaScript" src="images/common.js"></script>
5590 dpurdie 58
<!--#include file="_jquery_includes.asp"-->
5357 dpurdie 59
<!-- DROPDOWN MENUS -->
60
<!--#include file="_menu_def.asp"-->
61
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
62
</head>
63
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
64
<!-- MENU LAYERS -------------------------------------->
65
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
66
</div>
67
<!-- TIPS LAYERS -------------------------------------->
68
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
69
<!-- HEADER -->
70
<!--#include file="_header.asp"-->
71
<div class="div_table">
72
  <%
73
  '-- FROM START ---------------------------------------------------------------------------------------------------------
74
  objFormComponent.FormName = "ProjectAdmin"
75
  objFormComponent.Action = ScriptName
76
  objFormComponent.OnSubmit = "ShowProgress();"
77
  Call objFormComponent.FormStart()
78
  %>
79
    <table border="0" cellspacing="0" cellpadding="0">
80
      <tr>
81
        <td background="images/bg_bage_0a.gif">
82
          <table width="100%"  border="0" cellspacing="1" cellpadding="2">
83
            <tr>
84
              <td width="1%" background="images/bg_bage_0.gif"></td>
85
              <td width="200px" background="images/bg_bage_0.gif" class="body_col" nowrap>Project Name </td>
86
              <td width="400px" background="images/bg_bage_0.gif" class="body_col" nowrap>Code Review Base URL</td>
87
              <td width="100px" background="images/bg_bage_0.gif" class="body_col" nowrap>JIRA Key</td>
88
              <td width="1%" background="images/bg_bage_0.gif">&nbsp;</td>
89
            </tr>
90
					  <!-- NORMAL ROW +++++++++++++++++++ -->
91
				    <%Set rsProj = OraDatabase.DbCreateDynaset( Get_Projects, cint(0))
92
		        While ((NOT rsProj.BOF) AND (NOT rsProj.EOF))
93
		        %>
94
	          <tr>
95
	            <td background="images/bg_bage_0.gif" align="center"></td>
96
	            <td bgcolor="#FFFFFF" class="body_row" nowrap><%=UCase(rsProj.Fields("proj_name"))%></td>
97
	            <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsProj.Fields("base_url")%></td>
98
	            <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsProj.Fields("jira_key")%></td>
5590 dpurdie 99
	            <td align="center" nowrap background="images/bg_bage_0.gif">
5983 dpurdie 100
                <%If bCanEdit Then%>
101
                    <a href="javascript:;" onclick="MM_openVixIFrame('_wform_edit_projects.asp?proj_id=<%=rsProj.Fields("proj_id")%>','Edit Project Config')"><img src="icons/i_edit.gif" width="16" height="16" hspace="2" border="0" align="absmiddle"></a>
102
                <%Else%>
103
                    <img class="lessOpacity" src="icons/i_edit.gif" width="16" height="16" hspace="2" border="0" align="absmiddle">
104
                <%End If%>
105
                </td>
5357 dpurdie 106
	          </tr>
107
	          <%rsProj.MoveNext
108
	          WEnd%>
109
		        <%If rsProj.RecordCount < 1 Then%>
110
			      <tr> 
111
	            <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>
112
	          </tr>
113
	          <tr> 
114
	            <td background="images/bg_home_orglite.gif"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
115
	          </tr>
116
		        <%End If%>
117
					  <!-- +++++++++++++++++++++++++++++++++ -->
118
					</table>
119
        </td>
120
      </tr>
121
		  <%=objPMod.ComposeHiddenTags()%>
122
		  <input type="hidden" name="action" value="true">
123
		  <%Call objFormComponent.FormEnd()%>
124
    </table>
125
  </div>
5957 dpurdie 126
<!-- FOOTER -->
127
<!--#include file="_footer.asp"-->
5357 dpurdie 128
</body>
129
</html>