本文整理汇总了PHP中jq_form_remote_tag函数的典型用法代码示例。如果您正苦于以下问题:PHP jq_form_remote_tag函数的具体用法?PHP jq_form_remote_tag怎么用?PHP jq_form_remote_tag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了jq_form_remote_tag函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: a_sub_crud_form_tag
function a_sub_crud_form_tag($form)
{
list($type, $subtype, $displayData) = _a_sub_crud_form_info($form);
// Necessary when we're editing a relation (EventUser) rather than the thing itself (Event)
if (method_exists($form, 'getCrudObject')) {
$object = $form->getCrudObject();
} else {
$object = $form->getObject();
}
$url = sfContext::getInstance()->getRouting()->generate($type . '_update', array('sf_subject' => $object, 'form' => $subtype), true);
$s = jq_form_remote_tag(array('url' => $url, 'update' => $displayData, 'complete' => "if (!\$('#{$type}-{$subtype} form').length) { \$('#{$type}-form-edit-{$subtype}').show(); }"));
$s .= '<input type="hidden" name="sf_method" value="PUT" />';
$s .= a_sub_crud_form_body($form);
// Oops I left this out earlier
$s .= "</form>\n";
return $s;
}
示例2: jq_form_remote_tag
<?php
/**
* Создание профиля
*
* @param sfGuardUserForm $form
*/
?>
<h2>Создание профиля</h2>
<?php
echo jq_form_remote_tag(array('url' => 'loginza_create', 'update' => 'content .content'), array('id' => 'profile-form'));
?>
<?php
echo $form->renderHiddenFields();
?>
<?php
echo $form->renderGlobalErrors();
?>
<ul>
<li class="form-item">
<?php
echo $form['username']->renderLabel('Ник *');
?>
<?php
echo $form['username']->renderError();
?>
<?php
echo $form['username'];
示例3: foreach
<li class="" style="display:list-item;" id="s3">
<a href="javascript:void(0)" class="fifth">Step 5</a>
</li>
</ul>
<?php
$errors = $form3->getErrorSchema()->getErrors();
if (count($errors) > 0) {
foreach ($errors as $name => $error) {
echo $name . ':' . $error;
}
}
?>
</div>
<div class="passenger-form">
<?php
echo jq_form_remote_tag(array('update' => 'passenger_form', 'url' => 'passenger/update3Ajax', 'method' => 'post', 'loading' => "jQuery('#loading-lightbox-overlay-image').center();Element.show('loading-lightbox-overlay');", 'complete' => "Element.hide('loading-lightbox-overlay');"), array('id' => 'form_passenger1', 'style' => 'display:block;'));
?>
<input type="hidden" name="back" value="<?php
echo $back;
?>
" />
<input type="hidden" name="referer" value="<?php
echo $referer;
?>
" />
<?php
if (isset($f_back)) {
?>
<input type="hidden" name="f_back" value="<?php
echo $f_back;
示例4: submit_tag
</div>
<div class="menu padding0"><?php
echo submit_tag(__('Search'), array('title' => __('Search'), 'tabindex' => 1));
?>
</div>
<div class="menu padding0"><?php
echo link_to(__('Show All'), $oAppCommon->ssLink, array('title' => __('Show All'), 'tabindex' => 1));
?>
</form>
</div>
<div>
</td>
</tr>
</table>
<?php
echo jq_form_remote_tag(array('update' => $oAppCommon->ssDivId, 'url' => $oAppCommon->ssLink), array('name' => 'frmList', 'id' => 'frmList', 'method' => 'post', 'class' => 'fright'));
echo input_hidden_tag('ssSortOn', $oAppCommon->ssSortOn);
echo input_hidden_tag('ssSortBy', $oAppCommon->ssSortBy);
echo input_hidden_tag('ssSearchOption', $sf_params->get('ssSearchOption'));
echo input_hidden_tag('ssSearchWord', $sf_params->get('ssSearchWord'));
echo input_hidden_tag('page', $sf_params->get('page'));
include_partial($oAppCommon->ssRenderListFileName, array('oAppCommon' => $oAppCommon, 'snCount' => $snCount));
?>
<br />
<div class="menu"><?php
if ($oAppCommon->ssShowDeleteButton && $snCount > 0) {
echo button_to_function(__('Delete'), "if(deleteAll(document.frmList,'" . $oAppCommon->ssTitle . "','','" . __("Are you sure, you want to delete selected %sstitle%?", array('%sstitle%' => $oAppCommon->ssTitle)) . "','" . __("Select Atleast One Item") . "'))" . jq_remote_function(array('url' => $oAppCommon->ssLink . (strstr($oAppCommon->ssLink, '?') ? "&" : "?") . "ssAction=delete", 'update' => $oAppCommon->ssDivId, 'with' => 'jQuery(this.form.elements).serialize()')), array('id' => 'delete', 'name' => __("Delete"), 'title' => __('Delete')));
}
?>
</div>
<div class="menu"><?php
示例5: use_stylesheets_for_form
<?php
use_stylesheets_for_form($form);
use_javascripts_for_form($form);
use_helper('Javascript', 'Form');
use_helper('jQuery', 'Form');
?>
<h3>Add New Requester</h3>
<div id="requester_form">
<?php
echo jq_form_remote_tag(array('update' => 'requester_form', 'url' => 'requester/updateAjax', 'method' => 'post'), array('id' => 'form_requester', 'style' => 'display:block;'));
?>
<div class="passenger-form">
<input type="hidden" id="req_id" name="req_id" value="<?php
echo $requester->getId();
?>
"/>
<?php
foreach ($form->getGlobalErrors() as $name => $error) {
?>
<li><?php
echo $name . ': ' . $error;
?>
</li>
<?php
}
?>
<div class="box">
<div class="wrap">
示例6: use_helper
<div id="sf_admin_content" class="rounded" style="background:#EFEFEF; padding: 20px">
<?php
use_helper('jQuery', 'I18N');
?>
<script type="text/javascript">
//tinyMCE.execCommand('mceAddControl', false, 'pagina_content');
teste = function(form){
//return false;
//tinyMCE.triggerSave(false,false);
tinyMCE.execCommand('mceRemoveControl', false, 'pagina_content');
return false;
}
</script>
<?php
echo jq_form_remote_tag(array('url' => 'cms/novaPagina', 'update' => 'theContent', 'before' => "teste(this)", 'loading' => "\$('#loading').fadeIn()", 'complete' => "\$('#loading').fadeOut()"));
?>
<ul>
<?php
echo $formContent->renderUsing('list');
?>
<li>
<input type="submit" value="Submit" />
</li>
</ul>
</form>
</div>
示例7: use_helper
<?php
use_helper('jQuery');
$sf_response->addJavascript('/js/jquery-ui.min.js');
?>
<?php
include_partial('role_permission/tab', array('tab' => 'role'));
?>
<div class="raw_frame">
<span id="indicator" style="display:none;">Please wait ...</span>
<span id="notification"></span>
<?php
echo jq_form_remote_tag(array('url' => 'role/save', 'before' => "\$('#notification').html('');", 'loading' => "\$('#indicator').show();", 'success' => "\$('#indicator').hide(); navigate(\$('#role_page').val()); if (data.substring(0, 2) == 'e1') { data=data.substring(2, data.length); } else resetForm(); \$('#notification').html(data).effect('highlight', '', 3000);", 'dataType' => "text"), array('id' => 'rr_form'));
?>
<input type="hidden" name="id"/>
<input type="text" name="title"/>
<input type="submit" id="rr_form_submit" value="Add Role"/>
<?php
echo jq_button_to_function('New Role', "resetForm()", array('style' => 'display:none', 'id' => 'rr_form_new'));
?>
</form>
<div id="roles">
<?php
include_partial('role/list', array('role_list' => $role_list, 'max_array' => $max_array, 'max' => $max, 'pager' => $pager, 'page' => $page));
?>
</div>
</div>
示例8: foreach
foreach ($reviews->getResults() as $review) {
?>
<?php
include_component_slot('profileReview', array('review' => $review));
}
?>
<?php
if ($reviews->haveToPaginate() && $reviews->getLastPage() > $reviews->getPage()) {
?>
<div id="<?php
echo "more_reviews_" . $reviews->getPage();
?>
">
<?php
echo jq_form_remote_tag(array('update' => "more_reviews_" . $reviews->getPage(), 'url' => "@profile_more_comments", 'before' => "\$('#frm_more_reviews" . $reviews->getPage() . "').hide();re_loading('more_reviews_" . $reviews->getPage() . "');"), array('id' => "frm_more_reviews" . $reviews->getPage()));
?>
<div><input type="hidden" name="username" value="<?php
echo $user->getProfile()->getVanity();
?>
" /></div>
<div><input type="hidden" name="page" value="<?php
echo isset($page) ? $page : '1';
?>
" /></div>
<div><input type="submit" value="<?php
echo __('más');
?>
" /></div>
</form>
</div>
示例9: use_helper
<?php
use_helper('jQuery');
?>
<?php
echo jq_form_remote_tag(array('url' => 'myQuestion', 'update' => 'question-form'), array('class' => 'question-form'));
?>
<ul class="form">
<?php
echo $form;
?>
<li class="form-row">
<input id="question-submit" type="submit" value="<?php
echo __('Submit');
?>
" />
</li>
</ul>
</form>
示例10: include_partial
* @param PlaceForm $form
*/
?>
<?php
if ($sf_params->get('action') != 'create') {
?>
<?php
include_partial('global/movable.js');
}
?>
<h2>Отметить место</h2>
<?php
echo jq_form_remote_tag(array('url' => 'place_create', 'update' => 'content .content'), array('id' => 'point-form'));
?>
<ul>
<?php
include_partial('place/form', array('form' => $form));
?>
<li class="form-item">
<input type="submit" value="Сохранить" />
<?php
echo link_to_cancel();
?>
</li>
</ul>
</form>
示例11: link_to
<?php
if (isset($place)) {
?>
<h2 class="title icon-<?php
echo $place->getIcon();
?>
"><?php
echo link_to($place, 'place_show', $place, array('class' => 'ajax'));
?>
</h2>
<?php
}
?>
<?php
echo jq_form_remote_tag(array('url' => url_for('event_create', array('place' => $sf_params->get('place'))), 'update' => 'content .content'), array('id' => 'point-form'));
?>
<ul>
<?php
include_partial('event/form', array('form' => $form));
?>
<li class="form-item">
<input type="submit" value="Сохранить" />
<?php
echo link_to_cancel();
?>
</li>
</ul>
</form>
示例12: jQuery
jQuery("#lightbox-overlay").click();
</script>
<?php
}
?>
<div class="holder">
<div class="bg">
<h2>Add New Companion</h2>
<div class="passenger-form">
<div class="person-view">
<!-- form action="<?php
//echo url_for('itinerary/updateAjaxCompanion?itId='.$itine->getId())
?>
" id="new_companion_form" method="post" -->
<?php
echo jq_form_remote_tag(array('update' => 'addcompanion-popup', 'url' => 'itinerary/updateAjaxCompanion?itId=' . $itId . '&time=' . urlencode(date('d-m-y-h-i-s')), 'loading' => "jQuery('#loading-lightbox-overlay-image').center();Element.show('loading-lightbox-overlay');", 'complete' => "Element.hide('loading-lightbox-overlay');", 'method' => 'post'), array('id' => 'form_passenger_companion', 'style' => 'display:block;'));
?>
<?php
echo $form_a->renderHiddenFields();
?>
<?php
echo $form_a->renderGlobalErrors();
?>
<div class="box">
<div class="wrap">
<?php
echo $form_a['name']->renderLabel();
?>
<?php
echo $form_a['name']->render();
?>
示例13: use_helper
<?php
use_helper('jQuery');
echo jq_form_remote_tag(array('url' => 'employee/emailExpirationNotice', 'update' => 'send_result'));
?>
<div id="send_result" style="text-align:right;padding: 10px 0;">
<a href="" id="select_all" style="margin-right:30px">Select All</a>
<input type="submit" value="Send Notices" />
</div>
<table width="100%" id="report_table">
<thead>
<tr>
<th class="capt" colspan="<?php
echo count($columns) + 1;
?>
">Expired Employees</th>
</tr>
<tr>
<th style="text-align:left;padding-left:30px;">Employee</th>
<?php
foreach ($columns as $column) {
?>
<th><?php
echo ReportExpirationForm::$choices[$column];
?>
</th>
<?php
}
?>
</tr>
</thead>
示例14: slot
</div>
</div>
</form>
</div>
<input type="hidden" id="req_agency_id"/>
<?php
slot('popup');
?>
<div class="add-passenger" id="addagency-popup" style="display:none; z-index: 1001; position: absolute; left: 400px; top: 145px; ">
<div class="holder">
<div class="bg">
<div id="agency_form">
<?php
echo jq_form_remote_tag(array('update' => 'agency_form', 'url' => 'agency/updateAjax?req=1&person_id=' . $person->getId() . "'", 'method' => 'post'), array('id' => 'form', 'style' => 'display:block;'));
?>
<h3>Add New Agency</h3>
<div class="passenger-form">
<fieldset>
<div class="box">
<div class="wrap">
<?php
echo $form_a['name']->renderLabel();
?>
<?php
echo $form_a['name']->render();
?>
<?php
echo $form_a['name']->renderError();
示例15: jq_form_remote_tag
?>
</p>
<?php
}
?>
<div id="<?php
echo "more_" . ($t == 1 ? 'positives' : 'negatives') . "_" . ($t == 1 ? $pageU : $pageD);
?>
">
<?php
if ($pager->haveToPaginate() && $pager->getLastPage() > $pager->getPage()) {
?>
<?php
echo jq_form_remote_tag(array('update' => "more_" . ($t == 1 ? 'positives' : 'negatives') . "_" . ($t == 1 ? $pageU : $pageD), 'url' => "@politico_more_comments"), array('id' => "frm_" . ($t == 1 ? 'positives' : 'negatives') . "_" . ($t == 1 ? $pageU : $pageD)));
?>
<input type="hidden" id="t" name="t" value="<?php
echo $t;
?>
" />
<input type="hidden" id="id" name="id" value="<?php
echo $politico->getId();
?>
" />
<input type="hidden" id="<?php
echo $t == 1 ? 'pageU' : 'pageD';
?>
" name="<?php
echo $t == 1 ? 'pageU' : 'pageD';
?>