INSERT INTO tbl_sitebase (sbase_code,sbase_name,sbase_url,sbase_sslurl,sbase_adminemail,sbase_keywords,sbase_description,sbase_analyticstags) VALUES ($code:tbl_sitebase_sbase_code,'$sitename','$url','$ssl','$adminmail','$keywords','$description','$analyticstags');
INSERT INTO tbl_user (usr_code, usr_id,usr_passwd,usr_status,usr_kanri,usr_sei,usr_mei,usr_c_date,usr_u_date) VALUES  ($code:tbl_user_usr_code, '$adminmail','$password',1,1,'$sei','$mei',now(),now());
INSERT INTO tbl_category_tmp (cat_code, cat_name, cat_order, cat_c_date, cat_u_date) VALUES ($code:tbl_category_cat_code, 'TOP', 0, now(), now());
INSERT INTO tbl_category (select * from tbl_category_tmp);
INSERT INTO tbl_section_idx_tmp (sidx_code, sidx_view, sidx_usr_code, sidx_title, sidx_tpl_code, sidx_order,sidx_c_date, sidx_u_date) VALUES ($code:tbl_section_idx_sidx_code, 2, 1, 'ホーム', 1, 0, now(), now());
INSERT INTO tbl_section_idx (select * from tbl_section_idx_tmp);
INSERT INTO tbl_skin (skin_code, skin_name,skin_path,skin_author,skin_ver,skin_type,skin_active,skin_use,skin_side) VALUES ($code:tbl_skin_skin_code, 'simple（ブラック）', 'simple-black', 'sone@Shift Tech', '1.2', '1カラム,ローカルメニュー無し', 1,1,0);
INSERT INTO tbl_skin (skin_code, skin_name,skin_path,skin_author,skin_ver,skin_type,skin_active,skin_use,skin_side) VALUES ($code:tbl_skin_skin_code, 'simple（ブラック・ローカルメニュー付）', 'simple-black-sec', 'sone@Shift Tech', '1.2', '2カラム,ローカルメニュー有り,サイドバー編集エリア有り', 1,1,1);
INSERT INTO tbl_template (tpl_code, tpl_skin_code, tpl_name, tpl_summary, tpl_active) VALUES ($code:tbl_template_tpl_code, 1, '初期テンプレート', 'インストール時に自動的に作成されたテンプレート設定です。', 1);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES ($code:tbl_unit_unit_code, 1, 'コンテナユニット1列', 'cunit_1.tpl', NULL, 1, 0);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (2, 1, 'コンテナユニット2列', 'cunit1_2.tpl', NULL, 1, 1);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (3, 1, 'コンテナユニット2列（33:67）', 'cunit2_2.tpl', NULL, 1, 4);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (4, 1, 'コンテナユニット2列（67:33）', 'cunit3_2.tpl', NULL, 1, 5);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (5, 1, 'コンテナユニット3列', 'cunit1_3.tpl', NULL, 1, 10);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (6, 1, 'コンテナユニット3列（25:50:25）', 'cunit2_3.tpl', NULL, 1, 11);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (7, 1, 'コンテナユニット3列（25:25:50）', 'cunit3_3.tpl', NULL, 1, 12);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (8, 1, 'コンテナユニット3列（50:25:25）', 'cunit4_3.tpl', NULL, 1, 13);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (9, 1, 'コンテナユニット4列', 'cunit_4.tpl', NULL, 1, 15);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (10, 2, 'タイトル（見出し）', 'bTtl.tpl', 'bTtl.php', 1, 16);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (11, 2, 'サブタイトル（小見出し）', 'bSubTtl.tpl', 'bSubTtl.php', 1, 17);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (12, 2, 'テキスト', 'bTxt.tpl', 'bTxt.php', 1, 20);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (13, 2, '画像のみ', 'bImg.tpl', 'bImg.php', 1, 21);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (14, 2, '画像（左）＋テキスト（右）', 'bImgTxt.tpl', 'bImgTxt.php', 1, 23);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (15, 2, 'テキスト（左）＋画像（右）', 'bTxtImg.tpl', 'bTxtImg.php', 1, 24);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (25, 3, 'JavaScript専用', 'bJava.tpl', 'bJava.php', 1, 36);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (26, 3, 'FLASH アニメーション', 'bFlash.tpl', 'bFlash.php', 1, 37);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (27, 3, 'FLASH プラグインダウンロード案内表示', 'bFlaDl.tpl', 'bFlaDl.php', 1, 38);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (36, 3, 'マップ', 'bMap.tpl', 'bMap.php', 1, 39);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (38, 1, 'コンテナユニット2列（23:77）', 'cunit4_2.tpl', NULL, 1, 2);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (39, 1, 'コンテナユニット2列（77:23）', 'cunit5_2.tpl', NULL, 1, 3);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (40, 1, 'コンテナユニット2列（38:62）', 'cunit6_2.tpl', NULL, 1, 6);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (41, 1, 'コンテナユニット2列（62:32）', 'cunit7_2.tpl', NULL, 1, 7);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (42, 1, 'コンテナユニット2列（固定:可変）', 'cunit8_2.tpl', NULL, 1, 8);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (43, 1, 'コンテナユニット2列（可変:固定）', 'cunit9_2.tpl', NULL, 1, 9);
INSERT INTO tbl_unit (unit_code, unit_type,unit_name,unit_tpl_path,unit_php_path,unit_active,unit_order) VALUES (44, 1, 'コンテナユニット3列（固定:可変:固定）', 'cunit5_3.tpl', NULL, 1, 14);
INSERT INTO tbl_extcategory (cat_code, cat_name, cat_order, cat_c_date, cat_u_date) VALUES ($code:tbl_extcategory_cat_code, 'TOP', 0, now(), now());
INSERT INTO tbl_extmodule (extmodule_code, extmodule_name, extmodule_summary, extmodule_ver, extmodule_path, extmodule_cdate, extmodule_type) VALUES ($code:tbl_extmodule_extmodule_code, 'ダミーデータ', '', '1.0', '', now(), 0);
INSERT INTO tbl_extsection_idx (sidx_code, sidx_extmodule_code, sidx_title, sidx_c_date, sidx_u_date) VALUES ($code:tbl_extsection_idx_sidx_code, 1, 'ダミーデータ', now(), now());
INSERT INTO tbl_extpage_idx(pidx_code, pidx_extmodule_code, pidx_sidx_code, pidx_view, pidx_cat_code, pidx_ptype, pidx_url, pidx_date, pidx_title, pidx_c_date, pidx_u_date) VALUES($code:tbl_extpage_idx_pidx_code, 1, 1, 0, 1, 2, null, now(), 'ダミーデータ', now(), now());
INSERT INTO tbl_extpage_container(pagec_code, pagec_extmodule_code, pagec_pidx_code, pagec_type, pagec_order) VALUES($code:tbl_extpage_container_pagec_code, 1, 1, 'cunit_1', 0);
INSERT INTO tbl_extpage_unit(pageu_code, pageu_extmodule_code, pageu_pidx_code, pageu_pagec_code, pageu_column, pageu_order, pageu_unit_code) VALUES($code:tbl_extpage_unit_pageu_code, 1, 1, 1, 0, 0, 31);
delete from tbl_extmodule;
delete from tbl_extsection_idx;
delete from tbl_extpage_idx;
delete from tbl_extpage_container;
delete from tbl_extpage_unit;