이틀 전, 웹 사이트를 검색 할 가능성이 높아지기 위해 웹 사이트 (www.cfsoft.com.cn)를위한 기사를 게시했습니다.
1. XXFB 테이블 구조는 다음과 같습니다.
내 웹 사이트에서 여러 열을 구별하기 위해 사용되는 유형 유형은 기술과 뉴스가 있습니다.
pagetital 페이지 제목
키워드 페이지 키워드
설명 페이지 Mata의 설명
문서 기사 제목
DocText 기사 내용
방출 시간
Orderid 정렬 코드
Comdend 라벨링은 권장 기사입니다
둘째, 각 유형은 list_ plus 디렉토리 템플릿 페이지, temp_ plus 유형 이름 기사 템플릿 페이지 목록을 정의합니다.
3. 다음은 주요 프로그램을 생성하는 정적 페이지입니다.
| 다음은 참조 내용입니다. if trim (request (flag)) = 빌드 '--- 생성 디렉토리 ------ SQL = XXFB에서 Distit 유형을 선택하십시오 set objrs = const.execute (SQL) objrs.eof는 아닙니다 url = siteurl &/admin/list_ & trim (objrs (type)) & set http = server.createobject (msxml2.xmlhttp) http.open get, url, false http.send () set objstream = server.createobject (adodb.stream) objstream.type = 1 objstream.open objstream.write http.responsebody objstream.savetofile server.mappath (/& trim (objrs (type)) 및/& trim (objrs (type)) &. htm, 2 objstream.close objstream = 아무것도 설정하지 않습니다 objrs.movenext 향하게 하다 OBJRS = 아무것도 설정하지 않습니다 sql = select * from xxfb order by thedate desc set objrs = const.execute (SQL) objrs.eof는 아닙니다 url = siteurl &/admp_ & trim (objrs (type)) & id =? set http = server.createobject (msxml2.xmlhttp) http.open get, url, false http.send () set objstream = server.createobject (adodb.stream) objstream.type = 1 objstream.open objstream.write http.responsebody objstream.savetofile server.mappath (/& trim (objrs (type)) 및/& trim (objrs (id) &. htm), 2 objstream.close objstream = 아무것도 설정하지 않습니다 objrs.movenext 향하게 하다 Response.write 정적 웹 페이지 성공을 생성합니다! 끝 If |