#! /usr/bin/perl -w # ######################################## # # displays resources page for DTN site # written by benjamin ramey # bsr@rameydesign.net # april, 2004 # ######################################## $data_file = "./data/resources_data.txt"; print "Content-type: text/html\n\n"; &Print_Top_HTML; &Articles; &Books_And_Other; &On_Leadership; &Teaching_Outlines; &Tools_For_Min; &Tools_For_Personal; &Links; &Print_Bottom_HTML; exit; ################################################################################################################################################ # SUB ROUTINES FOR DYNAMIC HTML ################################################################################################################################################ sub Articles { my $in_section = 0; print<<"HTML";
| \ \; | Articles\ \;\ \;\ \;\ \; | \ \; |
| \ \; |
Click on "view article", next to each article to open it up in a new window.
|
|
| \ \; | Books & Other Information\ \;\ \;\ \;/ top / | \ \; |
| \ \; |
HTML
open( INFILE, $data_file ) or print "ERROR: Could not open $data_file.";
while( my $file_line = HTML $file_line =\n"; } } close( INFILE ); print<<"HTML"; |
|
| \ \; | On Leadership\ \;\ \;\ \;/ top / | \ \; |
| \ \; |
Click on each link to open a window with the subject material in it.
|
|
| \ \; | Teaching Outlines\ \;\ \;\ \;/ top / | \ \; |
| \ \; |
Click on each link to open a window with the subject material in it.
|
|
| \ \; | Tools For Ministry: Local Church\ \;\ \;\ \;/ top / | \ \; |
| \ \; |
Click on each link to open a window with the subject material in it.
HTML
open( INFILE, $data_file ) or print "ERROR: Could not open $data_file.";
my $in_top = 0;
while( my $file_line =
|
|
| \ \; | Tools For Personal\ \;\ \;\ \;/ top / | \ \; |
| \ \; |
Click on each link to open a window with the subject material in it.
HTML
open( INFILE, $data_file ) or print "ERROR: Could not open $data_file.";
my $in_top = 0;
while( my $file_line =
|
|
| \ \; | Links\ \;\ \;\ \;/ top / | \ \; | ||
| \ \; |
This section displays all the links throughout the DtN site. This includes all e-mail addresses and web addresses being linked to from here.
The links are arranged according to which page they are found on. HTML open( INFILE, "./data/links_data.txt" ) or print "ERROR: Could not open links_data.txt file."; my $col_count = 0; print "
|
|||
\n$1:\n"; print "\t\t\n"; } ################################################################################################################################################ # SUB ROUTINES FOR PRINTING GENERIC HTML ################################################################################################################################################ ##############displays top of media page############## sub Print_Top_HTML { print <<"HTML";\n"; $file_path .= $1 . '/'; } elsif( $line =~ m/
\n"; print "(.*)<\/file>/ ) { my $file = $1; my $display_name = $file; $display_name =~ s/\.\w{3}$//; $file =~ s/([ ,',",\\,\/,-])/sprintf( "%%%lx", (unpack( "C", $1 )) )/eg; print " - $display_name
\n"; } } print "\t\t
|
|||||
![]()
|
|
||||
| who we are | resources | prayer requests | mission & travel | photos/videos | \ \; | ||||
| all site content copyright of Disciple the Nations, all rights reserved | site designed by ramey design | |||||