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


PHP caHTMLSelect函数代码示例

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


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

示例1: Index

 /**
  *
  */
 public function Index()
 {
     if (!$this->request->user->canDoAction('can_import_worldcat')) {
         return;
     }
     $this->view->setVar('importer_list', $va_importer_list = ca_data_importers::getImporters(null, array('formats' => array('WorldCat'))));
     $va_importer_options = array();
     foreach ($va_importer_list as $vn_importer_id => $va_importer_info) {
         $va_importer_options[$va_importer_info['label'] . ' (creates ' . ($va_importer_info['type_for_display'] ? $va_importer_info['type_for_display'] . ' ' : '') . $va_importer_info['importer_type'] . ')'] = $vn_importer_id;
     }
     $this->view->setVar('importer_list', $va_importer_options);
     $this->view->setVar('importer_list_select', caHTMLSelect('importer_id', $va_importer_options, array()));
     $this->view->setVar('log_level', $this->request->user->getVar('worldcat_log_level'));
     $this->render("import_settings_html.php");
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:18,代码来源:ImportController.php

示例2: __construct

 /**
  *
  */
 public function __construct(&$po_request, &$po_response, $pa_view_paths = null)
 {
     parent::__construct($po_request, $po_response, $pa_view_paths);
     // merge displays with drop-in print templates
     $va_export_options = caGetAvailablePrintTemplates('results', array('table' => $this->ops_tablename));
     $this->view->setVar('export_formats', $va_export_options);
     //$this->view->setVar('current_export_format', $this->opo_result_context->getParameter('last_export_type'));
     $va_options = array();
     foreach ($va_export_options as $vn_i => $va_format_info) {
         $va_options[$va_format_info['name']] = $va_format_info['code'];
     }
     // Get current display list
     $t_display = new ca_bundle_displays();
     foreach (caExtractValuesByUserLocale($t_display->getBundleDisplays(array('table' => $this->ops_tablename, 'user_id' => $this->request->getUserID(), 'access' => __CA_BUNDLE_DISPLAY_READ_ACCESS__, 'checkAccess' => caGetUserAccessValues($this->request)))) as $va_display) {
         $va_options[$va_display['name']] = "_display_" . $va_display['display_id'];
     }
     ksort($va_options);
     $this->view->setVar('export_format_select', caHTMLSelect('export_format', $va_options, array('class' => 'searchToolsSelect'), array('value' => $this->view->getVar('current_export_format'), 'width' => '150px')));
 }
开发者ID:ffarago,项目名称:pawtucket2,代码行数:22,代码来源:FindController.php

示例3: htmlFormElement

 /**
  * Return HTML form element for specified property 
  *
  */
 public function htmlFormElement($ps_property, $pa_attributes = null)
 {
     $vs_element = $vs_label = '';
     if (!($vs_format = $pa_attributes['format'])) {
         $vs_format = $this->opo_config->get('form_element_display_format');
     }
     if ($va_property_info = $this->getPropertyInfo($ps_property)) {
         switch ($va_property_info['fieldType']) {
             case 'FT_TEXT':
             case 'FT_NUMBER':
                 $vs_label = $va_property_info['label'];
                 if (!isset($pa_attributes['value'])) {
                     $pa_attributes['value'] = $this->getProperty($ps_property);
                 }
                 if (!isset($pa_attributes['size'])) {
                     $pa_attributes['size'] = $va_property_info['fieldWidth'];
                 }
                 switch ($va_property_info['displayType']) {
                     case 'DT_SELECT':
                         $vs_element = caHTMLMakeLabeledFormElement(caHTMLSelect($pa_attributes['name'] ? $pa_attributes['name'] : $ps_property, $va_property_info['options'], $pa_attributes, array('height' => 1)), $vs_label, $pa_attributes['name'] ? $pa_attributes['name'] : $ps_property, $va_property_info['description'], $vs_format, false);
                         break;
                     default:
                         $vs_element = caHTMLMakeLabeledFormElement(caHTMLTextInput($pa_attributes['name'] ? $pa_attributes['name'] : $ps_property, $pa_attributes), $vs_label, $pa_attributes['name'] ? $pa_attributes['name'] : $ps_property, $va_property_info['description'], $vs_format, false);
                         break;
                 }
                 break;
             case 'FT_VARS':
                 $vs_element = '';
                 // skip
                 break;
             default:
                 return 'Invalid field type for \'' . $ps_property . '\'';
                 break;
         }
     }
     return $vs_element;
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:41,代码来源:ImageRepresentationAnnotationCoder.php

示例4: caFormTag

		<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();
print "&nbsp; &nbsp;<span>" . _t("Results per page") . "</span>";
print "<select name='n'>\n";
if (is_array($va_items_per_page) && sizeof($va_items_per_page) > 0) {
    foreach ($va_items_per_page as $vn_items_per_p) {
        print "<option value='" . $vn_items_per_p . "' " . ($vn_items_per_p == $vs_current_items_per_page ? "SELECTED='1'" : "") . ">" . $vn_items_per_p . "</option>\n";
    }
}
print "</select>\n";
$va_views = $this->getVar("views");
$vs_current_view = $vo_result_context->getCurrentView();
if (is_array($va_views) && sizeof($va_views) > 0) {
    print "&nbsp; &nbsp;<span>" . _t("Layout") . "</span>";
    print "<select name='view'>";
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:search_controls_html.php

示例5: substr

    }
}
# 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 
print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/" . $this->request->config->get('header_img') . "' border='0'>", "", "", "", "");
?>
				
			
<?php 
// get last search ('basic_search' is the find type used by the SearchController)
$o_result_context = new ResultContext($this->request, 'ca_objects', 'basic_search');
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:pageHeader.php

示例6: array

<?php 
        $va_add_types = array(_t('under (child)') => 'under');
        if (!$vb_strict_type_hierarchy) {
            $va_add_types[_t('above (parent)')] = 'above';
        }
        if ($pn_parent_id > 0 && !$vb_strict_type_hierarchy) {
            $va_add_types[_t('next to (sibling)')] = 'next_to';
        }
        if ($vs_type_selector) {
            // for items that take types
            print "<div id='{$vs_id_prefix}HierarchyBrowseAdd'>" . _t("Add a new %1 %2 <em>%3</em>", $vs_type_selector, caHTMLSelect('add_type', $va_add_types, array('id' => "{$vs_id_prefix}addType")), $vs_subject_label);
            // Note the jQuery(\"#{$vs_id_prefix}childTypeList\").val() which grabs the value of the type
            print " <a href='#' onclick='_navigateToNewForm(jQuery(\"#{$vs_id_prefix}typeList\").val(), jQuery(\"#{$vs_id_prefix}addType\").val(), (jQuery(\"#{$vs_id_prefix}addType\").val() == \"next_to\") ? " . intval($pn_parent_id) . " : " . intval($pn_id) . ")'>" . caNavIcon($this->request, __CA_NAV_BUTTON_ADD__) . "</a></div>";
        } else {
            // for items without types
            print "<div id='{$vs_id_prefix}HierarchyBrowseAdd'>" . _t("Add a new %1 %2 <em>%3</em>", $t_subject->getProperty('NAME_SINGULAR'), caHTMLSelect('add_type', $va_add_types, array('id' => "{$vs_id_prefix}addType")), $vs_subject_label);
            print " <a href='#' onclick='_navigateToNewForm(0, jQuery(\"#{$vs_id_prefix}addType\").val(), (jQuery(\"#{$vs_id_prefix}addType\").val() == \"next_to\") ? " . intval($pn_parent_id) . " : " . intval($pn_id) . ")'>" . caNavIcon($this->request, __CA_NAV_BUTTON_ADD__) . "</a></div>";
        }
        ?>
					</div>
				</div>
				<div class="clear"><!-- empty --></div>
				<div id="<?php 
        print $vs_id_prefix;
        ?>
AddHierarchyBrowser" class="hierarchyBrowserSmall">
					<!-- Content for hierarchy browser is dynamically inserted here by ca.hierbrowser -->
				</div><!-- end hierbrowser -->
		</div>
<?php 
    }
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:hierarchy_location.php

