• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP util_make_link函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getRows

    /**
     * getRows - get the html output for result rows
     *
     * @return string html output
     */
    function getRows()
    {
        $rowsCount = $this->searchQuery->getRowsCount();
        $result =& $this->searchQuery->getResult();
        $dateFormat = _('Y-m-d H:i');
        $group = group_get_object($this->groupId);
        $group_name = $group->getUnixName();
        $data = unserialize(db_result($result, 0, 'versiondata'));
        $return = '';
        for ($i = 0; $i < $rowsCount; $i++) {
            $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '>' . '<td>';
            $return .= util_make_link('/wiki/g/' . $group_name . '/' . db_result($result, $i, 'pagename'), html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'pagename'));
            $return .= '</td>
				<td width="15%">' . $data['author'] . '</td>
				<td width="15%">' . date($dateFormat, db_result($result, $i, 'mtime')) . '</td></tr>';
        }
        return $return;
    }
开发者ID:neymanna,项目名称:fusionforge,代码行数:23,代码来源:WikiHtmlSearchRenderer.class.php


示例2: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     $rowColor = 0;
     $lastPackage = null;
     for ($i = 0; $i < $rowsCount; $i++) {
         //section changed
         $currentPackage = db_result($result, $i, 'package_name');
         if ($lastPackage != $currentPackage) {
             $return .= '<tr><td colspan="4">' . $currentPackage . '</td></tr>';
             $lastPackage = $currentPackage;
             $rowColor = 0;
         }
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) . '>' . '<td width="5%">&nbsp;</td>' . '<td>' . util_make_link('/frs/shownotes.php?release_id=' . db_result($result, $i, 'release_id'), db_result($result, $i, 'release_name')) . '</td>' . '<td width="15%">' . db_result($result, $i, 'realname') . '</td>' . '<td width="15%">' . date($dateFormat, db_result($result, $i, 'release_date')) . '</td></tr>';
         $rowColor++;
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:26,代码来源:FrsHtmlSearchRenderer.class.php


示例3: snippet_mainpage

/**
 * snippet_mainpage() - Show the main page for the snippet library.
 */
