<?
	session_start();

	require_once("../../lib/master.php");
	$db = new db();
	$db -> connect();

	$version = $_REQUEST['version'] ? $_REQUEST['version'] : '1';
	$maxversion = '3';

	$page = (int)$_REQUEST['page'];
	$max = 99;

	$sql = "select * from ohanashi_shop where category_id = 2  and part_no = $version order by sort_order";
	$result = $db -> query($sql);
	if($result){
		$rows = $db -> num_rows($result);
	}

	calc_page($page, $max, $rows, $prev, $next, $pages);

	$sql = "select * from ohanashi_shop where category_id = 2 and part_no = $version order by sort_order desc limit $page, $max";
	if($result){
		while($tmp = $db -> fetch_row($result)){
			$tmp = array_map("charsetDecode", $tmp);
			$list[] = $tmp;
		}
	}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="keywords" content="物語,手袋人形,パネルシアター,おはなしかご,魔法使いの学校">
<meta name="description" content="物語、詩、手袋人形、パネルシアターに出会ってみませんか？おはなしかご（魔法使いの学校）">
<title>おはなしかご/パネルシアター</title>
<link href="../../style.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%" height="17" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td height="17" valign="top" bgcolor="91A9BF"> <div align="center"></div>
<TABLE WIDTH=744 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD width="219" height="431" valign="top"> <a href="/index.html"><img src="/im/title.gif" alt="おはなしかご" width="219" height="103" border="0"></a><br>
<table width="100%" height="757" border="0" cellpadding="0" cellspacing="0" class="style1">
<tr>
<td width="6%">&nbsp;</td>
<td width="94%" valign="top">
<?include("../../sub1.html")?>
</td>
</tr>
</table></TD>
<TD width="525" valign="top"><TABLE WIDTH=525 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD valign="top"><TABLE WIDTH=524 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="../../images/ri_01.gif"> <div align="right">
<h1 align="right">パネルシアター</h1>
</div></td>
</tr>
</table></TD>
</TR>
</TABLE>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="style1">
<tr>
<td colspan="3" valign="top" bgcolor="#91A9BF">
<table width="100%" border="0" cellpadding="2" cellspacing="5" class="style1">
<tr bgcolor="#006699">
<td colspan="3"><font color="#FFFFFF">パネルシアター</font></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="style1">
<Tr><td><a href="javascript:void(0);" onClick="window.open('../ushi/new_product.html','nezu','width=550,height=550');"><img src="new_bannar.gif" width="425" height="120" border="0"></a><br><br>
<a href="javascript:void(0);" onClick="window.open('../ushi/4p_panel.html','nezu','width=550,height=550');"><img src="new_bannar02.gif" width="425" height="120" border="0"></a><br>
<br>
</td>
</Tr>
	<tr>
		<td valign="top">
			<div align="center">


<iframe width="560" height="315" src="https://www.youtube.com/embed/u64M-oFc6_I" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
			</div>
		</td>
	</tr>
	<tr>
		<td valign="top">
			<div align="center">


<iframe width="560" height="315" src="https://www.youtube.com/embed/70FvjtLgqN8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

			</div>
		</td>
	</tr>

</table>
<table cellpadding="5" cellspacing="10" class="style1">
<tr bgcolor="#FFFFCC">
<td colspan="2" valign="top"><p>・すべてパネル紙に印刷されていますので「色刷り」はそのまま切り取ればすぐに楽しめます。白黒も色を塗るだけです。別にパネル紙を購入して絵を写す必要はありません。<br>
  ・「色刷り」をクリックすると「白黒」の価格が出ます。出ないものは「色刷り」のみです。<br>
    ・パネルシアターの用具（パネル板・パネル布・スタンド・袋）も御用意してあります。ご覧下さい。<br>
</p>
  </td>
</tr>
</table>
<br>
<table width="515" border="1" align="center" cellpadding="2" cellspacing="0" class="style1">
<?
	if($list){
		for($i = 0; $i < count($list); $i += 2){
			$record1 = $list[$i];
			$record2 = $list[$i + 1];
?>
<tr>
<?$record = $record1;?>
<td width="120" bgcolor="#FFFFFF"><?if($record['img1']){?><a href="../detail.html?id=<?=$record['id']?>"><img src="../../files/general/<?=$record['img1']?>" width="120" height="90" border="0"></a><?}?></td>
<td width="125" valign="top"><?if(!empty($record)){?><a href="../detail.html?id=<?=$record['id']?>"><?=$record['title']?></a><br>
<br><form style='margin:0 0 0 0; padding:0 0 0 0;' method=post action="../add_cart.php">
<input type=hidden name=id value='<?=$record['id']?>'>
<select name="buy_mode">
<?for($j = 1; $j <= 4; $j++){
	if($record['text'.$j] || $record['price'.$j]){
?>
<option value="<?=$j?>"><?=$record['text'.$j]?>/<?=$record['price'.$j]?>円</option>
<?}}?>
</select>

<input type=image src="../img/kart1.gif" alt="カートに入れる" width="110" height="25" border="0"></form><?}?></td>
<?$record = $record2;?>
<td width="120" bgcolor="#FFFFFF"><?if($record['img1']){?><a href="../detail.html?id=<?=$record['id']?>"><img src="../../files/general/<?=$record['img1']?>" width="120" height="90" border="0"></a><?}?></td>
<td width="124" valign="top"><?if(!empty($record)){?><a href="../detail.html?id=<?=$record['id']?>"><?=$record['title']?></a><br>
<br><form style='margin:0 0 0 0; padding:0 0 0 0;' method=post action="../add_cart.php">
<input type=hidden name=id value='<?=$record['id']?>'>
<select name="buy_mode">
<?for($j = 1; $j <= 4; $j++){
	if($record['text'.$j] || $record['price'.$j]){
?>
<option value="<?=$j?>"><?=$record['text'.$j]?>/<?=$record['price'.$j]?>円</option>
<?}}?>
</select>
<input type=image src="../img/kart1.gif" alt="カートに入れる" width="110" height="25" border="0"></form><?}?></td>
</tr>
<?
	}}
?>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="5">
<tr>
<td>
<? if ($version != 1){ ?>

<INPUT name="button22" type="button" onClick="location.href='index.html?version=<?=$version-1?>'" value="前のページへ">

<? } ?>
</td>
<td><div align="right">

<? if ($version != $maxversion){ ?>
<INPUT name="button2" type="button" onClick="location.href='index.html?version=<?=$version+1?>'" value="次のページへ">


<? } ?>
</div></td>
</tr>
</table>
<br>
</td>
</tr>
</table></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR bgcolor="#006699">
<TD height="13" colspan="2" valign="top">
<div align="center"><font color="#FFFFFF" size="1">copyright(c)2006 ohanashikago.com
all right reserved</font></div></TD>
</TR>
</TABLE></td>
</tr>
</table>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-13102187-1");
pageTracker._trackPageview();
} catch(err) {}</script></body>
</html>
