コード例 #1
0
ファイル: dashboard.php プロジェクト: junilm/MyMap_AdminPanel
            <!-- /.box-header -->
            <div class="box-body">
              <div class="table-responsive">
                <table class="table table-hover no-margin css-serial">
                  <thead>
                  <tr>
                    <th>S. No.</th>
                    <th>Date</th>
                    <th>Feedbacks</th>
                    <th>Email</th>
                    <th>Action</th>
                  </tr>
                  </thead>
                  <tbody>
                    <?php 
$feedbackList = $feedbackController->getAll(0, 10);
if ($feedbackList) {
    foreach ($feedbackList as $feedback) {
        ?>
                            <tr>
                                <td>.</td>
                                <td><?php 
        echo $feedback->getDate();
        ?>
</td>
                                <td><span><?php 
        echo $feedback->getSubject();
        ?>
</span></td>
                                <td><span><?php 
        echo $feedback->getEmail();
コード例 #2
0
ファイル: index.php プロジェクト: junilm/MyMap_AdminPanel
    $searchKey = decodeInput($_REQUEST['search']);
}
?>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Feedbacks
      </h1>
    </section>
      <?php 
if ($searchKey != "") {
    $dataList = $feedbackController->search($searchKey, $offset, $rowsPerPage);
} else {
    $dataList = $feedbackController->getAll($offset, $rowsPerPage);
}
if ($dataList) {
    ?>
      <!-- Main content -->
      <section class="content">
          <div class="row">
              <div class="col-xs-12">
                  <div class="box">
                      <div class="box-header">
                          <h3 class="box-title">All</h3><i> (<?php 
    if ($dataList) {
        echo count($dataList);
    } else {
        echo "0";
    }