?>
	<?php 
        print caFormTag($this->request, 'Index', 'AdvancedSearchForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
        ?>
		<div class="control-box rounded">
			<div class="simple-search-box">
				<?php 
        print $this->render('Search/search_forms/search_form_table_html.php') . $vs_type_id_form_element;
        ?>
			</div>
			
			<br style="clear: both;"/>
			
			<div style="float:left; ">
				<?php 
        print caFormSubmitButton($this->request, __CA_NAV_BUTTON_SEARCH__, _t("Search"), 'AdvancedSearchForm');
        ?>
				<?php 
        print caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Reset"), 'AdvancedSearchForm', array('onclick' => 'caAdvancedSearchFormReset()'), array());
        ?>
			</div>
			<div style="float: right;">
				<?php 
        print _t("Save as");
        ?>
:
				<?php 
        print caHTMLTextInput('_label', array('size' => 10, 'id' => 'caAdvancedSearchSaveLabelInput'));
        ?>
				<a href="#" onclick="caSaveSearch('AdvancedSearchForm', jQuery('#caAdvancedSearchSaveLabelInput').val(), [<?php 
        print join(',', $va_flds);
<?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');
?>
Пример #3
0
/**
 *
 */
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;
}
Пример #4
0
 * 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;
?>
 *
 * ----------------------------------------------------------------------
 */
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 
Пример #6
0
 * 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>
				</td>
				<td class="caConfirmBatchExecutionPanelAlertControl">
<?php 
    print _t('Send SMS to <strong>%1</strong> when done', $vs_sms);
    ?>
			
				</td>
<?php 
}
?>

			<div id="caTypeChangePanelControlButtons">
				<table>
					<tr>
						<td align="right"><?php 
print caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t('Save'), 'caChangeTypeForm');
?>
</td>
						<td align="left"><?php 
print caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t('Cancel'), 'caChangeTypeFormCancelButton', array('onclick' => 'caTypeChangePanel.hidePanel(); return false;'), array());
?>
</td>
					</tr>
				</table>
			</div>
			
			<?php 
print caHTMLHiddenInput('set_id', array('value' => $this->getVar('set_id')));
?>
		</form>
	</div>
Пример #8
0
$va_items = $t_order->getItems();
$va_order_totals = $t_order->getOrderTotals();
$va_item_counts_by_fulfillment_method = $t_order->getFulfillmentItemCounts();
print caFormTag($this->request, 'SaveOrderOverview', 'caClientOrderOverviewForm', null, 'post', 'multipart/form-data', '_top', array());
$vs_item_url = caNavUrl($this->request, 'client', 'OrderEditor', 'ItemList', array('order_id' => $vn_order_id));
?>
<div id="caClientOrderOverview">
	<div class="overrideButton"><a href="#" class="button" onclick="jQuery('#caCommerceOrderStatusOverride').toggle(150);"><?php 
print _t('Override current order status');
?>
 &rsaquo;</a></div>
	<div class="formContainerBg" id="caCommerceOrderStatusOverride" style="display: none;">
	<?php 
print "<div class='formLabel'>";
print $t_order->htmlFormElement('order_status', "^LABEL ^ELEMENT", array('width' => $vn_width));
print caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'caClientOrderOverviewForm');
print "</div>\n";
?>
	</div><!-- end formContainerBg -->
	
	<div class="orderStatus">
