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


PHP caNavIcon函数代码示例

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


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

示例1: caFormTag

    $vs_buf .= caFormTag($this->request, 'Edit', 'NewChildForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
    $vs_buf .= _t('Add a %1 under this', $vs_type_list) . caHTMLHiddenInput($t_item->primaryKey(), array('value' => '0')) . caHTMLHiddenInput('parent_id', array('value' => $t_item->getPrimaryKey()));
    $vs_buf .= '<div id="caTypeChangePanelControlButtons">';
    $vs_buf .= '<div class="saveButton">' . caFormSubmitLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_SAVE__), '', 'NewChildForm') . " " . _t('Save') . "</div>";
    $vs_buf .= caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t('Cancel'), 'caChangeTypeFormCancelButton', array('onclick' => 'caCreateChildPanel.hidePanel(); return false;'), array());
    $vs_buf .= "</div>";
    $vs_buf .= "</form></div>\n";
}
if ($t_item->tableName() == 'ca_collections' && $this->request->config->get('ca_objects_x_collections_hierarchy_enabled')) {
    $t_object = new ca_objects();
    if ((bool) $this->request->config->get('ca_objects_enforce_strict_type_hierarchy')) {
        // strict menu
        $vs_type_list = $t_object->getTypeListAsHTMLFormElement('type_id', array('style' => 'width: 90px; font-size: 9px;'), array('childrenOfCurrentTypeOnly' => true, 'directChildrenOnly' => $this->request->config->get($vs_table_name . '_enforce_strict_type_hierarchy') == '~' ? false : true, 'returnHierarchyLevels' => true, 'access' => __CA_BUNDLE_ACCESS_EDIT__));
    } else {
        // all types
        $vs_type_list = $t_object->getTypeListAsHTMLFormElement('type_id', array('style' => 'width: 90px; font-size: 9px;'), array('access' => __CA_BUNDLE_ACCESS_EDIT__));
    }
    $vs_buf .= '<div style="border-top: 1px solid #aaaaaa; margin-top: 5px; font-size: 10px; padding-top:10px" class="addChild">';
    $vs_buf .= caFormTag($this->request, 'Edit', 'NewChildObjectForm', 'editor/objects/ObjectEditor', 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
    $vs_buf .= _t('Add a %1 under this', $vs_type_list) . caHTMLHiddenInput('object_id', array('value' => '0')) . caHTMLHiddenInput('collection_id', array('value' => $t_item->getPrimaryKey()));
    $vs_buf .= '<div id="caTypeChangePanelControlButtons">';
    $vs_buf .= '<div class="saveButton">' . caFormSubmitLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_SAVE__), '', 'NewChildObjectForm') . " " . _t('Save') . "</div>";
    $vs_buf .= caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t('Cancel'), 'caChangeTypeFormCancelButton', array('onclick' => 'caCreateChildPanel.hidePanel(); return false;'), array());
    $vs_buf .= "</div>";
    $vs_buf .= "</form></div>\n";
}
print $vs_buf;
?>
			
	</div>
</div>
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:create_child_html.php

示例2: jQuery

}
if ($vo_result) {
    if ($vs_viz_list = Visualizer::getAvailableVisualizationsAsHTMLFormElement($vo_result->tableName(), 'viz', array('id' => 'caSearchVizOpts'), array('resultContext' => $vo_result_context, 'data' => $vo_result, 'restrictToTypes' => array($vo_result_context->getTypeRestriction($vb_type_restriction_has_changed))))) {
        ?>
			<div class='visualize'>
				<div id='vizLink'>
					<?php 
        print "<a href='#'  onclick='jQuery(\"#caSearchVizOptsContainer\").slideToggle(250); jQuery(\"#vizLink\").hide();return false;'>" . caNavIcon($this->request, __CA_NAV_BUTTON_VISUALIZE__) . " " . _t("Visualize") . "</a>";
        ?>
					<div class='clear:both;'></div>
				</div>
				<div id='caSearchVizOptsContainer' style="display:none;">
					<?php 
        print $vs_viz_list;
        ?>
					<?php 
        print "<a href='#'  onclick='caMediaPanel.showPanel(\"" . caNavUrl($this->request, $this->request->getModulePath(), $this->request->getController(), 'Viz', array()) . "/viz/\" + jQuery(\"#caSearchVizOpts\").val()); return false;'>" . _t("Go") . "</a>";
        ?>
					
					<a href='#' id='hideViz' onclick='$("#caSearchVizOptsContainer").slideUp(250); $("#vizLink").slideDown(250); '><?php 
        print caNavIcon($this->request, __CA_NAV_BUTTON_COLLAPSE__);
        ?>
</a>
					<div class='clear:both;width:100%;'></div>
				</div>

			</div>
<?php 
    }
    print $this->render('Search/search_sets_html.php');
}
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:widget_ca_object_representations_search_tools.php

