Shout: Add Horde row striping
authorBen Klang <ben@alkaloid.net>
Sat, 2 Jan 2010 18:05:49 +0000 (13:05 -0500)
committerBen Klang <ben@alkaloid.net>
Sat, 2 Jan 2010 18:05:49 +0000 (13:05 -0500)
shout/devices.php
shout/extensions.php
shout/templates/devices/list.inc
shout/templates/extensions/list.inc

index 924b094..14d1587 100644 (file)
@@ -95,6 +95,7 @@ default:
 // Fetch the (possibly updated) list of extensions
 $devices = $shout_devices->getDevices($context);
 
+Horde::addScriptFile('stripe.js', 'horde');
 require SHOUT_TEMPLATES . '/common-header.inc';
 require SHOUT_TEMPLATES . '/menu.inc';
 
index 3860321..7368281 100644 (file)
@@ -99,6 +99,7 @@ default:
 // Fetch the (possibly updated) list of extensions
 $extensions = $shout_extensions->getExtensions($context);
 
+Horde::addScriptFile('stripe.js', 'horde');
 require SHOUT_TEMPLATES . '/common-header.inc';
 require SHOUT_TEMPLATES . '/menu.inc';
 
index b8582d6..7e2cca9 100644 (file)
@@ -12,8 +12,8 @@
     Context: <?php echo $context; ?>
 </div>
 
-<div id="userList" class="userList">
-    <table width="100%" cellspacing="0">
+<div id="extensionList">
+    <table width="100%" cellspacing="0" class="striped">
         <tr>
             <td class="uheader">Device ID</td>
             <td class="uheader">Mailbox</td>
@@ -47,4 +47,4 @@
             }
         ?>
     </table>
-</div>
+</div>
\ No newline at end of file
index 3ee1764..61cfa96 100644 (file)
 </div>
 
 <div id="extensionList">
-    <table width="100%" cellspacing="0">
+    <table width="100%" cellspacing="0" class="striped">
         <tr>
             <td class="uheader">Extension</td>
             <td class="uheader">Name</td>
             <td class="uheader">E-Mail Address</td>
         </tr>
         <?php
-            $line = 0;
             foreach ($extensions as $extension => $info) {
 
                 $url = Horde::applicationUrl("extensions.php");
@@ -36,7 +35,7 @@
             <td style="width: 20%">
                 <?php echo Horde::link($editurl); echo $extension; ?></a>
             </td>
-            <td style="width: 35%;">
+            <td style="width: 35%;" id="myid">
                 <?php echo Horde::link($editurl); echo $info['name']; ?></a>
                 <?php
                 foreach ($info['devices'] as $device) {