本文整理汇总了PHP中project::getstatus方法的典型用法代码示例。如果您正苦于以下问题:PHP project::getstatus方法的具体用法?PHP project::getstatus怎么用?PHP project::getstatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类project
的用法示例。
在下文中一共展示了project::getstatus方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<table border="0" cellpadding="2" cellspacing="1" width="100%">
<tr>
<td class="dt">Rating</td>
<td class="dt" width="150">Programmer</td>
<td class="dt">Project Name</td>
<td class="dt">Review Date</td>
<td class="dt">Project Status</td>
</tr>
<?php
if (is_array($reviews)) {
foreach ($reviews as $review) {
$objproject = new project();
$pdetails = $objproject->getdetails($review['projectid']);
$pstatus = $objproject->getstatus($review['projectid']);
if ($pstatus == "open") {
$pstatus = '<font style="color:green;">Open</font>';
}
if ($pstatus == "frozen") {
$pstatus = '<font style="color:blue;">Frozen</font>';
}
if ($pstatus == "cancelled") {
$pstatus = '<font style="color:red;">Cancelled</font>';
}
if ($pstatus == "closed") {
$pstatus = '<font style="color:red;">Closed</font>';
}
?>
<tr>
<td class="dt1"><?php
示例2:
</script>
<h3 class="heading"> <?php
echo $projects['project_title'];
?>
</h3>
<div><strong>Project ID: </strong><?php
echo $_GET['id'];
?>
</div>
<br />
<table border="0" cellpadding="2" cellspacing="0" width="100%" class="tableDetails">
<tbody>
<tr class="fir">
<td class="dt1" valign="top" width="20%"><b>Status:</b></td>
<td class="dt1" valign="top" width="80%"><?php
$pstatus = $objproject->getstatus($_GET['id']);
if ($pstatus == "open") {
echo '<font style="color:green;">Open</font>';
}
if ($pstatus == "frozen") {
echo '<font style="color:blue;">Frozen</font>';
}
if ($pstatus == "cancelled") {
echo '<font style="color:red;">Cancelled</font>';
}
if ($pstatus == "closed") {
echo '<font style="color:red;">Closed</font>';
}
?>
</td>
</tr>