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


PHP caEditorUrl函数代码示例

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


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

示例1: caNavIcon

						<input type="hidden" name="<?php 
print $vs_id_prefix;
?>
_id{n}" id="<?php 
print $vs_id_prefix;
?>
_id{n}" value="{id}"/>
					</td>
					<td>
						<a href="#" class="caDeleteItemButton"><?php 
print caNavIcon($this->request, __CA_NAV_BUTTON_DEL_BUNDLE__);
?>
</a>

						<a href="<?php 
print urldecode(caEditorUrl($this->request, 'ca_sets', '{set_id}'));
?>
" class="caEditItemButton" id="<?php 
print $vs_id_prefix;
?>
_edit_related_{n}"><?php 
print caNavIcon($this->request, __CA_NAV_BUTTON_GO__);
?>
</a>
					</td>
				</tr>
			</table>
		</div>
	</textarea>
	
	<div class="bundleContainer">
开发者ID:samrahman,项目名称:providence,代码行数:31,代码来源:ca_sets.php

示例2: _t

 * 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
 *
 * ----------------------------------------------------------------------
 */
$po_request = $this->getVar('request');
$va_item_list = $this->getVar('item_list');
$vs_table_num = $this->getVar('table_num');
$vs_table_display = $this->getVar('table_display');
$vs_status_display = $this->getVar('status_display');
$vs_widget_id = $this->getVar('widget_id');
$vn_height_px = $this->getVar('height_px');
?>

<div class="dashboardWidgetContentContainer">
	<div class="dashboardWidgetHeading"><?php 
print _t("Showing %1 <span style='font-weight:bold; text-transform:lowercase;'>%2</span> with status <span style='font-weight:bold; text-transform:lowercase;'>\"%3\"</span>", sizeof($va_item_list), $vs_table_display, $vs_status_display);
?>
</div>
	<div class="dashboardWidgetScrollMedium"><ul>
<?php 
foreach ($va_item_list as $vn_id => $va_record) {
    print "<li><a href=\"" . caEditorUrl($po_request, $vs_table_num, $vn_id) . "\">" . (strlen($va_record["display"]) > 0 ? $va_record["display"] : _t("[BLANK]")) . "</a></li>\n";
}
?>
	</ul></div>
</div>
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:main_html.php

示例3: caNavIcon

            ?>
<a href="#" class="caInterstitialEditButton listRelEditButton"><?php 
            print caNavIcon($this->request, __CA_NAV_BUTTON_INTERSTITIAL_EDIT_BUNDLE__);
            ?>
</a><?php 
        }
        if (!$vb_read_only && !$vb_dont_show_del) {
            ?>
<a href="#" class="caDeleteItemButton listRelDeleteButton"><?php 
            print caNavIcon($this->request, __CA_NAV_BUTTON_DEL_BUNDLE__);
            ?>
</a><?php 
        }
        ?>
			<a href="<?php 
        print urldecode(caEditorUrl($this->request, 'ca_occurrences', '{occurrence_id}'));
        ?>
" class="caEditItemButton" id="<?php 
        print $vs_id_prefix;
        ?>
_edit_related_{n}"></a>
			<span id='<?php 
        print $vs_id_prefix;
        ?>
_BundleTemplateDisplay{n}'>
<?php 
        print caGetRelationDisplayString($this->request, 'ca_list_items', array(), array('display' => '_display', 'makeLink' => false));
        ?>
			</span>
			<input type="hidden" name="<?php 
        print $vs_id_prefix;
开发者ID:samrahman,项目名称:providence,代码行数:31,代码来源:ca_list_items.php

示例4: caNavIcon

						<input type="hidden" name="<?php 
print $vs_id_prefix;
?>
_id{n}" id="<?php 
print $vs_id_prefix;
?>
_id{n}" value="{id}"/>
					</td>
					<td>
						<a href="#" class="caDeleteItemButton"><?php 
