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

This commit is contained in:
chicpro
2013-11-12 15:35:13 +09:00
7 changed files with 20 additions and 20 deletions

View File

@ -137,7 +137,7 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
if ($is_admin == 'super')
$s_del = '<a href="./categoryformupdate.php?w=d&amp;ca_id='.$row['ca_id'].'&amp;'.$qstr.'" onclick="return delete_confirm();"><span class="sound_only">'.get_text($row['ca_name']).' </span>삭제</a> ';
// 해당 분류에 속한 상품의
// 해당 분류에 속한 상품의 수
$sql1 = " select COUNT(*) as cnt from {$g5['g5_shop_item_table']}
where ca_id = '{$row['ca_id']}'
or ca_id2 = '{$row['ca_id']}'

View File

@ -150,7 +150,7 @@ define('G5_SMTP', '127.0.0.1');
기타 상수
********************/
// 게시판에서 링크의 기본수를 말합니다.
// 게시판에서 링크의 기본수를 말합니다.
// 필드를 추가하면 이 숫자를 필드수에 맞게 늘려주십시오.
define('G5_LINK_COUNT', 2);
?>

View File

@ -484,7 +484,7 @@ function conv_content($content, $html)
$target[] = "<br/>";
}
// 테이블 태그의 수를 세어 테이블이 깨지지 않도록 한다.
// 테이블 태그의 수를 세어 테이블이 깨지지 않도록 한다.
$table_begin_count = substr_count(strtolower($content), "<table");
$table_end_count = substr_count(strtolower($content), "</table");
for ($i=$table_end_count; $i<$table_begin_count; $i++)
@ -2306,7 +2306,7 @@ function googl_short_url($longUrl)
}
// 임시 저장된 글
// 임시 저장된 글 수
function autosave_count($mb_id)
{
global $g5;

View File

@ -89,7 +89,7 @@ class item_list
// true 인 경우 페이지를 구한다.
protected $is_page = false;
// 페이지 표시를 위하여 총 상품수를 구합니다.
// 페이지 표시를 위하여 총 상품수를 구합니다.
public $total_count = 0;
// sql limit 의 시작 레코드
@ -733,7 +733,7 @@ function display_type($type, $list_skin='', $list_mod='', $list_row='', $img_wid
$img_width = $img_width ? $img_width : $default["de_type{$type}_img_width"];
$img_height = $img_height ? $img_height : $default["de_type{$type}_img_height"];
// 상품의 갯
// 상품수
$items = $list_mod * $list_row;
// 1.02.00
@ -768,7 +768,7 @@ function mobile_display_type($type, $skin_file, $list_row, $img_width, $img_heig
{
global $member, $g5, $config;
// 상품의 갯
// 상품수
$items = $list_row;
// 1.02.00
@ -799,7 +799,7 @@ function display_category($no, $list_mod, $list_row, $img_width, $img_height, $c
{
global $member, $g5;
// 상품의 갯
// 상품수
$items = $list_mod * $list_row;
$sql = " select * from {$g5['g5_shop_item_table']} where it_use = '1'";
@ -1138,7 +1138,7 @@ function display_event($no, $event, $list_mod, $list_row, $img_width, $img_heigh
{
global $member, $g5;
// 상품의 갯
// 상품수
$items = $list_mod * $list_row;
// 1.02.00

View File

@ -106,17 +106,17 @@ if ($row['it_id']) {
$next_href2 = '';
}
// 관리자가 확인한 사용후기의 수를 얻음
// 관리자가 확인한 사용후기의 수를 얻음
$sql = " select count(*) as cnt from `{$g5['g5_shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
$row = sql_fetch($sql);
$item_use_count = $row['cnt'];
// 상품문의의 수를 얻음
// 상품문의의 수를 얻음
$sql = " select count(*) as cnt from `{$g5['g5_shop_item_qa_table']}` where it_id = '{$it_id}' ";
$row = sql_fetch($sql);
$item_qa_count = $row['cnt'];
// 관련상품의 수를 얻음
// 관련상품의 수를 얻음
$sql = " select count(*) as cnt
from {$g5['g5_shop_item_relation_table']} a
left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1')

View File

@ -30,17 +30,17 @@ $ca = sql_fetch($sql);
$g5['title'] = $it['it_name'].' &gt; '.$it['ca_name'];
include_once(G5_PATH.'/head.sub.php');
// 관리자가 확인한 사용후기의 수를 얻음
// 관리자가 확인한 사용후기의 수를 얻음
$sql = " select count(*) as cnt from `{$g5['g5_shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
$row = sql_fetch($sql);
$item_use_count = $row['cnt'];
// 상품문의의 수를 얻음
// 상품문의의 수를 얻음
$sql = " select count(*) as cnt from `{$g5['g5_shop_item_qa_table']}` where it_id = '{$it_id}' ";
$row = sql_fetch($sql);
$item_qa_count = $row['cnt'];
// 관련상품의 수를 얻음
// 관련상품의 수를 얻음
$sql = " select count(*) as cnt
from {$g5['g5_shop_item_relation_table']} a
left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1')

View File

@ -126,12 +126,12 @@ if ($row['it_id']) {
$next_href2 = '';
}
// 상품 선택옵션
// 상품 선택옵션 수
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '0' and io_use = '1' ";
$row = sql_fetch($sql);
$opt_count = $row['cnt'];
// 상품 추가옵션
// 상품 추가옵션 수
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '1' and io_use = '1' ";
$row = sql_fetch($sql);
$spl_count = $row['cnt'];
@ -145,17 +145,17 @@ $option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
// 추가 옵션
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject']);
// 관리자가 확인한 사용후기의 수를 얻음
// 관리자가 확인한 사용후기의 수를 얻음
$sql = " select count(*) as cnt from `{$g5['g5_shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
$row = sql_fetch($sql);
$item_use_count = $row['cnt'];
// 상품문의의 수를 얻음
// 상품문의의 수를 얻음
$sql = " select count(*) as cnt from `{$g5['g5_shop_item_qa_table']}` where it_id = '{$it_id}' ";
$row = sql_fetch($sql);
$item_qa_count = $row['cnt'];
// 관련상품의 수를 얻음
// 관련상품의 수를 얻음
$sql = " select count(*) as cnt from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1') where a.it_id = '{$it['it_id']}' ";
$row = sql_fetch($sql);
$item_relation_count = $row['cnt'];