本文整理汇总了PHP中caJSButton函数的典型用法代码示例。如果您正苦于以下问题:PHP caJSButton函数的具体用法?PHP caJSButton怎么用?PHP caJSButton使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了caJSButton函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: caHTMLRadioButtonInput
print caHTMLRadioButtonInput('{fieldNamePrefix}upload_type{n}', array('id' => '{fieldNamePrefix}upload_type_url{n}', 'class' => '{fieldNamePrefix}upload_type{n}', 'value' => 'url'), array('checked' => $vs_default_upload_type == 'url' ? 1 : 0)) . ' ' . _t('from URL');
?>
</td>
<td class='formLabel'><?php
print caHTMLTextInput("{fieldNamePrefix}media_url_{n}", array('id' => '{fieldNamePrefix}media_url_{n}', 'class' => 'urlBg uploadInput'), array('width' => '235px'));
?>
</td>
</tr>
<?php
}
?>
</table>
<div class='caObjectRepresentationDetailEditorDoneButton'>
<?php
print caJSButton($this->request, __CA_NAV_BUTTON_SAVE__, _t('Done'), '{fieldNamePrefix}detail_editor_save_button{n}', array('onclick' => 'caCloseRepresentationDetailEditor("{n}"); return false;'));
?>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#{fieldNamePrefix}upload_options{n} tr td .uploadInput").prop('disabled', true);
jQuery("#{fieldNamePrefix}upload_type_upload{n}").click(function() {
jQuery("#{fieldNamePrefix}media_{n}").prop('disabled', false);
jQuery("#{fieldNamePrefix}media_url_{n}").prop('disabled', true);
jQuery("#{fieldNamePrefix}autocomplete{n}").prop('disabled', true);
});
jQuery("#{fieldNamePrefix}upload_type_url{n}").click(function() {
jQuery("#{fieldNamePrefix}media_{n}").prop('disabled', true);
jQuery("#{fieldNamePrefix}media_url_{n}").prop('disabled', false);
jQuery("#{fieldNamePrefix}autocomplete{n}").prop('disabled', true);
示例2: _t
<div class=""caLibraryUIContainer">
<div class="caLibraryFindAutocompleteContainer">
<form>
<div class="caLibraryFindAutocompleteLabel"><?php
print _t('Name of user checking out item');
?>
</div>
<?php
print caHTMLTextInput('user', array('id' => 'user_autocomplete'), array('width' => '500px', 'autocomplete' => 'off'));
?>
</form>
</div>
<div class="caLibrarySubmitListContainer">
<?php
print caJSButton($this->request, __CA_NAV_BUTTON_SAVE__, _t('Next'), 'nextButton', array(), array());
?>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#nextButton').hide();
jQuery('#user_autocomplete').autocomplete(
{
source: '<?php
print caNavUrl($this->request, 'lookup', 'User', 'Get', array('max' => 100, 'inlineCreate' => 0, 'quickadd' => 0));
?>
',
minLength: 3, delay: 800, html: true,
示例3: _t
</tr>
<tr>
<td colspan="3">
<div class="formLabel"><?php
print _t('Search') . "<br/>" . caHTMLTextInput('search', array('value' => $va_filter_options['search']), array('width' => '400px'));
?>
</div>
</td><td>
<?php
print $t_order->htmlFormElement('shipping_method', null, array('nullOption' => '-'));
?>
</td>
<td align="right" valign="bottom">
<?php
print caFormSubmitButton($this->request, __CA_NAV_BUTTON_GO__, _t('Filter'), 'caViewOptions', array());
print caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t('Reset'), 'caViewOptions', array('onclick' => 'jQuery("#searchToolsBox input").val("");'));
?>
</td>
</tr>
</table>
</form>
</div>
</div>
<table id="caClientOrdersList" class="listtable" width="100%" border="0" cellpadding="0" cellspacing="1">
<thead>
<tr>
<th>
<?php
_p('Order #');
?>
示例4: unicode_ucfirst
</div>
<?php
} else {
//
// Generate form
//
print "<div class='dashboardWidgetHeading'>" . unicode_ucfirst($o_dm->getTableProperty($t_form->get('table_num'), 'NAME_PLURAL')) . ": " . $t_form->getLabelForDisplay() . "</div>\n";
$va_form_element_list = $this->getVar('form_elements');
$va_flds = array();
foreach ($va_form_element_list as $vn_i => $va_element) {
$va_flds[] = "'" . $va_element['name'] . "'";
}
?>
<?php
print caFormTag($this->request, 'Index', 'AdvancedSearchForm', "find/{$vs_controller_name}", 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
print "<div style='float: right;'>" . caFormSubmitButton($this->request, __CA_NAV_BUTTON_SEARCH__, _t("Search"), 'AdvancedSearchForm') . '<br/>' . caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Reset"), 'AdvancedSearchForm', array('onclick' => 'caAdvancedSearchFormReset()')) . "</div>\n";
print $this->render('search_form_table_html.php');
?>
<script type="text/javascript">
function caAdvancedSearchFormReset() {
jQuery('#AdvancedSearchForm textarea').val('');
jQuery('#AdvancedSearchForm input[type=text]').val('');
jQuery('#AdvancedSearchForm input[type=hidden]').val('');
jQuery('#AdvancedSearchForm select').prop('selectedIndex', -1);
jQuery('#AdvancedSearchForm input[type=checkbox]').attr('checked', 0);
}
</script>
</form>
<?php
}
}
示例5: _t
print "caWidgetSettings_{$vs_widget_id}";
?>
" action="#" method="get">
<?php
if ($vs_form = $this->getVar('form')) {
?>
<h1><?php
print _t('Settings');
?>
</h1>
<?php
print $vs_form;
print caJSButton($po_request, __CA_NAV_BUTTON_SAVE__, _t('Save'), '', array('onclick' => 'jQuery("#caWidgetSettingForm_' . $vs_widget_id . '").load("' . caNavUrl($this->request, '', 'Dashboard', 'saveSettings', array()) . '", jQuery("#caWidgetSettings_' . $vs_widget_id . '").serializeArray());'), array()) . ' ';
} else {
?>
<h1><?php
print _t('No settings available');
?>
</h1>
<?php
}
print caJSButton($po_request, __CA_NAV_BUTTON_CANCEL__, _t('Cancel'), '', array('onclick' => 'jQuery("#caWidgetSettingForm_' . $vs_widget_id . '").load("' . caNavUrl($this->request, '', 'Dashboard', 'getWidget', array()) . '", jQuery("#caWidgetSettings_' . $vs_widget_id . '").serializeArray());', array()));
?>
<?php
print caHTMLHiddenInput('widget_id', array('value' => $vs_widget_id));
?>
</form>
</div>
<?php
print TooltipManager::getLoadHTML();
示例6: addslashes
print addslashes(caBusyIndicatorIcon($this->request));
?>
'
});
</script>
<form action="#" class="quickAddSectionForm" name="<?php
print $vs_form_name;
?>
" method="POST" enctype="multipart/form-data" id="<?php
print $vs_form_name . $vs_field_name_prefix . $vs_n;
?>
">
<div class='quickAddDialogHeader'><?php
print "<div class='quickAddTypeList'>" . _t('Quick Add %1', $t_subject->getTypeListAsHTMLFormElement('change_type_id', array('id' => "{$vs_form_name}TypeID{$vs_field_name_prefix}{$vs_n}", 'onchange' => "caQuickAddFormHandler.switchForm();"), array('value' => $t_subject->get('type_id'), 'restrictToTypes' => $va_restrict_to_types))) . "</div>";
if ($vb_can_edit) {
print "<div class='quickAddControls'>" . caJSButton($this->request, __CA_NAV_BUTTON_ADD_LARGE__, _t("Add %1", $t_subject->getTypeName()), "{$vs_form_name}{$vs_field_name_prefix}{$vs_n}", array("onclick" => "caQuickAddFormHandler.save(event);")) . ' ' . caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), "{$vs_form_name}{$vs_field_name_prefix}{$vs_n}", array("onclick" => "jQuery(\"#{$vs_form_name}" . $vs_field_name_prefix . $vs_n . "\").parent().data(\"panel\").hidePanel();")) . "</div>\n";
}
print "<div class='quickAddProgress'></div><br style='clear: both;'/>";
?>
</div>
<div class="quickAddFormTopPadding"><!-- empty --></div>
<div class="quickAddErrorContainer" id="<?php
print $vs_form_name;
?>
Errors<?php
print $vs_field_name_prefix . $vs_n;
?>
"> </div>
<div class="quickAddSectionBox" id="{$vs_form_name}Container<?php
print $vs_field_name_prefix . $vs_n;
示例7: caFormTag
* CollectiveAccess is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* This source code is free and modifiable under the terms of
* GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
* the "license.txt" file for details, or visit the CollectiveAccess web site at
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
$vo_result = $this->getVar('result');
$vn_items_per_page = $this->getVar('current_items_per_page');
if (!$this->request->isAjax()) {
print caFormTag($this->request, 'Index', 'PlaceBasicSearchForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
print caFormControlBox('<div class="simple-search-box">' . _t('Search') . ': <input type="text" id="browseSearch" name="search" value="' . htmlspecialchars($this->getVar('search'), ENT_QUOTES, 'UTF-8') . '" size="40"/></div>' . caJSButton($this->request, __CA_NAV_BUTTON_SEARCH__, _t("Search"), 'submitSearch', array(), array('href' => '#', 'onclick' => 'caCloseBrowser(); jQuery("#resultBox").load("' . caNavUrl($this->request, 'find', 'SearchPlaces', 'Index', array('search' => '')) . '" + escape(jQuery("#browseSearch").attr("value"))); return false;')), '', '<a href="#" id="browseToggle" class="form-button"></a>');
?>
</form>
<div id="browse">
<div class='subTitle' style='background-color: #eeeeee; padding:5px 0px 5px 5px;'><?php
print _t("Place hierarchy");
?>
</div>
<?php
if ($this->getVar('num_types') > 0) {
?>
<!--- BEGIN HIERARCHY BROWSER TYPE MENU --->
<div id='browseTypeMenu'>
<form action='#'>
<?php
print "<div>";
示例8: caJSButton
<td>
<div><?php
print caJSButton($this->request, __CA_NAV_BUTTON_DOWNLOAD__, _t('Download'), 'file_download', array('id' => 'file_download', 'onclick' => 'caProcessDestination("file_download");'));
?>
</div>
<?php
if (is_array($va_destinations)) {
foreach ($va_destinations as $vs_code => $va_dest) {
if (!isset($va_dest['type']) || $va_dest['type'] != 'github') {
continue;
}
// we only support github atm
if (!isset($va_dest['display']) || !$va_dest['display']) {
$va_dest['display'] = "???";
}
print "<div>" . caJSButton($this->request, __CA_NAV_BUTTON_UPDATE__, $va_dest['display'], $vs_code, array('onclick' => 'caProcessDestination("' . $vs_code . '"); return false;')) . "<div/>\n";
}
}
?>
</td>
</tr>
</table>
<div id="caExporterDestinationFeedback" style="margin-top: 20px; text-align: center;"></div>
<script type="text/javascript">
jQuery("#file_name").keyup(function(event){
if(event.keyCode == 13){
jQuery("#file_download").click();
}
});
示例9: _t
</form>
</div>
<form>
<div class="caLibraryTransactionListContainer" id="transactionListContainer">
<div class="caLibraryTransactionListLabel"><?php
print _t('Items to check in');
?>
</div>
<ol class="transactionList">
</ol>
</div>
<div class="caLibrarySubmitListContainer" id="transactionSubmitContainer">
<?php
print caJSButton($this->request, __CA_NAV_BUTTON_SAVE__, _t('Check in'), 'transactionSubmit', array(), array());
?>
</div>
<div class="caLibraryTransactionResultsContainer" id="transactionResultsContainer">
<div class="caLibraryTransactionResultsLabel"><?php
print _t('Results');
?>
</div>
<ol class="transactionSuccesses">
</ol>
<ol class="transactionErrors">
</ol>
</div>
示例10: caFormTag
$vs_form_id = $this->getVar('form_id');
$va_last_settings = $this->getVar('last_settings');
?>
<h1><?php
print $o_tool->getToolName();
?>
</h1>
<div class="toolPluginHelpText">
<p><?php
print $o_tool->getToolDescription();
?>
</p>
</div>
<?php
print caFormTag($this->request, 'Run', $vs_form_id, null, 'POST', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'noTimestamp' => true));
print $vs_control_box = caFormControlBox(caJSButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Run"), "caRunTool{$vs_tool_identifier}", array('onclick' => 'caShowConfirmToolExecutionPanel(); return false;')) . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'manage', 'Tools', 'Settings', array('tool' => $vs_tool_identifier)), '', '');
// Print command <select>
?>
<div class='bundleLabel'>
<span class="formLabelText"><?php
print _t('Command');
?>
</span>
<div class="bundleContainer">
<div class="caLabelList" >
<p>
<?php
print caHTMLSelect('command', $o_tool->getCommands(), array('id' => 'caToolCommand'));
?>
</p>
示例11: caConfirmDeleteAnnotation
?>
Errors<?php
print $vs_field_name_prefix . $vs_n;
?>
").slideUp(500);
clearInterval(quickAddClearErrorInterval);
}, 3000);
}
}, "json");
}
function caConfirmDeleteAnnotation(show) {
if (show) {
var content = '<div class="notification-info-box rounded"><ul class="notification-info-box">' +
'<li class="notification-info-box"><?php
print addslashes(_t("Really delete annotation? %1 %2", caJSButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Yes"), "{$vs_form_name}{$vs_field_name_prefix}{$vs_n}", array("onclick" => "caDeleteAnnotation(true);")), caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("No"), "{$vs_form_name}{$vs_field_name_prefix}{$vs_n}", array("onclick" => "caConfirmDeleteAnnotation(false); return false;"))));
?>
</li>' +
'</ul></div>';
jQuery('#<?php
print $vs_form_name;
?>
Errors<?php
print $vs_field_name_prefix . $vs_n;
?>
').html(content).slideDown(200);
} else {
jQuery('#<?php
print $vs_form_name;
?>
Errors<?php
示例12: _t
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
$t_form = $this->getVar('t_form');
$vn_form_id = $t_form->getPrimaryKey();
$vn_group_code = $this->getVar('group_code');
$vs_element_code = $this->getVar('element_code');
$va_element_info = $t_form->getInfoForElementInFormGroup($vn_group_code, $vs_element_code);
$va_settings = $t_form->getAvailableElementSettings();
?>
<div id="caSearchFormSettingsMessage" class="searchFormElementSettingsMessage notification-info-box rounded" style="display: none;"><!-- empty --></div>
<h3><?php
print _t('Settings for Group #%1/%2', $vn_group_code + 1, $va_element_info['name']);
?>
<h3>
<?php
print caFormTag($this->request, 'setSettingsForElement', 'searchFormElementSettingsForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
foreach ($va_settings as $vs_setting => $va_setting_info) {
print $t_form->elementSettingHTMLFormElement($vn_group_code, $vs_element_code, $vs_setting);
}
print caHTMLHiddenInput('form_id', array('value' => $vn_form_id));
print caHTMLHiddenInput('group', array('value' => $vn_group_code));
print caHTMLHiddenInput('element', array('value' => $vs_element_code));
print caJSButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save settings"), 'searchFormElementSettingsForm', array(), array('onclick' => 'jQuery.getJSON("' . caNavUrl($this->request, $this->request->getModulePath(), $this->request->getController(), "setSettingsForElement") . '", jQuery("#searchFormElementSettingsForm").serialize(), function(data, status) { jQuery("#caSearchFormSettingsMessage").show().html("<ul class=\\"notification-info-box\\"><li class=\\"notification-info-box\\">" + data.message + "</li></ul>"); });'));
?>
</form>
<?php
print TooltipManager::getLoadHTML();
示例13: caFormSubmitButton
?>
<div class="control-box rounded">
<div class="simple-search-box">
<?php
print $this->render('Search/search_forms/search_form_table_html.php') . $vs_type_id_form_element;
?>
</div>
<br style="clear: both;"/>
<div style="float:left; ">
<?php
print caFormSubmitButton($this->request, __CA_NAV_BUTTON_SEARCH__, _t("Search"), 'AdvancedSearchForm');
?>
<?php
print caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Reset"), 'AdvancedSearchForm', array('onclick' => 'caAdvancedSearchFormReset()'), array());
?>
</div>
<div style="float: right;">
<?php
print _t("Save as");
?>
:
<?php
print caHTMLTextInput('_label', array('size' => 10, 'id' => 'caAdvancedSearchSaveLabelInput'));
?>
<a href="#" onclick="caSaveSearch('AdvancedSearchForm', jQuery('#caAdvancedSearchSaveLabelInput').val(), [<?php
print join(',', $va_flds);
?>
]); return false;" class="button"><?php
print _t('Go') . ' ›';
示例14: caFormControlBox
*
* CollectiveAccess is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* This source code is free and modifiable under the terms of
* GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
* the "license.txt" file for details, or visit the CollectiveAccess web site at
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
$t_subject = $this->getVar('t_subject');
$t_set = $this->getVar('t_set');
$vn_set_id = $this->getVar('set_id');
print $vs_control_box = caFormControlBox(caJSButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Execute batch edit"), 'caBatchEditorFormButton', array('onclick' => 'caConfirmBatchExecutionPanel.showPanel(); return false;')) . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'batch', 'Editor', 'Edit/' . $this->request->getActionExtra(), array('set_id' => $vn_set_id)), '', '');
?>
<div class="sectionBox">
<?php
print caFormTag($this->request, 'Save/' . $this->request->getActionExtra(), 'caBatchEditorForm', null, 'POST', 'multipart/form-data', '_top', array('noTimestamp' => true));
$va_bundle_list = array();
$va_form_elements = $t_subject->getBundleFormHTMLForScreen($this->request->getActionExtra(), array('request' => $this->request, 'formName' => 'caBatchEditorForm', 'batch' => true, 'restrictToTypes' => array_keys($t_set->getTypesForItems(array('includeParents' => true))), 'ui_instance' => $this->getVar('t_ui')), $va_bundle_list);
print join("\n", $va_form_elements);
print $vs_control_box;
?>
<input type='hidden' name='set_id' value='<?php
print $vn_set_id;
?>
'/>
<?php
print $this->render("editor/confirm_html.php");
示例15: caJSButton
print $this->getVar('player');
?>
<div class="caAnnoMediaPlayerControlsLeft">
<?php
print caJSButton($this->request, __CA_NAV_BUTTON_ADD__, _t("New clip"), "caAnnoEditorAddAtButton", array("id" => "caAnnoEditorNewInButton", "onclick" => "caAnnoEditorEdit(0, caAnnoEditorGetPlayerTime(), caAnnoEditorGetPlayerTime() + 10, \"PLAY\")"));
?>
<?php
print "<span id='caAnnoEditorInOutButtonLabel'>" . _t('Set') . ': </span>' . caJSButton($this->request, __CA_NAV_BUTTON_ADD__, _t("start"), "caAnnoEditorAddAtButton", array("id" => "caAnnoEditorInButton", "onclick" => "caAnnoEditorSetInTime(caAnnoEditorGetPlayerTime(), \"PLAY\")"));
?>
<?php
print caJSButton($this->request, __CA_NAV_BUTTON_ADD__, _t("end"), "caAnnoEditorAddAtButton", array("id" => "caAnnoEditorOutPauseButton", "onclick" => "caAnnoEditorSetOutTime(caAnnoEditorGetPlayerTime(), \"PAUSE\")"));
?>
</div>
<div class="caAnnoMediaPlayerControlsRight">
<?php
print caJSButton($this->request, __CA_NAV_BUTTON_ADD__, _t("Set end & Save"), "caAnnoEditorAddAtButton", array("id" => "caAnnoEditorOutAndSavePauseButton", "onclick" => "caAnnoEditorSetOutTime(caAnnoEditorGetPlayerTime(), null, true)"));
?>
</div>
</div>
<div class="caAnnoEditorEditorScreen" id="caAnnoEditorEditorScreen">
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
var initIndex = 0;
jQuery('#caAnnoEditorTlCarousel').jcarousel();