print caNavIcon($this->request, __CA_NAV_BUTTON_DEL_BUNDLE__, null, null, array('graphicsPath' => $this->getVar('graphicsPath')));
?>
</a>
						
						<a href="<?php 
print urldecode(caEditorUrl($this->request, 'ca_loans', '{loan_id}'));
?>
" class="caEditItemButton" id="<?php 
print $vs_id_prefix;
?>
_edit_related_{n}"><?php 
print caNavIcon($this->request, __CA_NAV_BUTTON_GO__, null, null, array('graphicsPath' => $this->getVar('graphicsPath')));
?>
</a>
					</td>
				</tr>
			</table>
		</div>
	</textarea>
	
	<div class="bundleContainer">
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:ca_loans.php

示例5: caEditorUrl

				case 'next_to':
					document.location = '<?php 
    print caEditorUrl($this->request, $t_subject->tableName(), 0);
    ?>
/type_id/' + type_id + '/parent_id/' + id;
					break;
				default:
					alert("Invalid action!");
					break;
			}
		}
	}
	if (typeof  _navigateToNewObjectForm != 'function') {
		function _navigateToNewObjectForm(type_id, parent_collection_id) {
			document.location = '<?php 
    print caEditorUrl($this->request, "ca_objects", 0);
    ?>
/type_id/' + type_id + '/collection_id/' + parent_collection_id;
		}
	}
	
	// Set up "explore" hierarchy browser
	var o<?php 
    print $vs_id_prefix;
    ?>
ExploreHierarchyBrowser = null;
	
	function _init<?php 
    print $vs_id_prefix;
    ?>
