Esempio n. 1
0
 function display()
 {
     $app =& JFactory::getApplication();
     $initial_view = JRequest::getString('iview', 'login');
     if ($initial_view == 'logout') {
         return $this->logoutUser();
     } else {
         if ($initial_view == 'register') {
             if (!JobBoardHelper::allowRegistration()) {
                 $app->redirect(JRoute::_('index.php?option=com_jobboard&view=member&iview=login'), JText::_('COM_JOBBOARD_ENT_NOTALLOWED'), 'error');
                 return;
             }
         }
         $app->setUserState('com_jobboard.member.initial_view', $initial_view, 'string');
         $return = JRequest::getString('redirect', '');
         $view =& $this->getView('member', 'html');
         $view->assign('iview', $initial_view);
         $view->assign('redirect', $return);
         $view->display();
     }
 }
Esempio n. 2
0
    echo JText::_('COM_JOBBOARD_TXTPASSWORD');
    ?>
</label>
                            <div class="elements">
                                <input type="password" name="password" />
                            </div>
                            <div class="forgotPass">
                                <a href="<?php 
    echo JRoute::_('index.php?option=' . $this->user_entry_point . '&view=reset');
    ?>
" class="forgot"><?php 
    echo JText::_('COM_JOBBOARD_TXTRESETPASS');
    ?>
</a>
                                <?php 
    if (JobBoardHelper::allowRegistration()) {
        ?>
                                  <a href="<?php 
        echo JRoute::_('index.php?option=com_jobboard&view=member&iview=register');
        ?>
" id="signup"><?php 
        echo JText::_('COM_JOBBOARD_TXTREGISTER');
        ?>
</a>
                                <?php 
    }
    ?>
                            </div>
                        </div>
                        <div class="field fLoginOptions clear">
                            <div class="elements">
Esempio n. 3
0
<!-- End Style sheets -->

<?php 
$sortlink = JRoute::_('index.php?option=com_jobboard&view=list&Itemid=' . $itemid);
$document =& JFactory::getDocument();
$daterange = $this->daterange;
$params =& $app->getParams('com_content');
$selcat = $this->selcat;
$seldesc = '';
?>
<!-- feed prefix (SEF dependent) -->
<?php 
$test_link = JRoute::_('index.php?option=com_jobboard', 1, false);
$test_rsult = strstr($test_link, 'option=com_jobboard');
$feedPrefix = empty($test_rsult) ? '?' : '&amp;';
$allow_reg = JobBoardHelper::allowRegistration();
?>
<div id="loginWrapper">
    <?php 
if ($user->get('guest')) {
    ?>
        <div class="jbdispnone" id="loginPopup">
            <form action="<?php 
    echo JRoute::_('index.php?option=com_jobboard&view=member', true, JobBoardHelper::useSecure());
    ?>
" id="loginPopupForm" method="post">
                <div class="content">
                    <div class="fields">
                        <div class="field">
                            <label><?php 
    echo JText::_('COM_JOBBOARD_TXTUSERNAME');