示例3: caNavIcon

		
		</div>
		<input type="hidden" name="<?php 
print $vs_id_prefix;
?>
BundleList" id="<?php 
print $vs_id_prefix;
?>
BundleList" value=""/>
		<div style="clear: both; width: 1px; height: 1px;"><!-- empty --></div>
<?php 
if (!$vb_read_only && !(bool) $va_settings['restrictToTermsRelatedToCollection']) {
    ?>
	
		<div class='button labelInfo caAddItemButton'><a href='#'><?php 
    print caNavIcon($this->request, __CA_NAV_BUTTON_ADD__);
    ?>
 <?php 
    print $vs_add_label ? $vs_add_label : _t("Add relationship");
    ?>
</a></div>
<?php 
}
?>
	</div>
</div>

<div id="caRelationEditorPanel<?php 
print $vs_id_prefix;
?>
" class="caRelationQuickAddPanel"> 
开发者ID:samrahman,项目名称:providence,代码行数:30,代码来源:ca_list_items.php

示例4: foreach

        print $i == 1 ? "class='odd'" : "";
        ?>
>
				<td style="width:10px">
<?php 
        if ($t_rel = $o_dm->getInstanceByTableNum($vo_result->get('table_num'), true)) {
            print ' (<i>' . $t_rel->getProperty('NAME_SINGULAR') . '</i>)';
        }
        ?>
				</td>
<?php 
        foreach ($va_display_list as $vn_placement_id => $va_display_item) {
            print "<td>" . $t_display->getDisplayValue($vo_result, $vn_placement_id) . "</td>";
        }
        print "<td style='width:5%;'>" . caNavLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_EDIT__), '', 'administrate/setup/relationship_type_editor', 'RelationshipTypeEditor', 'Edit', array('type_id' => $vn_type_id));
        print " <a href='#' onclick='caOpenBrowserWith(" . $vn_type_id . ");'>" . caNavIcon($this->request, __CA_NAV_BUTTON_GO__, null, array('title' => _t('View in hierarchy'))) . "</a>";
        print "</td>";
        ?>
	
			</tr>
<?php 
        $i++;
        $vn_item_count++;
    }
    ?>
	</tbody></table>
</form><!--end caFindResultsForm -->
</div><!--end scrollingResults -->
<?php 
}
?>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:ca_relationship_types_list_html.php

示例5: _t

        print "</div><!-- end browseCriteria -->\n";
        print "<div class='blueDivide'></div>";
    } else {
        if (sizeof($va_facets)) {
            print "<div id='facetList'>";
            print "<div class='startBrowsingBy'>" . _t("Browse by") . "</div>";
            $va_available_facets = $this->getVar('available_facets');
            $i = 0;
            foreach ($va_available_facets as $vs_facet_code => $va_facet_info) {
                $i++;
                $vs_style = "";
                if ($i == 4) {
                    $vs_style = "style='clear:left;'";
                    $i = 1;
                }
                print "<div class='facetHeadingLink facet{$vs_facet_code}' " . $vs_style . "><a href='#' onclick='caUIBrowsePanel.showBrowsePanel(\"{$vs_facet_code}\"); \$(\".facetHeadingLink\").removeClass(\"active\"); \$(\".facet{$vs_facet_code}\").addClass(\"active\");'>" . $va_facet_info['label_plural'] . caNavIcon($this->request, __CA_NAV_BUTTON_ADD__) . "</a></div>\n";
                #print "<div class='facetDescription'>".$va_facet_info["description"]."</div>";
            }
            print "<div style='clear:both; height:1px;'><!-- empty --></div></div><!-- end facetList -->";
        }
    }
    ?>
	</div><!-- end position relative -->
<?php 
}
?>

	
	<div id="splashBrowsePanel" style="z-index:1000;">
		<div id="splashBrowsePanelContent">
		
开发者ID:idiscussforum,项目名称:providence,代码行数:30,代码来源:browse_controls_html.php

示例6: print

    } else {
        $vs_action = "Summary";
    }
    $i == 2 ? $i = 0 : "";
    ?>
				<tr <?php 
    print $i == 1 ? "class='odd'" : "";
    ?>
