当前位置: 首页>>代码示例>>PHP>>正文


PHP caNavButton函数代码示例

本文整理汇总了PHP中caNavButton函数的典型用法代码示例。如果您正苦于以下问题:PHP caNavButton函数的具体用法?PHP caNavButton怎么用?PHP caNavButton使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了caNavButton函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: caFormTag

$vs_form_id = $this->getVar('form_id');
$va_last_settings = $this->getVar('last_settings');
?>
<h1><?php 
print $o_tool->getToolName();
?>
</h1>
<div class="toolPluginHelpText">
	<p><?php 
print $o_tool->getToolDescription();
?>
</p>
</div>
<?php 
print caFormTag($this->request, 'Run', $vs_form_id, null, 'POST', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'noTimestamp' => true));
print $vs_control_box = caFormControlBox(caJSButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Run"), "caRunTool{$vs_tool_identifier}", array('onclick' => 'caShowConfirmToolExecutionPanel(); return false;')) . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'manage', 'Tools', 'Settings', array('tool' => $vs_tool_identifier)), '', '');
// Print command <select>
?>
		<div class='bundleLabel'>
			<span class="formLabelText"><?php 
print _t('Command');
?>
</span> 
			<div class="bundleContainer">
				<div class="caLabelList" >
					<p>
<?php 
print caHTMLSelect('command', $o_tool->getCommands(), array('id' => 'caToolCommand'));
?>
	
					</p>
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:tool_settings_html.php

示例2: caEditorInspector


//.........这里部分代码省略.........
            foreach (array('ca_objects', 'ca_object_lots', 'ca_entities', 'ca_places', 'ca_occurrences', 'ca_collections', 'ca_storage_locations', 'ca_loans', 'ca_movements') as $vs_rel_table) {
                if (sizeof($va_objects = $t_item->getRelatedItems($vs_rel_table))) {
                    $vs_buf .= "<div><strong>" . _t("Related %1", $o_dm->getTableProperty($vs_rel_table, 'NAME_PLURAL')) . "</strong>: <br/>\n";
                    $vs_screen = '';
                    if ($t_ui = ca_editor_uis::loadDefaultUI($vs_rel_table, $po_view->request, null)) {
                        $vs_screen = $t_ui->getScreenWithBundle('ca_object_representations', $po_view->request);
                    }
                    foreach ($va_objects as $vn_rel_id => $va_rel_info) {
                        if ($vs_label = array_shift($va_rel_info['labels'])) {
                            $vs_buf .= caEditorLink($po_view->request, '&larr; ' . $vs_label . ' (' . $va_rel_info['idno'] . ')', '', $vs_rel_table, $va_rel_info[$o_dm->getTablePrimaryKeyName($vs_rel_table)], array(), array(), array('action' => 'Edit' . ($vs_screen ? "/{$vs_screen}" : ""))) . "<br/>\n";
                        }
                    }
                    $vs_buf .= "</div>\n";
                }
            }
        }
        //
        // Output related object reprsentation for ca_representation_annotation
        //
        if ($vs_table_name === 'ca_representation_annotations') {
            if ($vn_representation_id = $t_item->get('representation_id')) {
                $vs_buf .= "<div><strong>" . _t("Applied to representation") . "</strong>: <br/>\n";
                $t_rep = new ca_object_representations($vn_representation_id);
                $vs_buf .= caNavLink($po_view->request, '&larr; ' . $t_rep->getLabelForDisplay(), '', 'editor/object_representations', 'ObjectRepresentationEditor', 'Edit/' . $po_view->getVar('representation_editor_screen'), array('representation_id' => $vn_representation_id)) . '<br/>';
                $vs_buf .= "</div>\n";
            }
        }
        //
        // Output extra useful info for sets
        //
        if ($vs_table_name === 'ca_sets') {
            $vn_set_item_count = $t_item->getItemCount(array('user_id' => $po_view->request->getUserID()));
            if ($vn_set_item_count > 0 && $po_view->request->user->canDoAction('can_batch_edit_' . $o_dm->getTableName($t_item->get('table_num')))) {
                $vs_buf .= caNavButton($po_view->request, __CA_NAV_BUTTON_BATCH_EDIT__, _t('Batch edit'), 'editorBatchSetEditorLink', 'batch', 'Editor', 'Edit', array('set_id' => $t_item->getPrimaryKey()), array(), array('icon_position' => __CA_NAV_BUTTON_ICON_POS_LEFT__, 'no_background' => true, 'dont_show_content' => true));
            }
            $vs_buf .= "<div><strong>" . _t("Number of items") . "</strong>: {$vn_set_item_count}<br/>\n";
            if ($t_item->getPrimaryKey()) {
                $vn_set_table_num = $t_item->get('table_num');
                $vs_set_table_name = $o_dm->getTableName($vn_set_table_num);
                $vs_buf .= "<strong>" . _t("Type of content") . "</strong>: " . caGetTableDisplayName($vn_set_table_num) . "<br/>\n";
                $vs_buf .= "</div>\n";
            } else {
                if ($vn_set_table_num = $po_view->request->getParameter('table_num', pInteger)) {
                    $vs_buf .= "<div><strong>" . _t("Type of content") . "</strong>: " . caGetTableDisplayName($vn_set_table_num) . "<br/>\n";
                    $vs_buf .= "</div>\n";
                }
            }
            $t_user = new ca_users(($vn_user_id = $t_item->get('user_id')) ? $vn_user_id : $po_view->request->getUserID());
            if ($t_user->getPrimaryKey()) {
                $vs_buf .= "<div><strong>" . _t('Owner') . "</strong>: " . $t_user->get('fname') . ' ' . $t_user->get('lname') . "</div>\n";
            }
            if ($po_view->request->user->canDoAction('can_export_' . $vs_set_table_name) && $t_item->getPrimaryKey() && sizeof(ca_data_exporters::getExporters($vn_set_table_num)) > 0) {
                $vs_buf .= '<div style="border-top: 1px solid #aaaaaa; margin-top: 5px; font-size: 10px; text-align: right;" id="caExportItemButton">';
                $vs_buf .= _t('Export this set of records') . "&nbsp; ";
                $vs_buf .= "<a class='button' onclick='jQuery(\"#exporterFormList\").show();' style='text-align:right;' href='#'>" . caNavIcon($po_view->request, __CA_NAV_BUTTON_ADD__) . "</a>";
                $vs_buf .= caFormTag($po_view->request, 'ExportData', 'caExportForm', 'manage/MetadataExport', 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
                $vs_buf .= "<div id='exporterFormList'>";
                $vs_buf .= ca_data_exporters::getExporterListAsHTMLFormElement('exporter_id', $vn_set_table_num, array('id' => 'caExporterList'), array('width' => '135px'));
                $vs_buf .= caHTMLHiddenInput('set_id', array('value' => $t_item->getPrimaryKey()));
                $vs_buf .= caFormSubmitLink($po_view->request, _t('Export') . " &rsaquo;", "button", "caExportForm");
                $vs_buf .= "</div>\n";
                $vs_buf .= "</form>";
                $vs_buf .= "</div>";
                $vs_buf .= "<script type='text/javascript'>";
                $vs_buf .= "jQuery(document).ready(function() {";
                $vs_buf .= "jQuery(\"#exporterFormList\").hide();";
开发者ID:kai-iak,项目名称:providence,代码行数:67,代码来源:displayHelpers.php

示例3: caFormControlBox

 *
 * This source code is free and modifiable under the terms of 
 * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
$t_instance = $this->getVar('t_instance');
$vb_can_edit = $t_instance->isSaveable($this->request);
$vb_can_delete = $t_instance->isDeletable($this->request);
?>
<div class="sectionBox">
<?php 
if ($vb_can_edit) {
    print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'caAccessControlList') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), $this->request->getModulePath(), $this->request->getController(), 'Access/' . $this->request->getActionExtra(), array($t_instance->primaryKey() => $t_instance->getPrimaryKey())), '', '');
}
print caFormTag($this->request, 'SetAccess', 'caAccessControlList');
?>
	
	<div class='globalAccess'>
		<div class='title'><?php 
