Merge branch 'master' of github.com:gnuboard/yc4s

This commit is contained in:
whitedot
2013-04-11 13:20:55 +09:00
6 changed files with 213 additions and 213 deletions

View File

@ -52,63 +52,64 @@ $result = sql_query($sql);
//$qstr = "page=$page&sst=$sst&sod=$sod&stx=$stx";
$qstr = "$qstr&sca=$sca&save_stx=$stx";
?>
<style type="text/css">
.itempslist{text-align:center}
</style>
<form name=flist style="margin:0px;">
<table width=100% cellpadding=4 cellspacing=0>
<input type=hidden name=page value="<?=$page?>">
<tr>
<td width=10%><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></td>
<td width=80% align=center>
<select name="sca">
<option value=''>전체분류
<?
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
$len = strlen($row1['ca_id']) / 2 - 1;
$nbsp = "";
for ($i=0; $i<$len; $i++) $nbsp .= "&nbsp;&nbsp;&nbsp;";
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
}
?>
<form name="flist">
<input type="hidden" name="page" value="<?=$page?>">
<p><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></p>
<fieldset>
<legend>상품후기 검색</legend>
<select name="sca" title="검색분류">
<option value=''>전체분류</option>
<?
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
$len = strlen($row1['ca_id']) / 2 - 1;
$nbsp = "";
for ($i=0; $i<$len; $i++) $nbsp .= "&nbsp;&nbsp;&nbsp;";
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
}
?>
</select>
<script> document.flist.sca.value = '<?=$sca?>';</script>
<select name=sfl>
<option value='it_name'>상품명
<option value='a.it_id'>상품코드
<option value='is_name'>이름
<select name="sfl" title="검색대상">
<option value="it_name">상품명</option>
<option value="a.it_id">상품코드</option>
<option value="is_name">이름</option>
</select>
<? if ($sfl) echo "<script> document.flist.sfl.value = '$sfl';</script>"; ?>
<input type=hidden name=save_stx value='<?=$stx?>'>
<input type=text name=stx value='<?=$stx?>'>
<input type=image src='<?=G4_ADMIN_URL?>/img/btn_search.gif' align=absmiddle>
</td>
<td width=10% align=right>건수 : <? echo $total_count ?>&nbsp;</td>
</tr>
</table>
<input type="hidden" name="save_stx" value="<?=$stx?>">
<input type="text" name="stx" value="<?=$stx?>" class="frm_input" title="검색어">
<input type="submit" value="검색" class="btn_submit">
</fieldset>
<p>건수 : <? echo $total_count ?></p>
</form>
<table cellpadding=0 cellspacing=0 width=100% border=0>
<colgroup width=80>
<colgroup width=''>
<colgroup width=80>
<colgroup width=200>
<colgroup width=40>
<colgroup width=40>
<colgroup width=80>
<tr><td colspan=7 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td></td>
<td><?=subject_sort_link("it_name"); ?>상품명</a></td>
<td><?=subject_sort_link("mb_name"); ?>이름</a></td>
<td><?=subject_sort_link("is_subject"); ?>제목</a></td>
<td><?=subject_sort_link("is_score"); ?>점수</a></td>
<td><?=subject_sort_link("is_confirm"); ?>확인</a></td>
<td>수정 삭제</td>
<section class="cbox">
<table class="frm_basic">
<colgroup>
<col class="grid_8">
<col class="grid_2">
<col class="grid_4">
<col class="grid_1">
<col class="grid_1">
<col class="grid_2">
</colgroup>
<thead>
<tr>
<th scope="col" class="itempslist"><?=subject_sort_link("it_name"); ?>상품명</a></th>
<th scope="col"><?=subject_sort_link("mb_name"); ?>이름</a></th>
<th scope="col"><?=subject_sort_link("is_subject"); ?>제목</a></th>
<th scope="col"><?=subject_sort_link("is_score"); ?>점수</a></th>
<th scope="col"><?=subject_sort_link("is_confirm"); ?>확인</a></th>
<th scope="col">관리</th>
</tr>
<tr><td colspan=7 height=1 bgcolor=#CCCCCC></td></tr>
</thead>
<tbody>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
@ -124,32 +125,28 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$confirm = $row['is_confirm'] ? "Y" : "&nbsp;";
$list = $i%2;
echo "
<tr class='list$list'>
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'].'_s', 50, 50)."</a></td>
<td><a href='$href'>".cut_str($row['it_name'],30)."</a></td>
<td align=center>$name</td>
<td>".$row['is_subject']."</td>
<td align=center>".$row['is_score']."</td>
<td align=center>$confirm</td>
<td align=center>$s_mod $s_del</td>
</tr>";
?>
<tr>
<td><a href="<?=$href?>"><?=get_it_image($row['it_id'].'_s', 50, 50)?><?=cut_str($row['it_name'],30)?></a></td>
<td class="itempslist"><?=$name?></td>
<td><?=$row['is_subject']?></td>
<td class="itempslist"><?=$row['is_score']?></td>
<td class="itempslist"><?=$confirm?></td>
<td class="itempslist"><a href="./itempsform.php?w=u&is_id=<?=$row['is_id']?>&$qstr">수정</a> <a href="./itempsformupdate.php?w=d&is_id=<?=$row['is_id']?>&$qstr')">삭제</a></td>
</tr>
<?
}
if ($i == 0) {
echo "<tr><td colspan=7 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
echo '<tr><td colspan="7" class="empty_table"><span>자료가 한건도 없습니다.</span></td></tr>';
}
?>
<tr><td colspan=7 height=1 bgcolor=CCCCCC></td></tr>
</tbody>
</table>
</section>
<table width=100%>
<tr>
<td width=50%>&nbsp;</td>
<td width=50% align=right><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></td>
</tr>
</table>
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
<?
include_once (G4_ADMIN_PATH.'/admin.tail.php');

