当前位置: 首页>>代码示例>>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;未经允许,请勿转载。