print _t('Global access');
?>
</div>
<?php 
$va_global_access = $t_instance->getACLWorldAccess(array('returnAsInitialValuesForBundle' => true));
$va_global_access_status = $va_global_access['access_display'];
print "<p>" . _t('All groups and users ') . " <b>";
print "<span class='accessName'>" . $va_global_access_status . "</span>";
print "</b> " . _t('this record, unless you create an exception') . "</p>";
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:ca_acl_access.php

示例4: array

 *
 * ----------------------------------------------------------------------
 */
AssetLoadManager::register('datePickerUI');
$t_order = $this->getVar('t_order');
$o_client_services_config = $this->getVar('client_services_config');
$va_credit_card_types = $o_client_services_config->getAssoc('credit_card_types');
if (!is_array($va_payment_info = $t_order->getPaymentInfo())) {
    $va_payment_info = array();
}
$vn_order_id = (int) $t_order->getPrimaryKey();
$vn_transaction_id = $this->getVar('transaction_id');
$va_errors = $this->getVar('errors');
$vs_currency_symbol = $this->getVar('currency_symbol');
$vs_currency_input_format = "<div class='formLabel'>^LABEL<br/>{$vs_currency_symbol}^ELEMENT</div>";
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'caClientOrderPaymentForm', array('preventDuplicateSubmits' => true)) . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'client/orders', 'OrderEditor', 'Payment', array('order_id' => $vn_order_id)), '', caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), '', 'client/orders', 'OrderEditor', 'Delete', array('order_id' => $vn_order_id)));
print caFormTag($this->request, 'SavePayment', 'caClientOrderPaymentForm', null, 'post', 'multipart/form-data', '_top', array());
?>
	<h1><?php 
