science-ation/c_volunteers_list.php

60 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2025-02-12 02:22:50 +00:00
<?php
require_once('common.inc.php');
require_once('form.inc.php');
require_once('user.inc.php');
require_once('incomplete.inc.php');
require_once('project.inc.php');
require_once('filter.inc.php');
require_once('awards.inc.php');
require_once('committee/volunteers.inc.php');
$mysqli = sfiab_init('committee');
$u = user_load($mysqli);
$page_id = 'c_volunteers_list';
sfiab_page_begin($u, "Volunteer List", $page_id);
?>
<div data-role="page" id="<?=$page_id?>"><div data-role="main" class="sfiab_page" >
Work in progress...
<ul data-role="listview" data-filter="true" data-filter-placeholder="Search..." data-inset="true">
<?php
$volunteers = volunteers_load_all($mysqli, $config['year']);
foreach($volunteers as &$j) {
$filter_text = "{$j['name']} {$j['organization']}";
if(!$j['attending'])
$status = '<font color="blue">Not Attending</font>';
else if($j['v_complete'])
$status = '<font color="green">Complete</font>';
else
$status = '<font color="red">Incomplete</font>';
?>
<li data-filtertext="<?=$filter_text?>"><a href="#">
<h3><?=$j['name']?></h3><span class="ui-li-aside"><?=$status?></span>
fixme, info here
</a></li>
<?php
}
?>
</ul>
<?php
sfiab_page_end();
?>