当前位置: 首页>>代码示例>>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;未经允许,请勿转载。