<tr><td colspan="13" ><div class="alert alert-no-items" ><?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> </div></td><tr> <?php } else { foreach ($this->customers as $index => $customer) { $published_icon = $customer->published ? '<i class="icon-publish" ></i>' : '<i class="icon-unpublish" ></i>'; $customer_optin = $customer->optin ? '<i class="icon-publish" ></i>' : '<i class="icon-unpublish" ></i>'; $customer_optin = $customer->optin ? '<i class="icon-publish" ></i>' : '<i class="icon-unpublish" ></i>'; $customer_actions = '<a href="javascript:void(0);" class="btn btn-micro hastooltip" ><span class="icon-view"></span>' . ucfirst(JText::_('COM_JEPROSHOP_VIEW_LABEL')) . '</a><button data-toggle="dropdown" class="dropdown-toggle btn btn-micro" ><span class="caret" ></span></button><ul class="dropdown-menu" >'; $customer_actions .= '<li><a href="javascript://" onclick=""><span class="icon-edit"></span> ' . ucfirst(JText::_('COM_JEPROSHOP_EDIT_LABEL')) . '</a></li><li><a href="'; $customer_actions .= 'javascript://" onclick="" ><span class="icon-trash" ></span> ' . ucfirst(JText::_('COM_JEPROSHOP_DELETE_LABEL')) . '</a></li></ul>'; $customer_edit_link = JRoute::_('index.php?option=com_jeproshop&view=customer&task=edit&customer_id=' . $customer->customer_id . '&' . JeproshopTools::getCustomerToken() . '=1'); $customer_view_link = JRoute::_('index.php?option=com_jeproshop&view=customer&task=view&customer_id=' . $customer->customer_id . '&' . JeproshopTools::getCustomerToken() . '=1'); $customer_delete_link = JRoute::_('index.php?option=com_jeproshop&view=customer&task=delete&customer_id=' . $customer->customer_id . '&' . JeproshopTools::getCustomerToken() . '=1'); ?> <tr class="row_<?php echo $index % 2; ?> " > <td class="nowrap center " width="1%" ><?php echo $index + 1; ?> </td> <td class="nowrap center " width="1%" ><?php echo JHtml::_('grid.id', $index, $customer->customer_id); ?> </td> <td class="nowrap " width="3%" ><?php echo ucfirst($customer->title);
?> " ><?php echo JText::_('COM_JEPROSHOP_SEARCH_A_CUSTOMER_LABEL'); ?> </label></div> <div class="controls" > <div class="input-append" > <input type="text" id="jform_customer" value="" > <button class="btn "><i class="icon-search" ></i> </button> </div> <span class="control-static" > <?php echo JText::_('COM_JEPROSHOP_OR_LABEL'); ?> </span> <a class="fancybox_customer btn btn-primary" href="<?php echo JRoute::_('index.php?option=com_jeproshop&view=customer&use_ajax=1&' . JeproshopTools::getCustomerToken() . '=1'); ?> " ><i class="icon-plus-sign-alt" ></i> <?php echo JText::_('COM_JEPROSHOP_ADD_NEW_CUSTOMER_LABEL'); ?> </a> </div> </div> </div> </div> <div class="panel" ><div id="jform_customers" ></div></div> <div class="panel" style="display: none;" > <?php echo JHtml::_('bootstrap.startTabSet', 'cart_order_form', array('active' => 'cart')); echo JHtml::_('bootstrap.addTab', 'cart_order_form', 'cart', '<i class="icon-shopping-cart" ></i> ' . JText::_('COM_JEPROSHOP_CARTS_LABEL')); ?>
?> </td> <td class="nowrap" ><?php echo $customer->birthday; ?> </td> <td class="nowrap" ><?php echo $customer->date_add; ?> </td> <td class="nowrap center" ><i class="icon-<?php echo (isset($customer->published) ? '' : 'un') . 'publish'; ?> " ></i></td> <td class="nowrap" ><span class="pull-right" ><a href="<?php echo JRoute::_('index.php?option=com_jeproshop&view=customer&task=edit&customer_id=' . (int) $customer->customer_id . '&' . JeproshopTools::getCustomerToken() . '=1'); ?> " class="btn btn-group-action btn-micro" ><i class="icon-edit" ></i> <?php echo JText::_('COM_JEPROSHOP_EDIT_LABEL'); ?> </a></span></td> </tr> <?php } } ?> </tbody> </table> </div> </div> </div>