initial commit
This commit is contained in:
28
web/template.inc
Normal file
28
web/template.inc
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
class Template{
|
||||
public static function render($content){
|
||||
print "<!DOCTYPE html>";
|
||||
print "<html>";
|
||||
print " <head>";
|
||||
print ' <meta name="viewport" content="width=device-width, initial-scale=1.0">';
|
||||
print ' <style>
|
||||
.errors{
|
||||
width: 100%;
|
||||
}
|
||||
.ERROR{
|
||||
background-color: #FAA;
|
||||
}
|
||||
.OK{
|
||||
background-color: #AFA;
|
||||
}
|
||||
</style';
|
||||
print " </head>";
|
||||
print " <body>";
|
||||
print $content;
|
||||
print " </body>";
|
||||
print "</html>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user