當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。