Dear people,
As you can I see below I still have to finish the elsif-statement for go =”calendar”:
_______________________
<?php
include 'cuteru/head.php';
$header = array(
'users' => 'Users',
'search' => 'Search',
'category' => 'Categories',
'archives' => 'Archives',
);
?>
<a href="go=news">news</a> |
<a href="go=headlines">headlines</a> |
<a href="go= categories ">categories</a> |
<a href="go=search">search</a>
<?php
error_reporting (E_ALL ^ E_NOTICE);
if($_GET['go'] == "" or $_GET['go'] == "news"){
$show_calendar = true;
$number = 8;
include("cuteru/show_news.php");
}
elseif($_GET['go'] == "headlines"){
$template = "Headlines";
include("cuteru/show_news.php");
}
elseif($_GET['go'] == "categories"){
echo cn_archives();
echo cn_category();
}
elseif($_GET['go'] == "calendar"){
// what php code to write here??????
}
elseif($_GET['go'] == "search"){
include("cuteru/search.php");
}
?>
_______________________
When I click on the calendar link, I want the calendar of all twelve months to appear (three calendars per line, all categories) with a dropdown menu above it to select the categories.
I have tried by inserting the lines below in the elseif statement:
_______________________
php include('cuteru/calendar.php');
elseif($_GET['go'] == "calendar"){
category_dropdown().'<br />'.calendar_list($month_per_line = '3', $news = true, $archives = true, ($_POST ? $categories = $_POST['drop_cat'] : $categories = false));
calendar_list($month_per_line = '3', $news = true, $archives = true, $categories = false, $start_year = false);
}
_______________________
….but that just gives me calendars of 1969 and a whole bunch of the same error lines, starting as follows:
_______________________
Warning: file(/home/flanders/public_html/cuteru/data/category.db.php) [function.file]: failed to open stream: No such file or directory in /home/flanders/public_html/cuteru/calendar.php on line 437
Warning: Invalid argument supplied for foreach() in /home/flanders/public_html/cuteru/calendar.php on line 443
// HERE YOU FIND THE DROP DOWN MENU
Warning: file(/home/flanders/public_html/cuteru/data/news.txt) [function.file]: failed to open stream: No such file or directory in /home/flanders/public_html/cuteru/calendar.php on line 38
Warning: Invalid argument supplied for foreach() in /home/flanders/public_html/cuteru/calendar.php on line 43
Warning: opendir(/home/flanders/public_html/cuteru/data/archives) [function.opendir]: failed to open dir: No such file or directory in /home/flanders/public_html/cuteru/calendar.php on line 72
Warning: readdir(): supplied argument is not a valid Directory resource in /home/flanders/public_html/cuteru/calendar.php on line 74
Warning: closedir(): supplied argument is not a valid Directory resource in /home/flanders/public_html/cuteru/calendar.php on line 81
Warning: date() expects parameter 2 to be long, string given in /home/flanders/public_html/cuteru/inc/lang/en/langdate.php on line 24
Warning: date() expects parameter 2 to be long, string given in /home/flanders/public_html/cuteru/inc/lang/en/langdate.php on line 25
Warning: date() expects parameter 2 to be long, string given in /home/flanders/public_html/cuteru/inc/lang/en/langdate.php on line 26…..............
_______________________
Etc., etc. Over hundred lines of the last mentioned date error, concluding with 12 beautiful 1969 monthly calendars!
Well, that's how far I got. Your help would be greatly appreciated!
Best regards, Ned.
