当前位置: 首页>>代码示例>>PHP>>正文


PHP jq_link_to_function函数代码示例

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


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


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