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


PHP caFormTag函数代码示例

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


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

示例1: caFormTag

 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
$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');
}
?>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:user_list_html.php

示例2: 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_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'>
<?php 
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:order_additional_fees_html.php

示例3: array

 * 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_context = $this->getVar('result_context');
$va_result_views_options = $this->getVar('result_views_options');
if (!$va_result_views_options) {
    $va_result_views_options = array();
}
?>
<div id="searchOptionsBox">
		<div class="bg">
<?php 
print caFormTag($this->request, 'Index', 'caSearchOptionsForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
//print "<div class='col'>";
print "<div class='unit'>";
print "<span>" . _t("Sort") . "</span>";
print "<select name='sort' style='width:120px;'>\n";
$vs_current_sort = $vo_result_context->getCurrentSort();
$vs_current_sort_direction = $vo_result_context->getCurrentSortDirection();
if (is_array($this->getVar("sorts")) && sizeof($this->getVar("sorts")) > 0) {
    foreach ($this->getVar("sorts") as $vs_sort => $vs_option) {
        print "<option value='" . $vs_sort . "'" . ($vs_current_sort == $vs_sort ? " SELECTED" : "") . ">" . $vs_option . "</option>";
    }
}
print "</select>\n";
print caHTMLSelect('direction', array('Ascending' => 'asc', 'Descending' => 'desc'), array(), array('value' => $vs_current_sort_direction));
$va_items_per_page = $this->getVar("items_per_page");
$vs_current_items_per_page = $vo_result_context->getItemsPerPage();
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:search_controls_html.php

示例4: caNavLink

        }
        if ($this->request->config->get('enable_bookmarks')) {
            print caNavLink($this->request, _t("My Bookmarks"), "", "", "Bookmarks", "Index");
        }
        print caNavLink($this->request, _t("Logout"), "", "", "LoginReg", "logout");
    } else {
        print caNavLink($this->request, _t("Login/Register"), "", "", "LoginReg", "form");
    }
}
# Locale selection
global $g_ui_locale;
$vs_base_url = $this->request->getRequestUrl();
$vs_base_url = substr($vs_base_url, 0, 1) == '/' ? $vs_base_url : '/' . $vs_base_url;
$vs_base_url = str_replace("/lang/[A-Za-z_]+", "", $vs_base_url);
if (is_array($va_ui_locales = $this->request->config->getList('ui_locales')) && sizeof($va_ui_locales) > 1) {
    print caFormTag($this->request, $this->request->getAction(), 'caLocaleSelectorForm', null, 'get', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
    $va_locale_options = array();
    foreach ($va_ui_locales as $vs_locale) {
        $va_parts = explode('_', $vs_locale);
        $vs_lang_name = Zend_Locale::getTranslation(strtolower($va_parts[0]), 'language', strtolower($va_parts[0]));
        $va_locale_options[$vs_lang_name] = $vs_locale;
    }
    print caHTMLSelect('lang', $va_locale_options, array('id' => 'caLocaleSelectorSelect', 'onchange' => 'window.location = \'' . caNavUrl($this->request, $this->request->getModulePath(), $this->request->getController(), $this->request->getAction(), array('lang' => '')) . '\' + jQuery(\'#caLocaleSelectorSelect\').val();'), array('value' => $g_ui_locale, 'dontConvertAttributeQuotesToEntities' => true));
    print "</form>\n";
}
?>
		
		</div><!-- end topbar -->
		<div id="pageArea">
			<div id="header">
<?php 
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:pageHeader.php

示例5: 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 
        print join("; ", $va_errors['payment_info']);
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:order_payment_html.php

示例6: array

$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');
?>
'/>
			<input type='hidden' name='stop_id' value='<?php 
print $vn_stop_id;
?>
'/>
			<input type='hidden' name='above_id' value='<?php 
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:screen_html.php

示例7: _t

            ?>
				<h2><?php 
            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.');
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:auth_html.php

示例8: caFormControlBox

// 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() : '';
?>
"/>
		
开发者ID:idiscussforum,项目名称:providence,代码行数:30,代码来源:checkout_html.php

示例9: ca_commerce_order_items

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

示例10: _t

// 			$va_views = $this->getVar("views");
// 			$vs_current_view = $vo_result_context->getCurrentView();
// 			print _t("Layout:")." <select name='view' onchange='this.form.submit();'>\n";
// 			if(is_array($va_views) && sizeof($va_views) > 0){
// 				foreach($va_views as $vs_view => $vs_name){
// 					print "<option value='".$vs_view."' ".(($vs_view == $vs_current_view) ? "SELECTED='1'" : "").">".$vs_name."</option>\n";
// 				}
// 			}
// 			print "</select>\n";
// 			print "</div>";
$va_search_history = $this->getVar('search_history');
$vs_cur_search = $vo_result_context->getSearchExpression();
if (is_array($va_search_history) && sizeof($va_search_history) > 0) {
    print "<div class='col'>";
    print _t("Search history:") . " ";
    print caFormTag($this->request, 'Index', 'caSearchHistoryForm');
    print "<select name='search' onchange='this.form.submit();'>\n";
    foreach (array_reverse($va_search_history) as $vs_search => $va_search_info) {
        $SELECTED = $vs_cur_search == $va_search_info['display'] ? 'SELECTED="1"' : '';
        $vs_display = strip_tags($va_search_info['display']);
        if (unicode_strlen($vs_display) > 15) {
            $vs_display = unicode_substr($vs_display, 0, 12) . '...';
        }
        print "<option value='" . htmlspecialchars($vs_search, ENT_QUOTES, 'UTF-8') . "' {$SELECTED}>" . $vs_display . " (" . $va_search_info['hits'] . ")</option>\n";
    }
    print "</select>\n";
    print "</form>\n";
    print "</div>";
}
print "</form>\n";
?>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:search_controls_html.php

示例11: caFormControlBox

 * 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_subject = $this->getVar('t_subject');
$vn_subject_id = $this->getVar('subject_id');
$t_ui = $this->getVar('t_ui');
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'InterfaceScreenEditorForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'administrate/setup/interface_screen_editor', 'InterfaceScreenEditor', 'Edit/' . $this->request->getActionExtra(), array('screen_id' => $vn_subject_id)), '', intval($vn_subject_id) > 0 ? caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), '', 'administrate/setup/interface_screen_editor', 'InterfaceScreenEditor', 'Delete/' . $this->request->getActionExtra(), array('screen_id' => $vn_subject_id)) : '');
?>
	<div class="sectionBox">
<?php 
print caFormTag($this->request, 'Save/' . $this->request->getActionExtra() . '/screen_id/' . $vn_subject_id, 'InterfaceScreenEditorForm', null, 'POST', 'multipart/form-data');
$va_form_elements = $t_subject->getBundleFormHTMLForScreen($this->request->getActionExtra(), array('request' => $this->request, 'formName' => 'InterfaceScreenEditorForm'));
print join("\n", $va_form_elements);
print $vs_control_box;
?>
			<input type='hidden' name='screen_id' value='<?php 
print $vn_subject_id;
?>
'/>
		</form>
	</div>

	<div class="editorBottomPadding"><!-- empty --></div>
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:screen_html.php

示例12: advanced

 /** 
  * 
  */
 public function advanced()
 {
     $o_config = caGetSearchConfig();
     $ps_function = strtolower($this->request->getActionExtra());
     if (!($va_search_info = caGetInfoForAdvancedSearchType($ps_function))) {
         // invalid advanced search type – throw error
         die("Invalid advanced search type");
     }
     $vs_class = $va_search_info['table'];
     $va_types = caGetOption('restrictToTypes', $va_search_info, array(), array('castTo' => 'array'));
     $this->opo_result_context = new ResultContext($this->request, $va_search_info['table'], $this->ops_find_type . '_advanced');
     $this->opo_result_context->setAsLastFind();
     MetaTagManager::setWindowTitle($this->request->config->get("app_display_name") . ": " . _t("Search %1", $va_search_info["displayName"]));
     $this->view->setVar('searchInfo', $va_search_info);
     $this->view->setVar('options', caGetOption('options', $va_search_info, array(), array('castTo' => 'array')));
     $va_default_form_values = $this->opo_result_context->getParameter("pawtucketAdvancedSearchFormContent_{$ps_function}");
     $va_default_form_booleans = $this->opo_result_context->getParameter("pawtucketAdvancedSearchFormBooleans_{$ps_function}");
     $va_tags = $this->view->getTagList($va_search_info['view']);
     $t_subject = $this->request->datamodel->getInstanceByTableName($va_search_info['table'], true);
     $va_form_elements = array();
     $vs_script = null;
     foreach ($va_tags as $vs_tag) {
         $va_parse = caParseTagOptions($vs_tag);
         $vs_tag_proc = $va_parse['tag'];
         $va_opts = $va_parse['options'];
         if (($vs_default_value = caGetOption('default', $va_opts, null)) || ($vs_default_value = caGetOption($vs_tag_proc, $va_default_form_values, null))) {
             $va_default_form_values[$vs_tag_proc] = $vs_default_value;
             unset($va_opts['default']);
         }
         $vs_tag_val = null;
         switch (strtolower($vs_tag_proc)) {
             case 'submit':
                 $this->view->setVar($vs_tag, "<a href='#' class='caAdvancedSearchFormSubmit'>" . (isset($va_opts['label']) && $va_opts['label'] ? $va_opts['label'] : _t('Submit')) . "</a>");
                 break;
             case 'reset':
                 $this->view->setVar($vs_tag, "<a href='#' class='caAdvancedSearchFormReset'>" . (isset($va_opts['label']) && $va_opts['label'] ? $va_opts['label'] : _t('Reset')) . "</a>");
                 $vs_script = "<script type='text/javascript'>\n\tjQuery('.caAdvancedSearchFormSubmit').bind('click', function() {\n\t\tjQuery('#caAdvancedSearch').submit();\n\t\treturn false;\n\t});\n\tjQuery('.caAdvancedSearchFormReset').bind('click', function() {\n\t\tjQuery('#caAdvancedSearch').find('input[type!=\"hidden\"],textarea').val('');\n\t\tjQuery('#caAdvancedSearch').find('select.caAdvancedSearchBoolean').val('AND');\n\t\tjQuery('#caAdvancedSearch').find('select').prop('selectedIndex', 0);\n\t\treturn false;\n\t});\n\tjQuery(document).ready(function() {\n\t\tvar f, defaultValues = " . json_encode($va_default_form_values) . ", defaultBooleans = " . json_encode($va_default_form_booleans) . ";\n\t\tfor (f in defaultValues) {\n\t\t\tvar f_proc = f + '[]';\n\t\t\tjQuery('input[name=\"' + f_proc+ '\"], textarea[name=\"' + f_proc+ '\"], select[name=\"' + f_proc+ '\"]').each(function(k, v) {\n\t\t\t\tif (defaultValues[f][k]) { jQuery(v).val(defaultValues[f][k]); } \n\t\t\t});\n\t\t}\n\t\tfor (f in defaultBooleans) {\n\t\t\tvar f_proc = f + '[]';\n\t\t\tjQuery('select[name=\"' + f_proc+ '\"].caAdvancedSearchBoolean').each(function(k, v) {\n\t\t\t\tif (defaultBooleans[f][k]) { jQuery(v).val(defaultBooleans[f][k]); }\n\t\t\t});\n\t\t}\n\t});\n</script>\n";
                 break;
             default:
                 if (preg_match("!^(.*):label\$!", $vs_tag_proc, $va_matches)) {
                     $this->view->setVar($vs_tag, $vs_tag_val = $t_subject->getDisplayLabel($va_matches[1]));
                 } elseif (preg_match("!^(.*):boolean\$!", $vs_tag_proc, $va_matches)) {
                     $this->view->setVar($vs_tag, caHTMLSelect($vs_tag_proc . '[]', array(_t('AND') => 'AND', _t('OR') => 'OR', 'AND NOT' => 'AND NOT'), array('class' => 'caAdvancedSearchBoolean')));
                 } else {
                     $va_opts['asArrayElement'] = true;
                     if (isset($va_opts['restrictToTypes']) && $va_opts['restrictToTypes'] && !is_array($va_opts['restrictToTypes'])) {
                         $va_opts['restrictToTypes'] = explode(";", $va_opts['restrictToTypes']);
                     }
                     if ($vs_tag_val = $t_subject->htmlFormElementForSearch($this->request, $vs_tag_proc, $va_opts)) {
                         $this->view->setVar($vs_tag, $vs_tag_val);
                     }
                     $va_tmp = explode('.', $vs_tag_proc);
                     if (($t_element = ca_metadata_elements::getInstance($va_tmp[1])) && $t_element->get('datatype') == 0) {
                         if (is_array($va_elements = $t_element->getElementsInSet())) {
                             foreach ($va_elements as $va_element) {
                                 if ($va_element['datatype'] > 0) {
                                     $va_form_elements[] = $va_tmp[0] . '.' . $va_tmp[1] . '.' . $va_element['element_code'];
                                 }
                             }
                         }
                         break;
                     }
                 }
                 if ($vs_tag_val) {
                     $va_form_elements[] = $vs_tag_proc;
                 }
                 break;
         }
     }
     $this->view->setVar("form", caFormTag($this->request, "{$ps_function}", 'caAdvancedSearch', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'submitOnReturn' => true)));
     $this->view->setVar("/form", $vs_script . caHTMLHiddenInput("_advancedFormName", array("value" => $ps_function)) . caHTMLHiddenInput("_formElements", array("value" => join(';', $va_form_elements))) . caHTMLHiddenInput("_advanced", array("value" => 1)) . "</form>");
     $this->render($va_search_info['view']);
 }
