This commit is contained in:
darthsandmann
2016-10-16 21:53:15 +02:00
parent 0d10f8b9dc
commit c9f3117da1
412 changed files with 137942 additions and 0 deletions

View File

@ -0,0 +1 @@
# python package initialization

View File

@ -0,0 +1,47 @@

<html>
<head>
<title>Beitraege</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="/js/jquery-2.1.4.min.js"></script>
</head>
<body>
<h1>Beitraege</h1>
<table id="idList">
<tr >
<td>Typ1</td>
<td>Test1</td>
<td>Zeit1</td>
<td>Text1</td>
</tr>
<tr >
<td>Typ2</td>
<td>Test2</td>
<td>Zeit2</td>
<td>Text2</td>
</tr>
<tr >
<td>Typ3</td>
<td>Test3</td>
<td>Zeit3</td>
<td>Text3</td>
</tr>
<tr >
<td>Typ4</td>
<td>Test4</td>
<td>Zeit4</td>
<td>Text4</td>
</tr>
<tr >
<td>Typ5</td>
<td>Test5</td>
<td>Zeit5</td>
<td>Text5</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,148 @@
/* template.css */
/* allgemeine Vorgaben */
body {
font-family: "Open Sans", sans-serif;
font-size: 12pt;
padding: 0;
margin: 0;
}
/* Basislayout */
.clSiteHeader {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100px;
line-height: 100px;
margin: 0;
padding: 5px;
font-size: 40pt;
text-align: center;
text-shadow:black 3px 2px;
font-family: cursive, fantasy;
color: #920B19;
background-color: #B6B6B7;
}
.clContent {
position: absolute;
top: 110px; /* height, padding, border, margin von idSiteHeader beachten */
left: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 5px;
}
/* Elemente im Content-Bereich */
.clContentHeader {
position: absolute;
top: 20px;
left: 0;
right: 0;
height: 30px;
line-height: 30px;
margin: 0;
padding: 5px;
font-size: 18pt;
text-align: center;
}
.clContentArea {
position: absolute;
top: 80px; /* height, padding, border, margin von idContentHeader beachten */
left: 0;
right: 0;
bottom: 40px; /* height, padding, border, margin von idButtonArea beachten */
margin: 10px 0;
margin-left: 10px;
padding: 5px;
}
.clButtonArea {
position: absolute;
left: 0;
right: 0;
/*float: left; width: 10px:*/
bottom: 0;
height: 80px;
line-height: 80px;
margin: 0;
padding: 5px;
text-align: center;
background-color: #B6B6B7;
}
/* Links und Submit-Schalter im Buttonbereich gestalten */
.clButtonArea a, input[type="submit"] {
margin: 0 5px;
padding: 3px 6px;
font-size: 14pt;
text-decoration: none;
border: 2px solid;
color: black;
background-color: buttonface;
}
/* unterschiedliche Kennzeichnungen je nach Bedienung vermeiden */
.clButtonArea a:hover, a:visited, a:active {
color: black;
}
/* Gestaltung von Tabellen */
#idList {
table-layout: fixed;
width: auto;
border: 2px solid;
border-collapse: collapse;
margin:auto;
}
#idList th {
text-align: center;
padding-left: 5px;
background-color: #FFFFFF;
}
#idList th, #idList td {
padding: 3px;
border: 2px solid;
}
/* Gestaltung von Formularen */
/* das Formular nochmals zusätzlich gestalten */
#idForm .clContentArea {
width: 500px;
margin: auto;
}
.clFormRow {
position: relative; /* damit das Element in jedem Fall "positioniert" ist und damit als Bezugspunkt geeignet ist */
height: 30px;
margin-bottom: 10px;
}
.clFormRow label {
position: absolute;
top: 0;
left: 0;
width: 240px;
text-align: center;
}
.clFormRow input {
position: absolute;
top: 0;
left: 250px;
width: 250px;
}
/* EOF */

View File

@ -0,0 +1,32 @@

<html>
<head>
<title>Forum XY</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="/js/jquery-2.1.4.min.js"></script>
</head>
<body>
<h1>Forum XY</h1>
<table id="idList">
<tr >
<td>Test1</td>
</tr>
<tr >
<td>Test2</td>
</tr>
<tr >
<td>Test3</td>
</tr>
<tr >
<td>Test4</td>
</tr>
<tr >
<td>Test5</td>
</tr>
</table>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,34 @@
<html>
<head>
<title>Themen</title>
<style type="text/css">
@import url("/css/style.css");
</style>
<script type="text/javascript" src="/js/jquery-2.1.4.min.js"></script>
</head>
<body>
<h1>Themen</h1>
<table id="idList">
<tr >
<td>Test1</td>
</tr>
<tr >
<td>Test2</td>
</tr>
<tr >
<td>Test3</td>
</tr>
<tr >
<td>Test4</td>
</tr>
<tr >
<td>Test5</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,40 @@
#coding: utf-8
import os
import cherrypy
from app import application
#--------------------------------------
def main():
#--------------------------------------
# Get current directory
try:
current_dir = os.path.dirname(os.path.abspath(__file__))
except:
current_dir = os.path.dirname(os.path.abspath(sys.executable))
# disable autoreload and timeout_monitor
cherrypy.engine.autoreload.unsubscribe()
cherrypy.engine.timeout_monitor.unsubscribe()
# Static content config
static_config = {
'/': {
'tools.staticdir.root': current_dir,
'tools.staticdir.on': True,
'tools.staticdir.dir': './content',
'tools.staticdir.index': 'index.html'
}
}
# Mount static content handler
root_o = cherrypy.tree.mount(application.Application_cl(), '/', static_config)
# suppress traceback-info
cherrypy.config.update({'request.show_tracebacks': False})
# Start server
cherrypy.engine.start()
cherrypy.engine.block()
#--------------------------------------
if __name__ == '__main__':
#--------------------------------------
main()
# EOF