Subversion Repositories DevTools

Rev

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