本文整理汇总了PHP中project::display_projects方法的典型用法代码示例。如果您正苦于以下问题:PHP project::display_projects方法的具体用法?PHP project::display_projects怎么用?PHP project::display_projects使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类project
的用法示例。
在下文中一共展示了project::display_projects方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: service
</strong>"</font>
</p>
<div class="lineBreak"></div>
<h3 class="heading">Services</h3>
<?php
$service = new service();
$service->display_category();
?>
<br />
<h3 class="heading"> Featured Projects </h3>
<?php
$projects = new project();
$projects_status = $projects->display_projects("featured", 1, $cat['id'], 0, 10, "order by rand()");
?>
<p align="right">
<?php
if ($user_check->checklogin() && strtoupper($_SESSION['foongigs_usertype']) == "SEEKER") {
echo '<a href="post_project.php">Post Project</a>';
} else {
if ($user_check->checklogin() && strtoupper($_SESSION['foongigs_usertype']) == "PROVIDER") {
echo '<a href="post_project.php" onclick="javascript:messageBox(\'Only Seeker can post projects\'); return false;">Post Project</a>';
} else {
echo '<a href="post_project.php" onclick="javascript: messageBox(\'Please Login \'); return false;">Post Project</a>';
}
}
if ($projects_status) {
?>
| <a href="view_projects.php?category=<?php
示例2: maincategory
$maincategory = new maincategory();
$maincategory->display_category_usa();
?>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td class="heading">OutSource</td>
</tr>
<tr>
<td>
<?php
$projects = new project();
$projects_status = $projects->display_projects("", 2, 0, 0, 10, "order by rand()");
?>
</td>
</tr>
<tr>
<td align="right">
<?php
if ($projects_status) {
?>
<a href="view_projects.php">View More</a> <?php
}
?>
</td></tr>
</table>
<?php
include $_SERVER['DOCUMENT_ROOT'] . "/footer.php";
示例3: project
<?php
include $_SERVER['DOCUMENT_ROOT'] . "/header.php";
include $_SERVER['DOCUMENT_ROOT'] . "/subheader.php";
?>
<center><h2 >Outsource</h2></center><br />
<h3 class="heading">All Featured Project</h3>
<?php
$projects = new project();
$projects->display_projects("featured_private", 2, 0, 0, 10, "order by rand()");
?>
<br />
<?php
include $_SERVER['DOCUMENT_ROOT'] . "/footer.php";
include $_SERVER['DOCUMENT_ROOT'] . "/subfooter.php";