當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CTable::drawTable方法代碼示例

本文整理匯總了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">&times;</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>                            
開發者ID:ameerthehacker,項目名稱:GSCWebsite,代碼行數:31,代碼來源:members.php

示例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">&times;</button>
                        <h4 class="modal-title">Reply</h4>
                    </div>
開發者ID:ameerthehacker,項目名稱:GSCWebsite,代碼行數:31,代碼來源:feedback.php


注:本文中的CTable::drawTable方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。