관리자 경로 수정 작업중

This commit is contained in:
chicpro
2013-03-18 18:33:01 +09:00
parent 3f463df4fc
commit 51e805f620
7 changed files with 173 additions and 173 deletions

View File

@ -1,34 +1,34 @@
<?
$sub_menu = "400710";
include_once("./_common.php");
$sub_menu = '400710';
include_once('./_common.php');
include_once ("$g4[path]/lib/cheditor4.lib.php");
auth_check($auth[$sub_menu], "w");
$html_title = "FAQ 상세";
$html_title = 'FAQ 상세';
$sql = " select * from $g4[yc4_faq_master_table] where fm_id = '$fm_id' ";
$sql = " select * from {$g4['yc4_faq_master_table']} where fm_id = '$fm_id' ";
$fm = sql_fetch($sql);
if ($w == "u")
if ($w == "u")
{
$html_title .= " 수정";
$readonly = " readonly";
$sql = " select * from $g4[yc4_faq_table] where fa_id = '$fa_id' ";
$sql = " select * from {$g4['yc4_faq_table']} where fa_id = '$fa_id' ";
$fa = sql_fetch($sql);
if (!$fa[fa_id]) alert("등록된 자료가 없습니다.");
if (!$fa['fa_id']) alert("등록된 자료가 없습니다.");
$fa[fa_subject] = htmlspecialchars2($fa[fa_subject]);
$fa[fa_content] = htmlspecialchars2($fa[fa_content]);
}
$fa['fa_subject'] = htmlspecialchars2($fa['fa_subject']);
$fa['fa_content'] = htmlspecialchars2($fa['fa_content']);
}
else
$html_title .= " 입력";
$html_title .= ' 입력';
$html_title .= " : $fm[fm_subject]";
$html_title .= ' : '.$fm['fm_subject'];
$g4[title] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
$g4['title'] = $html_title;
include_once (G4_ADMIN_PATH.'/admin.head.php');
?>
<?=subtitle($html_title)?><p>
@ -48,14 +48,14 @@ include_once ("$g4[admin_path]/admin.head.php");
<tr class=ht>
<td> 출력 순서</td>
<td>
<input type=text id=fa_order name=fa_order size=10 maxlength=10 value='<?=$fa[fa_order]?>' class=ed>
<input type=text id=fa_order name=fa_order size=10 maxlength=10 value='<?=$fa['fa_order']?>' class=ed>
<?=help('숫자가 작을수록 FAQ 페이지의 상단에 출력합니다.', 60, -50)?>
</td>
</tr>
<tr>
<td> 질문
<td> 질문
<? if ($w == 'u') {
echo icon("보기", "$g4[shop_path]/faq.php?fm_id=$fm_id");
echo icon("보기", G4_SHOP_URL."/faq.php?fm_id=$fm_id");
}
?>
</td>
@ -78,7 +78,7 @@ include_once ("$g4[admin_path]/admin.head.php");
</form>
<script language="javascript">
function frmfaqform_check(f)
function frmfaqform_check(f)
{
errmsg = "";
errfld = "";
@ -86,7 +86,7 @@ function frmfaqform_check(f)
//check_field(f.fa_subject, "제목을 입력하세요.");
//check_field(f.fa_content, "내용을 입력하세요.");
if (errmsg != "")
if (errmsg != "")
{
alert(errmsg);
errfld.focus();
@ -103,5 +103,5 @@ document.getElementById('fa_order').focus();
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -1,6 +1,6 @@
<?
$sub_menu = "400710";
include_once("./_common.php");
$sub_menu = '400710';
include_once('./_common.php');
if ($w == "u" || $w == "d")
check_demo();
@ -14,25 +14,25 @@ $sql_common = " fa_subject = '$fa_subject',
fa_content = '$fa_content',
fa_order = '$fa_order' ";
if ($w == "")
if ($w == "")
{
$sql = " insert $g4[yc4_faq_table]
$sql = " insert {$g4['yc4_faq_table']}
set fm_id ='$fm_id',
$sql_common ";
sql_query($sql);
$fa_id = mysql_insert_id();
}
else if ($w == "u")
}
else if ($w == "u")
{
$sql = " update $g4[yc4_faq_table]
set $sql_common
$sql = " update {$g4['yc4_faq_table']}
set $sql_common
where fa_id = '$fa_id' ";
sql_query($sql);
}
else if ($w == "d")
}
else if ($w == "d")
{
$sql = " delete from $g4[yc4_faq_table] where fa_id = '$fa_id' ";
$sql = " delete from {$g4['yc4_faq_table']} where fa_id = '$fa_id' ";
sql_query($sql);
}

