本文整理汇总了PHP中project::getPriorityName方法的典型用法代码示例。如果您正苦于以下问题:PHP project::getPriorityName方法的具体用法?PHP project::getPriorityName怎么用?PHP project::getPriorityName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类project
的用法示例。
在下文中一共展示了project::getPriorityName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
</select></td>
</tr>
<tr>
<td><?php
echo $lang['common_priority'];
?>
: </td>
<td><select name="priorityid">
<?php
$list = $projectInst->getPriorityList();
while ($element = current($list)) {
$selected = "";
if ($element == $projectInst->priorityId) {
$selected = "selected";
}
echo "<option " . $selected . " value=\"" . $element . "\">" . $projectInst->getPriorityName($element) . "\n";
next($list);
}
?>
</select></td>
</tr>
<tr>
<td><?php
echo $lang['project_paid'];
?>
: </td>
<td><input type="checkbox" name="paid" value="1"<?php
if ($projectInst->paid == 1) {
echo " CHECKED";
}
?>
示例2:
} else {
?>
<th>no</th>
<?php
}
?>
</tr><tr>
<td class="list"><?php
echo $lang['common_priority'];
?>
</td>
<td class="list"><span class="<?php
echo $projectInst->getPriorityStyle();
?>
"><?php
echo $projectInst->getPriorityName();
?>
</span></td>
</tr><tr>
<td class="list"><?php
echo $lang['common_status'];
?>
</td>
<td class="list"><?php
echo $projectInst->getStatusName();
?>
</td>
</tr>
</table>
<?php