쇼핑몰 사용자 코드 체크 및 정리

This commit is contained in:
chicpro
2014-03-27 13:16:35 +09:00
parent c40e53c58b
commit 77e5cc7a23
27 changed files with 29 additions and 71 deletions

View File

@ -68,7 +68,7 @@ $result = sql_query($sql);
</ul>
</div>
<div class="win_btn"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
<div class="win_btn"><button type="button" onclick="window.close();">창닫기</button></div>
</div>
<?php

View File

@ -40,7 +40,7 @@ if (file_exists($list_file))
// 총몇개 = 한줄에 몇개 * 몇줄
$items = $ev['ev_mobile_list_mod'];
// 페이지가 없으면 첫 페이지 (1 페이지)
if ($page == "") $page = 1;
if ($page < 1) $page = 1;
// 시작 레코드 구함
$from_record = ($page - 1) * $items;

View File

@ -182,7 +182,7 @@ $g5['title'] = $it['it_name'].' &gt; '.$it['ca_name'];
include_once(G5_MSHOP_PATH.'/_head.php');
// 분류 위치
// HOME > 1단계 > 2단계 ... > 6단계 분류
// HOME > 1단계 > 2단계 ... > 5단계 분류
$ca_id = $it['ca_id'];
$nav_skin = $skin_dir.'/navigation.skin.php';
if(!is_file($nav_skin))

View File

@ -15,7 +15,7 @@ $total_count = $row['cnt'];
$rows = 5;
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 레코드 구함
$sql = "select * $sql_common order by iq_id desc limit $from_record, $rows ";

View File

@ -45,7 +45,7 @@ $total_count = $row['cnt'];
$rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select a.*, b.it_name

View File

@ -15,7 +15,7 @@ $total_count = $row['cnt'];
$rows = 5;
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 레코드 구함
$sql = "select * $sql_common order by is_id desc limit $from_record, $rows ";

View File

@ -45,7 +45,7 @@ $total_count = $row['cnt'];
$rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select *

View File

@ -70,7 +70,7 @@ define('G5_SHOP_CSS_URL', str_replace(G5_PATH, G5_URL, $skin_dir));
// 총몇개
$items = $ca['ca_mobile_list_mod'];
// 페이지가 없으면 첫 페이지 (1 페이지)
if ($page == "") $page = 1;
if ($page < 1) $page = 1;
// 시작 레코드 구함
$from_record = ($page - 1) * $items;

View File

@ -40,7 +40,7 @@ if (file_exists($list_file)) {
// 총몇개 = 한줄에 몇개 * 몇줄
$items = $list_mod * $list_row;
// 페이지가 없으면 첫 페이지 (1 페이지)
if ($page == "") $page = 1;
if ($page < 1) $page = 1;
// 시작 레코드 구함
$from_record = ($page - 1) * $items;

View File

@ -1,5 +1,6 @@
<?php
include_once('./_common.php');
include_once(G5_LIB_PATH.'/mailer.lib.php');
// 결제등록 완료 체크
if($od_settle_case != '무통장') {

View File

@ -36,7 +36,7 @@ if ($total_count == 0)
$rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == '') { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함

View File

@ -31,7 +31,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
// 전체 페이지 계산
$total_page = ceil($total_count / $items);
// 페이지가 없으면 첫 페이지 (1 페이지)
if ($page == "") $page = 1;
if ($page < 1) $page = 1;
// 시작 레코드 구함
$from_record = ($page - 1) * $items;

View File

@ -72,7 +72,7 @@ if (($qsort == "it_sum_qty" || $qsort == "it_price" || $qsort == "it_use_avg" ||
// 총몇개 = 한줄에 몇개 * 몇줄
$items = $default['de_mobile_search_list_mod'];
// 페이지가 없으면 첫 페이지 (1 페이지)
if ($page == "") $page = 1;
if ($page < 1) $page = 1;
// 시작 레코드 구함
$from_record = ($page - 1) * $items;