/** * scopeControl. * * @param string $selectedScope Param * @param string $created_by Param * @param string $selectedFrontendChannel Param * * @return string HTML */ public static function scopeControl($selectedScope = null, $created_by = null, $selectedFrontendChannel = null) { $control = '<span class="label label-info">' . self::getScopeName($selectedScope) . '</span>'; if ($selectedScope == 'U' && $created_by) { $user = JFactory::getUser($created_by); $control .= ' ' . $user->username; } if ($selectedScope == 'S') { $control .= ' ' . EHtml::label('COM_AUTOTWEET_VIEW_CHANNEL_FRONTEND_TITLE', 'COM_AUTOTWEET_VIEW_CHANNEL_FRONTEND_DESC', 'xtform[frontendchannel]') . EHtmlSelect::yesNo($selectedFrontendChannel, 'xtform[frontendchannel]'); } return EHtml::genericControl('COM_AUTOTWEET_VIEW_CHANNEL_SCOPE_TITLE', 'COM_AUTOTWEET_VIEW_CHANNEL_SCOPE_DESC', null, $control, 'scope-control'); }
<td><?php echo SelectControlHelper::channels($this->getModel()->getState('channel'), 'channel', array('onchange' => 'this.form.submit();', 'class' => 'input-medium')); ?> </td> <?php if ($hasAjaxOrderingSupport === false) { ?> <td></td> <?php } ?> <td><?php echo EHtmlSelect::yesNo($this->getModel()->getState('published', 1), 'published', array('onchange-submit' => 'true', 'class' => 'btn-mini')); ?> </td> <td> </td> </tr> </thead> <tfoot> <tr> <td colspan="20"><?php EHtml::renderPagination($this); ?> </td> </tr> </tfoot>
<?php echo JText::_('COM_AUTOTWEET_BATCH_REQS_DESC'); ?> </p> <div class="control-group"> <label class="control-label" for="create_event" id="create_event-lbl" rel="tooltip" data-original-title="<?php echo JText::_('COM_AUTOTWEET_REQ_PUBLISHED_DESC'); ?> "><?php echo JText::_('COM_AUTOTWEET_REQ_PUBLISHED_TITLE'); ?> </label> <div class="controls inline"> <?php echo EHtmlSelect::yesNo(0, 'batch_published'); ?> </div> </div> <a class="btn" onclick="Joomla.submitbutton('batch');" type="submit"><?php echo JText::_('COM_AUTOTWEET_BATCH_MOVE_BUTTON'); ?> </a> </fieldset> </div> <?php } ?> </div> <div class="span6"><div class="alert alert-info">