ExploreHierarchyBrowser() {
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:hierarchy_location.php

示例6: _getLogDisplayOutput

    /**
     *
     */
    private function _getLogDisplayOutput($pa_log, $pa_options = null)
    {
        $ps_id = isset($pa_options['id']) && $pa_options['id'] ? $pa_options['id'] : '';
        $vs_output = '';
        if ($ps_id) {
            $vs_output .= '<script language="JavaScript" type="text/javascript">
/* <![CDATA[ */
	$(document).ready(function(){
		$("#' . $ps_id . '").caFormatListTable();
	});
/* ]]> */
</script>';
        }
        $vs_output .= '<table ' . ($ps_id ? 'id="' . $ps_id . '"' : '') . ' class="listtable" width="100%" border="0" cellpadding="0" cellspacing="1">
		<thead>
			<tr>
				<th class="list-header-unsorted">
					' . _t('Date') . '
				</th>
				<th class="list-header-unsorted">
					 ' . _t('User') . '
				</th>
				<th class="list-header-unsorted">
					 ' . _t('Subject') . '
				</th>
				<th class="list-header-unsorted">
					' . _t('Changes') . '
				</th>
			</tr>
		</thead>
		<tbody>';
        if (!sizeof($pa_log)) {
            $vs_output .= "<tr><td colspan='4'><div class='contentError' align='center'>" . _t('No change log available') . "</div></td></tr>\n";
        } else {
            foreach (array_reverse($pa_log) as $vn_unit_id => $va_log_entries) {
                if (is_array($va_log_entries) && sizeof($va_log_entries)) {
                    $vs_output .= "\t<tr>";
                    $vs_output .= "<td>" . $va_log_entries[0]['datetime'] . "</td>";
                    if (trim($va_log_entries[0]['user_fullname'])) {
                        $vs_output .= "<td>";
                        if (trim($va_log_entries[0]['user_email'])) {
                            $vs_output .= " <a href='mailto:" . $va_log_entries[0]['user_email'] . "'>" . $va_log_entries[0]['user_fullname'] . "</a>";
                        } else {
                            $vs_output .= $va_log_entries[0]['user_fullname'];
                        }
                        $vs_output .= "</td>";
                    } else {
                        $vs_output .= "<td> </td>";
                    }
                    if (isset($pa_options['request']) && $pa_options['request']) {
                        $vs_output .= "<td><a href='" . caEditorUrl($pa_options['request'], $va_log_entries[0]['subject_table_num'], $va_log_entries[0]['subject_id']) . "'>" . $va_log_entries[0]['subject'] . "</a></td>";
                    } else {
                        $vs_output .= "<td>" . $va_log_entries[0]['subject'] . "</td>";
                    }
                    $vs_output .= "<td>";
                    foreach ($va_log_entries as $va_log_entry) {
                        foreach ($va_log_entry['changes'] as $va_change) {
                            $vs_output .= '<span class="logChangeLabel">' . $va_log_entry['changetype_display'] . ' ' . $va_change['label'] . '</span>: ' . $va_change['description'] . "<br/>\n";
                        }
                    }
                    $vs_output .= "</div></td>";
                    $vs_output .= "</tr>\n";
                }
            }
        }
        $vs_output .= "</table>\n";
        return $vs_output;
    }
开发者ID:kai-iak,项目名称:pawtucket2,代码行数:71,代码来源:ApplicationChangeLog.php

示例7: caNavIcon

						<input type="hidden" name="<?php 
    print $vs_id_prefix;
    ?>
_id{n}" id="<?php 
    print $vs_id_prefix;
    ?>
_id{n}" value="{id}"/>
					</td>
					<td>
						<a href="#" class="caDeleteItemButton"><?php 
    print caNavIcon($this->request, __CA_NAV_BUTTON_DEL_BUNDLE__);
    ?>
</a>
						
						<a href="<?php 
    print urldecode(caEditorUrl($this->request, 'ca_places', '{place_id}'));
    ?>
" class="caEditItemButton" id="<?php 
    print $vs_id_prefix;
    ?>
_edit_related_{n}"><?php 
    print caNavIcon($this->request, __CA_NAV_BUTTON_GO__);
    ?>
</a>
					</td>
				</tr>
			</table>
<?php 
} else {
    $vn_use_as_root_id = 'null';
    if (sizeof($va_settings['restrict_to_lists']) == 1) {
开发者ID:kai-iak,项目名称:providence,代码行数:31,代码来源:ca_places.php

示例8: htmlFormElement

 /**
  * Return HTML form element for editing.
  *
  * @param array $pa_element_info An array of information about the metadata element being edited
  * @param array $pa_options array Options include:
  *			class = the CSS class to apply to all visible form elements [Default=lookupBg]
  *			width = the width of the form element [Default=field width defined in metadata element definition]
  *			height = the height of the form element [Default=field height defined in metadata element definition]
  *			request = the RequestHTTP object for the current request; required for lookups to work [Default is null]
  *
  * @return string
  */
 public function htmlFormElement($pa_element_info, $pa_options = null)
 {
     $t_instance = self::elementTypeToInstance($this->getType());
     $va_settings = $this->getSettingValuesFromElementArray($pa_element_info, array('fieldWidth'));
     $vs_class = trim(isset($pa_options['class']) && $pa_options['class'] ? $pa_options['class'] : 'lookupBg');
     if ($pa_options['request']) {
         if ($vs_restrict_to_type = caGetOption('restrictTo' . $this->ops_name_singular . 'TypeIdno', $pa_element_info['settings'], null)) {
             $va_params = array('max' => 50, 'type' => $vs_restrict_to_type);
         } else {
             $va_params = array('max' => 50);
         }
         $vs_url = caNavUrl($pa_options['request'], 'lookup', $this->ops_name_singular, 'Get', $va_params);
     } else {
         // no lookup is possible
         return $this->getDisplayValue();
     }
     $va_pieces = caEditorUrl($pa_options['request'], $t_instance->tableName(), 0, true);
     $va_pieces['controller'] = str_replace('Editor', 'QuickAdd', $va_pieces['controller']);
     $va_pieces['action'] = 'Form';
     $vs_quickadd_url = caNavUrl($pa_options['request'], $va_pieces['module'], $va_pieces['controller'], $va_pieces['action'], array($t_instance->primaryKey() => 0));
     $o_view = new View($pa_options['request'], $pa_options['request']->getViewsDirectoryPath() . "/bundles/");
     $o_view->setVar('field_name_prefix', "{fieldNamePrefix}{$pa_element_info['element_id']}");
     $o_view->setVar('quickadd_url', $vs_quickadd_url);
     $o_view->setVar('lookup_url', $vs_url);
     $o_view->setVar('options', $pa_options);
     $o_view->setVar('settings', $va_settings);
     $o_view->setVar('element_info', $pa_element_info);
     $o_view->setVar('class', $vs_class);
     return $o_view->render('authority_attribute.php');
 }
开发者ID:samrahman,项目名称:providence,代码行数:42,代码来源:AuthorityAttributeValue.php

示例9: caEditorLink

/**
 * Returns an HTML to edit an item in the appropriate bundle-based editor. If no specified item is specified (eg. no id value is set)
 * the a link to create a new item of the specfied type is returned.
 *
 * @param HTTPRequest $po_request The current request object
 * @param string $ps_content The displayed content of the link
 * @param string $ps_classname CSS classname(s) to apply to the link
 * @param string $ps_table The name or table_num of the edited items table
 * @param int $pn_id Optional row_id for edited item. If omitted a link will be returned to create a new item record. Note that unless the verifyLink option is set, the link will be returned with the specified id whether or not it actually exists.
 * @param array $pa_additional_parameters Optional array of parameters to return on the editor url
 * @param array $pa_attributes Optional array of attributes to set on the link's <a> tag. You can use this to set the id of the link, as well as any other <a> parameter.
 * @param array $pa_options Optional array of options. Supported options are:
 * 		verifyLink - if true and $pn_id is set, then existence of record with specified id is verified before link is returned. If the id does not exist then null is returned. Default is false - no verification performed.
 */
function caEditorLink($po_request, $ps_content, $ps_classname, $ps_table, $pn_id, $pa_additional_parameters = null, $pa_attributes = null, $pa_options = null)
{
    if (!($vs_url = caEditorUrl($po_request, $ps_table, $pn_id, false, $pa_additional_parameters, $pa_options))) {
        return null;
    }
    $vs_tag = "<a href='" . $vs_url . "'";
    if ($ps_classname) {
        $vs_tag .= " class='{$ps_classname}'";
    }
    if (is_array($pa_attributes)) {
        foreach ($pa_attributes as $vs_attribute => $vs_value) {
            $vs_tag .= " {$vs_attribute}='" . htmlspecialchars($vs_value, ENT_QUOTES, 'UTF-8') . "'";
        }
    }
    $vs_tag .= '>' . $ps_content . '</a>';
    return $vs_tag;
}
开发者ID:ffarago,项目名称:pawtucket2,代码行数:31,代码来源:navigationHelpers.php

示例10: caCloseBrowser

BrowserIsClosed') == 1) {
						jQuery("#browseToggle").click();
					}
					oHierBrowser.setUpHierarchy(id);
				}
				function caCloseBrowser() {
					if (!stateCookieJar.get('<?php 
        print $vs_table;
        ?>
BrowserIsClosed')) {
						jQuery("#browseToggle").click();
					}
				}
				function _navigateToNewForm(type_id) {
					document.location = '<?php 
        print caEditorUrl($this->request, $vs_table, 0);
        ?>
/type_id/' + type_id + '/parent_id/' + oHierBrowser.getSelectedItemID();
				}
			</script>
				<!--- END HIERARCHY BROWSER --->
			<br />
	<?php 
    }
}
?>