开发者ID:ffarago,项目名称:pawtucket2,代码行数:76,代码来源:SearchController.php

示例13: caFormTag

	</div>
	<div class='col-xs-1 col-sm-1 col-md-1 col-lg-1'>
		<div class="detailNavBgRight">
			{{{nextLink}}}
		</div><!-- end detailNavBgLeft -->
	</div><!-- end col -->
</div>

<div class="row">
	<div class="container">
<?php 
if ($this->request->user->hasUserRole("founders_new") || $this->request->user->hasUserRole("admin") || $this->request->user->hasUserRole("curatorial_all_new") || $this->request->user->hasUserRole("curatorial_basic_new") || $this->request->user->hasUserRole("archives_new") || $this->request->user->hasUserRole("library_new")) {
    // Export as PDF
    print "<div id='bViewButtons'>";
    print "<div class='reportTools'>";
    print caFormTag($this->request, 'view/pdf', 'caExportForm', ($this->request->getModulePath() ? $this->request->getModulePath() . '/' : '') . $this->request->getController() . '/' . $this->request->getAction() . '/' . $this->request->getActionExtra(), 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
    print "{$vs_export_format_select}" . caFormSubmitLink($this->request, _t('Download'), 'button', 'caExportForm') . "</form>\n";
    print "</div>";
    print "</div>";
}
if ($vs_lightbox_crumbs) {
    ?>
			<div class="detailLightboxCrumb"><?php 
    print $vs_lightbox_crumbs;
    ?>
</div>
<?php 
}
?>
			<div class="artworkTitle">
				<H4>{{{<unit relativeTo="ca_entities" delimiter="<br/>" restrictToRelationshipTypes="artist|creator"><l>^ca_entities.preferred_labels.name</l></unit>}}}</H4>
开发者ID:kai-iak,项目名称:pawtucket2,代码行数:31,代码来源:ca_objects_artwork_html.php

示例14: caFormControlBox

 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
AssetLoadManager::register('datePickerUI');
$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');
$vs_currency_symbol = $this->getVar('currency_symbol');
$vs_currency_input_format = "<div class='formLabel'>^LABEL<br/>{$vs_currency_symbol}^ELEMENT</div>";
if ($t_order->requiresShipping()) {
    print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'caClientOrderShippingForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), '', 'client/orders', 'OrderEditor', 'Shipping', 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, 'SaveShipping', 'caClientOrderShippingForm', null, 'post', 'multipart/form-data', '_top', array());
?>
	<h1><?php 
print _t('Shipping information');
?>
</h1>
<?php 
if ($t_order->requiresShipping()) {
    $va_shipping_fields = array("shipping_method", "shipping_cost", "handling_cost", "shipping_notes", "shipping_date", "shipped_on_date");
    foreach ($va_shipping_fields as $vs_f) {
        if ($vs_f == 'shipped_on_date' && !in_array($t_order->get('order_status'), array('PROCESSED', 'PROCESSED_AWAITING_DIGITIZATION', 'PROCESSED_AWAITING_MEDIA_ACCESS', 'COMPLETED'))) {
            continue;
        }
        // don't show shipped on field if order is not paid for
        $va_info = $t_order->getFieldInfo($vs_f);
        if (($vn_width = $va_info['DISPLAY_WIDTH']) > $vn_max_field_width) {
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:order_shipping_html.php

示例15: caFormControlBox

 * 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>";
?>
		<div id='editGlobalAccess'>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:ca_acl_access.php


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