Location: PHPKode > projects > Convener > manage/viewmeeting.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
	<title>Meeting status</title>
	<style type="text/css" media="screen">@import "convener.css";</style>
	<script type="text/javascript">
	<!--
	function confirmSubmit() 
	{
		var agree=confirm("CONFIRM: Delete meeting(s) and all related data?");
		if (agree)
			return true ;
		else
			return false ;
	}
	// -->
	</script>
</head>
	
<body>
<div id="wrapper">
	<div id="menu"><?php include('menu.php');?>
	</div>
	<div id="content"> 

<?php 

// TODO: w3.org validator thinks there's something illegal in radio buttons in table cells or something like that

require('../config.php');
require('../dbfunc.php');
$conveners_id = 1; // now for testing, set by authentication when it's ready

if ($_GET['m']) {
	// --- meeting was selected by form or link
	$meetings_id = escape_smart($_GET['m']);
	$result = mysql_query("SELECT * FROM meetings WHERE meetings_id = $meetings_id"); 
	$row = mysql_fetch_assoc($result);
	if (!$row OR !is_numeric($meetings_id)) die ("<h1>Meeting $meetings_id not found!</h2>");
	
	echo '<form action="viewmeeting.php" method="post"><h2>' . $row['title'] . " (Id: $meetings_id)</h2>
	<p><b>Description:</b></p><p>" . (nl2br($row['description'])) . '</p>
	<table><tr><td class="noborder"><b>Answering deadline:</b></td><td class="noborder">' . $row['deadline'] . '</td>
	<td class="noborder"><input type="submit" value="Deadline now" name="dlnow" /></td></tr>
	<tr><td class="noborder"><b>Questionnaires last sent:</b></td>
	<td class="noborder">' . ($row['questionnaires_sent'] ? $row['questionnaires_sent'] : 'Never') . '</td><td class="noborder"></td></tr>
	<tr><td class="noborder"><b>Invitations sent:</b></td>
	<td class="noborder">' . ($row['invitations_sent'] ? $row['invitations_sent'] : 'Not sent') . '</td><td class="noborder"></td></tr>
	</table><h2>Suggestions</h2><table border="1">';

	if (suggformat($meetings_id) == 0) { // date+location suggestions		
		echo '<tr><th>No.</th><th class="leftalign">Starting</th><th class="leftalign">Ending</th><th class="leftalign">Location</th>
		<th>Points</th><th>Winner</th></tr>';
		$result = mysql_query("SELECT * FROM suggestions WHERE meetings_id = $meetings_id ORDER BY suggestions_id ASC", $link);
		// query above could probably be joined to SUM-query below, would make displaying a lot shorter 
		$i = 1; // to display suggestion number to users
		while ($row = mysql_fetch_assoc($result)) { // loop through every suggestion
			$result_points = mysql_query("SELECT SUM(answer) FROM answers WHERE meetings_id = $meetings_id AND suggestions_id 
			= " . $row['suggestions_id'], $link); // count points for this suggestion
			$points = mysql_fetch_row($result_points);
			$sugg[$i]['no'] = $i;
			$sugg[$i]['id'] = $row['suggestions_id'];
			$sugg[$i]['starttime'] = $row['starttime'];
			$sugg[$i]['endtime'] = $row['endtime'];
			$sugg[$i]['location'] = $row['location'];
			$sugg[$i]['points'] = $points[0];
			$i++;
		}
		$copy = $sugg; // copy array
		foreach ($copy as $row) { // obtain column
			$sorting[] = $row['points'];
		}
		if ($copy) array_multisort($sorting, SORT_DESC, $copy); // sort array with points descending
		$winsuggno[] = $copy[0]['no']; // array containing winning suggestion/suggestions numbers
		$winsuggid[] = $copy[0]['id'];
		for ($i = 0; $i <= count($copy); $i++) {
			if ($copy[0]['points'] == $copy[$i+1]['points']) { // check if multiple winnning suggestions
				$winsuggno[] = $copy[$i+1]['no']; // if found copy to winning numbers array 
				$winsuggid[] = $copy[$i+1]['id']; // and winning id's array
			}
		}
		if (count($winsuggid) == 1) $winner = $winsuggid[0]; // if only one winning suggestion
		
		for ($i = 1; $i <= count($sugg); $i++) { // display suggestions & points, winning suggestions colored differently
			echo '<tr' . (in_array($i, $winsuggno) ? ' class="greentr"' : '') . '><td>' . $sugg[$i]['no'] . '</td><td>' . 
			$sugg[$i]['starttime'] . '</td><td>' . $sugg[$i]['endtime'] . '</td><td class="leftalign">' . $sugg[$i]['location'] . '</td><td>' . 
			$sugg[$i]['points'] . '</td><td><input type="radio" name="win" value="' . $sugg[$i]['id'] . '"' 
			. ($sugg[$i]['id'] == $winner ? ' checked': '') . ' /></td></tr>';
		}	
	} else { // freetext suggestions
		echo '<tr><th>No.</th><th class="leftalign">Suggestion text</th><th>Points</th><th>Winner</th></tr>';
		$result = mysql_query("SELECT suggestions_id, freetext FROM suggestions WHERE meetings_id = $meetings_id 
		ORDER BY suggestions_id ASC");
		// query above could probably be joined to SUM-query below, would make displaying a lot shorter 
		$i = 1; // to display suggestion number to users
		while ($row = mysql_fetch_assoc($result)) { // loop through every suggestion
			$result_points = mysql_query("SELECT SUM(answer) FROM answers WHERE meetings_id = $meetings_id AND suggestions_id 
			= " . $row['suggestions_id'], $link); // count points for this suggestion
			$points = mysql_fetch_row($result_points);
			$sugg[$i]['no'] = $i;
			$sugg[$i]['id'] = $row['suggestions_id'];
			$sugg[$i]['freetext'] = $row['freetext'];
			$sugg[$i]['points'] = $points[0];
			$i++;
		}
		$copy = $sugg; // copy array
		foreach ($copy as $row) { // obtain column
			$sorting[] = $row['points'];
		}
		if ($copy) array_multisort($sorting, SORT_DESC, $copy); // sort array with points descending
		$winsuggno[] = $copy[0]['no']; // array containing winning suggestion/suggestions numbers
		$winsuggid[] = $copy[0]['id'];
		for ($i = 0; $i <= count($copy); $i++) {
			if ($copy[0]['points'] == $copy[$i+1]['points']) { // check if multiple winnning suggestions
				$winsuggno[] = $copy[$i+1]['no']; // if found copy to winning numbers array 
				$winsuggid[] = $copy[$i+1]['id']; // and winning id's array
			}
		}
		if (count($winsuggid) == 1) $winner = $winsuggid[0]; // if only one winning suggestion
		
		for ($i = 1; $i <= count($sugg); $i++) { // display suggestions & points, winning suggestions colored differently
			echo '<tr' . (in_array($i, $winsuggno) ? ' class="greentr"' : '') . '><td>' . $sugg[$i]['no'] . '</td><td class="leftalign">' . 
			$sugg[$i]['freetext'] . '</td><td>' . $sugg[$i]['points'] . '</td><td><input type="radio" name="win" value="' . $sugg[$i]['id'] . '"' . 
			($sugg[$i]['id'] == $winner ? ' checked' : '') . ' /></td></tr>';
		}
	}
	echo '</table>';					
	for ($i = 0; $i < sizeof($winsuggid); $i++) { // send all the winning suggestions_ids with array in $_POST	
		echo '<input type="hidden" name="w[]" value="' .$winsuggid[$i] . '" />';
	}
	echo  '<p><input type="submit" value="Send invitations" name="invitations" /></p>';
	
	// --- Participants & Answers
	echo '<h2>Participants & Answers</h2>';
	$result = mysql_query("SELECT * FROM meetings_have_participants LEFT JOIN participants ON 
	meetings_have_participants.participants_id = participants.participants_id WHERE meetings_id = $meetings_id", $link);
	
	if (mysql_num_rows($result) == 0) {
		echo '<p>No participants selected for this meeting!</p>';
	} else {				
		echo'<table border="1"><tr><th></th><th class="leftalign">Details</th><th class="leftalign">Name</th><th class="leftalign">Email</th>';
		$result_sugg = mysql_query("SELECT suggestions_id FROM suggestions WHERE meetings_id = $meetings_id 
		ORDER BY suggestions_id ASC"); 	
		$i = 1;
		while ($row = mysql_fetch_array($result_sugg)) {
			echo "<td>$i</td>";
			$i++;
		}
		echo '</tr>';	

		while ($row = mysql_fetch_assoc($result)) { // loop through every participant
			echo '<tr><td>';
			
			$result_answer = mysql_query("SELECT answer FROM answers WHERE meetings_id = $meetings_id AND 
			participants_id = " . $row['participants_id'], $link);
			if (mysql_num_rows($result_answer) > 0) echo '<input type="checkbox" name="sq[]" value="' . $row['participants_id'] . '" /></td>
			<td  class="leftalign"><a href="partanswers.php?p=' . $row['participants_id'] . '&amp;m=' . $meetings_id . '">Answers</a>';
			else echo '<input type="checkbox" name="sq[]" value="' . $row['participants_id'] . '" checked /></td><td class="leftalign">No answers';
			
			echo '</td><td class="leftalign">' . $row['lastname'] . ', ' . $row['firstname'] . '</td><td class="leftalign">' . $row['email'] . "</td>";
			
			$result_sugg = mysql_query("SELECT suggestions_id FROM suggestions WHERE meetings_id = $meetings_id");
			while ($row_sugg = mysql_fetch_array($result_sugg)) { // loop through every suggestion 
				$result_answer = mysql_query("SELECT answer FROM answers WHERE meetings_id = $meetings_id AND participants_id = " .
				$row['participants_id'] . ' AND suggestions_id = ' . $row_sugg[0]);
				$answ = mysql_fetch_row($result_answer);
				echo "<td>$answ[0]</td>"; // display answer for this suggestion column
			}
			echo '</tr>';
		}
	}
		
	echo '</table><input type="hidden" name="m" value="' . $meetings_id . '" />		
	<p><input type="submit" value="Send questionnaires to checked" name="sendmails" /></p><hr />
	<p><input type="submit" onClick="return confirmSubmit()" value="Delete meeting" name="deletem" /></p></form>';
			
	echo '<p><form action="editmeeting.php?m=' . $meetings_id . '" method="post">
	<input type="submit" value="Edit meeting" /></form>';
		
} elseif ($_POST['sendmails']) {
	// --- "Send questionnaires" was pressed
	//echo '<pre>';var_dump($_POST);echo '/<pre>'; // debugging
	$meetings_id = escape_smart($_POST['m']);
	$result = mysql_query("SELECT firstname, lastname, email FROM conveners WHERE conveners_id = $conveners_id");
	$cn = mysql_fetch_row($result); 	
	$result = mysql_query("SELECT sendmails FROM settings WHERE settings_id=1");
	$sm = mysql_fetch_row($result); // 0 = dont send mails (for testing), 1 = send mails (normal behaviour)
	$result = mysql_query("SELECT title, deadline FROM meetings WHERE meetings_id = $meetings_id");
	$mi = mysql_fetch_row($result);
	if (date("Y-m-d H:i:s") >= $mi[1]) { // no need to mktime() since meetings.deadline datetimes are in valid form
		die("<h2>Questionnaires not send!</h2><p>Deadline for giving answers was $mi[1], 
		<a href=\"editmeeting.php?m=$meetings_id\">correct deadline</a> to send questionnaires.</p>
		<p><a href=\"viewmeeting.php?m=$meetings_id\">Back to meeting</a></p>");
	}
	$result = mysql_query("SELECT * FROM meetings_have_participants LEFT JOIN participants ON 
	meetings_have_participants.participants_id = participants.participants_id WHERE meetings_id = $meetings_id", $link);
	if (!$_POST['sq']) 
		die("<h2>No participants selected!</h2><p>You must select participant(s) before sending questionairres.</p>
		<p><a href=\"viewmeeting.php?m=$meetings_id\">Back to meeting</a></p>"); 
	if (mysql_num_rows($result) == 0) 
		die("<h2>No participants found for this meeting! </h2><p>Please <a href=\"editmeeting.php?m=$meetings_id\">
		add participants</a> before sending questionnaires.</p><p><a href=\"viewmeeting.php?m=$meetings_id\">Back to meeting</a></p>"); 
	else
	if ($sm[0] == 0)
		echo '<h2>Testing in process!</h2><p>Not yet sending e-mails, but here are the links to include in the e-mails:</p>';
	else
		echo '<h2>Sending questionnaires</h2><p>Questionnairy e-mails were sent to following addresses:</p><ul>';
	while ($row = mysql_fetch_assoc($result)) {
		if (in_array($row['participants_id'], $_POST['sq'])) {
			$hash = md5($row['participants_id'] . $meetings_id . $salt);
			$to = $row['email'];
			$subject = $mi[0]; // subject for the emails
			$greeting = 'Dear ' . $row['firstname'] . ' ' . $row['lastname'] . ",\n\n";
			if (suggformat($meetings_id) == 0) $message =  $greeting . "You are invited to \"$mi[0]\", but time and location have not yet been settled. Please give your opinion by following the link below:\n\n$answurlprefix" .  'answer.php?m=' . $meetings_id . '&p=' . $row['participants_id'] . '&h=' . $hash . $emailfooter;
			else $message =  $greeting . "You are invited to give opinion in \"$mi[0]\". Please give your opinion by following the link below:\n\n$answurlprefix" .  'answer.php?m=' . $meetings_id . '&p=' . $row['participants_id'] . '&h=' . $hash . $emailfooter;
			$headers = 	"From: \"$cn[0] $cn[1] via Convener\"<$cn[2]>\r\n"; // encoding could be selected here
			if ($sm[0] == 1) {
				echo "<li>$to"; 
				mail($to, $subject, $message, $headers) OR printf(' <b>FAILED!</b>');
				echo '</li>';	
			} else {
				echo '<a href="' . $answurlprefix . 'answer.php?m=' . $meetings_id . '&p=' . $row['participants_id'] . 
				'&h=' . $hash . '">answer.php?m=' . $meetings_id . '&p=' . $row['participants_id'] . '&h=' . $hash . 
				'</a><br>';
			}
		}
	}
	echo '</ul><p><a href="viewmeeting.php?m=' . $meetings_id . '">View meeting</a></p>';
	mysql_query("UPDATE meetings SET questionnaires_sent = '" . date("Y-m-d H:i:s") . "' WHERE meetings_id = $meetings_id", $link) 
	OR die(MYSQL_ERROR());
	
} elseif ($_POST['dlnow']) {
	// --- "Deadline now" was pressed
	$meetings_id = escape_smart($_POST['m']);	
	$deadline = date("Y-m-d H:i:s");
	mysql_query("UPDATE meetings SET deadline = '$deadline' WHERE meetings_id = '$meetings_id'", $link) 
	OR die(MYSQL_ERROR());
	echo '<h2>Deadline set to ' . $deadline . '</h2><p>Answering time for this meeting has ended.</p>
	<p><a href="viewmeeting.php?m=' . $meetings_id . '">View meeting</a> and send invitations</p>';
		
} elseif ($_POST['deletem']) {
	// --- "Delete meeting" was pressed or several meetings selected for deletion
	echo '<h2>Delete meetings</h2><ul>';
	if (is_array($_POST['m'])) {
		foreach ($_POST['m'] as $value) {
			$value = escape_smart($value);
			mysql_query("DELETE FROM meetings WHERE meetings_id = '$value' LIMIT 1", $link) OR die(MYSQL_ERROR());
			echo "<li>Meeting $value deleted</li>";
		}
	} else {
		$meetings_id = escape_smart($_POST['m']);
		mysql_query("DELETE FROM meetings WHERE meetings_id = '$meetings_id' LIMIT 1", $link) OR die(MYSQL_ERROR());
		echo "<li>Meeting $meetings_id deleted</li>";
	}
	echo '</ul><p><a href="viewmeeting.php">View meetings</a></p>';
	
} elseif ($_POST['invitations']) {
	// --- "Send invitations" was pressed
	$meetings_id = escape_smart($_POST['m']);
	if (!$_POST['win']) die ("<h2>Missing suggestion!</h2><p>You must select the winning suggestion. Invitations are send according to 
	this choice.</p><p><a href=\"viewmeeting.php?m=$meetings_id\">Back to meeting</a></p>"); 
	$suggestions_id = escape_smart($_POST['win']);
	// --- query title of meeting
	$result = mysql_query("SELECT title FROM meetings WHERE meetings_id = $meetings_id"); 
	$title = mysql_fetch_row($result);
	// --- query winning suggestion  
	$result = mysql_query("SELECT * FROM suggestions WHERE suggestions_id = $suggestions_id"); 
	$sugg = mysql_fetch_assoc($result);
	if (suggformat($meetings_id)== 0) {
		$subject = "Invitation: $title[0] " . $sugg['starttime'] . ', ' . $sugg['location'];
		$message = "Dear [NAME],\n\nYou were asked to give an opinion about \"$title[0]\". Date and location have now been settled and you are invited to \"$title[0]\" beginning " . $sugg['starttime'] . ' at ' . $sugg['location'] . '.' . $emailfooter;		
	} else {
		$subject = "$title[0]: " . $sugg['freetext'];
		$message = "Dear [NAME],\n\nYou were asked to give an opinion about \"$title[0]\". Decision about the issue has now been made and it was \"" . $sugg['freetext'] . '".' . $emailfooter;
	}
	
	echo '<form action="viewmeeting.php" method="post"><h1>Send invitations to ' . $title[0] . '</h1><h2>Edit invitation e-mail message	</h2>
	<p>Subject:<br /><input type="text" name="subject" value="' . $subject . '" maxlenght="100"></p><p>Message:<br />
	<textarea name="message" rows="12" cols="50">' . $message . '</textarea></p><h2>Select participants</h2>';
			
	$result = mysql_query("SELECT * FROM meetings_have_participants LEFT JOIN participants ON 
	meetings_have_participants.participants_id = participants.participants_id WHERE meetings_id = $meetings_id", $link);
	
	if (mysql_num_rows($result) == 0) {
		echo "<p>Can't send invitations because no participants selected for this meeting!</p>
		<p><a href=\"viewmeeting.php?m=$meetings_id\">Back to meeting</a></p>
		<p><a href=\"editmeeting.php?m=$meetings_id\">Add participants</a></p>";
	} else {				
		echo'<table border="1"><tr class="tblh"><td></td><td>Details</td><td>Name</td>
		<td>Email</td>';
		$result_sugg = mysql_query("SELECT suggestions_id FROM suggestions WHERE meetings_id = $meetings_id 
		ORDER BY suggestions_id ASC"); 	
		$i = 1;
		while ($row = mysql_fetch_array($result_sugg)) {
			echo "<td>$i</td>";
			$i++;
		}
		echo '</tr>';	

		while ($row = mysql_fetch_assoc($result)) { // loop through every participant
			echo '<tr><td><input type="checkbox" name="si[]" value="' . $row['participants_id'] . '" checked /></td>
			<td><a href="partanswers.php?p=' . $row['participants_id'] . '&amp;m=' . $meetings_id . '">Answers</a></td>
			<td>' . $row['lastname'] . ', ' . $row['firstname'] . '</td><td>' . $row['email'] . "</td>";
			
			$result_sugg = mysql_query("SELECT suggestions_id FROM suggestions WHERE meetings_id = $meetings_id");
			while ($row_sugg = mysql_fetch_array($result_sugg)) { // loop through every suggestion 
				$result_answer = mysql_query("SELECT answer FROM answers WHERE meetings_id = $meetings_id AND 
				participants_id = " . $row['participants_id'] . ' AND suggestions_id = ' . $row_sugg[0]);
				$answ = mysql_fetch_row($result_answer);
				echo "<td>$answ[0]</td>";	 // display answer for this suggestion column
			}
			echo '</tr>';
		}
	echo '</table><p><input type="hidden" name="m" value="' . $meetings_id . '">
	<input type="submit" value="Send invitations to checked" name="sendinv" /></p></form>';
	}

} elseif ($_POST['sendinv']) {
	// --- "Send invitations to checked" was pressed
	//echo '<pre>';var_dump($_POST);echo '</pre>'; //debugging
	$meetings_id = escape_smart($_POST['m']);
	$subject = stripslashes($_POST['subject']);   
	if (eregi("\r", $subject) || eregi("\n", $subject)) die('<p>Possible Email Injection Attack detected. No need to use \r or \n in subject...');
	$message = stripslashes($_POST['message']);
	
	$result = mysql_query("SELECT firstname, lastname, email FROM conveners WHERE conveners_id = $conveners_id");
	$cn = mysql_fetch_row($result); 	
	$result = mysql_query("SELECT sendmails FROM settings WHERE settings_id=1");
	$sm = mysql_fetch_row($result); // 0 = dont send mails (for testing), 1 = send mails (normal behaviour)
	
	$result = mysql_query("SELECT * FROM meetings_have_participants 
	LEFT JOIN participants ON meetings_have_participants.participants_id = participants.participants_id 
	WHERE meetings_id = $meetings_id", $link);
	if (mysql_num_rows($result) == 0) { 
		die("<h2>No participants found for this meeting! </h2><p>Please <a href=\"editmeeting.php?m=$meetings_id\">
		add participants</a> before sending questionnaires.</p>"); 
	} else {	
		$messagehtml = stripslashes(nl2br($message));
		if ($sm[0] == 0) {
			echo "<h2>Testing in process!</h2><hr /><p><b>Subject:</b> $subject</p><p><b>Message:</b></p><p>" .  $messagehtml 
			. "</p><hr /><p>Not yet sending invitations, but here are the e-mail addresses that would receive the invitation:
			</p><ul>";
		} else {
			echo "<h2>Sending invitations</h2><hr /><p><b>Subject:</b> $subject</p><p><b>Message:</b></p><p>" .  $messagehtml 
			. "</p><hr /><p><b>Invtitation e-mails were sent to following addresses:</b></p><ul>";
		}
	}
	
	while ($row = mysql_fetch_assoc($result)) {
		if (in_array($row['participants_id'], $_POST['si'])) {
			echo '<li>';
			$to = $row['email'];	
			$headers = 	"From: \"$cn[0] $cn[1] via Convener\"<$cn[2]>\r\n"; // encoding could be selected here
			if ($sm[0] == 1) {
				echo $to; 
				$message_named = str_replace('[NAME]', $row['firstname'] . ' ' . $row['lastname'], $message);
				mail($to, $subject, $message_named, $headers) OR printf(' <b>FAILED!</b>');
				echo '<br>';	
			} else {
				echo $row['email'] . '<br>';
			}
		}
		echo '</li>';
	}
	echo '</ul>';
	

} else {
	// --- display meetings owned by this convener
	$result = mysql_query("SELECT title, meetings_id, deadline FROM meetings WHERE conveners_id = $conveners_id");
	echo '<h2>Select meeting</h2>';
	if (mysql_num_rows($result) == 0) {
		die('<p class="notice">No meetings found!</p><p>Please <a href="createmeeting.php">create a meeting</a> first.</p>');
	} else {		
		echo '<p>You are the owner of following meetings:</p><form action="viewmeeting.php" method="post"><table><tr>
		<th></th><th>Id</th><th class="leftalign">Name</th><th>Sugg. format</th><th>Deadline</th><th>Participants</th><th>Answer %</th></tr>';
		while ($row = mysql_fetch_assoc($result)) {
			// -- query how many participants
			$answp = 0;
			$result_part = mysql_query('SELECT COUNT(*) FROM meetings_have_participants WHERE meetings_id = ' . 
			$row['meetings_id']);
			$part = mysql_fetch_row($result_part);
			// --- query how many has answered (count participants grouped by suggestions)
			$result_answ = mysql_query("SELECT COUNT(participants_id) FROM answers WHERE meetings_id = " . $row['meetings_id']
			. " GROUP BY suggestions_id");
			$answ = mysql_fetch_row($result_answ);
			if (!$part[0] == 0) $answp = round($answ[0] / $part[0] * 100, 2);
			echo '<tr><td><input type="checkbox" name="m[]" value="' . $row['meetings_id'] . '" /></td><td>' . $row['meetings_id'] . '</td>
			<td  class="leftalign"><a href="viewmeeting.php?m=' . $row['meetings_id'] . '">' . $row['title'] . '</a></td><td>' 
			. (suggformat($row['meetings_id']) == 0 ? 'Date & location' : 'Free text') . '</td><td>' . $row['deadline'] . '</td><td>' . $part[0] . 
			'</td><td>' . $answp . '</td></tr>';
		}
	}
	echo '</table><p><input type="submit" onClick="return confirmSubmit()" name="deletem" value="Delete selected" /></p></form>';
}
?>
</div>
</div>
</body>
</html>

Return current item: Convener