Skip to content
Browse files

template altered

  • Loading branch information...
1 parent 71dda5f commit fb1f505cbdbc35b3b057a1bcb62c87df10523533 @scitor committed Dec 15, 2011
Showing with 18 additions and 11 deletions.
  1. +2 −1 README
  2. +16 −10 lib/index.template.php
View
3 README
@@ -1,3 +1,4 @@
phonelist manager
-- recognized keys when importing from csv: last_name,first_name,birthdate,company,email_work,email_private,icq,jabber,phone_work,phone_private
+- recognized keys when importing from csv:
+last_name,first_name,birthdate,company,email_work,email_private,icq,jabber,phone_work,phone_private
View
26 lib/index.template.php
@@ -1,36 +1,42 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" >
<head>
<title></title>
</head>
+ <style>
+ * {
+ font-size: 10px;
+ font-family: Arial;
+ }
+ </style>
<body>
<h1>Telefonliste</h1>
- <table>
+ <table cellpadding="0" cellspacing="0" border="1">
<tr>
- <th>uid</th>
- <th>Vorname, Nachname</th>
+ <th></th>
+ <th>Vorname</th>
+ <th>Nachname</th>
<th>Firma</th>
<th>Telefon (Gesch.)</th>
<th>Telefon (Mobil)</th>
<th>Geb.Datum</th>
<th>ICQ</th>
<th>Jabber</th>
<th>Email (Gesch.)</th>
- <th>Email (Priv.)</th>
</tr>
<?php foreach ($this->vars['phonelist'] as $entry) { /** @var Entry $entry */ ?>
<tr>
<td><?=substr($entry->getUid(),0,7)?></td>
- <td><?=$entry->getFirstName().' '.$entry->getLastName()?></td>
+ <td><?=$entry->getFirstName()?></td>
+ <td><?=$entry->getLastName()?></td>
<td><?=$entry->getCompany()?></td>
<td><?=$entry->getPhoneWork()?></td>
<td><?=$entry->getPhonePrivate()?></td>
<td><?=$entry->getBirthdate()?></td>
- <td><?=$entry->getIcq()?></td>
- <td><?=$entry->getJabber()?></td>
- <td><?=$entry->getEmailWork()?></td>
- <td><?=$entry->getEmailPrivate()?></td>
+ <td><a href="icq:message?uin=<?=$entry->getIcq()?>"><?=$entry->getIcq()?></a></td>
+ <td><a href="xmpp:<?=$entry->getJabber()?>"><?=$entry->getJabber()?></a></td>
+ <td><a href="mailto:<?=$entry->getEmailWork()?>"><?=$entry->getEmailWork()?></a></td>
</tr>
<?php } ?>
</table>

0 comments on commit fb1f505

Please sign in to comment.
Something went wrong with that request. Please try again.