本文整理汇总了PHP中Variable::get_orphan_revisions方法的典型用法代码示例。如果您正苦于以下问题:PHP Variable::get_orphan_revisions方法的具体用法?PHP Variable::get_orphan_revisions怎么用?PHP Variable::get_orphan_revisions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Variable
的用法示例。
在下文中一共展示了Variable::get_orphan_revisions方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</div>
</div>
</td>
</tr>
<?php
}
?>
</table>
<br />
Variables:
<table>
<?php
//show orphans
//variables
$orphan_variable_revisions = Variable::get_orphan_revisions();
while ($orphan_variable_revision = mysqli_fetch_assoc($orphan_variable_revisions)) {
?>
<tr>
<td>
<div id="orphan_variable_revision_<?php
echo $orphan_variable_revision['Variable_Revision_ID'];
?>
_entry">
<a href="javascript:;" onclick="$('#orphan_variable_revision_<?php
echo $orphan_variable_revision['Variable_Revision_ID'];
?>
').slideToggle('slow');">
<?php
echo $orphan_variable_revision['Variable_Name'];
?>
示例2: buildWidget
/**
* Builds the widget.
*
* Creates a table of content needing to be approved.
*/
public function buildWidget()
{
?>
<div class="widget">
<div class="widget-header">
<i class="<?php
echo $this->widget_icon_type;
?>
"></i>
<h3><?php
echo $this->widget_item_type;
?>
</h3>
</div>
<div class="widget-content">
<table class="table table-striped table-bordered">
<thead>
<tr>
<td>Name</td>
<td>Content Author</td>
<td>Date Created</td>
<td></td>
</tr>
</thead>
<tbody>
<?php
if ($this->widget_item_type == "database") {
$orphan_revisions = Database::get_orphan_revisions();
while ($orphan_revision = mysqli_fetch_assoc($orphan_revisions)) {
?>
<tr>
<td>
<a href="<?php
echo $orphan_revision['Database_Revision_ID'];
?>
"><?php
echo $orphan_revision['Database_Name'];
?>
</a>
</td>
<td>
<?php
echo $orphan_revision['Creator'];
?>
</td>
<td>
<?php
echo $orphan_revision['Last_Updated'];
?>
</td>
<td class="action-td">
<a href="javascript:;" class="btn btn-small btn-warning">
<i class="icon-ok"></i>
</a>
<a href="javascript:;" class="btn btn-small">
<i class="icon-remove"></i>
</a>
</td>
</tr>
<?php
}
} elseif ($this->widget_item_type == "table") {
$orphan_revisions = Table::get_orphan_revisions();
while ($orphan_revision = mysqli_fetch_assoc($orphan_revisions)) {
?>
<tr>
<td>
<a href="<?php
echo $orphan_revision['Table_Revision_ID'];
?>
"><?php
echo $orphan_revision['Table_Name'];
?>
</a>
</td>
<td>
<?php
echo $orphan_revision['Creator'];
?>
</td>
<td>
<?php
echo $orphan_revision['Date_Created'];
?>
</td>
<td class="action-td">
<a href="javascript:;" class="btn btn-small btn-warning">
<i class="icon-ok"></i>
</a>
<a href="javascript:;" class="btn btn-small">
<i class="icon-remove"></i>
</a>
//.........这里部分代码省略.........