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

PHP jq_link_to_function函数代码示例

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

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



在下文中一共展示了jq_link_to_function函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: a_remote_dialog_toggle

function a_remote_dialog_toggle($options)
{
    if (!isset($options['id'])) {
        throw new sfException("Required id option not passed to a_dialog_toggle");
    }
    if (!isset($options['label'])) {
        throw new sfException("Required label option not passed to a_dialog_toggle");
    }
    if (!isset($options['action'])) {
        throw new sfException("Required action option not passed to a_dialog_toggle");
    }
    $id = $options['id'];
    $action = $options['action'];
    $label = $options['label'];
    if (isset($options['chadFrom'])) {
        $chadFrom = $options['chadFrom'];
    }
    if (isset($options['loading'])) {
        $loading = $options['loading'];
    }
    if (isset($options['hideToggle']) && $options['hideToggle'] == true) {
        $before = " \$('.{$id}-loading').show();";
    } else {
        $before = "\$('.{$id}-button.open').hide(); \$('.{$id}-loading').show();";
    }
    $s = '';
    $s .= jq_link_to_remote(__($label, null, 'apostrophe'), array("url" => $action, "update" => $id, "script" => true, "before" => $before, "complete" => "\$('#{$id}').fadeIn();\n  \t\t\t\t\t\t\t\t\t \$('.{$id}-loading').hide();\n\t\t\t\t\t\t\t\t\t\t \t\$('.{$id}-button.open').hide();\n  \t\t\t\t\t\t\t\t\t \$('#{$id}-button-close').show();" . (isset($chadFrom) ? "var arrowPosition = parseInt(\$('{$chadFrom}').offset().left);\n      \t\t\t\t\t\t\t\t \$('#{$id} .a-chad').css('left',arrowPosition+'px'); " : "") . "\n  \t\t\t\t\t\t\t\t\t aUI('#{$id}');\n  \t\t\t\t\t\t\t\t\t\$('.a-page-overlay').show();"), array('class' => "{$id}-button open", 'id' => "{$id}-button-open"));
    $s .= jq_link_to_function(__($label, null, 'apostrophe'), "\$('#{$id}-button-close').hide(); \n\t\t \$('#{$id}-button-open').show(); \n\t\t \$('#{$id}').hide();\n\t\t \$('.a-page-overlay').hide();", array('class' => "{$id}-button close", 'id' => "{$id}-button-close", 'style' => 'display:none;'));
    if (isset($loading)) {
        $s .= image_tag($loading, array('class' => "{$id}-loading", 'style' => 'display:none;'));
    }
    return $s;
}
开发者ID:verenate,项目名称:gri,代码行数:33,代码来源:PkDialogHelper.php


示例2: __

?>
	<?php 
echo $form['title']->render(array('id' => 'a-breadcrumb-create-title'));
?>

	<ul class="a-form-controls a-breadcrumb-create-childpage-controls">
	  <li>
			<button type="submit" class="a-btn"><?php 
echo __('Create Page', null, 'apostrophe');
?>
</button>			
		</li>
	  <li>
			<?php 
echo jq_link_to_function(__("cancel", null, 'apostrophe'), '$("#a-breadcrumb-create-childpage-form").hide(); 
				$("#a-breadcrumb-create-childpage-button").fadeIn(); 
				$("#a-breadcrumb-create-childpage-button").prev(".a-i").fadeIn();', array('class' => 'a-btn icon a-cancel'));
?>
		</li>
	</ul>

	<script type="text/javascript" charset="utf-8">
		aInputSelfLabel('#a-breadcrumb-create-title', <?php 
echo json_encode(__('Page Title', null, 'apostrophe'));
?>
);
	</script>

</form>

<?php 
开发者ID:verenate,项目名称:gri,代码行数:31,代码来源:_createPage.php


示例3: jq_link_to_function

        }
        ?>
          </center>
      </td>
    </tr>
    <?php 
    }
    ?>
  </tbody>
</table>
<?php 
    echo $pager->getNbResults();
    ?>
 members selected according to these criteria<br/>
<?php 
    echo jq_link_to_function('search again', "document.location=''");
}
?>
<div id="on_accept_container1" class="on-accept-dialog" style="display:none">
       Do you wish, to show this MOP on pilot view?
     <br />
</div>