function snippet_mainpage()
{
    global $SCRIPT_LANGUAGE, $SCRIPT_CATEGORY;
    $return = _('<p>The purpose of this archive is to let you share your code snippets, scripts,	and functions with the Open Source Software Community.</p><p>You can create a "new snippet", then post additional versions of that snippet quickly and easily.</p><p>Once you have snippets posted, you can then create a "Package" of snippets. That package can contain multiple, specific versions of other snippets.</p><p>&nbsp;</p><h3>Browse Snippets</h3>	<p>You can browse the snippet library quickly:</p>') . '
	<br />
	<p/>
	<table width="100%" border="0">
	<tr><td>
	</td></tr>
	<tr><td>
	<strong>' . _('Browse by Language') . ':</strong>
	<ul>';
    $existing_snippets = create_snippet_hash("SELECT language, count(*) as count from snippet group by language", "language");
    for ($i = 1; $i < count($SCRIPT_LANGUAGE); $i++) {
        $return .= '<li>' . util_make_link('/snippet/browse.php?by=lang&amp;lang=' . $i, $SCRIPT_LANGUAGE[$i]) . ' (';
        // Remove warning
        if (@$existing_snippets[$i]) {
            $return .= $existing_snippets[$i] . ')</li>';
        } else {
            $return .= '0)</li>';
        }
    }
    $return .= '</ul></td><td>
	<strong>' . _('Browse by Category') . ':</strong>
	<ul>';
    $existing_categories = create_snippet_hash("SELECT category, count(*) as count from snippet group by category", "category");
    for ($i = 1; $i < count($SCRIPT_CATEGORY); $i++) {
        // Remove warning
        @($return .= '<li>' . util_make_link('/snippet/browse.php?by=cat&amp;cat=' . $i, $SCRIPT_CATEGORY[$i]) . ' (');
        // Remove warning
        if (@$existing_categories[$i]) {
            $return .= $existing_categories[$i] . ')</li>';
        } else {
            $return .= '0)</li>';
        }
    }
    $return .= '</ul></td> </tr> </table>';
    return $return;
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:42,代码来源:index.php


示例4: bbcodeStyleInitialize

    /**
     * bbcodeStyleInitialize() - 
     *
     * Initialize all the bbcode tags and how they should be displayed
     * @param	
     *
     */
    function bbcodeStyleInitialize()
    {
        $this->bbcode_tpl = array('b_open' => '<span style="font-weight:bold">', 'b_close' => '</span>', 'i_open' => '<span style="font-style:italic">', 'i_close' => '</span>', 'u_open' => '<span style="text-decoration:underline">', 'u_close' => '</span>', 'color_open' => '<span style="color: \\1">', 'color_close' => '</span>', 'size_open' => '<span style="font-size: \\1px; line-height: normal">', 'size_close' => '</span>', 'img' => '<img src="\\1" border="0" />', 'ulist_open' => '<ul>', 'ulist_close' => '</ul>', 'olist_open' => '<ol type="\\1">', 'olist_close' => '</ol>', 'listitem' => '<li>', 'code_open' => '<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
													<tr> 
												 		<td><span style="font-weight:bold"><b>{L_CODE}:</b></span></td>
													</tr>
													<tr>
	 													<td>', 'code_close' => '		</td>
													</tr>
												</table>', 'quote_open' => '<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
													<tr> 
														  <td><span style="font-weight:bold">{L_QUOTE}:</span></td>
														</tr>
														<tr>
														  <td>', 'quote_close' => '		</td>
													</tr>
												</table>', 'quote_username_open' => '<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
															<tr> 
	  															<td><b>\\1 {L_WROTE}:</b></td>
															</tr>
															<tr>
																  <td>', 'email' => '<a href="mailto:\\1">\\1</a>', 'url1' => '<a href="\\1\\2" target="_blank">\\1\\2</a>', 'url2' => '<a href="http://\\1" target="_blank">\\1</a>', 'url3' => '<a href="\\1\\2" target="_blank">\\3</a>', 'url4' => '<a href="http://\\1" target="_blank">\\2</a>', 'urltask' => util_make_link('/pm/task.php?func=detailtask&project_task_id=\\3&group_id=\\1&group_project_id=\\2', '\\4'), 'urlartifact' => util_make_link('/tracker/index.php?func=detail&aid=\\1', 'Artifact\\1'));
    }
开发者ID:neymanna,项目名称:fusionforge,代码行数:30,代码来源:BBCodeSupport.class.php


示例5: header


//.........这里部分代码省略.........
	OL,UL,P,BODY,TD,TR,TH,FORM { font-family: <?php 
        echo $site_fonts;
        ?>
; font-size:<?php 
        echo $this->FONTSIZE;
        ?>
; color: <?php 
        echo $this->FONTCOLOR_CONTENT;
        ?>
; }

	H1 { font-size: x-large; font-family: <?php 
        echo $site_fonts;
        ?>
; }
	H2 { font-size: large; font-family: <?php 
        echo $site_fonts;
        ?>
; }
	H3 { font-size: medium; font-family: <?php 
        echo $site_fonts;
        ?>
; }
	H4 { font-size: small; font-family: <?php 
        echo $site_fonts;
        ?>
; }
	H5 { font-size: x-small; font-family: <?php 
        echo $site_fonts;
        ?>
; }
	H6 { font-size: xx-small; font-family: <?php 
        echo $site_fonts;
        ?>
; }

	PRE,TT { font-family: courier,sans-serif }
	-->
</style>

</head>

<body>
<div class="header">
<table border="0px" width="100%" cellspacing="0px" cellpadding="0px" class="content">

	<tr>
		<td><a href="<?php 
        echo util_make_url('/');
        ?>
"><img src="/themes/lite/images/gforge_logo.png" border="0" alt="Gforge Logo" width="200px" /></a></td>
		<td align="right"><?php 
        echo $this->searchBox();
        ?>
</td>
		<td align="right"><?php 
        if (session_loggedin()) {
            echo util_make_link('/account/logout.php', _('Logout'));
            ?>
<br /><?php 
            echo util_make_link('/account/', _('My Account'));
            ?>
<br /><?php 
        } else {
            echo util_make_link('/account/login.php', _('Login'));
            ?>
<br /><?php 
            echo util_make_link('/account/register.php', _('New Account'));
            ?>
<br /><?php 
        }
        ?>
</td>
		<td>&nbsp;&nbsp;</td>
	</tr>

</table>
</div>
<div class="menu">

<?php 
        echo $this->mainMenu($params);
        ?>

		<!-- Inner Tabs / Shell -->
<?php 
        if (isset($params['group']) && $params['group']) {
            ?>
				<div class="union_menu" >
				</div>	
				<?php 
            echo $this->projectTabs($params['toptab'], $params['group']);
            ?>
			<?php 
        }
        ?>
</div>
<div class="content">
	<?php 
    }
开发者ID:neymanna,项目名称:fusionforge,代码行数:101,代码来源:Theme.class.php


示例6: news_foundry_latest

function news_foundry_latest($group_id = 0, $limit = 5, $show_summaries = true)
{
    /*
    	Show a the latest news for a portal
    */
    $sql = "SELECT groups.group_name,groups.unix_group_name,groups.group_id,\n\t\tusers.user_name,users.realname,news_bytes.forum_id,\n\t\tnews_bytes.summary,news_bytes.post_date,news_bytes.details \n\t\tFROM users,news_bytes,groups,foundry_news \n\t\tWHERE foundry_news.foundry_id='{$group_id}' \n\t\tAND users.user_id=news_bytes.submitted_by \n\t\tAND foundry_news.news_id=news_bytes.id \n\t\tAND news_bytes.group_id=groups.group_id \n\t\tAND foundry_news.is_approved=1 \n\t\tORDER BY news_bytes.post_date DESC";
    $result = db_query($sql, $limit);
    $rows = db_numrows($result);
    if (!$result || $rows < 1) {
        $return .= '<h3>' . _('No News Items Found') . '</h3>';
        $return .= db_error();
    } else {
        for ($i = 0; $i < $rows; $i++) {
            if ($show_summaries) {
                //get the first paragraph of the story
                $arr = explode("\n", db_result($result, $i, 'details'));
                if (isset($arr[1]) && isset($arr[2]) && strlen($arr[0]) < 200 && strlen($arr[1] . $arr[2]) < 300 && strlen($arr[2]) > 5) {
                    $summ_txt = util_make_links($arr[0] . '<br />' . $arr[1] . '<br />' . $arr[2]);
                } else {
                    $summ_txt = util_make_links($arr[0]);
                }
                //show the project name
                $proj_name = ' &nbsp; - &nbsp; ' . util_make_link_g(strtolower(db_result($result, $i, 'unix_group_name')), db_result($result, $i, 'group_id'), db_result($result, $i, 'group_name'));
            } else {
                $proj_name = '';
                $summ_txt = '';
            }
            $return .= util_make_link('/forum/forum.php?forum_id=' . db_result($result, $i, 'forum_id'), '<strong>' . db_result($result, $i, 'summary') . '</strong>') . '<br /><em>' . db_result($result, $i, 'realname') . ' - ' . date(_('Y-m-d H:i'), db_result($result, $i, 'post_date')) . $proj_name . '</em>
				' . $summ_txt . '<hr width="100%" size="1" />';
        }
    }
    return $return;
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:33,代码来源:news_utils.php


示例7: GetTime

                echo '
			<td>' . GetTime(time() - db_result($messages, 0, 'adddate')) . '</td>';
            } else {
                echo '
			<td>' . GetTime(time() - db_result($artifacts, $m, 'open_date')) . '</td>';
            }
            echo '
		</tr>';
        }
    }
    $task_group = db_query("SELECT ptv.*,g.group_name,pgl.project_name\n                        FROM project_task_vw ptv,\n                                project_assigned_to pat,\n                                groups g,\n                                project_group_list pgl\n                        WHERE ptv.project_task_id=pat.project_task_id\n                                AND pgl.group_id=" . $group_id . "\n\t\t\t\tAND g.group_id=" . $group_id . "\n                                AND pgl.group_project_id=ptv.group_project_id\n                                AND ptv.status_id=1\n                                AND pat.assigned_to_id='" . $row_memb['user_id'] . "'\n                        ORDER BY group_name,project_name");
    while ($task_type = db_fetch_array($task_group)) {
        if ($task_type['percent_complete'] != 100) {
            echo '
		<tr class="priority' . $task_type['priority'] . '">
			<td>' . util_make_link('/pm/task.php?func=detailtask&amp;project_task_id=' . $task_type['project_task_id'] . '&amp;group_id=' . $group_id . '&amp;group_project_id=' . $task_type['group_project_id'], _('Task') . ' ' . $task_type['project_task_id']) . '
			</td>
			<td>' . $task_type['summary'] . '
			</td>
			<td>' . GetTime(time() - $task_type['start_date']) . '
			</td>
			<td>' . $task_type['percent_complete'] . '% done' . '
			</td>
		</tr>';
        }
    }
    echo '
		<tr>
			<td><br /></td>
		</tr>';
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:index.php


