#INCLUDE WCONNECT.H
DEFINE CLASS MemberResume AS rbPage
FUNCTION Page
LOCAL loDataManager
STORE .NULL. to loDataManager
loDataManager = This.DataManager()
This.Content = This.DataGrid(loDataManager)
This.PageTitle = "Member Resumes"
This.Merge('TemplatePage.htm')
ENDFUNC
HIDDEN Function DataManager
LOCAL loDataMan
STORE .NULL. to loDataMan
loDataMan = CreateObject("DataManager")
loDataMan.SQL = [SELECT lastname, firstname, dateposted, filename FROM ]+Site.MemberPath+"member.dbf"+[ INNER JOIN ]+Site.DataPath+"resume.dbf"+[ ON resume.memberid = member.memberid order by lastname where approved]
loDataMan.PageSize = 20
loDataMan.QueryAsNeeded()
loDataMan.OrderDefault="LastName"
RETURN loDataMan
ENDFUNC
HIDDEN FUNCTION DataGrid(toData)
LOCAL loTable
STORE .NULL. to loGrid
loGrid = CreateObject("DataGrid", toData)
loGrid.FieldList = [LastName,FirstName,Dateposted,FileName]
loGrid.CaptionList = [Last Name,First Name,Date Posted,Resume File]
loGrid.Col_FileName.HrefExpression = ['/Resumes/'+FileName]
loGrid.Col_FileName.Sortable = .F.
loGrid.Col_DatePosted.Sortable = .F.
RETURN [<B>]+This.PageTitle+[</B>] ;
+loGrid.HTMLGrid() ;
+loGrid.HTMLNavBar()
ENDFUNC
ENDDEFINE
csCodeParser v0.9 stats: 82 lines in 0.00 seconds.