Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -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'>삭제";
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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');
|
||||||
?>
|
?>
|
||||||
@ -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');
|
||||||
?>
|
?>
|
||||||
@ -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');
|
||||||
?>
|
?>
|
||||||
@ -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');
|
||||||
?>
|
?>
|
||||||
@ -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>
|
||||||
|
|||||||
@ -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>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
// 테이블의 전체 레코드수만 얻음
|
// 테이블의 전체 레코드수만 얻음
|
||||||
@ -71,7 +72,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
|||||||
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>";
|
||||||
?>
|
?>
|
||||||
@ -139,12 +140,23 @@ 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, "…")."</a></td>
|
<td align=left><a href='$href'>".cut_str(stripslashes($row[it_name]), 60, "…")."</a></td>
|
||||||
</tr>";
|
</tr>";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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>";
|
||||||
|
|||||||
@ -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");
|
||||||
|
|
||||||
@ -110,10 +111,21 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
|||||||
$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>
|
||||||
|
|||||||
@ -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");
|
||||||
|
|
||||||
@ -38,7 +39,17 @@ $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 ";
|
||||||
@ -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, "…")."</a></td>
|
<td align=left><a href='$href'>".cut_str(stripslashes($row[it_name]), 60, "…")."</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>";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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");
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user