示例8: handle_add_exit

                handle_add_exit();
            }
            /*
            	create the snippet version
            */
            $sql = "INSERT INTO snippet_package_item (snippet_package_version_id,snippet_version_id) " . "VALUES ('{$snippet_package_version_id}','{$snippet_version_id}')";
            $result = db_query($sql);
            if (!$result) {
                $feedback .= _('ERROR DOING SNIPPET VERSION INSERT!');
                echo db_error();
            } else {
                $feedback .= _('Snippet Version Added Successfully.');
            }
        } else {
            echo '<h1>' . _('Error - Go back and fill in all the information') . '</h1>';
            echo util_make_link('/snippet/add_snippet_to_package.php?snippet_package_version_id=' . $snippet_package_version_id, _('Back To Add Page'));
            handle_add_exit();
        }
    }
    $result = db_query("SELECT snippet_package.name,snippet_package_version.version " . "FROM snippet_package,snippet_package_version " . "WHERE snippet_package.snippet_package_id=snippet_package_version.snippet_package_id " . "AND snippet_package_version.snippet_package_version_id='{$snippet_package_version_id}'");
    ?>
	<p>
	<strong><?php 
    echo _('Package:');
    ?>
</strong><br />
	<?php 
    echo db_result($result, 0, 'name') . ' -  ' . db_result($result, 0, 'version');
    ?>