<script type="text/javascript">
	function caSaveSearch(form_id, label, field_names) {
		var vals = {};
		jQuery(field_names).each(function(i, field_name) { 	// process all fields in form
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:search_controls_html.php

示例11: while

     $vn_c = 1;
     while ($o_children->nextHit()) {
         if (!($vn_representation_id = (int) $o_children->get('ca_object_representations.representation_id'))) {
             continue;
         }
         $vs_preview_url = $o_children->getMediaUrl('ca_object_representations.media', 'preview');
         $vs_preview_path = $o_children->getMediaPath('ca_object_representations.media', 'preview');
         $va_preview_info = $o_children->getMediaInfo('ca_object_representations.media', 'preview');
         $vs_large_url = $o_children->getMediaUrl('ca_object_representations.media', 'large');
         $vs_large_path = $o_children->getMediaPath('ca_object_representations.media', 'large');
         $va_large_info = $o_children->getMediaInfo('ca_object_representations.media', 'large');
         $vs_page_url = $o_children->getMediaUrl('ca_object_representations.media', 'page');
         $vs_page_path = $o_children->getMediaPath('ca_object_representations.media', 'page');
         $va_page_info = $o_children->getMediaInfo('ca_object_representations.media', 'page');
         $va_pages[] = array('title' => $vs_title = $o_children->get('ca_objects.preferred_labels.name'), 'subject_id' => $vn_subject_id, 'representation_id' => $vn_representation_id, 'thumbnail_url' => $vs_preview_url, 'thumbnail_path' => $vs_preview_path, 'thumbnail_width' => $va_preview_info['WIDTH'], 'thumbnail_height' => $va_preview_info['HEIGHT'], 'thumbnail_mimetype' => $va_preview_info['MIMETYPE'], 'normal_url' => $vs_large_url, 'normal_path' => $vs_large_path, 'normal_width' => $va_large_info['WIDTH'], 'normal_height' => $va_large_info['HEIGHT'], 'normal_mimetype' => $va_large_info['MIMETYPE'], 'large_url' => $vs_page_url, 'large_path' => $vs_page_path, 'large_width' => $va_page_info['WIDTH'], 'large_height' => $va_page_info['HEIGHT'], 'large_mimetype' => $va_page_info['MIMETYPE']);
         $va_sections[] = array('title' => $vs_title, 'page' => $vn_c, 'subject_id' => $vn_subject_id, 'representation_id' => $vn_representation_id, 'isSelected' => 0, 'editUrl' => caEditorUrl($this->request, $t_subject->tableName(), $vn_subject_id), 'downloadUrl' => caNavUrl($this->request, $va_url['module'], $va_url['controller'], 'DownloadMedia', array($t_subject->primaryKey() => $t_subject->getPrimaryKey(), 'representation_id' => $vn_representation_id, 'value_id' => $vn_value_id, 'version' => 'original')));
         $vn_c++;
     }
     $vs_book_viewer_content_mode = 'hierarchy_of_representations';
     $vb_use_book_reader = true;
 } else {
     if ($vb_should_use_book_viewer && $this->getVar('num_multifiles') > 0) {
         // Create book viewer from single representation with multifiles
         $vb_use_book_reader = true;
         $vn_subject_id = $t_subject->getPrimaryKey();
         foreach ($t_rep->getFileList(null, 0, null, array('preview', 'large_preview', 'page_preview')) as $vn_id => $va_file) {
             $va_pages[] = array('subject_id' => $vn_subject_id, 'representation_id' => $vn_representation_id, 'thumbnail_url' => $va_file['preview_url'], 'thumbnail_path' => $va_file['preview_path'], 'thumbnail_width' => $va_file['preview_width'], 'thumbnail_height' => $va_file['preview_height'], 'thumbnail_mimetype' => $va_file['preview_mimetype'], 'normal_url' => $va_file['large_preview_url'], 'normal_path' => $va_file['large_preview_path'], 'normal_width' => $va_file['large_preview_width'], 'normal_height' => $va_file['large_preview_height'], 'normal_mimetype' => $va_file['large_preview_mimetype'], 'large_url' => $va_file['page_preview_url'], 'large_path' => $va_file['page_preview_path'], 'large_width' => $va_file['page_preview_width'], 'large_height' => $va_file['page_preview_height'], 'large_mimetype' => $va_file['page_preview_mimetype']);
         }
         $vs_book_viewer_content_mode = 'multifiles';
     }
 }
开发者ID:samrahman,项目名称:providence,代码行数:31,代码来源:representation_viewer_html.php

示例12: render

 /**
  * Generate SIMILE timeline output in specified format
  *
  * @param array $pa_viz_settings Array of visualization settings taken from visualization.conf
  * @param string $ps_format Specifies format to generate output in. Currently only 'HTML' is supported.
  * @param array $pa_options Array of options to use when rendering output. Supported options are:
  *		width =
  *		height =
  *		request = current request; required for generation of editor links
  */
 public function render($pa_viz_settings, $ps_format = 'HTML', $pa_options = null)
 {
     if (!($vo_data = $this->getData())) {
         return null;
     }
     $this->opn_num_items_rendered = 0;
     $po_request = isset($pa_options['request']) && $pa_options['request'] ? $pa_options['request'] : null;
     list($vs_width, $vs_height) = $this->_parseDimensions(caGetOption('width', $pa_options, 500), caGetOption('height', $pa_options, 500));
     $o_dm = Datamodel::load();
     // generate events
     $va_events = array();
     $va_sources = $pa_viz_settings['sources'];
     $vs_table = $vo_data->tableName();
     $vs_pk = $o_dm->getTablePrimaryKeyName($vs_table);
     $vs_first_date = $vn_first_date = null;
     $vs_last_date = $vn_last_date = null;
     $va_dates = array();
     while ($vo_data->nextHit()) {
         foreach ($va_sources as $vs_source_code => $va_source_info) {
             $vs_start = trim($vo_data->get($va_source_info['data'], array('start_as_iso8601' => true, 'dateFormat' => 'iso8601')));
             $vs_end = trim($vo_data->get($va_source_info['data'], array('end_as_iso8601' => true, 'dateFormat' => 'iso8601')));
             $vn_start = $vo_data->get($va_source_info['data'], array('startHistoricTimestamp' => true));
             $vn_end = $vo_data->get($va_source_info['data'], array('endHistoricTimestamp' => true));
             if ($vn_start < 0 || $vn_end < 0) {
                 continue;
             }
             // TODO: negative numbers mean "BC" which apparently cannot be plotted
             if ($vn_end >= 2000000) {
                 $va_iso = caGetISODates(_t("today"));
                 $vs_end = $va_iso['end'];
                 $va_historic = caDateToHistoricTimestamps(_t("today"));
                 $vn_end = $va_historic['end'];
             }
             if (!$vs_start || !$vs_end) {
                 continue;
             }
             if ($vs_start == _t('undated') || $vs_end == _t('undated')) {
                 continue;
             }
             if (is_null($vn_first_date) || $vn_first_date > $vn_start) {
                 $vn_first_date = $vn_start;
                 $vs_first_date = $vs_start;
             }
             if (is_null($vn_last_date) || $vn_last_date < $vn_end) {
                 $vn_last_date = $vn_end;
                 $vs_last_date = $vs_end;
             }
             $va_dates[] = $vs_start;
             $va_events[] = array('id' => $vs_table . '_' . ($vn_id = $vo_data->get("{$vs_table}.{$vs_pk}")), 'start' => $vs_start, 'end' => $vs_end, 'isDuration' => (int) $vn_start != (int) $vn_end ? true : false, 'title' => caProcessTemplateForIDs(strip_tags($va_source_info['display']['title_template']), $vs_table, array($vn_id)), 'description' => caProcessTemplateForIDs($va_source_info['display']['description_template'], $vs_table, array($vn_id)), 'link' => $po_request ? caEditorUrl($po_request, $vo_data->tableName(), $vn_id) : null, 'image' => $va_source_info['display']['image'] ? $vo_data->getWithTemplate($va_source_info['display']['image'], array('returnURL' => true)) : null, 'icon' => $va_source_info['display']['icon'] ? $vo_data->getWithTemplate($va_source_info['display']['icon'], array('returnURL' => true)) : null);
         }
     }
     $this->opn_num_items_rendered = sizeof($va_events);
     // Find median date - timeline will open there (as good a place as any, no?)
     $vs_default_date = $va_dates[floor((sizeof($va_dates) - 1) / 2)];
     // Derive scale for timeline bands
     $vn_span = $vn_last_date - $vn_first_date;
     if ($vn_span > 1000) {
         // millennia
         $vs_detail_band_scale = " Timeline.DateTime.CENTURY";
         $vs_overview_band_scale = " Timeline.DateTime.MILLENNIUM";
     } elseif ($vn_span > 100) {
         // centuries
         $vs_detail_band_scale = " Timeline.DateTime.DECADE";
         $vs_overview_band_scale = " Timeline.DateTime.CENTURY";
     } elseif ($vn_span > 10) {
         // decades
         $vs_detail_band_scale = " Timeline.DateTime.YEAR";
         $vs_overview_band_scale = " Timeline.DateTime.DECADE";
     } elseif ($vn_span > 1) {
         // years
         $vs_detail_band_scale = " Timeline.DateTime.MONTH";
         $vs_overview_band_scale = " Timeline.DateTime.YEAR";
     } elseif ($vn_span > 0.1) {
         // months
         $vs_detail_band_scale = " Timeline.DateTime.DAY";
         $vs_overview_band_scale = " Timeline.DateTime.MONTH";
     } else {
         // days
         $vs_detail_band_scale = " Timeline.DateTime.HOUR";
         $vs_overview_band_scale = " Timeline.DateTime.DAY";
     }
     $va_highlight_spans = array();
     $vs_highlight_span = '';
     if (isset($pa_options['highlightSpans']) && is_array($pa_options['highlightSpans'])) {
         foreach ($pa_options['highlightSpans'] as $vs_span_name => $va_span_info) {
             $va_range = caGetISODates($va_span_info['range']);
             $vs_span_color = isset($va_span_info['color']) && $va_span_info['color'] ? $va_span_info['color'] : '#FFC080';
             $vs_start_label = isset($va_span_info['startLabel']) && $va_span_info['startLabel'] ? $va_span_info['startLabel'] : '';
             $vs_end_label = isset($va_span_info['endLabel']) && $va_span_info['endLabel'] ? $va_span_info['endLabel'] : '';
             $vs_span_css_class = isset($va_span_info['class']) && $va_span_info['class'] ? $va_span_info['class'] : 't-highlight1';
//.........这里部分代码省略.........
开发者ID:guaykuru,项目名称:pawtucket,代码行数:101,代码来源:SimileTimeline.php

示例13: _t

$va_tags = $this->getVar('tags_list');
$vs_widget_id = $this->getVar('widget_id');
$vb_unmoderated = 0;
?>

<div class="dashboardWidgetContentContainer">
<?php 
if (sizeof($va_tags) > 0) {
    print "<div class='dashboardWidgetHeading'>" . _t("Displaying the last %1 %2 tags", $this->getVar("limit"), $this->getVar("tag_type")) . "</div>";
    ?>
		<form id="tagListForm"><input type="hidden" name="mode" value="list">
		<div class="dashboardWidgetScrollMedium" style="padding-left:10px;"><ul>
<?php 
    foreach ($va_tags as $va_tag_info) {
        print "<li>" . (!$va_tag_info["moderated_on"] ? "<input type=\"checkbox\" name=\"tag_relation_id[]\" value=\"" . $va_tag_info['relation_id'] . "\"> " : "");
        print "<span style='font-size:12px; font-weight:bold;'>" . _t("%1 tagged %2 with \"%3\"", $va_tag_info["fname"] . " " . $va_tag_info["lname"], "<a href='" . caEditorUrl($po_request, $va_tag_info['table_num'], $va_tag_info['row_id']) . "'>" . $va_tag_info["item_tagged"] . "</a>", $va_tag_info["tag"]) . "</span><br/>\n";
        print $va_tag_info["created_on"] ? _t("Created on") . ": " . $va_tag_info["created_on"] : "";
        print ($va_tag_info["moderated_on"] ? ",&nbsp;&nbsp;&nbsp;&nbsp;" . _t("Approved on") . ": " . date("n/d/y", $va_tag_info["moderated_on"]) : "") . "<br/>";
        print "</li>";
        if (!$va_tag_info["moderated_on"]) {
            $vb_unmoderated = 1;
        }
    }
    ?>
			</ul></div>
<?php 
    if ($vb_unmoderated) {
        ?>
			<div style="padding-top:10px; text-align:center; padding-right:20px;">
				<a href='#' onclick='jQuery("#tagListForm").attr("action", "<?php 
        print caNavUrl($po_request, 'manage', 'Tags', 'Approve');
开发者ID:idiscussforum,项目名称:providence,代码行数:31,代码来源:main_html.php

示例14: array

$va_object_collection_collection_ancestors = $this->getVar('object_collection_collection_ancestors');
$vb_do_objects_x_collections_hierarchy = false;
if ($vb_objects_x_collections_hierarchy_enabled && is_array($va_object_collection_collection_ancestors)) {
    $pa_ancestors = $va_object_collection_collection_ancestors + $pa_ancestors;
    $vb_do_objects_x_collections_hierarchy = true;
}
if (is_array($pa_ancestors) && sizeof($pa_ancestors) > 0) {
    $va_path = array();
    foreach ($pa_ancestors as $vn_id => $va_item) {
        $vs_item_id = $vb_do_objects_x_collections_hierarchy ? $va_item['table'] . '-' . $va_item['item_id'] : $va_item['item_id'];
        if ($vn_id === '') {
            $va_path[] = "<a href='#'>" . _t('New %1', $t_subject->getTypeName()) . "</a>";
        } else {
            $vs_label = $va_item['label'];
            if ($pn_id && $va_item[$t_subject->primaryKey()] && $vs_item_id != $pn_id) {
                $va_path[] = '<a href="' . caEditorUrl($this->request, $t_subject->tableName(), $vn_id) . '">' . $vs_label . '</a>';
            } else {
                $va_path[] = "<a href='#' onclick='jQuery(\"#{$ps_id_prefix}HierarchyBrowserContainer\").slideDown(250); o{$ps_id_prefix}HierarchyBrowser.setUpHierarchy(\"{$vs_item_id}\"); return false;'>{$vs_label}</a>";
            }
        }
    }
    print join(' ➔ ', $va_path);
}
?>
		</div><!-- end hierNav -->
	</div><!-- end bundleContainer -->
<?php 
if ($pn_id > 0) {
    ?>
	<div id="<?php 
    print $ps_id_prefix;
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:hierarchy_navigation.php

示例15: caNavIcon

						<input type="hidden" name="<?php 
print $vs_id_prefix;
?>
_id{n}" id="<?php 
print $vs_id_prefix;
?>
_id{n}" value="{id}"/>
					</td>
					<td>
						<a href="#" class="caDeleteItemButton"><?php 
print caNavIcon($this->request, __CA_NAV_BUTTON_DEL_BUNDLE__);
?>
</a>
						
						<a href="<?php 
print urldecode(caEditorUrl($this->request, 'ca_collections', '{collection_id}'));
?>
" class="caEditItemButton" id="<?php 
print $vs_id_prefix;
?>
_edit_related_{n}"><?php 
print caNavIcon($this->request, __CA_NAV_BUTTON_GO__);
?>
</a>
					</td>
				</tr>
			</table>
		</div>
	</textarea>
	
	<div class="bundleContainer">
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:ca_collections.php


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