View File

@ -52,101 +52,97 @@ $result = sql_query($sql);
//$qstr = "page=$page&sst=$sst&sod=$sod&stx=$stx";
$qstr = "$qstr&sca=$sca&save_stx=$stx";
?>
<style type="text/css">
.itemqalist{text-align:center}
</style>
<form name=flist style="margin:0px;">
<table width=100% cellpadding=4 cellspacing=0>
<input type=hidden name=page value="<?=$page?>">
<tr>
<td width=10%><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></td>
<td width=80% align=center>
<select name="sca">
<option value=''>전체분류
<?
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
$len = strlen($row1['ca_id']) / 2 - 1;
$nbsp = "";
for ($i=0; $i<$len; $i++) $nbsp .= "&nbsp;&nbsp;&nbsp;";
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
}
?>
</select>
<script> document.flist.sca.value = '<?=$sca?>';</script>
<form name="flist">
<input type="hidden" name="page" value="<?=$page?>">
<p><a href="<?=$_SERVER['PHP_SELF']?>">처음</a></p>
<fieldset>
<legend>상품문의 검색</legend>
<select name="sca">
<option value=''>전체분류</option>
<?
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
$len = strlen($row1['ca_id']) / 2 - 1;
$nbsp = "";
for ($i=0; $i<$len; $i++) $nbsp .= "&nbsp;&nbsp;&nbsp;";
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
}
?>
</select>
<script> document.flist.sca.value = '<?=$sca?>';</script>
<select name=sfl>
<option value='it_name'>상품명
<option value='a.it_id'>상품코드
</select>
<? if ($sfl) echo "<script> document.flist.sfl.value = '$sfl';</script>"; ?>
<select name="sfl">
<option value="it_name">상품명</option>
<option value="a.it_id">상품코드</option>
</select>
<? if ($sfl) echo "<script> document.flist.sfl.value = '$sfl';</script>"; ?>
<input type=hidden name=save_stx value='<?=$stx?>'>
<input type=text name=stx value='<?=$stx?>'>
<input type=image src='<?=G4_ADMIN_URL?>/img/btn_search.gif' align=absmiddle>
</td>
<td width=10% align=right>건수 : <? echo $total_count ?>&nbsp;</td>
</tr>
</table>
<input type="hidden" name="save_stx" value="<?=$stx?>">
<input type="text" name="stx" value="<?=$stx?>" class="frm_input">
<input type="submit" value="검색" class="btn_submit">
</fieldset>
<p>건수 : <? echo $total_count ?></p>
</form>
<table cellpadding=0 cellspacing=0 width=100%>
<colgroup width=80>
<colgroup width=''>
<colgroup width=100>
<colgroup width=250>
<colgroup width=50>
<colgroup width=80>
<tr><td colspan=6 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td></td>
<td><?=subject_sort_link("it_name"); ?>상품명</a></td>
<td><?=subject_sort_link("mb_name"); ?>이름</a></td>
<td><?=subject_sort_link("iq_subject"); ?>질문</a></td>
<td><?=subject_sort_link("iq_answer"); ?>답변</a></td>
<td>수정 삭제</td>
</tr>
<tr><td colspan=6 height=1 bgcolor=#CCCCCC></td></tr>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$row['iq_subject'] = cut_str($row['iq_subject'], 30, "...");
<section class="cbox">
<h2>상품문의 관리</h2>
<table class="frm_basic">
<colgroup>
<col class="grid_8">
<col class="grid_2">
<col class="grid_5">
<col class="grid_1">
<col class="grid_2">
</colgroup>
<thead>
<tr>
<th scope="col"><?=subject_sort_link("it_name"); ?>상품명</a></th>
<th scope="col"><?=subject_sort_link("mb_name"); ?>이름</a></th>
<th scope="col"><?=subject_sort_link("iq_subject"); ?>질문</a></th>
<th scope="col"><?=subject_sort_link("iq_answer"); ?>답변</a></th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$row['iq_subject'] = cut_str($row['iq_subject'], 30, "...");
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
$name = get_sideview($row['mb_id'], $row['iq_name'], $row['mb_email'], $row['mb_homepage']);
$name = get_sideview($row['mb_id'], $row['iq_name'], $row['mb_email'], $row['mb_homepage']);
$s_mod = icon("수정", "./itemqaform.php?w=u&iq_id={$row['iq_id']}&$qstr");
$s_del = icon("삭제", "javascript:del('./itemqaformupdate.php?w=d&iq_id={$row['iq_id']}&$qstr');");
$s_mod = icon("수정", "./itemqaform.php?w=u&iq_id={$row['iq_id']}&$qstr");
$s_del = icon("삭제", "javascript:del('./itemqaformupdate.php?w=d&iq_id={$row['iq_id']}&$qstr');");
$answer = $row['iq_answer'] ? "Y" : "&nbsp;";
$answer = $row['iq_answer'] ? "Y" : "&nbsp;";
$list = $i%2;
echo "
<tr class='list$list'>
<td align=center style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'].'_s', 50, 50)."</a></td>
<td><a href='$href'>".cut_str($row['it_name'],30)."</a></td>
<td align=center>$name</td>
<td>{$row['iq_subject']}</td>
<td align=center>$answer</td>
<td align=center>$s_mod $s_del</td>
</tr>";
}
if ($i == 0) {
echo "<tr><td colspan=6 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
<tr><td colspan=6 height=1 bgcolor=#CCCCCC></td></tr>
</table>
<table width=100%>
<tr>
<td width=50%>&nbsp;</td>
<td width=50% align=right><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></td>
</tr>
</table>
$list = $i%2;
?>
<tr>
<td><a href="$href"><?=get_it_image($row['it_id'].'_s', 50, 50)?><?=cut_str($row['it_name'],30)?></a></td>
<td class="itemqalist"><?=$name?></td>
<td><?=$row['iq_subject']?></td>
<td class="itemqalist"><?=$answer?></td>
<td class="itemqalist"><a href="./itemqaform.php?w=u&iq_id=<?=$row['iq_id']?>&<?=$qstr?>">수정</a> <a href="./itemqaformupdate.php?w=d&iq_id=<?=$row['iq_id']?>&<?=$qstr?>">삭제</a></td>
</tr>
<?
}
if ($i == 0) {
echo '<tr><td colspan="5" class="empty_table"><span>자료가 한건도 없습니다.</span></td></tr>';;
}
?>
</tbody>
</table>
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
</section>
<?
include_once (G4_ADMIN_PATH.'/admin.tail.php');

View File

@ -135,7 +135,7 @@ $qstr = "$qstr&sca=$sca&page=$page&save_stx=$stx";
</colgroup>
<thead>
<tr>
<th scope="col"><?=subject_sort_link("it_id", $qstr, 1)?>상품<br>코드</a></th>
<th scope="col"><?=subject_sort_link("it_id", $qstr, 1)?>상품코드</a></th>
<th scope="col"><?=subject_sort_link("it_name")?>상품명</a></th>
<th scope="col"><?=subject_sort_link("it_type1", $qstr, 1)?>히트<br>상품</a></th>
<th scope="col"><?=subject_sort_link("it_type2", $qstr, 1)?>추천<br>상품</a></th>
@ -170,7 +170,7 @@ $qstr = "$qstr&sca=$sca&page=$page&save_stx=$stx";
}
if (!$i)
echo '<tr><td colspan="9" class="itemtypelist empty_table"><span>자료가 한건도 없습니다.</span></td></tr>';
echo '<tr><td colspan="9" class="empty_table"><span>자료가 한건도 없습니다.</span></td></tr>';
?>
</tbody>
<tfoot>

View File

@ -56,6 +56,13 @@ if ($_POST['agree'] != '동의함') {
<input name="table_prefix" type="text" value="g4s_" id="table_prefix">
</td>
</tr>
<tr>
<th scope="row"><label for="">쇼핑몰TABLE명 접두사</label></th>
<td>
<span>가능한 변경하지 마십시오.</span>
<input name="shop_prefix" type="text" value="shop_" id="shop_prefix">
</td>
</tr>
</tbody>
</table>

View File

@ -18,6 +18,7 @@ $mysql_user = $_POST['mysql_user'];
$mysql_pass = $_POST['mysql_pass'];
$mysql_db = $_POST['mysql_db'];
$table_prefix= $_POST['table_prefix'];
$shop_prefix = $_POST['shop_prefix'];
$admin_id = $_POST['admin_id'];
$admin_pass = $_POST['admin_pass'];
$admin_name = $_POST['admin_name'];

View File

@ -1,11 +1,11 @@
-- --------------------------------------------------------
--
-- Table structure for table `yc4_banner`
-- Table structure for table `shop_banner`
--
DROP TABLE IF EXISTS `yc4_banner`;
CREATE TABLE IF NOT EXISTS `yc4_banner` (
DROP TABLE IF EXISTS `shop_banner`;
CREATE TABLE IF NOT EXISTS `shop_banner` (
`bn_id` int(11) NOT NULL AUTO_INCREMENT,
`bn_alt` varchar(255) NOT NULL DEFAULT '',
`bn_url` varchar(255) NOT NULL DEFAULT '',
@ -23,11 +23,11 @@ CREATE TABLE IF NOT EXISTS `yc4_banner` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_card_history`
-- Table structure for table `shop_card_history`
--
DROP TABLE IF EXISTS `yc4_card_history`;
CREATE TABLE IF NOT EXISTS `yc4_card_history` (
DROP TABLE IF EXISTS `shop_card_history`;
CREATE TABLE IF NOT EXISTS `shop_card_history` (
`cd_id` int(11) NOT NULL AUTO_INCREMENT,
`od_id` bigint(20) unsigned NOT NULL,
`uq_id` bigint(20) unsigned NOT NULL,
@ -49,11 +49,11 @@ CREATE TABLE IF NOT EXISTS `yc4_card_history` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_cart`
-- Table structure for table `shop_cart`
--
DROP TABLE IF EXISTS `yc4_cart`;
CREATE TABLE IF NOT EXISTS `yc4_cart` (
DROP TABLE IF EXISTS `shop_cart`;
CREATE TABLE IF NOT EXISTS `shop_cart` (
`ct_id` int(11) NOT NULL AUTO_INCREMENT,
`uq_id` bigint(20) unsigned NOT NULL,
`it_id` varchar(10) NOT NULL DEFAULT '0',
@ -75,18 +75,17 @@ CREATE TABLE IF NOT EXISTS `yc4_cart` (
`ct_send_cost` varchar(255) NOT NULL,
`ct_direct` tinyint(4) NOT NULL,
PRIMARY KEY (`ct_id`),
KEY `on_uid` (`on_uid`),
KEY `uq_id` (`uq_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `yc4_category`
-- Table structure for table `shop_category`
--
DROP TABLE IF EXISTS `yc4_category`;
CREATE TABLE IF NOT EXISTS `yc4_category` (
DROP TABLE IF EXISTS `shop_category`;
CREATE TABLE IF NOT EXISTS `shop_category` (
`ca_id` varchar(10) NOT NULL DEFAULT '0',
`ca_name` varchar(255) NOT NULL DEFAULT '',
`ca_skin` varchar(255) NOT NULL DEFAULT '',
@ -115,11 +114,11 @@ CREATE TABLE IF NOT EXISTS `yc4_category` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_content`
-- Table structure for table `shop_content`
--
DROP TABLE IF EXISTS `yc4_content`;
CREATE TABLE IF NOT EXISTS `yc4_content` (
DROP TABLE IF EXISTS `shop_content`;
CREATE TABLE IF NOT EXISTS `shop_content` (
`co_id` varchar(20) NOT NULL DEFAULT '',
`co_html` tinyint(4) NOT NULL DEFAULT '0',
`co_subject` varchar(255) NOT NULL DEFAULT '',
@ -133,11 +132,11 @@ CREATE TABLE IF NOT EXISTS `yc4_content` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_default`
-- Table structure for table `shop_default`
--
DROP TABLE IF EXISTS `yc4_default`;
CREATE TABLE IF NOT EXISTS `yc4_default` (
DROP TABLE IF EXISTS `shop_default`;
CREATE TABLE IF NOT EXISTS `shop_default` (
`de_admin_company_owner` varchar(255) NOT NULL DEFAULT '',
`de_admin_company_name` varchar(255) NOT NULL DEFAULT '',
`de_admin_company_saupja_no` varchar(255) NOT NULL DEFAULT '',
@ -240,11 +239,11 @@ CREATE TABLE IF NOT EXISTS `yc4_default` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_delivery`
-- Table structure for table `shop_delivery`
--
DROP TABLE IF EXISTS `yc4_delivery`;
CREATE TABLE IF NOT EXISTS `yc4_delivery` (
DROP TABLE IF EXISTS `shop_delivery`;
CREATE TABLE IF NOT EXISTS `shop_delivery` (
`dl_id` int(11) NOT NULL AUTO_INCREMENT,
`dl_company` varchar(255) NOT NULL DEFAULT '',
`dl_url` varchar(255) NOT NULL DEFAULT '',
@ -256,11 +255,11 @@ CREATE TABLE IF NOT EXISTS `yc4_delivery` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_event`
-- Table structure for table `shop_event`
--
DROP TABLE IF EXISTS `yc4_event`;
CREATE TABLE IF NOT EXISTS `yc4_event` (
DROP TABLE IF EXISTS `shop_event`;
CREATE TABLE IF NOT EXISTS `shop_event` (
`ev_id` int(11) NOT NULL AUTO_INCREMENT,
`it_group` int(11) NOT NULL DEFAULT '0',
`ev_skin` varchar(255) NOT NULL DEFAULT '',
@ -278,11 +277,11 @@ CREATE TABLE IF NOT EXISTS `yc4_event` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_event_item`
-- Table structure for table `shop_event_item`
--
DROP TABLE IF EXISTS `yc4_event_item`;
CREATE TABLE IF NOT EXISTS `yc4_event_item` (
DROP TABLE IF EXISTS `shop_event_item`;
CREATE TABLE IF NOT EXISTS `shop_event_item` (
`ev_id` int(11) NOT NULL DEFAULT '0',
`it_id` varchar(10) NOT NULL DEFAULT '',
PRIMARY KEY (`ev_id`,`it_id`),
@ -292,11 +291,11 @@ CREATE TABLE IF NOT EXISTS `yc4_event_item` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_faq`
-- Table structure for table `shop_faq`
--
DROP TABLE IF EXISTS `yc4_faq`;
CREATE TABLE IF NOT EXISTS `yc4_faq` (
DROP TABLE IF EXISTS `shop_faq`;
CREATE TABLE IF NOT EXISTS `shop_faq` (
`fa_id` int(11) NOT NULL AUTO_INCREMENT,
`fm_id` int(11) NOT NULL DEFAULT '0',
`fa_subject` text NOT NULL,
@ -309,11 +308,11 @@ CREATE TABLE IF NOT EXISTS `yc4_faq` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_faq_master`
-- Table structure for table `shop_faq_master`
--
DROP TABLE IF EXISTS `yc4_faq_master`;
CREATE TABLE IF NOT EXISTS `yc4_faq_master` (
DROP TABLE IF EXISTS `shop_faq_master`;
CREATE TABLE IF NOT EXISTS `shop_faq_master` (
`fm_id` int(11) NOT NULL AUTO_INCREMENT,
`fm_subject` varchar(255) NOT NULL DEFAULT '',
`fm_head_html` text NOT NULL,
@ -325,11 +324,11 @@ CREATE TABLE IF NOT EXISTS `yc4_faq_master` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_item`
-- Table structure for table `shop_item`
--
DROP TABLE IF EXISTS `yc4_item`;
CREATE TABLE IF NOT EXISTS `yc4_item` (
DROP TABLE IF EXISTS `shop_item`;
CREATE TABLE IF NOT EXISTS `shop_item` (
`it_id` varchar(10) NOT NULL DEFAULT '',
`ca_id` varchar(10) NOT NULL DEFAULT '0',
`ca_id2` varchar(255) NOT NULL DEFAULT '',
@ -382,11 +381,11 @@ CREATE TABLE IF NOT EXISTS `yc4_item` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_item_info`
-- Table structure for table `shop_item_info`
--
DROP TABLE IF EXISTS `yc4_item_info`;
CREATE TABLE IF NOT EXISTS `yc4_item_info` (
DROP TABLE IF EXISTS `shop_item_info`;
CREATE TABLE IF NOT EXISTS `shop_item_info` (
`ii_id` int(11) NOT NULL AUTO_INCREMENT,
`it_id` varchar(10) NOT NULL,
`ii_gubun` varchar(50) NOT NULL,
@ -400,11 +399,11 @@ CREATE TABLE IF NOT EXISTS `yc4_item_info` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_item_ps`
-- Table structure for table `shop_item_ps`
--
DROP TABLE IF EXISTS `yc4_item_ps`;
CREATE TABLE IF NOT EXISTS `yc4_item_ps` (
DROP TABLE IF EXISTS `shop_item_ps`;
CREATE TABLE IF NOT EXISTS `shop_item_ps` (
`is_id` int(11) NOT NULL AUTO_INCREMENT,
`it_id` varchar(10) NOT NULL DEFAULT '0',
`mb_id` varchar(20) NOT NULL DEFAULT '',
@ -423,11 +422,11 @@ CREATE TABLE IF NOT EXISTS `yc4_item_ps` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_item_qa`
-- Table structure for table `shop_item_qa`
--
DROP TABLE IF EXISTS `yc4_item_qa`;
CREATE TABLE IF NOT EXISTS `yc4_item_qa` (
DROP TABLE IF EXISTS `shop_item_qa`;
CREATE TABLE IF NOT EXISTS `shop_item_qa` (
`iq_id` int(11) NOT NULL AUTO_INCREMENT,
`it_id` varchar(10) NOT NULL DEFAULT '',
`mb_id` varchar(20) NOT NULL DEFAULT '',
@ -444,11 +443,11 @@ CREATE TABLE IF NOT EXISTS `yc4_item_qa` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_item_relation`
-- Table structure for table `shop_item_relation`
--
DROP TABLE IF EXISTS `yc4_item_relation`;
CREATE TABLE IF NOT EXISTS `yc4_item_relation` (
DROP TABLE IF EXISTS `shop_item_relation`;
CREATE TABLE IF NOT EXISTS `shop_item_relation` (
`it_id` varchar(10) NOT NULL DEFAULT '',
`it_id2` varchar(10) NOT NULL DEFAULT '',
PRIMARY KEY (`it_id`,`it_id2`)
@ -457,11 +456,11 @@ CREATE TABLE IF NOT EXISTS `yc4_item_relation` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_new_win`
-- Table structure for table `shop_new_win`
--
DROP TABLE IF EXISTS `yc4_new_win`;
CREATE TABLE IF NOT EXISTS `yc4_new_win` (
DROP TABLE IF EXISTS `shop_new_win`;
CREATE TABLE IF NOT EXISTS `shop_new_win` (
`nw_id` int(11) NOT NULL AUTO_INCREMENT,
`nw_begin_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`nw_end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
@ -479,11 +478,11 @@ CREATE TABLE IF NOT EXISTS `yc4_new_win` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_onlinecalc`
-- Table structure for table `shop_onlinecalc`
--
DROP TABLE IF EXISTS `yc4_onlinecalc`;
CREATE TABLE IF NOT EXISTS `yc4_onlinecalc` (
DROP TABLE IF EXISTS `shop_onlinecalc`;
CREATE TABLE IF NOT EXISTS `shop_onlinecalc` (
`oc_id` int(11) NOT NULL AUTO_INCREMENT,
`oc_subject` varchar(255) NOT NULL DEFAULT '',
`oc_category` text NOT NULL,
@ -495,11 +494,11 @@ CREATE TABLE IF NOT EXISTS `yc4_onlinecalc` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_order`
-- Table structure for table `shop_order`
--
DROP TABLE IF EXISTS `yc4_order`;
CREATE TABLE IF NOT EXISTS `yc4_order` (
DROP TABLE IF EXISTS `shop_order`;
CREATE TABLE IF NOT EXISTS `shop_order` (
`od_id` bigint(20) unsigned NOT NULL,
`uq_id` bigint(20) unsigned NOT NULL,
`mb_id` varchar(20) NOT NULL DEFAULT '',
@ -564,11 +563,11 @@ CREATE TABLE IF NOT EXISTS `yc4_order` (
-- --------------------------------------------------------
--
-- Table structure for table `yc4_wish`
-- Table structure for table `shop_wish`
--
DROP TABLE IF EXISTS `yc4_wish`;
CREATE TABLE IF NOT EXISTS `yc4_wish` (
DROP TABLE IF EXISTS `shop_wish`;
CREATE TABLE IF NOT EXISTS `shop_wish` (
`wi_id` int(11) NOT NULL AUTO_INCREMENT,
`mb_id` varchar(20) NOT NULL DEFAULT '',
`it_id` varchar(10) NOT NULL DEFAULT '0',