Example #1
0
 public function select()
 {
     $order = JRequest::getVar('cid', '', '', 'int');
     if ($order != 0) {
         $config = JFactory::getConfig();
         $app = JFactory::getApplication();
         $code = sha1($order . $config->getValue('config.secret'));
         $link = JRoute::_(AsomHelperRoute::getRoute('orders.detail&order=' . $order), false);
         $app->setUserState('asom.code', $code);
         $app->redirect($link);
     } else {
         JFactory::getApplication()->redirect('index.php', JText::_('AOM_YOU_DONT_HAVE_PERMISSIONS'), 'error');
     }
 }
Example #2
0
        </tr>
       
      </thead>
      <tfoot>
        <td colspan="7"><?php 
    echo $this->pagination->getListFooter();
    ?>
</td>
      </tfoot>
      <tbody>
      <?php 
    $k = 0;
    $page = $this->pagination;
    for ($i = 0, $n = count($this->data); $i < $n; $i++) {
        $row =& $this->data[$i];
        $edit = JRoute::_(AsomHelperRoute::getRoute('orders.select&cid=' . $row->id), false);
        ?>
         <tr class="<?php 
        echo "row{$k}";
        ?>
">
	       <td align="right" width="20%"><?php 
        echo $row->id;
        ?>
</td>
           <td align="center" width="20%"><a href='<?php 
        echo $edit;
        ?>
'><?php 
        echo $row->recloc;
        ?>