Subversion Repositories DevTools

Rev

Rev 5590 | Rev 5983 | 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
34
'------------ Constants Declaration -----------
35
'------------ Variable Init -------------------
36
Set objBtnControl = New ActionButtonControl
37
'----------------------------------------------
38
%>
39
<%
40
'-----------------------------------------------------------------------------------------------------------------------
41
Function Get_Projects
42
	Get_Projects = _
43
	" SELECT * FROM projects ORDER BY proj_name ASC"
44
End Function
45
'-----------------------------------------------------------------------------------------------------------------------
46
%>
47
<%
48
'-------------Page Access Condition-------------------------------------------------------------------------------------
49
If NOT canActionControl("ConfigureBuildService") Then
5957 dpurdie 50
    Call Destroy_All_Objects
5357 dpurdie 51
	Response.Redirect("message.asp?msg=401-9")
52
End If
53
%>
54
 
55
 
56
<html>
57
<head>
58
<title>Project Administration</title>
59
<link rel="shortcut icon" href="<%=FavIcon%>"/>
60
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
61
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
62
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
63
<link rel="stylesheet" href="images/navigation.css" type="text/css">
64
<script language="JavaScript" src="images/common.js"></script>
5590 dpurdie 65
<!--#include file="_jquery_includes.asp"-->
5357 dpurdie 66
<!-- DROPDOWN MENUS -->
67
<!--#include file="_menu_def.asp"-->
68
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
69
</head>
70
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
71
<!-- MENU LAYERS -------------------------------------->
72
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
73
</div>
74
<!-- TIPS LAYERS -------------------------------------->
75
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
76
<!-- HEADER -->
77
<!--#include file="_header.asp"-->
78
<div class="div_table">
79
  <%
80
  '-- FROM START ---------------------------------------------------------------------------------------------------------
81
  objFormComponent.FormName = "ProjectAdmin"
82
  objFormComponent.Action = ScriptName
83
  objFormComponent.OnSubmit = "ShowProgress();"
84
  Call objFormComponent.FormStart()
85
  %>
86
    <table border="0" cellspacing="0" cellpadding="0">
87
      <tr>
88
        <td background="images/bg_bage_0a.gif">
89
          <table width="100%"  border="0" cellspacing="1" cellpadding="2">
90
            <tr>
91
              <td width="1%" background="images/bg_bage_0.gif"></td>
92
              <td width="200px" background="images/bg_bage_0.gif" class="body_col" nowrap>Project Name </td>
93
              <td width="400px" background="images/bg_bage_0.gif" class="body_col" nowrap>Code Review Base URL</td>
94
              <td width="100px" background="images/bg_bage_0.gif" class="body_col" nowrap>JIRA Key</td>
95
              <td width="1%" background="images/bg_bage_0.gif">&nbsp;</td>
96
            </tr>
97
					  <!-- NORMAL ROW +++++++++++++++++++ -->
98
				    <%Set rsProj = OraDatabase.DbCreateDynaset( Get_Projects, cint(0))
99
		        While ((NOT rsProj.BOF) AND (NOT rsProj.EOF))
100
		        %>
101
	          <tr>
102
	            <td background="images/bg_bage_0.gif" align="center"></td>
103
	            <td bgcolor="#FFFFFF" class="body_row" nowrap><%=UCase(rsProj.Fields("proj_name"))%></td>
104
	            <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsProj.Fields("base_url")%></td>
105
	            <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsProj.Fields("jira_key")%></td>
5590 dpurdie 106
	            <td align="center" nowrap background="images/bg_bage_0.gif">
107
                    <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></td>
5357 dpurdie 108
	          </tr>
109
	          <%rsProj.MoveNext
110
	          WEnd%>
111
		        <%If rsProj.RecordCount < 1 Then%>
112
			      <tr> 
113
	            <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>
114
	          </tr>
115
	          <tr> 
116
	            <td background="images/bg_home_orglite.gif"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
117
	          </tr>
118
		        <%End If%>
119
					  <!-- +++++++++++++++++++++++++++++++++ -->
120
					</table>
121
        </td>
122
      </tr>
123
		  <%=objPMod.ComposeHiddenTags()%>
124
		  <input type="hidden" name="action" value="true">
125
		  <%Call objFormComponent.FormEnd()%>
126
    </table>
127
  </div>
5957 dpurdie 128
<!-- FOOTER -->
129
<!--#include file="_footer.asp"-->
5357 dpurdie 130
</body>
131
</html>