Subversion Repositories DevTools

Rev

Rev 1281 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%
2
'=====================================================
3
'|                                                   |
4
'|			          _front_explorer				 |
5
'|                                                   |
6
'=====================================================
7
%>
8
<%
9
'------------ Variable Definition -------------
10
Dim rsProj
11
Dim rsTemp
12
Dim parListBy
13
'------------ Constants Declaration -----------
14
Const hlColor 	   = "#E3B62D"
15
'------------ Variable Init -------------------
16
parListBy = Request("listby")
17
If parListBy = "" Then parListBy = 3	' Default visible list is Projects
18
'----------------------------------------------
19
%>
20
<%
21
'-----------------------------------------------------------------------------------------------------------------------
22
Function Set_Row_Style ( SSLink )
23
	Set_Row_Style = "onMouseOver=""this.bgColor = '"& hlColor &"'"" onMouseOut =""this.bgColor = ''"" onClick=""location.href='"& SSLink &"'"""
24
End Function
25
'-----------------------------------------------------------------------------------------------------------------------
26
Function Get_Projects
27
	Get_Projects = _
28
	" SELECT * FROM projects ORDER BY proj_name ASC"
29
End Function
30
'-----------------------------------------------------------------------------------------------------------------------
31
Function Format_Full_Name ( SSfullname )
32
	If InStr( SSfullname, " " ) = 0 Then
33
		' No space in full_name
34
		Format_Full_Name = SSfullname
35
 
36
	Else
37
		' Proper full_name found
38
 
39
		Format_Full_Name = Left( SSfullname, InStr( SSfullname, " " )  )
40
 
41
	End If
42
 
43
End Function
44
'-----------------------------------------------------------------------------------------------------------------------
45
Sub GenerateAtoZ()
46
	Dim letter, LROW_ONE, LROW_TWO, URL
47
 
48
	' Declare array of letters for browsing
49
	LROW_ONE = Array("#","A","B","C","D","E","F","G","H","I","J","K","L","M")
50
	LROW_TWO = Array("N","O","P","Q","R","S","T","U","V","W","X","Y","Z")
51
 
52
 
53
	Response.write "<table width='180'  border='0' cellspacing='1' cellpadding='2'>"
54
 
55
	' Render first row
56
	Response.write "<tr>"
57
 
58
	For Each letter In LROW_ONE
59
		Response.write "<td width='10' bgcolor='#DDB02C' align='center'><a href='view_by_package.asp?listby=1&browse="& Server.URLEncode( letter ) &"' class='form_txt_link'>"& letter &"</a></td>"
60
	Next
61
 
62
	Response.write "</tr>"
63
 
64
 
65
	' Render second row
66
	Response.write "<tr>"
67
	Response.write "<td bgcolor='#DDB02C' align='center' class='form_txt_link'>&nbsp;</td>"
68
	For Each letter In LROW_TWO
69
		Response.write "<td bgcolor='#DDB02C' align='center'><a href='view_by_package.asp?listby=1&browse="& Server.URLEncode( letter ) &"' class='form_txt_link'>"& letter &"</a></td>"
70
	Next
71
 
72
	Response.write "</tr>"
73
 
74
	Response.write "</table>"
75
 
76
End Sub
77
'-----------------------------------------------------------------------------------------------------------------------
78
%>
79
 
80
 
81
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
82
		<tr> 
83
	  		<td>
84
              <table width="100%"  border="0" cellspacing="0" cellpadding="10">
85
			  	<form name="fromlist">
86
                <tr>
87
                  <td nowrap>
88
				  <select name="listby" class='form_item' onChange="Visible ('DIVLIST1','none','DIVLIST2','none','DIVLIST3','none'); Visible('DIVLIST' + this.value,'block');">
89
					<option value="3" <%If parListBy = "3" Then%>selected<%End If%>>View by Projects</option>
90
					<option value="1" <%If parListBy = "1" Then%>selected<%End If%>>View by Packages</option>
91
					<option value="2" <%If parListBy = "2" Then%>selected<%End If%>>View by Files</option>
92
				  </select>
93
 
94
				  </td>
95
                </tr>
96
				</form>
2362 dpurdie 97
            </table>
119 ghuddy 98
			</td>
99
		</tr> 
100
		<tr> 
101
          <td background="images/bg_home_orglite.gif"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
102
        </tr>
103
	</table>
104
 
105
<!-- LIST BY PACKAGE ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
106
	<DIV name="DIVLIST1" id="DIVLIST1" style="display:none;">
107
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
108
		<tr> 
109
		   <td>
110
              <table width="100%"  border="0" cellspacing="0" cellpadding="10">
111
                <tr>
112
                  <td nowrap>
113
				    <table width="100" border="0" cellspacing="0" cellpadding="0">
