|
|
$today = 99; // impossible case
if(isset($HTTP_GET_VARS['monthnum']) == 0) // if month not set ahead of time.
$monthnum = date("m"); // use current month.
else
$monthnum = $HTTP_GET_VARS['monthnum'];
if(isset($HTTP_GET_VARS['yearnum']) == 0) // if year not set ahead of time
$yearnum = date("Y"); // use current year.
else
$yearnum = $HTTP_GET_VARS['yearnum'];
$timestamp = mktime(0,0,0,$monthnum,1,$yearnum);
if( ($monthnum == date("m")) && ($yearnum == date("Y")) )
{
$today = date("j");
}
$month_abbrev = date("M",$timestamp);
$month_text = date("M",$timestamp);
$year_text = date("Y",$timestamp);
$maxday = 0;
$stmt0 = "SELECT day, ot1, ot2, nt "
. "FROM yearbible "
. "WHERE month = '" . $month_abbrev . "' "
. "ORDER BY day";
$result = mysql_query($stmt0);
while($row = mysql_fetch_object($result))
{
$daynum = $row->day;
$ot1[$daynum] = $row->ot1;
$ot2[$daynum] = $row->ot2;
$nt[$daynum] = $row->nt;
if($maxday < $daynum)
$maxday = $daynum;
}
$montharray = array(); // 2-dim array.
$weeknum = 0;
$days_in_month = date("t", $timestamp);
$dayofweek = date("w", $timestamp);
for($daynum = 1; $daynum <= $days_in_month ; $daynum++)
{
$montharray[$weeknum][$dayofweek] = $daynum;
$dayofweek++;
if($dayofweek >= 7)
{
$weeknum++;
$dayofweek = 0;
}
}
echo "\n";
echo "\n";
echo "| Sun | "
. "Mon | "
. "Tues | "
. "Wed | "
. "Thurs | "
. "Fri | "
. "Sat | \n";
$weekday = 0;
$daynum = 1;
for($weeknum = 0 ; $weeknum <= 5 ; $weeknum++)
{
if($daynum < $days_in_month) // there is another row
echo "\n";
else
break;
for($weekday = 0; $weekday < 7; $weekday++)
{
$daynum = $montharray[$weeknum][$weekday];
// are we in first week before day 1?
if(($weeknum == 0) && ($daynum <= 0))
{
echo " | \n";
continue;
}
// check to see if we are past the end of the month.
if(($weeknum > 0) && ($daynum <= 0))
break;
if($today == $daynum)
echo "";
else
echo " | ";
if(strlen($ot1[$daynum]) == 0)
{
echo "" . $daynum
. " \n";
continue;
}
echo ""
. "" . $daynum . " ";
echo " | \n";
}
echo " \n";
}
echo " ";
?>
First Month
Daily Bible Reading Challenge
* We encourage you to do your reading this first year in either the New International Version, The Living Bible or the New Living Translation.
Second Month:
1. Read the New Testament section in the Daily Bible Reading Calendar
(Read: Page #3-8).
*2. Read one chapter in Proverbs.
Third Month:
1. Read the New Testament section in the Daily Bible Reading Calendar
(Read: Page #3-8).
2. Read the Old Testament-I section in the Daily Bible Reading Calendar
(Read: Page #3-8).
*3. Read one chapter in Proverbs.
Fourth Month And Thereafter:
1. Read the New Testament section in the Daily Bible Reading Calendar
(Read: Page #3-8).
2. Read the Old Testament-I section in the Daily Bible Reading Calendar
(Read: Page #3-8).
3. Read the Old Testament-II section in the Daily Bible Reading Calendar
(Read: Page #3-8).
*4. Read one chapter in Proverbs.
* Each day in Proverbs read the chapter that has the same number as that days date - the first day of the month read the first chapter, and the second day of the month read the second chapter, etc.
Back to top
|
[ why ]
[ testimonies ]
[ benefit ]
[ learn ]
[ order ]
[ about ]
[ contact ]
[ sitemap ]
Copyright © 2003, Jerry and Marilyn Fine www.ONEonONEwithGOD.org
Designed, hosted
and maintained by
 RealWebGuy.com
|
|