add css for last 10
This commit is contained in:
parent
87d68d2981
commit
a8bdc44516
@ -195,3 +195,28 @@
|
||||
.button a:hover {
|
||||
background-color: #111111;
|
||||
}
|
||||
|
||||
.last10-row {
|
||||
display: table-row;
|
||||
width: auto;
|
||||
clear: both;
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.last10-name {
|
||||
float: left;
|
||||
display: table-column;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.last10-location {
|
||||
float: left;
|
||||
display: table-column;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.last10-date {
|
||||
float: left;
|
||||
display: table-column;
|
||||
width: 200px;
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ char *www_last10() {
|
||||
|
||||
for (z=0;z<i;z++) {
|
||||
localtime_r(&callers[z].time, &l10_time);
|
||||
sprintf(buffer, "<div class=\"last10-name\">%s</div><div class=\"last10-location\">%s</div><div class=\"last10-date\">%.2d:%.2d %.2d-%.2d-%.2d</div>\n", callers[z].name, callers[z].location, l10_time.tm_hour, l10_time.tm_min, l10_time.tm_mday, l10_time.tm_mon + 1, l10_time.tm_year - 100);
|
||||
sprintf(buffer, "<div class=\"last10-row\"><div class=\"last10-name\">%s</div><div class=\"last10-location\">%s</div><div class=\"last10-date\">%.2d:%.2d %.2d-%.2d-%.2d</div></div>\n", callers[z].name, callers[z].location, l10_time.tm_hour, l10_time.tm_min, l10_time.tm_mday, l10_time.tm_mon + 1, l10_time.tm_year - 100);
|
||||
if (len + strlen(buffer) > max_len - 1) {
|
||||
max_len += 4096;
|
||||
page = (char *)realloc(page, max_len);
|
||||
|
Reference in New Issue
Block a user