<?php 
// status
$vs_order_status = $t_order->get('order_status');
$vs_order_status_display = "<em>" . $t_order->getChoiceListValue('order_status', $vs_order_status) . "</em>";
$vs_order_status_description = '';
$vs_next_step = '';
switch ($vs_order_status) {
    case 'OPEN':
        $vs_status_message = _t('Order status: %1', $vs_order_status_display);
        TooltipManager::add("#commerceOrderStatusMessage", $vs_order_status_description = _t('Order is being entered by the client and not yet submitted for processing.'));
Пример #9
0
 *
 * 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_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>
 * ----------------------------------------------------------------------
 * CollectiveAccess
 * Open-source collections management software
 * ----------------------------------------------------------------------
 *
 * Software by Whirl-i-Gig (http://www.whirl-i-gig.com)
 * Copyright 2011 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
 *
 * ----------------------------------------------------------------------
 */
print "<h1>" . _t("Rebuild search indices") . "</h1>\n";
print "<div class='searchReindexHelpText'>";
print _t("<p>CollectiveAccess relies upon <em>indices</em> when searching your data.  Indices are simply summaries of your data designed to speed query processing. The precise form and characteristics of the indices used will vary with the type of search engine you  are using. They may be stored on disk, in a database or on another server, but their purpose is always the same: to make searches execute faster.</p>\n<p>For search results to be accurate the database and indices must be in sync. CollectiveAccess simultaneously updates both the database and indicies as you add, edit and delete data, keeping database and indices in agreement. Occasionally things get out of sync, however. If the basic and advanced searches are consistently returning unexpected results you can use this tool to rebuild the indices from the database and bring things back into alignment.</p> \n<p>Note that depending upon the size of your database rebuilding can take from a few minutes to several hours. During the rebuilding process the system will remain usable but search functions may return incomplete results. Browse functions, which do not rely upon indices, will not be affected.</p>\n\t");
print caFormTag($this->request, 'reindex', 'caSearchReindexForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'noTimestamp' => true));
print "<div style='text-align: center'>" . caFormSubmitButton($this->request, __CA_NAV_BUTTON_GO__, _t("Rebuild search indices"), 'caSearchReindexForm', array()) . "</div>";
print "</form>";
print "</div>\n";
Пример #12
0
 * 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>
Пример #13
0
 * 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.");
?>
 * ----------------------------------------------------------------------
 * CollectiveAccess
 * Open-source collections management software
 * ----------------------------------------------------------------------
 *
 * Software by Whirl-i-Gig (http://www.whirl-i-gig.com)
 * Copyright 2011 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
 *
 * ----------------------------------------------------------------------
 */
print "<h1>" . _t("Reload sort values") . "</h1>\n";
print "<div class='searchReindexHelpText'>";
print _t("<p>CollectiveAccess relies upon <em>sort values</em> when sorting values that should not sort alphabetically, such as titles with articles (eg. <em>The Man Who Fell to Earth</em> should sort as <em>Man Who Fell to Earth, The</em>) and alphanumeric identifiers (eg. <em>2011.001</em> and <em>2011.2</em> should sort next to each other with leading zeros in the first ignored).</p>\n<p>Sort values are derived from corresponding values in your database. The internal format of sort values can vary between versions of CollectiveAccess causing erroneous sorting behavior after an upgrade. If you notice values such as titles and identifiers are sorting incorrectly, you may need to reload sort values from your data.</p> \n<p>Note that depending upon the size of your database reloading sort values can take from a few minutes to an hour or more. During the reloading process the system will remain usable but search and browse functions may return incorrectly sorted results. </p>\n\t");
print caFormTag($this->request, 'reload', 'caSortValuesReloadForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'noTimestamp' => true));
print "<div style='text-align: center'>" . caFormSubmitButton($this->request, __CA_NAV_BUTTON_GO__, _t("Reload sort values"), 'caSortValuesReloadForm', array()) . "</div>";
print "</form>";
print "</div>\n";
Пример #15
0
			</td>
		</tr>
		<tr>
			<td colspan="3">
				<div class="formLabel"><?php 
print _t('Search') . "<br/>" . caHTMLTextInput('search', array('value' => $va_filter_options['search']), array('width' => '400px'));
?>
</div>
			</td><td>
<?php 
print $t_order->htmlFormElement('shipping_method', null, array('nullOption' => '-'));
?>
			</td>
			<td align="right" valign="bottom">
<?php 
print caFormSubmitButton($this->request, __CA_NAV_BUTTON_GO__, _t('Filter'), 'caViewOptions', array());
print caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t('Reset'), 'caViewOptions', array('onclick' => 'jQuery("#searchToolsBox input").val("");'));
?>
			</td>
		</tr>
	</table>
			</form>
		</div>
	</div>
 	
	<table id="caClientOrdersList" class="listtable" width="100%" border="0" cellpadding="0" cellspacing="1">
		<thead>
		<tr>
			<th>
				<?php 
_p('Order #');
Пример #16
0
 * 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 
Пример #17
0
$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() : '';
?>
"/>
Пример #18
0
 * ----------------------------------------------------------------------
 */
$t_subject = $this->getVar('t_subject');
$vs_table = $t_subject->tableName();
$va_lookup_urls = caJSONLookupServiceUrl($this->request, $vs_table, array('noInline' => 1));
$vo_result_context = $this->getVar('result_context');
$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()) {
    if (!$this->getVar('uses_hierarchy_browser')) {
        ?>
		<?php 
        print caFormTag($this->request, 'Index', 'BasicSearchForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
        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>', '<a href="#" onclick="caSaveSearch(\'BasicSearchForm\', jQuery(\'#BasicSearchInput\').val(), [\'search\']); return false;" class="button">' . _t('Save search') . ' &rsaquo;</a>', caFormSubmitButton($this->request, __CA_NAV_BUTTON_SEARCH__, _t("Search"), 'BasicSearchForm'));
        ?>
		</form>
	<?php 
    } else {
        print caFormTag($this->request, 'Index', 'BasicSearchForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
        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"/></div>' . caJSButton($this->request, __CA_NAV_BUTTON_SEARCH__, _t("Search"), 'submitSearch', array(), array('href' => '#', 'onclick' => 'caCloseBrowser(); jQuery("#resultBox").load("' . caNavUrl($this->request, 'find', $this->request->getController(), 'Index', array('search' => '')) . '" + escape(jQuery("#BasicSearchInput").attr("value"))); return false;')), '<a href="#" onclick="caSaveSearch(\'BasicSearchForm\', jQuery(\'#BasicSearchInput\').val(), [\'search\']); return false;" class="button">' . _t('Save search') . ' &rsaquo;</a>', '<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("Hierarchy");
        ?>
</div>
	<?php 
        if ($this->request->user->canDoAction('can_edit_' . $vs_table) && $this->getVar('num_types') > 0) {
print caNavUrl($this->request, 'client/orders', 'Communications', 'ViewMessage', array('communication_id' => $pn_communication_id));
?>
');"><?php 
print _t('Cancel');
?>
 &rsaquo;</a>
<?php 
print caFormTag($this->request, 'SendReply', 'caClientCommunicationsReplyForm');
$t_comm = new ca_commerce_communications($pn_communication_id);
$vn_to_user_id = $t_comm->get('from_user_id');
if (!preg_match('!' . _t("Re:") . '!i', $vs_subject = $t_comm->get('subject'))) {
    $vs_subject = _t("Re:") . ' ' . $vs_subject;
}
$t_comm->clear();
$t_comm->set('subject', $vs_subject);
print "<div class='replyMessageHeader'><span class='replyMessageHeaderHeading'>" . _t('Date') . ':</span> ' . caGetLocalizedDateRange($t = time(), $t) . "</div>";
print "<div class='replyMessageHeader'><span class='replyMessageHeaderHeading'>" . _t('To') . ':</span> ' . caClientServicesGetSenderName(array('from_user_id' => $vn_to_user_id)) . "</div>";
foreach ($t_comm->getFormFields() as $vs_f => $va_info) {
    switch ($vs_f) {
        case 'subject':
        case 'message':
        case 'transaction_id':
            print $t_comm->htmlFormElement($vs_f) . "<br/>\n";
            break;
    }
}
print caHTMLHiddenInput('transaction_id', array('value' => $t_transaction->getPrimaryKey()));
print caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Send"), 'caClientCommunicationsReplyForm');
?>
		</form>
	</div>
Пример #20
0
 * 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]);
        }
    }
Пример #21
0
 * 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;
?>
		</div>
		<div id="systemTitle">
			<?php 
print $this->request->config->get("app_display_name");
?>
			<p class="smallContent">
				<?php 
print _t("Enter your CollectiveAccess user name below to request a new password. We will send you an email with further instructions.");
?>
			</p>
		</div><!-- end  systemTitle -->
		<div id="loginForm">
			<?php 
print caFormTag($this->request, 'RequestPassword', 'forgot');
?>
			<div class="loginFormElement"><?php 
print _t("User Name");
?>
:<br/>
				<input type="text" name="username" size="25"/>
			</div>
			<div class="loginSubmitButton"><?php 
print caFormSubmitButton($this->request, __CA_NAV_BUTTON_LOGIN__, _t("Submit"), 'forgot', array('icon_position' => __CA_NAV_BUTTON_ICON_POS_RIGHT__));
?>
</div>
			</form>
		</div><!-- end loginForm -->
	</div><!-- end loginBox -->
</div><!-- end center -->
</body>
</html>
Пример #23
0
 *
 * 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>";
 * 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 
}
Пример #25
0
 * ----------------------------------------------------------------------
 */
$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');
?>
'/>
Пример #26
0
 * 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');
?>
 &rsaquo;</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'>
Пример #28
0
            print _t('Vimeo integration is set up and ready to go!');
            ?>
</h2>
<?php 
            break;
        case 'request':
        default:
            ?>
				<div><?php 
            print _t("If you authorized our app on the Vimeo page, please enter the verification code here.");
            ?>
</div>
<?php 
            print caFormTag($this->request, 'verify', 'vimeo_verify_form', 'vimeo/Auth');
            print caHTMLTextInput('verify_code');
            print caFormSubmitButton($this->request, __CA_NAV_BUTTON_GO__, _t("Submit"), 'vimeo_verify_form');
            ?>
				</form>
				<div><?php 
            print _t('Here is the link to the Vimeo authorization page again: %1', '<a href="' . $this->getVar('authorize_link') . '" target="_blank">Vimeo</a>');
            ?>
</div>
<?php 
            break;
    }
} else {
    ?>
		<div><?php 
    print _t('You need to go to the Vimeo page and authorize our app to use your account.');
    ?>
</div>
 * 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');
?>
 &rsaquo;</a>
 	</div>
 </form>
 
<?php 
print caFormTag($this->request, 'Run', 'caWorldCatResultsForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'noTimestamp' => true));
<?php

// TODO : Simplify all of these parameters to get a more readable code
// loading the rendering helpers functions
require_once __CA_BASE_DIR__ . "/app/plugins/statisticsViewer/helpers/viewRenderingHelpers.php";
// local variables
$va_informations = $this->getVar('informations');
$va_queryparameters = $this->getVar('queryparameters');
// Path to the icons for the drop-down options form
$va_views_images_path = __CA_URL_ROOT__ . "/app/plugins/statisticsViewer/views/images";
// Final print
// Printing statistics title & comment
print "<h2>" . $va_informations->title . "</h2>\n";
print "<p>" . $va_informations->comment . "</p>\n";
// Form destination & buttons
print caFormTag($this->request, 'ShowStat', 'queryParametersForm', null, 'POST', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'noTimestamp' => true));
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Continue"), 'queryParametersForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', $this->request->getModulePath(), $this->request->getController(), 'Index', array()), '', '');
print "<input type=hidden name=stat value=" . $va_informations->stat . " />\n";
print "<input type=hidden name=id value=" . $va_informations->id . " />\n";
foreach ($va_queryparameters as $va_queryparameter) {
    //$parameters[$i]["string"];
    print "<div class=\"formLabel\">";
    print $va_queryparameter["name"] . " : <br/><input type=\"text\" name=\"" . $va_queryparameter["name"] . "\" /><br/>\n";
    print "</div>";
    //$parameters[$i]["arguments"];
}
print "</form>";
// Include the CSS
MetaTagManager::addLink('stylesheet', __CA_URL_ROOT__ . "/app/plugins/statisticsViewer/css/statisticsViewer.css", 'text/css');
print "\t<div class=\"editorBottomPadding\"><!-- empty --></div>\n" . "<div class=\"clear\"><!--empty--></div>";