Exemplo n.º 1
0
function get_event_accreditation_name($accreditation_id, $attendee)
{
    $name = '';
    foreach ($attendee['Accreditations'] as $a) {
        if ($a['Accreditation']['id'] == $accreditation_id) {
            $name = get_event_name($a['Accreditation']['event_id'], $attendee['Events']) . " - " . get_accreditation_type($a['Accreditation']['accreditation_type_id'], $attendee['AccreditationTypes']);
        }
    }
    return $name;
}
Exemplo n.º 2
0
<!DOCTYPE html>
<html>
    <head>
        <?php 
include "conf.php";
$event = get_event_name($_GET["id"]);
?>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="style/style.css" >
        <title></title>
    </head>
    <body>
        <table id="main_table" border="1" class="main">
            <tr class="main">
                <td colspan="2" class="main" id="header"><?php 
include "banner.php";
?>
</td>
            </tr>
            
            <tr class="main">
                 <td class="main" colspan="2" id="tmenu_holder" >
                    <?php 
include "tmenu.php";
?>
                    
                </td>
            </tr>
            <tr class="main">
                <td class="main" id="smenu">
                    <?php 
Exemplo n.º 3
0
 public function set_prerequisites($attendee_id = null)
 {
     // Get attendees
     $b = $this->Attendee->find('all');
     $attendees = array();
     foreach ($b as $k) {
         if ($k['Attendee']['id'] != $attendee_id) {
             // Removes the currently edited attendee from the list, as they shouldnt be a subordinate of themselves.
             $attendees[$k['Attendee']['id']] = $k['Attendee']['name'];
         }
     }
     $a = ClassRegistry::init('Eventure.Accreditation')->find('all');
     $at = ClassRegistry::init('Eventure.AccreditationType')->find('all');
     $ev = ClassRegistry::init('Eventure.Event')->find('all');
     $accreditations = array();
     foreach ($a as $k) {
         $accreditations[$k['Accreditation']['id']] = get_event_name($k['Accreditation']['event_id'], $ev) . " - " . get_accreditation_type($k['Accreditation']['accreditation_type_id'], $at);
     }
     $this->set(compact('attendees', 'accreditations', 'subordinates'));
 }