本文整理汇总了PHP中caBusyIndicatorIcon函数的典型用法代码示例。如果您正苦于以下问题:PHP caBusyIndicatorIcon函数的具体用法?PHP caBusyIndicatorIcon怎么用?PHP caBusyIndicatorIcon使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了caBusyIndicatorIcon函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
caGetNextWorldCatResults();
});
jQuery(document).on('click', '#caWorldCatResultsPreviousLink', {}, function(e) {
caGetPreviousWorldCatResults();
});
});
function caSearchWorldCat(term, start, c, msg) {
if (!msg) { msg = "<?php
print addslashes(_t('Searching WorldCat...'));
?>
"; }
if (start <= 0) { start = 0; }
if (c <= 0) { c = 10; }
jQuery("#caWorldCatResults").html("<div class='caWorldCatResultsMessage'><?php
print caBusyIndicatorIcon($this->request) . ' ';
?>
" + msg + "</div>");
jQuery.getJSON('<?php
print caNavUrl($this->request, '*', '*', 'Lookup');
?>
', {term: term, start: start, count: c }, function(data) {
if (data['count'] >= 25) {
jQuery('#caWorldCatResultsNextLink').show();
} else {
jQuery('#caWorldCatResultsNextLink').hide();
}
if (start > 0) {
jQuery('#caWorldCatResultsPreviousLink').show();
} else {
jQuery('#caWorldCatResultsPreviousLink').hide();
示例2: caNavUrl
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#bHierarchyList_<?php
print $vs_facet_name;
?>
").load("<?php
print caNavUrl($this->request, '*', '*', 'getFacetHierarchyLevel', array('facet' => $vs_facet_name, 'browseType' => $vs_browse_type, 'key' => $vs_key, 'linkTo' => 'morePanel'));
?>
");
});
</script>
<div id='bHierarchyList_<?php
print $vs_facet_name;
?>
'><?php
print caBusyIndicatorIcon($this->request) . ' ' . addslashes(_t('Loading...'));
?>
</div>
<?php
} else {
if (!is_array($va_facet_info['content']) || !sizeof($va_facet_info['content'])) {
continue;
}
print "<H5>" . $va_facet_info['label_singular'] . "</H5>";
switch ($va_facet_info["group_mode"]) {
case "alphabetical":
case "list":
default:
$vn_facet_size = sizeof($va_facet_info['content']);
$vn_c = 0;
foreach ($va_facet_info['content'] as $va_item) {
示例3: htmlFormElement
/**
*
*
*/
public function htmlFormElement($pa_element_info, $pa_options = null)
{
$o_config = Configuration::load();
$va_settings = $this->getSettingValuesFromElementArray($pa_element_info, array('fieldWidth', 'fieldHeight'));
$vs_element = '<div id="infoservice_' . $pa_element_info['element_id'] . '_input{n}">' . caHTMLTextInput('{fieldNamePrefix}' . $pa_element_info['element_id'] . '_autocomplete{n}', array('size' => isset($pa_options['width']) && $pa_options['width'] > 0 ? $pa_options['width'] : $va_settings['fieldWidth'], 'height' => isset($pa_options['height']) && $pa_options['height'] > 0 ? $pa_options['height'] : $va_settings['fieldHeight'], 'value' => '{{' . $pa_element_info['element_id'] . '}}', 'maxlength' => 512, 'id' => "infoservice_" . $pa_element_info['element_id'] . "_autocomplete{n}", 'class' => 'lookupBg')) . caHTMLHiddenInput('{fieldNamePrefix}' . $pa_element_info['element_id'] . '_{n}', array('value' => '{{' . $pa_element_info['element_id'] . '}}', 'id' => '{fieldNamePrefix}' . $pa_element_info['element_id'] . '_{n}'));
if ($pa_options['request']) {
$vs_url = caNavUrl($pa_options['request'], 'lookup', 'InformationService', 'Get', array('max' => 100, 'element_id' => $pa_element_info['element_id']));
$vs_detail_url = caNavUrl($pa_options['request'], 'lookup', 'InformationService', 'GetDetail', array('element_id' => $pa_element_info['element_id']));
} else {
// hardcoded default for testing.
$vs_url = '/index.php/lookup/InformationService/Get';
$vs_detail_url = '/index.php/lookup/InformationService/GetDetail';
}
$vs_element .= " <a href='#' class='caInformationServiceMoreLink' id='{fieldNamePrefix}" . $pa_element_info['element_id'] . "_link{n}'>" . _t("More ›") . "</a>";
$vs_element .= "<div id='{fieldNamePrefix}" . $pa_element_info['element_id'] . "_detail{n}' class='caInformationServiceDetail'>" . ($pa_options['request'] ? caBusyIndicatorIcon($pa_options['request']) : '') . "</div></div>";
$vs_element .= "\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\tjQuery(document).ready(function() {\n\t\t\t\t\t\tjQuery('#infoservice_" . $pa_element_info['element_id'] . "_autocomplete{n}').autocomplete(\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tminLength: 3,delay: 800,\n\t\t\t\t\t\t\t\tsource: '{$vs_url}',\n\t\t\t\t\t\t\t\tselect: function(event, ui) {\n\t\t\t\t\t\t\t\t\tjQuery('#{fieldNamePrefix}" . $pa_element_info['element_id'] . "_{n}').val(ui.item.label + '|' + ui.item.idno + '|' + ui.item.url);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t).click(function() { this.select(); });\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ('{{" . $pa_element_info['element_id'] . "}}') {\n\t\t\t\t\t\t\tvar re = /\\[([A-Za-z]+:\\/\\/[^\\]]+)\\]/; \n\t\t\t\t\t\t\tvar infoservice = re.exec('{{" . $pa_element_info['element_id'] . "}}');\n\t\t\t\t\t\t\tif (infoservice && infoservice.length > 1) { \n\t\t\t\t\t\t\t\tjQuery('#{fieldNamePrefix}" . $pa_element_info['element_id'] . "_link{n}').css('display', 'inline').on('click', function(e) {\n\t\t\t\t\t\t\t\t\tif (jQuery('#{fieldNamePrefix}" . $pa_element_info['element_id'] . "_detail{n}').css('display') == 'none') {\n\t\t\t\t\t\t\t\t\t\tjQuery('#{fieldNamePrefix}" . $pa_element_info['element_id'] . "_detail{n}').slideToggle(250, function() { \n\t\t\t\t\t\t\t\t\t\t\tjQuery('#{fieldNamePrefix}" . $pa_element_info['element_id'] . "_detail{n}').load('{$vs_detail_url}/id/{n}');\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\tjQuery('#{fieldNamePrefix}" . $pa_element_info['element_id'] . "_link{n}').html('" . addslashes(_t("Less ›")) . "');\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tjQuery('#{fieldNamePrefix}" . $pa_element_info['element_id'] . "_detail{n}').slideToggle(250);\n\t\t\t\t\t\t\t\t\t\tjQuery('#{fieldNamePrefix}" . $pa_element_info['element_id'] . "_link{n}').html('" . addslashes(_t("More ›")) . "');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t</script>\n\t\t\t";
return $vs_element;
}
示例4: caNavUrl
',
saveUrl: '<?php
print caNavUrl($this->request, "editor/collections", "CollectionQuickAdd", "Save");
?>
',
headerText: '<?php
print addslashes(_t('Quick add %1', $t_subject->getTypeName()));
?>
',
saveText: '<?php
print addslashes(_t('Created %1 ', $t_subject->getTypeName()));
?>
<em>%1</em>',
busyIndicator: '<?php
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";
示例5: _t
<?php
}
?>
<div class="col">
<?php
print "<span class='header'>" . _t("Create set") . ":</span><br/>";
?>
<form id="caCreateSetFromResults">
<?php
print caHTMLTextInput('set_name', array('id' => 'caCreateSetFromResultsInput', 'class' => 'searchSetsTextInput', 'value' => $o_result_context->getSearchExpression()), array('width' => '150px'));
print " ";
print caHTMLSelect('set_create_mode', array(_t('from results') => 'from_results', _t('from checked') => 'from_checked'), array('id' => 'caCreateSetFromResultsMode', 'class' => 'searchSetsSelect'), array('value' => null, 'width' => '140px'));
if ($t_list->getAppConfig()->get('enable_set_type_controls')) {
print $t_list->getListAsHTMLFormElement('set_types', 'set_type', array('id' => 'caCreateSetTypeID', 'class' => 'searchSetsSelect'), array('value' => null, 'width' => '140px'));
}
print caBusyIndicatorIcon($this->request, array('id' => 'caCreateSetFromResultsIndicator')) . "\n";
?>
<a href='#' onclick="caCreateSetFromResults(); return false;" class="button"><?php
print _t('Create');
?>
›</a>
<?php
if ($this->request->user->canDoAction('can_batch_edit_' . $t_subject->tableName())) {
print '<div class="searchSetsBatchEdit">' . caHTMLCheckboxInput('batch_edit', array('id' => 'caCreateSetBatchEdit', 'value' => 1)) . " " . _t('Open set for batch editing') . "</div>\n";
}
?>
</form>
</div>
<a href='#' id='hideSets' onclick='caHideSearchSetTools(); $(".setTools").slideDown(250); '><?php
示例6: join
?>
<div class="formLabelError"><?php
print join("; ", $t_rep->getErrors());
?>
</div>
<div id="caRepresentationMediaReplicationControls<?php
print $pn_representation_id;
?>
" class="caRepresentationMediaReplicationControls">
<?php
if (is_array($va_available_targets = $t_rep->getAvailableMediaReplicationTargets('media', 'original')) && sizeof($va_available_targets)) {
print "<div class='caRepresentationMediaReplicationTargetList'>\n";
print _t('Replicate media to %1', $vs_target_list);
print "<a href='#' onclick='jQuery(\"#caRepresentationMediaReplicationLoadIcon{$pn_representation_id}\").css(\"display\", \"inline\"); jQuery(\"#caRepresentationMediaReplicationStartControl{$pn_representation_id}\").hide(); jQuery(\"#caRepresentationMediaReplicationControls{$pn_representation_id}\").load(\"" . caNavUrl($this->request, '*', '*', 'StartMediaReplication', array('representation_id' => $pn_representation_id)) . "/target/\" + jQuery(\"#caRepresentationMediaReplicationControls{$pn_representation_id} select[name=target]\").val()); return false;' class='button' id='caRepresentationMediaReplicationStartControl{$pn_representation_id}'>" . _t('Start ›') . "</a>";
print "<span id='caRepresentationMediaReplicationLoadIcon{$pn_representation_id}' class='caRepresentationMediaReplicationLoadIcon'>" . caBusyIndicatorIcon($this->request) . "</span>";
print "</div>\n";
}
if (is_array($va_replications = $t_rep->getUsedMediaReplicationTargets('media', 'original')) && sizeof($va_replications)) {
print "<table class='caRepresentationMediaReplicationStatusTable'>\n<thead><tr><th>" . _t('Replication target') . "</th><th>" . _t('Status') . "</th></tr></thead>\n";
print "<tbody>\n";
$vb_incomplete_replications = 0;
foreach ($va_replications as $vs_target => $va_target_info) {
$va_status = $t_rep->getMediaReplicationStatus('media', $vs_target);
print "<tr><td>" . (($vs_url = $t_rep->getReplicatedMediaUrl('media', $vs_target)) ? "<a href='{$vs_url}' target='_ext'>{$va_target_info['name']}</a>" : $va_target_info['name']) . " (<em>{$va_target_info['type']}</em>)</td><td>{$va_status['status']}</td><td>";
if ($va_status['code'] === __CA_MEDIA_REPLICATION_STATE_COMPLETE__) {
// Delete only allows when replication is complete
print "<a href='#' onclick='jQuery(\"#caRepresentationMediaReplicationLoadIcon{$pn_representation_id}\").css(\"display\", \"inline\"); jQuery(\"#caRepresentationMediaReplicationDeleteControl{$pn_representation_id}\").hide(); jQuery(\"#caRepresentationMediaReplicationControls{$pn_representation_id}\").load(\"" . caNavUrl($this->request, '*', '*', 'RemoveMediaReplication', array('representation_id' => $pn_representation_id, 'target' => $vs_target, 'key' => urlencode($va_status['key']))) . "\"); return false;' class='button' id='caRepresentationMediaReplicationDeleteControl{$pn_representation_id}'>" . _t('Delete ›') . "</a>";
}
print "</td></tr>\n";
if (!in_array($va_status['code'], array(__CA_MEDIA_REPLICATION_STATE_COMPLETE__, __CA_MEDIA_REPLICATION_STATE_ERROR__))) {
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:object_representation_media_replication_controls_html.php
示例7: array
$va_facet_info = $this->getVar("facet_info");
$vb_is_nav = (bool) $this->getVar('isNav');
$vn_id = $this->request->getParameter('id', pInteger);
$va_letter_bar = array();
$vs_order_by = $va_facet_info["order_by_label_fields"][0];
$vs_facet_list = "";
if ($vb_is_nav) {
print "<div id='bHierarchyListMorePanel_" . $vs_facet_name . "'>" . caBusyIndicatorIcon($this->request) . ' ' . addslashes(_t('Loading...')) . "</div>";
#foreach($va_facet_content as $vn_id => $va_item) {
# print "<div class='browseFacetItem'>".caNavLink($this->request, $va_item['label'], 'col-sm-4 col-md-3', '*', '*', '*', array('facet' => $vs_facet_name, 'id' => $va_item['id'], 'view' => $vs_view, 'key' => $vs_key))."</div>";
#}
} else {
print "<H1>" . $va_facet_info["label_plural"] . "</H1>";
print "<div id='bAncestorList'></div>";
print "<div id='bScrollList' class='bScrollListHierarchy'>";
print "<div id='bHierarchyListMorePanel_" . $vs_facet_name . "'>" . caBusyIndicatorIcon($this->request) . ' ' . addslashes(_t('Loading...')) . "</div>";
print "</div><!-- end bScrollList -->";
print "<div style='clear:both;'></div>";
}
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#bHierarchyListMorePanel_<?php
print $vs_facet_name;
?>
").load("<?php
print caNavUrl($this->request, '*', '*', 'getFacetHierarchyLevel', array('facet' => $vs_facet_name, 'browseType' => $vs_browse_type, 'key' => $vs_key, 'id' => $vn_id));
?>
");
});
jQuery(document).ready(function() {