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


PHP Pagination::sortby方法代码示例

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


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

示例1: foreach

<ul class="operate">
	<li><a href="../<?php 
echo $_GET['type'];
?>
/"><?php 
echo $type[$_GET['type']];
?>
に戻る</a></li>
	<li><a href="add.php?type=<?php 
echo $_GET['type'];
?>
">フォルダ追加</a></li>
</ul>
<table class="list" cellspacing="0" style="width:600px;">
	<tr><th><?php 
echo $pagination->sortby('folder_caption', 'フォルダ名');
?>
</th>
	<th style="width:150px;"><?php 
echo $pagination->sortby('folder_date', '登録日');
?>
</th>
	<th style="width:100px;"><?php 
echo $pagination->sortby('folder_order', '順序');
?>
</th>
	<th class="listlink">&nbsp;</th><tr>
<?php 
if (is_array($hash['list']) && count($hash['list']) > 0) {
    foreach ($hash['list'] as $row) {
        ?>
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:index.php

示例2: foreach

    echo '<ul class="folderlist">';
    foreach ($hash['folder'] as $key => $value) {
        echo sprintf('<li%s><a href="index.php?folder=%s">%s</a></li>', $current[$key], $key, $value);
    }
    echo '</ul><div class="folderoperate"><a href="../folder/?type=message">編集</a></div>';
} else {
    echo '<ul><li><a href="../folder/add.php?type=message">フォルダ追加</a></ul>';
}
?>
	</div>
</td><td>
	<form method="post" name="checkedform" action="">
		<table class="list visited" cellspacing="0">
			<tr><th class="listcheck"><input type="checkbox" value="" onclick="App.checkall(this)" /></th>
			<th><?php 
echo $pagination->sortby('message_toname', '宛先');
?>
</th>
			<th><?php 
echo $pagination->sortby('message_title', '件名');
?>
</th>
			<th style="width:140px;"><?php 
echo $pagination->sortby('message_date', '日時');
?>
</th>
<?php 
if (is_array($hash['list']) && count($hash['list']) > 0) {
    foreach ($hash['list'] as $row) {
        ?>
			<tr><td class="listcheck"><input type="checkbox" name="checkedid[]" value="<?php 
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:sent.php

示例3: Pagination

require_once '../application/loader.php';
$view->heading('カテゴリ', $_GET['type']);
$pagination = new Pagination(array('type' => $_GET['type']));
if (strlen($_GET['type']) > 0) {
    ?>
<h1>カテゴリ</h1>
<ul class="operate">
	<li><a href="../customer/">顧客管理に戻る</a></li>
	<li><a href="add.php?type=<?php 
    echo $_GET['type'];
    ?>
">カテゴリ追加</a></li>
</ul>
<table class="list" cellspacing="0">
	<tr><th><?php 
    echo $pagination->sortby('folder_caption', 'カテゴリ名');
    ?>
</th>
	<th><?php 
    echo $pagination->sortby('folder_name', '登録者');
    ?>
</th>
	<th><?php 
    echo $pagination->sortby('folder_date', '登録日');
    ?>
</th>
	<th><?php 
    echo $pagination->sortby('folder_order', '順序');
    ?>
</th>
	<th class="listlink">&nbsp;</th></tr>
开发者ID:rochefort8,项目名称:tt85,代码行数:31,代码来源:index.php

示例4: foreach

echo '<li' . $currentfolder[0] . '><a href="index.php' . $view->parameter(array('type' => $_GET['type'])) . '">トップ</a></li>';
if (is_array($hash['folder']) && count($hash['folder']) > 0) {
    foreach ($hash['folder'] as $key => $value) {
        echo '<li' . $currentfolder[$key] . '><a href="index.php' . $view->parameter(array('type' => $_GET['type'], 'folder' => $key)) . '">' . $value . '</a></li>';
    }
}
echo '</ul>';
if ($view->authorize('administrator', 'manager', 'editor')) {
    echo '<div class="folderoperate"><a href="../category/?type=customer">編集</a></div>';
}
?>
	</div>
</td><td>
	<table class="list" cellspacing="0">
		<tr><th><?php 
echo $pagination->sortby('customer_lastname', $caption);
?>
</th>
		<?php 
echo $liquid->listheader($hash['item'], $pagination);
?>
		<th class="listlink">&nbsp;</th></tr>
<?php 
if (is_array($hash['list']) && count($hash['list']) > 0) {
    foreach ($hash['list'] as $row) {
        ?>
		<tr><td><a href="customer.php?parent=<?php 
        echo $row['customer_id'];
        ?>
"><?php 
        echo $row['customer_lastname'];
开发者ID:rochefort8,项目名称:tt85,代码行数:31,代码来源:index.php

示例5:

><a href="index.php?group=all">すべて表示</a></li>
		</ul>
<?php 
if ($view->authorize('administrator')) {
    echo '<div class="folderoperate"><a href="../group/">編集</a></div>';
}
?>
	</div>
</td><td>
	<?php 
echo $view->error($hash['error']);
?>
	<form method="post" name="checkedform" action="">
		<table class="list" cellspacing="0">
			<tr><th><?php 
echo $pagination->sortby('userid', 'ユーザーID');
?>
</th>
			<th><?php 
echo $pagination->sortby('realname', '名前');
?>
</th>
			<th><?php 
echo $pagination->sortby('user_groupname', 'グループ');
?>
</th>
			<th><?php 
echo $pagination->sortby('authority', '権限');
?>
</th>
			<th><?php 
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:index.php

示例6: Pagination

 */
require_once '../application/loader.php';
$view->heading('グループ', 'administration');
$pagination = new Pagination();
?>
<h1>グループ</h1>
<ul class="operate">
	<li><a href="../user/">ユーザー管理に戻る</a></li>
	<li><a href="add.php">グループ追加</a></li>
</ul>
<?php 
echo $view->searchform();
?>
<table class="list" cellspacing="0" style="width:500px;">
	<tr><th><?php 
echo $pagination->sortby('group_name', 'グループ名');
?>
</th>
	<th><?php 
echo $pagination->sortby('group_order', '順序');
?>
</th>
	<th class="listlink">&nbsp;</th></tr>
<?php 
if (is_array($hash['list']) && count($hash['list']) > 0) {
    foreach ($hash['list'] as $row) {
        ?>
	<tr><td><a href="view.php?id=<?php 
        echo $row['id'];
        ?>
"><?php 
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:index.php

示例7:

"<?php 
echo $attribute;
?>
>CSV出力</a></li>
</ul>
<?php 
echo $view->searchform(array('folder' => $_GET['folder']));
?>
<table class="content" cellspacing="0"><tr><td class="contentfolder">
	<?php 
echo $view->category($hash['folder'], 'addressbook', 'company.php');
?>
</td><td>
	<table class="list" cellspacing="0">
		<tr><th><?php 
echo $pagination->sortby('addressbook_company', '会社名');
?>
</th>
		<th><?php 
echo $pagination->sortby('addressbook_postcode', '郵便番号');
?>
</th>
		<th><?php 
echo $pagination->sortby('addressbook_address', '住所');
?>
</th>
		<th><?php 
echo $pagination->sortby('addressbook_phone', '電話番号');
?>
</th></tr>
<?php 
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:company.php

示例8: intval

if ($view->authorize('administrator', 'manager')) {
    echo '<li><a href="config.php?folder=' . intval($_GET['folder']) . '">顧客設定</a></li>';
}
?>
</ul>
<?php 
echo $view->searchform(array('folder' => $_GET['folder']));
?>
<table class="content" cellspacing="0"><tr><td class="contentfolder">
	<?php 
echo $view->category($hash['folder'], 'customer', 'company.php');
?>
</td><td>
	<table class="list" cellspacing="0">
		<tr><th><?php 
echo $pagination->sortby('customer_juniorhighschool', '会社名');
?>
</th>
		<th><?php 
echo $pagination->sortby('customer_postcode', '郵便番号');
?>
</th>
		<th><?php 
echo $pagination->sortby('customer_address', '住所');
?>
</th>
		<th><?php 
echo $pagination->sortby('customer_phone', '電話番号');
?>
</th>
		<?php 
开发者ID:rochefort8,项目名称:tt85,代码行数:31,代码来源:company.php


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