it_id 타입 변경 및 상품코드 체크 코드 추가

This commit is contained in:
chicpro
2013-05-13 18:12:23 +09:00
parent f3a87afdf1
commit cd0bfe4431
5 changed files with 47 additions and 33 deletions

View File

@ -10,6 +10,10 @@ if ($is_admin != "super")
if (!trim($it_id))
alert("복사할 상품코드가 없습니다.");
$t_it_id = preg_replace("/[A-Za-z0-9\-]/", "", $new_it_id);
if($t_it_id)
alert("상품코드는 영문자, 숫자, - 만 사용할 수 있습니다.");
$row = sql_fetch(" select count(*) as cnt from {$g4['shop_item_table']} where it_id = '$new_it_id' ");
if ($row['cnt'])
alert('이미 존재하는 상품코드 입니다.');