本文整理汇总了PHP中HHtml::ajaxButton方法的典型用法代码示例。如果您正苦于以下问题:PHP HHtml::ajaxButton方法的具体用法?PHP HHtml::ajaxButton怎么用?PHP HHtml::ajaxButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HHtml
的用法示例。
在下文中一共展示了HHtml::ajaxButton方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
</style>
<div id="cropimage">
<?php
$this->widget('ext.yii-jcrop.jCropWidget', array('imageUrl' => $profileImage->getUrl('_org') . "?nocache=" . time(), 'formElementX' => 'CropProfileImageForm_cropX', 'formElementY' => 'CropProfileImageForm_cropY', 'formElementWidth' => 'CropProfileImageForm_cropW', 'formElementHeight' => 'CropProfileImageForm_cropH', 'jCropOptions' => array('aspectRatio' => '1', 'boxWidth' => 400, 'setSelect' => array(0, 0, 100, 100))));
?>
</div>
</div>
<div class="modal-footer">
<?php
echo HHtml::ajaxButton(Yii::t('RoomsModule.views_admin_cropImage', 'Save'), Yii::app()->createAbsoluteUrl('//space/admin/cropImage', array('guid' => $space->guid)), array('type' => 'POST', 'beforeSend' => 'function(){ setModalLoader();; }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary'));
?>
<?php
//echo CHtml::submitButton(Yii::t('RoomsModule.views_admin_cropImage', 'Save'), array('class' => 'btn btn-primary'));
?>
<button type="button" class="btn btn-primary"
data-dismiss="modal"><?php
echo Yii::t('RoomsModule.views_admin_cropImage', 'Close');
?>
</button>
<div id="crop-loader" class="loader loader-modal hidden">
<div class="sk-spinner sk-spinner-three-bounce">
<div class="sk-bounce1"></div>
示例2: array
</div>
</div>
<div class="modal-footer">
<hr/>
<div class="row">
<div class="col-sm-6">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php
echo Yii::t('MailModule.views_mail_create', 'Close');
?>
</button>
</div>
<div class="col-sm-6">
<?php
echo HHtml::ajaxButton(Yii::t('MailModule.views_mail_create', 'Send'), array('//mail/mail/create'), array('type' => 'POST', 'beforeSend' => 'function(){ $("#create-message-loader").removeClass("hidden"); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary'));
?>
</div>
</div>
<div class="col-md-1 modal-loader">
<div id="create-message-loader" class="loader loader-small hidden"></div>
</div>
</div>
<?php
$this->endWidget();
?>
</div>
示例3: array
}
</style>
<div id="cropimage">
<?php
$this->widget('ext.yii-jcrop.jCropWidget', array('imageUrl' => $profileImage->getUrl('_org') . "?nocache=" . time(), 'formElementX' => 'CropProfileImageForm_cropX', 'formElementY' => 'CropProfileImageForm_cropY', 'formElementWidth' => 'CropProfileImageForm_cropW', 'formElementHeight' => 'CropProfileImageForm_cropH', 'jCropOptions' => array('aspectRatio' => 1, 'boxWidth' => 400, 'setSelect' => array(0, 0, 100, 100))));
?>
</div>
</div>
<div class="modal-footer">
<?php
echo HHtml::ajaxButton(Yii::t('UserModule.views_profile_cropProfileImage', 'Save'), array('//user/account/cropProfileImage'), array('type' => 'POST', 'beforeSend' => 'function(){ $("#invite-loader").removeClass("hidden"); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary'));
?>
<?php
//echo CHtml::submitButton(Yii::t('UserModule.views_profile_cropProfileImage', 'Save'), array('class' => 'btn btn-primary'));
?>
<button type="button" class="btn btn-primary"
data-dismiss="modal"><?php
echo Yii::t('UserModule.views_profile_cropProfileImage', 'Close');
?>
</button>
<div class="col-md-1 modal-loader">
<div id="invite-loader" class="loader loader-small hidden"></div>
</div>
示例4: array
<?php
echo $form->error($model, 'inviteExternal');
?>
</div>
</div>
<?php
}
?>
</div>
</div>
<div class="modal-footer">
<?php
echo HHtml::ajaxButton(Yii::t('RoomsModule.views_room_invite', 'Send'), array('//rooms/membership/invite', 'sguid' => $room->guid), array('type' => 'POST', 'beforeSend' => 'function(){ setModalLoader(); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary', 'id' => 'inviteBtn'));
?>
<button type="button" class="btn btn-primary"
data-dismiss="modal"><?php
echo Yii::t('RoomsModule.views_room_invite', 'Close');
?>
</button>
<div id="invite-loader" class="loader loader-modal hidden">
<div class="sk-spinner sk-spinner-three-bounce">
<div class="sk-bounce1"></div>
<div class="sk-bounce2"></div>
<div class="sk-bounce3"></div>
</div>
</div>
</div>
示例5: array
}
</style>
<div id="cropimage">
<?php
$this->widget('ext.yii-jcrop.jCropWidget', array('imageUrl' => $profileImage->getUrl('_org') . "?nocache=" . time(), 'formElementX' => 'CropProfileImageForm_cropX', 'formElementY' => 'CropProfileImageForm_cropY', 'formElementWidth' => 'CropProfileImageForm_cropW', 'formElementHeight' => 'CropProfileImageForm_cropH', 'jCropOptions' => array('aspectRatio' => 1, 'boxWidth' => 400, 'setSelect' => array(0, 0, 100, 100))));
?>
</div>
</div>
<div class="modal-footer">
<?php
echo HHtml::ajaxButton(Yii::t('UserModule.views_account_cropImage', 'Save'), array('//user/account/cropImage'), array('type' => 'POST', 'beforeSend' => 'function(){ setModalLoader(); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary'));
?>
<?php
//echo CHtml::submitButton(Yii::t('UserModule.views_account_cropImage', 'Save'), array('class' => 'btn btn-primary'));
?>
<button type="button" class="btn btn-primary"
data-dismiss="modal"><?php
echo Yii::t('UserModule.views_account_cropImage', 'Close');
?>
</button>
<div id="crop-loader" class="loader loader-modal hidden">
<div class="sk-spinner sk-spinner-three-bounce">
<div class="sk-bounce1"></div>
示例6: array
echo Yii::t('SpaceModule.views_create_create', 'Private (Invisible)');
?>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<hr/>
<br/>
<?php
echo HHtml::ajaxButton(Yii::t('SpaceModule.views_create_create', 'Create'), array('//space/create/create'), array('type' => 'POST', 'beforeSend' => 'function(){ jQuery("#create-loader").removeClass("hidden"); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary', 'id' => 'space-create-submit-button'));
?>
<div class="col-md-1 modal-loader">
<div id="create-loader" class="loader loader-small hidden"></div>
</div>
</div>
<?php
$this->endWidget();
?>
</div>
</div>
示例7: array
<?php
echo $form->error($model, 'inviteExternal');
?>
</div>
</div>
<?php
}
?>
</div>
</div>
<div class="modal-footer">
<?php
echo HHtml::ajaxButton(Yii::t('SpaceModule.views_space_invite', 'Send'), array('//space/space/invite', 'sguid' => $space->guid), array('type' => 'POST', 'beforeSend' => 'function(){ $("#invite-loader").removeClass("hidden"); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary', 'id' => 'inviteBtn'));
?>
<button type="button" class="btn btn-primary"
data-dismiss="modal"><?php
echo Yii::t('SpaceModule.views_space_invite', 'Close');
?>
</button>
<div class="col-md-1 modal-loader">
<div id="invite-loader" class="loader loader-small hidden"></div>
</div>
</div>
<?php
$this->endWidget();
?>
示例8: array
<h4 class="modal-title" id="myModalLabel"><?php
echo $title;
?>
</h4>
</div>
<div class="modal-body text-center">
<?php
echo $message;
?>
</div>
<div class="modal-footer">
<?php
if ($buttonTrue != "") {
?>
<?php
echo HHtml::ajaxButton($buttonTrue, $linkHref, array('type' => 'POST', 'data' => array(Yii::app()->request->csrfTokenName => Yii::app()->request->csrfToken), 'success' => $confirm), array('class' => 'btn btn-primary', 'data-dismiss' => "modal"));
?>
<?php
}
?>
<?php
if ($buttonFalse != "") {
?>
<button type="button" class="btn btn-primary"
data-dismiss="modal"><?php
echo $buttonFalse;
?>
</button>
<?php
}
?>
示例9: array
</div>
<?php
/* Modify textarea for mention input */
$this->widget('application.widgets.HEditorWidget', array('id' => 'comment_input_' . $comment->id, 'inputContent' => $comment->message));
?>
<?php
// Creates Uploading Button
$this->widget('application.modules_core.file.widgets.FileUploadButtonWidget', array('uploaderId' => 'comment_upload_' . $comment->id, 'fileListFieldName' => 'fileList', 'object' => $comment));
?>
<?php
echo HHtml::ajaxButton('Save', array('//comment/comment/edit', 'id' => $comment->id, 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id), array('type' => 'POST', 'success' => 'function(html){ $("#comment_' . $comment->id . '").replaceWith(html); }'), array('class' => 'btn btn-primary', 'id' => 'comment_edit_post_' . $comment->id, 'style' => 'position: absolute; left: -90000000px; opacity: 0;'));
?>
<?php
// Creates a list of already uploaded Files
$this->widget('application.modules_core.file.widgets.FileUploadListWidget', array('uploaderId' => 'comment_upload_' . $comment->id, 'object' => $comment));
?>
<?php
$this->endWidget();
?>
</div>
<script type="text/javascript">
示例10: array
</div>
<?php
/* Modify textarea for mention input */
$this->widget('application.widgets.HEditorWidget', array('id' => 'post_input_' . $post->id, 'inputContent' => $post->message));
?>
<?php
// Creates Uploading Button
$this->widget('application.modules_core.file.widgets.FileUploadButtonWidget', array('uploaderId' => 'post_upload_' . $post->id, 'object' => $post));
?>
<?php
echo HHtml::ajaxButton('Save', array('//post/post/edit', 'id' => $post->id), array('type' => 'POST', 'success' => 'function(html){ $("#post-' . $post->id . '").replaceWith(html); }'), array('class' => 'btn btn-primary', 'id' => 'post_edit_post_' . $post->id, 'style' => 'position: absolute; left: -90000000px; opacity: 0;'));
?>
<?php
// Creates a list of already uploaded Files
$this->widget('application.modules_core.file.widgets.FileUploadListWidget', array('uploaderId' => 'post_upload_' . $post->id, 'object' => $post));
?>
<?php
$this->endWidget();
?>
</div>
<script type="text/javascript">
示例11: array
echo Yii::t('RoomsModule.views_create_create', 'Private (Invisible)');
?>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<hr/>
<br/>
<?php
echo HHtml::ajaxButton(Yii::t('RoomsModule.views_create_create', 'Create'), array('//rooms/room/create'), array('type' => 'POST', 'beforeSend' => 'function(){ setModalLoader(); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary', 'id' => 'room-create-submit-button'));
?>
<div id="create-loader" class="loader loader-modal hidden">
<div class="sk-spinner sk-spinner-three-bounce">
<div class="sk-bounce1"></div>
<div class="sk-bounce2"></div>
<div class="sk-bounce3"></div>
</div>
</div>
</div>
<?php
$this->endWidget();
?>
</div>
示例12: array
$this->widget('application.modules_core.user.widgets.UserPickerWidget', array('inputId' => 'addUserFrom_mail', 'model' => $inviteForm, 'attribute' => 'recipient', 'userGuid' => Yii::app()->user->guid, 'focus' => true));
?>
</div>
<div class="modal-footer">
<hr/>
<div class="row">
<div class="col-sm-6">
<button type="button" class="btn btn-default"
data-dismiss="modal"><?php
echo Yii::t('MailModule.views_mail_adduser', 'Close');
?>
</button>
</div>
<div class="col-sm-6">
<?php
echo HHtml::ajaxButton(Yii::t('MailModule.views_mail_adduser', 'Send'), array('//mail/mail/adduser', 'id' => $inviteForm->message->id), array('type' => 'POST', 'beforeSend' => 'function(){ $("#adduser-loader").removeClass("hidden"); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary'));
?>
</div>
</div>
<div class="col-md-1 modal-loader">
<div id="adduser-loader" class="loader loader-small hidden"></div>
</div>
</div>
<?php
$this->endWidget();
?>
</div>
</div>