S_Start(); include_once( "pub/common.inc" ); if ( !$_REQUEST['k'] ) $_REQUEST['k'] = $_REQUEST['hid1']; //if ( ereg( "[^0-9]+", $_REQUEST['k'] ) ) { if( !is_numeric( $_REQUEST['k'] ) ) { showErr( 'パラメータが不足しています', '', 'http://ki-group.jp/' ); exit; } if ( $_REQUEST['ptp'] ) { $ptp_str = "&ptp=$_REQUEST[ptp]"; //include_once( "pub/class/kodate_data_admin.class" ); // $KD = new KODATE_DT_ADMIN( $_REQUEST['k'], 1 ); $KD = new KODATE_DT( $_REQUEST['k'] ); } else { include_once( "pub/class/kodate_data_rims.class" ); $KD = new KODATE_DT( $_REQUEST['k'] ); } $rcallcnt = $_GET['mcnt']; $maxsel = 1; $s2_nextpg = $_GET['nextpg']; if ($_GET['nextpg'] == "" || $_GET['nextpg'] == '1'){ $minsel = 1; if ($rcallcnt > $maxsel){ $page_str = ''; $page_str .= '

1/'.$_GET['mcnt'].'

'; } else { $page_str = '

1/'.$_GET['mcnt'].'

'; } }else{ $prepg2 = $_GET['nextpg'] - 1; $nextpg2 = $_GET['nextpg'] + 1; $minsel = ( $_GET['nextpg'] * $maxsel ) - $maxsel + 1; if ($rcallcnt > ($_GET['nextpg'] * $maxsel)){ $page_str = ''; $page_str .= ''; $page_str .= '

'.$s2_nextpg.'/'.$_GET['mcnt'].'

'; } else { $page_str = ''; $page_str .= '

'.$s2_nextpg.'/'.$_GET['mcnt'].'

'; } } if ( !$s2_nextpg ) $vz = 0; else $vz = $s2_nextpg - 1; $DA = array(); foreach ( $KD->jpIMG[6] as $value ) { if ( !$value['PATH'] ) continue; array_push( $DA, $value ); } $fname = $DA[ $vz ]['PATH']; $fcom = $DA[ $vz ]['FCOM']; $fsize = array( ( round( intval( $DA[ $vz ]['SIZE'][0] ) * 1.1 ) ), ( round( intval( $DA[ $vz ]['SIZE'][1] ) * 1.2 ) ) ); if ( $fsize[0] > 1000 ) $fsize[0] = 1000; if ( $fsize[0] < 680 ) $fsize[0] = 680; if ( $fsize[1] < 680 ) $fsize[1] = 680; if ( $fsize[1] > 740 ) $fsize[1] = 740; ?> - 間取り詳細図