#!/usr/bin/python #coding: utf-8 #import sys #import io import cgi import memosqlfunc import cgifunc cgifunc.head('add') print "<meta http-equiv=\"refresh\" content=\"0;URL=http://p06044.server-on.net/memopad.py\">" form = cgi.FieldStorage() name = form["name"].value.replace('\'', '\'\'') print name cgifunc.end() memosqlfunc.additem(name)
#!/usr/bin/python #coding:utf-8 import cgi import cgifunc import sqlfunc cgifunc.head('delete') print "<meta http-equiv=\"refresh\" content=\"0;URL=http://p06044.server-on.net/auction.py\">" form = cgi.FieldStorage() id = form["btn"].value print id cgifunc.end() sqlfunc.delete(id)
#!/usr/bin/python #coding:utf-8 import datetime import cgifunc import sqlfunc cgifunc.head('meru') cgifunc.link('meru') date = datetime.date.today() print date cgifunc.afi() print "<br/>" print "<a href=\"http://fuwaao.blogspot.com/search/label/%E3%83%A1%E3%83%AB%E3%82%AB%E3%83%AA%E5%87%BA%E5%93%81%E4%B8%80%E8%A6%A7\" target=\"_blank\" class=\"btn-square-shadow\">出品リスト</a><br/>" print "<form method=\"POST\" action=\"additem.py\">" print "<p>商品名:<input type=\"text\" name=\"name\" id=\"addtext\"><input type=\"submit\" class=\"btn-square-shadow\" value=\"追加\"></p>" print "<script type=\"text/javascript\">document.getElementById('addtext').focus();</script>" print "</form>" #f = open('auction.txt') #areas = f.read().splitlines() #for a in areas: # print cgifunc.link3(a) #f.close() #print "<form action=\"deletebutton.py\" method=\"get\">" #for i in range(0, sqlfunc.recordcount()): # print sqlfunc.link4(i) #print "</form>" sqlfunc.link4for() cgifunc.end()
#!/usr/bin/python #coding:utf-8 import datetime import cgifunc import memosqlfunc cgifunc.head('memopad') cgifunc.link('memopad') date = datetime.date.today() print date cgifunc.afi() print "<br/>" print "<form method=\"POST\" action=\"memoadditem.py\">" print "<p>文章:<input type=\"text\" name=\"name\" id=\"addtext\"><input type=\"submit\" class=\"btn-square-shadow\" value=\"追加\"></p>" print "<script type=\"text/javascript\">document.getElementById('addtext').focus();</script>" print "</form>" memosqlfunc.link4for() cgifunc.end()
#!/usr/bin/python #coding:utf-8 import datetime import cgifunc from bs4 import BeautifulSoup cgifunc.head('yafuoku') cgifunc.link('yauc') date = datetime.date.today() print date cgifunc.afi() print "<br/>" f = open('/home/pi/gittxt/yahtml.txt') areas = f.read().splitlines() for line in areas: print line cgifunc.end()
#!/usr/bin/python #coding:utf-8 import datetime import cgifunc cgifunc.head('amazon') cgifunc.link('amazon') date = datetime.date.today() print date cgifunc.afi() print "<br/>" print "<a href=\"https://www.amazon.co.jp/hz/wishlist/ls/3DWA0M1KJI44Z?&sort=default\" target=\"_blank\">ほしい物リスト</a><br/>" f = open('/home/pi/gittxt/amazonhtml.txt') areas = f.read().splitlines() for line in areas: rpl = line.replace('/dp', 'https://www.amazon.co.jp/dp') print rpl cgifunc.end()
#!/usr/bin/python #coding:utf-8 import datetime import commands import cgifunc cgifunc.head('cron') #page link cgifunc.link('cron') #date date = datetime.date.today() print date #afi cgifunc.afi() #date countdown check = commands.getoutput("bash /home/pi/git/timediff.sh") print check #samba #samba = commands.getoutput("ls -tl /home/pi/share | tail -n +2 | awk \'{print $6,$7,$8,$9}\'") #print "<div>"+samba+"</div>" cgifunc.ls() #weight print "<div><img src=\"weight.png\" width=\"50%\"></div>" #CRON
#!/usr/bin/python #coding:utf-8 import cgifunc #head cgifunc.head('apache2') #apache f = open('/home/pi/gittxt/index.html') areas = f.read().splitlines() for line in areas: print line f.close() #afi cgifunc.afi() #link cgifunc.link('index') #end cgifunc.end()
#!/usr/bin/python #coding:utf-8 import cgi import cgifunc import flashsqlfunc cgifunc.head('deleteword') print "<meta http-equiv=\"refresh\" content=\"0;URL=http://p06044.server-on.net/flashcard.py\">" form = cgi.FieldStorage() id = form["btn"].value print id cgifunc.end() flashsqlfunc.delete(id)
#!/usr/bin/python #coding:utf-8 import cgi import cgifunc import memosqlfunc cgifunc.head('deleteline') print "<meta http-equiv=\"refresh\" content=\"0;URL=http://p06044.server-on.net/memopad.py\">" form = cgi.FieldStorage() id = form["btn"].value print id cgifunc.end() memosqlfunc.delete(id)
#!/usr/bin/python #coding: utf-8 import cgifunc cgifunc.head('tumblr') cgifunc.link('tumblr') print "<br/>" print "<a href=\"https://lab.syncer.jp/Tool/Webp-Converter/\" target=\"_blank\">webp</a><br/><a href=\"https://convertio.co/ja/image-converter/\" target=\"_blank\">webp2</a><br/><a href=\"https://www.tumblr.com/dashboard\" target=\"_blank\">tumblr</a>" f = open('tumblr.txt') areas = f.read().splitlines() for line in areas: word = cgifunc.urlencode(line) #print "<a href=\""+line+"\" target=\"_blank\">"+word+"</a>" f.close() cgifunc.afi() cgifunc.end()
#!/usr/bin/python #coding:utf-8 import datetime import cgifunc import flashsqlfunc cgifunc.head('flash') cgifunc.link('flash') date = datetime.date.today() print date cgifunc.afi() print "<br/>" #print "<div><input type=\"button\" class=\"btn-square-shadow\" value=\"英単語\" onclick=\"clickBtn()\"/><span id=\"p2\">日本語訳</span></div>" #print "<script>" #print "document.getElementById(\'p2\').style.visibility =\"hidden\";" #print "function clickBtn(){" #print " const p2 = document.getElementById(\'p2\');" #print " if(p2.style.visibility==\'visible\'){" #print " p2.style.visibility =\'hidden\';" #print " }else{" #print " p2.style.visibility =\'visible\';" #print " }" #print "}" #print "</script>" print "<form method=\"POST\" action=\"flashadditem.py\">" print "<p>単語<input type=\"text\" name=\"word\" id=\"addtext\">訳<input type=\"text\" name=\"translate\" id=\"addtext\"><input type=\"submit\" class=\"btn-square-shadow\" value=\"追加\"></p>" print "<script type=\"text/javascript\">document.getElementById('addtext').focus();</script>" print "</form>" flashsqlfunc.link4for()