summaryrefslogtreecommitdiff
path: root/www-ssl/admin/dect.php
diff options
context:
space:
mode:
authorMoritz helios Rudert <helios@planetcyborg.de>2011-06-01 12:13:39 +0200
committerMoritz helios Rudert <helios@planetcyborg.de>2011-06-01 12:13:39 +0200
commit75448045cfe70054c8f4bae1bcfaf9bb0f70d330 (patch)
tree6a4d3d35019cdf933c1816e8522dc5d2557f5238 /www-ssl/admin/dect.php
parent12e0b0d809c29d435a247798d7318cc9835980ea (diff)
fixes
Diffstat (limited to 'www-ssl/admin/dect.php')
-rw-r--r--[-rwxr-xr-x]www-ssl/admin/dect.php86
1 files changed, 43 insertions, 43 deletions
diff --git a/www-ssl/admin/dect.php b/www-ssl/admin/dect.php
index e6096d27..76409cc6 100755..100644
--- a/www-ssl/admin/dect.php
+++ b/www-ssl/admin/dect.php
@@ -1,4 +1,4 @@
-<?PHP
+<?php
$title = "Engelsystem - DECT";
$header = "DECT send call";
@@ -13,56 +13,56 @@ if( !isset($_GET["custum"])) $_GET["custum"] = "";
if( $_GET["dial"]=="dial")
{
- if( $_GET["DECT"]=="")
- $Number = $_GET["custum"];
- else
- $Number = $_GET["DECT"];
-
- if( strlen( $_GET["timeh"])== 1)
- $_GET["timeh"] = "0". $_GET["timeh"];
-
- if( strlen( $_GET["timem"])== 1)
- $_GET["timem"] = "0". $_GET["timem"];
-
-// SetWackeup( $Number, $_GET["timeh"], $_GET["timem"]);
- DialNumberIAX($Number, $_GET["timeh"], $_GET["timem"],0);
+ if( $_GET["DECT"]=="")
+ $Number = $_GET["custum"];
+ else
+ $Number = $_GET["DECT"];
+
+ if( strlen( $_GET["timeh"])== 1)
+ $_GET["timeh"] = "0". $_GET["timeh"];
+
+ if( strlen( $_GET["timem"])== 1)
+ $_GET["timem"] = "0". $_GET["timem"];
+
+// SetWackeup( $Number, $_GET["timeh"], $_GET["timem"]);
+ DialNumberIAX($Number, $_GET["timeh"], $_GET["timem"],0);
- $_GET["custum"] = $Number;
+ $_GET["custum"] = $Number;
}
- echo "<form action=\"./dect.php\" method=\"GET\">\n";
- echo "<table>\n";
+ echo "<form action=\"./dect.php\" method=\"GET\">\n";
+ echo "<table>\n";
- echo "<tr><th>Number</th><th>h:m</th><th></th></tr>\n";
+ echo "<tr><th>Number</th><th>h:m</th><th></th></tr>\n";
- echo "<tr><td>\n";
- // Listet alle Nicks auf
- echo "<select name=\"DECT\">\n";
- echo "\t<option value=\"\">costum</option>\n";
+ echo "<tr><td>\n";
+ // Listet alle Nicks auf
+ echo "<select name=\"DECT\">\n";
+ echo "\t<option value=\"\">costum</option>\n";
- $usql="SELECT * FROM `User` WHERE NOT `DECT`='' ORDER BY `Nick`";
- $uErg = mysql_query($usql, $con);
- $urowcount = mysql_num_rows($uErg);
- for ($k=0; $k<$urowcount; $k++)
- {
- echo "\t<option value=\"".mysql_result($uErg, $k, "DECT")."\">".
- mysql_result($uErg, $k, "Nick").
- " (". mysql_result($uErg, $k, "DECT"). ")".
- "</option>\n";
- }
- echo "</select>\n";
-
- echo "<input type=\"text\" name=\"custum\" size=\"4\" maxlength=\"4\" value=\"". $_GET["custum"]. "\">\n";
- echo "</td>\n";
+ $usql="SELECT * FROM `User` WHERE NOT `DECT`='' ORDER BY `Nick`";
+ $uErg = mysql_query($usql, $con);
+ $urowcount = mysql_num_rows($uErg);
+ for ($k=0; $k<$urowcount; $k++)
+ {
+ echo "\t<option value=\"".mysql_result($uErg, $k, "DECT")."\">".
+ mysql_result($uErg, $k, "Nick").
+ " (". mysql_result($uErg, $k, "DECT"). ")".
+ "</option>\n";
+ }
+ echo "</select>\n";
+
+ echo "<input type=\"text\" name=\"custum\" size=\"4\" maxlength=\"4\" value=\"". $_GET["custum"]. "\">\n";
+ echo "</td>\n";
- echo "<td><input type=\"text\" name=\"timeh\" size=\"2\" maxlength=\"2\" value=\"". gmdate("H", time()+90+3600). "\">:";
- echo "<input type=\"text\" name=\"timem\" size=\"2\" maxlength=\"2\" value=\"". gmdate("i", time()+90+3600). "\"></td>\n";
- echo "<td><input type=\"submit\" name=\"dial\" value=\"dial\"></td>\n";
- echo "</tr>";
- echo "</table>\n";
-
- echo "</form>";
+ echo "<td><input type=\"text\" name=\"timeh\" size=\"2\" maxlength=\"2\" value=\"". gmdate("H", time()+90+3600). "\">:";
+ echo "<input type=\"text\" name=\"timem\" size=\"2\" maxlength=\"2\" value=\"". gmdate("i", time()+90+3600). "\"></td>\n";
+ echo "<td><input type=\"submit\" name=\"dial\" value=\"dial\"></td>\n";
+ echo "</tr>";
+ echo "</table>\n";
+
+ echo "</form>";
include ("../../../camp2011/includes/footer.php");