start of php admin interface to update macs - pre-alfa state

This commit is contained in:
sandb 2010-02-28 19:16:52 +01:00
parent 7d0161f6e2
commit eda14cdca4
11 changed files with 94 additions and 0 deletions

50
admin.php Normal file
View File

@ -0,0 +1,50 @@
<?php
require_once("lib/trans.php");
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pamela</title>
<script src="js/jquery-1.3.2.js" type="text/javascript"></script>
<link rel="stylesheet" href="pamela.css" type="text/css" media="screen" />
</head>
<body>
<header id="hdr">
<div>
<img src="img/pamela-logo.png" alt="Pamela" />
</div>
</header>
<h1>Name your macs</h1>
<p>If you want to have a name shown instead of your mac, enter your mac and desired name below.</p>
<form method="post">
<table>
<thead>
<th>Mac</th>
<th>Name</th>
<th>Visible</th>
</thead>
<tbody>
<?php
$known_macs = known_macs_get();
$counter = 0;
foreach ($known_macs as $mac => $name) {
?>
<tr>
<td><input name="mac-<?=$counter?>" type="text" value="<?=$mac?>" /></td>
<td><input name="name-<?=$counter?>" type="text" value="<?=$name?>" /></td>
<td><input name="show-<?=$counter?>" type="checkbox" <?=$name==NULL?"":"checked"?> /></td>
</tr>
<?php
$counter++;
}
?>
<tr>
<td><input name="mac-<?=$counter?>" type="text" /></td>
<td><input name="name-<?=$counter?>" type="text" /></td>
<td><input name="show-<?=$counter?>" type="checkbox" /></td>
</tr>
</tbody>
</table>
<input type="submit" value="submit" name="submit" />
</form>
</body>
</html>

BIN
fonts/AnjaEliane.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,21 @@
------------------------------------------------------------------------
The eurofurence typeface family by tobias b koehler (unci@tigerden.com)
------------------------------------------------------------------------
This is a family of geometric rounded sans serif fonts consisting of
three weights (light, medium, bold) in upright and italic styles,
originally designed for EuroFurence, the first European furry convention
1995 in Kaiser-Wilhelm-Koog.
The character set includes Roman, Greek and Cyrillic characters.
File format is TrueType for PC (under Windows, Linux etc).
These fonts are freeware and can be distributed as long as they are
together with this text file. I would appreciate it though if you could
contact me at unci@tigerden.com if you put them on a server. Free
samples from commercial users are always very welcome. :)
For more information, please see the uncifonts WWW page at:
http://mercurio.iet.unipi.it/users/tobias/uncifonts.html
Have fun! tobias b koehler, 2000-04-02

BIN
img/pamela-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

23
pamela.css Normal file
View File

@ -0,0 +1,23 @@
@font-face {
font-family: AnjaEliane;
src: url('http://localhost/sb/pamela/fonts/AnjaEliane.ttf');
}
@font-face {
font-family: Eurofurence;
src: url('http://localhost/sb/pamela/fonts/eurofurence/eurof35.ttf');
}
body {
font-family: Eurofurence;
}
h1, h2, h3, h4, h5, h6 {
font-family: AnjaEliane, sans-serif;
font-weight: normal;
}
p {
font-family: Eurofurence;
font-size: 16pt;
}