本文整理汇总了PHP中Button::create方法的典型用法代码示例。如果您正苦于以下问题:PHP Button::create方法的具体用法?PHP Button::create怎么用?PHP Button::create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Button
的用法示例。
在下文中一共展示了Button::create方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: with_button
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;
}
示例2: if
<? 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>
示例3: _
?>
:
<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>
示例4: _
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>
示例5: create
static function create($displayName = "", $href = "#")
{
$that = parent::create("a", $displayName);
$that->attributes["href"] = Helper::getLink($href);
return $that;
}
示例6: array
<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>
示例7: _
<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>
示例8: htmlReady
<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">
示例9: _
<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>