View File

@ -1,16 +1,16 @@
<?
$sub_menu = "400710";
include_once("./_common.php");
$sub_menu = '400710';
include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4[title] = "FAQ 상세관리 : $fm[fm_subject]";
include_once ("$g4[admin_path]/admin.head.php");
$g4['title'] = 'FAQ 상세관리 : '.$fm['fm_subject'];
include_once (G4_ADMIN_PATH.'/admin.head.php');
$sql = " select * from $g4[yc4_faq_master_table] where fm_id = '$fm_id' ";
$sql = " select * from {$g4['yc4_faq_master_table']} where fm_id = '$fm_id' ";
$fm = sql_fetch($sql);
$sql_common = " from $g4[yc4_faq_table] where fm_id = '$fm_id' ";
$sql_common = " from {$g4['yc4_faq_table']} where fm_id = '$fm_id' ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@ -41,19 +41,19 @@ $result = sql_query($sql);
<td>제목</td>
<td>순서</td>
<td>
<a href='./faqform.php?fm_id=<?=$fm[fm_id]?>'><img src='<?=$g4[admin_path]?>/img/icon_insert.gif' border=0></a>
<a href='<?="$g4[shop_path]/faq.php?fm_id=$fm[fm_id]"?>'><img src='<?=$g4[admin_path]?>/img/icon_view.gif' border=0></a>
<a href='./faqform.php?fm_id=<?=$fm['fm_id']?>'><img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' border=0></a>
<a href='<?=G4_SHOP_URL?>/faq.php?fm_id=<?=$fm['fm_id']?>'><img src='<?=G4_ADMIN_URL?>/img/icon_view.gif' border=0></a>
</td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#CCCCCC></td></tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$row1 = sql_fetch(" select COUNT(*) as cnt from $g4[yc4_faq_table] where fm_id = '$row[fm_id]' ");
$row1 = sql_fetch(" select COUNT(*) as cnt from {$g4['yc4_faq_table']} where fm_id = '{$row['fm_id']}' ");
$cnt = $row1[cnt];
$s_mod = icon("수정", "./faqform.php?w=u&fm_id=$row[fm_id]&fa_id=$row[fa_id]");
$s_del = icon("삭제", "javascript:del('./faqformupdate.php?w=d&fm_id=$row[fm_id]&fa_id=$row[fa_id]');");
$s_mod = icon("수정", "./faqform.php?w=u&fm_id={$row['fm_id']}&fa_id={$row['fa_id']}");
$s_del = icon("삭제", "javascript:del('./faqformupdate.php?w=d&fm_id={$row['fm_id']}&fa_id={$row['fa_id']}');");
$num = $i + 1;
@ -61,8 +61,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
echo "
<tr class='list$list ht'>
<td align=center>$num</td>
<td>" . stripslashes($row[fa_subject]) . "</td>
<td align=center>$row[fa_order]</td>
<td>" . stripslashes($row['fa_subject']) . "</td>
<td align=center>{$row['fa_order']}</td>
<td align=center>$s_mod $s_del</td>
</tr>";
}
@ -81,9 +81,9 @@ if ($i == 0) {
<tr>
<td style="line-height:220%;">
<B><FONT COLOR="#18ABFF">&middot; FAQ 질문, 답변 등록하기</FONT></B><BR>
&nbsp;&nbsp;: FAQ는 무제한으로 등록할 수 있습니다.<BR>
1. <img src='<?=$g4[admin_path]?>/img/icon_insert.gif' align=absmiddle>를 눌러 세부적인 질문과 답변을 입력합니다.<BR>
1. <img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' align=absmiddle>를 눌러 세부적인 질문과 답변을 입력합니다.<BR>
</td>
</tr>
</table>
@ -96,5 +96,5 @@ if ($i == 0) {
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -1,27 +1,27 @@
<?
$sub_menu = "400710";
include_once("./_common.php");
$sub_menu = '400710';
include_once('./_common.php');
include_once ("$g4[path]/lib/cheditor4.lib.php");
auth_check($auth[$sub_menu], "w");
$html_title = "FAQ";
if ($w == "u")
$html_title = 'FAQ';
if ($w == "u")
{
$html_title .= " 수정";
$readonly = " readonly";
$html_title .= ' 수정';
$readonly = ' readonly';
$sql = " select * from $g4[yc4_faq_master_table] where fm_id = '$fm_id' ";
$sql = " select * from {$g4['yc4_faq_master_table']} where fm_id = '$fm_id' ";
$fm = sql_fetch($sql);
if (!$fm[fm_id]) alert("등록된 자료가 없습니다.");
}
else
if (!$fm['fm_id']) alert('등록된 자료가 없습니다.');
}
else
{
$html_title .= " 입력";
$html_title .= ' 입력';
}
$g4[title] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
$g4['title'] = $html_title;
include_once (G4_ADMIN_PATH.'/admin.head.php');
?>
<?=subtitle($html_title)?>
@ -40,13 +40,13 @@ include_once ("$g4[admin_path]/admin.head.php");
<tr class=ht>
<td>제목</td>
<td>
<input type=text class=ed name=fm_subject size=60 value='<?=get_text($fm[fm_subject]) ?>' required itemname="제목">
<?
if ($w == 'u')
{
echo icon("보기", "$g4[shop_path]/faq.php?fm_id=$fm_id");
<input type=text class=ed name=fm_subject size=60 value='<?=get_text($fm['fm_subject']) ?>' required itemname="제목">
<?
if ($w == 'u')
{
echo icon("보기", G4_SHOP_URL."/faq.php?fm_id=$fm_id");
echo " <a href='./faqlist.php?fm_id=$fm_id'>상세보기</a>";
}
}
?>
</td>
</tr>
@ -55,10 +55,10 @@ include_once ("$g4[admin_path]/admin.head.php");
<td colspan=3>
<input type=file class=ed name=fm_himg size=40>
<?
$himg = "$g4[path]/data/faq/{$fm[fm_id]}_h";
$himg = G4_DATA_PATH."/faq/{$fm['fm_id']}_h";
if (file_exists($himg)) {
echo "<input type=checkbox name=fm_himg_del value='1'>삭제";
$himg_str = "<img src='$himg' border=0>";
$himg_str = "<img src='".G4_DATA_URL."/faq/{$fm['fm_id']}_h' border=0>";
}
?>
</td>
@ -70,10 +70,10 @@ include_once ("$g4[admin_path]/admin.head.php");
<td colspan=3>
<input type=file class=ed name=fm_timg size=40>
<?
$timg = "$g4[path]/data/faq/{$fm[fm_id]}_t";
$timg = G4_DATA_PATH."/faq/{$fm['fm_id']}_t";
if (file_exists($timg)) {
echo "<input type=checkbox name=fm_timg_del value='1'>삭제";
$timg_str = "<img src='$timg' border=0>";
$timg_str = "<img src='".G4_DATA_URL."/faq/{$fm['fm_id']}_t' border=0>";
}
?>
</td>
@ -97,7 +97,7 @@ include_once ("$g4[admin_path]/admin.head.php");
</form>
<script language="javascript">
function frmfaqmasterform_check(f)
function frmfaqmasterform_check(f)
{
<?=cheditor3('fm_head_html');?>
<?=cheditor3('fm_tail_html');?>
@ -107,5 +107,5 @@ document.frmfaqmasterform.fm_subject.focus();
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -1,6 +1,6 @@
<?
$sub_menu = "400710";
include_once("./_common.php");
$sub_menu = '400710';
include_once('./_common.php');
if ($w == "u" || $w == "d")
check_demo();
@ -10,52 +10,52 @@ if ($W == 'd')
else
auth_check($auth[$sub_menu], "w");
@mkdir("$g4[path]/data/faq", 0707);
@chmod("$g4[path]/data/faq", 0707);
@mkdir(G4_DATA_PATH."/faq", 0707);
@chmod(G4_DATA_PATH."/faq", 0707);
if ($fm_himg_del) @unlink("$g4[path]/data/faq/{$fm_id}_h");
if ($fm_timg_del) @unlink("$g4[path]/data/faq/{$fm_id}_t");
if ($fm_himg_del) @unlink(G4_DATA_PATH."/faq/{$fm_id}_h");
if ($fm_timg_del) @unlink(G4_DATA_PATH."/faq/{$fm_id}_t");
$sql_common = " set fm_subject = '$fm_subject',
fm_head_html = '$fm_head_html',
fm_tail_html = '$fm_tail_html' ";
if ($w == "")
if ($w == "")
{
$sql = " alter table $g4[yc4_faq_master_table] auto_increment=1 ";
$sql = " alter table {$g4['yc4_faq_master_table']} auto_increment=1 ";
sql_query($sql);
$sql = " insert $g4[yc4_faq_master_table] $sql_common ";
$sql = " insert {$g4['yc4_faq_master_table']} $sql_common ";
sql_query($sql);
$fm_id = mysql_insert_id();
}
else if ($w == "u")
}
else if ($w == "u")
{
$sql = " update $g4[yc4_faq_master_table] $sql_common where fm_id = '$fm_id' ";
$sql = " update {$g4['yc4_faq_master_table']} $sql_common where fm_id = '$fm_id' ";
sql_query($sql);
}
else if ($w == "d")
}
else if ($w == "d")
{
@unlink("$g4[path]/data/faq/{$fm_id}_h");
@unlink("$g4[path]/data/faq/{$fm_id}_t");
@unlink(G4_DATA_PATH."/faq/{$fm_id}_h");
@unlink(G4_DATA_PATH."/faq/{$fm_id}_t");
// FAQ삭제
$sql = " delete from $g4[yc4_faq_master_table] where fm_id = '$fm_id' ";
$sql = " delete from {$g4['yc4_faq_master_table']} where fm_id = '$fm_id' ";
sql_query($sql);
// FAQ상세삭제
$sql = " delete from $g4[yc4_faq_table] where fm_id = '$fm_id' ";
$sql = " delete from {$g4['yc4_faq_table']} where fm_id = '$fm_id' ";
sql_query($sql);
}
if ($w == "" || $w == "u")
if ($w == "" || $w == "u")
{
if ($_FILES[fm_himg][name]) upload_file($_FILES[fm_himg][tmp_name], $fm_id . "_h", "$g4[path]/data/faq");
if ($_FILES[fm_timg][name]) upload_file($_FILES[fm_timg][tmp_name], $fm_id . "_t", "$g4[path]/data/faq");
if ($_FILES['fm_himg']['name']) upload_file($_FILES['fm_himg']['tmp_name'], $fm_id."_h", G4_DATA_PATH."/faq");
if ($_FILES['fm_timg']['name']) upload_file($_FILES['fm_timg']['tmp_name'], $fm_id."_t", G4_DATA_PATH."/faq");
goto_url("./faqmasterform.php?w=u&fm_id=$fm_id");
}
}
else
goto_url("./faqmasterlist.php");
?>

