本文整理汇总了PHP中caFormControlBox函数的典型用法代码示例。如果您正苦于以下问题:PHP caFormControlBox函数的具体用法?PHP caFormControlBox怎么用?PHP caFormControlBox使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了caFormControlBox函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: caFormControlBox
* 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_group = $this->getVar('t_group');
$vn_group_id = $this->getVar('group_id');
?>
<div class="sectionBox">
<?php
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'GroupsForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'manage', 'groups', 'ListGroups', array('group_id' => 0)), '', caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), '', 'manage', 'groups', 'Delete', array('group_id' => $vn_group_id)));
print caFormTag($this->request, 'Save', 'GroupsForm');
foreach ($t_group->getFormFields() as $vs_f => $va_group_info) {
if ($vs_f == 'code') {
continue;
}
print $t_group->htmlFormElement($vs_f, null, array('field_errors' => $this->request->getActionErrors('field_' . $vs_f)));
}
// users
if (!is_array($va_group_users = $t_group->getGroupUsers())) {
$va_group_users = array();
}
print $this->request->user->userListAsHTMLFormElement(array('userclass' => array(0, 1), 'sort' => 'lname', 'sort_direction' => 'asc', 'name' => 'group_users', 'label' => 'Members', 'selected' => array_keys($va_group_users)));
?>
</form>
示例2: caDeleteWarningBox
/**
*
*/
function caDeleteWarningBox($po_request, $t_instance, $ps_item_name, $ps_module_path, $ps_controller, $ps_cancel_action, $pa_parameters)
{
if ($vs_warning = isset($pa_parameters['warning']) ? $pa_parameters['warning'] : null) {
$vs_warning = '<br/>' . $vs_warning;
}
$vs_remapping_controls = caDeleteRemapper($po_request, $t_instance);
$vs_output = caFormTag($po_request, 'Delete', 'caDeleteForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
$vs_output .= "<div class='delete-control-box'>" . caFormControlBox("<div class='delete_warning_box'>" . _t('Really delete "%1"?', $ps_item_name) . "</div>" . ($vs_remapping_controls ? "<div class='delete_remapping_controls'>{$vs_remapping_controls}</div>" : ''), $vs_warning, caFormSubmitButton($po_request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'caDeleteForm', array()) . caNavButton($po_request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', $ps_module_path, $ps_controller, $ps_cancel_action, $pa_parameters)) . "</div>\n";
foreach (array_merge($pa_parameters, array('confirm' => 1)) as $vs_f => $vs_v) {
$vs_output .= caHTMLHiddenInput($vs_f, array('value' => $vs_v));
}
$vs_output .= caHTMLHiddenInput($t_instance->primaryKey(), array('value' => $t_instance->getPrimaryKey()));
$vs_output .= "</form>\n";
return $vs_output;
}
示例3: array
*
* ----------------------------------------------------------------------
*/
AssetLoadManager::register('datePickerUI');
$t_order = $this->getVar('t_order');
$o_client_services_config = $this->getVar('client_services_config');
$va_credit_card_types = $o_client_services_config->getAssoc('credit_card_types');
if (!is_array($va_payment_info = $t_order->getPaymentInfo())) {
$va_payment_info = array();
}
$vn_order_id = (int) $t_order->getPrimaryKey();
$vn_transaction_id = $this->getVar('transaction_id');
$va_errors = $this->getVar('errors');
$vs_currency_symbol = $this->getVar('currency_symbol');
$vs_currency_input_format = "<div class='formLabel'>^LABEL<br/>{$vs_currency_symbol}^ELEMENT</div>";
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'caClientOrderPaymentForm', array('preventDuplicateSubmits' => true)) . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'client/orders', 'OrderEditor', 'Payment', array('order_id' => $vn_order_id)), '', caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), '', 'client/orders', 'OrderEditor', 'Delete', array('order_id' => $vn_order_id)));
print caFormTag($this->request, 'SavePayment', 'caClientOrderPaymentForm', null, 'post', 'multipart/form-data', '_top', array());
?>
<h1><?php
print _t('Payment information');
?>
</h1>
<?php
if ($t_order->paymentIsAllowed()) {
print $t_order->htmlFormElement('payment_method', $vs_form_element_format, array('width' => $vn_width, 'field_errors' => $va_errors[$vs_f], 'choiceList' => $va_payment_types, 'id' => 'caPaymentMethod'));
?>
<div style="margin-left: 20px; margin-bottom: 10px;">
<?php
if (is_array($va_errors['payment_info']) && sizeof($va_errors['payment_info'])) {
?>
<div class='formLabelError'><?php
示例4: caFormControlBox
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
$va_events_list = $this->getVar('events_list');
?>
<script language="JavaScript" type="text/javascript">
/* <![CDATA[ */
$(document).ready(function(){
$('#caEventList').caFormatListTable();
});
/* ]]> */
</script>
<div class="sectionBox">
<?php
print caFormControlBox('<div class="list-filter">' . _t('Filter') . ': <input type="text" name="filter" value="" onkeyup="$(\'#caEventList\').caFilterTable(this.value); return false;" size="20"/></div>', '', _t('Date range') . ': ' . caFormTag($this->request, 'Index', 'eventsLogSearch') . caHTMLTextInput('search', array('size' => 25, 'value' => $this->getVar('events_list_search'))) . "</form>");
?>
<table id="caEventList" class="listtable" width="100%" border="0" cellpadding="0" cellspacing="1">
<thead>
<tr>
<th class="list-header-unsorted">
<?php
print _t('Date/time');
?>
</th>
<th class="list-header-unsorted">
<?php
print _t('Type');
?>
</th>
示例5: caFormControlBox
* 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_item = $this->getVar('t_subject');
$vn_item_id = $this->getVar('subject_id');
$vn_above_id = $this->getVar('above_id');
$t_ui = $this->getVar('t_ui');
$vs_context_id = $this->getVar('_context_id');
// used to restrict idno uniqueness checking to within the current list
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'ListItemEditorForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), 'administrate/setup/list_item_editor', 'ListItemEditor', 'Edit/' . $this->request->getActionExtra(), array('item_id' => $vn_item_id)), '', intval($vn_item_id) > 0 ? caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'administrate/setup/list_item_editor', 'ListItemEditor', 'Delete/' . $this->request->getActionExtra(), array('item_id' => $vn_item_id)) : '');
?>
<div class="sectionBox">
<?php
print caFormTag($this->request, 'Save/' . $this->request->getActionExtra() . '/item_id/' . $vn_item_id, 'ListItemEditorForm', null, 'POST', 'multipart/form-data');
$va_form_elements = $t_item->getBundleFormHTMLForScreen($this->request->getActionExtra(), array('request' => $this->request, 'formName' => 'ListItemEditorForm', 'context_id' => $vs_context_id), $va_bundle_list);
print join("\n", $va_form_elements);
print $vs_control_box;
?>
<input type='hidden' name='_context_id' value='<?php
print $this->getVar('_context_id');
?>
'/>
<input type='hidden' name='item_id' value='<?php
print $vn_item_id;
?>
示例6: caFormControlBox
*
* 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_instance = $this->getVar('t_instance');
$vb_can_edit = $t_instance->isSaveable($this->request);
$vb_can_delete = $t_instance->isDeletable($this->request);
?>
<div class="sectionBox">
<?php
if ($vb_can_edit) {
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'caAccessControlList') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), $this->request->getModulePath(), $this->request->getController(), 'Access/' . $this->request->getActionExtra(), array($t_instance->primaryKey() => $t_instance->getPrimaryKey())), '', '');
}
print caFormTag($this->request, 'SetAccess', 'caAccessControlList');
?>
<div class='globalAccess'>
<div class='title'><?php
print _t('Global access');
?>
</div>
<?php
$va_global_access = $t_instance->getACLWorldAccess(array('returnAsInitialValuesForBundle' => true));
$va_global_access_status = $va_global_access['access_display'];
print "<p>" . _t('All groups and users ') . " <b>";
print "<span class='accessName'>" . $va_global_access_status . "</span>";
print "</b> " . _t('this record, unless you create an exception') . "</p>";
示例7: caFormControlBox
* 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_display = $this->getVar('t_subject');
$vn_display_id = $this->getVar('subject_id');
$t_ui = $this->getVar('t_ui');
?>
<div class="sectionBox">
<?php
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'BundleDisplayEditorForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'manage/bundle_displays', 'BundleDisplayEditor', 'Edit/' . $this->request->getActionExtra(), array('display_id' => $vn_display_id)), '', intval($vn_display_id) > 0 ? caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), '', 'manage/bundle_displays', 'BundleDisplayEditor', 'Delete/' . $this->request->getActionExtra(), array('display_id' => $vn_display_id)) : '');
print caFormTag($this->request, 'Save/' . $this->request->getActionExtra() . '/display_id/' . $vn_display_id, 'BundleDisplayEditorForm', null, 'POST', 'multipart/form-data');
$va_form_elements = $t_display->getBundleFormHTMLForScreen($this->request->getActionExtra(), array('request' => $this->request, 'formName' => 'BundleDisplayEditorForm'));
if (!$vn_form_id) {
// For new displays, show mandatory fields...
// ... BUT ...
// if table_num is set on the url then create a hidden element rather than show it as a mandatory field
// This allows us to set the content type for the display from the calling control
$va_mandatory_fields = $t_display->getMandatoryFields();
if (($vn_index = array_search('table_num', $va_mandatory_fields)) !== false) {
if ($vn_table_num = $t_display->get('table_num')) {
print caHTMLHiddenInput('table_num', array('value' => $vn_table_num));
unset($va_form_elements['table_num']);
unset($va_mandatory_fields[$vn_index]);
}
}
示例8: caFormControlBox
* the "license.txt" file for details, or visit the CollectiveAccess web site at
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
$va_importer_list = $this->getVar('importer_list');
if (!$this->request->isAjax()) {
?>
<script language="JavaScript" type="text/javascript">
jQuery(document).ready(function(){
jQuery('#caImporterList').caFormatListTable();
});
</script>
<div class="sectionBox">
<?php
print caFormControlBox('<div class="list-filter">' . _t('Filter') . ': <input type="text" name="filter" value="" onkeyup="jQuery(\'#caImporterList\').caFilterTable(this.value); return false;" size="20"/></div>', '', caJSButton($this->request, __CA_NAV_BUTTON_ADD_LARGE__, _t("Add importers"), 'caAddImportersButton', array('onclick' => 'caOpenImporterUploadArea(true, true); return false;', 'id' => 'caAddImportersButton')) . caJSButton($this->request, __CA_NAV_BUTTON_ADD_LARGE__, _t("Close"), 'caCloseImportersButton', array('onclick' => 'caOpenImporterUploadArea(false, true); return false;', 'id' => 'caCloseImportersButton')));
?>
<div id="batchProcessingTableProgressGroup" style="display: none;">
<div class="batchProcessingStatus"><span id="batchProcessingTableStatus" > </span></div>
<div id="progressbar"></div>
</div>
<div id="importerUploadArea" style="border: 2px dashed #999999; text-align: center; padding: 20px; display: none;">
<span style="font-size: 20px; color: #aaaaaa; font-weight: bold;"><?php
print _t("Drag importer worksheets here to add or update");
?>
</span>
</div>
<?php
示例9: caFormTag
*
* 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_set = $this->getVar('t_set');
?>
<div class="sectionBox">
<?php
if (!$this->getVar('confirmed')) {
// show delete confirmation notice
print caFormTag($this->request, 'Delete', 'caDeleteForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
print "<div class='delete-control-box'>" . caFormControlBox("<div class='delete_warning_box'>" . _t('Really delete ALL records in "%1"?', $t_set->getLabelForDisplay()) . "</div>", "", caFormSubmitButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'caDeleteForm', array()) . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', "batch", "Editor", "Edit", array('set_id' => $this->getVar('set_id')))) . "</div>\n";
print caHTMLHiddenInput('confirm', array('value' => 1));
print caHTMLHiddenInput($t_set->primaryKey(), array('value' => $t_set->getPrimaryKey()));
print "</form>\n";
} else {
AssetLoadManager::register("sortableUI");
?>
<h1><?php
print _t('Batch processing status');
?>
</h1>
<div class="batchProcessingTableProgressGroup">
<div id="batchProcessingTableStatus" class="batchProcessingStatus"> </div>
<div id="progressbar"></div>
示例10: intval
* 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');
$vn_subject_id = $this->getVar('subject_id');
$t_ui = $this->getVar('t_ui');
$vs_theme = $this->getVar('theme');
$vb_print_buttons = intval($vn_subject_id) > 0 ? $vb_can_edit : $vb_can_create;
$vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'ContributeForm', array('graphicsPath' => $this->getVar('graphicsPath'))) . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), $this->request->getModulePath(), $this->request->getController(), $this->request->getAction() . '/' . $this->request->getActionExtra(), array($t_subject->primaryKey() => $vn_subject_id), '', array('graphicsPath' => $this->getVar('graphicsPath'))), '', '');
?>
<div class='textContent'>
<p>Please provide the following information to contribute your media to the Metabolic Studio archive. Required fields are marked with an *.<br/>When you have finished your submission, place the hard copy in the designated physical archive space. If you need further assistance, please contact the <a href="mailto:archive@metabolicstudio.org">studio archivists</a>.</p>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
// initialize CA Utils
caUI.initUtils({unsavedChangesWarningMessage: '<?php
_p('You have made changes in this form that you have not yet saved. If you navigate away from this form you will lose your unsaved changes.');
?>
'});
});
</script>
<div class="sectionBox">
<?php
示例11: caFormControlBox
*
* ----------------------------------------------------------------------
*/
$va_element_list = $this->getVar('element_list');
$va_attribute_types = $this->getVar('attribute_types');
?>
<script language="JavaScript" type="text/javascript">
/* <![CDATA[ */
$(document).ready(function(){
$('#caElementList').caFormatListTable();
});
/* ]]> */
</script>
<div class="sectionBox">
<?php
print caFormControlBox('<div class="list-filter">' . _t('Filter') . ': <input type="text" name="filter" value="" onkeyup="$(\'#caElementList\').caFilterTable(this.value); return false;" size="20"/></div>', '', caNavHeaderButton($this->request, __CA_NAV_BUTTON_ADD_LARGE__, _t("New"), 'administrate/setup', 'Elements', 'Edit', array('element_id' => 0)));
?>
<table id="caElementList" class="listtable" width="100%" border="0" cellpadding="0" cellspacing="1">
<thead>
<tr>
<th>
<?php
_p('Label');
?>
</th>
<th>
<?php
_p('Element code');
?>
</th>
示例12: caFormControlBox
* 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_order = $this->getVar('t_order');
$vn_order_id = (int) $t_order->getPrimaryKey();
$vn_transaction_id = $this->getVar('transaction_id');
$va_errors = $this->getVar('errors');
$vn_max_field_width = 50;
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'caClientOrderCustomerForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), 'client/library', 'OrderEditor', 'CustomerInfo', array('order_id' => $vn_order_id)), '', caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'client/library', 'OrderEditor', 'Delete', array('order_id' => $vn_order_id)));
print caFormTag($this->request, 'SaveCustomerInfo', 'caClientOrderCustomerForm', null, 'post', 'multipart/form-data', '_top', array());
if (!$vn_transaction_id) {
?>
<h1><?php
print _t('User account to associate loan with');
?>
</h1>
<div class="formLabel">
<?php
print _t('User account');
?>
:
<input type="text" size="60" name="client_autocomplete" value="" id="client_autocomplete" class="lookupBg"/>
<input type="hidden" name="transaction_user_id" id="transaction_user_id" value=""/>
</div>
示例13: 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>
示例14: caFormControlBox
$va_failed_inserts = $this->getVar('failed_insert_list');
// List of values for items that failed on creation attempt
$va_default_values = $this->getVar('default_values');
// Default values for various item fields
$vb_loan_use_item_fee_and_tax = (bool) $this->getVar('loan_use_item_fee_and_tax');
$vb_loan_use_notes_and_restrictions = (bool) $this->getVar('loan_use_notes_and_restrictions');
$vb_loan_use_additional_fees = (bool) $this->getVar('loan_use_additional_fees');
$vs_currency_symbol = $this->getVar('currency_symbol');
$vs_currency_input_format = "<div class='formLabel'>^LABEL<br/>{$vs_currency_symbol}^ELEMENT</div>";
$vs_id_prefix = 'item_list';
$va_initial_values = $this->getVar('order_items');
$vn_max_field_width = 50;
?>
<div class="sectionBox">
<?php
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Check-out"), 'caClientLibraryCheckoutForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'client/library', 'CheckOut', 'Index', array('order_id' => 0)), '', '');
print caFormTag($this->request, 'Save', 'caClientLibraryCheckoutForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'noTimestamp' => true));
?>
<div class="formLabel">
<?php
print _t('Client name');
?>
:
<input type="text" size="60" name="client_autocomplete" value="<?php
print $t_order->getOrderTransactionUserName();
?>
" id="client_autocomplete" class="lookupBg"/>
<input type="hidden" name="transaction_user_id" id="transaction_user_id" value="<?php
print ($t_user = $t_order->getOrderTransactionUserInstance()) ? $t_user->getPrimaryKey() : '';
?>
"/>
示例15: caFormTag
* Copyright 2009 Whirl-i-Gig
*
* For more information visit http://www.CollectiveAccess.org
*
* This program is free software; you may redistribute it and/or modify it under
* the terms of the provided license as published by Whirl-i-Gig
*
* 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_type_id_form_element = '';
if ($vn_type_id = intval($this->getVar('type_id'))) {
$vs_type_id_form_element = '<input type="hidden" name="type_id" value="' . $vn_type_id . '"/>';
}
if (!$this->request->isAjax()) {
?>
<?php
print caFormTag($this->request, 'Index', 'BasicSearchForm');
print caFormControlBox('<div class="simple-search-box">' . _t('Search') . ': <input type="text" id="BasicSearchInput" name="search" value="' . htmlspecialchars($this->getVar('search'), ENT_QUOTES, 'UTF-8') . '" size="40"/>' . $vs_type_id_form_element . '</div>', '', caFormSubmitButton($this->request, __CA_NAV_BUTTON_SEARCH__, _t("Search"), 'BasicSearchForm'));
?>
</form>
<?php
}