print _t('Payment information');
?>
</h1>
<?php 
if ($t_order->paymentIsAllowed()) {
    print $t_order->htmlFormElement('payment_method', $vs_form_element_format, array('width' => $vn_width, 'field_errors' => $va_errors[$vs_f], 'choiceList' => $va_payment_types, 'id' => 'caPaymentMethod'));
    ?>
		<div style="margin-left: 20px; margin-bottom: 10px;">
<?php 
    if (is_array($va_errors['payment_info']) && sizeof($va_errors['payment_info'])) {
        ?>
	<div class='formLabelError'><?php 
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:order_payment_html.php

示例5: caFormControlBox

 * 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>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:locale_edit_html.php

示例6: caFormControlBox

 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
 *
 * This source code is free and modifiable under the terms of 
 * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
$t_item = $this->getVar('t_subject');
$vn_item_id = $this->getVar('subject_id');
$vn_above_id = $this->getVar('above_id');
$t_ui = $this->getVar('t_ui');
$vs_context_id = $this->getVar('_context_id');
// used to restrict idno uniqueness checking to within the current list
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'ListItemEditorForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), 'administrate/setup/list_item_editor', 'ListItemEditor', 'Edit/' . $this->request->getActionExtra(), array('item_id' => $vn_item_id)), '', intval($vn_item_id) > 0 ? caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'administrate/setup/list_item_editor', 'ListItemEditor', 'Delete/' . $this->request->getActionExtra(), array('item_id' => $vn_item_id)) : '');
?>
	<div class="sectionBox">
<?php 
print caFormTag($this->request, 'Save/' . $this->request->getActionExtra() . '/item_id/' . $vn_item_id, 'ListItemEditorForm', null, 'POST', 'multipart/form-data');
$va_form_elements = $t_item->getBundleFormHTMLForScreen($this->request->getActionExtra(), array('request' => $this->request, 'formName' => 'ListItemEditorForm', 'context_id' => $vs_context_id), $va_bundle_list);
print join("\n", $va_form_elements);
print $vs_control_box;
?>
			<input type='hidden' name='_context_id' value='<?php 
print $this->getVar('_context_id');
?>
'/>
			<input type='hidden' name='item_id' value='<?php 
print $vn_item_id;
?>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:screen_html.php

示例7: caFormControlBox

 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
 *
 * This source code is free and modifiable under the terms of 
 * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
$t_display = $this->getVar('t_subject');
$vn_display_id = $this->getVar('subject_id');
$t_ui = $this->getVar('t_ui');
?>
	<div class="sectionBox">
<?php 
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'BundleDisplayEditorForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'manage/bundle_displays', 'BundleDisplayEditor', 'Edit/' . $this->request->getActionExtra(), array('display_id' => $vn_display_id)), '', intval($vn_display_id) > 0 ? caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), '', 'manage/bundle_displays', 'BundleDisplayEditor', 'Delete/' . $this->request->getActionExtra(), array('display_id' => $vn_display_id)) : '');
print caFormTag($this->request, 'Save/' . $this->request->getActionExtra() . '/display_id/' . $vn_display_id, 'BundleDisplayEditorForm', null, 'POST', 'multipart/form-data');
$va_form_elements = $t_display->getBundleFormHTMLForScreen($this->request->getActionExtra(), array('request' => $this->request, 'formName' => 'BundleDisplayEditorForm'));
if (!$vn_form_id) {
    // For new displays, show mandatory fields...
    // ... BUT ...
    // if table_num is set on the url then create a hidden element rather than show it as a mandatory field
    // This allows us to set the content type for the display from the calling control
    $va_mandatory_fields = $t_display->getMandatoryFields();
    if (($vn_index = array_search('table_num', $va_mandatory_fields)) !== false) {
        if ($vn_table_num = $t_display->get('table_num')) {
            print caHTMLHiddenInput('table_num', array('value' => $vn_table_num));
            unset($va_form_elements['table_num']);
            unset($va_mandatory_fields[$vn_index]);
        }
    }
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:screen_html.php

示例8: caGetLocalizedDate

				</td>
				<td>
					<?php 
        print caGetLocalizedDate($va_importer['last_modified_on'], array('dateFormat' => 'delimited'));
        ?>
				</td>
				<td>
					<!--<?php 
        print caNavButton($this->request, __CA_NAV_BUTTON_EDIT__, _t("Edit"), '', 'batch', 'MetadataImport', 'Edit', array('importer_id' => $va_importer['importer_id']), array(), array('icon_position' => __CA_NAV_BUTTON_ICON_POS_LEFT__, 'use_class' => 'list-button', 'no_background' => true, 'dont_show_content' => true));
        ?>
-->
					<?php 
        print caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), '', 'batch', 'MetadataImport', 'Delete', array('importer_id' => $va_importer['importer_id']), array(), array('icon_position' => __CA_NAV_BUTTON_ICON_POS_LEFT__, 'use_class' => 'list-button', 'no_background' => true, 'dont_show_content' => true));
        ?>
					<?php 
        print caNavButton($this->request, __CA_NAV_BUTTON_GO__, _t("Import data"), '', 'batch', 'MetadataImport', 'Run', array('importer_id' => $va_importer['importer_id']), array(), array('icon_position' => __CA_NAV_BUTTON_ICON_POS_LEFT__, 'use_class' => 'list-button', 'no_background' => true, 'dont_show_content' => true));
        ?>
				</td>
			</tr>
<?php 
    }
}
?>
			</tbody>
		</table>
	</div>
