本文整理汇总了PHP中Status::convert方法的典型用法代码示例。如果您正苦于以下问题:PHP Status::convert方法的具体用法?PHP Status::convert怎么用?PHP Status::convert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Status
的用法示例。
在下文中一共展示了Status::convert方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: catch
</span></td>
</tr>
<tr>
<td class="caption" width="100">Others</td>
</tr>
<tr>
<td width="100"><b>Information</b></td>
<td><span id="info" class="varInput"><?php
echo $supplier->prepareInfo();
?>
</span></td>
</tr>
<tr>
<td width="100"><b>Status</b></td>
<td><span id="statusVal" class="varInput"><?php
echo Status::convert($supplier->prepareStatus());
?>
</td>
</tr>
<tr>
<td id="iconCell">
<ul id="icons" class="ui-widget ui-helper-clearfix">
<li id="editBTN" title="Edit" class="view-btn ui-state-default ui-corner-all"><span class="ui-icon ui-icon-wrench"></span>Edit</li>
<li id="saveBTN" title="Save" class="view-btn ui-state-default ui-corner-all" style="display:none;"><span class="ui-icon ui-icon-circle-check"></span>Save</li>
</ul>
</td>
</tr>
</table>
<?php
} catch (fExpectedException $e) {
echo $e->printMessage();
示例2: catch
} else {
echo "<span id=\"pagination\"><a href=\"inventory.php?maincc=all\">First </a>";
for ($i = 1; $i < $times; $i++) {
echo "<a href=\"inventory.php?maincc=all&page={$i}\">{$i} </a></span>";
}
echo "<a href=\"inventory.php?maincc=all&page={$times}\">Last</a></span>";
}
}
}
}
} catch (fExpectedException $e) {
echo $e->printMessage();
}
printf("<div class=\"tableContainer\"><table class=\"scrollContent\"><thead><tr><th>Item ID</th><th>Item Description</th><th>UOM</th><th>Dimension</th><th>Weight</th><th>Standard Rate</th><th>Status</th></tr></thead><tbody>");
foreach ($inv_items as $inv_item) {
printf("<tr class=\"linkable\"><td id=\"itemID\"><span>%s</span></td>\r\n\t\t\t\t\t\t\t\t<td><span>%s</span></td>\r\n\t\t\t\t\t\t\t\t<td><span>%s</span></td>\r\n\t\t\t\t\t\t\t\t<td><span>%s</span></td>\r\n\t\t\t\t\t\t\t\t<td><span>%s</span></td>\r\n\t\t\t\t\t\t\t\t<td><span>%s</span></td>\r\n\t\t\t\t\t\t\t\t<td><span>%s</span></td></tr>", $inv_item->prepareId(), $inv_item->prepareDescription(), $inv_item->prepareUnitOfMeasure(), $inv_item->prepareDimension(), $inv_item->prepareWeight(), $inv_item->prepareRate(2), Status::convert($inv_item->prepareStatus()));
}
echo "</tbody></table></div>";
}
?>
<table id="addTable">
<tbody>
<tr id="newItem">
<td id="iconCell" class="addIcon" colspan="7">
<ul id="icons" class="ui-widget ui-helper-clearfix">
<li id="add" title="Add" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-circle-plus"></span></li>
<li>Add New Item</li>
</ul>
</td>
</tr>
<tr id="newItem" class="addItem hideFirst">
示例3: property_exists
<div class='panel panel-info'>
<div class='panel-heading'><strong>Member Information</strong></div>
<ul class='list-group'>
<li class='list-group-item text-right'><span class='pull-left'><strong>Status: </strong></span> <span
class='text-muted'><?php
echo Status::convert($memberInfo->status_id)->desc;
?>
</span></li>
<li class='list-group-item text-right'><span class='pull-left'><strong>Division: </strong></span> <span
class='text-muted'><?php
echo $divisionInfo->full_name;
?>
</span></li>
<li class='list-group-item text-right'><span class='pull-left'><strong>Last promoted: </strong></span>
<span class='text-muted'><?php
echo !is_null($memberInfo->last_promotion) ? date('Y-m-d', strtotime($memberInfo->last_promotion)) : "Not available";
?>
</span>
</li>
<?php
echo property_exists($platoonInfo, 'item') ? $platoonInfo->item : null;
?>
<?php
$position = $memberInfo->position_id ? Position::convert($memberInfo->position_id)->desc : 'Unknown';
?>
<li class='list-group-item text-right'><span class='pull-left'><strong>Position: </strong></span> <span
class='text-muted'><?php
echo Locality::run($position, $memberInfo->game_id);
?>
</span></li>
示例4: printf
<td><span id="pury" class="varInput"><?php
printf("%4d", $inv_item->getPurchaseYear());
?>
</td>
</tr>
<tr>
<td class="caption">Detailed Description</td>
<td><span id="detailed" class="varInput"><?php
echo $inv_item->prepareDetailedDescription();
?>
</td>
</tr>
<tr>
<td class="caption">Status</td>
<td><span id="statusVal" class="varInput"><?php
echo Status::convert($inv_item->prepareStatus());
?>
</td>
</tr>
<?php
if (fAuthorization::checkAuthLevel('admin')) {
// Execute admin specific code
?>
<tr>
<td id="iconCell">
<ul id="icons" class="ui-widget ui-helper-clearfix">
<li id="editBTN" title="Edit" class="view-btn ui-state-default ui-corner-all"><span class="ui-icon ui-icon-wrench"></span>Edit</li>
<li id="saveBTN" title="Save" class="view-btn ui-state-default ui-corner-all" style="display:none;"><span class="ui-icon ui-icon-circle-check"></span>Save</li>
</ul>
</td>
</tr>