本文整理汇总了PHP中caEditorBundleShowHideControl函数的典型用法代码示例。如果您正苦于以下问题:PHP caEditorBundleShowHideControl函数的具体用法?PHP caEditorBundleShowHideControl怎么用?PHP caEditorBundleShowHideControl使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了caEditorBundleShowHideControl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$va_labels = $this->getVar('labels');
$t_label = $this->getVar('t_label');
$va_initial_values = $this->getVar('label_initial_values');
if (!($va_force_new_labels = $this->getVar('new_labels'))) {
$va_force_new_labels = array();
}
// list of new labels not saved due to error which we need to for onto the label list as new
$va_settings = $this->getVar('settings');
$vs_add_label = $this->getVar('add_label');
$vb_read_only = isset($va_settings['readonly']) && $va_settings['readonly'] || $this->request->user->getBundleAccessLevel('ca_search_forms', 'preferred_labels') == __CA_BUNDLE_ACCESS_READONLY__;
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . 'Labels');
?>
<div id="<?php
print $vs_id_prefix;
?>
Labels">
<?php
//
// The bundle template - used to generate each bundle in the form
//
?>
<textarea class='caLabelTemplate' style='display: none;'>
<div id="{fieldNamePrefix}Label_{n}" class="labelInfo">
<div style="float: right;">
<a href="#" class="caDeleteLabelButton"><?php
print caNavIcon($this->request, __CA_NAV_BUTTON_DEL_BUNDLE__);
示例2: caEditorBundleShowHideControl
print $vs_id_prefix;
?>
NextControl').hide();
} else {
//
// Everything can fit without scrolling so hide the controls
//
jQuery('#<?php
print $vs_id_prefix;
?>
NextPrevControls').hide();
}
});
</script>
<?php
print caEditorBundleShowHideControl($this->request, $vs_id_prefix, $pa_bundle_settings, false, $vs_bundle_preview);
print caEditorBundleMetadataDictionary($this->request, $vs_id_prefix, $va_settings);
?>
<div id="<?php
print $vs_id_prefix;
?>
">
<div class="bundleContainer">
<div class="hierNav" >
<?php
if (sizeof($va_errors)) {
print "<div class='formLabel'><span class='formLabelError'>" . join('; ', $va_errors) . "</span></div>\n";
}
if ($pn_id > 0) {
?>
<div class="hierarchyCountDisplay"><?php
示例3: _t
*
* 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
*
* ----------------------------------------------------------------------
*/
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$t_subject = $this->getVar('t_subject');
// object_representation
$vn_num_multifiles = $this->getVar('representation_num_multifiles');
$vs_num_multifiles = $vn_num_multifiles ? $vn_num_multifiles == 1 ? _t('+ 1 additional preview') : _t('+ %1 additional previews', $vn_num_multifiles) : '';
$vb_allow_fetching_from_urls = $this->request->getAppConfig()->get('allow_fetching_of_media_from_remote_urls');
$vb_media_is_set = is_array($t_subject->getMediaInfo('media'));
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . 'MediaDisplay');
?>
<div id="<?php
print $vs_id_prefix . 'MediaDisplay';
?>
">
<div class="bundleContainer">
<table style="width: 100%;">
<tr>
<td>
<div id="<?php
print "{$vs_id_prefix}";
?>
_media_upload_control">
<?php
print $t_subject->htmlFormElement('media', null, array('displayMediaVersion' => null, 'name' => "{$vs_id_prefix}_media", 'id' => "{$vs_id_prefix}media", "value" => "", 'no_tooltips' => false, 'tooltip_namespace' => 'bundle_ca_object_representations_media_display'));
示例4: isset
$t_subject = $this->getVar('t_subject');
$va_settings = $this->getVar('settings');
$vs_add_label = $this->getVar('add_label');
$va_rel_types = $this->getVar('relationship_types');
$vb_batch = $this->getVar('batch');
$vs_sort = isset($va_settings['sort']) && $va_settings['sort'] ? $va_settings['sort'] : '';
$vb_read_only = isset($va_settings['readonly']) && $va_settings['readonly'] || $this->request->user->getBundleAccessLevel($t_instance->tableName(), 'ca_objects') == __CA_BUNDLE_ACCESS_READONLY__;
$vb_dont_show_del = isset($va_settings['dontShowDeleteButton']) && $va_settings['dontShowDeleteButton'] ? true : false;
$vs_first_color = isset($va_settings['colorFirstItem']) && $va_settings['colorFirstItem'] ? $va_settings['colorFirstItem'] : '';
$vs_last_color = isset($va_settings['colorLastItem']) && $va_settings['colorLastItem'] ? $va_settings['colorLastItem'] : '';
// params to pass during occurrence lookup
$va_lookup_params = isset($va_settings['restrict_to_type']) && $va_settings['restrict_to_type'] ? array('type' => $va_settings['restrict_to_type'], 'noSubtypes' => (int) $va_settings['dont_include_subtypes_in_type_restriction']) : array();
if ($vb_batch) {
print caBatchEditorRelationshipModeControl($t_item, $vs_id_prefix);
} else {
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . $t_item->tableNum() . '_rel');
}
?>
<div id="<?php
print $vs_id_prefix . $t_item->tableNum() . '_rel';
?>
" <?php
print $vb_batch ? "class='editorBatchBundleContent'" : '';
?>
>
<?php
//
// Template to generate display for existing items
//
if ($t_subject->tableName() == 'ca_object_lots') {
?>
示例5: in_array
* 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
*
* ----------------------------------------------------------------------
*/
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$vn_table_num = $this->getVar('table_num');
$t_subject = $this->getVar('t_subject');
$va_settings = $this->getVar('settings');
$vs_order_type = in_array($va_settings['orderType'][0], array('O', 'L')) ? $va_settings['orderType'][0] : 'O';
$vb_read_only = isset($va_settings['readonly']) && $va_settings['readonly'];
$va_errors = array();
$va_orders = $t_subject->getClientHistory($vs_order_type);
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . $vn_table_num . 'OrderHistory');
print caEditorBundleMetadataDictionary($this->request, $vs_id_prefix . $vn_table_num . 'OrderHistory', $va_settings);
?>
<div id="<?php
print $vs_id_prefix . $vn_table_num . 'OrderHistory';
?>
">
<div class="bundleContainer">
<?php
if ($vs_order_type == 'L') {
// Loan
if (sizeof($va_orders) == 0) {
?>
<h2><?php
print _t('No loans have been made');
?>
示例6: caEditorBundleShowHideControl
} else {
jQuery('#<?php
print $vs_id_prefix . $t_item->tableNum() . '_rel';
?>
').slideDown(250);
}
});
jQuery('#<?php
print $vs_id_prefix . $t_item->tableNum() . '_rel';
?>
').hide();
});
</script>
<?php
} else {
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . $t_item->tableNum() . '_rel', $va_settings, sizeof($va_initial_values) > 0, _t("Number of representations: %1", sizeof($va_initial_values)));
}
print caEditorBundleMetadataDictionary($this->request, $vs_id_prefix . $t_item->tableNum() . '_rel', $va_settings);
?>
<div id="<?php
print $vs_id_prefix . $t_item->tableNum() . '_rel';
?>
" <?php
print $vb_batch ? "class='editorBatchBundleContent'" : '';
?>
>
<?php
//
// Template to generate display for existing items
//
?>
示例7: caEditorBundleShowHideControl
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
AssetLoadManager::register('setEditorUI');
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$va_items = $this->getVar('items');
$t_set = $this->getVar('t_set');
$vn_set_id = $t_set->getPrimaryKey();
$t_row = $this->getVar('t_row');
$vs_type_singular = $this->getVar('type_singular');
$vs_type_plural = $this->getVar('type_plural');
$va_lookup_urls = $this->getVar('lookup_urls');
$va_settings = $this->getVar('settings');
$vn_table_num = $t_set->get('table_num');
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . 'setItemEditor');
print caEditorBundleMetadataDictionary($this->request, $vs_id_prefix . 'setItemEditor', $va_settings);
?>
<div id="<?php
print $vs_id_prefix;
?>
" class='setItemEditor'>
<?php
if (!$vn_table_num) {
?>
<div id='<?php
print $vs_id_prefix;
?>
setNoItemsWarning'>
<?php
print "<strong>" . _t('You must save this set before you can add items to it.') . "</strong>";
示例8: array
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$vs_element = $this->getVar('form_element');
$va_settings = $this->getVar('settings');
$t_instance = $this->getVar('t_instance');
$vs_bundle_name = $this->getVar('bundle_name');
$vb_batch = $this->getVar('batch');
$va_errors = array();
if (is_array($va_action_errors = $this->getVar('errors'))) {
foreach ($va_action_errors as $o_error) {
$va_errors[] = $o_error->getErrorDescription();
}
}
if ($vb_batch) {
print caBatchEditorIntrinsicModeControl($t_instance, $vs_bundle_name);
} else {
print caEditorBundleShowHideControl($this->request, "intrinsic_{$vs_bundle_name}");
}
?>
<div>
<?php
if (isset($va_settings['forACLAccessScreen']) && $va_settings['forACLAccessScreen']) {
?>
<div class="globalAccess">
<div class='title'><?php
print $t_instance->getFieldInfo($vs_bundle_name, 'LABEL');
?>
</div>
<p>
<?php
} else {
?>
示例9: foreach
* 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_form = $this->getVar('t_form');
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$va_available_display_items = $t_form->getAvailableBundles();
foreach ($va_available_display_items as $vs_bundle => $va_item) {
unset($va_available_display_items[$vs_bundle]['settings']);
// strip lists of valid settings - we don't need to send them to the client and they can be fairly large
}
//getTemplatePlaceholderListForBundle
$va_to_display_items = $t_form->getPlacementsInForm(array('noCache' => true));
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . 'searchFormPlacements');
?>
<div class="bundleDisplayPlacementEditorContainer" id="<?php
print $vs_id_prefix;
?>
searchFormPlacements">
<div id="bundleDisplayPlacementEditor" class="bundleDisplayPlacementEditor">
<div class="bundleDisplayPlacementEditorHelpText"><?php
print _t("Drag your selection from column to column to edit the contents of the search form.");
?>
</div>
<table>
<tr valign="top">
<td>
<div><?php
print _t("Available search items");
示例10: caEditorBundleShowHideControl
print $ps_id_prefix;
?>
NextControl').hide();
} else {
//
// Everything can fit without scrolling so hide the controls
//
jQuery('#<?php
print $ps_id_prefix;
?>
NextPrevControls').hide();
}
});
</script>
<?php
print caEditorBundleShowHideControl($this->request, $ps_id_prefix . $t_subject->tableNum() . 'HierLocation');
?>
<div class="bundleContainer" id="<?php
print $ps_id_prefix . $t_subject->tableNum();
?>
HierLocation">
<div class="hierNav" >
<?php
if (sizeof($va_errors)) {
print "<div class='formLabel'><span class='formLabelError'>" . join('; ', $va_errors) . "</span></div>\n";
}
if ($pn_id > 0) {
?>
<div class="buttonPosition">
<a href="#" id="<?php
print $ps_id_prefix;
示例11: isset
* ----------------------------------------------------------------------
*/
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$vn_table_num = $this->getVar('table_num');
$t_subject = $this->getVar('t_subject');
$va_settings = $this->getVar('settings');
$vb_read_only = isset($va_settings['readonly']) && $va_settings['readonly'];
$va_history = $this->getVar('history');
$vs_mode = $this->getVar('mode');
$vs_relationship_type = $this->getVar('location_relationship_type');
$vs_change_location_url = $this->getVar('location_change_url');
if (!($vs_add_label = $this->getVar('add_label'))) {
$vs_add_label = _t('Update location');
}
$va_lookup_params = array();
print caEditorBundleShowHideControl($this->request, $vs_id_prefix, $va_settings);
?>
<div id="<?php
print $vs_id_prefix;
?>
">
<div class="bundleContainer">
<?php
if (!$vb_read_only) {
?>
<div class="caUseHistoryButtonBar">
<?php
if (!caGetOption('hide_add_to_loan_controls', $va_settings, false)) {
?>
<div style='float: left;' class='button caAddLoanButton'><a href="#" id="<?php
print $vs_id_prefix;
示例12: foreach
* 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_display = $this->getVar('t_display');
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$va_available_display_items = $t_display->getAvailableBundles();
foreach ($va_available_display_items as $vs_bundle => $va_item) {
unset($va_available_display_items[$vs_bundle]['settings']);
// strip lists of valid settings - we don't need to send them to the client and they can be fairly large
}
$va_to_display_items = $t_display->getPlacementsInDisplay(array('noCache' => true));
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . 'BundleDisplayPlacements');
?>
<div class="bundleDisplayPlacementEditorContainer" id="<?php
print $vs_id_prefix;
?>
BundleDisplayPlacements">
<div id="bundleDisplayPlacementEditor" class="bundleDisplayPlacementEditor">
<div class="bundleDisplayPlacementEditorHelpText"><?php
print _t("Drag your selection from column to column to edit the contents of the display.");
?>
</div>
<table>
<tr valign="top">
<td>
<div><?php
print _t("Available information");
示例13: isset
* 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
*
* ----------------------------------------------------------------------
*/
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$vn_table_num = $this->getVar('table_num');
$t_subject = $this->getVar('t_subject');
$va_settings = $this->getVar('settings');
$vb_read_only = isset($va_settings['readonly']) && $va_settings['readonly'];
if (!($vs_add_label = $this->getVar('add_label'))) {
$vs_add_label = _t('Update location');
}
print caEditorBundleShowHideControl($this->request, $vs_id_prefix, $va_settings, (bool) $t_subject->get('is_deaccessioned'), (bool) $t_subject->get('is_deaccessioned') ? _t('Yes') : _t('No'));
?>
<div id="<?php
print $vs_id_prefix;
?>
">
<div class="bundleContainer">
<div class="caItemList">
<div class="labelInfo">
<div style="margin-bottom: 10px;">
<?php
if ($vb_read_only) {
?>
<div class='formLabel'><?php
print _t('Deaccessioned: %1', (bool) $t_subject->get('is_deaccessioned') ? _t('Yes') : _t('No'));
?>
示例14: array
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$va_labels = $this->getVar('labels');
$t_label = $this->getVar('t_label');
$va_initial_values = $this->getVar('label_initial_values');
if (!($va_force_new_labels = $this->getVar('new_labels'))) {
$va_force_new_labels = array();
}
// list of new labels not saved due to error which we need to for onto the label list as new
$va_settings = $this->getVar('settings');
$vs_add_label = $this->getVar('add_label');
$vb_read_only = isset($va_settings['readonly']) && $va_settings['readonly'] || $this->request->user->getBundleAccessLevel('ca_tours', 'preferred_labels') == __CA_BUNDLE_ACCESS_READONLY__;
$vb_batch = $this->getVar('batch');
if ($vb_batch) {
print caBatchEditorPreferredLabelsModeControl($t_label, $vs_id_prefix);
} else {
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . 'Labels', $va_settings, caInitialValuesArrayHasValue($vs_id_prefix . 'Labels', $va_initial_values));
}
print caEditorBundleMetadataDictionary($this->request, $vs_id_prefix . 'Labels', $va_settings);
?>
<div id="<?php
print $vs_id_prefix;
?>
Labels" <?php
print $vb_batch ? "class='editorBatchBundleContent'" : '';
?>
>
<?php
//
// The bundle template - used to generate each bundle in the form
//
?>
示例15: caEditorBundleShowHideControl
*
* 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
*
* ----------------------------------------------------------------------
*/
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$vn_table_num = $this->getVar('table_num');
$t_subject = $this->getVar('t_subject');
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . $vn_table_num . 'Settings');
?>
<div id="<?php
print $vs_id_prefix . $vn_table_num . 'Settings';
?>
">
<div class="bundleContainer">
<div class="caItemList settingsBundle">
<?php
if ($vs_form = $t_subject->getHTMLSettingForm(array('id' => 'setting'))) {
print $vs_form;
} else {
print _t('No settings');
}
?>
</div>