本文整理汇总了PHP中CTable::drawTable方法的典型用法代码示例。如果您正苦于以下问题:PHP CTable::drawTable方法的具体用法?PHP CTable::drawTable怎么用?PHP CTable::drawTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTable
的用法示例。
在下文中一共展示了CTable::drawTable方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CTable
<button id="btn-remove-member" class="btn btn-danger form-control">Delete</button>
</div>
<div class="col-lg-4">
<button class="btn btn-primary form-control" data-toggle="dropdown" data-target=".dropdown-body">Export <span class="caret"></span></button>
<div class="dropdown-toggle dropdown-body">
<ul class="dropdown-menu">
<li><a id="btn-export-word" href="#">Microsoft Word</a></li>
<li><a id="btn-export-excel" href="#">Microsoft Excel</a></li>
</ul>
</div>
</div>
</div>
<div class="row well well-lg">
<?php
$table = new CTable('members', 'table-members');
$html = $table->drawTable(array('#', ' ', 'Office Bearing', 'Name', 'Class', 'Email'), true, "SELECT * FROM members ORDER BY designation");
echo "{$html}";
?>
</div>
</div>
<div class="modal fade" id="modal-insert-member">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Add Member</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" method="post" id="form-add-member">
<div class="form-group">
<label class="control-label col-lg-3">Name</label>
示例2: CTable
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="well well-lg">
<div class="row">
<?php
if (isset($_GET['id'])) {
$eventid = $_GET['id'];
CFeedback::createFeedback($eventid);
$table = new CTable("feedback" . $eventid, 'table-feedback');
$response = $table->drawTable(array('#', '', 'Name', 'Department', 'Section', 'Year', 'Email', 'Date Of Birth', 'GSC Member', 'Feedback'), true);
echo "{$response}";
} else {
echo "<p>Invalid event index</p>";
exit;
}
?>
</div>
</div>
<div class="modal fade" id="modal-reply-suggest">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Reply</h4>
</div>