示例7: preferenceHtmlFormElement


//.........这里部分代码省略.........
                     }
                     $vn_num_table_columns = isset($pa_options['numTableColumns']) && (int) $pa_options['numTableColumns'] > 0 ? (int) $pa_options['numTableColumns'] : 3;
                     $vn_c = 0;
                     foreach ($va_pref_info["choiceList"] as $vs_opt => $vs_val) {
                         if (is_array($vs_current_value)) {
                             $vs_selected = in_array($vs_val, $vs_current_value) ? "CHECKED" : "";
                         } else {
                             $vs_selected = '';
                         }
                         if ($vb_use_table && $vn_c == 0) {
                             $vs_output .= "<tr>";
                         }
                         if ($vb_use_table) {
                             $vs_output .= "<td width='" . floor(100 / $vn_num_table_columns) . "%'>";
                         }
                         $vs_output .= "<input type='checkbox' name='pref_" . $ps_pref . "[]' value='" . htmlspecialchars($vs_val, ENT_QUOTES, 'UTF-8') . "'" . $vs_class . " {$vs_selected}> " . $vs_opt . " \n";
                         if ($vb_use_table) {
                             $vs_output .= "</td>";
                         }
                         $vn_c++;
                         if ($vb_use_table && !($vn_c % $vn_num_table_columns)) {
                             $vs_output .= "</tr>\n";
                             $vn_c = 0;
                         }
                     }
                     if ($vb_use_table) {
                         $vs_output .= "</table>";
                     }
                 }
                 break;
                 # ---------------------------------
             # ---------------------------------
             case 'DT_STATEPROV_LIST':
                 $vs_output .= caHTMLSelect("pref_{$ps_pref}_select", array(), array('id' => "pref_{$ps_pref}_select", 'class' => $vs_classname), array('value' => $vs_current_value));
                 $vs_output .= caHTMLTextInput("pref_{$ps_pref}_name", array('id' => "pref_{$ps_pref}_text", 'value' => $vs_current_value, 'class' => $vs_classname));
                 break;
                 # ---------------------------------
             # ---------------------------------
             case 'DT_COUNTRY_LIST':
                 $vs_output .= caHTMLSelect("pref_{$ps_pref}", caGetCountryList(), array('id' => "pref_{$ps_pref}", 'class' => $vs_classname), array('value' => $vs_current_value));
                 if ($va_pref_info['stateProvPref']) {
                     $vs_output .= "<script type='text/javascript'>\n";
                     $vs_output .= "var caStatesByCountryList = " . json_encode(caGetStateList()) . ";\n";
                     $vs_output .= "\n\t\t\t\t\t\t\tjQuery('#pref_{$ps_pref}').click({countryID: 'pref_{$ps_pref}', stateProvID: 'pref_" . $va_pref_info['stateProvPref'] . "', value: '" . addslashes($this->getPreference($va_pref_info['stateProvPref'])) . "', statesByCountryList: caStatesByCountryList}, caUI.utils.updateStateProvinceForCountry);\n\t\t\t\t\t\t\tjQuery(document).ready(function() {\n\t\t\t\t\t\t\t\tcaUI.utils.updateStateProvinceForCountry({data: {countryID: 'pref_{$ps_pref}', stateProvID: 'pref_" . $va_pref_info['stateProvPref'] . "', value: '" . addslashes($this->getPreference($va_pref_info['stateProvPref'])) . "', statesByCountryList: caStatesByCountryList}});\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t";
                     $vs_output .= "</script>\n";
                 }
                 break;
                 # ---------------------------------
             # ---------------------------------
             case 'DT_CURRENCIES':
                 $vs_output .= caHTMLSelect("pref_{$ps_pref}", caAvailableCurrenciesForConversion(), array('id' => "pref_{$ps_pref}", 'class' => $vs_classname), array('value' => $vs_current_value));
                 break;
                 # ---------------------------------
             # ---------------------------------
             case 'DT_RADIO_BUTTONS':
                 foreach ($va_pref_info["choiceList"] as $vs_opt => $vs_val) {
                     $vs_selected = $vs_val == $vs_current_value ? "CHECKED" : "";
                     $vs_output .= "<input type='radio' name='pref_{$ps_pref}'" . $vs_class . " value='" . htmlspecialchars($vs_val, ENT_QUOTES, 'UTF-8') . "' {$vs_selected}> " . $vs_opt . " \n";
                 }
                 break;
                 # ---------------------------------
             # ---------------------------------
             case 'DT_PASSWORD':
                 if (($vn_display_width = $va_pref_info["displayWidth"]) < 1) {
                     $vn_display_width = 20;
                 }