View File

@ -1,31 +1,31 @@
<?
$sub_menu = "400710";
include_once("./_common.php");
$sub_menu = '400710';
include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4[title] = "FAQ관리";
include_once ("$g4[admin_path]/admin.head.php");
$g4['title'] = 'FAQ관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$sql_common = " from $g4[yc4_faq_master_table] ";
$sql_common = " from {$g4['yc4_faq_master_table']} ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
$row = sql_fetch($sql);
$total_count = $row[cnt];
$total_count = $row['cnt'];
$rows = $config[cf_page_rows];
$rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = "select * $sql_common order by fm_id desc limit $from_record, $config[cf_page_rows] ";
$sql = "select * $sql_common order by fm_id desc limit $from_record, {$config['cf_page_rows']} ";
$result = sql_query($sql);
?>
<table width=100%>
<tr>
<td width=20%><a href='<?=$_SERVER[PHP_SELF]?>'>처음</a></td>
<td width=20%><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></td>
<td width=60% align=center>&nbsp;</td>
<td width=20% align=right>건수 : <? echo $total_count ?>&nbsp;</td>
</tr>
@ -44,27 +44,27 @@ $result = sql_query($sql);
<td>제목</td>
<td>FAQ 수</td>
<td>상세보기</td>
<td><a href='./faqmasterform.php'><img src='<?=$g4[admin_path]?>/img/icon_insert.gif' border=0 title='등록'></a></td>
<td><a href='./faqmasterform.php'><img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' border=0 title='등록'></a></td>
</tr>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$sql1 = " select COUNT(*) as cnt from $g4[yc4_faq_table] where fm_id = '$row[fm_id]' ";
$sql1 = " select COUNT(*) as cnt from {$g4['yc4_faq_table']} where fm_id = '{$row['fm_id']}' ";
$row1 = sql_fetch($sql1);
$cnt = $row1[cnt];
$cnt = $row1['cnt'];
$s_detail_vie = icon("보기", "./faqlist.php?fm_id=$row[fm_id]");
$s_detail_vie = icon("보기", "./faqlist.php?fm_id={$row['fm_id']}");
$s_mod = icon("수정", "./faqmasterform.php?w=u&fm_id=$row[fm_id]");
$s_del = icon("삭제", "javascript:del('./faqmasterformupdate.php?w=d&fm_id=$row[fm_id]');");
$s_vie = icon("보기", "$g4[shop_path]/faq.php?fm_id=$row[fm_id]");
$s_mod = icon("수정", "./faqmasterform.php?w=u&fm_id={$row['fm_id']}");
$s_del = icon("삭제", "javascript:del('./faqmasterformupdate.php?w=d&fm_id={$row['fm_id']}');");
$s_vie = icon("보기", G4_SHOP_URL."/faq.php?fm_id={$row['fm_id']}");
$list = $i%2;
echo "
<tr class='list$list ht'>
<td align=center>$row[fm_id]</td>
<td>" . stripslashes($row[fm_subject]) . "</td>
<td align=center>{$row['fm_id']}</td>
<td>" . stripslashes($row['fm_subject']) . "</td>
<td align=center>$cnt</td>
<td align=center>$s_detail_vie</td>
<td align=center>$s_mod $s_del $s_vie</td>
@ -80,7 +80,7 @@ if ($i == 0)
<table width=100%>
<tr bgcolor=#ffffff>
<td width=50%></td>
<td width=50% align=right><?=get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");?></td>
<td width=50% align=right><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></td>
</tr>
</table><br>
@ -94,8 +94,8 @@ if ($i == 0)
<B><FONT COLOR="18ABFF">&middot; FAQ 등록하기</FONT></B><BR>
: FAQ는 무제한으로 등록할 수 있습니다.<BR>
1. 먼저 <img src='<?=$g4[admin_path]?>/img/icon_insert.gif' align=absmiddle>를 눌러 FAQ Master를 생성합니다. (하나의 FAQ 타이틀 생성 : 자주하시는 질문, 이용안내..등 )<BR>
2. 상세보기에 있는 <img src='<?=$g4[admin_path]?>/img/icon_viewer.gif' align=absmiddle>을 눌러 세부 내용으로 들어갑니다.
1. 먼저 <img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' align=absmiddle>를 눌러 FAQ Master를 생성합니다. (하나의 FAQ 타이틀 생성 : 자주하시는 질문, 이용안내..등 )<BR>
2. 상세보기에 있는 <img src='<?=G4_ADMIN_URL?>/img/icon_viewer.gif' align=absmiddle>을 눌러 세부 내용으로 들어갑니다.
</td>
</tr>
</table>
@ -104,5 +104,5 @@ if ($i == 0)
</table>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -1,11 +1,11 @@
<?
$sub_menu = "400000";
include_once("./_common.php");
$sub_menu = '400000';
include_once('./_common.php');
$max_limit = 7; // 몇행 출력할 것인지?
$g4[title] = " 쇼핑몰관리";
include_once ("$g4[admin_path]/admin.head.php");
$g4['title'] = ' 쇼핑몰관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
?>
<table width=100%>
@ -14,7 +14,7 @@ include_once ("$g4[admin_path]/admin.head.php");
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=70%><?=subtitle("입금완료 미배송내역")?></td>
<td width=30% align=right><a href='./deliverylist.php?sort1=od_invoice&sort2=asc&chk_misu=1'><img src='<?=$g4[admin_path]?>/img/icon_more.gif' border=0></a>&nbsp;</td>
<td width=30% align=right><a href='./deliverylist.php?sort1=od_invoice&sort2=asc&chk_misu=1'><img src='<?=G4_ADMIN_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
@ -30,44 +30,44 @@ include_once ("$g4[admin_path]/admin.head.php");
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
<?
// 미수금이 없고 운송장번호가 없는 자료를 구함
$sql = " select a.od_id,
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from $g4[yc4_order_table] a
left join $g4[yc4_cart_table] b on (b.on_uid=a.on_uid)
group by a.od_id
from {$g4['yc4_order_table']} a
left join {$g4['yc4_cart_table']} b on (b.on_uid=a.on_uid)
group by a.od_id
/*having misu <= 0 and a.od_invoice = '' and ordercancel = 0*/
/*having orderamount - receiptamount = 0 and a.od_invoice = ''*/
having misu <= 0 and a.od_invoice = ''
order by a.od_id desc
order by a.od_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from $g4[member_table] where mb_id = '$row[mb_id]' ";
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row[mb_id], get_text($row[od_name]), $row1[mb_email], $row1[mb_homepage]);
$name = get_sideview($row['mb_id'], get_text($row['od_name']), $row1['mb_email'], $row1['mb_homepage']);
$settle_method = "";
if ($row[od_settle_case])
if ($row['od_settle_case'])
{
$settle_method = $row[od_settle_case];
$settle_method = $row['od_settle_case'];
}
else
{
if ($row[od_receipt_bank]) $settle_method .= "무통장";
if ($row[od_receipt_card]) $settle_method .= "카드";
if ($row[od_receipt_point]) $settle_method .= "포인트";
if ($row['od_receipt_bank']) $settle_method .= "무통장";
if ($row['od_receipt_card']) $settle_method .= "카드";
if ($row['od_receipt_point']) $settle_method .= "포인트";
}
$list = $i%2;
echo "
<tr align=center class='list$list ht'>
<td>$row[od_id]</td>
<td>{$row['od_id']}</td>
<td>$name</td>
<td align=right>".display_amount($row[receiptamount])."&nbsp;</td>
<td align=right>".display_amount($row['receiptamount'])."&nbsp;</td>
<td>$settle_method</td>
<td>".icon("수정", "./orderform.php?od_id=$row[od_id]")."</td>
<td>".icon("수정", "./orderform.php?od_id={$row['od_id']}")."</td>
</tr>
";
}
@ -84,7 +84,7 @@ include_once ("$g4[admin_path]/admin.head.php");
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=70%><?=subtitle("미입금 주문내역")?></td>
<td width=30% align=right><a href='./orderlist.php?sort1=receiptamount&sort2=asc'><img src='<?=$g4[admin_path]?>/img/icon_more.gif' border=0></a>&nbsp;</td>
<td width=30% align=right><a href='./orderlist.php?sort1=receiptamount&sort2=asc'><img src='<?=G4_ADMIN_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
@ -100,43 +100,43 @@ include_once ("$g4[admin_path]/admin.head.php");
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
<?
// 미수금이 있고 송장번호가 없는 자료를 구함
$sql = " select a.od_id,
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from $g4[yc4_order_table] a
left join $g4[yc4_cart_table] b on (b.on_uid=a.on_uid)
group by a.od_id
from {$g4['yc4_order_table']} a
left join {$g4['yc4_cart_table']} b on (b.on_uid=a.on_uid)
group by a.od_id
/* having receiptamount <= 0 */
having misu > 0
order by a.od_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from $g4[member_table] where mb_id = '$row[mb_id]' ";
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row[mb_id], get_text($row[od_name]), $row1[mb_email], $row1[mb_homepage]);
$name = get_sideview($row['mb_id'], get_text($row['od_name']), $row1['mb_email'], $row1['mb_homepage']);
$settle_method = "";
if ($row[od_settle_case])
if ($row['od_settle_case'])
{
$settle_method = $row[od_settle_case];
$settle_method = $row['od_settle_case'];
}
else
{
if ($row[od_temp_bank]) $settle_method .= "무통장";
if ($row[od_temp_card]) $settle_method .= "카드";
if ($row[od_temp_milage]) $settle_method .= "포인트";
if ($row['od_temp_bank']) $settle_method .= "무통장";
if ($row['od_temp_card']) $settle_method .= "카드";
if ($row['od_temp_milage']) $settle_method .= "포인트";
}
$list = $i%2;
echo "
<tr align=center class='list$list ht'>
<td><a href='./orderstatuslist.php?sort1=od_id&sel_field=od_id&search=$row[od_id]'>$row[od_id]</a></td>
<td><a href='./orderstatuslist.php?sort1=od_id&sel_field=od_id&search={$row['od_id']}'>{$row['od_id']}</a></td>
<td>$name</td>
<td align=right>".display_amount($row[orderamount])."&nbsp;</td>
<td align=right>".display_amount($row['orderamount'])."&nbsp;</td>
<td>$settle_method</td>
<td>".icon("수정", "./orderform.php?od_id=$row[od_id]")."</td>
<td>".icon("수정", "./orderform.php?od_id={$row['od_id']}")."</td>
</tr>";
}
@ -145,8 +145,8 @@ include_once ("$g4[admin_path]/admin.head.php");
?>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
</table>
</td>
</tr>
</table><br>
@ -158,7 +158,7 @@ include_once ("$g4[admin_path]/admin.head.php");
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=70%><?=subtitle("사용후기")?></td>
<td width=30% align=right><a href='./itempslist.php?sort1=is_confirm&sort2=asc'><img src='<?=$g4[admin_path]?>/img/icon_more.gif' border=0></a>&nbsp;</td>
<td width=30% align=right><a href='./itempslist.php?sort1=is_confirm&sort2=asc'><img src='<?=G4_ADMIN_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
@ -171,24 +171,24 @@ include_once ("$g4[admin_path]/admin.head.php");
</tr>
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
<?
$sql = " select * from $g4[yc4_item_ps_table]
$sql = " select * from {$g4[yc4_item_ps_table]}
where is_confirm = 0
order by is_id desc
order by is_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from $g4[member_table] where mb_id = '$row[mb_id]' ";
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row[mb_id], get_text($row[is_name]), $row1[mb_email], $row1[mb_homepage]);
$name = get_sideview($row['mb_id'], get_text($row['is_name']), $row1['mb_email'], $row1['mb_homepage']);
$list = $i%2;
echo "
<tr align=center class='list$list ht'>
<td align=center>$name</td>
<td>".cut_str($row[is_subject],40)."</td>
<td align=center>".icon("수정", "./itempsform.php?w=u&is_id=$row[is_id]")."</td>
<td>".cut_str($row['is_subject'],40)."</td>
<td align=center>".icon("수정", "./itempsform.php?w=u&is_id={$row['is_id']}")."</td>
</tr>";
}
@ -203,7 +203,7 @@ include_once ("$g4[admin_path]/admin.head.php");
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=70%><?=subtitle("상품문의")?></td>
<td width=30% align=right><a href='./itemqalist.php?sort1=iq_answer&sort2=asc'><img src='<?=$g4[admin_path]?>/img/icon_more.gif' border=0></a>&nbsp;</td>
<td width=30% align=right><a href='./itemqalist.php?sort1=iq_answer&sort2=asc'><img src='<?=G4_ADMIN_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
@ -216,24 +216,24 @@ include_once ("$g4[admin_path]/admin.head.php");
</tr>
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
<?
$sql = " select * from $g4[yc4_item_qa_table]
$sql = " select * from {$g4['yc4_item_qa_table']}
where iq_answer = ''
order by iq_id desc
order by iq_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from $g4[member_table] where mb_id = '$row[mb_id]' ";
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row[mb_id], get_text($row[iq_name]), $row1[mb_email], $row1[mb_homepage]);
$name = get_sideview($row['mb_id'], get_text($row['iq_name']), $row1['mb_email'], $row1['mb_homepage']);
$list = $i%2;
echo "
<tr align=center class='list$list ht'>
<td align=center>$name</td>
<td>".cut_str($row[iq_subject],40)."</td>
<td align=center>".icon("수정", "./itemqaform.php?w=u&iq_id=$row[iq_id]")."</td>
<td>".cut_str($row['iq_subject'],40)."</td>
<td align=center>".icon("수정", "./itemqaform.php?w=u&iq_id={$row['iq_id']}")."</td>
</tr>";
}
@ -247,5 +247,5 @@ include_once ("$g4[admin_path]/admin.head.php");
</table><br>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>