>
					<td style="width:10px">
						<input type='checkbox' name='add_to_set_ids' value='<?php 
    print (int) $vn_occurrence_id;
    ?>
' class="addItemToSetControl" />
					</td>
	<?php 
    print "<td style='width:5%;'>" . caNavLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_EDIT__), '', 'editor/occurrences', 'OccurrenceEditor', $vs_action, array('occurrence_id' => $vn_occurrence_id)) . "</td>";
    foreach ($va_display_list as $vn_placement_id => $va_display_item) {
        print "<td>" . $t_display->getDisplayValue($vo_result, $vn_placement_id, array('request' => $this->request)) . "</td>";
    }
    ?>
	
				</tr>
	<?php 
    $i++;
    $vn_item_count++;
}
?>
		</tbody></table>
	</form>
</div><!--end scrollingResults -->		
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:ca_occurrences_results_list_html.php

示例7: Index


//.........这里部分代码省略.........
     // pass view list to view for rendering
     $this->view->setVar('current_view', $vs_view);
     $this->view->setVar('sorts', $this->opa_sorts);
     // pass sort list to view for rendering
     $this->view->setVar('current_sort', $vs_sort);
     $this->view->setVar('current_sort_direction', $vs_sort_direction);
     $this->view->setVar('current_items_per_page', $vn_items_per_page);
     $this->view->setVar('items_per_page', $this->opa_items_per_page);
     $this->view->setVar('t_subject', $t_model);
     $this->view->setVar('mode_name', _t('search'));
     $this->view->setVar('mode', 'search');
     $this->view->setVar('mode_type_singular', $this->searchName('singular'));
     $this->view->setVar('mode_type_plural', $this->searchName('plural'));
     $this->view->setVar('search_history', $this->opo_result_context->getSearchHistory());
     $this->view->setVar('result_context', $this->opo_result_context);
     $this->view->setVar('uses_hierarchy_browser', $this->usesHierarchyBrowser());
     $this->view->setVar('access_values', $va_access_values);
     $this->view->setVar('browse', $po_search);
     $t_display = $this->view->getVar('t_display');
     if (!is_array($va_display_list = $this->view->getVar('display_list'))) {
         $va_display_list = array();
     }
     if ($vs_view == 'editable') {
         $va_initial_data = array();
         $va_row_headers = array();
         $vn_item_count = 0;
         if ($vo_result) {
             $vs_pk = $vo_result->primaryKey();
             while ($vn_item_count < 100 && $vo_result->nextHit()) {
                 $va_result = array('item_id' => $vn_id = $vo_result->get($vs_pk));
                 foreach ($va_display_list as $vn_placement_id => $va_bundle_info) {
                     $va_result[str_replace(".", "-", $va_bundle_info['bundle_name'])] = $t_display->getDisplayValue($vo_result, $vn_placement_id, array('request' => $this->request));
                 }
                 $va_initial_data[] = $va_result;
                 $vn_item_count++;
                 $va_row_headers[] = $vn_item_count . " " . caEditorLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_EDIT__), 'caResultsEditorEditLink', $this->ops_tablename, $vn_id);
             }
         }
         $this->view->setVar('initialData', $va_initial_data);
         $this->view->setVar('rowHeaders', $va_row_headers);
     }
     //
     // Bottom line
     //
     $va_bottom_line = array();
     $vb_bottom_line_is_set = false;
     foreach ($va_display_list as $vn_placement_id => $va_placement) {
         if (isset($va_placement['settings']['bottom_line']) && $va_placement['settings']['bottom_line']) {
             $va_bottom_line[$vn_placement_id] = caProcessBottomLineTemplate($this->request, $va_placement, $vo_result, array('pageStart' => ($vn_page_num - 1) * $vn_items_per_page, 'pageEnd' => ($vn_page_num - 1) * $vn_items_per_page + $vn_items_per_page));
             $vb_bottom_line_is_set = true;
         } else {
             $va_bottom_line[$vn_placement_id] = '';
         }
     }
     $this->view->setVar('bottom_line', $vb_bottom_line_is_set ? $va_bottom_line : null);
     switch ($pa_options['output_format']) {
         # ------------------------------------
         case 'LABELS':
             $this->_genLabels($vo_result, $this->request->getParameter("label_form", pString), $vs_search, $vs_search);
             break;
             # ------------------------------------
         # ------------------------------------
         case 'EXPORT':
             $this->_genExport($vo_result, $this->request->getParameter("export_format", pString), $vs_search, $vs_search);
             break;
             # ------------------------------------
         # ------------------------------------
         case 'HTML':
         default:
             // generate type menu and type value list
             if (method_exists($t_model, "getTypeList")) {
                 $this->view->setVar('type_list', $t_model->getTypeList());
             }
             if ($this->opb_uses_hierarchy_browser) {
                 AssetLoadManager::register('hierBrowser');
                 // only for interfaces that use the hierarchy browser
                 $t_list = new ca_lists();
                 if ($vs_type_list_code = $t_model->getTypeListCode()) {
                     $this->view->setVar('num_types', $t_list->numItemsInList($vs_type_list_code));
                     $this->view->setVar('type_menu', $t_list->getListAsHTMLFormElement($vs_type_list_code, 'type_id', array('id' => 'hierTypeList')));
                 }
                 // set last browse id for hierarchy browser
                 $this->view->setVar('browse_last_id', intval($this->request->session->getVar($this->ops_tablename . '_browse_last_id')));
             }
             $this->opo_result_context->setAsLastFind();
             $this->opo_result_context->saveContext();
             if (isset($pa_options['vars']) && is_array($pa_options['vars'])) {
                 foreach ($pa_options['vars'] as $vs_key => $vs_val) {
                     $this->view->setVar($vs_key, $vs_val);
                 }
             }
             if (isset($pa_options['view']) && $pa_options['view']) {
                 $this->render($pa_options['view']);
             } else {
                 $this->render('Search/' . $this->ops_tablename . '_search_basic_html.php');
             }
             break;
             # ------------------------------------
     }
 }
