Presentation is loading. Please wait.

Presentation is loading. Please wait.

Michael Tucker DBA / Webmaster Forsyth County Public Library.

Similar presentations


Presentation on theme: "Michael Tucker DBA / Webmaster Forsyth County Public Library."— Presentation transcript:

1 Michael Tucker DBA / Webmaster Forsyth County Public Library

2  Many Open Source Options such as Joomla  Retail Options Are Also Available  Build Your Own!

3 WebsitePrint ReleaseEvent Advertisement Public Computers CatalogFacebook Staff members type information ONCE. Information displays MULTIPLE places.

4  Programs  Publications (Bookmarks and Brochures)  Jobs  General News  Construction News  Service Outages  Menu / Links Pages  Online Resources  Featured Items  Teen Events  Fun Stuff (children’s crosswords, etc.)

5  IIS on Windows Server  Access Databases  ASP  Microsoft Expression Web  Vbscript

6  Anyone with Access can edit the databases without SQL knowledge.  Cheap (check SRS, formerly MSD)! No new licenses or servers required.

7  Plays nice with Windows Servers / IIS.  Code can be generated from web design software.

8  Standards based.  Allows for asp master pages to control look of website throughout.  Excellent ASP tools for database connections and displaying data.

9  Edit the database directly.  Use Microsoft Expression Web to create an asp page that edits your database.  Create your own system.

10 Tip: Make a copy of the database and edit the copy. Otherwise the lock will stop your WebPages from displaying correctly.

11  Create a new aspx page on your site.  Create a new datasource pointing to the database you want to control.

12  Configure the Datasource to select the primary key for the table and if needed a column that you could select from a drop down menu that would be unique to each entry.

13  Add a drop down list to your page and configure it to point to your datasource. Select a display and data field. The datafield should be assigned to the tables primary key.

14  Add an ASP button to the page.

15  Add a second datasource to the page making sure to select all of the columns or *

16  Click on the “Where” button and make your query use the value of the drop down list.

17  Click on the “Advanced” button and have it create insert, update, and delete statements.

18  Insert a Form View to your page and assign the second datasource to it.

19  Adjust permissions on your webserver to allow modify access in the directory where your access database file resides.  Highly recommend then putting some form of authentication on the new webpage you have created. In IIS you can use Windows Authentication, or I have also done this through ASP by hiding visibility of the dropdown and button until a username and password is entered.

20

21 At FCPL, we designed our system so that everyone who is approved to contribute to our website is given Remote Desktop rights to a system we call our Portal machine. This is the only system that has access into the DMZ in which our webserver lives. Once on this machine, the login used determines which Content Management Tools (CMTs) can be accessed. The CMTs are.hta files (written in vbscript) which allow staff to edit the approved databases.

22 Warning the follow slides will contain some code. Also this is just one of many ways to go about the creation of such a tool. For those wanting to get this custom with your solution, I hope this will provide a great start and give you a few ideas.

23 Main Screen for our Programs CMT

24 The Edit and add new screen

25 The Category Link screen

26 Online programs <HTA:APPLICATION APPLICATIONNAME="Admin online Programs" SCROLL="yes" SINGLEINSTANCE="yes" WINDOWSTATE="maximize" > Programs Content Management Tool Put programs here! Check your Work: http://www.forsythpl.org/abo utFCPL/programsAndServices.aspx The HTML Section of the hta file

27 DataArea.InnerHTML = Is used in the vbscript to update the div DataArea in the HTML html = " " programDropDown html = html &programString &" " html = html &" " DataArea.InnerHTML = html

28 driver = "Microsoft.Jet.OLEDB.4.0“ dataSource = "Data Source=programs.mdb“ Query = "select branchNum, branch from branch order by branch“ set con = createobject("ADODB.connection") con.Provider = driver con.ConnectionString = dataSource con.open set rs = CreateObject("ADODB.Recordset") rs.ActiveConnection = con rs.Open Query Example Database Connection and Query

29 rs.movefirst Used to access the first record rs.movenext To move to the next record returned rs.fields(0).value Will access the first column of the record

30 Full source code for our Program CMT can be found at http://www.forsythpl.org/test/demo/progr ams.txt http://www.forsythpl.org/test/demo/progr ams.txt

31 WebsitePrint ReleaseEvent Advertisement Public Computers CatalogFacebook

32 Michael Tucker Forsyth County Public Library tuckerm@forsythpl.org 678-513-9380


Download ppt "Michael Tucker DBA / Webmaster Forsyth County Public Library."

Similar presentations


Ads by Google