當前位置: 首頁>>代碼示例>>PHP>>正文


PHP project::display_projects方法代碼示例

本文整理匯總了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>&quot;</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 
開發者ID:sknlim,項目名稱:classified-2,代碼行數:31,代碼來源:subcategory.php

示例2: maincategory

$maincategory = new maincategory();
$maincategory->display_category_usa();
?>
</td>
</tr>
<tr>
	<td>&nbsp;</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";
開發者ID:sknlim,項目名稱:classified-2,代碼行數:31,代碼來源:index.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";
開發者ID:sknlim,項目名稱:classified-2,代碼行數:15,代碼來源:featured_project.php


注:本文中的project::display_projects方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。