This should be the last of the missing files
authorBen Klang <ben@alkaloid.net>
Wed, 6 Jul 2005 11:22:13 +0000 (11:22 +0000)
committerBen Klang <ben@alkaloid.net>
Wed, 6 Jul 2005 11:22:13 +0000 (11:22 +0000)
git-svn-id: https://svn.alkaloid.net/gpl/shout/trunk@49 06cd67b6-e706-0410-b29e-9de616bca6e9

templates/dialplan/dialplanlist.inc [new file with mode: 0644]
templates/users/userlist.inc [new file with mode: 0644]

diff --git a/templates/dialplan/dialplanlist.inc b/templates/dialplan/dialplanlist.inc
new file mode 100644 (file)
index 0000000..a630d0d
--- /dev/null
@@ -0,0 +1,27 @@
+<table class="item">
+    <tbody>
+        <?php
+        $line = 0;
+        $dialplan = $shout->getDialplan($context);
+        if (isset($dialplan['extensions']) && 
+            (count($dialplan['extensions']) > 0)) {
+            foreach ($dialplan['extensions'] as $extension => $priorities) {
+                foreach ($priorities as $priority => $application) {
+                    $rowcolor = $line % 2;
+                    $line++;
+        ?>
+        <tr style="item<?php echo $rowcolor; ?>">
+            <td><?php echo $extension; ?></td>
+            <td><?php echo $priority;
+                      ?></td>
+            <td>
+                <?php echo $application; ?>
+            </td>
+        </tr>
+        <?php
+                }
+            }
+        }
+        ?>
+    </tbody>
+</table>
\ No newline at end of file
diff --git a/templates/users/userlist.inc b/templates/users/userlist.inc
new file mode 100644 (file)
index 0000000..e48204c
--- /dev/null
@@ -0,0 +1,39 @@
+<table width="90%" border="0" cellspacing="0" cellpadding="0" class="item">
+  <tbody>
+    <tr style="">
+        <td class="class">
+            <input name="AddUsr" type="submit" id="AddUsr3" value="Add User" />
+        </td>
+        <td class="class">Click on Name to edit User information.</td>
+        <td width="20" class="class"><div align="left"></div></td>
+        <td class="header">V-Office</td>
+    </tr>
+    <tr style="">
+        <td>&nbsp;</td>
+        <td>&nbsp;</td>
+        <td colspan="2">&nbsp;</td>
+    </tr>
+    <tr style="">
+        <td class="class"><strong>Ext.</strong></td>
+        <td class="class"><strong>Name</strong></td>
+        <td colspan="2" class="class"><strong>Email</strong></td>
+    </tr>
+    <?php
+        $line = 0;
+        $users = $shout->getUsers($context);
+        ksort($users);
+        foreach ($users as $extension => $user) {
+            $rowcolor = $line % 2;
+            $line++;
+    ?>
+    <tr style="item<?php echo $rowcolor; ?>">
+        <td><?php echo $extension; ?></td>
+        <td><?php echo $user['name'];
+?></td>
+        <td><?php echo $user['email']; ?></td>
+    </tr>
+    <?php
+        }
+    ?>
+  </tbody>
+</table>
\ No newline at end of file