开发者ID:samrahman,项目名称:providence,代码行数:101,代码来源:BaseSearchController.php

示例8: isset

,
					setItemAutocompleteID: '<?php 
    print $vs_id_prefix;
    ?>
setItemAutocompleter',
					rowIDListID: '<?php 
    print $vs_id_prefix;
    ?>
setRowIDList',
					displayTemplate: <?php 
    print isset($va_settings['displayTemplate']) ? json_encode($va_settings['displayTemplate']) : 'null';
    ?>
,
					
					editSetItemButton: '<?php 
    print addslashes(caNavIcon($this->request, __CA_NAV_BUTTON_EDIT__));
    ?>
',
					
					lookupURL: '<?php 
    print $va_lookup_urls['search'];
    ?>
',
					itemInfoURL: '<?php 
    print caNavUrl($this->request, 'manage/sets', 'SetEditor', 'GetItemInfo');
    ?>
',
					editSetItemsURL: '<?php 
    print caNavUrl($this->request, 'manage/set_items', 'SetItemEditor', 'Edit', array('set_id' => $vn_set_id));
    ?>
',
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:ca_set_items.php

示例9: json_encode

			bundleDisplayOps = caUI.bundlelisteditor({
				availableListID: 'bundleDisplayEditorAvailableList',
				toDisplayListID: 'bundleDisplayEditorToDisplayList',
				
				availableDisplayList: <?php 
print json_encode($va_available_display_items);
?>
,
				initialDisplayList: 	<?php 
print json_encode($va_to_display_items);
?>
,
				initialDisplayListOrder : <?php 
print json_encode(array_keys($va_to_display_items));
?>
,
				
				displayBundleListID: '<?php 
print $vs_id_prefix;
?>
displayBundleList',
				
				settingsIcon: "<?php 
print caNavIcon($this->request, __CA_NAV_BUTTON_INFO2__);
?>
"
			});		
		});
	</script>
</div>
开发者ID:idiscussforum,项目名称:providence,代码行数:30,代码来源:ca_bundle_display_placements.php

示例10: getListAsHTMLFormElement


