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

This commit is contained in:
rollydream
2013-04-11 10:32:08 +09:00
403 changed files with 986 additions and 647 deletions

View File

@ -57,10 +57,10 @@ function imageview(id, w, h)
submenu.left = tempX - ( w + 11 );
submenu.top = tempY - ( h / 2 );
//selectBoxVisible();
selectBoxVisible();
//if (el_id.style.display != 'none')
// selectBoxHidden(id);
if (el_id.style.display != 'none')
selectBoxHidden(id);
}
</script>
@ -81,9 +81,9 @@ function imageview(id, w, h)
</a>
</li>
<li>
<a href="<?=G4_SHOP_URL?>/">
<a href="<?=G4_URL?>/">
<img src="<?=G4_ADMIN_URL?>/img/snb_home.jpg" alt="" width="28" height="28">
쇼핑몰 메인
홈페이지 메인
</a>
</li>
<li>

View File

@ -4,8 +4,6 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], 'w');
$token = get_token();
$g4['title'] = '게시판 복사';
$administrator = 1;
include_once(G4_PATH.'/head.sub.php');
@ -43,6 +41,9 @@ include_once(G4_PATH.'/head.sub.php');
</table>
<div class="btn_confirm">
<p>
게시판을 복사하시려면 <strong>복사</strong> 버튼을, 작성을 취소하고 창을 닫으시려면 <strong>창닫기</strong> 버튼을 누르세요.
</p>
<input type="submit" class="btn_submit" value="복사">
<input type="button" class="btn_cancel" value="창닫기" onclick="window.close();">
</div>

View File

