Location: PHPKode > projects > MyTodos > reports.php
<?
###################################################
#Copyright (C) 2002 Lihua Gao (hide@address.com) 
#
#$Id: reports.php,v 1.1 2002/12/05 10:03:33 gaolihua Exp $
#
#This file is part of myTodos.
#
#myTodos is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
#myTodos is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with myTodos; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#####################################################
?>
<?
session_start();
require_once("config.php");
include("header.php");
?>

<table cellspacing="0" class="table3">
	<tr class="rowtitle">
		<td><h5>Reports </h5></td>
	</tr>
   <!-- empty line -->
	<tr><td>&nbsp;</td></tr>

   <?
      // calulate the time of this monday

      $todaystime_w=mktime(0,0,0, date("m", time()), date("d", time()), date("Y", time()))-(date('w', time())-1)*24*3600;
      $todaystime_m=mktime(0,0,0, date("m", time()), date("d", time()), date("Y", time()))-(date('j', time())-1)*24*3600;
      $todaystime_y=mktime(0,0,0, 1,1,date("Y", time()));

   ?>

	<tr>
    	<td>
         <a href="scheduler.php?mode=today&userid=<?=$_SESSION['userid']?>">Generate today's event list</a>
      </td>
	</tr>
   <!-- empty line -->
	<tr><td>&nbsp;</td></tr>

	<tr>
    	<td>
         <a href="scheduler.php?mode=week&todaystime=<?=$todaystime_w?>&userid=<?=$_SESSION['userid']?>">Generate this week's event list</a>
      </td>
	</tr>
   <!-- empty line -->
	<tr><td>&nbsp;</td></tr>

	<tr>
    	<td>
         <a href="scheduler.php?mode=month&todaystime=<?=$todaystime_m?>&userid=<?=$_SESSION['userid']?>">Generate this month's event list</a>
      </td>
	</tr>
   <!-- empty line -->
	<tr><td>&nbsp;</td></tr>

	<tr>
    	<td>
         <a href="scheduler.php?mode=year&todaystime=<?=$todaystime_y?>&userid=<?=$_SESSION['userid']?>">Generate this year's event list</a>
      </td>
	</tr>
   <!-- empty line -->
	<tr><td>&nbsp;</td></tr>

	<tr>
    	<td>
         <a href="scheduler.php?mode=comingweek&userid=<?=$_SESSION['userid']?>">Generate coming week's event list</a>
      </td>
	</tr>
   <!-- empty line -->
	<tr><td>&nbsp;</td></tr>

	<tr>
    	<td>
         <a href="scheduler.php?mode=comingmonth&userid=<?=$_SESSION['userid']?>">Generate coming month's event list</a>
      </td>
	</tr>
   <!-- empty line -->
	<tr><td>&nbsp;</td></tr>

	<tr>
    	<td>
         <a href="scheduler.php?mode=comingyear&userid=<?=$_SESSION['userid']?>">Generate coming year's event list</a>
      </td>
	</tr>
   <!-- empty line -->
	<tr><td>&nbsp;</td></tr>



</table>


<?
include("footer.php");
?>
Return current item: MyTodos