<?php 
if (!$this->request->isAjax()) {
    ?>
</div>
<div class="editorBottomPadding"><!-- empty --></div>
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:importer_list_html.php

示例9: caNavButton

					<?php 
        print $va_form['fname'] . ' ' . $va_form['lname'];
        ?>
				</td>
				<td>
					<?php 
        print $va_form['search_form_content_type'];
        ?>
				</td>
				<td>
					<?php 
        print caNavButton($this->request, __CA_NAV_BUTTON_EDIT__, _t("Edit"), 'manage/search_forms', 'SearchFormEditor', 'Edit', array('form_id' => $va_form['form_id']), array(), array('icon_position' => __CA_NAV_BUTTON_ICON_POS_LEFT__, 'use_class' => 'list-button', 'no_background' => true, 'dont_show_content' => true));
        ?>
					
					<?php 
        print caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'manage/search_forms', 'SearchFormEditor', 'Delete', array('form_id' => $va_form['form_id']), array(), array('icon_position' => __CA_NAV_BUTTON_ICON_POS_LEFT__, 'use_class' => 'list-button', 'no_background' => true, 'dont_show_content' => true));
        ?>
				</td>
			</tr>
<?php 
    }
} else {
    ?>
		<tr>
			<td colspan='4'>
				<div align="center">
					<?php 
    print _t('No forms have been configured');
    ?>
				</div>
			</td>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:search_form_list_html.php

示例10: caCreateBatchMediaImportResultsReport

function caCreateBatchMediaImportResultsReport($po_request, $pa_general, $pa_notices, $pa_errors)
{
    $vs_buf = '';
    if (is_array($pa_errors) && sizeof($pa_errors)) {
        $vs_buf .= '<div class="batchProcessingReportSectionHead">' . _t('Errors occurred') . ':</div><ul>';
        foreach ($pa_errors as $vs_f => $va_error) {
            $vs_buf .= "<li><em>[{$vs_f}]:</em> " . $va_error['message'] . "</li>";
        }
        $vs_buf .= "</ul>";
    }
    if (is_array($pa_notices) && sizeof($pa_notices)) {
        $vs_buf .= '<div class="batchProcessingReportSectionHead">' . _t('Processed') . ':</div><ol>';
        foreach ($pa_notices as $vn_id => $va_notice) {
            switch ($va_notice['status']) {
                case 'SUCCESS':
                    $vs_buf .= "<li><em>" . caEditorLink($po_request, $va_notice['label'], '', $pa_general['table'], $vn_id) . "</em> (" . $va_notice['idno'] . "): " . $va_notice['status'] . "</li>";
                    break;
                case 'SKIPPED':
                case 'MATCHED':
                case 'RELATED':
                    $vs_buf .= "<li><em>" . $va_notice['label'] . "</em>: " . $va_notice['message'] . "</li>";
                    break;
                default:
                    $vs_buf .= "<li><em>" . $va_notice['label'] . "</em> (" . $va_notice['idno'] . "): " . $va_notice['status'] . "</li>";
                    break;
            }
        }
        $vs_buf .= "</ol>";
    }
    if ($pa_general['set_id']) {
        $vs_buf .= caNavButton($po_request, __CA_NAV_BUTTON_BATCH_EDIT__, _t('Batch edit'), 'batch', 'Editor', 'Edit', array('set_id' => $pa_general['set_id']), array(), array('icon_position' => __CA_NAV_BUTTON_ICON_POS_LEFT__, 'use_class' => 'list-button', 'no_background' => true, 'dont_show_content' => true)) . ' ' . _t('Batch edit set <em>%1</em> containing imported media', caNavLink($po_request, $pa_general['setName'], '', 'batch', 'Editor', 'Edit', array('set_id' => $pa_general['set_id'])));
    }
    print "<script type='text/javascript'>";
    print "jQuery('#batchProcessingMediaPreview').hide();";
    print "jQuery('#batchProcessingReport').html('" . addslashes($vs_buf) . "').fadeIn(300);";
    print "jQuery('#batchProcessingMore').fadeIn(300);";
    print "</script>";
    caFlushOutput();
}
开发者ID:guaykuru,项目名称:pawtucket,代码行数:39,代码来源:batch_results_html.php

示例11: intval

 * WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
 *
 * This source code is free and modifiable under the terms of 
 * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
$t_subject = $this->getVar('t_subject');
$vn_subject_id = $this->getVar('subject_id');
$t_ui = $this->getVar('t_ui');
$vs_theme = $this->getVar('theme');
$vb_print_buttons = intval($vn_subject_id) > 0 ? $vb_can_edit : $vb_can_create;
$vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'ContributeForm', array('graphicsPath' => $this->getVar('graphicsPath'))) . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), $this->request->getModulePath(), $this->request->getController(), $this->request->getAction() . '/' . $this->request->getActionExtra(), array($t_subject->primaryKey() => $vn_subject_id), '', array('graphicsPath' => $this->getVar('graphicsPath'))), '', '');
?>
	<div class='textContent'>
		<p>Please provide the following information to contribute your media to the Metabolic Studio archive.  Required fields are marked with an *.<br/>When you have finished your submission, place the hard copy in the designated physical archive space.  If you need further assistance, please contact the <a href="mailto:archive@metabolicstudio.org">studio archivists</a>.</p>
	</div>
	<script type="text/javascript">
		jQuery(document).ready(function() {
			// initialize CA Utils
			caUI.initUtils({unsavedChangesWarningMessage: '<?php 
_p('You have made changes in this form that you have not yet saved. If you navigate away from this form you will lose your unsaved changes.');
?>
'});
		});
	</script>
	<div class="sectionBox">
<?php 
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:screen_html.php

示例12: caFormTag

 *
 * This source code is free and modifiable under the terms of 
 * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
$t_set = $this->getVar('t_set');
?>
<div class="sectionBox">
<?php 
if (!$this->getVar('confirmed')) {
    // show delete confirmation notice
    print caFormTag($this->request, 'Delete', 'caDeleteForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
    print "<div class='delete-control-box'>" . caFormControlBox("<div class='delete_warning_box'>" . _t('Really delete ALL records in "%1"?', $t_set->getLabelForDisplay()) . "</div>", "", caFormSubmitButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'caDeleteForm', array()) . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', "batch", "Editor", "Edit", array('set_id' => $this->getVar('set_id')))) . "</div>\n";
    print caHTMLHiddenInput('confirm', array('value' => 1));
    print caHTMLHiddenInput($t_set->primaryKey(), array('value' => $t_set->getPrimaryKey()));
    print "</form>\n";
} else {
    AssetLoadManager::register("sortableUI");
    ?>
<h1><?php 
    print _t('Batch processing status');
    ?>
</h1>


<div class="batchProcessingTableProgressGroup">
	<div id="batchProcessingTableStatus" class="batchProcessingStatus"> </div>
	<div id="progressbar"></div>
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:delete_html.php

示例13: caFormControlBox

 * WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
 *
 * This source code is free and modifiable under the terms of 
 * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
$t_order = $this->getVar('t_order');
$vn_order_id = (int) $t_order->getPrimaryKey();
$vn_transaction_id = $this->getVar('transaction_id');
$va_errors = $this->getVar('errors');
$vn_max_field_width = 50;
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'caClientOrderCustomerForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), 'client/library', 'OrderEditor', 'CustomerInfo', array('order_id' => $vn_order_id)), '', caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'client/library', 'OrderEditor', 'Delete', array('order_id' => $vn_order_id)));
print caFormTag($this->request, 'SaveCustomerInfo', 'caClientOrderCustomerForm', null, 'post', 'multipart/form-data', '_top', array());
if (!$vn_transaction_id) {
    ?>
	<h1><?php 
    print _t('User account to associate loan with');
    ?>
</h1>
	<div class="formLabel">
		<?php 
    print _t('User account');
    ?>
:
		<input type="text" size="60" name="client_autocomplete" value="" id="client_autocomplete" class="lookupBg"/>
		<input type="hidden" name="transaction_user_id" id="transaction_user_id" value=""/>
	</div>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:order_customer_info_html.php

示例14: caNavButton

					<?php 
        print $va_group['description'];
        ?>
				</td>
				<td>
					<?php 
        print $va_group['member_list'];
        ?>
				</td>
				<td>
					<?php 
        print caNavButton($this->request, __CA_NAV_BUTTON_EDIT__, _t("Edit"), 'manage', 'groups', 'Edit', array('group_id' => $va_group['group_id']), array(), array('icon_position' => __CA_NAV_BUTTON_ICON_POS_LEFT__, 'use_class' => 'list-button', 'no_background' => true, 'dont_show_content' => true));
        ?>
					
					<?php 
        print caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'manage', 'groups', 'Delete', array('group_id' => $va_group['group_id']), array(), array('icon_position' => __CA_NAV_BUTTON_ICON_POS_LEFT__, 'use_class' => 'list-button', 'no_background' => true, 'dont_show_content' => true));
        ?>
				</td>
			</tr>
<?php 
    }
} else {
    ?>
			<tr>
				<td colspan="4">
					<div align="center">
						<?php 
    print _t('You have not defined any teams');
    ?>
					</div>
				</td>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:group_list_html.php

示例15: caNavButton

        print $va_mapping['name'];
        ?>
				</td>
				<td>
					<?php 
        print $va_mapping['type'] . ' (' . $va_mapping['directionForDisplay'] . ')';
        ?>
				</td>
				<td>
					<?php 
        print $va_mapping['target'];
        ?>
				</td>
				<td>
					<?php 
        print caNavButton($this->request, __CA_NAV_BUTTON_EDIT__, _t("Edit"), 'administrate/setup/bundle_mapping_editor', 'BundleMappingEditor', 'Edit', array('mapping_id' => $va_mapping['mapping_id']), array(), array('icon_position' => __CA_NAV_BUTTON_ICON_POS_LEFT__, 'use_class' => 'list-button', 'no_background' => true, 'dont_show_content' => true));
        ?>
				</td>
			</tr>
<?php 
    }
} else {
    ?>
		<tr>
			<td colspan="4">
				<div align="center">
					<?php 
    print _t('No mappings have been configured');
    ?>
				</div>
			</td>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:mapping_list_html.php


注:本文中的caNavButton函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。