Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the breadcrumb-navxt domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wordpress/wp-includes/functions.php on line 6114
content-book_sortのソースファイル – コンピュータ学

rgb-green.net

content-book_sortのソースファイル

関連ページ:書籍検索(新書)
関連ページ:page-books_shinsho.php のソースファイル
[php]
<?php
// 初期設定
$sort_fg="5";
$sort_type="2";
$sort="ukeirebi desc";

if(isset($_POST[‘cmdClear’])){
$sort_fg=”;
$sort_type=”;
}elseif(isset($_POST[‘sort_fg’]) or isset($_GET[‘sort_fg’])){
if(isset($_POST[‘sort_fg’])){
$sort_fg=$_POST[‘sort_fg’];
$sort_type=$_POST[‘sort_type’];
}else{
$sort_fg=$_GET[‘sort_fg’];
$sort_type=$_GET[‘sort_type’];
}

if($sort_fg==1){
$sort="shomei_kana";
if($sort_type==2){$sort=$sort . " desc";}
}elseif($sort_fg==2){
$sort="choshamei_kana";
if($sort_type==2){$sort=$sort . " desc";}
}elseif($sort_fg==3){
$sort="haikabasho";
if($sort_type==2){$sort=$sort . " desc";}
}elseif($sort_fg==4){
$sort="shuppannen";
if($sort_type==2){$sort=$sort . " desc";}
}elseif($sort_fg==5){
$sort="ukeirebi";
if($sort_type==2){$sort=$sort . " desc";}
}
}

if($sort_fg==”){
$sort="";
}else{
$sort="order by " . $sort;
}
$_SESSION["sort"]=$sort; // $sortの保持
?>

<form method="post" action="http://www.rgb-green.tk/computer/programing/htmljavascript/javascript/tab/">
<table border="0">
<tr>
<td>
<input type="radio" name="sort_fg" value="1" <?php if($sort_fg==’1′){ echo ‘checked’;} ?>>書 名
<input type="radio" name="sort_fg" value="2" <?php if($sort_fg==’2′){ echo ‘checked’;} ?>>著者名
<input type="radio" name="sort_fg" value="3" <?php if($sort_fg==’3′){ echo ‘checked’;} ?>>配架場所
<input type="radio" name="sort_fg" value="4" <?php if($sort_fg==’4′){ echo ‘checked’;} ?>>出版年
<input type="radio" name="sort_fg" value="5" <?php if($sort_fg==’5′){ echo ‘checked’;} ?>>受入日
</td>
</tr>
<tr>
<td>
<input type="radio" name="sort_type" value="1" <?php if($sort_type==’1′){ echo ‘checked’;} ?>>昇順
<input type="radio" name="sort_type" value="2" <?php if($sort_type==’2′){ echo ‘checked’;} ?>>降順
<input type="submit" name="cmdSearch" value="検索">
<input type="submit" name="cmdClear" value="クリア">
</td>
</tr>
</table>
</form>
[/php]


© 2023

© 2023 Study of Reason, Inc. All rights reserved.