* 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>
<?php /* ---------------------------------------------------------------------- * app/views/system/preferences_cataloguing_html.php : * ---------------------------------------------------------------------- * CollectiveAccess * Open-source collections management software * ---------------------------------------------------------------------- * * Software by Whirl-i-Gig (http://www.whirl-i-gig.com) * Copyright 2012 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 * * ---------------------------------------------------------------------- */ $t_user = $this->getVar('t_user'); $vs_group = $this->getVar('group'); ?>
/** * */ 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; }
* * ---------------------------------------------------------------------- */ 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
* 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>
* 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; ?>
* * 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>";
* 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]); } }
* 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
* * 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>
* 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
* * ---------------------------------------------------------------------- */ $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>
* 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>
$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>
$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() : ''; ?> "/>
* 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 }
* 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 * * ---------------------------------------------------------------------- */ $t_locale = $this->getVar('t_locale'); $vn_locale_id = $this->getVar('locale_id'); ?> <div class="sectionBox"> <?php print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'LocalesForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), 'administrate/setup', 'Locales', 'ListLocales', array('locale_id' => 0)), '', caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'administrate/setup', 'Locales', 'Delete', array('locale_id' => $vn_locale_id))); print caFormTag($this->request, 'Save', 'LocalesForm'); foreach ($t_locale->getFormFields() as $vs_f => $va_locale_info) { print $t_locale->htmlFormElement($vs_f, null, array('field_errors' => $this->request->getActionErrors('field_' . $vs_f))); } ?> </form> </div> <div class="editorBottomPadding"><!-- empty --></div>
/* <![CDATA[ */ $(document).ready(function(){ $('#caMappingList').caFormatListTable(); }); function _navigateToNewForm(table_num, target, direction) { document.location = '<?php print caNavUrl($this->request, 'administrate/setup/bundle_mapping_editor', 'BundleMappingEditor', 'Edit', array('mapping_id' => 0)); ?> ' + '/table_num/' + table_num + '/target/' + target + '/direction/' + direction; } /* ]]> */ </script> <div class="sectionBox"> <?php print caFormControlBox('<div class="list-filter">' . _t('Filter') . ': <input type="text" name="filter" value="" onkeyup="$(\'#caMappingList\').caFilterTable(this.value); return false;" size="20"/></div>', '', $vs_type_menu); ?> <table id="caMappingList" class="listtable" width="100%" border="0" cellpadding="0" cellspacing="1"> <thead> <tr> <th> <?php _p('Name'); ?> </th> <th> <?php _p('Type'); ?> </th>
* 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_object = $this->getVar('t_subject'); $vn_object_id = $this->getVar('subject_id'); $vn_above_id = $this->getVar('above_id'); $vb_can_edit = $t_object->isSaveable($this->request); $vb_can_delete = $t_object->isDeletable($this->request); if ($vb_can_edit) { print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'ObjectEditorForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), 'editor/objects', 'ObjectEditor', 'Edit/' . $this->request->getActionExtra(), array('object_id' => $vn_object_id)), '', intval($vn_object_id) > 0 && $vb_can_delete ? caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'editor/objects', 'ObjectEditor', 'Delete/' . $this->request->getActionExtra(), array('object_id' => $vn_object_id)) : ''); } ?> <div class="sectionBox"> <?php print caFormTag($this->request, 'Save/' . $this->request->getActionExtra() . '/object_id/' . $vn_object_id, 'ObjectEditorForm', null, 'POST', 'multipart/form-data'); $va_bundle_list = array(); $va_form_elements = $t_object->getBundleFormHTMLForScreen($this->request->getActionExtra(), array('request' => $this->request, 'formName' => 'ObjectEditorForm', 'forceHidden' => array('lot_id')), $va_bundle_list); print join("\n", $va_form_elements); if ($vb_can_edit) { print $vs_control_box; } ?> <input type='hidden' name='object_id' value='<?php print $vn_object_id; ?>
* 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 * * ---------------------------------------------------------------------- */ $t_importer = $this->getVar('t_importer'); $va_last_settings = $this->getVar('last_settings'); print $vs_control_box = caFormControlBox(caJSButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Execute data import"), 'caBatchMetadataImportFormButton', array('onclick' => 'caShowConfirmBatchExecutionPanel(); return false;')) . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'batch', 'MetadataImport', 'Index', array()), '', ''); ?> <div class="sectionBox"> <?php print caFormTag($this->request, 'ImportData/' . $this->request->getActionExtra(), 'caBatchMetadataImportForm', null, 'POST', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'noTimestamp' => true)); ?> <div class='bundleLabel'> <span class="formLabelText"><?php print _t('Importer'); ?> </span> <div class="bundleContainer"> <div class="caLabelList" > <p> <?php print ca_data_importers::getImporterListAsHTMLFormElement('importer_id', null, array('id' => 'caImporterList', 'onchange' => 'caSetBatchMetadataImportFormState(true);'), array('value' => $t_importer->getPrimaryKey()));
* 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>";
*/ $va_exporter_list = $this->getVar('exporter_list'); if (!$this->request->isAjax()) { if (sizeof($va_exporter_list) > 0) { ?> <script language="JavaScript" type="text/javascript"> jQuery(document).ready(function(){ jQuery('#caExporterList').caFormatListTable(); }); </script> <?php } ?> <div class="sectionBox"> <?php print caFormControlBox('<div class="list-filter">' . _t('Filter') . ': <input type="text" name="filter" value="" onkeyup="jQuery(\'#caExporterList\').caFilterTable(this.value); return false;" size="20"/></div>', '', caJSButton($this->request, __CA_NAV_BUTTON_ADD_LARGE__, _t("Add exporters"), 'caAddExportersButton', array('onclick' => 'jQuery("#exporterUploadArea").slideToggle(150); return false;'))); ?> <div id="batchProcessingTableProgressGroup" style="display: none;"> <div class="batchProcessingStatus"><span id="batchProcessingTableStatus" > </span></div> <div id="progressbar"></div> </div> <div id="exporterUploadArea" > <span class="exporterUploadText"><?php print _t("Drag exporter worksheets here to add or update"); ?> </span> </div> <?php
* ---------------------------------------------------------------------- * * Software by Whirl-i-Gig (http://www.whirl-i-gig.com) * Copyright 2008-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 * * ---------------------------------------------------------------------- */ $t_item = $this->getVar('t_subject'); $vn_item_id = $this->getVar('subject_id'); ?> <div class="sectionBox"> <?php print caFormControlBox('<div class="list-filter">' . _t('Filter') . ': <input type="text" name="filter" value="" onkeyup="jQuery(\'#caLog\').caFilterTable(this.value); return false;" size="20"/></div>', '', ''); print $t_item->getChangeLogForDisplay('caLog'); ?> <div class="editorBottomPadding"><!-- empty --></div> </div>
* * ---------------------------------------------------------------------- */ $va_user_list = $this->getVar('user_list'); ?> <script language="JavaScript" type="text/javascript"> /* <![CDATA[ */ $(document).ready(function(){ $('#caUserList').caFormatListTable(); }); /* ]]> */ </script> <div class="sectionBox"> <?php print caFormTag($this->request, 'ListUsers', 'caUserListForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true)); print caFormControlBox('<div class="list-filter">' . _t('Filter') . ': <input type="text" name="filter" value="" onkeyup="$(\'#caUserList\').caFilterTable(this.value); return false;" size="20"/></div>', '' . _t('Show %1 users', caHTMLSelect('userclass', $this->request->user->getFieldInfo('userclass', 'BOUNDS_CHOICE_LIST'), array('onchange' => 'jQuery("#caUserListForm").submit();'), array('value' => $this->getVar('userclass')))), caNavHeaderButton($this->request, __CA_NAV_BUTTON_ADD__, _t("New user"), 'administrate/access', 'Users', 'Edit', array('user_id' => 0))); if (sizeof($va_user_list)) { ?> <a href='#' id='showTools' onclick='jQuery("#searchToolsBox").slideDown(250); jQuery("#showTools").hide(); return false;'><?php print _t("Tools"); ?> <img src="<?php print $this->request->getThemeUrlPath(); ?> /graphics/arrows/arrow_right_gray.gif" width="6" height="7" border="0"></a> <?php print $this->render('user_tools_html.php'); } ?>
* ---------------------------------------------------------------------- */ $t_stop = $this->getVar('t_subject'); $vn_stop_id = $this->getVar('subject_id'); $vn_above_id = $this->getVar('above_id'); $vb_can_edit = $t_stop->isSaveable($this->request); $vb_can_delete = $t_stop->isDeletable($this->request); $vs_rel_table = $this->getVar('rel_table'); $vn_rel_type_id = $this->getVar('rel_type_id'); $vn_rel_id = $this->getVar('rel_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 if ($vb_can_edit) { $va_cancel_parameters = $vn_stop_id ? array('stop_id' => $vn_stop_id) : array('type_id' => $t_stop->getTypeID()); print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'TourStopEditorForm') . ' ' . ($this->getVar('show_save_and_return') ? caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save and return"), 'TourStopEditorForm', array('isSaveAndReturn' => true)) : '') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'editor/tour_stops', 'TourStopEditor', 'Edit/' . $this->request->getActionExtra(), $va_cancel_parameters), '', intval($vn_stop_id) > 0 && $vb_can_delete ? caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), '', 'editor/tour_stops', 'TourStopEditor', 'Delete/' . $this->request->getActionExtra(), array('stop_id' => $vn_stop_id)) : ''); } ?> <div class="sectionBox"> <?php print caFormTag($this->request, 'Save/' . $this->request->getActionExtra() . '/stop_id/' . $vn_stop_id, 'TourStopEditorForm', null, 'POST', 'multipart/form-data'); $va_form_elements = $t_stop->getBundleFormHTMLForScreen($this->request->getActionExtra(), array('request' => $this->request, 'formName' => 'TourStopEditorForm', 'context_id' => $vs_context_id), $va_bundle_list); print join("\n", $va_form_elements); if ($vb_can_edit) { print $vs_control_box; } ?> <input type='hidden' name='_context_id' value='<?php print $this->getVar('_context_id'); ?> '/>
* 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 = 'caClientLibraryCheckin'; $t_order_item = new ca_commerce_order_items(); $va_initial_values = array(); ?> <div class="sectionBox"> <?php print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Check-in"), 'caClientLibraryCheckinForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), 'client/library', 'CheckIn', 'Index', array()), '', ''); print caFormTag($this->request, 'Save', 'caClientLibraryCheckinForm', null, 'post', 'multipart/form-data', '_top', array()); ?> <div class="formLabel"> <?php print _t('Item') . ': ' . caHTMLTextInput('search', array('value' => '', 'width' => '300px', 'id' => 'caCheckInObjectSearch')); ?> <a href="#" id='caCheckInButton' class='button' id='caClientLibraryCustomerInfoMoreButton'><?php print _t('Find'); ?> ›</a> </div> <div id="<?php print $vs_id_prefix . '_item'; ?>
* 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"), 'caClientAdditionalFeesForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'client/orders', 'OrderEditor', 'AdditionalFees', 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, 'SaveAdditionalFees', 'caClientAdditionalFeesForm', null, 'post', 'multipart/form-data', '_top', array()); ?> <h1><?php print _t('Additional order fees'); ?> </h1> <div class="formContainerBg" style="padding-top:0px;"> <table width="100%"> <tr> <td> <h2><?php print _t('Fees'); ?> </h2> <div id='caOrderFeeFields'>
* http://www.CollectiveAccess.org * * ---------------------------------------------------------------------- */ $va_group_list = $this->getVar('group_list'); ?> <script language="JavaScript" type="text/javascript"> /* <![CDATA[ */ $(document).ready(function(){ $('#caGroupList').caFormatListTable(); }); /* ]]> */ </script> <div class="sectionBox"> <?php print caFormControlBox('<div class="list-filter">' . _t('Filter') . ': <input type="text" name="filter" value="" onkeyup="$(\'#caGroupList\').caFilterTable(this.value); return false;" size="20"/></div>', '', caNavHeaderButton($this->request, __CA_NAV_BUTTON_ADD_LARGE__, _t("New team"), 'manage', 'groups', 'Edit', array('group_id' => 0))); ?> <h1><?php print _t('Your project teams'); ?> </h1> <table id="caGroupList" class="listtable" width="100%" border="0" cellpadding="0" cellspacing="1"> <thead> <tr> <th class="list-header-unsorted"> <?php print _t('Team'); ?> </th>
* 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 * * ---------------------------------------------------------------------- */ $va_importer_list = $this->getVar('importer_list'); $vb_importers_available = is_array($va_importer_list) && sizeof($va_importer_list); print $vs_control_box = caFormControlBox(($vb_importers_available ? caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Import"), 'caWorldCatResultsForm') : '') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', '*', '*', 'Index'), '', ''); ?> <form action="#" id="caWorldCatSearchForm"> <div class="formLabel"> <?php print _t('Find in WorldCat') . ': ' . caHTMLTextInput("term", array('value' => '', 'id' => 'caWorldCatTerm'), array('width' => '250px')); ?> <a href="#" id="caWorldCatTermLookup" class="button"><?php print _t('Go'); ?> ›</a> </div> </form> <?php print caFormTag($this->request, 'Run', 'caWorldCatResultsForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'noTimestamp' => true));
* 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'); $vs_message = $this->getVar('notification_message'); $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"), 'CatalogingForm', array('graphicsPath' => $this->getVar('graphicsPath'))) . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), 'Detail', 'Object', 'Show', array($t_subject->primaryKey() => $vn_subject_id), '', array('graphicsPath' => $this->getVar('graphicsPath'))), '', ''); ?> <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"> <div class='textContent'> <p><?php print _t("Use the following form to make cataloging adjustments to this record."); ?>