public function with_button($type, $button = null, $icon = null, $style = null) { if (!is_null($button) and $button instanceof Button) { $this->buttons[$type] = $button; } else { $this->buttons[$type] = Button::create($type, $button, $icon, $style); } return $this; }
<? endforeach; ?> <td> <input type="checkbox" name="all[rows][]" value="<?php echo $member['seminar_id']; ?> " <? if (isset($checked[$member['seminar_id']]) && count(array_filter($checked[$member['seminar_id']])) == count($modules) + 1) echo 'checked'; ?>> </td> </tr> <? endforeach; ?> <? endif; ?> </tbody> <? endforeach; ?> <tfoot> <tr> <td colspan="<?php echo count($modules) + 3; ?> "> <?php echo Button::create(_('Übernehmen'), 'store', array('title' => _('Änderungen übernehmen'))); ?> <?php echo LinkButton::create(_('Zurücksetzen'), $controller->url_for('settings/notification')); ?> </td> </tr> </tfoot> </table> </form>
?> : <select required name="role_id" class="role-selector"> <option value="">-- <?php echo _('Bitte auswählen'); ?> --</option> <? foreach ($admin_insts as $data): ?> <optgroup label="<?php echo htmlReady(substr($data['Name'], 0, 70)); ?> "> <? Statusgruppe::displayOptionsForRoles($data['groups']) ?> </optgroup> <? foreach ($data['sub'] as $sub_id => $sub): ?> <optgroup label="<?php echo htmlReady(substr($sub['Name'], 0, 70)); ?> " class="nested"> <? Statusgruppe::displayOptionsForRoles($sub['groups']) ?> </optgroup> <? endforeach; ?> <? endforeach; ?> </select> </label> <?php echo Button::create(_('Zuweisen'), 'assign'); ?> </form>
echo _('Hilfe-Text:'); ?> </label> <textarea cols="60" rows="5" name="help_content_content" placeholder="<?php echo _('Bitte geben Sie den Text ein'); ?> "><?php echo $help_content->content ? htmlReady($help_content->content) : ''; ?> </textarea> <div "data-dialog-button" = "1"> <?php echo CSRFProtection::tokenTag(); ?> <? if ($via_ajax): ?> <?php echo Button::create(_('Speichern'), 'save_help_content', array('data-dialog' => '1', 'data-dialog-button' => '1')); ?> <? else: ?> <?php echo Button::createAccept(_('Speichern'), 'save_help_content'); ?> <?php echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('help_content/admin_overview'), array()); ?> <? endif; ?> </div> </fieldset> </form> </div>
static function create($displayName = "", $href = "#") { $that = parent::create("a", $displayName); $that->attributes["href"] = Helper::getLink($href); return $that; }
<div> <div class="button-group" style="vertical-align: middle;"> <?php echo Button::create(_('Zurück'), 'back', $previous === false ? array('disabled' => '') : array('value' => $previous)); ?> <?php echo Button::create(_('Weiter'), 'forward', $next === false ? array('disabled' => '') : array('value' => $next)); ?> </div> <div style="float: right;vertical-align: middle;"> <div class="button-group" style="vertical-align: middle;"> <?php echo Button::create(_('Anzeigen'), 'action', array('value' => 'display')); ?> <?php echo Button::create(_('Herunterladen'), 'action', array('value' => 'download')); ?> <?php echo Button::create(_('Installieren'), 'action', array('value' => 'install')); ?> </div> <?php echo LinkButton::createCancel(_('Zurücksetzen'), $controller->url_for('generator/reset')); ?> </div> </div> </form>
<option value="">- <?php echo _('Aktion wählen'); ?> </option> <option value="upgrade"><?php echo _('Akzeptieren'); ?> </option> <option value="remove"><?php echo _('Austragen'); ?> </option> <option value="message"><?php echo _('Nachricht senden'); ?> </option> <!--<option value="copy_to_course"><?php echo _('In Seminar verschieben/kopieren'); ?> </option>--> </select> <?php echo Button::create(_('Ausführen'), 'submit_accepted'); ?> </td> </tr> </tfoot> <? endif ?> </table> </form>
<input type="hidden" name="tour_filter_term" value="<?php echo htmlReady($tour_searchterm); ?> "> <?php echo CSRFProtection::tokenTag(); ?> <table class="default"> <? if ($filter_text) : ?> <tr><td colspan="1"> <?php echo $filter_text; ?> </td><td><div class="tour_reset_filter"> <?php echo Button::create(_('Auswahl aufheben'), 'reset_filter'); ?> </div> </td></tr> <? endif ?> </table> <? if (count($tours)) : ?> <table class="default"> <caption> <div class="tour_list_title"><?php echo _('Touren'); ?> </div> </caption> <colgroup> <col width="20">
<option value="">- <?php echo _('Aktion auswählen'); ?> </option> <option value="downgrade"><?php echo sprintf(_('Zu %s herunterstufen'), $status_groups['autor']); ?> </option> <option value="remove"><?php echo _('Austragen'); ?> </option> <option value="message"><?php echo _('Nachricht senden'); ?> </option> <!--<option value="copy_to_course"><?php echo _('In Seminar verschieben/kopieren'); ?> </option>--> </select> <?php echo Button::create(_('Ausführen'), 'submit_autor'); ?> </td> </tr> </tfoot> <? endif ?> </table> </form>