Small CSS changes

This commit is contained in:
svk28 2017-09-04 12:03:07 +03:00
parent 77b11e9d50
commit 9a35fd4db4
2 changed files with 7 additions and 5 deletions

View File

@ -42,6 +42,7 @@ h4{
font-weight:normal; font-weight:normal;
margin-left:20px; margin-left:20px;
padding:10px 0; padding:10px 0;
position:relative;
color:#fff; color:#fff;
text-shadow: 2px 2px 2px #050505; text-shadow: 2px 2px 2px #050505;
} }
@ -85,6 +86,7 @@ header .stuts span {
.table_dark td { .table_dark td {
color: #838383; color: #838383;
/*color: #CAD4D6;*/ /*color: #CAD4D6;*/
width: 70%
border-bottom: 1px solid #696969; border-bottom: 1px solid #696969;
border-right:1px solid #696969; border-right:1px solid #696969;
padding: 7px 17px; padding: 7px 17px;

View File

@ -56,16 +56,16 @@ def getInternalNumbers():
conn = connectDB() conn = connectDB()
c = conn.cursor() c = conn.cursor()
order = 'int_number' order = 'int_number'
result = '<h4 align=center>Список внутренних телефонов</h4>' result = '<h4 align=left>Список внутренних телефонов</h4>'
qwr = "SELECT * FROM int_number ORDER by " + order qwr = "SELECT * FROM int_number ORDER by " + order
c.execute(qwr) c.execute(qwr)
listHeader = '<table class="table_dark"><tr><th>№ п/п</th>\n' \ listHeader = '<table class="table_dark"><tr><th>№ п/п</th>\n' \
'<th><a href=index.py?query_type=internal&order=int_number>Телефон</a></th>\n' \ '<th><a href=index.py?query_type=internal&order=int_number>Телефон</a></th>\n' \
'<th><a href=index.py?query_type=internal&order=fio>ФИО</a></th>\n' \ '<th><a href=index.py?query_type=internal&order=fio>ФИО</a></th>\n' \
'<th>Описание<th>Электро-почта</th></tr>\n' '<th>Описание<th>Эл.почта</th></tr>\n'
result = result + listHeader result = result + listHeader
for row in c.fetchall(): for row in c.fetchall():
rowData = "<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n" % (row[0], row[1], row[2], row[4], row[3]) rowData = "<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td><a href=\"mailto:%s\">%s</a></td></tr>\n" % (row[0], row[1], row[2], row[4], row[3], row[3])
result = result + rowData result = result + rowData
return (result + "</table>\n") return (result + "</table>\n")
@ -73,7 +73,7 @@ def getCOline():
conn = connectDB() conn = connectDB()
c = conn.cursor() c = conn.cursor()
order = 'ext_co_line' order = 'ext_co_line'
result = '<h4 align=center>Список внешних линий</h4>' result = '<h4 align=left>Список внешних линий</h4>'
qwr = "SELECT * FROM ext_co_line ORDER by " + order qwr = "SELECT * FROM ext_co_line ORDER by " + order
c.execute(qwr) c.execute(qwr)
listHeader = '<table class="table_dark"><tr><th>№ п/п</th>\n' \ listHeader = '<table class="table_dark"><tr><th>№ п/п</th>\n' \
@ -142,7 +142,7 @@ def ReportData(environ):
return (result + "</table></td></tr></table>\n" + qwr) return (result + "</table></td></tr></table>\n" + qwr)
def ErrorMessage(txt): def ErrorMessage(txt):
return ('<td width=100% align=center valign=center><font color=red>{}</font></td></tr></table>'.format(txt)) return ('<td width=100% align=center><font color=red>{}</font></td></tr></table>'.format(txt))
def connectDB(): def connectDB():
c = pymysql.connect( c = pymysql.connect(