LatSTE'2004 reģistrēto dalībnieku saraksts
- referents (uzstājas ar lekciju, prezentāciju, demonstrāciju)
- apmeklētājs (neuzstājas; ierodas uz interesējošo aktivitāti)
include ("../config.php");
include (LATSTE2004."/Participants.class.php");
$participant = new Participants();
$_STEP = 20;
$to_pos = $_STEP;
$start_pos = 0;
if (isset($_GET['page']))
{
$start_pos = ($_GET['page']-1) * $_STEP;
}
if ($participant->listParticipantsByLimit($start_pos, $to_pos))
{
echo "
| Uzvārds, Vārds |
Organizācija |
Dalības veids |
";
while ( $data = $participant->getObject() )
{
$id = $data->id->get();
$name = $data->name->get();
$surname = $data->surname->get();
$organization = $data->organization->get();
$participation = $data->type->get();
$part_text = "";
if ($participation == 1)
{
$part_text = "Referents Tēma: '" . $data->theme->get()."'
";
if ($data->paper->get() == 1)
{
$part_text .= "Referāts; ";
}
if ($data->demonstration->get() == 1)
{
$part_text .= "Demonstrējums; ";
}
if ($data->presentation->get() == 1)
{
$part_text .= "Prezentācija; ";
}
}
if ($participation == 3)
{
$part_text .= "Apmeklētājs Pasīva dalība; ";
}
echo " \n";
echo " | ".$surname.", ".$name." | \n";
echo " ".$organization." | \n";
echo " ".$part_text." | \n";
echo "
\n";
}
echo "
";
$reg_amount = $participant->countParticipants();
$page_amount = ceil($reg_amount/$_STEP);
echo "
Šobrīd ir reģistrētis ".$reg_amount." dalībnieki LatSTE'2004 konferencei.
";
if ($page_amount > 1)
{
echo "
Lapas: ";
for ($i=0; $i<$page_amount; $i++)
{
if ($_GET['page'] == ($i+1))
{
echo " ".($i+1)." ";
}
else
{
echo " ".($i+1)." ";
}
}
echo "
";
}
}
else
{
echo "
Šobrīd neviens LatSTE'2004 dalībnieks vēl nav reģistrējies.
";
}
?>