• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP jq_form_remote_tag函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中jq_form_remote_tag函数的典型用法代码示例。如果您正苦于以下问题:PHP jq_form_remote_tag函数的具体用法?PHP jq_form_remote_tag怎么用?PHP jq_form_remote_tag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了jq_form_remote_tag函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:quafzi,项目名称:timpany-prototype,代码行数:17,代码来源:aSubCrudHelper.php


示例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'];
开发者ID:pycmam,项目名称:neskuchaik.ru,代码行数:31,代码来源:signupSuccess.php


示例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;
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:update3AjaxSuccess.php


示例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 
开发者ID:nainit-virtueinfo,项目名称:visymfony,代码行数:31,代码来源:_List.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">
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:_updateAjax.php


示例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>
开发者ID:rafaelccomp,项目名称:compsite,代码行数:28,代码来源:_content_form.php


示例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>
开发者ID:yasirgit,项目名称:afids,代码行数:30,代码来源:indexSuccess.php


示例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>
开发者ID:voota,项目名称:voota,代码行数:31,代码来源:moreSuccess.php


示例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>
开发者ID:pycmam,项目名称:myQuestionPlugin,代码行数:20,代码来源:_form.php


示例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>
开发者ID:pycmam,项目名称:neskuchaik.ru,代码行数:31,代码来源:newSuccess.php


示例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>
开发者ID:pycmam,项目名称:neskuchaik.ru,代码行数:31,代码来源:newSuccess.php


示例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();
?>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:updateAjaxCompanionSuccess.php


示例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>
开发者ID:anvaya,项目名称:nckids,代码行数:31,代码来源:employeeExpirationReportSuccess.php


示例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();
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:updateSuccess.php


示例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';
    ?>
开发者ID:voota,项目名称:voota,代码行数:31,代码来源:_reviews.php


示例16: use_helper

<div id='add-comment-form'>
  <h3>Add New Comment</h3>
  <?php 
use_helper('jQuery');
?>
  <?php 
echo jq_form_remote_tag(array('url' => '@cscomments_comments_do_add', 'update' => 'add-comment-form', 'enctype' => 'multipart/form-data', 'loading' => "\$('#comment-indicator').show();\$('#submit-comment-button').hide();", 'complete' => "\$('#comment-indicator').hide();\$('#submit-comment-button').show();"));
?>

    <input type='hidden' name='return_uri' value="<?php 
echo $sf_request->getParameter('return_uri');
?>
" />
    <input type='hidden' name='comment_id' value="<?php 
echo $sf_request->getParameter('comment_id');
?>
" />
    <input type='hidden' name='model' value="<?php 
echo $sf_request->getParameter('model');
?>
" />
    <input type='hidden' name='record_id' value="<?php 
echo $sf_request->getParameter('record_id');
?>
" />
  
  
    <?php 
if (isset($commentForm)) {
    ?>
      <?php 
开发者ID:bshaffer,项目名称:Symplist,代码行数:31,代码来源:_add_comment.php


示例17: jq_form_remote_tag

<!--  END pilot-request-table-->
  <div class="pager">
    <div>
      <a class="btn-pager-prev" href="#">Previous</a>
      <span class="active-page">1</span>
      <strong>
      of
      <a href="#">12</a>
      </strong>
      <a class="btn-pager-next" href="#">Next</a>
    </div>
  </div>
</div>

  <?php 
echo jq_form_remote_tag(array('update' => 'result', 'url' => 'missionRequest/ajax', 'method' => 'post'), array('id' => 'form', 'style' => 'display:block;'));
?>
 
    <input type="hidden" value="" id="start_date" name="start_date"/>
    <input type="hidden" value="" id="end_date" name="end_date"/>
    <input type="submit" class="hide" id="form_submit"/>
</form>

<div id="result"">
</div>
<!--END PILOT REQ-->
<script type="text/javascript">
//<![CDATA[

<?php 
$dates = array();
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:pilotRequestListSuccess.php


示例18: jq_link_to_remote

				<?php 
        echo jq_link_to_remote('<span class="icon"></span>' . 'Remove', array('url' => url_for('taggable_remove_tag', array('object_id' => $object->id, 'object_class' => get_class($object), 'tags' => $tag)), 'complete' => '$(".assigned-tags").parent().html(XMLHttpRequest.responseText);'), array('class' => 'a-btn icon a-close-small no-label no-bg', 'title' => 'Remove "' . $tag . '"'));
        ?>
			</li>
			<?php 
    }
    ?>
		</ul>
	<?php 
}
?>
</div>

<div class="add-tags">
	<?php 
echo jq_form_remote_tag(array('url' => url_for('taggable_add_tag', array('object_id' => $object->id, 'object_class' => get_class($object))), 'complete' => '$(".assigned-tags").parent().html(XMLHttpRequest.responseText); $("#taggable-add-tag-form input.add-text").focus();'), array('id' => 'taggable-add-tag-form', 'class' => 'a-ui'));
?>
	<input class="add-text tag-input" name="tags" type="text" />
	<input type="submit" class="a-btn icon a-submit a-add" value="Add" />
	<div class="add-tags-help">
		You can add multiple tags at once separated with commas.
	</div>
	</form>
</div>

<?php 
if (count($popular_tags)) {
    ?>
	<div class="popular-tags">
	  <h5>Popular Tags</h5>
	  <ul class="a-ui">
开发者ID:hashir,项目名称:UoA,代码行数:31,代码来源:_tagWidget.php


示例19: use_helper

<?php

use_helper('I18N', 'jQuery');
?>

<?php 
echo jq_form_remote_tag(array('url' => url_for('a_blog_admin_update', $a_blog_post), 'update' => 'a-admin-blog-post-form'), array('id' => 'a-admin-form', 'class' => 'blog'));
?>

<?php 
if (!$form->getObject()->isNew()) {
    ?>
<input type="hidden" name="sf_method" value="PUT" /><?php 
}
?>

<?php 
echo $form->renderHiddenFields();
?>


<?php 
// Title and Slug are hidden and handled with inputs in the editSuccess
?>
<div class="post-title post-slug option">
  <?php 
echo $form['title']->render();
?>
  <?php 
echo $form['slug']->render();
?>
开发者ID:quafzi,项目名称:timpany-prototype,代码行数:31,代码来源:_form.php


示例20: use_helper

<?php

use_helper('jQuery');
?>

<?php 
echo jq_form_remote_tag(array('url' => 'role_permission/save', 'loading' => "\$('#indicator').show();", 'before' => "sfDoubleList.submit(document.getElementById('rr_form'), 'double_list_select');", 'success' => "\$('#indicator').hide(); \$('#notification').html(data).effect('highlight', '', 3000);", 'dataType' => "text"), array('id' => 'rr_form'));
?>
  <input type="hidden" name="id" value="<?php 
echo $role->getId();
?>
"/>
  <?php 
echo $sf_data->getRaw('widget')->render('permissions', $sf_data->getRaw('assoc_perms'));
?>
  
  <a class="btn-action" href="#" onclick="$('#rr_form_submit').click(); return false;"><span>Save</span><strong> </strong></a>
  <input type="submit" id="rr_form_submit" class="hide"/>
</form>

开发者ID:yasirgit,项目名称:afids,代码行数:19,代码来源:showSuccess.php



注:本文中的jq_form_remote_tag函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP jq_link_to_function函数代码示例发布时间:2022-05-15
下一篇:
PHP jpimport函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap