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

This commit is contained in:
gnuboard
2013-01-31 10:36:27 +09:00
14 changed files with 173 additions and 127 deletions

View File

@ -122,9 +122,9 @@ include_once(G4_ADMIN_PATH."/admin.head.php");
<td colspan=3> <td colspan=3>
<? <?
if ($is_admin == 'super') if ($is_admin == 'super')
echo "<input type="text" id="ca_mb_id" name="ca_mb_id" value='{$ca[ca_mb_id]}' maxlength=20 class=ed>"; echo "<input type=\"text\" id=\"ca_mb_id\" name=\"ca_mb_id\" value='{$ca[ca_mb_id]}' maxlength=20 class=ed>";
else else
echo "<input type="hidden" id="ca_mb_id" name="ca_mb_id" value='{$ca[ca_mb_id]}'>{$ca[ca_mb_id]}"; echo "<input type=\"hidden\" id=\"ca_mb_id\" name=\"ca_mb_id\" value='{$ca[ca_mb_id]}'>{$ca[ca_mb_id]}";
?> ?>
</td> </td>
</tr> </tr>
@ -243,7 +243,7 @@ include_once(G4_ADMIN_PATH."/admin.head.php");
$himg = "{$category_path}/{$ca[ca_id]}_h"; $himg = "{$category_path}/{$ca[ca_id]}_h";
if (file_exists($himg)) if (file_exists($himg))
{ {
echo "<input type="checkbox" id="ca_himg_del" name="ca_himg_del" value='1'>삭제"; echo "<input type=\"checkbox\" id=\"ca_himg_del\" name=\"ca_himg_del\" value='1'>삭제";
$himg_str = "<img src='$himg' border=0>"; $himg_str = "<img src='$himg' border=0>";
//$size = getimagesize($himg); //$size = getimagesize($himg);
//echo "<img src='$g4[admin_path]/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('himg', $size[0], $size[1]);\">"; //echo "<img src='$g4[admin_path]/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('himg', $size[0], $size[1]);\">";
@ -263,7 +263,7 @@ include_once(G4_ADMIN_PATH."/admin.head.php");
$timg_str = ""; $timg_str = "";
$timg = "{$category_path}/{$ca[ca_id]}_t"; $timg = "{$category_path}/{$ca[ca_id]}_t";
if (file_exists($timg)) { if (file_exists($timg)) {
echo "<input type="checkbox" id="ca_timg_del" name="ca_timg_del" value='1'>삭제"; echo "<input type=\"checkbox\" id=\"ca_timg_del\" name=\"ca_timg_del\" value='1'>삭제";
$timg_str = "<img src='$timg' border=0>"; $timg_str = "<img src='$timg' border=0>";
//$size = getimagesize($timg); //$size = getimagesize($timg);
//echo "<img src='$g4[admin_path]/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('timg', $size[0], $size[1]);\"><input type="checkbox" id="ca_timg_del" name="ca_timg_del" value='1'>삭제"; //echo "<img src='$g4[admin_path]/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('timg', $size[0], $size[1]);\"><input type="checkbox" id="ca_timg_del" name="ca_timg_del" value='1'>삭제";

View File

@ -22,11 +22,11 @@ if ($ca_id && ($move == 'up' || $move == 'down')) {
$dst = sql_fetch($sql); $dst = sql_fetch($sql);
} }
// 옮겨갈 분류가 있다면 // 옮겨갈 분류가 있다면
if ($dst) { if ($dst) {
$sql = " update $g4[yc4_category_table] set ca_sort = concat('$org[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$dst[ca_id]%' "; $sql = " update $g4[yc4_category_table] set ca_sort = concat('$org[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$dst[ca_id]%' ";
sql_query($sql); sql_query($sql);
$sql = " update $g4[yc4_category_table] set ca_sort = concat('$dst[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$org[ca_id]%' "; $sql = " update $g4[yc4_category_table] set ca_sort = concat('$dst[ca_sort]', mid(ca_sort,$level*4+1, 20)) where ca_id like '$org[ca_id]%' ";
sql_query($sql); sql_query($sql);
} }
@ -112,7 +112,7 @@ $qstr = "$qstr&sca=$sca&page=$page&save_stx=$stx";
<td width=60>출력순서</td> <td width=60>출력순서</td>
<td width=50>상품수</td> <td width=50>상품수</td>
<td width=120> <td width=120>
<? <?
if ($is_admin == 'super') if ($is_admin == 'super')
echo "<a href='./categoryform.php'><img src='$g4[admin_path]/img/icon_insert.gif' border=0 title='1단계분류 추가'></a>"; echo "<a href='./categoryform.php'><img src='$g4[admin_path]/img/icon_insert.gif' border=0 title='1단계분류 추가'></a>";
else else
@ -123,7 +123,7 @@ $qstr = "$qstr&sca=$sca&page=$page&save_stx=$stx";
<tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr> <tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr>
<? <?
for ($i=0; $row=sql_fetch_array($result); $i++) for ($i=0; $row=sql_fetch_array($result); $i++)
{ {
$s_level = ""; $s_level = "";
$level = strlen($row[ca_id]) / 2 - 1; $level = strlen($row[ca_id]) / 2 - 1;
@ -133,7 +133,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
for ($k=1; $k<$level; $k++) for ($k=1; $k<$level; $k++)
$s_level = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" . $s_level; $s_level = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" . $s_level;
$style = " "; $style = " ";
} }
else // 1단계 else // 1단계
{ {
$style = " style='border:1 solid; border-color:#0071BD;' "; $style = " style='border:1 solid; border-color:#0071BD;' ";
@ -145,7 +145,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
if ($is_admin == 'super') if ($is_admin == 'super')
$s_del = icon("삭제", "javascript:del('./categoryformupdate.php?w=d&ca_id=$row[ca_id]&$qstr');"); $s_del = icon("삭제", "javascript:del('./categoryformupdate.php?w=d&ca_id=$row[ca_id]&$qstr');");
// 해당 분류에 속한 상품의 갯수 // 해당 분류에 속한 상품의 갯수
$sql1 = " select COUNT(*) as cnt from $g4[yc4_item_table] where ca_id = '$row[ca_id]' or ca_id2 = '$row[ca_id]' or ca_id3 = '$row[ca_id]' "; $sql1 = " select COUNT(*) as cnt from $g4[yc4_item_table] where ca_id = '$row[ca_id]' or ca_id2 = '$row[ca_id]' or ca_id3 = '$row[ca_id]' ";
@ -154,10 +154,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$list = $i%2; $list = $i%2;
echo " echo "
<tr class='list$list center ht' id='tr{$i}'> <tr class='list$list center ht' id='tr{$i}'>
<td align=left><input type="hidden" name='ca_id[]' value='$row[ca_id]'>$row[ca_id]</td> <td align=left><input type=\"hidden\" name=\"ca_id[]\" value=\"{$row['ca_id']}\">{$row['ca_id']}</td>
<td align=left>$s_level <input type="text" name='ca_name[$i]' value='".get_text($row[ca_name])."' title='$row[ca_id]' required itemname='분류명' class=ed size=35 $style></td> <td align=left>$s_level <input type=\"text\" name='ca_name[$i]' value='".get_text($row[ca_name])."' title='$row[ca_id]' required itemname='분류명' class=ed size=35 $style></td>
<td><input type="checkbox" name='ca_menu[$i]' ".($row[ca_menu] ? "checked" : "")." value='1'></td> <td><input type=\"checkbox\" name='ca_menu[$i]' ".($row[ca_menu] ? "checked" : "")." value='1'></td>
<td><input type="checkbox" name='ca_use[$i]' ".($row[ca_use] ? "checked" : "")." value='1'></td> <td><input type=\"checkbox\" name='ca_use[$i]' ".($row[ca_use] ? "checked" : "")." value='1'></td>
<td><a href='javascript:;' onclick=\"category_move('$row[ca_id]', 'up')\" title='위로 이동'>△</a> <a href='javascript:;' onclick=\"category_move('$row[ca_id]', 'down')\" title='아래로 이동'>▽</a></td> <td><a href='javascript:;' onclick=\"category_move('$row[ca_id]', 'up')\" title='위로 이동'>△</a> <a href='javascript:;' onclick=\"category_move('$row[ca_id]', 'down')\" title='아래로 이동'>▽</a></td>
<td><a href='./itemlist.php?sca=$row[ca_id]'><U>$row1[cnt]</U></a></td> <td><a href='./itemlist.php?sca=$row[ca_id]'><U>$row1[cnt]</U></a></td>
<td>$s_upd $s_del $s_vie $s_add</td> <td>$s_upd $s_del $s_vie $s_add</td>
@ -182,7 +182,7 @@ if ($i == 0) {
</table> </table>
<script> <script>
function category_move(ca_id, move) function category_move(ca_id, move)
{ {
var f = document.flist; var f = document.flist;
f.ca_id.value = ca_id; f.ca_id.value = ca_id;

View File

@ -15,7 +15,7 @@ if($stx) {
} }
$g4['title'] = "카테고리찾기"; $g4['title'] = "카테고리찾기";
include_once($g4['path'].'/head.sub.php'); include_once(G4_PATH.'/head.sub.php');
?> ?>
<style type="text/css"> <style type="text/css">
@ -75,7 +75,7 @@ form { display: inline; }
<script> <script>
$(function() { $(function() {
$("#fcategory").submit(function() { $("#fcategory").submit(function() {
var stx = $.trim($("input[id="stx" name="stx"]").val()); var stx = $.trim($("input[name=stx]").val());
if(stx == "") { if(stx == "") {
alert("검색어를 입력해 주세요."); alert("검색어를 입력해 주세요.");
return false; return false;
@ -84,7 +84,7 @@ $(function() {
return true; return true;
}); });
$("input[id="check_all" name="check_all"]").click(function() { $("input[name=check_all]").click(function() {
if($(this).is(":checked")) { if($(this).is(":checked")) {
$("input[name^=s_ca_id]").attr("checked", true); $("input[name^=s_ca_id]").attr("checked", true);
} else { } else {
@ -121,7 +121,7 @@ $(function() {
} }
}); });
$opener.$("input[id="ca_id" name="ca_id"]").val(caid); $opener.$("input[name=ca_id]").val(caid);
self.close(); self.close();
return false; return false;
@ -130,5 +130,5 @@ $(function() {
</script> </script>
<?php <?php
include_once($g4['path'].'/tail.sub.php'); include_once(G4_PATH.'/tail.sub.php');
?> ?>

View File

@ -15,7 +15,7 @@ if($stx) {
} }
$g4['title'] = "상품찾기"; $g4['title'] = "상품찾기";
include_once($g4['path'].'/head.sub.php'); include_once(G4_PATH.'/head.sub.php');
?> ?>
<style type="text/css"> <style type="text/css">
@ -78,7 +78,7 @@ form { display: inline; }
<script> <script>
$(function() { $(function() {
$("#fitem").submit(function() { $("#fitem").submit(function() {
var stx = $.trim($("input[id="stx" name="stx"]").val()); var stx = $.trim($("input[name=stx]").val());
if(stx == "") { if(stx == "") {
alert("검색어를 입력해 주세요."); alert("검색어를 입력해 주세요.");
return false; return false;
@ -87,7 +87,7 @@ $(function() {
return true; return true;
}); });
$("input[id="check_all" name="check_all"]").click(function() { $("input[name=check_all]").click(function() {
if($(this).is(":checked")) { if($(this).is(":checked")) {
$("input[name^=s_it_id]").attr("checked", true); $("input[name^=s_it_id]").attr("checked", true);
} else { } else {
@ -124,7 +124,7 @@ $(function() {
} }
}); });
$opener.$("input[id="it_id" name="it_id"]").val(itid); $opener.$("input[name=it_id]").val(itid);
self.close(); self.close();
return false; return false;
@ -133,5 +133,5 @@ $(function() {
</script> </script>
<?php <?php
include_once($g4['path'].'/tail.sub.php'); include_once(G4_PATH.'/tail.sub.php');
?> ?>

View File

@ -15,7 +15,7 @@ if($stx) {
} }
$g4['title'] = "회원찾기"; $g4['title'] = "회원찾기";
include_once($g4['path'].'/head.sub.php'); include_once(G4_PATH.'/head.sub.php');
?> ?>
<style type="text/css"> <style type="text/css">
@ -83,7 +83,7 @@ form { display: inline; }
<script> <script>
$(function() { $(function() {
$("#fmember").submit(function() { $("#fmember").submit(function() {
var stx = $.trim($("input[id="stx" name="stx"]").val()); var stx = $.trim($("input[name=stx]").val());
if(stx == "") { if(stx == "") {
alert("검색어를 입력해 주세요."); alert("검색어를 입력해 주세요.");
return false; return false;
@ -92,7 +92,7 @@ $(function() {
return true; return true;
}); });
$("input[id="check_all" name="check_all"]").click(function() { $("input[name=check_all]").click(function() {
if($(this).is(":checked")) { if($(this).is(":checked")) {
$("input[name^=s_mb_id]").attr("checked", true); $("input[name^=s_mb_id]").attr("checked", true);
} else { } else {
@ -129,17 +129,17 @@ $(function() {
} }
}); });
$opener.$("input[id="mb_id" name="mb_id"]").val(mbid); $opener.$("input[name=mb_id]").val(mbid);
self.close(); self.close();
return false; return false;
}); });
<? if($sfl) { ?> <? if($sfl) { ?>
$("select[id="sfl" name="sfl"]").val("<? echo $sfl; ?>"); $("select[name=sfl]").val("<? echo $sfl; ?>");
<? } ?> <? } ?>
}); });
</script> </script>
<?php <?php
include_once($g4['path'].'/tail.sub.php'); include_once(G4_PATH.'/tail.sub.php');
?> ?>

View File

@ -120,7 +120,7 @@ include_once(G4_ADMIN_PATH."/admin.head.php");
<script> <script>
$(function() { $(function() {
<?php if($w == 'u') { ?> <?php if($w == 'u') { ?>
$("select[id="cp_trunc" name="cp_trunc"]").val("<? echo $write['cp_trunc']; ?>"); $("select[name=cp_trunc]").val("<? echo $write['cp_trunc']; ?>");
if("<?php echo $write['cp_method']; ?>" == "1") { if("<?php echo $write['cp_method']; ?>" == "1") {
$("#cp_amount_label").text("할인비율"); $("#cp_amount_label").text("할인비율");
$("#cp_amount_unit").text("%"); $("#cp_amount_unit").text("%");
@ -130,16 +130,16 @@ $(function() {
var u_cp_type = "<?php echo $write['cp_type']; ?>"; var u_cp_type = "<?php echo $write['cp_type']; ?>";
if(u_cp_type == "0") { // 상품할인 if(u_cp_type == "0") { // 상품할인
$("#cp_minimum_dsp").hide(); $("#cp_minimum_dsp").hide();
$("input[id="cp_target" name="cp_target"]").not("[value=3]").attr("disabled", false); $("input[name=cp_target]").not("[value=3]").attr("disabled", false);
$("input[id="cp_target" name="cp_target"]").filter("[value=3]").attr("disabled", true); $("input[name=cp_target]").filter("[value=3]").attr("disabled", true);
$("input[id="cp_method" name="cp_method"]").not("[value=0]").attr("disabled", false); $("input[name=cp_method]").not("[value=0]").attr("disabled", false);
$("#it_id_dsp").show(); $("#it_id_dsp").show();
$("#ca_id_dsp").hide(); $("#ca_id_dsp").hide();
} else if(u_cp_type == "2") { // 배송비할인 } else if(u_cp_type == "2") { // 배송비할인
$("#cp_minimum_dsp").show(); $("#cp_minimum_dsp").show();
$("input[id="cp_target" name="cp_target"]").not("[value=3]").attr("disabled", true); $("input[name=cp_target]").not("[value=3]").attr("disabled", true);
$("input[id="cp_target" name="cp_target"]").filter("[value=3]").attr("disabled", false); $("input[name=cp_target]").filter("[value=3]").attr("disabled", false);
$("input[id="cp_method" name="cp_method"]").not("[value=0]").attr("disabled", true); $("input[name=cp_method]").not("[value=0]").attr("disabled", true);
$("#cp_amount_label").text("할인금액"); $("#cp_amount_label").text("할인금액");
$("#cp_amount_unit").text("원"); $("#cp_amount_unit").text("원");
$("#cp_trunc_dsp").hide(); $("#cp_trunc_dsp").hide();
@ -148,9 +148,9 @@ $(function() {
$("#ca_id_dsp").hide(); $("#ca_id_dsp").hide();
} else { } else {
$("#cp_minimum_dsp").show(); $("#cp_minimum_dsp").show();
$("input[id="cp_target" name="cp_target"]").not("[value=3]").attr("disabled", true); $("input[name=cp_target]").not("[value=3]").attr("disabled", true);
$("input[id="cp_target" name="cp_target"]").filter("[value=3]").attr("disabled", false); $("input[name=cp_target]").filter("[value=3]").attr("disabled", false);
$("input[id="cp_method" name="cp_method"]").not("[value=0]").attr("disabled", false); $("input[name=cp_method]").not("[value=0]").attr("disabled", false);
$("#it_id_dsp").hide(); $("#it_id_dsp").hide();
$("#ca_id_dsp").hide(); $("#ca_id_dsp").hide();
} }
@ -166,22 +166,22 @@ $(function() {
$("#ca_id_dsp").hide(); $("#ca_id_dsp").hide();
} }
<?php } ?> <?php } ?>
$("input[id="cp_type" name="cp_type"]").click(function() { $("input[name=cp_type]").click(function() {
var val = $(this).val(); var val = $(this).val();
if(val == "0") { // 상품할인 if(val == "0") { // 상품할인
$("#cp_minimum_dsp").hide(); $("#cp_minimum_dsp").hide();
$("input[id="cp_target" name="cp_target"]").not("[value=3]").attr("disabled", false); $("input[name=cp_target]").not("[value=3]").attr("disabled", false);
$("input[id="cp_target" name="cp_target"]").filter("[value=0]").attr("checked", true); $("input[name=cp_target]").filter("[value=0]").attr("checked", true);
$("input[id="cp_target" name="cp_target"]").filter("[value=3]").attr("disabled", true); $("input[name=cp_target]").filter("[value=3]").attr("disabled", true);
$("input[id="cp_method" name="cp_method"]").not("[value=0]").attr("disabled", false); $("input[name=cp_method]").not("[value=0]").attr("disabled", false);
$("#it_id_dsp").show(); $("#it_id_dsp").show();
$("#ca_id_dsp").hide(); $("#ca_id_dsp").hide();
} else if(val == "2") { // 배송비할인 } else if(val == "2") { // 배송비할인
$("#cp_minimum_dsp").show(); $("#cp_minimum_dsp").show();
$("input[id="cp_target" name="cp_target"]").not("[value=3]").attr("disabled", true); $("input[name=cp_target]").not("[value=3]").attr("disabled", true);
$("input[id="cp_target" name="cp_target"]").filter("[value=3]").attr("checked", true).attr("disabled", false); $("input[name=cp_target]").filter("[value=3]").attr("checked", true).attr("disabled", false);
$("input[id="cp_method" name="cp_method"]").filter("[value=0]").attr("checked", true); $("input[name=cp_method]").filter("[value=0]").attr("checked", true);
$("input[id="cp_method" name="cp_method"]").not("[value=0]").attr("disabled", true); $("input[name=cp_method]").not("[value=0]").attr("disabled", true);
$("#cp_amount_label").text("할인금액"); $("#cp_amount_label").text("할인금액");
$("#cp_amount_unit").text("원"); $("#cp_amount_unit").text("원");
$("#cp_trunc_dsp").hide(); $("#cp_trunc_dsp").hide();
@ -190,15 +190,15 @@ $(function() {
$("#ca_id_dsp").hide(); $("#ca_id_dsp").hide();
} else { } else {
$("#cp_minimum_dsp").show(); $("#cp_minimum_dsp").show();
$("input[id="cp_target" name="cp_target"]").not("[value=3]").attr("disabled", true); $("input[name=cp_target]").not("[value=3]").attr("disabled", true);
$("input[id="cp_target" name="cp_target"]").filter("[value=3]").attr("checked", true).attr("disabled", false); $("input[name=cp_target]").filter("[value=3]").attr("checked", true).attr("disabled", false);
$("input[id="cp_method" name="cp_method"]").not("[value=0]").attr("disabled", false); $("input[name=cp_method]").not("[value=0]").attr("disabled", false);
$("#it_id_dsp").hide(); $("#it_id_dsp").hide();
$("#ca_id_dsp").hide(); $("#ca_id_dsp").hide();
} }
}); });
$("input[id="cp_method" name="cp_method"]").click(function() { $("input[name=cp_method]").click(function() {
var val = $(this).val(); var val = $(this).val();
if(val == "1") { // 정율할인 if(val == "1") { // 정율할인
$("#cp_amount_label").text("할인비율"); $("#cp_amount_label").text("할인비율");
@ -213,7 +213,7 @@ $(function() {
} }
}); });
$("input[id="cp_target" name="cp_target"]").click(function() { $("input[name=cp_target]").click(function() {
var val = $(this).val(); var val = $(this).val();
if(val == "2") { // 전체상품 if(val == "2") { // 전체상품
$("#it_id_dsp").hide(); $("#it_id_dsp").hide();
@ -227,33 +227,33 @@ $(function() {
} }
}); });
$("input[id="allcategory" name="allcategory"]").click(function() { $("input[name=allcategory]").click(function() {
if($(this).is(":checked")) { if($(this).is(":checked")) {
$("input[id="ca_id" name="ca_id"]").val("전체카테고리"); $("input[name=ca_id]").val("전체카테고리");
} else { } else {
$("input[id="ca_id" name="ca_id"]").val(""); $("input[name=ca_id]").val("");
} }
}); });
$("input[id="allmember" name="allmember"]").click(function() { $("input[name=allmember]").click(function() {
if($(this).is(":checked")) { if($(this).is(":checked")) {
$("input[id="mb_id" name="mb_id"]").val("전체회원"); $("input[name=mb_id]").val("전체회원");
} else { } else {
$("input[id="mb_id" name="mb_id"]").val(""); $("input[name=mb_id]").val("");
} }
}); });
$("form#fcoupon").submit(function() { $("form#fcoupon").submit(function() {
var cp_subject = $.trim($("input[id="cp_subject" name="cp_subject"]").val()); var cp_subject = $.trim($("input[name=cp_subject]").val());
var cp_type = $("input[id="cp_type" name="cp_type"]:checked").val(); var cp_type = $("input[name=cp_type]:checked").val();
var cp_target = $("input[id="cp_target" name="cp_target"]:checked").val(); var cp_target = $("input[name=cp_target]:checked").val();
var cp_method = $("input[id="cp_method" name="cp_method"]:checked").val(); var cp_method = $("input[name=cp_method]:checked").val();
var cp_amount = $.trim($("input[id="cp_amount" name="cp_amount"]").val()).replace(/[^0-9]/, ""); var cp_amount = $.trim($("input[name=cp_amount]").val()).replace(/[^0-9]/, "");
var cp_start = $.trim($("input[id="cp_start" name="cp_start"]").val()); var cp_start = $.trim($("input[name=cp_start]").val());
var cp_end = $.trim($("input[id="cp_end" name="cp_end"]").val()); var cp_end = $.trim($("input[name=cp_end]").val());
var it_id = $.trim($("input[id="it_id" name="it_id"]").val()); var it_id = $.trim($("input[name=it_id]").val());
var ca_id = $.trim($("input[id="ca_id" name="ca_id"]").val()); var ca_id = $.trim($("input[name=ca_id]").val());
var mb_id = $.trim($("input[id="mb_id" name="mb_id"]").val()); var mb_id = $.trim($("input[name=mb_id]").val());
if(cp_subject == "") { if(cp_subject == "") {
alert("쿠폰명을 입력해 주세요."); alert("쿠폰명을 입력해 주세요.");
@ -349,5 +349,5 @@ function leadzeros(n, digits) {
</script> </script>
<? <?
include_once ($g4['admin_path'].'/admin.tail.php'); include_once (G4_ADMIN_PATH.'/admin.tail.php');
?> ?>

View File

@ -129,7 +129,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
$list = $i%2; $list = $i%2;
echo " echo "
<tr class='list$list ht'> <tr class='list$list ht'>
<td align=\"center\"><input type="\""checkbox\" id="\" name="\""list_chk[]\" value=\"{$row['cp_no']}\" /></td> <td align=\"center\"><input type=\"checkbox\" id=\" name=\"list_chk[]\" value=\"{$row['cp_no']}\" /></td>
<td align=\"center\">".$row['cp_id']."</td> <td align=\"center\">".$row['cp_id']."</td>
<td>".$cp_subject."</td> <td>".$cp_subject."</td>
<td align=\"center\">".$mb_id."</td> <td align=\"center\">".$mb_id."</td>

View File

@ -1,7 +1,7 @@
<? <?
$sub_menu = "400630"; $sub_menu = "400630";
define('G4_EDITOR', 1);
include_once("./_common.php"); include_once("./_common.php");
include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php');
auth_check($auth[$sub_menu], "w"); auth_check($auth[$sub_menu], "w");
@ -115,7 +115,7 @@ include_once(G4_ADMIN_PATH."/admin.head.php");
$mimg_str = ""; $mimg_str = "";
$mimg = "$g4[path]/data/event/{$ev[ev_id]}_m"; $mimg = "$g4[path]/data/event/{$ev[ev_id]}_m";
if (file_exists($mimg)) { if (file_exists($mimg)) {
echo "<input type="checkbox" id="ev_mimg_del" name="ev_mimg_del" value='1'>삭제"; echo "<input type=\"checkbox\" id=\"ev_mimg_del\" name=\"ev_mimg_del\" value='1'>삭제";
$mimg_str = "<img src='$mimg' border=0>"; $mimg_str = "<img src='$mimg' border=0>";
} }
?> ?>
@ -132,7 +132,7 @@ include_once(G4_ADMIN_PATH."/admin.head.php");
$himg_str = ""; $himg_str = "";
$himg = "$g4[path]/data/event/{$ev[ev_id]}_h"; $himg = "$g4[path]/data/event/{$ev[ev_id]}_h";
if (file_exists($himg)) { if (file_exists($himg)) {
echo "<input type="checkbox" id="ev_himg_del" name="ev_himg_del" value='1'>삭제"; echo "<input type=\"checkbox\" id=\"ev_himg_del\" name=\"ev_himg_del\" value='1'>삭제";
$himg_str = "<img src='$himg' border=0>"; $himg_str = "<img src='$himg' border=0>";
} }
?> ?>
@ -149,7 +149,7 @@ include_once(G4_ADMIN_PATH."/admin.head.php");
$timg_str = ""; $timg_str = "";
$timg = "$g4[path]/data/event/{$ev[ev_id]}_t"; $timg = "$g4[path]/data/event/{$ev[ev_id]}_t";
if (file_exists($timg)) { if (file_exists($timg)) {
echo "<input type="checkbox" id="ev_timg_del" name="ev_timg_del" value='1'>삭제"; echo "<input type=\"checkbox\" id=\"ev_timg_del\" name=\"ev_timg_del\" value='1'>삭제";
$timg_str = "<img src='$timg' border=0>"; $timg_str = "<img src='$timg' border=0>";
} }
?> ?>

View File

@ -1,6 +1,7 @@
<? <?
$sub_menu = "400640"; $sub_menu = "400640";
include_once("./_common.php"); include_once("./_common.php");
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
auth_check($auth[$sub_menu], "r"); auth_check($auth[$sub_menu], "r");
@ -25,7 +26,7 @@ if ($sel_field == "") {
} }
$sql_common = " from $g4[yc4_item_table] a $sql_common = " from $g4[yc4_item_table] a
left join $g4[yc4_event_item_table] b on (a.it_id="b".it_id and b.ev_id='$ev_id') "; left join $g4[yc4_event_item_table] b on (a.it_id=b.it_id and b.ev_id='$ev_id') ";
$sql_common .= $sql_search; $sql_common .= $sql_search;
// 테이블의 전체 레코드수만 얻음 // 테이블의 전체 레코드수만 얻음
@ -68,10 +69,10 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
$event_option = "<option value=''>이벤트를 선택하세요"; $event_option = "<option value=''>이벤트를 선택하세요";
$sql1 = " select ev_id, ev_subject from $g4[yc4_event_table] order by ev_id desc "; $sql1 = " select ev_id, ev_subject from $g4[yc4_event_table] order by ev_id desc ";
$result1 = sql_query($sql1); $result1 = sql_query($sql1);
while ($row1=mysql_fetch_array($result1)) while ($row1=mysql_fetch_array($result1))
$event_option .= "<option value='$row1[ev_id]'>".conv_subject($row1[ev_subject], 20,"…"); $event_option .= "<option value='$row1[ev_id]'>".conv_subject($row1[ev_subject], 20,"…");
echo "<select id="ev_id" name="ev_id" onchange='this.form.submit();'>$event_option</select>"; echo "<select id=\"ev_id\" name=\"ev_id\" onchange='this.form.submit();'>$event_option</select>";
if ($ev_id) if ($ev_id)
echo "<script> document.flist.ev_id.value = '$ev_id'; </script>"; echo "<script> document.flist.ev_id.value = '$ev_id'; </script>";
?> ?>
@ -82,7 +83,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
<? <?
$sql1 = " select ca_id, ca_name from $g4[yc4_category_table] order by ca_id "; $sql1 = " select ca_id, ca_name from $g4[yc4_category_table] order by ca_id ";
$result1 = sql_query($sql1); $result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) for ($i=0; $row1=mysql_fetch_array($result1); $i++)
{ {
$len = strlen($row1[ca_id]) / 2 - 1; $len = strlen($row1[ca_id]) / 2 - 1;
$nbsp = ""; $nbsp = "";
@ -129,7 +130,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
</tr> </tr>
<tr><td colspan=4 height=1 bgcolor=#CCCCCC></td></tr> <tr><td colspan=4 height=1 bgcolor=#CCCCCC></td></tr>
<? <?
for ($i=0; $row=mysql_fetch_array($result); $i++) for ($i=0; $row=mysql_fetch_array($result); $i++)
{ {
$href = "{$g4[shop_path]}/item.php?it_id=$row[it_id]"; $href = "{$g4[shop_path]}/item.php?it_id=$row[it_id]";
@ -139,13 +140,24 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$ev = sql_fetch($sql); $ev = sql_fetch($sql);
$list = $i%2; $list = $i%2;
// 리스트 썸네일 이미지
$filepath = G4_DATA_PATH.'/item/'.$row['it_id'];
for($k=1; $k<=10; $k++) {
$idx = 'it_img'.$k;
if(file_exists($filepath.'/'.$row[$idx]) && is_file($filepath.'/'.$row[$idx])) {
$filename = $row[$idx];
break;
}
}
echo " echo "
<input type="hidden" name='it_id[$i]' value='$row[it_id]'> <input type=\"hidden\" name='it_id[$i]' value='$row[it_id]'>
<tr class='list$list center'> <tr class='list$list center'>
<td><input type="checkbox" name='ev_chk[$i]' ".($row[ev_id] ? "checked" : "")." value='1'></td> <td><input type=\"checkbox\" name='ev_chk[$i]' ".($row[ev_id] ? "checked" : "")." value='1'></td>
<td><a href='$href'>$row[it_id]</a></td> <td><a href='$href'>$row[it_id]</a></td>
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image("{$row[it_id]}_s", 50, 50)."</a></td> <td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'], $filename, 50, 50)."</a></td>
<td align=left><a href='$href'>".cut_str(stripslashes($row[it_name]), 60, "&#133")."</a></td> <td align=left><a href='$href'>".cut_str(stripslashes($row[it_name]), 60, "&#133")."</a></td>
</tr>"; </tr>";
} }
@ -168,7 +180,7 @@ if ($i == 0)
<script language="JavaScript"> <script language="JavaScript">
function fitemeventlistupdatecheck(f) function fitemeventlistupdatecheck(f)
{ {
if (!f.ev_id.value) if (!f.ev_id.value)
{ {
alert('이벤트를 선택하세요'); alert('이벤트를 선택하세요');
document.flist.ev_id.focus(); document.flist.ev_id.focus();

View File

@ -173,20 +173,20 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
} }
echo " echo "
<input type="hidden" name='it_id[$i]' value='$row[it_id]'> <input type=\"hidden\" name='it_id[$i]' value='$row[it_id]'>
<tr class='list$list'> <tr class='list$list'>
<td>$row[it_id]</td> <td>$row[it_id]</td>
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'], $filename, 50, 50)."</a></td> <td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'], $filename, 50, 50)."</a></td>
<td align=left>$tmp_ca_list<br><input type="text" name='it_name[$i]' value='".htmlspecialchars2(cut_str($row[it_name],250, ""))."' required size=40 class=ed></td> <td align=left>$tmp_ca_list<br><input type=\"text\" name='it_name[$i]' value='".htmlspecialchars2(cut_str($row[it_name],250, ""))."' required size=40 class=ed></td>
<td colspan=3> <td colspan=3>
<table width=210 cellpadding=0 cellspacing=0> <table width=210 cellpadding=0 cellspacing=0>
<tr> <tr>
<td> <td>
<table cellpadding=0 cellspacing=0> <table cellpadding=0 cellspacing=0>
<tr> <tr>
<td width=70 align=center><input type="text" name='it_amount[$i]' value='$row[it_amount]' class=ed size=7 style='text-align:right; background-color:#DDE6FE;'></td> <td width=70 align=center><input type=\"text\" name='it_amount[$i]' value='$row[it_amount]' class=ed size=7 style='text-align:right; background-color:#DDE6FE;'></td>
<td width=70 align=center><input type="text" name='it_amount2[$i]' value='$row[it_amount2]' class=ed size=7 style='text-align:right; background-color:#DDFEDE;'></td> <td width=70 align=center><input type=\"text\" name='it_amount2[$i]' value='$row[it_amount2]' class=ed size=7 style='text-align:right; background-color:#DDFEDE;'></td>
<td width=70 align=center><input type="text" name='it_amount3[$i]' value='$row[it_amount3]' class=ed size=7 style='text-align:right; background-color:#FEDDDD;'></td> <td width=70 align=center><input type=\"text\" name='it_amount3[$i]' value='$row[it_amount3]' class=ed size=7 style='text-align:right; background-color:#FEDDDD;'></td>
</tr> </tr>
</table></td> </table></td>
</tr> </tr>
@ -194,15 +194,15 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
<td> <td>
<table cellpadding=0 cellspacing=0> <table cellpadding=0 cellspacing=0>
<tr> <tr>
<td width=70 align=center><input type="text" name='it_cust_amount[$i]' value='$row[it_cust_amount]' class=ed size=7 style='text-align:right;'></td> <td width=70 align=center><input type=\"text\" name='it_cust_amount[$i]' value='$row[it_cust_amount]' class=ed size=7 style='text-align:right;'></td>
<td width=70 align=center><input type="text" name='it_point[$i]' value='$row[it_point]' class=ed size=7 style='text-align:right;'></td> <td width=70 align=center><input type=\"text\" name='it_point[$i]' value='$row[it_point]' class=ed size=7 style='text-align:right;'></td>
<td width=70 align=center><input type="text" name='it_stock_qty[$i]' value='$row[it_stock_qty]' class=ed size=7 style='text-align:right;'></td> <td width=70 align=center><input type=\"text\" name='it_stock_qty[$i]' value='$row[it_stock_qty]' class=ed size=7 style='text-align:right;'></td>
</tr> </tr>
</table></td> </table></td>
</tr> </tr>
</table></td> </table></td>
<td><input type="text" name='it_order[$i]' value='$row[it_order]' class=ed size=3 style='text-align:right;'></td> <td><input type=\"text\" name='it_order[$i]' value='$row[it_order]' class=ed size=3 style='text-align:right;'></td>
<td><input type="checkbox" name='it_use[$i]' ".($row[it_use] ? "checked" : "")." value='1'></td> <td><input type=\"checkbox\" name='it_use[$i]' ".($row[it_use] ? "checked" : "")." value='1'></td>
<td>$row[it_hit]</td> <td>$row[it_hit]</td>
<td>$s_mod $s_del $s_vie $s_copy</td> <td>$s_mod $s_del $s_vie $s_copy</td>
</tr>"; </tr>";

View File

@ -1,6 +1,7 @@
<? <?
$sub_menu = "500100"; $sub_menu = "500100";
include_once("./_common.php"); include_once("./_common.php");
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
auth_check($auth[$sub_menu], "r"); auth_check($auth[$sub_menu], "r");
@ -25,7 +26,7 @@ $sql = " select a.it_id,
SUM(ct_qty) as ct_status_sum SUM(ct_qty) as ct_status_sum
from $g4[yc4_cart_table] a, $g4[yc4_item_table] b "; from $g4[yc4_cart_table] a, $g4[yc4_item_table] b ";
$sql .= " where a.it_id = b.it_id "; $sql .= " where a.it_id = b.it_id ";
if ($fr_date && $to_date) if ($fr_date && $to_date)
{ {
$fr = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $fr_date); $fr = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $fr_date);
$to = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $to_date); $to = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $to_date);
@ -103,17 +104,28 @@ $qstr1 = "$qstr&sort1=$sort1&sort2=$sort2&fr_date=$fr_date&to_date=$to_date&sel_
</tr> </tr>
<tr><td colspan=20 height=1 bgcolor=#CCCCCC></td></tr> <tr><td colspan=20 height=1 bgcolor=#CCCCCC></td></tr>
<? <?
for ($i=0; $row=mysql_fetch_array($result); $i++) for ($i=0; $row=mysql_fetch_array($result); $i++)
{ {
$href = "$g4[shop_path]/item.php?it_id=$row[it_id]"; $href = "$g4[shop_path]/item.php?it_id=$row[it_id]";
$num = $rank + $i + 1; $num = $rank + $i + 1;
$list = $i%2; $list = $i%2;
// 리스트 썸네일 이미지
$filepath = G4_DATA_PATH.'/item/'.$row['it_id'];
for($k=1; $k<=10; $k++) {
$idx = 'it_img'.$k;
if(file_exists($filepath.'/'.$row[$idx]) && is_file($filepath.'/'.$row[$idx])) {
$filename = $row[$idx];
break;
}
}
echo " echo "
<tr class='list$list center'> <tr class='list$list center'>
<td>$num</td> <td>$num</td>
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image("{$row[it_id]}_s", 50, 50)."</a></td> <td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'], $filename, 50, 50)."</a></td>
<td align=left><a href='$href'>".cut_str($row[it_name],30)."</a></td> <td align=left><a href='$href'>".cut_str($row[it_name],30)."</a></td>
<td>$row[ct_status_1]</td> <td>$row[ct_status_1]</td>
<td>$row[ct_status_2]</td> <td>$row[ct_status_2]</td>
@ -125,7 +137,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
<td>$row[ct_status_8]</td> <td>$row[ct_status_8]</td>
<td>$row[ct_status_sum]</td> <td>$row[ct_status_sum]</td>
</tr><tr><td colspan=20 height=1 bgcolor=F5F5F5></td></tr>"; </tr><tr><td colspan=20 height=1 bgcolor=F5F5F5></td></tr>";
} }
if ($i == 0) { if ($i == 0) {
echo "<tr><td colspan=20 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n"; echo "<tr><td colspan=20 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";

View File

@ -1,6 +1,7 @@
<? <?
$sub_menu = "400620"; $sub_menu = "400620";
include_once("./_common.php"); include_once("./_common.php");
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
auth_check($auth[$sub_menu], "r"); auth_check($auth[$sub_menu], "r");
@ -35,10 +36,20 @@ $total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함 $from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select it_id, $sql = " select it_id,
it_name, it_name,
it_use, it_use,
it_stock_qty it_stock_qty,
it_img1,
it_img2,
it_img3,
it_img4,
it_img5,
it_img6,
it_img7,
it_img8,
it_img9,
it_img10
$sql_common $sql_common
order by $sort1 $sort2 order by $sort1 $sort2
limit $from_record, $rows "; limit $from_record, $rows ";
@ -117,7 +128,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
</tr> </tr>
<tr><td colspan=9 height=1 bgcolor=#CCCCCC></td></tr> <tr><td colspan=9 height=1 bgcolor=#CCCCCC></td></tr>
<? <?
for ($i=0; $row=mysql_fetch_array($result); $i++) for ($i=0; $row=mysql_fetch_array($result); $i++)
{ {
$href = "{$g4[shop_path]}/item.php?it_id=$row[it_id]"; $href = "{$g4[shop_path]}/item.php?it_id=$row[it_id]";
@ -135,17 +146,28 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$s_mod = icon("수정", "./itemform.php?w=u&it_id=$row[it_id]&ca_id=$row[ca_id]&$qstr"); $s_mod = icon("수정", "./itemform.php?w=u&it_id=$row[it_id]&ca_id=$row[ca_id]&$qstr");
$list = $i%2; $list = $i%2;
// 리스트 썸네일 이미지
$filepath = G4_DATA_PATH.'/item/'.$row['it_id'];
for($k=1; $k<=10; $k++) {
$idx = 'it_img'.$k;
if(file_exists($filepath.'/'.$row[$idx]) && is_file($filepath.'/'.$row[$idx])) {
$filename = $row[$idx];
break;
}
}
echo " echo "
<input type="hidden" name='it_id[$i]' value='$row[it_id]'> <input type=\"hidden\" name='it_id[$i]' value='$row[it_id]'>
<tr class='list$list center'> <tr class='list$list center'>
<td>$row[it_id]</td> <td>$row[it_id]</td>
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image("{$row[it_id]}_s", 50, 50)."</a></td> <td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'], $filename, 50, 50)."</a></td>
<td align=left><a href='$href'>".cut_str(stripslashes($row[it_name]), 60, "&#133")."</a></td> <td align=left><a href='$href'>".cut_str(stripslashes($row[it_name]), 60, "&#133")."</a></td>
<td align=right>".number_format($row[it_stock_qty])."</td> <td align=right>".number_format($row[it_stock_qty])."</td>
<td align=right>".number_format($wait_qty)."</td> <td align=right>".number_format($wait_qty)."</td>
<td align=right>".number_format($temporary_qty)."</td> <td align=right>".number_format($temporary_qty)."</td>
<td align=right><input type="text" name='it_stock_qty[$i]' value='$row[it_stock_qty]' class=ed size=10 style='text-align:right;' autocomplete='off'></td> <td align=right><input type=\"text\" name='it_stock_qty[$i]' value='$row[it_stock_qty]' class=ed size=10 style='text-align:right;' autocomplete='off'></td>
<td><input type="checkbox" name='it_use[$i]' value='1' ".($row[it_use] ? "checked" : "")."></td> <td><input type=\"checkbox\" name='it_use[$i]' value='1' ".($row[it_use] ? "checked" : "")."></td>
<td>$s_mod</td> <td>$s_mod</td>
</tr><tr>"; </tr><tr>";
} }

View File

@ -11,7 +11,7 @@ $where = " where ";
$sql_search = ""; $sql_search = "";
if ($search != "") if ($search != "")
{ {
if ($sel_field != "") if ($sel_field != "")
{ {
$sql_search .= " $where $sel_field like '%$search%' "; $sql_search .= " $where $sel_field like '%$search%' ";
$where = " and "; $where = " and ";
@ -38,10 +38,10 @@ $total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함 $from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select a.od_id, $sql = " select a.od_id,
a.*, "._MISU_QUERY_." a.*, "._MISU_QUERY_."
$sql_common $sql_common
group by a.od_id group by a.od_id
order by $sort1 $sort2 order by $sort1 $sort2
limit $from_record, $rows "; limit $from_record, $rows ";
$result = sql_query($sql); $result = sql_query($sql);
@ -126,7 +126,7 @@ $tot_dc_amount = 0;
$tot_receiptamount = 0; $tot_receiptamount = 0;
$tot_receiptcancel = 0; $tot_receiptcancel = 0;
$tot_misuamount = 0; $tot_misuamount = 0;
for ($i=0; $row=mysql_fetch_array($result); $i++) for ($i=0; $row=mysql_fetch_array($result); $i++)
{ {
// 결제 수단 // 결제 수단
$s_receipt_way = $s_br = ""; $s_receipt_way = $s_br = "";
@ -137,19 +137,19 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
} }
else else
{ {
if ($row[od_temp_bank] > 0 || $row[od_receipt_bank] > 0) if ($row[od_temp_bank] > 0 || $row[od_receipt_bank] > 0)
{ {
//$s_receipt_way = "무통장입금"; //$s_receipt_way = "무통장입금";
$s_receipt_way = cut_str($row[od_bank_account],8,""); $s_receipt_way = cut_str($row[od_bank_account],8,"");
$s_br = "<br>"; $s_br = "<br>";
} }
if ($row[od_temp_card] > 0 || $row[od_receipt_card] > 0) if ($row[od_temp_card] > 0 || $row[od_receipt_card] > 0)
{ {
// 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임 // 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임
if ($row[misuamount] <= 0 && $row[od_receipt_card] == 0) if ($row[misuamount] <= 0 && $row[od_receipt_card] == 0)
; // 화면 출력하지 않음 ; // 화면 출력하지 않음
else else
{ {
$s_receipt_way .= $s_br."카드"; $s_receipt_way .= $s_br."카드";
if ($row[od_receipt_card] == 0) if ($row[od_receipt_card] == 0)
@ -160,7 +160,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
} }
if ($row[od_receipt_point] > 0) if ($row[od_receipt_point] > 0)
$s_receipt_way .= $s_br."포인트"; $s_receipt_way .= $s_br."포인트";
$s_mod = icon("수정", "./orderform.php?od_id=$row[od_id]&$qstr"); $s_mod = icon("수정", "./orderform.php?od_id=$row[od_id]&$qstr");
$s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id=$row[od_id]&on_uid=$row[on_uid]&mb_id=$row[mb_id]&$qstr&list=2');"); $s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id=$row[od_id]&on_uid=$row[on_uid]&mb_id=$row[mb_id]&$qstr&list=2');");
@ -194,14 +194,14 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$tot_misu += $row[misu]; $tot_misu += $row[misu];
// 상품개별출력 // 상품개별출력
$sql2 = " select c.it_name, $sql2 = " select c.it_name,
b.* b.*
from $g4[yc4_order_table] a from $g4[yc4_order_table] a
left join $g4[yc4_cart_table] b on (a.on_uid = b.on_uid) left join $g4[yc4_cart_table] b on (a.on_uid = b.on_uid)
left join $g4[yc4_item_table] c on (b.it_id = c.it_id) left join $g4[yc4_item_table] c on (b.it_id = c.it_id)
where od_id = '$row[od_id]' "; where od_id = '$row[od_id]' ";
$result2 = sql_query($sql2); $result2 = sql_query($sql2);
for ($k=0; $row2=sql_fetch_array($result2); $k++) for ($k=0; $row2=sql_fetch_array($result2); $k++)
{ {
$href = "$g4[shop_path]/item.php?it_id=$row2[it_id]"; $href = "$g4[shop_path]/item.php?it_id=$row2[it_id]";
$it_name = "<a href='$href'>".cut_str($row2[it_name],35)."</a><br>"; $it_name = "<a href='$href'>".cut_str($row2[it_name],35)."</a><br>";

View File

@ -19,7 +19,7 @@ $sql = " select *
$result = sql_query($sql); $result = sql_query($sql);
$g4['title'] = "추가배송비관리"; $g4['title'] = "추가배송비관리";
include_once ($g4['admin_path']."/admin.head.php"); include_once (G4_ADMIN_PATH."/admin.head.php");
?> ?>
<style type="text/css"> <style type="text/css">
@ -129,5 +129,5 @@ $(function() {
</script> </script>
<?php <?php
include_once ($g4['admin_path']."/admin.tail.php"); include_once (G4_ADMIN_PATH."/admin.tail.php");
?> ?>