<div id="on_decline_container1" class="on-decline-dialog" style="display:none">
       Are you sure, to hide this MOP from pilot view?
      <br />
</div>

<script type="text/javascript">
    function onActive(pilot_id)
    {      
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:mopDirectorySuccess.php


示例4: link_to

    echo link_to(__('Log Out', null, 'apostrophe'), sfConfig::get('app_a_actions_logout', 'sfGuardAuth/signout'), array('class' => 'a-btn'));
    ?>
</li>
<?php 
} else {
    ?>
	<?php 
    include_partial('a/language');
    ?>
  <?php 
    // You can easily turn off the 'Log In' link via app.yml
    ?>
  <?php 
    if (sfConfig::get('app_a_login_link', true)) {
        ?>
    <li>
			<?php 
        echo jq_link_to_function(__('Login', null, 'apostrophe'), "\$('#a-login-form-container').fadeIn(); \$('#signin_username').focus(); \$('.a-page-overlay').fadeIn('fast');", array('class' => 'a-btn', 'id' => 'a-login-button'));
        ?>
	
			<div id="a-login-form-container" class="dropshadow a-options">
				<?php 
        include_component('a', 'signinForm');
        ?>
			</div>
		</li>
  <?php 
    }
}
?>
</ul>
开发者ID:quafzi,项目名称:timpany-prototype,代码行数:31,代码来源:_login.php


示例5: jq_form_remote_tag

<?php 
echo jq_form_remote_tag(array('url' => 'aMedia/addCategory', 'update' => 'a-media-edit-categories', 'complete' => '$("#a_media_category_name").val("")'));
?>

<?php 
echo $form;
?>

<div class="a-form-row submit">
<input type="submit" name="add" value="<?php 
echo __('add', null, 'apostrophe');
?>
" class="a-submit icon a-add no-label" />
<?php 
echo jq_link_to_function(__('Cancel', null, 'apostrophe'), '$("#a-media-edit-categories-button, #a-media-no-categories-message, #a-category-sidebar-list").show(); $("#a-media-edit-categories").html("")', array('class' => 'a-btn icon no-label a-cancel'));
?>
</div>
</form>

<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
	aInputSelfLabel('#a_media_category_name', <?php 
echo json_encode(__('New Category', null, 'apostrophe'));
?>
);	
	$('#a-media-edit-categories-button, #a-media-no-categories-messagem, #a-category-sidebar-list').hide();
	$('#a_media_category_name').focus();
	// Temporary - See CSS for Notes
	$('#a_media_category_description').parents('div.a-form-row').addClass('hide-description').parent().attr('id','a-media-category-form');
});
开发者ID:quafzi,项目名称:timpany-prototype,代码行数:30,代码来源:_editCategories.php


示例6: use_helper

<?php

use_helper('jQuery', 'JavascriptBase');
?>
<span id="tax_<?php 
echo $rowId;
?>
_<?php 
echo $taxKey;
?>
"><?php 
echo jq_link_to_function('', "\$('#tax_" . $rowId . "_" . $taxKey . "').remove(); \$(document).trigger('GlobalUpdateEvent');");
?>
<select class="observable tax" id="item_taxes_list_<?php 
echo $rowId;
?>
_<?php 
echo $taxKey;
?>
" name="invoice[Items][<?php 
echo $rowId;
?>
][taxes_list][]">
  <?php 
$taxes = Doctrine::getTable('Tax')->createQuery()->where('id = ?', $taxKey)->orWhere('active = ?', 1)->execute();
foreach ($taxes as $o_tax) {
    ?>
  <option value="<?php 
    echo $o_tax->id;
    ?>
" <?php 
开发者ID:solutema,项目名称:siwapp-sf1,代码行数:31,代码来源:_taxSpan.php


示例7: jq_link_to_remote

              <?php 
            echo jq_link_to_remote('remove', array('url' => 'account/ajaxDeleteAircraft?id=' . $pilot_aircraft->getId(), 'success' => "\$('#pilot_aircraft_{$pilot_aircraft->getId()}').remove();"), array('confirm' => 'Are you sure?'));
            ?>
            <?php 
        }
        ?>
            </td>
          </tr>
          <?php 
    }
    ?>
        </table>
      </div>
      <div class="holder">
        <h4>Availability <?php 
    echo jq_link_to_function('save your changes', 'saveAvailability()', array('style' => 'display:none;', 'class' => 'link-edit', 'id' => 'save_availability'));
    ?>
