duanliang9288 2018-05-04 22:12 采纳率: 100%
浏览 41

没有桌子的分页

is it possible to work in pagination if there are no tables or do I have to change my output style entirely.

  <div class="row">


              <?php if ($company != null): ?>

                <?php foreach ($company as $row): ?> 

                  <div class="col-lg-4 col-md-6 col-sm-6 col-xs-12">
                  <div class="job-grid">
                    <div class="job-title-sec">
                      <div class="thumb"><a href="#"><?php echo $row['logo']; ?></a></div>
                      <div class="c-logo"> <img src="http://placehold.it/235x115" alt="" /> </div>
                      <div><h3><strong><?php echo $row['employerName']; ?></strong></h3></div>
                      <div><h3><strong>SECTOR: </strong><?php echo $row['sectorName']; ?></h3></div>  
                      <div class="job-lctn"><i class="fa fa-map-marker"></i><?php echo $row['stateName']; ?></div>
                    </div>
                    <div class=""><a href="<?php echo $row['website']; ?>"><i class="fa fa-external-link"></i>Website</a></div>
                    <div><a href="<?php echo $row['website']; ?>" class="text"><i class="fa fa-external-link"></i>About</a></div>
                  </div><!-- JOB Grid -->
                </div>
              <?php endforeach; ?>

              </ul>
            <?php else: ?>
               <?php if($this->session->flashdata('none') != null) {
                            echo '<div class="alert alert-danger">';
                            echo $this->session->flashdata('none');
                            echo '</div>';
                            } ?>

<?php endif; ?>
            </div>

There are a large number of results for the foreach and I want to split it using pagination. Thanks

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 GDI处理通道视频时总是带有白色锯齿
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)
    • ¥15 自适应 AR 模型 参数估计Matlab程序
    • ¥100 角动量包络面如何用MATLAB绘制
    • ¥15 merge函数占用内存过大
    • ¥15 Revit2020下载问题
    • ¥15 使用EMD去噪处理RML2016数据集时候的原理
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
    • ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数