embedded in blog
This commit is contained in:
parent
8859dfaee1
commit
a8b4da393c
2 changed files with 14 additions and 8 deletions
|
@ -9,7 +9,7 @@
|
|||
<script src="sms.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
</head>
|
||||
<body onload="document.forms.sms_frm.message.focus()">
|
||||
<body onload="parent.document.getElementById('sms_frame').height=document.body.scrollHeight; document.forms.sms_frm.message.focus()">
|
||||
<div id="sms_contact">
|
||||
<?php
|
||||
|
||||
|
@ -56,11 +56,12 @@ if ($_POST) {
|
|||
$balance = $sipgate->getBalance();
|
||||
echo '<h3>SMS wurde gesendet!</h3><p>Vielen Dank :)</p>';
|
||||
echo '<p>Du kannst deine nächste SMS in ' . format_duration($config['blocked']) . ' senden!</p>';
|
||||
echo '<p>Verbleibendes Guthaben: ' . round($balance['CurrentBalance']['TotalIncludingVat']) . ' ' . $balance['CurrentBalance']['Currency'] . ' (das sind noch ' . floor(($balance['CurrentBalance']['TotalIncludingVat'] - $config['reserve']) / 0.079) . ' SMS)</p>';
|
||||
echo '<p>Verbleibendes Guthaben: ' . round($balance['CurrentBalance']['TotalIncludingVat'], 2) . ' ' . $balance['CurrentBalance']['Currency'] . ' (das sind noch
|
||||
' . floor(($balance['CurrentBalance']['TotalIncludingVat'] - $config['reserve']) / 0.079) . ' SMS)</p>';
|
||||
|
||||
if ($_SERVER['REMOTE_ADDR'] != '172.0.0.1') $blacklist[] = array($_SERVER['REMOTE_ADDR'], time());
|
||||
|
||||
echo '<p><a href="javascript:history.go(-1)" title="back">back</a></p>';
|
||||
echo '<p><a href="javascript:history.go(-1)" title="back">zuück</a></p>';
|
||||
write_blacklist($blacklist);
|
||||
}
|
||||
else {
|
||||
|
@ -71,9 +72,9 @@ function show_form() {
|
|||
global $config;
|
||||
$message = (isset($_REQUEST['message'])) ? $_REQUEST['message'] : $config['default'];
|
||||
|
||||
echo '<form name="sms_frm" onsubmit="send(this);" action="' . $_SERVER['PHP_SELF'] . '" method="post">
|
||||
echo '<form name="sms_frm" onsubmit="return send(this);" action="' . $_SERVER['PHP_SELF'] . '" method="post">
|
||||
<table>
|
||||
<tr><td><span class="head">An:</span> <span id="number">++' . $config['recipient'] . '</span></td></tr>
|
||||
<!-- <tr><td><span class="head">An:</span> <span id="number">++' . $config['recipient'] . '</span></td></tr> --!>
|
||||
<tr><td><textarea onfocus="update_length(this);" onkeyup="update_length(this);" name="message" cols="40" rows="5">' . $message . '</textarea></td></tr>
|
||||
<tr><td><span class="head">Zeichen:</span> <span id="length">' . strlen($message) . '</span> (übrig: <span id="left" style="color: green;">' . (160 - strlen($message)) . '</span>)</td></tr>
|
||||
</table>
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
* {
|
||||
html, body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: sans-serif;
|
||||
font-size: small;
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
.error {
|
||||
|
@ -19,5 +24,5 @@ span.number {
|
|||
|
||||
textarea {
|
||||
width: 165px;
|
||||
height: 170px;
|
||||
height: 165px;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue