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

This commit is contained in:
whitedot
2013-02-04 10:47:37 +09:00
2 changed files with 12 additions and 0 deletions

View File

@ -80,6 +80,14 @@ for($j = 0; $sp_row = sql_fetch_array($sp_result); $j++) {
}
*/
// 상품요약정보 copy
$ii_sql = " insert ignore into {$g4['yc4_item_info_table']} ( it_id, ii_gubun, ii_article, ii_title, ii_value )
select '$new_it_id', ii_gubun, ii_article, ii_title, ii_value
from {$g4['yc4_item_info_table']}
where it_id = '$it_id'
order by ii_id asc ";
sql_query($ii_sql);
// 상품이미지 복사
function copy_directory($src_dir, $dest_dir)
{

View File

@ -78,6 +78,10 @@ function itemdelete($it_id)
$sql = " delete from `{$g4['yc4_supplement_table']}` where it_id = '$it_id' ";
sql_query($sql);
// 상품요약정보삭제
$sql = " delete from `{$g4['yc4_item_info_table']}` where it_id = '$it_id' ";
sql_query($sql);
//------------------------------------------------------------------------
// HTML 내용에서 에디터에 올라간 이미지의 경로를 얻어 삭제함