本文整理汇总了PHP中util_get_image_theme函数的典型用法代码示例。如果您正苦于以下问题:PHP util_get_image_theme函数的具体用法?PHP util_get_image_theme怎么用?PHP util_get_image_theme使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了util_get_image_theme函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getTitle
function getTitle($view, $viewParams)
{
$sort = $this->getSort();
if ($sort == 1) {
$toggleValue = '0';
$toogleIcon = '<img src="' . util_get_image_theme("up_arrow.png") . '" border="0" >';
} else {
$toggleValue = '1';
$toogleIcon = '<img src="' . util_get_image_theme("dn_arrow.png") . '" border="0" >';
}
//
// URL
//
$toggleParam = array();
$sortParam = $this->getSortParameter();
if ($sortParam !== null) {
$toggleParam[$sortParam] = $toggleValue;
}
$url = $view->_buildSearchUrl($viewParams, array($sortParam => $toggleValue));
$title = $GLOBALS['Language']->getText('plugin_docman', 'view_documenttable_toggletitle');
$purifier = Codendi_HTMLPurifier::instance();
$link = $purifier->purify($this->md->getName());
if ($sort !== null) {
$link .= ' ' . $toogleIcon;
}
$href = '<a href="' . $url . '" title="' . $title . '">' . $link . '</a>';
return $href;
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:28,代码来源:Docman_ReportColumn.class.php
示例2: hide_url
/**
* Generate url to Expend/Collapse a part of a page
* @see my_hide_url
*/
function hide_url($svc, $db_item_id, $defaultHide = false, $hide = null)
{
$pref_name = 'hide_' . $svc . $db_item_id;
if (empty($hide)) {
$hide = $_REQUEST['hide_' . $svc];
}
$noPref = false;
$old_hide = user_get_preference($pref_name);
// Make sure they are both 0 if never set before
if ($old_hide == false) {
$noPref = true;
$old_hide = 0;
}
// If no given value for hide, keep the old one
if (!isset($hide)) {
$hide = $old_hide;
}
// Update pref value if needed
if ($old_hide != $hide) {
user_set_preference($pref_name, $hide);
}
if ($hide == 2 || $noPref && $defaultHide) {
$hide_url = 'hide_' . $svc . '=1&hide_item_id=' . $db_item_id;
$hide_img = '<img src="' . util_get_image_theme("pointer_right.png") . '" align="middle" border="0" alt="Expand">';
$hide_now = true;
} else {
$hide_url = 'hide_' . $svc . '=2&hide_item_id=' . $db_item_id;
$hide_img = '<img src="' . util_get_image_theme("pointer_down.png") . '" align="middle" border="0" alt="Collapse">';
$hide_now = false;
}
return array($hide_now, $hide_url, $hide_img);
}
开发者ID:sunmoonone,项目名称:tuleap,代码行数:36,代码来源:PHPWikiViews.class.php
示例3: getContent
function getContent()
{
$html_my_bookmarks = '';
$result = db_query("SELECT bookmark_url, bookmark_title, bookmark_id from user_bookmarks where " . "user_id='" . user_getid() . "' ORDER BY bookmark_title");
$rows = db_numrows($result);
if (!$result || $rows < 1) {
$html_my_bookmarks .= $GLOBALS['Language']->getText('my_index', 'no_bookmark');
$html_my_bookmarks .= db_error();
} else {
$purifier = Codendi_HTMLPurifier::instance();
$html_my_bookmarks .= '<table style="width:100%">';
for ($i = 0; $i < $rows; $i++) {
$bookmark_url = $purifier->purify(db_result($result, $i, 'bookmark_url'), CODENDI_PURIFIER_CONVERT_HTML);
if (my_has_URL_invalid_content($bookmark_url)) {
$bookmark_url = '';
}
$bookmark_title = $purifier->purify(db_result($result, $i, 'bookmark_title'), CODENDI_PURIFIER_CONVERT_HTML);
$html_my_bookmarks .= '<TR class="' . util_get_alt_row_color($i) . '"><TD>';
$html_my_bookmarks .= '<A HREF="' . $bookmark_url . '">' . $bookmark_title . '</A> ';
$html_my_bookmarks .= '<small><A HREF="/my/bookmark_edit.php?bookmark_id=' . db_result($result, $i, 'bookmark_id') . '">[' . $GLOBALS['Language']->getText('my_index', 'edit_link') . ']</A></SMALL></TD>';
$html_my_bookmarks .= '<td style="text-align:right"><A HREF="/my/bookmark_delete.php?bookmark_id=' . db_result($result, $i, 'bookmark_id') . '">';
$html_my_bookmarks .= '<IMG SRC="' . util_get_image_theme("ic/trash.png") . '" HEIGHT="16" WIDTH="16" BORDER="0" ALT="DELETE"></A></td></tr>';
}
$html_my_bookmarks .= '</table>';
}
$html_my_bookmarks .= '<div style="text-align:center; font-size:0.8em;"><a href="/my/bookmark_add.php">[' . $GLOBALS['Language']->getText('my_index', 'add_bookmark') . ']</a></div>';
return $html_my_bookmarks;
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:28,代码来源:Widget_MyBookmarks.class.php
示例4: getContent
function getContent()
{
$frsrf = new FRSReleaseFactory();
$html_my_monitored_fp = '';
$sql = "SELECT groups.group_name,groups.group_id " . "FROM groups,filemodule_monitor,frs_package " . "WHERE groups.group_id=frs_package.group_id " . "AND frs_package.status_id !=" . $frsrf->STATUS_DELETED . " " . "AND frs_package.package_id=filemodule_monitor.filemodule_id " . "AND filemodule_monitor.user_id='" . user_getid() . "' ";
$um =& UserManager::instance();
$current_user =& $um->getCurrentUser();
if ($current_user->isRestricted()) {
$projects = $current_user->getProjects();
$sql .= "AND groups.group_id IN (" . implode(',', $projects) . ") ";
}
$sql .= "GROUP BY group_id ORDER BY group_id ASC LIMIT 100";
$result = db_query($sql);
$rows = db_numrows($result);
if (!$result || $rows < 1) {
$html_my_monitored_fp .= $GLOBALS['Language']->getText('my_index', 'my_files_msg');
} else {
$html_my_monitored_fp .= '<table style="width:100%">';
$request =& HTTPRequest::instance();
for ($j = 0; $j < $rows; $j++) {
$group_id = db_result($result, $j, 'group_id');
$sql2 = "SELECT frs_package.name,filemodule_monitor.filemodule_id " . "FROM groups,filemodule_monitor,frs_package " . "WHERE groups.group_id=frs_package.group_id " . "AND groups.group_id={$group_id} " . "AND frs_package.status_id !=" . $frsrf->STATUS_DELETED . " " . "AND frs_package.package_id=filemodule_monitor.filemodule_id " . "AND filemodule_monitor.user_id='" . user_getid() . "' LIMIT 100";
$result2 = db_query($sql2);
$rows2 = db_numrows($result2);
$vItemId = new Valid_UInt('hide_item_id');
$vItemId->required();
if ($request->valid($vItemId)) {
$hide_item_id = $request->get('hide_item_id');
} else {
$hide_item_id = null;
}
$vFrs = new Valid_WhiteList('hide_frs', array(0, 1));
$vFrs->required();
if ($request->valid($vFrs)) {
$hide_frs = $request->get('hide_frs');
} else {
$hide_frs = null;
}
list($hide_now, $count_diff, $hide_url) = my_hide_url('frs', $group_id, $hide_item_id, $rows2, $hide_frs);
$html_hdr = ($j ? '<tr class="boxitem"><td colspan="2">' : '') . $hide_url . '<A HREF="/project/?group_id=' . $group_id . '">' . db_result($result, $j, 'group_name') . '</A> ';
$html = '';
$count_new = max(0, $count_diff);
for ($i = 0; $i < $rows2; $i++) {
if (!$hide_now) {
$html .= '
<TR class="' . util_get_alt_row_color($i) . '">' . '<TD WIDTH="99%"> - <A HREF="/file/showfiles.php?group_id=' . $group_id . '">' . db_result($result2, $i, 'name') . '</A></TD>' . '<TD><A HREF="/file/filemodule_monitor.php?filemodule_id=' . db_result($result2, $i, 'filemodule_id') . '&group_id=' . $group_id . '" onClick="return confirm(\'' . $GLOBALS['Language']->getText('my_index', 'stop_file') . '\')">' . '<IMG SRC="' . util_get_image_theme("ic/trash.png") . '" HEIGHT="16" WIDTH="16" ' . 'BORDER=0" ALT="' . $GLOBALS['Language']->getText('my_index', 'stop_monitor') . '"></A></TD></TR>';
}
}
$html_hdr .= my_item_count($rows2, $count_new) . '</td></tr>';
$html_my_monitored_fp .= $html_hdr . $html;
}
$html_my_monitored_fp .= '</table>';
}
return $html_my_monitored_fp;
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:55,代码来源:Widget_MyMonitoredFp.class.php
示例5: getContent
function getContent()
{
$html_my_monitored_forums = '';
$sql = "SELECT groups.group_id, groups.group_name " . "FROM groups,forum_group_list,forum_monitored_forums " . "WHERE groups.group_id=forum_group_list.group_id " . "AND groups.status = 'A' " . "AND forum_group_list.is_public <> 9 " . "AND forum_group_list.group_forum_id=forum_monitored_forums.forum_id " . "AND forum_monitored_forums.user_id='" . user_getid() . "' ";
$um =& UserManager::instance();
$current_user =& $um->getCurrentUser();
if ($current_user->isRestricted()) {
$projects = $current_user->getProjects();
$sql .= "AND groups.group_id IN (" . implode(',', $projects) . ") ";
}
$sql .= "GROUP BY group_id ORDER BY group_id ASC LIMIT 100";
$result = db_query($sql);
$rows = db_numrows($result);
if (!$result || $rows < 1) {
$html_my_monitored_forums .= $GLOBALS['Language']->getText('my_index', 'my_forums_msg');
} else {
$request =& HTTPRequest::instance();
$html_my_monitored_forums .= '<table style="width:100%">';
for ($j = 0; $j < $rows; $j++) {
$group_id = db_result($result, $j, 'group_id');
$sql2 = "SELECT forum_group_list.group_forum_id,forum_group_list.forum_name " . "FROM groups,forum_group_list,forum_monitored_forums " . "WHERE groups.group_id=forum_group_list.group_id " . "AND groups.group_id={$group_id} " . "AND forum_group_list.is_public <> 9 " . "AND forum_group_list.group_forum_id=forum_monitored_forums.forum_id " . "AND forum_monitored_forums.user_id='" . user_getid() . "' LIMIT 100";
$result2 = db_query($sql2);
$rows2 = db_numrows($result2);
$vItemId = new Valid_UInt('hide_item_id');
$vItemId->required();
if ($request->valid($vItemId)) {
$hide_item_id = $request->get('hide_item_id');
} else {
$hide_item_id = null;
}
$vForum = new Valid_WhiteList('hide_forum', array(0, 1));
$vForum->required();
if ($request->valid($vForum)) {
$hide_forum = $request->get('hide_forum');
} else {
$hide_forum = null;
}
list($hide_now, $count_diff, $hide_url) = my_hide_url('forum', $group_id, $hide_item_id, $rows2, $hide_forum);
$html_hdr = ($j ? '<tr class="boxitem"><td colspan="2">' : '') . $hide_url . '<A HREF="/forum/?group_id=' . $group_id . '">' . db_result($result, $j, 'group_name') . '</A> ';
$html = '';
$count_new = max(0, $count_diff);
for ($i = 0; $i < $rows2; $i++) {
if (!$hide_now) {
$group_forum_id = db_result($result2, $i, 'group_forum_id');
$html .= '
<TR class="' . util_get_alt_row_color($i) . '"><TD WIDTH="99%">' . ' - <A HREF="/forum/forum.php?forum_id=' . $group_forum_id . '">' . stripslashes(db_result($result2, $i, 'forum_name')) . '</A></TD>' . '<TD ALIGN="center"><A HREF="/my/stop_monitor.php?forum_id=' . $group_forum_id . '" onClick="return confirm(\'' . $GLOBALS['Language']->getText('my_index', 'stop_forum') . '\')">' . '<IMG SRC="' . util_get_image_theme("ic/trash.png") . '" HEIGHT="16" WIDTH="16" ' . 'BORDER=0 ALT="' . $GLOBALS['Language']->getText('my_index', 'stop_monitor') . '"></A></TD></TR>';
}
}
$html_hdr .= my_item_count($rows2, $count_new) . '</td></tr>';
$html_my_monitored_forums .= $html_hdr . $html;
}
$html_my_monitored_forums .= '</table>';
}
return $html_my_monitored_forums;
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:55,代码来源:Widget_MyMonitoredForums.class.php
示例6: getContent
function getContent()
{
$content = '';
$uh = UserHelper::instance();
if (is_a($this->item, 'Docman_File')) {
$content .= '<h3>' . $GLOBALS['Language']->getText('plugin_docman', 'details_history_versions') . '</h3>';
$version_factory =& new Docman_VersionFactory();
$approvalFactory =& Docman_ApprovalTableFactory::getFromItem($this->item);
if ($versions = $version_factory->getAllVersionForItem($this->item)) {
if (count($versions)) {
$titles = array();
$titles[] = $GLOBALS['Language']->getText('plugin_docman', 'details_history_versions_version');
$titles[] = $GLOBALS['Language']->getText('plugin_docman', 'details_history_versions_date');
$titles[] = $GLOBALS['Language']->getText('plugin_docman', 'details_history_versions_author');
$titles[] = $GLOBALS['Language']->getText('plugin_docman', 'details_history_versions_label');
$titles[] = $GLOBALS['Language']->getText('plugin_docman', 'details_history_versions_changelog');
$titles[] = $GLOBALS['Language']->getText('plugin_docman', 'details_history_versions_approval');
$titles[] = $GLOBALS['Language']->getText('plugin_docman', 'details_history_versions_delete_version');
$content .= html_build_list_table_top($titles, false, false, false);
$odd_even = array('boxitem', 'boxitemalt');
$i = 0;
foreach ($versions as $key => $nop) {
$download = Docman_View_View::buildUrl($this->url, array('action' => 'show', 'id' => $this->item->getId(), 'version_number' => $versions[$key]->getNumber()));
$delete = Docman_View_View::buildUrl($this->url, array('action' => 'confirmDelete', 'id' => $this->item->getId(), 'version' => $versions[$key]->getNumber()));
$user = $versions[$key]->getAuthorId() ? $uh->getDisplayNameFromUserId($versions[$key]->getAuthorId()) : $GLOBALS['Language']->getText('plugin_docman', 'details_history_anonymous');
$content .= '<tr class="' . $odd_even[$i++ % count($odd_even)] . '">';
$content .= '<td align="center"><a href="' . $download . '">' . $versions[$key]->getNumber() . '</a></td>';
$content .= '<td>' . html_time_ago($versions[$key]->getDate()) . '</td>';
$content .= '<td>' . $this->hp->purify($user) . '</td>';
$content .= '<td>' . $this->hp->purify($versions[$key]->getLabel()) . '</td>';
$content .= '<td>' . $this->hp->purify($versions[$key]->getChangelog(), CODENDI_PURIFIER_LIGHT) . '</td>';
$table = $approvalFactory->getTableFromVersion($versions[$key]);
if ($table != null) {
$appTable = Docman_View_View::buildUrl($this->url, array('action' => 'details', 'section' => 'approval', 'id' => $this->item->getId(), 'version' => $versions[$key]->getNumber()));
$content .= '<td align="center"><a href="' . $appTable . '">' . ($titles[] = $GLOBALS['Language']->getText('plugin_docman', 'details_history_versions_approval_show') . '</a></td>');
} else {
$content .= '<td></td>';
}
$content .= '<td align="center"><a href="' . $delete . '"><img src="' . util_get_image_theme("ic/trash.png") . '" height="16" width="16" border="0"></a></td>';
$content .= '</tr>';
}
$content .= '</table>';
} else {
$content .= '<div>' . $GLOBALS['Language']->getText('plugin_docman', 'details_history_versions_no') . '</div>';
}
} else {
$content .= '<div>' . $GLOBALS['Language']->getText('plugin_docman', 'details_history_versions_error') . '</div>';
}
}
if ($this->logger) {
$content .= $this->logger->fetchLogsForItem($this->item->getId(), $this->display_access_logs);
}
return $content;
}
开发者ID:nterray,项目名称:tuleap,代码行数:54,代码来源:Docman_View_ItemDetailsSectionHistory.class.php
示例7: snippet_show_package_snippets
function snippet_show_package_snippets($version)
{
global $Language;
$version = (int) $version;
//show the latest version
$sql = "SELECT snippet.snippet_id, snippet_package_item.snippet_version_id, snippet_version.version,snippet.name,user.user_name, snippet_version.filesize " . "FROM snippet,snippet_version,snippet_package_item,user " . "WHERE snippet.snippet_id=snippet_version.snippet_id " . "AND user.user_id=snippet_version.submitted_by " . "AND snippet_version.snippet_version_id=snippet_package_item.snippet_version_id " . "AND snippet_package_item.snippet_package_version_id='" . db_ei($version) . "'";
$result = db_query($sql);
$rows = db_numrows($result);
echo '
<P>
<H3>' . $Language->getText('snippet_add_snippet_to_package', 's_in_p') . '</H3>
<P>';
$title_arr = array();
$title_arr[] = $Language->getText('snippet_utils', 'version_id');
$title_arr[] = $Language->getText('snippet_details', 's_version');
$title_arr[] = $Language->getText('snippet_browse', 'title');
$title_arr[] = $Language->getText('snippet_details', 'author');
echo html_build_list_table_top($title_arr, $links_arr);
if (!$result || $rows < 1) {
echo db_error();
echo '
<TR><TD COLSPAN="4"><H3>' . $Language->getText('snippet_add_snippet_to_package', 'no_s_in_p') . '</H3></TD></TR>';
} else {
//get the newest version, so we can display it's code
$newest_version = db_result($result, 0, 'snippet_version_id');
for ($i = 0; $i < $rows; $i++) {
echo '
<TR class="' . util_get_alt_row_color($i) . '">
<TD><A HREF="/snippet/detail.php?type=snippet&id=' . db_result($result, $i, 'snippet_id') . '"><b><center>' . db_result($result, $i, 'snippet_version_id') . '</center></b></A></TD>
<TD>';
echo '<A HREF="/snippet/download.php?type=snippet&id=' . db_result($result, $i, 'snippet_version_id') . '"><b><center>' . db_result($result, $i, 'version') . '</b></A>';
// For uploaded files, the user can choose between view or display the code snippet
if (db_result($result, $i, 'filesize') != 0) {
// View link : the file is forced to be displayed as a text
echo ' <a href="/snippet/download.php?mode=view&type=snippet&id=' . db_result($result, $i, 'snippet_version_id') . '">';
echo '<img src="' . util_get_image_theme("ic/view.png") . '" border="0" alt="' . $Language->getText('snippet_details', 'view') . '" title="' . $Language->getText('snippet_details', 'view') . '"></a>';
// Download link : the file is forced to be downloaded
echo ' <a href="/snippet/download.php?mode=download&type=snippet&id=' . db_result($result, $i, 'snippet_version_id') . '">';
echo '<img src="' . util_get_image_theme("ic/download.png") . '" border="0" alt="' . $Language->getText('snippet_details', 'download') . '" title="' . $Language->getText('snippet_details', 'download') . '"></a>';
}
$user = UserManager::instance()->getUserByUserName(db_result($result, $i, 'user_name'));
echo '</center></TD>
<TD>' . db_result($result, $i, 'name') . '</TD><TD>' . UserHelper::instance()->getLinkOnUser($user) . '</TD></TR>';
}
}
echo '</TABLE>';
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:47,代码来源:snippet_utils.php
示例8: my_hide_url
function my_hide_url($svc, $db_item_id, $item_id, $count, $hide)
{
global $Language;
$pref_name = 'my_hide_' . $svc . $db_item_id;
$old_hide = $old_count = $old_pref_value = user_get_preference($pref_name);
if ($old_pref_value) {
list($old_hide, $old_count) = explode('|', $old_pref_value);
}
// Make sure they are both 0 if never set before
if ($old_count == false) {
$old_count = 0;
}
if ($old_hide == false) {
$old_hide = 0;
}
if ($item_id == $db_item_id) {
if (isset($hide)) {
$pref_value = "{$hide}|{$count}";
} else {
$pref_value = "{$old_hide}|{$count}";
$hide = $old_hide;
}
} else {
if ($old_hide) {
// if items are hidden keep the old count and keep pref as is
$pref_value = $old_pref_value;
} else {
// only update the item count if the items are visible
// if they are hidden keep reporting the old count
$pref_value = "{$old_hide}|{$count}";
}
$hide = $old_hide;
}
// Update pref value if needed
if ($old_pref_value != $pref_value) {
user_set_preference($pref_name, $pref_value);
}
if ($hide) {
$hide_url = '<a href="?hide_' . $svc . '=0&hide_item_id=' . $db_item_id . '"><img src="' . util_get_image_theme("pointer_right.png") . '" align="middle" border="0" title="' . $Language->getText('my_utils', 'expand') . '" alt="' . $Language->getText('my_utils', 'expand') . '"></a> ';
$hide_now = true;
} else {
$hide_url = '<a href="?hide_' . $svc . '=1&hide_item_id=' . $db_item_id . '"><img src="' . util_get_image_theme("pointer_down.png") . '" align="middle" border="0" title="' . $Language->getText('my_utils', 'collapse') . '" alt="' . $Language->getText('my_utils', 'collapse') . '"></a> ';
$hide_now = false;
}
return array($hide_now, $count - $old_count, $hide_url);
}
开发者ID:nterray,项目名称:tuleap,代码行数:46,代码来源:my_utils.php
示例9: forum_show_a_nested_message
function forum_show_a_nested_message($result, $row = 0)
{
/*
accepts a database result handle to display a single message
in the format appropriate for the nested messages
second param is which row in that result set to use
*/
global $Language;
$g_id = db_result($result, $row, 'group_id');
if ($g_id == $GLOBALS['sys_news_group']) {
$f_id = db_result($result, $row, 'group_forum_id');
$gr = db_query("SELECT group_id FROM news_bytes WHERE forum_id=" . db_ei($f_id));
$g_id = db_result($gr, 0, 'group_id');
}
$poster = UserManager::instance()->getUserByUserName(db_result($result, $i, 'user_name'));
$ret_val = '
<TABLE BORDER="0" WIDTH="100%">
<TR>
<TD class="thread" NOWRAP>' . $Language->getText('forum_forum', 'by') . ': ' . UserHelper::instance()->getLinkOnUser($poster) . '<BR><A HREF="/forum/message.php?msg_id=' . db_result($result, $row, 'msg_id') . '">' . '<IMG SRC="' . util_get_image_theme("msg.png") . '" BORDER=0 HEIGHT=12 WIDTH=10> ' . db_result($result, $row, 'subject') . ' [ ' . $Language->getText('forum_forum', 'reply') . ' ]</A> ' . '<BR>' . format_date($GLOBALS['Language']->getText('system', 'datefmt'), db_result($result, $row, 'date')) . '
</TD>
</TR>
<TR>
<TD>
' . util_make_links(nl2br(db_result($result, $row, 'body')), $g_id) . '
</TD>
</TR>';
$crossref_fact = new CrossReferenceFactory(db_result($result, $row, 'msg_id'), ReferenceManager::REFERENCE_NATURE_FORUMMESSAGE, $g_id);
$crossref_fact->fetchDatas();
if ($crossref_fact->getNbReferences() > 0) {
$ret_val .= '<tr>';
$ret_val .= ' <td class="forum_reference_separator">';
$ret_val .= ' <b> ' . $Language->getText('cross_ref_fact_include', 'references') . '</b>';
$ret_val .= $crossref_fact->getHTMLDisplayCrossRefs();
$ret_val .= ' </td>';
$ret_val .= '</tr>';
}
$ret_val .= '
<tr>
<td>
</td>
</tr>
</TABLE>';
return $ret_val;
}
开发者ID:nterray,项目名称:tuleap,代码行数:45,代码来源:forum.php
示例10: display_ml_details
function display_ml_details($group_id, $list_server, $result, $i)
{
echo '<IMG SRC="' . util_get_image_theme("ic/cfolder15.png") . '" HEIGHT="13" WIDTH="15" BORDER="0"> <b>' . db_result($result, $i, 'list_name') . '</b> [';
$list_is_public = db_result($result, $i, 'is_public');
$html_a = '';
$em =& EventManager::instance();
$em->processEvent('browse_archives', array('html' => &$html_a, 'group_list_id' => db_result($result, $i, 'group_list_id')));
if ($html_a) {
echo $html_a;
} else {
if ($list_is_public) {
echo ' <A HREF="?group_id=' . $group_id . '&action=pipermail&id=' . db_result($result, $i, 'group_list_id') . '">' . $GLOBALS['Language']->getText('mail_index', 'archive') . '</A>';
} else {
echo ' ' . $GLOBALS['Language']->getText('mail_index', 'archive') . ': <A HREF="?group_id=' . $group_id . '&action=pipermail&id=' . db_result($result, $i, 'group_list_id') . '">' . $GLOBALS['Language']->getText('mail_index', 'public') . '</A>/<A HREF="?group_id=' . $group_id . '&action=private&id=' . db_result($result, $i, 'group_list_id') . '">' . $GLOBALS['Language']->getText('mail_index', 'private') . '</A>';
}
}
echo ' | <A HREF="?group_id=' . $group_id . '&action=listinfo&id=' . db_result($result, $i, 'group_list_id') . '">' . $GLOBALS['Language']->getText('mail_index', 'unsubscribe') . '</A>)';
echo ' | <A HREF="?group_id=' . $group_id . '&action=admin&id=' . db_result($result, $i, 'group_list_id') . '">' . $GLOBALS['Language']->getText('mail_index', 'ml_admin') . '</A>';
echo ' ]<br> ' . db_result($result, $i, 'description') . '<p>';
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:20,代码来源:index.php
示例11: showAvailableReports
function showAvailableReports()
{
$hp = Codendi_HTMLPurifier::instance();
$g = $GLOBALS['ath']->getGroup();
$group_id = $g->getID();
$atid = $GLOBALS['ath']->getID();
$reports = $this->grf->getReports_ids();
echo '<H2>' . $GLOBALS['Language']->getText('plugin_graphontrackers_include_report', 'tracker') . ' \'<a href="/tracker/admin/?group_id=' . $group_id . '&atid=' . $atid . '">' . $hp->purify($GLOBALS['ath']->getName()) . '</a>\'' . $GLOBALS['Language']->getText('plugin_graphontrackers_include_report', 'report_admin') . '</H2>';
if ($reports) {
// Loop through the list of all graphic reports
$title_arr = array();
$title_arr[] = $GLOBALS['Language']->getText('plugin_graphontrackers_include_report', 'report_name');
$title_arr[] = $GLOBALS['Language']->getText('plugin_graphontrackers_include_report', 'desc');
$title_arr[] = $GLOBALS['Language']->getText('plugin_graphontrackers_include_report', 'scope');
$title_arr[] = $GLOBALS['Language']->getText('plugin_graphontrackers_include_report', 'delete');
echo '<p>' . $GLOBALS['Language']->getText('plugin_graphontrackers_include_report', 'mod');
echo html_build_list_table_top($title_arr);
for ($i = 0; $i < count($reports); $i++) {
$r = new GraphOnTrackers_Report($reports[$i]);
echo '<TR class="' . util_get_alt_row_color($i) . '"><TD>';
if ($r->getScope() == 'S' || !$GLOBALS['ath']->userIsAdmin() && $r->getScope() == 'P') {
echo $hp->purify($r->getName());
} else {
echo '<A HREF="/tracker/admin/?func=reportgraphic&group_id=' . $group_id . '&report_graphic_id=' . $r->getId() . '&atid=' . $GLOBALS['ath']->getID() . '">' . $hp->purify($r->getName()) . '</A>';
}
echo "</td>" . "\n<td>" . $hp->purify($r->getDescription(), CODENDI_PURIFIER_BASIC) . '</td>' . "\n<td align=\"center\">" . $hp->purify($r->getScopeLabel($r->getScope())) . '</td>' . "\n<td align=\"center\">";
if ($r->getScope() == 'S' || !$GLOBALS['ath']->userIsAdmin() && $r->getScope() == 'P') {
echo '-';
} else {
$delete_report_text = $GLOBALS['Language']->getText('plugin_graphontrackers_include_report', 'delete_report', $r->getName());
$delete_report_text_js = $hp->purify($delete_report_text, CODENDI_PURIFIER_JS_QUOTE);
echo '<A HREF="/tracker/admin/?func=reportgraphic' . '&report_graphic_id=' . $r->getId() . '&group_id=' . $group_id . '&atid=' . $atid . '&delete_report_graphic=1"' . '" onClick="return confirm(\'' . $delete_report_text_js . '\')">' . '<img src="' . util_get_image_theme("ic/trash.png") . '" border="0"></A>';
}
echo '</td></tr>';
}
echo '</TABLE>';
} else {
echo '<p><h3>' . $GLOBALS['Language']->getText('plugin_graphontrackers_include_report', 'no_rep_def') . '</h3>';
}
echo '<P> ' . $GLOBALS['Language']->getText('plugin_graphontrackers_include_report', 'create_report', array('/tracker/admin/?func=reportgraphic&group_id=' . $group_id . '&atid=' . $atid . '&new_report_graphic=1'));
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:41,代码来源:GraphicEngineHtml.class.php
示例12: fetchAccessType
/**
* Fetch the html code to display the icon of a repository (depends on type of project)
*
* @param $access
* @param $backend_type
*/
public function fetchAccessType($access, $backendIsGitolite)
{
$accessType = '<span class="plugin_git_repo_privacy" title=';
if ($backendIsGitolite) {
//$accessType .= '"'.$this->getText('view_repo_access_custom').'">';
$accessType .= '"custom">';
$accessType .= '<img src="' . $this->getController()->getPlugin()->getThemePath() . '/images/perms.png" />';
} else {
switch ($access) {
case GitRepository::PRIVATE_ACCESS:
$accessType .= '"' . $this->getText('view_repo_access_private') . '">';
$accessType .= '<img src="' . util_get_image_theme('ic/lock.png') . '" />';
break;
case GitRepository::PUBLIC_ACCESS:
$accessType .= '"' . $this->getText('view_repo_access_public') . '">';
$accessType .= '<img src="' . util_get_image_theme('ic/lock-unlock.png') . '" />';
break;
}
}
$accessType .= '</span>';
return $accessType;
}
开发者ID:nterray,项目名称:tuleap,代码行数:28,代码来源:GitViews.class.php
示例13: getImage
function getImage($url)
{
return util_get_image_theme($url);
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:4,代码来源:plugins_utils.php
示例14: file_utils_show_processors
function file_utils_show_processors($result)
{
global $group_id, $Language;
$hp =& Codendi_HTMLPurifier::instance();
$rows = db_numrows($result);
$title_arr = array();
$title_arr[] = $Language->getText('file_file_utils', 'proc_name');
$title_arr[] = $Language->getText('file_file_utils', 'proc_rank');
$title_arr[] = $Language->getText('file_file_utils', 'del');
echo html_build_list_table_top($title_arr);
for ($j = 0; $j < $rows; $j++) {
$proc_id = db_result($result, $j, 'processor_id');
$proc_name = db_result($result, $j, 'name');
$proc_rank = db_result($result, $j, 'rank');
$gr_id = db_result($result, $j, 'group_id');
echo '<tr class="' . html_get_alt_row_color($j) . '">' . "\n";
if ($gr_id == "100") {
echo '<td>' . $hp->purify($proc_name) . '</td>';
} else {
echo '<td><A HREF="/file/admin/editproc.php?group_id=' . $group_id . '&proc_id=' . $proc_id . '" title="' . $hp->purify($proc_id . ' - ' . $proc_name) . '">' . $hp->purify($proc_name) . '</td>';
}
echo '<td>' . $proc_rank . "</td>\n";
if ($gr_id == "100") {
#pre-defined processors are not manageable
echo '<TD align=center>-</TD>';
} else {
echo '<TD align=center>' . '<a href="/file/admin/manageprocessors.php?mode=delete&group_id=' . $group_id . '&proc_id=' . $proc_id . '" ' . '" onClick="return confirm(\'' . $Language->getText('file_file_utils', 'del_proc') . '\')">' . '<IMG SRC="' . util_get_image_theme("ic/trash.png") . '" HEIGHT="16" WIDTH="16" BORDER="0" ALT="' . $Language->getText('file_file_utils', 'del') . '"></A></TD>';
}
echo "</tr>";
}
echo "</table>";
}
开发者ID:rinodung,项目名称:tuleap,代码行数:32,代码来源:file_utils.php
示例15: displayMenu
/**
* displayMenu - public
*/
function displayMenu()
{
print '
<table class="ServiceMenu">
<tr>
<td>';
switch (DEFAULT_LANGUAGE) {
case 'fr_FR':
$attatch_page = "DéposerUnFichier";
$preferences_page = "PréférencesUtilisateurs";
break;
case 'en_US':
default:
$attatch_page = 'UpLoad';
$preferences_page = 'UserPreferences';
break;
}
$attatch_menu = $GLOBALS['Language']->getText('wiki_views_wikiserviceviews', 'menuattch');
$preferences_menu = $GLOBALS['Language']->getText('wiki_views_wikiserviceviews', 'menuprefs');
$help_menu = $GLOBALS['Language']->getText('global', 'help');
print '
<ul class="ServiceMenu">
<li><a href="' . $this->wikiLink . '&view=browsePages">' . $GLOBALS['Language']->getText('wiki_views_wikiserviceviews', 'menupages') . '</a> | </li>';
if (UserManager::instance()->getCurrentUser()->isLoggedIn()) {
print '<li><a href="javascript:help_window(\'' . $this->wikiLink . '&pagename=' . $attatch_page . '&pv=1\')">' . $attatch_menu . '</a> | </li>';
print '<li><a href="' . $this->wikiLink . '&pagename=' . $preferences_page . '">' . $preferences_menu . '</a> | </li>';
}
if (user_ismember($this->gid, 'W2')) {
print '<li><a href="' . $this->wikiAdminLink . '">' . $GLOBALS['Language']->getText('wiki_views_wikiserviceviews', 'menuadmin') . '</a> | </li>';
}
print '<li>' . help_button('WikiService.html', false, $help_menu) . '</li>
</ul>';
print '
</td>
<td align="right" valign="top">';
if (user_ismember($this->gid, 'W2')) {
$wiki = new Wiki($this->gid);
$permInfo = "";
if ('wiki' == $this->view) {
// User is browsing a wiki page
$wp = new WikiPage($this->gid, $_REQUEST['pagename']);
$permLink = $this->wikiAdminLink . '&view=pagePerms&id=' . $wp->getId();
if ($wp->permissionExist()) {
$permInfo = '<a href="' . $permLink . '"> ' . '<img src="' . util_get_image_theme("ic/lock.png") . '" border="0" alt="' . $GLOBALS['Language']->getText('wiki_views_wikiserviceviews', 'lock_alt') . '" title="' . $GLOBALS['Language']->getText('wiki_views_wikiserviceviews', 'lock_title_spec') . '"/></a>';
}
}
if ($wiki->permissionExist()) {
$permInfo .= '<a href="/wiki/admin/index.php?group_id=' . $this->gid . '&view=wikiPerms"> ' . '<img src="' . util_get_image_theme("ic/lock.png") . '" border="0" alt="' . $GLOBALS['Language']->getText('wiki_views_wikiserviceviews', 'lock_alt') . '" title="' . $GLOBALS['Language']->getText('wiki_views_wikiserviceviews', 'lock_title_set') . '"/>' . '</a>';
}
if ($permInfo) {
print $permInfo;
}
}
//Display printer_version link only in wiki pages
if (isset($_REQUEST['pagename'])) {
print '
(<a href="' . $_SERVER['REQUEST_URI'] . '&pv=1" title="' . $GLOBALS['Language']->getText('wiki_views_wikiserviceviews', 'lighter_display') . '">
<img src="' . util_get_image_theme("msg.png") . '" border="0"> ' . $GLOBALS['Language']->getText('global', 'printer_version') . '</A> )
</li>';
}
print '
</td>
</tr>
</table>';
}
开发者ID:nterray,项目名称:tuleap,代码行数:68,代码来源:WikiServiceViews.class.php
示例16: displayDateReminders
/**
* Display date reminders
*
* @param HTTPRequest $request HTTP request
*
* @return Void
*/
public function displayDateReminders(HTTPRequest $request)
{
$output = '<h2>' . $GLOBALS['Language']->getText('project_admin_utils', 'tracker_date_reminder_title') . '</h2>';
$output .= '<fieldset>';
if ($request->get('action') == 'delete_reminder') {
$output .= $this->displayConfirmDelete($request->get('reminder_id'));
}
$output .= $this->displayAllReminders();
$output .= '<div id="tracker_reminder" style="display:none;"><p><label for="New Reminder">' . $GLOBALS['Language']->getText('plugin_tracker_date_reminder', 'tracker_date_reminder_add_title') . '<input type="image" src="' . util_get_image_theme('ic/add.png') . '" id="add_reminder" value="' . (int) $this->tracker->id . '"></label></div>';
$output .= '<noscript>
<p><a href="?func=admin-notifications&tracker=' . (int) $this->tracker->id . '&action=add_reminder" id="add_reminder">' . $GLOBALS['Language']->getText('plugin_tracker_date_reminder', 'tracker_date_reminder_add_title') . '</a>
</noscript>';
if ($request->get('action') == 'add_reminder') {
$output .= $this->getNewDateReminderForm();
} elseif ($request->get('action') == 'update_reminder') {
$output .= '<div id="update_reminder"></div>';
$output .= $this->editDateReminder($request->get('reminder_id'));
}
$output .= '</fieldset>';
echo $output;
}
开发者ID:nterray,项目名称:tuleap,代码行数:28,代码来源:Tracker_DateReminderRenderer.class.php
示例17: showArchivedRepositories
-
一.微信小程序简介小程序是一种不需要下载安装即可使用的应用,它实现了应用“触手可
阅读:522|2022-07-18
-
krishnaik06/Machine-Learning-in-90-days
阅读:1058|2022-08-18
-
OTFCC v0.10.4 was discovered to contain a heap buffer overflow after free via ot
阅读:514|2022-07-08
-
在美元的英文“dollar”里面明明没有字母“s”,为什么美元的符号($)是一条竖线穿过字
阅读:1060|2022-11-06
-
strawberry-magic-pocket/Genetic-Algorithm: 基本遗传算法MATLAB程序
阅读:414|2022-08-17
-
rwebapps/markdownapp: OpenCPU Markdown App
阅读:310|2022-08-18
-
弹出fixed弹窗后,在弹窗上滑动会导致下层的页面一起跟着滚动。解决方法:在弹出层加
阅读:621|2022-07-22
-
Tangshitao/Dense-Scene-Matching: Learning Camera Localization via Dense Scene Ma
阅读:759|2022-08-16
-
年的笔顺是什么?年的笔顺笔画顺序怎么写?还有年的拼音及意思是什么,好多初学练字者
阅读:664|2022-07-30
-
长沙城南,有一所以“环保”为名的学校,从1979年创立以来,四易归属、五更其名。 这
阅读:755|2022-11-06
|
请发表评论