//.........这里部分代码省略.........
             $vn_c = 0;
             $vs_buf = "<table>\n";
             foreach ($va_options as $vm_value => $vs_label) {
                 if ($vn_c == 0) {
                     $vs_buf .= "<tr>";
                 }
                 $va_attributes = array('value' => $vm_value);
                 if (isset($va_disabled_options[$vm_value]) && $va_disabled_options[$vm_value]) {
                     $va_attributes['disabled'] = 1;
                 }
                 if (isset($pa_options['readonly']) && $pa_options['readonly']) {
                     $va_attributes['disabled'] = 1;
                 }
                 if (is_array($pa_options['value']) && in_array($vm_value, $pa_options['value'])) {
                     $va_attributes['checked'] = '1';
                 }
                 $vs_buf .= "<td>" . caHTMLCheckboxInput($ps_name . '_' . $vm_value, $va_attributes, $pa_options) . " {$vs_label}</td>";
                 $vn_c++;
                 if ($vn_c >= $pa_options['maxColumns']) {
                     $vn_c = 0;
                     $vs_buf .= "</tr>\n";
                 }
             }
             if ($vn_c != 0) {
                 $vs_buf .= "</tr>\n";
             }
             $vs_buf .= "</table>";
             return $vs_buf;
             break;
         case 'lookup':
             $vs_value = $vs_hidden_value = "";
             if (caGetOption('forSearch', $pa_options)) {
                 if ($vs_val_id = caGetOption('value', $pa_options)) {
                     $vs_value = $t_list->getItemFromListForDisplayByItemID($pm_list_name_or_id, $vs_val_id);
                     $vs_hidden_value = $vs_val_id;
                 }
             } else {
                 $vs_value = "{" . $pa_options['element_id'] . "_label}";
                 $vs_hidden_value = "{" . $pa_options['element_id'] . "}";
             }
             $vs_buf = caHTMLTextInput($ps_name . '_autocomplete', array('width' => isset($pa_options['width']) && $pa_options['width'] > 0 ? $pa_options['width'] : 300, 'height' => isset($pa_options['height']) && $pa_options['height'] > 0 ? $pa_options['height'] : 1, 'value' => $vs_value, 'maxlength' => 512, 'id' => $ps_name . "_autocomplete", 'class' => 'lookupBg')) . caHTMLHiddenInput($ps_name, array('value' => $vs_hidden_value, 'id' => $ps_name));
             if ($pa_options['request']) {
                 $vs_url = caNavUrl($pa_options['request'], 'lookup', 'ListItem', 'Get', array('list' => ca_lists::getListCode($vn_list_id), 'noInline' => 1, 'noSymbols' => 1, 'max' => 100));
             } else {
                 // hardcoded default for testing.
                 $vs_url = '/index.php/lookup/ListItem/Get';
             }
             $vs_buf .= '</div>';
             $vs_buf .= "\n\t\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\tjQuery(document).ready(function() {\n\t\t\t\t\t\t\tjQuery('#{$ps_name}_autocomplete').autocomplete({\n\t\t\t\t\t\t\t\t\tsource: '{$vs_url}', minLength: 3, delay: 800, html: true,\n\t\t\t\t\t\t\t\t\tselect: function(event, ui) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif (parseInt(ui.item.id) > 0) {\n\t\t\t\t\t\t\t\t\t\t\tjQuery('#{$ps_name}').val(ui.item.id);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tjQuery('#{$ps_name}_autocomplete').val('');\n\t\t\t\t\t\t\t\t\t\t\tjQuery('#{$ps_name}').val('');\n\t\t\t\t\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t});\n\t\t\t\t\t</script>\n\t\t\t\t";
             return $vs_buf;
             break;
         case 'horiz_hierbrowser':
         case 'horiz_hierbrowser_with_search':
         case 'vert_hierbrowser':
             $va_width = caParseFormElementDimension($pa_options['width'] ? $pa_options['width'] : $pa_options['width']);
             if ($va_width['type'] != 'pixels' && $va_width['dimension'] < 250) {
                 $va_width['dimension'] = 500;
             }
             $vn_width = $va_width['dimension'] . 'px';
             $va_height = caParseFormElementDimension($pa_options['height']);
             if ($va_height['type'] != 'pixels' && $va_height['dimension'] < 100) {
                 $va_height['dimension'] = 200;
             }
             $vn_height = $va_height['dimension'] . 'px';
             $t_root_item = new ca_list_items();
             $t_root_item->load(array('list_id' => $vn_list_id, 'parent_id' => null));
             JavascriptLoadManager::register("hierBrowser");
             $vs_buf = "<div style='width: {$vn_width}; height: {$vn_height};'><div id='{$ps_name}_hierarchyBrowser{n}' style='width: 100%; height: 100%;' class='" . ($vs_render_as == 'vert_hierbrowser' ? 'hierarchyBrowserVertical' : 'hierarchyBrowser') . "'>\n\t\t\t\t\t<!-- Content for hierarchy browser is dynamically inserted here by ca.hierbrowser -->\n\t\t\t\t</div><!-- end hierarchyBrowser -->\t</div>";
             $vs_buf .= "\t<script type='text/javascript'>\n\t\tjQuery(document).ready(function() { \n\t\t\tvar oHierBrowser = caUI.initHierBrowser('{$ps_name}_hierarchyBrowser{n}', {\n\t\t\t\tuiStyle: '" . ($vs_render_as == 'vert_hierbrowser' ? 'vertical' : 'horizontal') . "',\n\t\t\t\tlevelDataUrl: '" . caNavUrl($pa_options['request'], 'lookup', 'ListItem', 'GetHierarchyLevel', array('noSymbols' => 1)) . "',\n\t\t\t\tinitDataUrl: '" . caNavUrl($pa_options['request'], 'lookup', 'ListItem', 'GetHierarchyAncestorList') . "',\n\t\t\t\t\n\t\t\t\tselectOnLoad : true,\n\t\t\t\tbrowserWidth: " . (int) $va_width['dimension'] . ",\n\t\t\t\t\n\t\t\t\tclassName: '" . ($vs_render_as == 'vert_hierbrowser' ? 'hierarchyBrowserLevelVertical' : 'hierarchyBrowserLevel') . "',\n\t\t\t\tclassNameContainer: '" . ($vs_render_as == 'vert_hierbrowser' ? 'hierarchyBrowserContainerVertical' : 'hierarchyBrowserContainer') . "',\n\t\t\t\t\n\t\t\t\teditButtonIcon: \"" . caNavIcon($pa_options['request'], __CA_NAV_BUTTON_RIGHT_ARROW__) . "\",\n\t\t\t\tdisabledButtonIcon: \"" . caNavIcon($pa_options['request'], __CA_NAV_BUTTON_DOT__) . "\",\n\t\t\t\tinitItemID: '{" . $pa_options['element_id'] . "}',\n\t\t\t\tdefaultItemID: '" . $t_list->getDefaultItemID() . "',\n\t\t\t\tuseAsRootID: '" . $t_root_item->getPrimaryKey() . "',\n\t\t\t\tindicatorUrl: '" . $pa_options['request']->getThemeUrlPath() . "/graphics/icons/indicator.gif',\n\t\t\t\t\n\t\t\t\tcurrentSelectionDisplayID: '{$ps_name}_browseCurrentSelectionText{n}',\n\t\t\t\tonSelection: function(item_id, parent_id, name, display) {\n\t\t\t\t\tjQuery('#{$ps_name}').val(item_id);\n\t\t\t\t}\n\t\t\t});";
             if ($vs_render_as == 'horiz_hierbrowser_with_search') {
                 $vs_buf .= "jQuery('#{$ps_name}_hierarchyBrowserSearch{n}').autocomplete(\n\t\t\t\t\t{\n\t\t\t\t\t\tsource: '" . caNavUrl($pa_options['request'], 'lookup', 'ListItem', 'Get', array('list' => ca_lists::getListCode($vn_list_id), 'noSymbols' => 1)) . "', \n\t\t\t\t\t\tminLength: 3, delay: 800,\n\t\t\t\t\t\tselect: function(event, ui) {\n\t\t\t\t\t\t\toHierBrowser.setUpHierarchy(ui.item.id);\t// jump browser to selected item\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t);";
             }
             $vs_buf .= "});\n\t</script>";
             if ($vs_render_as == 'horiz_hierbrowser_with_search') {
                 $vs_buf .= "<div class='hierarchyBrowserSearchBar'>" . _t('Search') . ": <input type='text' id='{$ps_name}_hierarchyBrowserSearch{n}' class='hierarchyBrowserSearchBar' name='search' value='' size='20'/></div>";
             }
             if ($vs_render_as != 'vert_hierbrowser') {
                 $vs_buf .= "<div id='{$ps_name}_browseCurrentSelection{n}' class='hierarchyBrowserCurrentSelection'>" . _t("Current selection") . ": <span id='{$ps_name}_browseCurrentSelectionText{n}' class='hierarchyBrowserCurrentSelectionText'>?</span></div>";
             }
             $vs_buf .= caHTMLHiddenInput($ps_name, array('value' => "{" . $pa_options['element_id'] . "}", 'id' => $ps_name));
             return $vs_buf;
             break;
         case 'text':
             return caHTMLTextInput($ps_name, $pa_attributes, $pa_options);
             break;
         case 'options':
             return $va_options;
             break;
         default:
             if (!sizeof($va_options)) {
                 return '';
             }
             // return empty string if list has no values
             if (isset($pa_options['readonly']) && $pa_options['readonly']) {
                 $pa_attributes['disabled'] = 1;
             }
             return caHTMLSelect($ps_name, $va_options, $pa_attributes, array_merge($pa_options, array('contentArrayUsesKeysForValues' => true, 'colors' => $va_colors, 'height' => null)));
             break;
     }
 }