</p>
	<p><?php 
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:add_snippet_to_package.php


示例9: CallHook

    function CallHook($hookname, $params)
    {
        global $use_quota_managementplugin, $G_SESSION, $HTML;
        if ($hookname == "usermenu") {
            $text = $this->text;
            // this is what shows in the tab
            if ($G_SESSION->usesPlugin("quota_management")) {
                $param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name;
                // we indicate the part we´re calling is the user one
                echo ' | ' . $HTML->PrintSubMenu(array($text), array('/plugins/quota_management/index.php' . $param));
            }
        } elseif ($hookname == "groupmenu") {
            $group_id = $params['group'];
            $project =& group_get_object($group_id);
            if (!$project || !is_object($project)) {
                return;
            }
            if ($project->isError()) {
                return;
            }
            if (!$project->isProject()) {
                return;
            }
            if ($project->usesPlugin($this->name)) {
                $params['TITLES'][] = $this->text;
                $params['DIRS'][] = '/plugins/quota_management/index.php?type=group&id=' . $group_id . "&pluginname=" . $this->name;
                // we indicate the part we´re calling is the project one
            } else {
                //	$params['TITLES'][]=$this->text." is [Off]";
            }
            $params['toptab'] == $this->name ? $params['selected'] = count($params['TITLES']) - 1 : '';
        } elseif ($hookname == "groupisactivecheckbox") {
            //Check if the group is active
        } elseif ($hookname == "groupisactivecheckboxpost") {
            // this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
            $group_id = $params['group'];
            $group =& group_get_object($group_id);
            $use_quota_managementplugin = getStringFromRequest('use_quota_managementplugin');
            if ($use_quota_managementplugin == 1) {
                $group->setPluginUse($this->name);
            } else {
                $group->setPluginUse($this->name, false);
            }
        } elseif ($hookname == "userisactivecheckbox") {
            //check if user is active
            // this code creates the checkbox in the user account manteinance page to activate/deactivate the plugin
            $user = $params['user'];
            echo "<tr>";
            echo "<td>";
            echo ' <input type="CHECKBOX" name="use_quota_managementplugin" value="1" ';
            // CHECKED OR UNCHECKED?
            if ($user->usesPlugin($this->name)) {
                echo "CHECKED";
            }
            echo ">    Use " . $this->text . " Plugin";
            echo "</td>";
            echo "</tr>";
        } elseif ($hookname == "userisactivecheckboxpost") {
            // this code actually activates/deactivates the plugin after the form was submitted in the user account manteinance page
            $user = $params['user'];
            $use_quota_managementplugin = getStringFromRequest('use_quota_managementplugin');
            if ($use_quota_managementplugin == 1) {
                $user->setPluginUse($this->name);
            } else {
                $user->setPluginUse($this->name, false);
            }
            echo "<tr>";
            echo "<td>";
            echo ' <input type="CHECKBOX" name="use_quota_managementplugin" value="1" ';
            // CHECKED OR UNCHECKED?
            if ($user->usesPlugin($this->name)) {
                echo "CHECKED";
            }
            echo ">    Use " . $this->text . " Plugin";
            echo "</td>";
            echo "</tr>";
        } elseif ($hookname == "user_personal_links") {
            // this displays the link in the user´s profile page to it´s personal quota_management (if you want other sto access it, youll have to change the permissions in the index.php
            $userid = $params['user_id'];
            $user = user_get_object($userid);
            $text = $params['text'];
            //check if the user has the plugin activated
            if ($user->usesPlugin($this->name)) {
                echo '	<p>';
                echo util_make_link("/plugins/quota_management/index.php?id={$userid}&type=user&pluginname=" . $this->name, _('View Personal quota_management'));
                echo '</p>';
            }
        } elseif ($hookname == "project_admin_plugins") {
            // this displays the link in the project admin options page to it´s  quota_management administration
            $group_id = $params['group_id'];
            $group =& group_get_object($group_id);
            if ($group->usesPlugin($this->name)) {
                echo util_make_link('/plugins/quota_management/index.php?id=' . $group->getID() . '&type=admin&pluginname=' . $this->name, _('View the quota_management Administration'));
                echo '<br />';
            }
        } elseif ($hookname == "blahblahblah") {
            // ...
        } elseif ($hookname == "site_admin_option_hook") {
            // www/admin/index.php line 167
            // ...
//.........这里部分代码省略.........
开发者ID:neymanna,项目名称:fusionforge,代码行数:101,代码来源:quota_managementPlugin.class.php


示例10: _

<input type="hidden" name="add_artifact_id[]" value="<?php 
echo $related_artifact_id;
?>
" />

<table border="0" width="100%">

	<tr>
		<td>
		<strong><?php 
echo _('Category');
?>
</strong><br />
		<?php 
echo $pg->categoryBox('category_id');
echo util_make_link('/pm/admin/?group_id=' . $group_id . '&amp;add_cat=1&amp;group_project_id=' . $group_project_id, '(' . _('admin') . ')');
?>
		</td>

		
		<input type="submit" value="<?php 
echo _('Submit');
?>
" name="submit" />
		</td>
	</tr>

	<tr>
		<td>
			<strong><?php 
echo _('Percent Complete');
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:add_task.php


示例11: _

    $title[] = _('Count');
    echo $GLOBALS['HTML']->listTableTop($title);
    while ($row_db = db_fetch_array($res_db)) {
        print '<tr><td style="text-align:center"><a href="' . getStringFromServer('PHP_SELF') . '?displaydb=1&dbstate=' . $row_db['stateid'] . '">' . $row_db['statename'] . '</a></td><td style="text-align:center">' . $row_db['count'] . '</td></tr>';
    }
    echo $GLOBALS['HTML']->listTableBottom();
} else {
    echo '<p>' . _('No databases defined') . '</p>';
}
if ($displaydb) {
    $res_db = db_query("\n\t\tSELECT statename\n\t\tFROM prdb_states\n\t\tWHERE stateid=" . $dbstate . "\n\t");
    $row_db = db_fetch_array($res_db);
    print '<hr /><h3>' . _('Displaying Databases of Type:') . $row_db['statename'] . ' </h3><ul>';
    $res_db = db_query("\n\t\tSELECT *\n\t\tFROM prdb_dbs\n\t\tWHERE state=" . $dbstate . "\n\t\tORDER BY dbname\n\t");
    while ($row_db = db_fetch_array($res_db)) {
        print '<li>' . util_make_link('/project/admin/database.php?group_id=' . $row_db['group_id'], $row_db['dbname']) . '</li>';
    }
    print "</ul>";
}
?>
<hr />

<h3><?php 
echo _('Add an already active database');
?>
</h3>

<form name="madd" method="post" action="<?php 
echo getStringFromServer('PHP_SELF');
?>
">
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:database.php


示例12: util_make_link

    ?>
</a><br />
<?php 
}
if ($sys_use_frs) {
    ?>
	<?php 
    echo util_make_link('/frs/admin/?group_id=' . $group->getID(), _('FRS admin'));
    ?>
</a><br />
<?php 
}
if ($sys_use_scm) {
    ?>
	<?php 
    echo util_make_link('/scm/admin/?group_id=' . $group->getID(), _('SCM admin'));
    ?>
</a><br />
<?php 
}
$hook_params = array();
$hook_params['group_id'] = $group_id;
plugin_hook("project_admin_plugins", $hook_params);
echo $HTML->boxBottom();
?>
		</td>
		<td>&nbsp;</td>
		<td width="50%">

