0){ for($i=0; $row = assoc($rs); $i++){ $row['num'] = $no--; $list[] = $row; } }else{ echo ""; exit; } if($total > 0) $toalPageCn = ceil($total/$onePageCount); else $toalPageCn = 1; $paging = disPgCount($toalPageCn, $pagenum, $_TAGS, 1); //print_r($list); header("Content-type: application/vnd.ms-excel"); header("Content-type: application/vnd.ms-excel; charset=utf-8"); header("Content-Disposition: attachment; filename=회원현황_".date("YmdHi").".xls"); header("Content-Description: PHP4 Generated Data"); if ($type=="member") { //테이블 상단 만들기 $EXCEL_STR = " "; for($i=0;count($list)>$i;$i++) { $EXCEL_STR .= " "; } }else if ($type=="banner"){ $EXCEL_STR = "
번호 고유값 핸드폰번호 가입일 최종로그인
".$list[$i]["num"]." ".$list[$i]["m_uniq"]." ".$list[$i]["m_hp"]." ".$list[$i]["regdate"]." ".$list[$i]["m_lastlogindate"]."
"; for($i=0;count($list)>$i;$i++) { $EXCEL_STR .= " "; } } $EXCEL_STR .= "
번호 배너제목 시작일 종료일 상태 등록일
".$list[$i]["num"]." ".$list[$i]["b_name"]." ".$list[$i]["b_startdate"]." ".$list[$i]["b_enddate"]." ".$list[$i]["b_status"]." ".$list[$i]["b_regdate"]."
"; echo " "; echo $EXCEL_STR; ?>