Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions Template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
document.write("<html><head></head>")
Copy link
Collaborator

@eamanu eamanu Apr 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid write document.write() in each line, you can create a big string and just use it in a document.write()

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okk thanks!!

document.write("<body bgcolor='#ffffff'>")
document.write("<head>")
document.write("<title>3A Web Design</title>")
document.write("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>")
document.write("<meta name='author' content='Nongjian Zhou'>")
document.write("<style type='text/css'>")
document.write("<!--")
document.write("h1 {color:#ee9933; font-size:24px; font-family: Verdana, Arial, Helvetica, sans-serif}")
document.write("h2 {color:#ee9933; font-size:18px; font-family: Verdana, Arial, Helvetica, sans-serif}")
document.write("h3 {font-size:16px; font-family: Verdana, Arial, Helvetica, sans-serif}")
document.write("h4 {font-size:14px; font-family: 'New Times Roman'}")
document.write("p {font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif}")
document.write("pre {color:#994400; font-size:10px; font-family: Verdana, Arial, Helvetica, sans-serif}")
document.write("a:link {text-decoration: none}")
document.write("a:hover {text-decoration: underline; color: #FF0000}")
document.write("-->")
document.write("</style>")
document.write("</head>")
document.write("")
document.write("<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>")
document.write("<tr><td colspan='2' height='120' align='center' bgcolor='#eeeeee'>")
document.write("<h1>3A Web Design</h1>")
document.write("<pre><div align='right'>Updated:" +document.lastModified+"&nbsp;&nbsp;&nbsp;&nbsp;</div></pre>")
document.write("</td></tr>")
document.write("<tr><td rowspan='2' align='center' valign='top' width='180' bgcolor='#eeeeee'><br>")
document.write("<table width='140' align='center' valign='top' cellspacing='2' cellpadding='5'>")
document.write("<tr><td bgcolor='#dddddd'>")
document.write("<p>&nbsp;&nbsp;&nbsp;&nbsp;<a href='aboutUs.htm'><b>About Us</b></a></p>")
document.write("</td></tr>")
document.write("<tr><td bgcolor='#dddddd'>")
document.write("<p>&nbsp;&nbsp;&nbsp;&nbsp;<a href='services.htm'><b>Our Services</b></a></p>")
document.write("</td></tr>")
document.write("<tr><td bgcolor='#dddddd'>")
document.write("<p>&nbsp;&nbsp;&nbsp;&nbsp;<a href='works.htm'><b>Our Works</b></a></p>")
document.write("</td></tr>")
document.write("<tr> <td bgcolor='#dddddd'>")
document.write("<p>&nbsp;&nbsp;&nbsp;&nbsp;<a href='clients.htm'><b>Our Clients</b></a></p>")
document.write("</td></tr>")
document.write("<tr><td bgcolor='#dddddd'>")
document.write("<p>&nbsp;&nbsp;&nbsp;&nbsp;<a href='contactUs.htm'><b>Contact Us</b></a></p>")
document.write("</td></tr>")
document.write("</table>")
document.write("</td>")
document.write("<td align='center'><table width='95%' height='100%'><tr><td>")
document.write("<h3 align='center'>This is a html file created by using JavaScript</h3>")
<h3 align="center">
document.write("</pre></table></td></tr><tr><td valign='bottom' height='50'>")
document.write("<hr><pre>3A Web Design @ 2000, All Rights Reserved</pre>")
document.write("</td></tr></table>")
document.write("")
document.write("")
Binary file modified __init__.pyc
Binary file not shown.
17 changes: 17 additions & 0 deletions models/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,23 @@ def _():
'http://webchat.freenode.net/?channels=web2py'),
]),
]
# sistema de consulta web
from tkinter import *
import webbrowser

root = Tk()

new = 1
url = "https://www.google.com"

def openweb():
webbrowser.open(url,new=new)

Btn = Button(root, text = "This opens Google",command=openweb)
Btn.pack()