<?php 
echo $HTML->boxTop(_('Group Members'));
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:index.php


示例13: aff_tree

    function aff_tree($tree, $lvl)
    {
        global $project_name;
        echo "<br/>";
        $arbre = "";
        $cpt_pere = 0;
        while (list($key, $sons) = each($tree)) {
            //echo $key . "<br/>";
            //we build a array with id of father and son.
            //If no father --> 0
            // Really don't know why there is a warning there, and added @
            if (@(!$arbre[$key]) != 0) {
                $arbre[$key] = 0;
            }
            $cpt_pere = $key;
            foreach ($sons as $son) {
                //echo "&nbsp;" . $son . "<br/>";
                $arbre[$son] = $cpt_pere;
            }
        }
        echo '<table ><tr><td>';
        ?>
			<script type="text/javascript">
				<!--
			//add files dtress.css, dtree.js et du dossier img
				d = new dTree('d');	
				d.add(0,-1,'<?php 
        echo _('Project Tree');
        ?>
');
				<?php 
        reset($arbre);
        //construction automatique de l'arbre format : (num_fils, num_pere,nom,nom_unix)
        while (list($key2, $sons2) = each($arbre)) {
            print "d.add(" . $key2 . "," . $sons2 . ",'" . $project_name[$key2][0] . "','" . util_make_link("/projects/" . $project_name[$key2][1] . "/") . "');\n";
        }
        ?>
		
				document.write(d);
		
				
			</script>
			<?php 
        echo '</td></tr></table>';
    }
开发者ID:neymanna,项目名称:fusionforge,代码行数:45,代码来源:softwaremap.php


示例14: _

 -->
	</td>

	<td><strong><?php 
    echo _('Category');
    ?>
</strong><?php 
    echo utils_requiredField();
    ?>
<br />
		<?php 
    echo html_build_select_box_from_array($SCRIPT_CATEGORY, 'category');
    ?>
                <br />
                <!-- FIXME: Where should this link go to? <?php 
    echo util_make_link('/support/?func=addsupport&amp;group_id=1', _('Suggest a Category'));
    ?>
 -->
	</td>
	</tr>

	<tr><td colspan="2"><strong><?php 
    echo _('Version');
    ?>
:</strong><?php 
    echo utils_requiredField();
    ?>
<br />
		<input type="text" name="version" size="10" maxlength="15" />
	</td></tr>
开发者ID:neymanna,项目名称:fusionforge,代码行数:30,代码来源:submit.php


示例15: sprintf

        $title = sprintf(_('Top Weekly Project Pageviews at *.%1$s (from impressions of %2$s logo)'), $GLOBALS['sys_default_domain'], $GLOBALS['sys_name']);
        $column1 = _('Pageviews');
    } else {
        if ($type == 'forumposts_week') {
            $res_top = $stats->getTopMessagesPosted();
            $title = _('Top Forum Post Counts');
            $column1 = _('Posts');
        } else {
            $res_top = $stats->getTopDownloads();
            $title = _('Top Downloads');
            $column1 = _('Downloads');
        }
    }
}
$HTML->header(array('title' => $title));
print '<p>' . util_make_link('/top/', '[' . _('View Other Top Categories') . ']');
$arr = array(_('Rank'), _('Project name'), "{$column1}");
echo $HTML->listTableTop($arr);
echo db_error();
$display_rank = 0;
$i = 0;
while ($row_top = db_fetch_array($res_top)) {
    $i++;
    if ($row_top["items"] == 0) {
        continue;
    }
    $display_rank++;
    print '<tr ' . $HTML->boxGetAltRowStyle($i) . '><td>&nbsp;&nbsp;' . $display_rank . '</td><td>' . util_make_link_g(strtolower($row_top['unix_group_name']), @$row_top['group_id'], stripslashes($row_top['group_name'])) . '</td><td align="right">' . $row_top['items'] . '&nbsp;&nbsp;&nbsp;</td>' . '<td align="right">';
    print '&nbsp;&nbsp;&nbsp;</td></tr>
';
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:toplist.php


示例16: db_query

?>
</h3>

<?php 
/*
	Iterate and show groups this user is in
*/
$res_cat = db_query("\n\tSELECT groups.unix_group_name, groups.group_name AS group_name, \n\t\tgroups.group_id AS group_id, \n\t\tuser_group.admin_flags AS admin_flags\n\tFROM groups,user_group\n\tWHERE user_group.user_id={$user_id}\n\tAND groups.group_id=user_group.group_id\n");
$title = array();
$title[] = _('Name');
$title[] = _('Unix name');
$title[] = _('Operations');
echo $GLOBALS['HTML']->listTableTop($title);
$i = 0;
while ($row_cat = db_fetch_array($res_cat)) {
    $row_cat['group_name'] = htmlspecialchars($row_cat['group_name']);
    print '
		<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i++) . '>
		<td>' . $row_cat['group_name'] . '</td>
		<td>' . $row_cat['unix_group_name'] . '</td>
		<td width="40%">' . util_make_link('/project/admin/?group_id=' . $row_cat['group_id'], _('[Project Admin]')) . '</td>
		</tr>
	';
}
echo $GLOBALS['HTML']->listTableBottom();
echo '<br />';
site_admin_footer(array());
// Local Variables:
// mode: php
// c-file-style: "bsd"
// End:
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:useredit.php


