getFetchQueryArray($sql); $history_html = ''; if($pdata['total'] > 0){ // 현재 버전의.. $curr_sort = ''; $curr_start = ''; foreach($pdata['row'] as $k=>$v){ if($v['wm_id'] == $version){ // 순서 $curr_sort = $v['wm_wdate']; // 개인정보처리방침 내용 $v_privacy = $v['wm_privacy']; $curr_start = $v['wm_sdate']; } } $history_html .= '개인정보 처리방침의 변경

① 이 개인정보 처리방침은 '.$curr_start.'부터 적용됩니다.
② 이전의 개인정보 처리방침은 아래에서 확인하실 수 있습니다.

'; $cnt_history = 0; foreach($pdata['row'] as $k=>$v){ // 현재 버전 이하만 if($curr_sort > $v['wm_wdate']){ $history_html .= ''.$v['wm_sdate'].' ~ '.$v['wm_edate'].' 개인정보처리방침
'; $cnt_history++; } } } // 없으면 현재 개인정보처리방침으로 이동 if($cnt_history == 0 && !$curr_sort){ alert('', '/doc/privacy', ''); return; } ?>

개인정보처리방침

Privacy Statement

0){?>