root.mainloop()
# end
if DEVELOPMENT_MENU:
_()

Expand Down
58 changes: 58 additions & 0 deletions static/js/ckeditor/plugins/templates/writing templates.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
document.write("<html><head></head>")
document.write("<body bgcolor='#ffffff'>")
document.write("<head>")
document.write("<title>3A Web Design</title>")
document.write("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>")
document.write("<meta name='author' content='Nongjian Zhou'>")
document.write("<style type='text/css'>")
document.write("<!--")
document.write("h1 {color:#ee9933; font-size:24px; font-family: Verdana, Arial, Helvetica, sans-serif}")
document.write("h2 {color:#ee9933; font-size:18px; font-family: Verdana, Arial, Helvetica, sans-serif}")
document.write("h3 {font-size:16px; font-family: Verdana, Arial, Helvetica, sans-serif}")
document.write("h4 {font-size:14px; font-family: 'New Times Roman'}")
document.write("p {font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif}")
document.write("pre {color:#994400; font-size:10px; font-family: Verdana, Arial, Helvetica, sans-serif}")
document.write("a:link {text-decoration: none}")
document.write("a:hover {text-decoration: underline; color: #FF0000}")
document.write("-->")
document.write("</style>")
document.write("</head>")
document.write("")
document.write("<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>")
document.write("<tr><td colspan='2' height='120' align='center' bgcolor='#eeeeee'>")
document.write("<h1>3A Web Design</h1>")
document.write("<pre><div align='right'>Updated:" +document.lastModified+"&nbsp;&nbsp;&nbsp;&nbsp;</div></pre>")
document.write("</td></tr>")
document.write("<tr><td rowspan='2' align='center' valign='top' width='180' bgcolor='#eeeeee'><br>")
document.write("<table width='140' align='center' valign='top' cellspacing='2' cellpadding='5'>")
document.write("<tr><td bgcolor='#dddddd'>")
document.write("<p>&nbsp;&nbsp;&nbsp;&nbsp;<a href='aboutUs.htm'><b>About Us</b></a></p>")
document.write("</td></tr>")
document.write("<tr><td bgcolor='#dddddd'>")
document.write("<p>&nbsp;&nbsp;&nbsp;&nbsp;<a href='services.htm'><b>Our Services</b></a></p>")
document.write("</td></tr>")
document.write("<tr><td bgcolor='#dddddd'>")
document.write("<p>&nbsp;&nbsp;&nbsp;&nbsp;<a href='works.htm'><b>Our Works</b></a></p>")
document.write("</td></tr>")
document.write("<tr> <td bgcolor='#dddddd'>")
document.write("<p>&nbsp;&nbsp;&nbsp;&nbsp;<a href='clients.htm'><b>Our Clients</b></a></p>")
document.write("</td></tr>")
document.write("<tr><td bgcolor='#dddddd'>")
document.write("<p>&nbsp;&nbsp;&nbsp;&nbsp;<a href='contactUs.htm'><b>Contact Us</b></a></p>")
document.write("</td></tr>")
document.write("</table>")
document.write("</td>")
document.write("<td align='center'><table width='95%' height='100%'><tr><td>")
document.write("<h3 align='center'>This is a html file created by using JavaScript</h3>")
Copy Codedocument.write("</body></html>")
Copy Code<script language="JavaScript" src="header.js"></script>
<h3 align="center">This is a html file created by using JavaScript</h3>
<script language="JavaScript" src="footer.js"></script>
document.write("</pre></table></td></tr><tr><td valign='bottom' height='50'>")
document.write("<hr><pre>3A Web Design @ 2000, All Rights Reserved</pre>")
document.write("</td></tr></table>")
document.write("")
document.write("")
<script language="JavaScript" src="header.js"></script>
<h3 align="center">This is a html file created by using JavaScript</h3>
<script language="JavaScript" src="footer.js"></script>