Index: temp/trunk/html/admin/design/index.php
===================================================================
--- temp/trunk/html/admin/design/index.php	(revision 1428)
+++ temp/trunk/html/admin/design/index.php	(revision 1429)
@@ -27,5 +27,5 @@
 	$page_id = $_POST['page_id'];
 }else{
-	$page_id = 1;
+	$page_id = "";
 }
 
@@ -36,6 +36,11 @@
 $sel   = ", pos.target_id, pos.bloc_id, pos.bloc_row ";
 $from  = ", dtb_blocposition AS pos";
-$where = " where lay.page_id = ? AND lay.page_id = pos.page_id AND exists (select bloc_id from dtb_bloc as blc where pos.bloc_id = blc.bloc_id) ORDER BY lay.page_id,pos.target_id, pos.bloc_row, pos.bloc_id ";
-$arrBlocPos = lfgetLayoutData($sel, $from, $where, array($page_id));
+$where = " where ";
+if ($page_id === "") {
+	$where .= " lay.page_id = ? AND ";
+	$arrData = array($page_id);
+}
+$where .= "lay.page_id = pos.page_id AND exists (select bloc_id from dtb_bloc as blc where pos.bloc_id = blc.bloc_id) ORDER BY lay.page_id,pos.target_id, pos.bloc_row, pos.bloc_id ";
+$arrBlocPos = lfgetLayoutData($sel, $from, $where, $arrData );
 
 // ¥Ö¥í¥Ã¥¯¤ò¼èÆÀ