@ -15,8 +15,6 @@ $row = sql_fetch(" select count(*) as cnt from {$g4['board_table']} where bo_tab
if ($row['cnt'])
alert($target_table.'은(는) 이미 존재하는 게시판 테이블명 입니다.\\n복사할 테이블명으로 사용할 수 없습니다.');
check_token();
// 게시판 테이블 생성
$sql = get_table_define($g4['write_prefix'] . $bo_table);
$sql = str_replace($g4['write_prefix'] . $bo_table, $g4['write_prefix'] . $target_table, $sql);
@ -24,6 +22,11 @@ sql_query($sql);
$file_copy = array();
// 구조만 복사시에는 공지사항 번호는 복사하지 않는다.
if ($copy_case == 'schema_only') {
$board['bo_notice'] = '';
}
// 게시판 정보
$sql = " insert into {$g4['board_table']}
set bo_table = '$target_table',
@ -63,16 +66,20 @@ $sql = " insert into {$g4['board_table']}
bo_use_list_content = '{$board[bo_use_list_content]}',
bo_table_width = '{$board[bo_table_width]}',
bo_subject_len = '{$board[bo_subject_len]}',
bo_mobile_subject_len = '{$board[bo_mobile_subject_len]}',
bo_page_rows = '{$board[bo_page_rows]}',
bo_mobile_page_rows = '{$board[bo_mobile_page_rows]}',
bo_new = '{$board[bo_new]}',
bo_hot = '{$board[bo_hot]}',
bo_image_width = '{$board[bo_image_width]}',
bo_skin = '{$board['bo_skin']}',
bo_mobile_skin = '{$board['bo_mobile']}',
bo_mobile_skin = '{$board['bo_mobile_skin']}',
bo_include_head = '{$board['bo_include_head']}',
bo_include_tail = '{$board['bo_include_tail']}',
bo_content_head = '".addslashes($board['bo_content_head'])."',
bo_content_tail = '".addslashes($board['bo_content_tail'])."',
bo_mobile_content_head = '".addslashes($board['bo_mobile_content_head'])."',
bo_mobile_content_tail = '".addslashes($board['bo_mobile_content_tail'])."',
bo_insert_content = '".addslashes($board['bo_insert_content'])."',
bo_gallery_cols = '{$board[bo_gallery_cols]}',
bo_gallery_width = '{$board[bo_gallery_width]}',

View File

@ -33,11 +33,26 @@ if (!isset($board['bo_gallery_width'])) {
sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_gallery_width` INT NOT NULL AFTER `bo_gallery_cols`, ADD `bo_gallery_height` INT NOT NULL DEFAULT '0' AFTER `bo_gallery_width`, ADD `bo_mobile_gallery_cols` INT NOT NULL DEFAULT '0' AFTER `bo_gallery_height`, ADD `bo_mobile_gallery_width` INT NOT NULL DEFAULT '0' AFTER `bo_mobile_gallery_cols`, ADD `bo_mobile_gallery_height` INT NOT NULL DEFAULT '0' AFTER `bo_mobile_gallery_width` ", false);
}
if (!isset($board['bo_mobile_subject_len'])) {
sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_subject_len` INT(11) NOT NULL DEFAULT '0' AFTER `bo_subject_len` ", false);
}
if (!isset($board['bo_mobile_page_rows'])) {
sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_page_rows` INT(11) NOT NULL DEFAULT '0' AFTER `bo_page_rows` ", false);
}
if (!isset($board['bo_mobile_content_head'])) {
sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_content_head` TEXT NOT NULL AFTER `bo_content_head`, ADD `bo_mobile_content_tail` TEXT NOT NULL AFTER `bo_content_tail`", false);
}
$required = "";
$readonly = "";
if ($w == '') {
$html_title .= ' 생성';
$bo_table_attr = 'required alnum_';
$required = 'required';
$required_valid = 'alnum_';
$sound_only = '<strong class="sound_only">필수</strong>';
$board['bo_count_delete'] = 1;
@ -55,7 +70,9 @@ if ($w == '') {
$board['bo_mobile_gallery_height'] = 100;
$board['bo_table_width'] = 100;
$board['bo_page_rows'] = $config['cf_page_rows'];
$board['bo_mobile_page_rows'] = $config['cf_page_rows'];
$board['bo_subject_len'] = 60;
$board['bo_mobile_subject_len'] = 30;
$board['bo_new'] = 24;
$board['bo_hot'] = 100;
$board['bo_image_width'] = 600;
@ -83,7 +100,7 @@ if ($w == '') {
alert('그룹이 틀립니다.');
}
$bo_table_attr = 'readonly';
$readonly = 'readonly';
}
@ -127,7 +144,7 @@ $pg_anchor = "<ul class=\"anchor\">
<tr>
<th scope="row"><label for="bo_table">TABLE<?=$sound_only?></label></th>
<td colspan="2">
<input type="text" name="bo_table" value="<?=$board['bo_table'] ?>" id="bo_table" required class="frm_input <?=$bo_table_attr?>" maxlength="20">
<input type="text" name="bo_table" value="<?=$board['bo_table'] ?>" id="bo_table" <?=$required?> <?=$readonly?> class="frm_input <?=$reaonly?> <?=$required?> <?=$required_valid?>" maxlength="20">
<? if ($w == '') { ?>
영문자, 숫자, _ 만 가능 (공백없이 20자 이내)
<? } else { ?>
@ -549,7 +566,7 @@ $pg_anchor = "<ul class=\"anchor\">
<tr>
<th scope="row"><label for="bo_upload_size">파일 업로드 용량<strong class="sound_only">필수</strong></label></th>
<td>
<?=help('최대 '.ini_get("upload_max_filesize").' 이하 업로드 가능, 1 MB = 1,024,768 bytes')?>
<?=help('최대 '.ini_get("upload_max_filesize").' 이하 업로드 가능, 1 MB = 1,048,576 bytes')?>
업로드 파일 한개당 <input type="text" name="bo_upload_size" value="<?=$board['bo_upload_size']?>" id="bo_upload_size" required class="required numeric frm_input" size="10"> bytes 이하
</td>
<td class="group_setting">
@ -752,6 +769,30 @@ $pg_anchor = "<ul class=\"anchor\">
</td>
</tr>
<tr>
<th scope="row"><label for="bo_mobile_content_head">모바일 상단 내용</label></th>
<td>
<?=editor_html("bo_mobile_content_head", $board['bo_mobile_content_head']);?>
</td>
<td class="group_setting">
<input type="checkbox" name="chk_grp_mobile_content_head" value="1" id="chk_grp_mobile_content_head">
<label for="chk_grp_mobile_content_head">그룹적용</label>
<input type="checkbox" name="chk_all_mobile_content_head" value="1" id="chk_all_mobile_content_head">
<label for="chk_all_mobile_content_head">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_mobile_content_tail">모바일 하단 내용</label></th>
<td>
<?=editor_html("bo_mobile_content_tail", $board['bo_mobile_content_tail']);?>
</td>
<td class="group_setting">
<input type="checkbox" name="chk_grp_mobile_content_tail" value="1" id="chk_grp_mobile_content_tail">
<label for="chk_grp_mobile_content_tail">그룹적용</label>
<input type="checkbox" name="chk_all_mobile_content_tail" value="1" id="chk_all_mobile_content_tail">
<label for="chk_all_mobile_content_tail">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_insert_content">글쓰기 기본 내용</label></th>
<td>
<textarea id="bo_insert_content" name="bo_insert_content" rows="5"><?=$board['bo_insert_content'] ?></textarea>
@ -776,7 +817,20 @@ $pg_anchor = "<ul class=\"anchor\">
<label for="chk_all_subject_len">전체적용</label>
</td>
</tr>
<tr>
<tr>
<th scope="row"><label for="bo_mobile_subject_len">모바일 제목 길이<strong class="sound_only">필수</strong></label></th>
<td>
<?=help('목록에서의 제목 글자수. 잘리는 글은 … 로 표시')?>
<input type="text" name="bo_mobile_subject_len" value="<?=$board['bo_mobile_subject_len']?>" id="bo_mobile_subject_len" required class="required numeric frm_input" size="4">
</td>
<td class="group_setting">
<input type="checkbox" name="chk_grp_mobile_subject_len" value="1" id="chk_grp_mobile_subject_len">
<label for="chk_grp_mobile_subject_len">그룹적용</label>
<input type="checkbox" name="chk_all_mobile_subject_len" value="1" id="chk_all_mobile_subject_len">
<label for="chk_all_mobile_subject_len">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_page_rows">페이지당 목록 수<strong class="sound_only">필수</strong></label></th>
<td>
<input type="text" name="bo_page_rows" value="<?=$board['bo_page_rows']?>" id="bo_page_rows" required class="required numeric frm_input" size="4">
@ -788,6 +842,18 @@ $pg_anchor = "<ul class=\"anchor\">
<label for="chk_all_page_rows">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_mobile_page_rows">모바일 페이지당 목록 수<strong class="sound_only">필수</strong></label></th>
<td>
<input type="text" name="bo_mobile_page_rows" value="<?=$board['bo_mobile_page_rows']?>" id="bo_mobile_page_rows" required class="required numeric frm_input" size="4">
</td>
<td class="group_setting">
<input type="checkbox" name="chk_grp_mobile_page_rows" value="1" id="chk_grp_mobile_page_rows">
<label for="chk_grp_mobile_page_rows">그룹적용</label>
<input type="checkbox" name="chk_all_mobile_page_rows" value="1" id="chk_all_mobile_page_rows">
<label for="chk_all_mobile_page_rows">전체적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_gallery_cols">갤러리 이미지 수<strong class="sound_only">필수</strong></label></th>
<td>
@ -1079,6 +1145,10 @@ $pg_anchor = "<ul class=\"anchor\">
</fieldset>
<div class="btn_confirm">
<p>
작성하신 내용을 제출하시려면 <strong>확인</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>목록</strong> 링크를 누르세요.
<? if ($w == 'u') { ?><br>게시판을 복사하시려면 <strong>게시판복사</strong> 링크를 누르세요.<? } ?>
</p>
<input type="submit" value="확인" class="btn_submit" accesskey="s">
<a href="./board_list.php?<?=$qstr?>">목록</a>
<? if ($w == 'u') { ?><a href="./board_copy.php?bo_table=<?=$bo_table?>" id="board_copy" target="win_board_copy">게시판복사</a><?}?>
@ -1116,6 +1186,8 @@ function fboardform_submit(f)
{
<?=get_editor_js("bo_content_head");?>
<?=get_editor_js("bo_content_tail");?>
<?=get_editor_js("bo_mobile_content_head");?>
<?=get_editor_js("bo_mobile_content_tail");?>
if (parseInt(f.bo_count_modify.value) < 1) {
alert("원글 수정 불가 댓글수는 1 이상 입력하셔야 합니다.");

View File

@ -87,7 +87,9 @@ $sql_common = " gr_id = '{$_POST['gr_id']}',
bo_use_email = '{$_POST['bo_use_email']}',
bo_table_width = '{$_POST['bo_table_width']}',
bo_subject_len = '{$_POST['bo_subject_len']}',
bo_mobile_subject_len = '{$_POST['bo_mobile_subject_len']}',
bo_page_rows = '{$_POST['bo_page_rows']}',
bo_mobile_page_rows = '{$_POST['bo_mobile_page_rows']}',
bo_new = '{$_POST['bo_new']}',
bo_hot = '{$_POST['bo_hot']}',
bo_image_width = '{$_POST['bo_image_width']}',
@ -97,6 +99,8 @@ $sql_common = " gr_id = '{$_POST['gr_id']}',
bo_include_tail = '{$_POST['bo_include_tail']}',
bo_content_head = '{$_POST['bo_content_head']}',
bo_content_tail = '{$_POST['bo_content_tail']}',
bo_mobile_content_head = '{$_POST['bo_mobile_content_head']}',
bo_mobile_content_tail = '{$_POST['bo_mobile_content_tail']}',
bo_insert_content = '{$_POST['bo_insert_content']}',
bo_gallery_cols = '{$_POST['bo_gallery_cols']}',
bo_gallery_width = '{$_POST['bo_gallery_width']}',
@ -267,7 +271,9 @@ if (is_checked('chk_grp_mobile_gallery_width')) $grp_fields .= " , bo_mobile_gal
if (is_checked('chk_grp_mobile_gallery_height'))$grp_fields .= " , bo_mobile_gallery_height = '{$bo_mobile_gallery_height}' ";
if (is_checked('chk_grp_table_width')) $grp_fields .= " , bo_table_width = '{$bo_table_width}' ";
if (is_checked('chk_grp_page_rows')) $grp_fields .= " , bo_page_rows = '{$bo_page_rows}' ";
if (is_checked('chk_grp_mobile_page_rows')) $grp_fields .= " , bo_mobile_page_rows = '{$bo_mobile_page_rows}' ";
if (is_checked('chk_grp_subject_len')) $grp_fields .= " , bo_subject_len = '{$bo_subject_len}' ";
if (is_checked('chk_grp_mobile_subject_len')) $grp_fields .= " , bo_mobile_subject_len = '{$bo_mobile_subject_len}' ";
if (is_checked('chk_grp_new')) $grp_fields .= " , bo_new = '{$bo_new}' ";
if (is_checked('chk_grp_hot')) $grp_fields .= " , bo_hot = '{$bo_hot}' ";
if (is_checked('chk_grp_image_width')) $grp_fields .= " , bo_image_width = '{$bo_image_width}' ";
@ -283,6 +289,8 @@ if (is_checked('chk_grp_include_head')) $grp_fields .= " , bo_include_he
if (is_checked('chk_grp_include_tail')) $grp_fields .= " , bo_include_tail = '{$bo_include_tail}' ";
if (is_checked('chk_grp_content_head')) $grp_fields .= " , bo_content_head = '{$bo_content_head}' ";
if (is_checked('chk_grp_content_tail')) $grp_fields .= " , bo_content_tail = '{$bo_content_tail}' ";
if (is_checked('chk_grp_mobile_content_head')) $grp_fields .= " , bo_mobile_content_head = '{$bo_mobile_content_head}' ";
if (is_checked('chk_grp_mobile_content_tail')) $grp_fields .= " , bo_mobile_content_tail = '{$bo_mobile_content_tail}' ";
if (is_checked('chk_grp_insert_content')) $grp_fields .= " , bo_insert_content = '{$bo_insert_content}' ";
if (is_checked('chk_grp_use_search')) $grp_fields .= " , bo_use_search = '{$bo_use_search}' ";
if (is_checked('chk_grp_order')) $grp_fields .= " , bo_order = '{$bo_order}' ";
@ -345,7 +353,9 @@ if (is_checked('chk_all_mobile_gallery_width')) $all_fields .= " , bo_mobile_gal
if (is_checked('chk_all_mobile_gallery_height'))$all_fields .= " , bo_mobile_gallery_height = '{$bo_mobile_gallery_height}' ";
if (is_checked('chk_all_table_width')) $all_fields .= " , bo_table_width = '{$bo_table_width}' ";
if (is_checked('chk_all_page_rows')) $all_fields .= " , bo_page_rows = '{$bo_page_rows}' ";
if (is_checked('chk_all_mobile_page_rows')) $all_fields .= " , bo_mobile_page_rows = '{$bo_mobile_page_rows}' ";
if (is_checked('chk_all_subject_len')) $all_fields .= " , bo_subject_len = '{$bo_subject_len}' ";
if (is_checked('chk_all_mobile_subject_len')) $all_fields .= " , bo_mobile_subject_len = '{$bo_mobile_subject_len}' ";
if (is_checked('chk_all_new')) $all_fields .= " , bo_new = '{$bo_new}' ";
if (is_checked('chk_all_hot')) $all_fields .= " , bo_hot = '{$bo_hot}' ";
if (is_checked('chk_all_image_width')) $all_fields .= " , bo_image_width = '{$bo_image_width}' ";
@ -361,6 +371,8 @@ if (is_checked('chk_all_include_head')) $all_fields .= " , bo_include_he
if (is_checked('chk_all_include_tail')) $all_fields .= " , bo_include_tail = '{$bo_include_tail}' ";
if (is_checked('chk_all_content_head')) $all_fields .= " , bo_content_head = '{$bo_content_head}' ";
if (is_checked('chk_all_content_tail')) $all_fields .= " , bo_content_tail = '{$bo_content_tail}' ";
if (is_checked('chk_all_mobile_content_head')) $all_fields .= " , bo_mobile_content_head = '{$bo_mobile_content_head}' ";
if (is_checked('chk_all_mobile_content_tail')) $all_fields .= " , bo_mobile_content_tail = '{$bo_mobile_content_tail}' ";
if (is_checked('chk_all_insert_content')) $all_fields .= " , bo_insert_content = '{$bo_insert_content}' ";
if (is_checked('chk_all_use_search')) $all_fields .= " , bo_use_search = '{$bo_use_search}' ";
if (is_checked('chk_all_order')) $all_fields .= " , bo_order = '{$bo_order}' ";

View File

@ -61,7 +61,7 @@ $colspan = 15;
<legend>게시판 검색</legend>
<span>
<?=$listall?>
생성된 게시판 수 <?=number_format($total_count)?>개
생성된 게시판수 <?=number_format($total_count)?>개
</span>
<select name="sfl" title="검색대상">
<option value="bo_table"<?=get_selected($_GET['sfl'], "bo_subject", true);?>>TABLE</option>

View File

@ -136,6 +136,9 @@ include_once('./admin.head.php');
</table>
<div class="btn_confirm">
<p>
작성하신 내용을 제출하시려면 <strong>확인</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>목록</strong> 링크를 누르세요.
</p>
<input type="submit" class="btn_submit" accesskey="s" value="확인">
<a href="./boardgroup_list.php?<?=$qstr?>">목록</a>
</div>

View File

@ -1,52 +1,47 @@
<?
$sub_menu = "100900";
include_once("./_common.php");
<?php
$sub_menu = '100900';
include_once('./_common.php');
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.", G4_URL);
if ($is_admin != 'super')
alert('최고관리자만 접근 가능합니다.', G4_URL);
$g4['title'] = "캐시파일 일괄삭제";
include_once("./admin.head.php");
$g4['title'] = '캐시파일 일괄삭제';
include_once('./admin.head.php');
?>
<div id="cache_del">
<p>
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
</p>
<?
<?php
flush();
if (!$dir=@opendir(G4_DATA_PATH.'/cache')) {
echo "<p>최신글 캐시디렉토리를 열지못했습니다.</p>";
echo '<p>캐시디렉토리를 열지못했습니다.</p>';
}
$cnt=0;
echo "<ul>\n";
while($file=readdir($dir)) {
if ($file=='.' || $file=='..') continue;
echo '<ul>'.PHP_EOL;
$cache_file = G4_DATA_PATH.'/cache/'.$file;
$files = glob(G4_DATA_PATH.'/cache/latest-*');
if (is_array($files)) {
foreach ($files as $cache_file) {
$cnt++;
unlink($cache_file);
echo '<li>'.$cache_file.'</li>'.PHP_EOL;
if (!$atime=@fileatime($cache_file))
continue;
flush();
$cnt++;
$return = unlink($cache_file);
//echo "<script>document.getElementById('delete_message').innerHTML += '{$cache_file}<br>';</script>\n";
echo "<li>{$cache_file}</li>\n";
flush();
if ($cnt%10==0)
//echo "<script>document.getElementById('delete_message').innerHTML = '';</script>\n";
echo "\n";
if ($cnt%10==0)
echo PHP_EOL;
}
}
echo "<li>완료됨</li>\n</ul>\n";
//echo "<script>document.getElementById('delete_message').innerHTML += '최신글 캐시파일 {$cnt}건 삭제 완료.<br><br>프로그램의 실행을 끝마치셔도 좋습니다.';</script>\n";
echo "<p><span>최신글 캐시파일 {$cnt}건 삭제가 완료됐습니다.</span><br>프로그램의 실행을 끝마치셔도 좋습니다.</p>\n";
echo '<li>완료됨</li></ul>'.PHP_EOL;
echo '<p><span>최신글 캐시파일 '.$cnt.'건 삭제가 완료됐습니다.</span><br>프로그램의 실행을 끝마치셔도 좋습니다.</p>'.PHP_EOL;
?>
</div>
<?php
include_once("./admin.tail.php");
include_once('./admin.tail.php');
?>

View File

@ -41,6 +41,14 @@ if(!isset($config['cf_mobile_pages'])) {
sql_query(" UPDATE `{$g4['config_table']}` SET cf_mobile_pages = '5' ", TRUE);
}
// uniqid 테이블이 없을 경우 생성
if(!sql_query(" select uq_id from {$g4['uniqid_table']} limit 1 ", false)) {
sql_query(" CREATE TABLE IF NOT EXISTS `{$g4['uniqid_table']}` (
`uq_id` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`uq_id`)
) ", false);
}
$g4['title'] = '환경설정';
include_once ('./admin.head.php');
@ -490,7 +498,7 @@ $pg_anchor = "
</td>
<th scope="row"><label for="cf_prohibit_email">입력 금지 메일</label></th>
<td>
<?=help('hotmail.com과 같은 메일 주소는 사용하지 못하도록 못합니다. 엔터로 구분')?>
<?=help('입력 받지 않을 도메인을 지정합니다. 엔터로 구분 ex) hotmail.com')?>
<textarea name="cf_prohibit_email" id="cf_prohibit_email" rows="5"><?=$config['cf_prohibit_email']?></textarea>
</td>
</tr>
@ -673,6 +681,9 @@ $pg_anchor = "
</fieldset>
<div class="btn_confirm">
<p>
작성하신 내용을 제출하시려면 <strong>확인</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>목록</strong> 링크를 누르세요.
</p>
<input type="submit" value="확인" class="btn_submit" accesskey="s">
</div>

View File

@ -0,0 +1,52 @@
<?php
$sub_menu = '100910';
include_once('./_common.php');
if ($is_admin != 'super')
alert('최고관리자만 접근 가능합니다.', G4_URL);
$g4['title'] = '캡챠파일 일괄삭제';
include_once('./admin.head.php');
?>
<div id="cache_del">
<p>
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
</p>
<?php
flush();
if (!$dir=@opendir(G4_DATA_PATH.'/cache')) {
echo '<p>캐시디렉토리를 열지못했습니다.</p>';
}
$cnt=0;
echo '<ul>'.PHP_EOL;
$files = glob(G4_DATA_PATH.'/cache/gcaptcha-*');
if (is_array($files)) {
$before_time = G4_SERVER_TIME - 3600; // 한시간전
foreach ($files as $gcaptcha_file) {
$modification_time = filemtime($gcaptcha_file); // 파일접근시간
if ($modification_time > $before_time) continue;
$cnt++;
unlink($gcaptcha_file);
echo '<li>'.$gcaptcha_file.'</li>'.PHP_EOL;
flush();
if ($cnt%10==0)
echo PHP_EOL;
}
}
echo '<li>완료됨</li></ul>'.PHP_EOL;
echo '<p><span>캡챠파일 '.$cnt.'건의 삭제가 완료됐습니다.</span><br>프로그램의 실행을 끝마치셔도 좋습니다.</p>'.PHP_EOL;
?>
</div>
<?php
include_once('./admin.tail.php');
?>

View File

@ -50,6 +50,9 @@ include_once('./admin.head.php');
</table>
<div class="btn_confirm">
<p>
작성하신 내용을 제출하시려면 <strong>확인</strong> 버튼을 누르세요.
</p>
<input type="submit" class="btn_submit" accesskey="s" value="확인">
</div>
</form>

View File

@ -76,7 +76,7 @@ $colspan = 6;
</table>
<div class="btn_list">
<button>선택삭제</button>
<button type="submit">선택삭제</button>
</div>
</form>
</section>

View File

@ -110,6 +110,9 @@ include_once('./admin.head.php');
</table>
<div class="btn_confirm">
<p>
메일발송대상 선택을 완료하시려면 <strong>확인</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>목록</strong> 링크를 누르세요.
</p>
<input type="submit" value="확인" class="btn_submit">
<a href="./mail_list.php">목록 </a>
</div>

View File

@ -147,11 +147,17 @@ include_once('./admin.head.php');
<tr>
<th scope="row"><label for="mb_zip1">주소</label></th>
<td colspan="3" style="line-height:2em">
<input type="text" name="mb_zip1" value="<?=$mb['mb_zip1']?>" id="mb_zip1" title="우편번호 앞자리" class="frm_input readonly" size="3" maxlength="3" readonly> -
<input type="text" name="mb_zip2" value="<?=$mb['mb_zip2']?>" id="mb_zip2" title="우편번호 뒷자리" class="frm_input readonly" size="3" maxlength="3" readonly>
<a href="<?=G4_BBS_URL.'/zip.php?frm_name=fmember&amp;frm_zip1=mb_zip1&amp;frm_zip2=mb_zip2&amp;frm_addr1=mb_addr1&amp;frm_addr2=mb_addr2'?>" class="win_zip_find btn_frmline">우편번호 검색</a><br>
<input type="text" name="mb_addr1" value="<?=$mb['mb_addr1']?>" id="mb_addr1" title="행정기본주소" class="frm_input readonly" size="50" readonly><br>
<input type="text" name="mb_zip1" value="<?=$mb['mb_zip1']?>" id="mb_zip1" title="우편번호 앞자리" class="frm_input readonly" size="3" maxlength="3"> -
<input type="text" name="mb_zip2" value="<?=$mb['mb_zip2']?>" id="mb_zip2" title="우편번호 뒷자리" class="frm_input readonly" size="3" maxlength="3">
<span id="win_zip" style="display:block"></span>
<input type="text" name="mb_addr1" value="<?=$mb['mb_addr1']?>" id="mb_addr1" title="행정기본주소" class="frm_input readonly" size="50"><br>
<input type="text" name="mb_addr2" value="<?=$mb['mb_addr2']?>" id="mb_addr2" title="상세주소" class="frm_input" size="50"> 상세주소 입력
<script>
// 우편번호 자바스크립트 비활성화 대응을 위한 코드
$('<a href="<?=G4_BBS_URL?>/zip.php?frm_name=fmember&amp;frm_zip1=mb_zip1&amp;frm_zip2=mb_zip2&amp;frm_addr1=mb_addr1&amp;frm_addr2=mb_addr2" id="win_zip" class="win_zip_find btn_frmline" target="_blank">우편번호 검색</a><br>').appendTo('#win_zip');
$('#win_zip').css('display','inline');
$('#mb_zip1,#mb_zip2,#mb_addr1').attr('readonly','readonly');
</script>
</td>
</tr>
<tr>
@ -276,6 +282,9 @@ include_once('./admin.head.php');
</fieldset>
<div class="btn_confirm">
<p>
작성하신 내용을 제출하시려면 <strong>확인</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>목록</strong> 링크를 누르세요.
</p>
<input type="submit" value="확인" class="btn_submit" accesskey='s'>
<a href="./member_list.php?<?=$qstr?>">목록</a>
</div>

View File

@ -94,6 +94,12 @@ else if ($w == 'u')
if ($_POST['mb_id'] == $member['mb_id'] && $_POST['mb_level'] != $mb['mb_level'])
alert($mb['mb_id'].' : 로그인 중인 관리자 레벨은 수정 할 수 없습니다.');
// 이메일중복체크
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_email = '{$_POST['mb_email']}' and mb_id <> '$mb_id' ";
$row = sql_fetch($sql);
if($row['cnt'])
alert('다른 회원이 사용 중인 이메일입니다.');
$mb_dir = substr($mb_id,0,2);
// 회원 아이콘 삭제

View File

@ -99,6 +99,9 @@ include_once('./admin.head.php');
</table>
<div class="btn_confirm">
<p>
작성하신 내용을 제출하시려면 <strong>확인</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>목록</strong> 링크를 누르세요.
</p>
<input type="submit" value="확인" class="btn_submit" accesskey="s">
<a href="./poll_list.php?<?=$qstr?>">목록</a>
</div>

View File

@ -128,7 +128,7 @@ $colspan = 6;
</table>
<div class="btn_list">
<button>선택삭제</button>
<button type="submit">선택삭제</button>
</div>
</form>
</section>

View File

@ -134,7 +134,7 @@ var list_delete_php = 'popular_list.php';
<?if ($is_admin == 'super'){ ?>
<div class="btn_list">
<button>선택삭제</button>
<button type="submit">선택삭제</button>
</div>
<?}?>

View File

@ -799,44 +799,6 @@ function byte_check(el_cont, el_byte)
<h2>SMS설정</h2>
<?=$pg_anchor?>
<p><?=help('주의! 80 bytes 까지만 전송됩니다. (영문 한글자 : 1byte , 한글 한글자 : 2bytes , 특수문자의 경우 1 또는 2 bytes 임)')?></p>
<section>
<h3>사전에 정의된 문자프리셋</h3>
<dl>
<dt>회원가입시</dt>
<dd>{이름} {회원아이디} {회사명}</dd>
<dt>주문서작성</dt>
<dd>{이름} {보낸분} {받는분} {주문번호} {주문금액} {회사명}</dd>
<dt>입금확인시</dt>
<dd>{이름} {입금액} {주문번호} {회사명}</dd>
<dt>상품배송시</dt>
<dd>{이름} {택배회사} {운송장번호} {주문번호} {회사명}</dd>
</dl>
</section>
<div id="scf_sms">
<?
$scf_sms_title = array (1=>"회원가입시 고객님께 발송", "주문시 관리자에게 발송", "입금확인시 고객님께 발송", "상품배송시 고객님께 발송");
for ($i=1; $i<=4; $i++) {
?>
<section class="scf_sms_box">
<h3><?=$scf_sms_title[$i]?></h3>
<span><?=$scf_sms_to[$i]?></span>
<div class="scf_sms_img">
<textarea id="de_sms_cont<?=$i?>" name="de_sms_cont<?=$i?>" ONKEYUP="byte_check('de_sms_cont<?=$i?>', 'byte<?=$i?>');"><?=$default["de_sms_cont".$i]?></textarea>
</div>
<span id="byte<?=$i?>" class="scf_sms_cnt">0 / 80 바이트</span>
<label for="de_sms_use<?=$i?>"><span class="sound_only"><?=$scf_sms_title?></span>사용</label>
<input type="checkbox" name="de_sms_use<?=$i?>" value="1" id="de_sms_use<?=$i?>" <?=($default["de_sms_use".$i] ? " checked" : "")?>>
</section>
<script>
byte_check('de_sms_cont<?=$i?>', 'byte<?=$i?>');
</script>
<? } ?>
</div>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
@ -846,7 +808,7 @@ function byte_check(el_cont, el_byte)
<tr>
<th scope="row"><label for="de_sms_use">SMS 사용</label></th>
<td>
<?=help("SMS 를 사용하려면 서비스 회사를 선택해야 합니다. 개별 기능 (회원가입시, 주문서작성시 발송 등)보다 우선합니다.\n아이코드는 무료 문자메세지 발송 테스트 환경을 지원합니다.");?>
<?=help("SMS 서비스 회사를 선택하십시오. 서비스 회사를 선택하지 않으면, SMS 발송 기능이 동작하지 않습니다.\n아이코드는 무료 문자메세지 발송 테스트 환경을 지원합니다.");?>
<select id="de_sms_use" name="de_sms_use">
<option value="" <?=get_selected($default['de_sms_use'], '')?>>사용안함</option>
<option value="icode" <?=get_selected($default['de_sms_use'], 'icode')?>>아이코드</option>
@ -933,19 +895,52 @@ function byte_check(el_cont, el_byte)
</td>
</tr>
-->
<tr>
<td colspan="4">
<br>
<br>
<br>
</td>
</tr>
</tbody>
</table>
<div class="btn_confirm">
<input type="submit" value="확인" class="btn_submit" accesskey="s">
</div>
<section id="scf_sms_pre">
<h3>사전에 정의된 SMS프리셋</h3>
<dl>
<dt>회원가입시</dt>
<dd>{이름} {회원아이디} {회사명}</dd>
<dt>주문서작성</dt>
<dd>{이름} {보낸분} {받는분} {주문번호} {주문금액} {회사명}</dd>
<dt>입금확인시</dt>
<dd>{이름} {입금액} {주문번호} {회사명}</dd>
<dt>상품배송시</dt>
<dd>{이름} {택배회사} {운송장번호} {주문번호} {회사명}</dd>
</dl>
<p><?=help('주의! 80 bytes 까지만 전송됩니다. (영문 한글자 : 1byte , 한글 한글자 : 2bytes , 특수문자의 경우 1 또는 2 bytes 임)')?></p>
<div id="scf_sms">
<?
$scf_sms_title = array (1=>"회원가입시 고객님께 발송", "주문시 관리자에게 발송", "입금확인시 고객님께 발송", "상품배송시 고객님께 발송");
for ($i=1; $i<=4; $i++) {
?>
<section class="scf_sms_box">
<h4><?=$scf_sms_title[$i]?></h4>
<label for="de_sms_use<?=$i?>"><span class="sound_only"><?=$scf_sms_title?></span>사용</label>
<input type="checkbox" name="de_sms_use<?=$i?>" value="1" id="de_sms_use<?=$i?>" <?=($default["de_sms_use".$i] ? " checked" : "")?>>
<div class="scf_sms_img">
<textarea id="de_sms_cont<?=$i?>" name="de_sms_cont<?=$i?>" ONKEYUP="byte_check('de_sms_cont<?=$i?>', 'byte<?=$i?>');"><?=$default["de_sms_cont".$i]?></textarea>
</div>
<span id="byte<?=$i?>" class="scf_sms_cnt">0 / 80 바이트</span>
</section>
<script>
byte_check('de_sms_cont<?=$i?>', 'byte<?=$i?>');
</script>
<? } ?>
</div>
</section>
</section>
<div class="btn_confirm">
<input type="submit" value="확인" class="btn_submit" accesskey="s">
</div>
</form>
<script>

View File

@ -8,243 +8,220 @@ $g4['title'] = ' 쇼핑몰관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
?>
<table width=100%>
<tr>
<td width=50% valign=top>
<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_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
<section class="cbox">
<h2>입금완료 미배송내역</h2>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=5 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td width=80>주문번호</td>
<td>주문자</td>
<td width=90>입금액</td>
<td width=90>결제방법</td>
<td width=40>수정</td>
</tr>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
<?
// 미수금이 없고 운송장번호가 없는 자료를 구함
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from {$g4['shop_order_table']} a
left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
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
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
<table>
<thead>
<tr>
<th scope="col">주문번호</th>
<th scope="col">주문자</th>
<th scope="col">입금액</th>
<th scope="col">결제방법</th>
<th scope="col">수정</th>
</tr>
</thead>
<tbody>
<?
// 미수금이 없고 운송장번호가 없는 자료를 구함
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from {$g4['shop_order_table']} a
left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
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
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$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']);
$settle_method = "";
if ($row['od_settle_case'])
{
$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']);
$settle_method = "";
if ($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 .= "포인트";
}
$list = $i%2;
echo "
<tr align=center class='list$list ht'>
<td>{$row['od_id']}</td>
<td>$name</td>
<td align=right>".display_amount($row['receiptamount'])."&nbsp;</td>
<td>$settle_method</td>
<td>".icon("수정", "./orderform.php?od_id={$row['od_id']}")."</td>
</tr>
";
$settle_method = $row['od_settle_case'];
}
if ($i == 0) {
echo "<tr><td colspan=5 align=center class=ht>자료가 없습니다.</td></tr>";
}
?>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
</table>
</td>
<td width=1%></td>
<td width=49% valign=top>
<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_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=5 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td width=80>주문번호</td>
<td>주문자</td>
<td width=90>주문액</td>
<td width=90>결제방법</td>
<td width=40>수정</td>
</tr>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
<?
// 미수금이 있고 송장번호가 없는 자료를 구함
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from {$g4['shop_order_table']} a
left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
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++)
else
{
$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']);
$settle_method = "";
if ($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 .= "포인트";
}
$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>$name</td>
<td align=right>".display_amount($row['orderamount'])."&nbsp;</td>
<td>$settle_method</td>
<td>".icon("수정", "./orderform.php?od_id={$row['od_id']}")."</td>
</tr>";
if ($row['od_receipt_bank']) $settle_method .= "무통장";
if ($row['od_receipt_card']) $settle_method .= "카드";
if ($row['od_receipt_point']) $settle_method .= "포인트";
}
?>
<tr>
<td><?=$row['od_id']?></td>
<td><?=$name?></td>
<td><?=display_amount($row['receiptamount'])?></td>
<td><?=$settle_method?></td>
<td><a href="./orderform.php?od_id=<?=$row['od_id']?>">수정</a></td>
</tr>
<?
}
if ($i == 0) echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
if ($i == 0)
echo "<tr><td colspan=5 align=center class=ht>자료가 없습니다.</td></tr>";
?>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
</table>
<div class="btn_ft">
<a href="./deliverylist.php?sort1=od_invoice&amp;sort2=asc&amp;chk_misu=1">입금완료 미배송내역 더보기</a>
</div>
</section>
<section class="cbox">
<h2>미입금 주문내역</h2>
</td>
</tr>
</table><br>
<table>
<thead>
<tr>
<th scope="col">주문번호</th>
<th scope="col">주문자</th>
<th scope="col">주문액</th>
<th scope="col">결제방법</th>
<th scope="col">수정</th>
</tr>
</thead>
<tbody>
<?
// 미수금이 있고 송장번호가 없는 자료를 구함
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from {$g4['shop_order_table']} a
left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
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++)
{
$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']);
<table width=100%>
<tr>
<td width=50% valign=top>
<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_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=3 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td width=100>회원명</td>
<td>제목</td>
<td width=40>수정</td>
</tr>
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
<?
$sql = " select * from {$g4[shop_item_ps_table]}
where is_confirm = 0
order by is_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
$settle_method = "";
if ($row['od_settle_case'])
{
$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']);
$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>
</tr>";
$settle_method = $row['od_settle_case'];
}
if ($i == 0)
echo "<tr><td colspan=3 align=center class=ht>자료가 없습니다.</td></tr>";
?>
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
</table>
<td>
<td width=1%></td>
<td width=50% valign=top>
<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_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=3 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td width=100>회원명</td>
<td>제목</td>
<td width=40>수정</td>
</tr>
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
<?
$sql = " select * from {$g4['shop_item_qa_table']}
where iq_answer = ''
order by iq_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
else
{
$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']);
$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>
</tr>";
if ($row['od_temp_bank']) $settle_method .= "무통장";
if ($row['od_temp_card']) $settle_method .= "카드";
if ($row['od_temp_milage']) $settle_method .= "포인트";
}
?>
<tr>
<td><a href="./orderstatuslist.php?sort1=od_id&amp;sel_field=od_id&amp;search=<?=$row['od_id']?>"><?=$row['od_id']?></a></td>
<td><?=$name?></td>
<td><?=display_amount($row['orderamount'])?></td>
<td><?=$settle_method?></td>
<td><a href="./orderform.php?od_id=<?=$row['od_id']?>">수정</a></td>
</tr>
<?
}
if ($i == 0) echo '<tr><td colspan="5">자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
if ($i == 0)
echo "<tr><td colspan=3 align=center class=ht>자료가 없습니다.</td></tr>";
?>
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
</table>
</td>
</tr>
</table><br>
<div class="btn_ft">
<a href="./orderlist.php?sort1=receiptamount&amp;sort2=asc">미입금 주문내역 더보기</a>
</div>
</section>
<section class="cbox">
<h2>사용후기</h2>
<table>
<thead>
<tr>
<th scope="col">회원명</th>
<th scope="col">제목</th>
<th scope="col">수정</th>
</tr>
</thead>
<tbody>
<?
$sql = " select * from {$g4[shop_item_ps_table]}
where is_confirm = 0
order by is_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$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']);
?>
<tr>
<td><?=$name?></td>
<td><?=cut_str($row['is_subject'],40)?></td>
<td><a href="./itempsform.php?w=u&amp;is_id=<?=$row['is_id']?>">수정</a></td>
</tr>
<?
}
if ($i == 0) echo '<tr><td colspan="3" class="empty_table">자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
<div class="btn_ft">
<a href="./itempslist.php?sort1=is_confirm&amp;sort2=asc">사용후기 더보기</a>
</div>
</section>
<section class="cbox">
<h2>상품문의</h2>
<table>
<thead>
<tr>
<th scope="col">회원명</th>
<th scope="col">제목</th>
<th scope="col">수정</th>
</tr>
</thead>
<tbody>
<?
$sql = " select * from {$g4['shop_item_qa_table']}
where iq_answer = ''
order by iq_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$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']);
?>
<tr>
<td><?=$name?></td>
<td><?=cut_str($row['iq_subject'],40)?></td>
<td><a href="./itemqaform.php?w=u&amp;iq_id=<?=$row['iq_id']?>">수정</a></td>
</tr>";
<?
}
if ($i == 0)
echo '<tr><td colspan="3" class="empty_table">자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
<div class="btn_ft">
<a href="./itemqalist.php?sort1=iq_answer&amp;sort2=asc">상품문의 더보기</a>
</div>
</section>
<?
include_once (G4_ADMIN_PATH.'/admin.tail.php');