当前位置: 首页>>代码示例>>PHP>>正文


PHP pagination::showPagination方法代码示例

本文整理汇总了PHP中pagination::showPagination方法的典型用法代码示例。如果您正苦于以下问题:PHP pagination::showPagination方法的具体用法?PHP pagination::showPagination怎么用?PHP pagination::showPagination使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pagination的用法示例。


在下文中一共展示了pagination::showPagination方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: substr

        if (strlen($games['description']) > 180) {
            $games['description'] = substr($games['description'], 0, 180) . '...';
        }
        $games['description'] = stripslashes($games['description']);
        $description = str_replace(array("\r\n", "\r", "\n", "'", '"'), ' ', $games['description']);
        $pic_settings = array('w' => 130, 'h' => 100);
        echo '<div class="download">
		<ul>
		<li class="title"><div class="downloadheader">' . $games['title'] . '</div></li>
		<li class="even"><div class="container_box7"><div class="gameholderimg"><img align="absmiddle" src="' . resize($thumbpath, $pic_settings, "download") . '" alt="' . $thumbpath . '" width="130" height="100" /></div><div class="desc">' . $games['description'] . '</div>';
        if ($games['mochi'] != '') {
            echo '<div class="clear"></div><div class="downloadgame"><center><a href="' . $setting['siteurl'] . $filepath . '" onclick="return download_link(' . $games['id'] . ')"><img align="absmiddle" src="' . $setting['siteurl'] . 'templates/' . $setting['theme'] . '/skins/' . $setting['skin'] . '/images/buttons/download.png" width="100" height="30" /></a></center></div>';
            echo '<div class="downloadmochi"><center><a href="' . $games['mochi'] . '" rel="nofollow" onclick="return download_link_mochi(' . $games['id'] . ')"><img align="absmiddle" src="' . $setting['siteurl'] . 'templates/' . $setting['theme'] . '/skins/' . $setting['skin'] . '/images/buttons/downloadmochi.png" width="100" height="30" /></a></center></div>';
            echo '</div><div class="clear"></div></li></ul></div>';
        } else {
            echo '<div class="clear"></div><div class="downloadgame"><center><a href="' . $setting['siteurl'] . $filepath . '" onclick="return download_link(' . $games['id'] . ')"><img align="absmiddle" src="' . $setting['siteurl'] . 'templates/' . $setting['theme'] . '/skins/' . $setting['skin'] . '/images/buttons/download.png" width="100" height="30" /></a></center></div>';
            echo '</div><div class="clear"></div></li></ul></div>';
        }
    }
    $select_games->close();
}
?>

<div id="page_box">
<?php 
echo $pageurl->showPagination();
?>

</div>	
<div class="clear"></div>
</div>
开发者ID:royalswe,项目名称:yas26,代码行数:31,代码来源:download.php

示例2: extract

}
$table = "siswa";
foreach ($conn->getTableData($table, $page, $dataPerPage) as $value) {
    extract($value);
    echo "\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>{$nis}</td>\n\t\t\t\t\t\t\t<td>{$nama}</td>\n\t\t\t\t\t\t\t<td>{$kelas}</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t";
}
?>
		</tbody>
		<tfoot>
		    <tr>
		    	<th colspan="3">
			      	<div class="ui right floated pagination menu">
				        <a class="icon item">
				          	<i class="left chevron icon"></i>
				     	</a>
					      <?php 
$conn->showPagination($table, $dataPerPage);
?>
				        <a class="icon item">
				         	<i class="right chevron icon"></i>
			        	</a>
		      		</div>
		    	</th>
		  	</tr>
		</tfoot>
	</table>
</div>
</div>

</body>
</html>
开发者ID:RiskyFeryansyah,项目名称:Pagination_PHPPDO,代码行数:31,代码来源:index.php


注:本文中的pagination::showPagination方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。