#!/bin/env python # -*- coding: EUC-KR -*- import adtemplate import adstatic import recent if __name__=='__main__': print 'Content-Type: text/html\n' WORD = adstatic.randWord() keywords = "컴퓨터 조립 서버 구축, 번역, 영화, DVD, 서버, 광랜, 랜카드, 초고속 인터넷, 위성 방송, DMB, 학원, 수능 방송 " adtemplate.adHead(keywords, "애니딕: 인터넷 영어 예문 사전 " ) #adtemplate.googleHead(keywords, "애니딕: 인터넷 영어 예문 사전 " ) adtemplate.adLogo(keywords) adtemplate.adForm("ad.py", WORD) #adtemplate.adGoogle() # print """ # <center> # # <object type='application/x-shockwave-flash' width='502px' height='399px' align='middle' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'><param name='movie' value='http://flvs.daum.net/flvPlayer.swf?vid=jEvH4s08HaQ$' /><param name='allowScriptAccess' value='always' /><param name='allowFullScreen' value='true' /><param name='bgcolor' value='#000000' /><embed src='http://flvs.daum.net/flvPlayer.swf?vid=jEvH4s08HaQ$' width='502px' height='399px' allowScriptAccess='always' type='application/x-shockwave-flash' allowFullScreen='true' bgcolor='#000000' ></embed></object> #</center> # # </br> # """ ttt = """ <a href="http://condolence.media.daum.net/gaia/do/service/read?bbsId=Notice&articleId=1">
# -*- coding: EUC-KR -*- import adtemplate import adstatic def prnFile(fname): try: fd = open(fname, 'r') except: return print fd.read() if __name__=='__main__': print 'Content-Type: text/html\n' WORD = adstatic.randWord() keywords = "특허, 아이디어, 포토샵, 디자인, 메일 서버 " adtemplate.adHead(keywords, "애니딕 제안,소감, 아이디어, 디자인 " ) adtemplate.adLogo() adtemplate.adForm("ad.py", WORD) adtemplate.adGoogle() prnFile("cmnt.html") adstatic.adFooter()
leftcols = n % columns print "<td> </td>" * leftcols if leftcols > 0: print "</tr>" print "</table></font>" def prn_recent(): #print """<center> <table><tr><td align="left" width=60%%>""" print """ <table><tr align="left">""" print """<td align="left" width=100%%>""" recent_words() print "</td></tr></table> " if __name__ == "__main__": print 'Content-Type: text/html\n' keywords = "컴퓨터, 인터넷, 무선공유기, 학원 " WORD = adstatic.randWord() adtemplate.adHead(keywords, "애니딕: %s" % WORD) adtemplate.adLogo() adtemplate.adForm("ad.py", WORD) adtemplate.adGoogle() prn_recent() adstatic.adFooter()
if len(sys.argv)>1: debug = 1 get_query(debug) if len(WORD) > 0: r = ord(WORD[0]) r %= len(CON_KEYS) keywords = CON_KEYS[r] else: keywords = CON_KEYS[0] orgword = WORD urlword = orgword.replace(' ','+') #adtemplate.adHead(keywords, "애니딕: %s" % WORD) adtemplate.adHead(keywords, "애니딕 영어 사전 검색 : 컴퓨터") adtemplate.adLogo(keywords) adtemplate.adForm("ad.py", WORD) print NAVER % (urlword, orgword) print "<br/> " adtemplate.adGoogle() if WORD != '' and FUNC == 3: try: req_dic(sys.argv, FUNC, WORD) except: pass
#!/bin/env python # -*- coding: EUC-KR -*- import adtemplate import adstatic if __name__=='__main__': print 'Content-Type: text/html\n' WORD = adstatic.randWord() keywords = "번역, 영화, DVD, 서버, 광랜, 랜카드, 초고속 인터넷, 위성 방송, DMB, 학원, 수능 방송 " adtemplate.adHead(keywords, "애니딕: 컴퓨, 인터넷 " ) adtemplate.adLogo() adtemplate.adForm("ad.py", WORD) adtemplate.adGoogle() adstatic.adRecent() adstatic.adFooter()