本文整理匯總了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>
//.........這裏部分代碼省略.........