</h4>
        <form id="available_form" action="<?php 
    echo url_for('account/saveAvailability');
    ?>
">
          <table>
            <tr>
              <td>
                <label for="available">Available</label>
                <input type="radio" id="available" value="1" name="available" <?php 
    if ($availability->getNotAvailable() != 1) {
        echo 'checked="checked"';
    }
    ?>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:indexSuccess.php


示例8: array

<?php 
echo $form['aviation_contacts'];
?>
 <?php 
echo $form['aviation_contacts']->renderLabel(null, array('class' => 'raw'));
echo $form['aviation_contacts']->renderError();
?>
</div>
</div>
<div class="wrap"><label>I am a member of</label>
<div class="wrap">
<div class="wrap">Select: <?php 
echo jq_link_to_function('All', "\$('.wiss').attr('checked', 'checked');");
?>
, <?php 
echo jq_link_to_function('None', "\$('.wiss').attr('checked', false);");
?>
</div>
<br />

<?php 
echo $form['member_aopa'];
?>
 <?php 
echo $form['member_aopa']->renderLabel(null, array('class' => 'raw'));
echo $form['member_aopa']->renderError();
?>
 <br clear="all" />
<?php 
echo $form['member_kiwanis'];
?>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:_step5.php


示例9: a_sub_crud_nonajax_edit

function a_sub_crud_nonajax_edit($label, $buttonId, $staticId, $formId, $visible = true)
{
    return jq_link_to_function('edit', "\$('#{$buttonId}').hide(); \$('#{$staticId}').hide(); \$('#{$formId}').show();", array('class' => 'a-form-edit-button', 'id' => $buttonId, 'style' => $visible ? '' : 'display: none'));
}
开发者ID:quafzi,项目名称:timpany-prototype,代码行数:4,代码来源:aSubCrudHelper.php


示例10: foreach

foreach ($max_array as $i => $v) {
    if ($i) {
        echo ' | ';
    }
    if ($max != $v) {
        echo jq_link_to_remote($v, array('url' => 'role/list?max=' . $v, 'before' => "\$('#indicator').show();", 'success' => "\$('#indicator').hide(); \$('#roles').html(data);"));
    } else {
        echo $v;
    }
}
?>

<div class="pager">
  <form onsubmit="navigate($('#role_page').val());return false;" action="#">
    <?php 
echo jq_link_to_function('Previous', "navigate(" . $pager->getPreviousPage() . ")", array('class' => 'btn-pager-prev'));
?>
    <input type="text" id="role_page" class="active-page" value="<?php 
echo $pager->getPage();
?>
"/>
    <strong>of <?php 
echo jq_link_to_function($pager->getLastPage(), "navigate(" . $pager->getLastPage() . ")");
?>
</strong>
    <?php 
echo jq_link_to_function('Next', "navigate(" . $pager->getNextPage() . ")", array('class' => 'btn-pager-next'));
?>
    <input type="submit" class="hide"/>
  </form>
</div>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:_list.php


示例11: __

    echo $form['id']->render(array('id' => 'a-breadcrumb-rename-id'));
    ?>
	<?php 
    echo $form['title']->render(array('id' => 'a-breadcrumb-rename-title'));
    ?>

	  <ul id="a-breadcrumb-rename-controls" class="a-form-controls a-breadcrumb-controls rename" style="display:none;">
			<li>
				<button id="a-breadcrumb-rename-submit" type="submit" class="a-btn"><?php 
    echo __('Rename', null, 'apostrophe');
    ?>