114
                      <form name="pkg_search" method="get" action="view_by_package.asp" onSubmit="MM_validateForm('pkgname','Package keyword','R');return document.MM_returnValue">
115
                        <tr>
116
                          <td colspan="2" class="form_item">Find Package</td>
117
                        </tr>
118
                        <tr>
119
                          <td valign="top" class="form_txt"><input name="pkgname" type="text" class="form_item" size="25" value="<%=Request("pkgname")%>">
120
                          </td>
121
                          <td class="form_txt"><input type="submit" name="btn" value="Go" class="form_btn_comp"></td>
122
                        </tr>
123
					  	<tr>
124
                          <td colspan="2" class="form_item">Browse</td>
125
                        </tr>
126
					  	<tr> 
127
	                      <td colspan="2"><%Call GenerateAtoZ()%></td>
128
	                    </tr>
129
						<input type="hidden" name="listby" value="1">
130
                      </form>
131
		          </table>
132
 
133
				  </td>
134
                </tr>
135
            </table>            
136
		</td>
137
		<tr> 
138
          <td background="images/bg_home_orglite.gif"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
139
        </tr>
140
	</table>
141
	</DIV>
142
<!-- LIST BY FILES AND FOLDERS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
143
	<DIV name="DIVLIST2" id="DIVLIST2" style="display:none;">
144
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
145
		<tr> 
146
			<td>
147
              <table width="100%"  border="0" cellspacing="0" cellpadding="10">
148
                <tr>
149
                  <td nowrap>
150
				    <table width="100" border="0" cellspacing="0" cellpadding="0">
151
                      <form name="pkg_search" method="get" action="view_by_file.asp" onSubmit="MM_validateForm('filename','File keyword','R');return document.MM_returnValue">
152
                        <tr>
153
                          <td colspan="2" class="form_item">Find File</td>
154
                        </tr>
155
                        <tr>
156
                          <td valign="top" class="form_txt"><input name="filename" type="text" class="form_item" size="25" value="<%=Request("filename")%>">
157
                          </td>
158
                          <td class="form_txt"><input type="submit" name="btn" value="Go" class="form_btn_comp"></td>
159
                        </tr>
160
					  	<tr>
161
                          <td colspan="2" class="form_item">HINTS:<br>
162
		- You can use * wildcard. e.g. *0123 or 0123* or *0123*<br></td>
163
                        </tr>                        
164
						<input type="hidden" name="listby" value="2">
165
                      </form>
166
		          </table>
167
 
168
				  </td>
169
                </tr>
170
            </table>            
171
		</td>
172
		<tr> 
173
          <td background="images/bg_home_orglite.gif"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
174
        </tr>		
175
	</table>
176
	</DIV>
177
<!-- LIST BY PROJECT ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
178
	<DIV name="DIVLIST3" id="DIVLIST3" style="display:none;">
179
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
180
 
181
		<%Set rsProj = OraDatabase.DbCreateDynaset( Get_Projects, cint(0))
182
		While ((NOT rsProj.BOF) AND (NOT rsProj.EOF))%>
183
        <tr <%=Set_Row_Style( "rtree.asp?proj_id="&  rsProj.Fields("proj_id") )%>> 
184
          <td nowrap><img src="images/h_trsp_dot.gif" width="16" height="16" align="absmiddle" vspace="4"><a href="rtree.asp?proj_id=<%=rsProj.Fields("proj_id")%>" class="form_txt_link"><%=UCase(rsProj.Fields("proj_name"))%></a></td>
185
        </tr>
186
        <tr> 
187
          <td background="images/bg_home_orglite.gif"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
188
        </tr>
189
		<%rsProj.MoveNext
190
	    WEnd%>
191
		<%If rsProj.RecordCount < 1 Then%>
192
			<tr> 
193
	          <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>
194
	        </tr>
195
	        <tr> 
196
	          <td background="images/bg_home_orglite.gif"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
197
	        </tr>
198
		<%End If%>
199
		<tr> 
200
		<%If (objAccessControl.IsActive("CreateNewProject")) Then%>
201
          <td align="right"><a href="#" onClick="MM_openBrWindow('_wform_new_project.asp','ReleaseManager','resizable=yes,width=400,height=200')"><img src="images/bt_new_project.gif" width="16" height="16" border="0" vspace="5" hspace="5" align="absmiddle" alt="Create new Project" title="Create new Project"></a></td>
202
        </tr>
203
		<%End If%>
204
	</table>
205
	</DIV>	
206
<!-- END OF LIST BY ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
207
 
208
<script language="JavaScript" type="text/javascript">
209
<!-- 
210
 
211
// Set List visibility
212
Visible ("DIVLIST1","none","DIVLIST2","none","DIVLIST3","none");
213
Visible ("DIVLIST<%=parListBy%>","block");
214
 
215
//-->
216
</script>
217
 
218