Ejemplo n.º 1
0
     }
     if (strlen($role->getValue('rol_start_time')) > 0) {
         $html = $gL10n->get('LST_FROM_TO', $role->getValue('rol_start_time', $gPreferences['system_time']), $role->getValue('rol_end_time', $gPreferences['system_time']));
     }
     $form->addStaticControl('list_date', $gL10n->get('DAT_DATE'), $html);
 }
 // Meeting point
 if (strlen($role->getValue('rol_location')) > 0) {
     $form->addStaticControl('list_location', $gL10n->get('SYS_LOCATION'), $role->getValue('rol_location'));
 }
 // add count of participants to role
 $html = $row['num_members'];
 if ($role->getValue('rol_max_members') > 0) {
     $html .= ' ' . $gL10n->get('LST_MAX', $role->getValue('rol_max_members'));
 }
 if ($lists->getActiveRole() && $row['num_former'] > 0) {
     // show former members
     if ($row['num_former'] == 1) {
         $textFormerMembers = $gL10n->get('SYS_FORMER');
     } else {
         $textFormerMembers = $gL10n->get('SYS_FORMER_PL');
     }
     $html .= '&nbsp;&nbsp;(<a href="' . $g_root_path . '/adm_program/modules/lists/lists_show.php?mode=html&amp;rol_id=' . $role->getValue('rol_id') . '&amp;show_members=1">' . $row['num_former'] . ' ' . $textFormerMembers . '</a>) ';
 }
 $form->addStaticControl('list_participants', $gL10n->get('SYS_PARTICIPANTS'), $html);
 // Leader of role
 if ($row['num_leader'] > 0) {
     $form->addStaticControl('list_leader', $gL10n->get('SYS_LEADERS'), $row['num_leader']);
 }
 // Member fee
 if (strlen($role->getValue('rol_cost')) > 0) {