</button>							
			</li>
	  	<li>
				<?php 
    echo jq_link_to_function(__("cancel", null, 'apostrophe'), '', array('class' => 'a-btn icon a-cancel event-default'));
    ?>
	  	</li>
	  </ul>

  </form>

	<script type="text/javascript" charset="utf-8">
		$(document).ready(function() {

			var renameForm = $('#a-breadcrumb-rename-form');
			renameForm.prepend('<b id="a-breadcrumb-rename-title-spacer" style="display:none;float:left;white-space:nowrap;">' + <?php 
    echo json_encode(str_replace(' ', '-', $page->getTitle()));
    ?>
 + '</b>');
开发者ID:verenate,项目名称:gri,代码行数:30,代码来源:_renamePage.php


示例12: jq_link_to_function

      <?php 
if ($can_edit) {
    ?>
          <form action="#" onsubmit="$('#total').click();return false;">
            <span class="passenger-form">
              <?php 
    echo $form['license_type']->render(array('id' => 'total_edit', 'style' => 'display:none;', 'class' => 'text narrow revertable revertval'));
    ?>
            </span>
          </form>
          <span id="license_type" class="revertable revertval in-place"><?php 
    echo $pilot->getTotalHours() ? $pilot->getTotalHours() : '--';
    ?>
</span>
          <?php 
    echo jq_link_to_function('edit', "changeValue('license_type', this.id, 'total_edit', 'total_callbeack');", array('id' => 'license_type', 'class' => 'hide'));
    ?>
          <br clear="all"/>
      <?php 
} else {
    ?>
          <?php 
    echo $pilot->getTotalHours() ? $pilot->getTotalHours() : '--';
    ?>
      <?php 
}
?>
      </dd>
      
      <dt>Date Oriented:</dt>
      <dd><?php 
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:viewSuccess.php


示例13: use_helper

<?php

use_helper('jQuery');
$role_ids = array();
foreach ($email_list->getEmailListRolesJoinRole() as $i => $email_list_role) {
    ?>
  <?php 
    $role_ids[] = $email_list_role->getRoleId();
    ?>
  <?php 
    echo ($i ? ',' : '') . $email_list_role->getRole()->getTitle();
}
?>
<br/>
<?php 
echo jq_link_to_function('edit', 'editManagersFor(' . $email_list->getId() . ', [' . implode(',', $role_ids) . '], this)');
开发者ID:yasirgit,项目名称:afids,代码行数:16,代码来源:ajaxSaveRolesSuccess.php


示例14: jq_link_to_function

            <?php 
if ($can_edit) {
    ?>
              <form action="#" onsubmit="$('#deceased_comment_change').click();return false;">
                <span class="passenger-form">
                  <?php 
    echo $form['deceased_comment']->render(array('id' => 'deceased_comment_edit', 'style' => 'display:none;', 'class' => 'text narrow revertable revertval'));
    ?>
                </span>
              </form>
              <span id="deceased_comment" class="revertable revertval in-place"><?php 
    echo $person->getDeceasedComment() ? $person->getDeceasedComment() : '--';
    ?>
</span>
              <?php 
    echo jq_link_to_function('change', "changeValue('deceased_comment', this.id, 'deceased_comment_edit', 'deceased_comment');", array('id' => 'deceased_comment_change', 'class' => 'hide'));
    ?>
            <?php 
} else {
    echo $person->getDeceasedComment() ? $person->getDeceasedComment() : '--';
}
?>
          </td>
          <td></td>
        </tr>
      </table>
    </div>
    
    <span id="indicator" style="display:none;">Please wait ...</span>
    <span id="notification" style="font-size: 15px; float: right; width: 356px; margin-top: 22px;"></span>
    
开发者ID:yasirgit,项目名称:afids,代码行数:30,代码来源:viewSuccess.php


示例15: use_helper

<?php 
use_helper('jQuery');
echo jq_link_to_function('click will alert', 'alert(123)', array('id' => 'blabla'));
javascript_tag();
echo jq_visual_effect('fadeOut', '#blabla');
end_javascript_tag();
?>

Welcome to Angel Flight West !
开发者ID:yasirgit,项目名称:afids,代码行数:9,代码来源:indexSuccess.php


示例16: __

    	<?php 
echo $form['password']->render();
?>
    	<?php 
echo $form['password']->renderError();
?>
		</div>

		<div class="a-form-row">
    	<?php 
echo $form['remember']->renderRow();
?>
		</div>
		
		<ul class="a-form-row submit">
    	<li>
				<input type="submit" class="a-submit" value="<?php 
echo __('Sign In', null, 'apostrophe');
?>
" />
			</li>
			<li>
				<?php 
echo jq_link_to_function(__('Cancel', null, 'apostrophe'), "\$('#a-login-form-container').fadeOut('fast'); \$('.a-page-overlay').fadeOut('fast');", array('class' => 'a-btn a-cancel'));
?>
			</li>
		</ul>
		
  </form>
</div>
开发者ID:quafzi,项目名称:timpany-prototype,代码行数:30,代码来源:_signinForm.php


示例17: input_hidden_tag

</table>

<div id="management" style="display:none; position:absolute; background-color: white; border:1px solid;">
  <form id="management_form" onsubmit="saveManagersFor(); return false;">
    <?php 
echo $role_widget->render('roles');
?>
    <?php 
echo input_hidden_tag('email_list_id');
?>
    <br/>
    <?php 
echo submit_tag('save');
?>
    <?php 
echo jq_link_to_function('cancel', "\$('#management').hide();");
?>
  </form>
  <img src="/images/loading.gif" id="management_loader" style="display: none;"/>
</div>

<script type="text/javascript">
//<![CDATA[
function saveIsPrivate(id)
{
  var $el = $('#is_private_'+id);
  $el.after('<img src="/images/loading.gif" id="loader_'+id+'"/>');
  $.ajax({
    url: '<?php 
echo url_for('email_list/ajaxSavePrivate');
?>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:indexSuccess.php


示例18: __

    ?>
	
	<?php 
    echo $form['title']->render(array('id' => 'a-breadcrumb-rename-title'));
    ?>

	  <ul id="a-breadcrumb-rename-controls" class="a-form-controls a-breadcrumb-controls rename" style="display:none;">
			<li>
				<input type="submit" class="a-btn a-submit" value="<?php 
    echo __('Rename', null, 'apostrophe');
    ?>
" />							
			</li>
	  	<li>
				<?php 
    echo jq_link_to_function(__("Cancel", null, 'apostrophe'), '', array('class' => 'a-btn a-cancel'));
    ?>
	  	</li>
	  </ul>

  </form>

	<script type="text/javascript" charset="utf-8">
		$(document).ready(function() {

			var renameForm = $('#a-breadcrumb-rename-form');
			renameForm.prepend('<b id="a-breadcrumb-rename-title-spacer" style="display:none;float:left;white-space:nowrap;">' + <?php 
    echo json_encode(str_replace(' ', '-', $page->getTitle()));
    ?>
 + '</b>');
开发者ID:quafzi,项目名称:timpany-prototype,代码行数:30,代码来源:_renamePage.php


示例19: link_to

            ?>
  			  <?php 
        }
        ?>
  			  <li><?php 
        echo link_to(__($button->getLabel(), null, 'apostrophe'), $button->getLink(), array('class' => 'a-btn icon ' . $button->getCssClass()));
        ?>
</li>
  			<?php 
    }
    ?>
				<?php 
    if (0) {
        ?>
<li><?php 
        echo jq_link_to_function('Cancel', '', array('class' => 'a-btn icon a-cancel event-default'));
        ?>
</li><?php 
    }
    ?>
  		</ul>
  	</div>


  	<div class="a-global-toolbar-user-settings a-personal-settings-container">
			<div id="a-personal-settings"></div>
    </div>

	<?php 
}
?>
开发者ID:verenate,项目名称:gri,代码行数:31,代码来源:_globalTools.php


示例20: jq_link_to_function

      <?php 
    if ($is_air) {
        echo $from_airport->getIdent() . ' (' . $from_airport->getCity() . ', ' . $from_airport->getState() . ')';
    }
    ?>
    </td>
    <td>
      <?php 
    if ($is_air) {
        echo $to_airport->getIdent() . ' (' . $to_airport->getCity() . ', ' . $to_airport->getState() . ')';
    }
    ?>
    </td>
    <td>
      <?php 
    echo jq_link_to_function('remove', "\$('#leg_id_{$mission_leg->getId()}').remove(); \$(this).parent().parent().remove();");
    ?>
    </td>
  </tr>
  <tr>
      <td claspan="6" style="padding-top:10px;padding-bottom:10px;">
         <!--a class="btn-request" target="_blank" href="http://69.50.211.150/pilot_request/<?php 
    echo $mission_leg->getId();
    ?>
"><span>Request This Mission</span></a -->
          <a class="btn-request" target="_blank" href=<?php 
    echo url_for('pilotRequest/update?id=' . $mission_leg->getId(), true);
    ?>
><span>Request This Mission</span></a>

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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP jq_link_to_remote函数代码示例发布时间:2022-05-15
下一篇:
PHP jq_form_remote_tag函数代码示例发布时间: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