html_search_form = getFormHtml(param_dic, dao_util) html_table, html_paging = getTableAndPagingHtml(param_dic, dao_util) html_content = """ <div class="box" > <h2>%s SC 도메인 검색</h2> <form id='search_form' action='/moon/crawl/domain_list.py' method='post'> <input type="hidden" name="sc_type" value="%s" /> """%(sc_type.upper(), sc_type) + html_search_form +""" </form> </div> <div class="box" id="tableDiv"> <h2>도메인 정보 조회 결과</h2><br/> <p> <a href='/moon/crawl/domain_list.py?sc_type=%s&cmd=updateSeedURLCount'>SeedURL 개수 업데이트</a><br/> </p> """%(sc_type) + html_paging + html_table + html_paging +""" </div> """ js_popup = html.getJSConfirmPopup("%s 도메인 ["%sc_type.upper(), "] 과 Seed URL 데이터를 모두 삭제하시겠습니까?") js_popup += html.getJSConfirmPopup("%s 도메인 ["%sc_type.upper(), "] 의 Seed URL 데이터를 모두 삭제하시겠습니까?","confirmPopup2") site_path_list = ["%s SC"%sc_type.upper(), "%s 도메인 리스트"%sc_type.upper()] print "Content-type: text/html; charset=utf-8\n" print html.getHead(site_path_list, js_popup) print html.getBodyStart(site_path_list) print html_content print html.getBodyEnd(sc_type)
content_row += """<td><a href="/moon/crawl/data_add.py?sc_type=%s">추가/수정</a></td>"""%sc content_rows += "<tr>%s</tr>"%content_row content_row = "<td>도메인 목록</td>" for sc in sc_list: content_row += """<td><a href="/moon/crawl/domain_list.py?sc_type=%s">도메인</a></td>"""%sc content_rows += "<tr>%s</tr>"%content_row content_row = "<td>씨드URL 목록</td>" for sc in sc_list: content_row += """<td><a href="/moon/crawl/seedurl_list.py?sc_type=%s">씨드</a></td>"""%sc content_rows += "<tr>%s</tr>"%content_row html_content = """ <div class="box" > <h2>크롤 관리 사이트맵</h2><br/> <table> %s %s </table> </div> """%(title_row, content_rows) site_path = ["MAIN"] print "Content-type: text/html; charset=utf-8\n" print html.getHead(titleList=site_path, script="", style="") print html.getBodyStart(site_path) #print str(form)+html_content # DEBUG용 print html_content print html.getBodyEnd(menu="main")