开发者ID:ffarago,项目名称:pawtucket2,代码行数:101,代码来源:ca_lists.php

示例11: _t

        ?>
			</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) {
            ?>
				<!--- BEGIN HIERARCHY BROWSER TYPE MENU --->
				<div id='browseTypeMenu'>
					<form action='#'>
	<?php 
            print "<div>";
            print _t('Add under %2 new %1', $this->getVar('type_menu') . ' <a href="#" onclick="_navigateToNewForm(jQuery(\'#hierTypeList\').val())">' . caNavIcon($this->request, __CA_NAV_BUTTON_ADD__) . "</a>", "<span id='browseCurrentSelection'></span>");
            print "</div>";
            ?>
					</form>
	
				</div><!-- end browseTypeMenu -->		
				<!--- END HIERARCHY BROWSER TYPE MENU --->
	<?php 
        }
        ?>
				<div class='clear' style='height:1px;'><!-- empty --></div>
				
				<!--- BEGIN HIERARCHY BROWSER --->
				<div id="hierarchyBrowser" class='hierarchyBrowser'>
					<!-- Content for hierarchy browser is dynamically inserted here by ca.hierbrowser -->
				</div><!-- end hierarchyBrowser -->
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:search_controls_html.php

示例12: foreach

>
<?php 
if (is_array($va_reps)) {
    foreach ($va_reps as $va_rep) {
        if (sizeof($va_reps) > 1) {
            # --- more than one rep show thumbnails
            $vn_padding_top = (120 - $va_rep["info"]["thumbnail"]["HEIGHT"]) / 2 + 5;
            print "<table style='float:left; margin:5px;" . $vs_clear . "' cellpadding='0' cellspacing='0'><tr><td align='center' valign='middle'><div class='thumbnailsImageContainer' style='padding: " . $vn_padding_top . "px 5px " . $vn_padding_top . "px 5px;'>";
            print "<a href='#' onclick='caMediaPanel.showPanel(\"" . caNavUrl($this->request, 'editor/objects', 'ObjectEditor', 'GetRepresentationInfo', array('object_id' => $vn_item_id, 'representation_id' => $va_rep['representation_id'])) . "\");'>" . $va_rep['tags']['thumbnail'] . "</a>\n";
            if ($this->request->user->canDoAction('can_download_ca_object_representations')) {
                print "<div style='float: right; margin-top: 5px;'>" . caNavLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_DOWNLOAD__), '', 'editor/objects', 'ObjectEditor', 'DownloadRepresentation', array('object_id' => $vn_item_id, 'representation_id' => $va_rep['representation_id'], 'version' => 'original')) . "</div>\n";
            }
            print "</div></td></tr></table>\n";
        } else {
            # --- one rep - show medium rep
            print "<div style='padding: 0px 0px 0px 20px;'>";
            print "<a href='#' onclick='caMediaPanel.showPanel(\"" . caNavUrl($this->request, 'editor/objects', 'ObjectEditor', 'GetRepresentationInfo', array('object_id' => $vn_item_id, 'representation_id' => $va_rep['representation_id'])) . "\");'>" . $va_rep['tags']['medium'] . "</a>\n";
            if ($this->request->user->canDoAction('can_download_ca_object_representations')) {
                print "<div style='float: right; margin-top: 5px;'>" . caNavLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_DOWNLOAD__), '', 'editor/objects', 'ObjectEditor', 'DownloadRepresentation', array('object_id' => $vn_item_id, 'representation_id' => $va_rep['representation_id'], 'version' => 'original')) . "</div>\n";
            }
            print "</div>";
        }
    }
}
print "<div class=\"unit\">" . $va_rep['tags']['preview170'] . "</div>\n";
?>
			</td>
		</tr>
	</table>
