本文整理汇总了PHP中submit_image_tag函数的典型用法代码示例。如果您正苦于以下问题:PHP submit_image_tag函数的具体用法?PHP submit_image_tag怎么用?PHP submit_image_tag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了submit_image_tag函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: imagen
public static function imagen($alt, $src)
{
$params = is_array($alt) ? $alt : Util::getParams(func_get_args());
$params["alt"] = $params[0];
$params["title"] = $params[0];
return submit_image_tag($params);
}
示例2: object_admin_double_list
function object_admin_double_list($object, $method, $options = array(), $callback = null)
{
$options = _parse_attributes($options);
$options['multiple'] = true;
$options['class'] = 'sf_admin_multiple';
if (!isset($options['size'])) {
$options['size'] = 10;
}
$label_all = __(isset($options['unassociated_label']) ? $options['unassociated_label'] : 'Unassociated');
$label_assoc = __(isset($options['associated_label']) ? $options['associated_label'] : 'Associated');
// get the lists of objects
list($all_objects, $objects_associated, $associated_ids) = _get_object_list($object, $method, $options, $callback);
$objects_unassociated = array();
foreach ($all_objects as $object) {
if (!in_array($object->getPrimaryKey(), $associated_ids)) {
$objects_unassociated[] = $object;
}
}
// remove non html option
unset($options['through_class']);
// override field name
unset($options['control_name']);
$name = _convert_method_to_name($method, $options);
$name1 = 'unassociated_' . $name;
$name2 = 'associated_' . $name;
$select1 = select_tag($name1, options_for_select(_get_options_from_objects($objects_unassociated), '', $options), $options);
$options['class'] = 'sf_admin_multiple-selected';
$select2 = select_tag($name2, options_for_select(_get_options_from_objects($objects_associated), '', $options), $options);
$html = '<div>
<div style="float: left">
<div style="font-weight: bold; padding-bottom: 0.5em">%s</div>
%s
</div>
<div style="float: left">
%s<br />
%s
</div>
<div style="float: left">
<div style="font-weight: bold; padding-bottom: 0.5em">%s</div>
%s
</div>
<br style="clear: both" />
</div>
';
$response = sfContext::getInstance()->getResponse();
$response->addJavascript(sfConfig::get('sf_prototype_web_dir') . '/js/prototype');
$response->addJavascript(sfConfig::get('sf_admin_web_dir') . '/js/double_list');
return sprintf($html, $label_all, $select1, submit_image_tag(sfConfig::get('sf_admin_web_dir') . '/images/next.png', "style=\"border: 0\" onclick=\"double_list_move(\$('{$name1}'), \$('{$name2}')); return false;\""), submit_image_tag(sfConfig::get('sf_admin_web_dir') . '/images/previous.png', "style=\"border: 0\" onclick=\"double_list_move(\$('{$name2}'), \$('{$name1}')); return false;\""), $label_assoc, $select2);
}
示例3: object_input_tag
?>
<p style="font-size: 10px; margin-top: -7px; margin-left: 150px;"></p>
<label style="width: 150px;">No. Telp *</label>
<?php
echo object_input_tag($applicant_detail, 'getPhone', array('size' => 24));
?>
<?php
echo form_error('phone');
?>
<p style="font-size: 10px; margin-top: -7px; margin-left: 150px;">
Nomor telepon yang dapat dihubungi. Pisahkan dengan , (koma) jika ada beberapa nomor.</p>
<label style="width: 150px;">No. Handphone *</label>
<?php
echo object_input_tag($applicant_detail, 'getCellphone', array('size' => 24));
?>
<?php
echo form_error('cellphone');
?>
<p style="font-size: 10px; margin-top: -7px; margin-left: 150px;">
Pastikan nomor handphone anda benar dan dapat dihubungi</p>
<label style="width: 150px;"> </label>
<?php
echo submit_image_tag('btn_submit.gif', array('title' => __('Daftar'), 'value' => 'registered', 'name' => 'save_submit', 'id' => 'save_submit', 'style' => 'cursor:pointer; border: none;'));
?>
<p style="font-size: 10px; margin-top: -7px; margin-left: 150px; color: #FF0000;">* Wajib Diisi</p>
</div>
</fieldset>
</div>
<span class="article_separator"> </span>
</form>
</div>
示例4: url_for
?>
<div class="article-content">
<p>Upload Foto Ukuran 4 x 6</p>
<fieldset>
<legend>Foto Calon Siswa</legend>
<div>
<img style=" border: 1px solid #7B8080; padding: 0; margin-left: 10px;" height="130" width="100" id='thumbPhoto'
src="<?php
echo url_for('applicant/getPhoto?id=' . $applicant->getId() . '&rnd=' . rand(999, 9999999));
?>
" >
<?php
echo input_hidden_tag('photoFile');
?>
<div id='photoError' class="errorText" style="display:none"></div>
<br>
<iframe src="<?php
echo url_for('applicant/uploadPhoto');
?>
" width="100%" height="50" frameborder="0" style="margin-bottom: -15px;"></iframe>
<p style="font-size: 10px; margin-top: -10px; margin-left: 10px; line-height: 10px;">Foto yang diupload dapat berformat png, jpeg dan gif.</p>
<?php
echo submit_image_tag('btn_submit.gif', array('title' => __('Simpan'), 'value' => 'save', 'name' => 'save_submit', 'id' => 'save_submit', 'style' => 'cursor:pointer; border: none; margin-left: 5px;'));
?>
</div>
</fieldset>
</div>
</form>
</div>
<span class="article_separator"> </span>
</div>
示例5: array
$t->is(submit_tag(), '<input type="submit" name="commit" value="Save changes" />', 'submit_tag() default value is "Save changes"');
$t->is(submit_tag("save"), '<input type="submit" name="commit" value="save" />', 'submit_tag() takes a value as its first argument');
// options
$t->is(submit_tag('save', array('class' => 'foo')), '<input type="submit" name="commit" value="save" class="foo" />', 'submit_tag() takes an array of attribute options as its second argument');
$t->is(submit_tag('save', array('name' => 'foo')), '<input type="submit" name="foo" value="save" />', 'submit_tag() can override the "name" attribute');
// reset_tag()
$t->diag('reset_tag()');
$t->is(reset_tag(), '<input type="reset" name="reset" value="Reset" />', 'reset_tag() default value is "Reset"');
$t->is(reset_tag("save"), '<input type="reset" name="reset" value="save" />', 'reset_tag() takes a value as its first argument');
// options
$t->is(reset_tag('save', array('class' => 'foo')), '<input type="reset" name="reset" value="save" class="foo" />', 'reset_tag() takes an array of attribute options as its second argument');
$t->is(reset_tag('save', array('name' => 'foo')), '<input type="reset" name="foo" value="save" />', 'reset_tag() can override the "name" attribute');
// submit_image_tag()
$t->diag('submit_image_tag()');
$t->is(submit_image_tag('submit'), '<input type="image" name="commit" src="/images/submit.png" alt="Submit" />', 'submit_image_tag() takes an image source as its first argument');
$t->is(submit_image_tag('/img/submit.gif'), '<input type="image" name="commit" src="/img/submit.gif" alt="Submit" />', 'submit_image_tag() takes an image source as its first argument');
// options
$t->is(submit_image_tag('submit', array('class' => 'foo')), '<input type="image" name="commit" src="/images/submit.png" class="foo" alt="Submit" />', 'submit_image_tag() takes an array of attribute options as its second argument');
$t->is(submit_image_tag('submit', array('alt' => 'foo')), '<input type="image" name="commit" src="/images/submit.png" alt="foo" />', 'reset_tag() can override the "alt" attribute');
$t->is(submit_image_tag('submit', array('name' => 'foo')), '<input type="image" name="foo" src="/images/submit.png" alt="Submit" />', 'reset_tag() can override the "name" attribute');
// label_for()
$t->diag('label_for()');
$t->todo('label_for()');
// get_id_from_name()
$t->diag('get_id_from_name()');
$t->is(get_id_from_name('foo'), 'foo', 'get_id_from_name() returns the id if there is no [] in the id');
$t->is(get_id_from_name('foo[]', 'name'), 'foo_name', 'get_id_from_name() removes all [] from ids');
// _convert_options()
$t->diag('_convert_options()');
$t->is(_convert_options(array('class' => 'foo', 'multiple' => true)), array('class' => 'foo', 'multiple' => 'multiple'), '_convert_options() converts some options for XHTML compliance');
$t->is(_convert_options(array('class' => 'foo', 'multiple' => false)), array('class' => 'foo'), '_convert_options() converts some options for XHTML compliance');
示例6: submit_image_tag
echo submit_image_tag('login-btn.png', array('title' => __('Login'), 'name' => 'login_submit', 'id' => 'login_submit', 'style' => 'opacity:1;filter:alpha(opacity=100);', 'onmouseover' => 'this.style.opacity=0.6;this.filters.alpha.opacity=50', 'onmouseout' => 'this.style.opacity=1;this.filters.alpha.opacity=100'));
?>
<?php
echo submit_image_tag('cancel-btn.png', array('title' => __('Cancel'), 'name' => 'cancel_submit', 'id' => 'cancel_submit', 'style' => 'opacity:1;filter:alpha(opacity=100);', 'onmouseover' => 'this.style.opacity=0.6;this.filters.alpha.opacity=50', 'onmouseout' => 'this.style.opacity=1;this.filters.alpha.opacity=100'));
?>
<table border="0" cellpadding="2" cellspacing="1" id="table" width="100%">
<tr>
<td><?php
echo image_tag('arrow.png');
?>
Klik <a href=#>DISINI</a> Untuk <span style="color:#FFCC00;">Lupa Password.</span></td>
</tr>
</table><br><br><br>
<?php
echo submit_image_tag('button.png', array('title' => __('Panduan'), 'name' => 'panduan_submit', 'id' => 'panduan_submit', 'style' => 'opacity:1;filter:alpha(opacity=100);', 'onmouseover' => 'this.style.opacity=0.6;this.filters.alpha.opacity=50', 'onmouseout' => 'this.style.opacity=1;this.filters.alpha.opacity=100'));
?>
</div>
</div>
<div id="rightcontent">
<div class="img">
<?php
echo submit_image_tag('home.png', array('title' => __('Home'), 'name' => 'home_submit', 'id' => 'home_submit', 'style' => 'opacity:1;filter:alpha(opacity=100);', 'onmouseover' => 'this.style.opacity=0.6;this.filters.alpha.opacity=50', 'onmouseout' => 'this.style.opacity=1;this.filters.alpha.opacity=100', 'onClick' => 'window.location=http://www.ikipbudiutomo.ac.id'));
?>
</div>
</div>
</div>
示例7: select_tag
<?php
echo select_tag('parlamentare1', options_for_select($arr_tendina, $select1));
} else {
?>
<input type="hidden" name="parlamentare1" id="parlamentare1" value="<?php
echo $parlamentare_id;
?>
" />
<?php
}
?>
<?php
echo select_tag('parlamentare2', options_for_select($arr_tendina, $select2));
?>
<input type="hidden" name="ramo" id="ramo" value="<?php
echo $ramo;
?>
" />
<?php
echo submit_image_tag('btn-applica.png', array('id' => 'tendina', 'alt' => 'applica', 'name' => 'tendina'));
?>
示例8: form_tag
<?php
echo form_tag("@attiSearch?type={$type}", array('method' => 'get', 'id' => 'search-ddl'));
?>
<h6><?php
echo $title;
?>
</h6>
<fieldset id="search-ddl-fbox">
<?php
echo input_tag('query', $query, array('id' => 'search-ddl-field', 'name' => 'query', 'tabindex' => '1', 'accesskey' => 'q', 'class' => 'blur'));
?>
<?php
echo submit_image_tag('btn-cerca-small.png', array('id' => 'search-ddl-go', 'alt' => 'cerca', 'name' => 'search-go', 'accesskey' => 's'));
?>
</fieldset>
</form>
示例9: form_tag
<div class="login">
<h2 class="contentheading"><b>Login Calon Siswa</b></h2>
<p style="text-align:left; width:90%; line-height: 15px; padding-top: 15px;">Silahkan login terlebih dahulu untuk melakukan pendaftaran atau mengetahui status hasil seleksi PMB.</p>
<?php
echo form_tag('applicant/login');
?>
<div><label>No. Pendaftaran</label><input type="text" name="login_user" id="login_user" value=""/></div>
<div><label>Password</label><input type="password" name="login_password" id="login_password" value=""/></div>
<div><label> </label>
<?php
echo link_to_remote('Lupa Password ?', array('url' => 'applicant/forget', 'update' => 'content', 'script' => 'true'), array('style' => 'font-weight:bold;'));
?>
|
<?php
echo link_to_remote('Daftar', array('url' => 'applicant/register', 'update' => 'content', 'script' => 'true', 'style' => 'font-weight:bold;'), array('style' => 'font-weight:bold;'));
?>
</div>
<div><label> </label><?php
echo submit_image_tag('btn_submit.gif', array('title' => __('Login'), 'value' => 'go', 'name' => 'login_submit', 'id' => 'login_submit', 'style' => 'cursor:pointer; border: none;'));
?>
</div>
</form>
</div>
示例10: radiobutton_tag
<fieldset id="search-autocompleter-fbox">
<?php
if (isset($limit)) {
?>
<input id="limit" name="limit" value="<?php
echo $limit;
?>
" type="hidden"/>
<?php
}
?>
<input id="tag_search" name="tag_search" class="ac_input blur" value="<?php
echo $tags;
?>
"/>
<label for="ramo_C">Camera</label>
<?php
echo radiobutton_tag('ramo', 'C', $ramo == 'C');
?>
<label for="ramo_S">Senato</label>
<?php
echo radiobutton_tag('ramo', 'S', $ramo == 'S');
?>
<?php
echo submit_image_tag('btn-cerca-small.png', array('alt' => 'cerca', 'id' => 'aggiungi', 'name' => 'aggiungi'));
?>
</fieldset>
</form>
示例11: label_for
<div class="form-row" id="sf_guard_auth_password">
<?php
echo label_for('password', __('password:')), input_password_tag('password');
?>
</div>
<div class="form-row" id="sf_guard_auth_remember" style="margin-left: 10em">
<?php
echo link_to('Hai dimenticato la password?', 'http://' . sfConfig::get('sf_remote_guard_host', 'op_accesso.openpolis.it') . (SF_ENVIRONMENT != 'prod' ? '/be_' . SF_ENVIRONMENT . '.php' : '') . '/userProfile/passwordRequest', array('id' => 'sf_guard_auth_forgot_password'));
?>
</div>
</fieldset>
<?php
//echo submit_tag("Entra")
?>
<?php
echo submit_image_tag("/images/btn-entra.png", array("alt" => "Entra"));
?>
<?php
echo checkbox_tag('remember');
?>
<?php
echo label_for('remember', 'ricordati di me su questo sito');
?>
</form>
</div>
<div class="registrati">
<?php
echo link_to('<h2>Non hai una password? Registrati!</h2><br/><strong>Tutti possono registrarsi</strong>, serve meno di un minuto.<br/>', "http://" . sfConfig::get('sf_remote_guard_host', 'op_accesso.openpolis.it') . (SF_ENVIRONMENT != 'prod' ? '/be_' . SF_ENVIRONMENT . '.php' : '') . "/aggiungi_utente", array('class' => 'sign-on'));
示例12: radiobutton_tag
?>
</li>
<li><?php
echo radiobutton_tag('perche[]', 3, false), ' ', label_for('perche_3_3', 'studio/ricerca');
?>
</li>
<li><?php
echo radiobutton_tag('perche[]', 4, false), ' ', label_for('perche_4_4', 'altro (descrivi, se vuoi)'), '<br/>', input_tag('perche_altro_desc', '', 'maxlength=250 size=65 disabled=true');
?>
</li>
</ul>
</div>
</fieldset>
<?php
echo submit_image_tag("/images/btn-aderisco.png", array("alt" => "Aderisco", 'style' => 'margin: 1em; margin-left: 13em'));
?>
</form>
<div>
Voglio tornare
<?php
echo link_to('alla pagina che stavo visitando', $sf_user->getAttribute('page_before_buy', '@homepage'));
?>
.
</div>
</div>
</div>
示例13: pager_navigation
/**
* Outputs a regular navigation pager
* It outputs a series of links to the first, previous, next and last page
* as well as to the 5 pages surrounding the current page.
*
* @param object sfPager object of the current pager
* @param string 'module/action' or '@rule' of the paginated action
* @param boolean if the page navigator has the 'first' and 'last' buttons
* @param integer the number of links (odd if possible)
* @return string XHTML code containing links
*/
function pager_navigation($pager, $uri, $has_first_last = true, $num_links = 0)
{
if ($num_links == 0) {
$num_links = sfConfig::get('app_pagination_num_links', 5);
}
$navigation = "";
if ($pager->haveToPaginate()) {
$navigation .= form_tag($uri, array("method" => "get", "class" => "pagenav tools-container", "style" => "margin: 20px 0; padding-right: 3px"));
$uri .= (preg_match('/\\?/', $uri) ? '&' : '?') . 'page=';
$navigation .= content_tag('label', 'pag: ');
$pagelinks = "";
// previous page
if ($pager->getPage() != 1) {
$navigation .= link_to(image_tag('/images/ico-prev.png', array('align' => 'absmiddle', 'alt' => 'pagine precedente')), $uri . $pager->getPreviousPage()) . ' ';
}
// first page
if ($pager->getPage() >= $num_links - 1 && $has_first_last) {
$pagelinks .= link_to('1', $uri . '1');
}
// initial dieresis or comma
if ($pager->getPage() >= $num_links) {
$pagelinks .= " ... ";
} else {
if ($pager->getPage() >= $num_links - 1) {
$pagelinks .= ", ";
}
}
// pages one by one
$links = array();
foreach ($pager->getLinks($num_links) as $page) {
if ($page == $pager->getPage()) {
$links[] = content_tag('em', "[ {$page} ]");
} else {
$links[] = link_to($page, $uri . $page);
}
}
$pagelinks .= join(', ', $links);
// final dieresis or comma
if ($pager->getLastPage() - $pager->getPage() >= $num_links - 1) {
$pagelinks .= " ... ";
} else {
if ($pager->getLastPage() - $pager->getPage() >= $num_links - 1) {
$pagelinks .= ", ";
}
}
// last page
if ($pager->getLastPage() - $pager->getPage() >= $num_links - 2 && $has_first_last) {
$pagelinks .= link_to($pager->getLastPage(), $uri . $pager->getLastPage());
}
$navigation .= content_tag('span', $pagelinks, array("class" => "pagenav-jumpto"));
// next page
if ($pager->getPage() != $pager->getLastPage()) {
$navigation .= ' ' . link_to(image_tag('/images/ico-next.png', array('align' => 'absmiddle', 'alt' => 'pagine successiva')), $uri . $pager->getNextPage());
}
// goto page
$navigation .= content_tag('label', 'vai: ', array('for' => 'page'));
$navigation .= input_tag('page', $pager->getPage(), array('maxlength' => '5', 'size' => '3', 'class' => 'input-text'));
$navigation .= submit_image_tag("ico-vai.png", array('name' => 'gotopage-go', 'style' => 'padding-left:3px;'));
// items per page selector
$navigation .= content_tag('label', 'mostra: ', array('for' => 'itemsperpage'));
$navigation .= select_tag('itemsperpage', options_for_select(array(15 => '15 righe', 30 => '30 righe', 60 => '60 righe', 90 => '90 righe', 150 => '150 righe'), $pager->getMaxPerPage()));
$navigation .= "</form>";
$navigation .= "<div style='clear: both;'></div>";
}
return $navigation;
}
示例14: form_tag
<p class="last-update">data di ultimo aggiornamento: <strong>25-11-2008</strong></p>
<?php
echo form_tag('#', array("id" => "search-ddl"));
?>
<h6>nei deputati</h6>
<fieldset id="search-ddl-fbox">
<input type="text" id="search-ddl-field" class="blur" />
<?php
echo submit_image_tag('btn-cerca-small.png', array('id' => 'search-ddl-go', 'alt' => 'cerca'));
?>
<div class="search-ddl-type-container">
<div id="search-ddl-type" style="display: none;">
<input name="search-ddl-type" id="search-ddl-0" type="radio" value="0" checked="checked" />
<label for="search-ddl-0" class="focus">tutto</label><br />
<input name="search-ddl-type" id="search-ddl-1" type="radio" value="1" />
<label for="search-ddl-1">codice DDL</label><br />
<input name="search-ddl-type" id="search-ddl-2" type="radio" value="2" />
<label for="search-ddl-2">titolo DDL</label><br />
<input name="search-ddl-type" id="search-ddl-3" type="radio" value="3" />
<label for="search-ddl-3">descrizione</label><br />
<input name="search-ddl-type" id="search-ddl-4" type="radio" value="4" />
<label for="search-ddl-4">teseo</label><br />
<input name="search-ddl-type" id="search-ddl-5" type="radio" value="5" />
<label for="search-ddl-5">cofirmatari e relatori</label><br />
</div>
</div>
</fieldset>
</form>
示例15: url_for
.div_taula .HIHAACTIVITAT { color:yellow; font-weight: bold; }
</style>
<TD class="CALENDARI">
<CENTER>
<form action="<?php
echo url_for('web/index');
?>
" method="POST" name="form_calendari">
<TABLE class="CAL">
<TR><TD><input style="width:140px; color:gray;" value="Escriu per cercar..." type="text" name="CERCA"></input>
<?php
echo submit_image_tag('intranet/lupa.png', array('value' => 'BCERCA', 'name' => 'BCERCA'));
?>
<br /><br />
</TD>
</TR>
<TR><TD><?php
getCalendari($DATACAL, $ACTIVITATS_CALENDARI, $CERCA);
?>
</TD></TR>
<TR><TD id="destacats">DESTACATS</TD></TR>
<?php
foreach ($BANNERS as $B) {
$URL = empty($B['URL']) || is_null($B['URL']) ? 'web/index' : $B['URL'];
try {