Esempio n. 1
0
                    <td class="center">
                        <?php 
            echo $this->html('grid.featured', $event, 'events', 'featured');
            ?>
                    </td>

                    <td class="center">
                        <?php 
            echo $this->html('grid.published', $event, 'events', 'state', array(2 => 'approve'), array(2 => 'COM_EASYSOCIAL_GRID_TOOLTIP_APPROVE_ITEM'), array(2 => 'pending'));
            ?>
                    </td>

                    <td class="center">
                        <a href="<?php 
            echo FRoute::url(array('view' => 'users', 'layout' => 'form', 'id' => $event->getCreator()->id));
            ?>
" target="_blank"><?php 
            echo $event->getCreator()->getName();
            ?>
</a>
                    </td>

                    <td class="center">
                        <?php 
            echo $event->getTotalGuests();
            ?>
                    </td>
                    <?php 
        }
        ?>
Esempio n. 2
0
 public function restoreTrash($tpl = null)
 {
     FD::info()->set($this->getMessage());
     return $this->redirect(FRoute::url(array('view' => 'stream')));
 }
Esempio n. 3
0
 public function form()
 {
     return $this->app->redirect(FRoute::url(array('view' => 'regions', 'layout' => 'form')));
 }
Esempio n. 4
0
 public function move()
 {
     FD::info()->set($this->getMessage());
     $parent = $this->input->getInt('parent');
     $layout = $this->input->getString('layout');
     $url = array('view' => 'regions');
     if (!empty($layout)) {
         $url['layout'] = $layout;
     }
     if (!empty($parent)) {
         $url['parent'] = $parent;
     }
     return $this->redirect(FRoute::url($url));
 }
Esempio n. 5
0
 /**
  * Post action after removing guests admin role to redirect back to the event form.
  * @author Jason Rey <*****@*****.**>
  * @since  1.3
  * @access public
  */
 public function demoteGuests()
 {
     FD::info()->set($this->getMessage());
     $id = JRequest::getInt('id');
     return $this->redirect(FRoute::url(array('view' => 'events', 'layout' => 'form', 'id' => $id, 'activeTab' => 'guests')));
 }
Esempio n. 6
0
 public function updateRecurringSuccess()
 {
     FD::info()->set(false, JText::_('COM_EASYSOCIAL_EVENTS_FORM_UPDATE_SUCCESS'), SOCIAL_MSG_SUCCESS);
     $task = $this->input->getString('task');
     $eventId = $this->input->getInt('id');
     $event = FD::event($eventId);
     // Remove the post data from params
     $clusterTable = FD::table('Cluster');
     $clusterTable->load($event->id);
     $eventParams = FD::makeObject($clusterTable->params);
     unset($eventParams->postdata);
     $clusterTable->params = FD::json()->encode($eventParams);
     $clusterTable->store();
     if ($task === 'apply') {
         return $this->redirect(FRoute::url(array('view' => 'events', 'layout' => 'form', 'id' => $event->id, 'activeTab' => 'event')));
     }
     if ($task === 'savenew') {
         return $this->redirect(FRoute::url(array('view' => 'events', 'layout' => 'form', 'category_id' => $event->category_id)));
     }
     return $this->redirect(FRoute::url(array('view' => 'events')));
 }
Esempio n. 7
0
            <?php 
    }
    ?>
            <?php 
} else {
    ?>
                <tr class="is-empty">
                    <td colspan="<?php 
    echo $showOrdering ? 6 : 5;
    ?>
" class="center empty">
                        <?php 
    echo JText::_('COM_EASYSOCIAL_REGIONS_NO_REGIONS_FOUND');
    ?>
 <?php 
    echo JText::sprintf('COM_EASYSOCIAL_REGIONS_TRY_INITIALISE_DATABASE', FRoute::url(array('view' => 'regions', 'layout' => 'init')));
    ?>
                    </td>
                </tr>
            <?php 
}
?>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="<?php 
echo $showOrdering ? 6 : 5;
?>
" class="center">
                    <div class="footer-pagination"><?php 
echo $pagination->getListFooter();