</div><!-- end summary -->
开发者ID:guaykuru,项目名称:pawtucket,代码行数:30,代码来源:summary_html.php

示例13: _t

				<div class="hierarchyBrowserMessageContainer">
					<?php 
        print _t('Use the controls below to create new %1 relative to this %2 in the hierarchy.', $t_object->getProperty('NAME_PLURAL'), mb_strtolower($t_subject->getTypeName()));
        ?>
				</div>
				
				<div id='<?php 
        print $ps_id_prefix;
        ?>
AddObjectHierarchyBrowseTypeMenu' style="margin-top: 15px;">
					<div style="float: left; width: 700px">
<?php 
        $vs_type_selector = trim($t_object->getTypeListAsHTMLFormElement("{$ps_id_prefix}object_type_id", array('id' => "{$ps_id_prefix}objectTypeList"), array('childrenOfCurrentTypeOnly' => $vb_strict_type_hierarchy, 'includeSelf' => !$vb_strict_type_hierarchy, 'directChildrenOnly' => $vb_strict_type_hierarchy)));
        print "<div id='{$ps_id_prefix}HierarchyBrowseAdd'>" . _t("Add a new %1 under <em>%2</em>", $vs_type_selector, $vs_subject_label);
        // Note the jQuery(\"#{$ps_id_prefix}childTypeList\").val() which grabs the value of the type
        print " <a href='#' onclick='_navigateToNewObjectForm(jQuery(\"#{$ps_id_prefix}objectTypeList\").val(), " . intval($pn_id) . ")'>" . caNavIcon($this->request, __CA_NAV_BUTTON_ADD__) . "</a></div>";
        ?>
					</div>
				</div>
				<div class="clear"><!-- empty --></div>
				<div id="<?php 
        print $ps_id_prefix;
        ?>
