本文整理汇总了PHP中Assets::input方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::input方法的具体用法?PHP Assets::input怎么用?PHP Assets::input使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Assets
的用法示例。
在下文中一共展示了Assets::input方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getFormButton
function getFormButton($name, $attributes = array())
{
if (is_array($this->form_buttons[$name]['attributes'])) {
$attributes = array_merge((array) $attributes, (array) $this->form_buttons[$name]['attributes']);
}
if (!$this->form_buttons[$name]['is_picture']) {
if (isset($this->form_buttons[$name]['info']) && !isset($attributes['title'])) {
$attributes['title'] = $this->form_buttons[$name]['info'];
}
$caption = $this->form_buttons[$name]['caption'] ? $this->form_buttons[$name]['caption'] : $this->form_buttons[$name]['type'];
if (in_array($this->form_buttons[$name]['type'], words('cancel accept'))) {
$create = 'create' . $this->form_buttons[$name]['type'];
} else {
$create = 'create';
}
$ret = Button::$create($caption, $this->form_name . "_" . $name, $attributes);
} else {
// Yes, this is kinda ugly
$ret = Assets::input($this->form_buttons[$name]['type'], tooltip2($this->form_buttons[$name]['info']) + (array) $attributes + array('name' => $this->form_name . '_' . $name));
}
return $ret;
}
示例2: testAssetsInput
function testAssetsInput()
{
$this->assertEquals('<input type="image" title="Datei hochladen" class="text-bottom icon-role-clickable icon-shape-upload" width="20" height="20" src="images/icons/blue/upload.svg" alt="Datei hochladen">', Assets::input('icons/20/blue/upload', array('title' => _("Datei hochladen"), 'class' => "text-bottom")));
}
示例3: array
?>
<input type="hidden" name="to_copy[lecturers][<?php
echo $i;
?>
][]" value="<?php
echo $lecturer;
?>
">
<?php
echo Assets::input('icons/16/black/trash.png', array('name' => 'delete_lecturer[' . $i . '][' . $lecturer . ']'));
?>
<br>
<? endforeach;?>
<div style="float:left">
<?php
echo Assets::input('icons/16/yellow/arr_2up.png', array('name' => 'add_lecturer[' . $i . ']'));
?>
</div>
<? echo QuickSearch::get("add_doz_" . $i, $to_copy['search_lecturer'][$i])
->withButton(array('search_button_name' => 'search_doz', 'reset_button_name' => 'reset_search'))
->render();
?>
</div>
</li>
<?endfor;?>
</ol>
<div style="text-align:center">
<?php
echo Studip\Button::createAccept(_('Kopieren'), 'do_copy');
?>