示例17: util_make_link_g

    $i++;
    print '
	<tr ' . $HTML->boxGetAltRowStyle($i) . '>
		<td>&nbsp;&nbsp;' . $i . '
		</td>
		<td>' . util_make_link_g(strtolower($row_top['unix_group_name']), $row_top['group_id'], $row_top['group_name']) . '
		</td>
		<td align="right">' . substr($row_top['percentile'], 0, 5) . '%</td>
	</tr>';
}
if ($i < $rows) {
    if ($offset > 0) {
        print '
	<tr class="tablegetmore">
		<td>' . util_make_link('/top/mostactive.php?type=' . $type . '&offset=' . ($offset - $LIMIT), '<strong><-- ' . _('More') . '</strong>');
    } else {
        print '&nbsp;';
    }
    print '
		</td>
		<td>&nbsp;</td>
		<td align="RIGHT">' . util_make_link('/top/mostactive.php?type=' . $type . '&offset=' . ($offset + $LIMIT), '<strong>' . _('More') . ' --></strong>') . '
		</td>
	</tr>';
}
echo $HTML->listTableBottom();
$HTML->footer(array());
// Local Variables:
// mode: php
// c-file-style: "bsd"
// End:
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:mostactive.php


示例18: CallHook

 function CallHook($hookname, $params)
 {
     global $use_projects_hierarchyplugin, $G_SESSION, $HTML;
     if ($hookname == "usermenu") {
         $text = $this->text;
         // this is what shows in the tab
         if ($G_SESSION->usesPlugin("projects_hierarchy")) {
             $param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name;
             // we indicate the part we're calling is the user one
             echo ' | ' . $HTML->PrintSubMenu(array($text), array('/plugins/projects_hierarchy/index.php' . $param));
         }
     } elseif ($hookname == "groupmenu") {
         $group_id = $params['group'];
         $project =& group_get_object($group_id);
         if (!$project || !is_object($project)) {
             return;
         }
         if ($project->isError()) {
             return;
         }
         if (!$project->isProject()) {
             return;
         }
         if ($project->usesPlugin($this->name)) {
             $params['TITLES'][] = $this->text;
             $params['DIRS'][] = '/plugins/projects_hierarchy/index.php?type=group&id=' . $group_id . "&pluginname=" . $this->name;
             // we indicate the part we're calling is the project one
         } else {
             //$params['TITLES'][]=$this->text." is [Off]";
         }
         $params['toptab'] == $this->name ? $params['selected'] = count($params['TITLES']) - 1 : '';
     } elseif ($hookname == "groupisactivecheckbox") {
         //Check if the group is active
     } elseif ($hookname == "groupisactivecheckboxpost") {
         // this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
         $group_id = $params['group'];
         $group =& group_get_object($group_id);
         $use_projects_hierarchyplugin = getStringFromRequest('use_projects_hierarchyplugin');
         if ($use_projects_hierarchyplugin == 1) {
             $group->setPluginUse($this->name);
         } else {
             $group->setPluginUse($this->name, false);
         }
     } elseif ($hookname == "userisactivecheckbox") {
         //check if user is active
         // this code creates the checkbox in the user account manteinance page to activate/deactivate the plugin
     } elseif ($hookname == "userisactivecheckboxpost") {
         // this code actually activates/deactivates the plugin after the form was submitted in the user account manteinance page
         $user = $params['user'];
         $use_projects_hierarchyplugin = getStringFromRequest('use_projects_hierarchyplugin');
         if ($use_projects_hierarchyplugin == 1) {
             $user->setPluginUse($this->name);
         } else {
             $user->setPluginUse($this->name, false);
         }
         echo "<tr>";
         echo "<td>";
         echo ' <input type="CHECKBOX" name="use_projects_hierarchyplugin" value="1" ';
         // CHECKED OR UNCHECKED?
         if ($user->usesPlugin($this->name)) {
             echo "CHECKED";
         }
         echo ">    Use " . $this->text . " Plugin";
         echo "</td>";
         echo "</tr>";
     } elseif ($hookname == "user_personal_links") {
         // this displays the link in the user's profile page to it's personal projects_hierarchy (if you want other sto access it, youll have to change the permissions in the index.php
         $userid = $params['user_id'];
         $user = user_get_object($userid);
         $text = $params['text'];
         //check if the user has the plugin activated
         if ($user->usesPlugin($this->name)) {
             echo '	<p>';
             echo util_make_link("/plugins/projects_hierarchy/index.php?id={$userid}&type=user&pluginname=" . $this->name, _('View Personal projects_hierarchy'));
             echo '</p>';
         }
     } elseif ($hookname == "project_admin_plugins") {
         // this displays the link in the project admin options page to it's  projects_hierarchy administration
         $group_id = $params['group_id'];
         $group =& group_get_object($group_id);
         if ($group->usesPlugin($this->name)) {
             echo util_make_link("/plugins/projects_hierarchy/index.php?id=" . $group->getID() . '&type=admin&pluginname=' . $this->name, _('View the projects_hierarchy Administration'));
             echo '<br />';
         }
     } elseif ($hookname == "tree") {
         header('Location: ../plugins/projects_hierarchy/softwaremap.php');
     } elseif ($hookname == "project_home_link") {
         // ############################## Display link
         $group_id = $params;
         echo $HTML->boxTop(_('Linked projects'));
         $cpt_project = 0;
         // father request
         $query = "SELECT DISTINCT group_id,unix_group_name,group_name FROM groups,plugin_projects_hierarchy WHERE plugin_projects_hierarchy.link_type ='shar' AND plugin_projects_hierarchy.activated='t' AND groups.group_id=plugin_projects_hierarchy.project_id AND plugin_projects_hierarchy.sub_project_id=" . $group_id;
         $res = db_query($query);
         echo db_error();
         while ($row = db_fetch_array($res)) {
             echo html_image('ic/forum20g.png', '20', '20', array('alt' => _('Link'))) . '&nbsp;' . _('Parent project') . ': <a href="' . $GLOBALS['sys_urlprefix'] . '/projects/' . $row['unix_group_name'] . '/">' . $row['group_name'] . '</a><br/>';
             $cpt_project++;
         }
         if ($cpt_project != 0) {
//.........这里部分代码省略.........
开发者ID:neymanna,项目名称:fusionforge,代码行数:101,代码来源:projects_hierarchyPlugin.class.php


示例19: printSubMenu

 /**
  * printSubMenu() - Takes two array of titles and links and builds the contents of a menu.
  *
  * @param	   array   The array of titles.
  * @param	   array   The array of title links.
  * @return	string	Html to build a submenu.
  */
 function printSubMenu($title_arr, $links_arr)
 {
     $count = count($title_arr);
     $count--;
     $return = '';
     for ($i = 0; $i < $count; $i++) {
         $return .= util_make_link($links_arr[$i], $title_arr[$i]) . ' | ';
     }
     $return .= util_make_link($links_arr[$i], $title_arr[$i]);
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:18,代码来源:Layout.class.php


示例20: getStringFromServer


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP util_make_url函数代码示例发布时间:2022-05-23
下一篇:
PHP util_lang函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap