Location: PHPKode > projects > Simple PHP Agenda > repeating_event.php
 * This file is part of php-agenda.
 * php-agenda 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.
 * php-agenda is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with php-agenda; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 * Copyright 2006-2007, Thomas Abeel
 * Project: http://sourceforge.net/projects/php-agenda/
include ('auth/include/session.inc.php');
include ('lang/lang.inc.php');

include ('adodb/adodb.inc.php');

$db = ADONewConnection('mysql');
$db->Connect($dbhost, $dbuser, $dbpass, $dbname);
$db->debug = false;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
  <title><?php echo $lang["title"];?></title>
  <link href="style.css.php" rel="stylesheet" type="text/css"/>
  <link href="CalendarControl.css" rel="stylesheet" type="text/css"/>
  <link href="TimeControl.css" rel="stylesheet" type="text/css"/>
<script src="CalendarControl.js.php" language="javascript"></script>
<script src="TimeControl.js.php" language="javascript"></script>
<div class="box">
<h3><?php echo $lang["repeat-addevent"];?></h3>
<a href="index.php">[<?php echo $lang['back'];?>]</a>
<form action="engine/new_repeat.php" method="POST" >
	<label for="fromdate"><?php echo $lang["repeat-fromdate"];?> (yyyy-mm-dd):</label>
	<input name="fromdate" onfocus="showCalendarControl(this);" type="text"/>
	<label for="todate"><?php echo $lang["repeat-todate"];?> (yyyy-mm-dd):</label>
	<input name="todate" onfocus="showCalendarControl(this);" type="text"/>
	<label for="time"><?php echo $lang["time"];?> (HH:MM):</label>
	<input name="time" onfocus="showTimeControl(this);" type="text"/>
<tr><td colspan=2>
	<input type="checkbox" name="dayevent" value="dayevent"><?php echo $lang['add-daylong'];?></input>
<tr><td colspan=2>
	<input type="checkbox" name="deadline" value="deadline"><?php echo $lang['add-deadline'];?></input>
	<label for="title"><?php echo $lang['add-title'];?></label>
	<input type="text" name="title" width="50" />
	<label for="description"><?php echo $lang['add-description'];?></label>
	<input type="text" name="description" width="50" />
	<label for="frequency"><?php echo $lang['repeat-frequency'];?></label>
	<select name="frequency" size="1">
	<option value="daily"><?php echo $lang['frequency-daily'];?></option>
	<option value="weekdays"><?php echo $lang['frequency-weekdays'];?></option>
	<option value="weekly"><?php echo $lang['frequency-weekly'];?></option>
	<option value="biweekly"><?php echo $lang['frequency-biweekly'];?></option>
	<option value="monthly"><?php echo $lang['frequency-monthly'];?></option>
	<option value="yearly"><?php echo $lang['frequency-yearly'];?></option>
	<input type="submit" value="<?php echo $lang['add-button'];?>" name="repeatEvent"/>
Return current item: Simple PHP Agenda