<?php echo MigurToolBar::getInstance('import-toolbar')->render(); ?> <div class="clr"></div> <div id="import-file" class="file-form hide"> <div id="import-file-upload"> <fieldset id="import-uploadform"> <legend><?php echo $this->config->get('upload_maxsize') == '0' ? JText::_('COM_MEDIA_UPLOAD_FILES_NOLIMIT') : JText::sprintf('COM_MEDIA_UPLOAD_FILES', $this->config->get('upload_maxsize')); ?> </legend> <fieldset class="upload-noflash" class="actions"> <input type="file" id="import-upload-file" name="Filedata-import" size="70"/> <input type="submit" id="import-upload-submit" value="<?php echo JText::_('COM_MEDIA_START_UPLOAD'); ?> "/> <ul class="upload-queue"> <li></li> </ul> </fieldset> <?php echo $this->loadTemplate('uploadform', ''); ?> <input type="hidden" name="return-url" value="<?php echo base64_encode('index.php?option=com_media'); ?>
echo JText::_('com_newsletter_FILTER_SEARCH_DESC'); ?> " /> <button type="submit" class="btn"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?> </button> <button type="button" onclick="document.id('lists_filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?> </button> </div> <?php echo MigurToolBar::getInstance('lists')->render(); ?> </fieldset> <div class="clr"> </div> <table class="sslist"> <thead> <tr> <th width="1%"> <input type="checkbox" name="checkall-toggle" value="" onclick="checkAll(this)" /> </th> <th class="left"> <?php echo JHtml::_('multigrid.sort', 'JGLOBAL_USERNAME', 'a.name', $this->lists->listDirn, $this->lists->listOrder, null, null, 'listsForm'); ?>
/** * Add the page title and toolbar. * * @return void * @since 1.0 */ protected function addToolbar() { JToolBarHelper::title(JText::_('COM_NEWSLETTER_DASHBOARD_TITLE'), 'article.png'); $bar = JToolBar::getInstance(); $bar->appendButton('Link', 'alert', 'COM_NEWSLETTER_NOTIFICATIONS', 'index.php?option=com_newsletter&view=logs'); JToolBarHelper::custom('', 'progress', '', '', false); $bar = MigurToolBar::getInstance('newsletters-toolbar'); $bar->appendButton('Link', 'new', 'COM_NEWSLETTER_NEWSLETTER_CREATE', 'index.php?option=com_newsletter&view=newsletter'); $bar->appendButton('Popup', 'export', 'COM_NEWSLETTER_NEWSLETTER_SEND', 'index.php?option=com_newsletter&view=sender&tmpl=component', 920, 450, 0, 0); $bar = MigurToolBar::getInstance('subscribers-toolbar'); $bar->appendButton('Popup', 'new', 'COM_NEWSLETTER_SUBSCRIBER_CREATE', 'index.php?option=com_newsletter&view=subscriber&tmpl=component', 400, 220, 0, 0); $bar->appendButton('Popup', 'new', 'COM_NEWSLETTER_LIST_CREATE', 'index.php?option=com_newsletter&view=list&tmpl=component', 1000, 600, 0, 0); $bar = MigurToolBar::getInstance('config-toolbar'); $bar->appendButton('Popup', 'export', 'COM_NEWSLETTER_EXTENSIONS_INSTALL', 'index.php?option=com_newsletter&view=extension&layout=install&tmpl=component', 350, 150, 0, 0); $bar->appendButton('Link', 'options', 'COM_NEWSLETTER_CONFIGURATION', 'index.php?option=com_newsletter&view=configuration'); $bar = MigurToolBar::getInstance('help-toolbar'); $bar->appendButton('Popup', 'publish', 'COM_NEWSLETTER_ABOUT', 'http://migur.com/products/newsletter', 800, 600, 0, 0); $bar->appendButton('MigurHelp', 'help', 'COM_NEWSLETTER_HELP', 'http://migur.com/support/documentation/newsletter'); // Load the submenu. NewsletterHelper::addSubmenu(JRequest::getVar('view')); }
/** * Add the page title and toolbar. * * @return void * @since 1.0 */ protected function addToolbar() { $isNew = !JRequest::getInt('list_id', false); $bar = JToolBar::getInstance('multitab-toolbar'); if ($isNew && AclHelper::actionIsAllowed('list.add') || !$isNew && AclHelper::actionIsAllowed('list.edit')) { $bar->appendButton('Standard', 'apply', 'JTOOLBAR_APPLY', 'list.apply', false); $bar->appendButton('Standard', 'save', 'JTOOLBAR_SAVE', 'list.save', false); } $bar->appendButton('Link', 'cancel', 'JTOOLBAR_CLOSE', 'index.php?option=com_newsletter&view=close&tmpl=component', false); $bar = MigurToolBar::getInstance('import-toolbar'); $bar->appendButton('Link', 'export', 'COM_NEWSLETTER_IMPORT_FROM_FILE', '#'); }
<fieldset id="dashboard-subscribers"> <legend><?php echo JText::_('COM_NEWSLETTER_SUBSCRIBERS'); ?> </legend> <?php echo MigurToolBar::getInstance('subscribers-toolbar')->render(); ?> </fieldset> <fieldset id="dashboard-help"> <legend><?php echo JText::_('COM_NEWSLETTER_HELP_N_ABOUT'); ?> </legend> <?php echo MigurToolBar::getInstance('help-toolbar')->render(); ?> </fieldset> </div> <fieldset id="statistic"> <legend><?php echo JText::_('COM_NEWSLETTER_STATISTICS'); ?> </legend> <div id="dashboard-statistic-chart"></div> </fieldset> <script type="text/javascript"> migurLegend = [
/** * Add the page title and toolbar. * * @return void * @since 1.0 */ protected function addToolbar() { JToolBarHelper::title(JText::_('COM_NEWSLETTER_SUBSCRIBERS_TITLE'), 'article.png'); $bar = MigurToolBar::getInstance('subscribers', null, ''); if (AclHelper::actionIsAllowed('list.edit')) { $bar->appendButton('Link', 'cancel', 'COM_NEWSLETTER_REMOVE_FROM_LIST', 'list.unbindgroup', false); $bar->appendButton('Link', 'copy', 'COM_NEWSLETTER_ASSIGN_TO_LIST', 'list.assigngroup', false); } $bar->appendButton('Popup', 'new', 'JTOOLBAR_NEW', 'index.php?option=com_newsletter&task=subscriber.add&tmpl=component', 400, 220, 0, 0); $bar->appendButton('Standard', 'trash', 'JTOOLBAR_DELETE', 'subscribers.delete', false); $bar->appendButton('Standard', 'unpublish', 'JTOOLBAR_DISABLE', 'subscribers.unpublish', false); $bar->appendButton('Standard', 'publish', 'JTOOLBAR_ENABLE', 'subscribers.publish', false); $bar->appendButton('MigurHelp', 'help', 'COM_NEWSLETTER_HELP', 'http://migur.com/support/documentation/newsletter'); $bar = MigurToolBar::getInstance('lists'); if (AclHelper::actionIsAllowed('list.add')) { $bar->appendButton('Popup', 'new', 'JTOOLBAR_NEW', 'index.php?option=com_newsletter&view=list&tmpl=component', 1000, 600, 0, 0); } $bar->appendButton('Standard', 'trash', 'JTOOLBAR_DELETE', 'lists.delete', false); if (AclHelper::actionIsAllowed('list.edit')) { $bar->appendButton('Standard', 'unpublish', 'JTOOLBAR_DISABLE', 'lists.unpublish', false); $bar->appendButton('Standard', 'publish', 'JTOOLBAR_ENABLE', 'lists.publish', false); } $bar->appendButton('MigurHelp', 'help', 'COM_NEWSLETTER_HELP', 'http://migur.com/support/documentation/newsletter'); // Load the submenu. NewsletterHelper::addSubmenu(JRequest::getVar('view')); }
$filterList = $this->subscribers->state->get('filter.list'); ?> <form id="form-subscribers" action="<?php echo JRoute::_('index.php?option=com_newsletter&view=subscribers&form=subscribers'); ?> " method="post" name="subscribersForm" > <fieldset> <legend><?php echo JText::_('COM_NEWSLETTER_SUBSCRIBERS'); ?> </legend> <fieldset class="filter-bar"> <?php echo MigurToolBar::getInstance('subscribers')->render(); ?> <div id="ss-filter-panel-control" class="filter-panel-control"></div> <div class="clr"></div> <div id="ss-filter-panel" class="filter-panel <?php echo !empty($filterList) ? 'opened' : ''; ?> "> <div class="fltlft"> <div class="label"><?php echo JText::_('COM_NEWSLETTER_STATE'); ?> </div> <select name="filter_published" class="inputbox fltlt" onchange="this.form.submit()"> <option value=""><?php echo JText::_('JOPTION_SELECT_PUBLISHED');