Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13 rsolanki 1
<%
2
'===================================================================
3
'							Admin Projects Common
4
'===================================================================
5
%>
6
<!--#include file="../class/classTemplateManager.asp"-->
7
<!--#include file="../class/classTabControl.asp"-->
8
<!--#include file="../class/classActionButtonControl.asp"-->
9
<!--#include file="../class/classPopupMenuControl.asp"-->
10
<!--#include file="../class/classValidationControl.asp"-->
11
<!--#include file="../class/classFormater.asp"-->
12
<%
13
'------------ VARIABLE DEFINITION -------------
14
Dim objTabControl
15
Dim objTemplateManager
16
Dim objProjCollector
17
Dim objBtnControl
18
Dim objForm
19
Dim aTabBtnsDef
20
Dim aAdminPersistList
21
Dim objFormater
22
'------------ CONSTANTS DECLARATION -----------
23
Const LIMG_EDIT = "<img src='icons/i_edit.gif' width='16' height='16' border='0' hspace='2' title='Edit this entry'>"
24
Const LIMG_REMOVE = "<img src='icons/i_remove.gif' width='16' height='16' border='0' hspace='2' title='Remove this entry'>"
25
Const LIMG_NEW_ENTRY = "<img src='icons/btn_add.gif' width='13' height='13' border='0' title='New...' hspace='2'>"
26
Const LIMG_NEW_ENTRY_OFF = "<img src='icons/btn_add_off.gif' width='13' height='13' border='0' hspace='2'>"
27
Const LIMG_ROW_SUBMIT = "<input name='btn' type='image' src='icons/btn_row_submit.gif' width='53' height='16' hspace='2' border='0' title='Submit this entry'>"
28
Const LIMG_ROW_CANCEL = "<img src='icons/bi_cancel.gif' width='16' height='16' border='0' hspace='2' title='Cancel'>"
29
Const LIMG_POINTER = "<img src='icons/i_pointer.gif' width='6' height='11' hspace='2' vspace='5' border='0'>"
30
Const LIMG_UNTICK = "<img src='icons/b_box.gif' width='13' height='13' hspace='2' vspace='4' border='0' title='Click to hide'>"
31
Const LIMG_TICK = "<img src='icons/b_tick.gif' width='13' height='13' hspace='2' vspace='4' border='0' title='Click to show'>"
32
'------------ VARIABLE INIT -------------------
33
parProj_id = Request("proj_id")
34
Set objPMod = New PersistanceModule
35
Set objForm = New ValidationControl
36
Set objBtnControl = New ActionButtonControl
37
Set objProjCollector = CreateObject("Scripting.Dictionary")
38
Set objFormater = New Formater
39
aAdminPersistList = Array( "proj_id","rfile" )
40
'------------ CONDITIONS ----------------------
41
'----------------------------------------------
42
%>
43
<%
44
'------------ RUN BEFORE PAGE RENDER ----------
45
objPMod.PersistInQryString ( aAdminPersistList )
46
Call GetProjectCollection ( parProj_id, objProjCollector )
47
'----------------------------------------------
48
%>
49
<%
50
'-----------------------------------------------------------------------------------------------------------------
51
Sub GetProjectCollection ( nProj_id, ByRef outobjDetails )
52
	Dim rsQry, query
53
	OraDatabase.Parameters.Add "PROJ_ID", nProj_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
54
 
55
	query = _
56
	" SELECT pr.*"&_
57
	"   FROM DM_PROJECTS pr"&_
58
	"  WHERE pr.PROJ_ID = :PROJ_ID"
59
 
60
	Set rsQry = OraDatabase.DbCreateDynaset( query , ORADYN_DEFAULT )
61
 
62
	If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
63
		outobjDetails.Item ("proj_id")   = rsQry("proj_id")
64
		outobjDetails.Item ("proj_name") = rsQry("proj_name")
65
		outobjDetails.Item ("rm_projects_fk") = rsQry("rm_projects_fk")
66
		outobjDetails.Item ("is_hidden") = rsQry("is_hidden")
67
 
68
	'Else
69
	'	Err.Raise 8, "Sub GetProjectCollection", "Empty record set returned. nProj_id="& nProj_id
70
 
71
	End If
72
 
73
	OraDatabase.Parameters.Remove "PROJ_ID"
74
	rsQry.Close
75
	Set rsQry = Nothing
76
End Sub
77
'-----------------------------------------------------------------------------------------------------------------
78
Function GetTick ( cInput )
79
	If cInput = enumDB_YES Then
80
		GetTick = LIMG_TICK
81
	Else
82
		GetTick = LIMG_UNTICK
83
	End If
84
End Function
85
'-----------------------------------------------------------------------------------------------------------------
86
%>