开发者ID:kai-iak,项目名称:providence,代码行数:67,代码来源:ca_users.php

示例8: htmlFormElementForSearch

 /**
  * Returns HTML search form input widget for bundle specified by standard "get" bundle code (eg. <table_name>.<bundle_name> format)
  * This method handles generation of search form widgets for (1) related tables (eg. ca_places),  preferred and non-preferred labels for both the 
  * primary and related tables, and all other types of elements for related tables. If this method can't handle the bundle it will pass the request to the 
  * superclass implementation of htmlFormElementForSearch()
  *
  * @param $po_request HTTPRequest
  * @param $ps_field string
  * @param $pa_options array
  * @return string HTML text of form element. Will return null (from superclass) if it is not possible to generate an HTML form widget for the bundle.
  * 
  */
 public function htmlFormElementForSearch($po_request, $ps_field, $pa_options = null)
 {
     $vb_as_array_element = (bool) caGetOption('asArrayElement', $pa_options, false);
     $va_tmp = explode('.', $ps_field);
     switch ($va_tmp[0]) {
         case '_fulltext':
             if (!isset($pa_options['width'])) {
                 $pa_options['width'] = 30;
             }
             if (!isset($pa_options['height'])) {
                 $pa_options['height'] = 30;
             }
             if (!isset($pa_options['values'])) {
                 $pa_options['values'] = array();
             }
             if (!isset($pa_options['values']['_fulltext'])) {
                 $pa_options['values'][$ps_field] = '';
             }
             return caHTMLTextInput("_fulltext" . ($vb_as_array_element ? "[]" : ""), array('value' => $pa_options['values']['_fulltext'], 'size' => $pa_options['width'], 'class' => $pa_options['class']), $pa_options);
             break;
         case '_fieldlist':
             if (!isset($pa_options['width'])) {
                 $pa_options['width'] = 30;
             }
             if (!isset($pa_options['height'])) {
                 $pa_options['height'] = 30;
             }
             if (!isset($pa_options['values'])) {
                 $pa_options['values'] = array();
             }
             $va_filter = $va_alt_names = $va_relationship_restricted_searches = null;
             if (is_array($va_fields = preg_split("![;,]+!", caGetOption('fields', $pa_options, null))) && sizeof($va_fields)) {
                 $va_filter = $va_alt_names = $va_relationship_restricted_searches = array();
                 foreach ($va_fields as $vs_field_raw) {
                     $va_tmp = explode(':', $vs_field_raw);
                     $va_tmp2 = explode('/', $va_tmp[0]);
                     // If there's a "/" separator then this is a relationship type-restricted search (Eg. ca_entities.preferred_labels.displayname/artist:"Isamu Noguchi")
                     if (sizeof($va_tmp2) > 1) {
                         $va_relationship_restricted_searches[$va_tmp2[0]][] = $va_tmp[0];
                     } else {
                         $va_filter[] = $va_tmp2[0];
                     }
                     if (isset($va_tmp[1]) && $va_tmp[1]) {
                         $va_alt_names[$va_tmp[0]] = $va_tmp[1];
                     }
                 }
             }
             $va_options = caGetBundlesAvailableForSearch($this->tableName(), array('forSelect' => true, 'filter' => $va_filter));
             // We need to add any relationship-restricted searh qualifiers here since they're not free-standing bundles but
             // rather variants on an unqualified relationship bundle
             foreach ($va_relationship_restricted_searches as $vs_without_rel_restriction => $va_with_rel_restrictions) {
                 foreach ($va_with_rel_restrictions as $vs_with_rel_restriction) {
                     $vs_label = isset($va_alt_names[$vs_with_rel_restriction]) ? $va_alt_names[$vs_with_rel_restriction] : $vs_with_rel_restriction;
                     $va_options[$vs_label] = $vs_with_rel_restriction;
                 }
             }
             if (is_array($va_alt_names)) {
                 foreach ($va_options as $vs_l => $vs_fld) {
                     if (isset($va_alt_names[$vs_fld])) {
                         unset($va_options[$vs_l]);
                         $va_options[$va_alt_names[$vs_fld]] = $vs_fld;
                     }
                 }
             }
             if (is_array($va_filter) && sizeof($va_filter)) {
                 // reorder options to keep field list order (sigh)
                 $va_options_tmp = array();
                 foreach ($va_filter as $vs_filter) {
                     if (($vs_k = array_search($vs_filter, $va_options)) !== false) {
                         $va_options_tmp[$vs_k] = $va_options[$vs_k];
                     }
                 }
                 $va_options = $va_options_tmp;
             }
             return caHTMLSelect("_fieldlist_field" . ($vb_as_array_element ? "[]" : ""), $va_options, array('size' => $pa_options['fieldListWidth'], 'class' => $pa_options['class']), array_merge($pa_options, array('value' => $pa_options['values']['_fieldlist_field'][0]))) . caHTMLTextInput("_fieldlist_value" . ($vb_as_array_element ? "[]" : ""), array('value' => $pa_options['values']['_fieldlist_value'], 'size' => $pa_options['width'], 'class' => $pa_options['class']), $pa_options);
             break;
     }
     if (!in_array($va_tmp[0], array('created', 'modified'))) {
         switch (sizeof($va_tmp)) {
             # -------------------------------------
             case 1:
                 // table_name
                 if ($va_tmp[0] != $this->tableName()) {
                     if (!is_array($pa_options)) {
                         $pa_options = array();
                     }
                     if (!isset($pa_options['width'])) {
                         $pa_options['width'] = 30;
//.........这里部分代码省略.........
开发者ID:idiscussforum,项目名称:providence,代码行数:101,代码来源:BundlableLabelableBaseModelWithAttributes.php

示例9: caGetInfoForAdvancedSearchForm

$va_forms = $this->getVar('form_codes');
$vs_form = $this->getVar('form');
// name of form to display
$va_form_info = caGetInfoForAdvancedSearchForm($vs_form, $t_subject->tableName());
//
// Set options for all form element here
//
$va_bundle_opts = array('values' => $o_result_context->getParameter('form_data'));
//
// List out form elements to display here
//
$va_form_fields = caGetAdvancedSearchFormElementNames($vs_form, $t_subject->tableName());
$va_form_field_with_subelements = caGetAdvancedSearchFormElementNames($vs_form, $t_subject->tableName(), array('includeSubElements' => true));
if (!$this->request->isAjax()) {
    if (sizeof($va_forms) > 1) {
        print "<div style='float: right;'><form action='#'>" . caHTMLSelect('form', $va_forms, array('onchange' => 'caLoadAdvancedSearchForm();', 'id' => 'caAdvancedSearchFormSelector'), array('value' => $vs_form)) . "</form></div>\n";
    }
    ?>
	<H1 class="results" style="margin-top:15px;"><?php 
    print _t("Advanced Search");
    ?>
</H1>
<?php 
}
if ($va_form_fields && is_array($va_form_fields) && sizeof($va_form_fields)) {
    ?>
		<div id="caAdvancedSearchForm">
			<?php 
    print caFormTag($this->request, 'Index', 'caAdvancedSearch', null, 'POST', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
    ?>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:30,代码来源:search_advanced_controls_html.php

示例10: caFormTag

 *
 * ----------------------------------------------------------------------
 */
$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,代码行数:30,代码来源:user_list_html.php

示例11: caNavIcon

 * 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
 *
 * ----------------------------------------------------------------------
 */
$va_editor_ui_list = $this->getVar('editor_ui_list');
$vs_type_menu = '<div class="sf-small-menu form-header-button rounded">' . '<div style="float:right; margin: 3px;">' . '<a href="#" onclick="_navigateToNewForm(jQuery(\'#tableList\').val());">' . caNavIcon($this->request, __CA_NAV_BUTTON_ADD_LARGE__) . '</a>' . '</div>' . '<form action="#">' . _t('New interface for ') . ' ' . caHTMLSelect('editor_type', $this->getVar('table_list'), array('id' => 'tableList')) . '</form>' . '</div>';
?>
<script language="JavaScript" type="text/javascript">
/* <![CDATA[ */
	$(document).ready(function(){
		$('#caUIList').caFormatListTable();
	});
	
	function _navigateToNewForm(editor_type) {
		document.location = '<?php 
print caNavUrl($this->request, 'administrate/setup/interface_editor', 'InterfaceEditor', 'Edit', array('ui_id' => 0));
?>
' + '/editor_type/' + editor_type;
	}
/* ]]> */
</script>
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:ui_list_html.php

示例12: caHTMLTextInput

print caHTMLTextInput('sourceText', array('id' => 'caSourceText'), array('width' => '600px', 'height' => 3));
?>
					</p>
				</div>
			</div>
		</div>
		<div class='bundleLabel'>
			<span class="formLabelText"><?php 
print _t('Log level');
?>
</span> 
			<div class="bundleContainer">
				<div class="caLabelList">
					<p>
<?php 
print caHTMLSelect('logLevel', caGetLogLevels(), array('id' => 'caLogLevel'), array('value' => $va_last_settings['logLevel']));
?>
					</p>
				</div>
			</div>
		</div>
		<div class='bundleLabel'>
			<span class="formLabelText"><?php 
print _t('Testing options');
?>
</span> 
			<div class="bundleContainer">
				<div class="caLabelList" >
					<p class="formLabelPlain">
<?php 
$va_attr = array('id' => 'caDryRun', 'value' => 1);
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:importer_run_html.php

示例13: jQuery

 * 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
 *
 * ----------------------------------------------------------------------
 */
$va_mapping_list = $this->getVar('mapping_list');
$vs_type_menu = '<div class="sf-small-menu form-header-button rounded">' . '<div style="float:right; margin: 3px;">' . '<a href="#" onclick="_navigateToNewForm(jQuery(\'#tableList\').val(), jQuery(\'#targetList\').val(), jQuery(\'#directionList\').val());">' . caNavIcon($this->request, __CA_NAV_BUTTON_ADD__) . '</a>' . '</div>' . '<form action="#">' . _t('New %1 %2 mapping for %3', caHTMLSelect('format', $this->getVar('format_list'), array('id' => 'targetList')), caHTMLSelect('direction', $this->getVar('direction_list'), array('id' => 'directionList')), caHTMLSelect('table_num', $this->getVar('table_list'), array('id' => 'tableList'))) . '</form>' . '</div>';
?>
<script language="JavaScript" type="text/javascript">
/* <![CDATA[ */
	$(document).ready(function(){
		$('#caMappingList').caFormatListTable();
	});
	
	function _navigateToNewForm(table_num, target, direction) {
		document.location = '<?php 
print caNavUrl($this->request, 'administrate/setup/bundle_mapping_editor', 'BundleMappingEditor', 'Edit', array('mapping_id' => 0));
?>
' + '/table_num/' + table_num + '/target/' + target + '/direction/' + direction;
	}
/* ]]> */
</script>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:mapping_list_html.php

示例14: _t

</a></div>
		</form>
	</div>
	<br class="clear"/>
<?php 
}
?>
	<div class="col">
<?php 
print "<span class='header'>" . _t("Create set") . ":</span><br/>";
?>
		<form id="caCreateSetFromResults">
<?php 
print caHTMLTextInput('set_name', array('id' => 'caCreateSetFromResultsInput', 'class' => 'searchSetsTextInput', 'value' => $o_result_context->getSearchExpression()), array('width' => '150px'));
print " ";
print caHTMLSelect('set_create_mode', array(_t('from results') => 'from_results', _t('from checked') => 'from_checked'), array('id' => 'caCreateSetFromResultsMode', 'class' => 'searchSetsSelect'), array('value' => null, 'width' => '140px'));
if ($t_list->getAppConfig()->get('enable_set_type_controls')) {
    print $t_list->getListAsHTMLFormElement('set_types', 'set_type', array('id' => 'caCreateSetTypeID', 'class' => 'searchSetsSelect'), array('value' => null, 'width' => '140px'));
}
print caBusyIndicatorIcon($this->request, array('id' => 'caCreateSetFromResultsIndicator')) . "\n";
?>
			<a href='#' onclick="caCreateSetFromResults(); return false;" class="button"><?php 
print _t('Create');
?>
 &rsaquo;</a>
<?php 
if ($this->request->user->canDoAction('can_batch_edit_' . $t_subject->tableName())) {
    print '<div class="searchSetsBatchEdit">' . caHTMLCheckboxInput('batch_edit', array('id' => 'caCreateSetBatchEdit', 'value' => 1)) . " " . _t('Open set for batch editing') . "</div>\n";
}
?>
		</form>
开发者ID:samrahman,项目名称:providence,代码行数:31,代码来源:search_sets_html.php

示例15: _t

    if (!$t_order->getPrimaryKey() || $t_order->paymentIsAllowed()) {
        // && in_array($t_order->get('payment_method'), $va_payment_types))) {
        ?>
			<div id='caPaymentFields'>
				<H1><?php 
        print _t("Payment Details");
        ?>
</H1>
				<div class="bgWhite">
<?php 
        print "<div>" . $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>\n";
        ?>
					<div id="caClientOrderCustomerCreditSubForm">
<?php 
        print "<div style='float:left;'><b>" . _t("Credit card") . "</b><br/>" . caHTMLSelect('credit_card_type', $va_credit_card_types) . "</div>\n";
        print "<div style='margin-left:15px; float:left;'><b>" . _t("Expiration date") . "</b><br/>" . caHTMLSelect('credit_card_exp_mon', $this->getVar('credit_card_exp_month_list')) . " " . caHTMLSelect('credit_card_exp_yr', $this->getVar('credit_card_exp_year_list')) . "</div>\n";
        print "<div style='clear:left; float:left;'><b>" . _t("Credit card number") . "</b><br/>" . caHTMLTextInput('credit_card_number', array('size' => 30)) . "</div>\n";
        print "<div style='margin-left:15px; float:left;'><b>" . _t("CCV") . "</b><br/>" . caHTMLTextInput('credit_card_ccv', array('size' => 4)) . "</div>\n";
        print "<div id='caClientOrderProcessingIndicator'><img src='" . $this->request->getThemeUrlPath() . "/graphics/icons/indicator.gif'/> " . _t('Please wait while order is processed (this may take up to 60 seconds to complete)') . "</div>\n";
        ?>
						<div style="clear:both; height:1px; margin:0px;"><!-- empty --></div>
					</div>
					<div id="caClientOrderCustomerPOSubForm">
						Email your Purchase order to rnr@hsp.org or FAX it to 215-732-6200
					</div>
					<div id="caClientOrderCustomerCheckSubForm">
						Send your check for <?php 
        print $vs_currency_symbol . $t_order->getTotal();
        ?>
 to Rights and Reproductions, Historical Society of Pennsylvania, 1300 Locust Street, Philadelphia, PA 19107
					</div>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:view_order_html.php


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