예제 #1
0
 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     $model = new EstivoleModelMember();
     $this->state = $this->get('State');
     $this->member = $this->get('Item');
     $this->form = $this->get('Form');
     $userId = $this->member->user_id;
     if ($userId != '') {
         $this->user = JFactory::getUser($userId);
     } else {
         $this->user = null;
     }
     $this->userProfile = JUserHelper::getProfile($userId);
     $this->userProfilEstivole = EstivoleHelpersUser::getProfilEstivole($userId);
     if ($this->member->member_id != null) {
         $modelCalendars = new EstivoleModelCalendars();
         $modelDaytime = new EstivoleModelDaytime();
         $this->calendars = $modelCalendars->listItems();
         for ($i = 0; $i < count($this->calendars); $i++) {
             $this->calendars[$i]->member_daytimes = $modelDaytime->getMemberDaytimes($this->member->member_id, $this->calendars[$i]->calendar_id);
         }
     }
     $this->addToolbar();
     //display
     return parent::display($tpl);
 }
예제 #2
0
						</th>
						<th class="center">
							<?php 
echo JText::_('Actions');
?>
						</th>
					</tr>
				</thead>
				<tbody>
				<?php 
$itemNumber = $this->limitstart;
foreach ($this->members as $i => $item) {
    $userId = $item->user_id;
    $user = JFactory::getUser($userId);
    $userProfile = JUserHelper::getProfile($userId);
    $userProfilEstivole = EstivoleHelpersUser::getProfilEstivole($userId);
    $itemNumber++;
    ?>
					<tr class="row<?php 
    echo $i % 2;
    ?>
">
						<td class="center hidden-phone">
							<?php 
    echo JHtml::_('grid.id', $i, $item->member_id);
    ?>
						</td>
						<td><?php 
    echo $itemNumber;
    ?>
</td>