AddObjectHierarchyBrowser" class="hierarchyBrowserSmall">
					<!-- Content for hierarchy browser is dynamically inserted here by ca.hierbrowser -->
				</div><!-- end hierbrowser -->
		</div>
<?php 
    }
    ?>
		</div>
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:hierarchy_location.php

示例14: json_encode

,
					initialValueOrder: <?php 
    print json_encode(array_keys($va_items));
    ?>
,
					setItemAutocompleteID: '<?php 
    print $vs_id_prefix;
    ?>
setItemAutocompleter',
					rowIDListID: '<?php 
    print $vs_id_prefix;
    ?>
setRowIDList',
					
					editSetItemButton: '<?php 
    print addslashes(caNavIcon($this->request, __CA_NAV_BUTTON_EDIT__, null, null, array('graphicsPath' => $this->getVar('graphicsPath'))));
    ?>
',
					
					lookupURL: '<?php 
    print $va_lookup_urls['search'];
    ?>
',
					itemInfoURL: '<?php 
    print caNavUrl($this->request, 'manage/sets', 'SetEditor', 'GetItemInfo');
    ?>
',
					editSetItemsURL: '<?php 
    print caNavUrl($this->request, 'manage/set_items', 'SetItemEditor', 'Edit', array('set_id' => $vn_set_id));
    ?>
',
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:ca_set_items.php

示例15: function

			
			jQuery.each(data['list'], function(k, v) {
				var annotation_id = v['annotation_id'];
				var label = v['label'];
				var timecode = v['startTimecode'] + " - " + v['endTimecode'];
				var startTimecode = v['startTimecode_raw'];
			
				var item = "<div id='caAnnoEditorTlAnnotationContainer" + annotation_id + "' class='caAnnoEditorTlAnnotationContainer'>" + 
					"<div class='title'><a href='#' onclick='caAnnoEditorPlayerPlay(" + startTimecode + "); return false;'>" + label + "</a></div>" + 
					"<div class='timecode'><a href='#' onclick='caAnnoEditorPlayerPlay(" + startTimecode + "); return false;'>" + timecode + "</a></div>" + 
					"<div class='editAnnoButton'><a href='#' onclick='caAnnoEditorEdit(" + annotation_id + "); event.preventDefault(); return false;'><?php 
print caNavIcon($this->request, __CA_NAV_BUTTON_EDIT__);
?>
</a></div>" + 
					"<div class='deleteAnnoButton'><a href='#' onclick='caAnnoEditorDelete(" + annotation_id + "); event.preventDefault(); return false;'><?php 
print caNavIcon($this->request, __CA_NAV_BUTTON_DEL_BUNDLE__);
?>
</a></div>";
			
				// does the item already exist?
				if (items.eq(i).length > 0) {
					items.eq(i).html(item);
				} else {
					itemList.append("<li>" + item + "</li>");
				}
				list[i] = v;
				i++;
			});
			
			jQuery(theCarousel).data("annotation_list", list);
			jQuery(theCarousel).jcarousel('reload');
开发者ID:idiscussforum,项目名称:providence,代码行数:30,代码来源:ajax_representation_annotation_editor_html.php


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