<HTML>
<HEAD>
<TITLE>Отправка SMS сообщений по Украине</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=windows-1251">
<script>
var code = new Array(4);
code[0]='+380-67';
code[1]='+380-67';
code[2]='+380-50';
code[3]='+380-48';
code[4]='+380-44';
var signup = '';
var maxleng = (150 - signup.length);
var fulltext='';
function chan(ndx)
{ document.frmMain.oper.value=code[ndx]; }
function checkSMS(){
txt = document.frmMain.message.value;
txtleng = txt.length;
if (txtleng < maxleng){
document.frmMain.sleft.value = (maxleng - txtleng);
document.frmMain.message.focus();
if (txt=='') document.frmMain.sleft.value = maxleng;
if(fulltext) { fulltext = '' }
}else{
if(!fulltext) fulltext = txt.substring(0,maxleng);
document.frmMain.message.value = fulltext;
document.frmMain.sleft.value = 0;
}
}
function sendSMS(){
if (document.frmMain.cellular.value.length!=7){
alert('Не верно набран номер.\nПожалуйста проверьте его!');
}else{
if (document.frmMain.message.value.length==0){
alert('Введите сообщение!');
}else{
document.frmMain.message.value = document.frmMain.message.value + signup;
document.frmMain.submit();
}
};
};
function initPage(){
document.frmMain.oper.disabled=true;
chan(0);
checkSMS();
}
</script>
<style>
body { scrollbar-base-color: #CCCCCC; scrollbar-arrow-color: #FFFFFF; }
.flat { border: 2px #ffffff solid; text-align: right; }
.hill { border: 1px #ffffff ridge; }
</style>
</HEAD>
<BODY BGCOLOR="#FFFFFF"><?
if ($operator!=""){
if($operator=="KSA"): $suffix="@2sms.kyivstar.net";
elseif($operator=="KSC"): $suffix="@sms.kyivstar.net";
elseif($operator=="UMC"): $suffix="@sms.umc.com.ua";
elseif($operator=="GTO"): $suffix="@gt.com.ua";
elseif($operator=="GTK"): $suffix="@gt.com.ua";
endif;
$to=$cellular.$suffix;
if(mail($to, "Send from Svoi.NET", $message,"FROM: [email protected]")):
echo "\n<center>Ваше сообщение было отправлено.<center><br>\n";
else: echo "\n<center>Ошибка на сервере! Ваше сообщение не было отправлено. Извините за неудобства.<center><br>\n";
endif;
};
?><MAP NAME="MAIN-3x2">
<AREA SHAPE=poly COORDS="122,4,150,4,191,9,204,12,232,15,248,15,262,18,273,23,286,32,312,62,269,64,232,69,211,77,199,85,188,95,184,95,179,75,170,58,160,45,122,4" HREF="index.php">
</MAP>
<MAP NAME="MAIN-3x3">
<AREA SHAPE=rect COORDS="84,78,291,93" HREF="http://www.svoi.net" TARGET="_blank" style="cursor:hand">
<AREA SHAPE=poly COORDS="230,6,271,7,285,10,294,14,291,20,277,38,261,52,241,57,208,62,182,62,175,55,166,42,152,28,142,21,126,15,162,14,230,6" onClick="frmMain.submit();" onFocus="this.blur();" style="cursor:hand">
<AREA SHAPE=poly COORDS="-12,4,16,4,57,9,70,12,98,15,114,15,128,18,139,23,152,32,178,62,135,64,98,69,77,77,65,85,54,95,50,95,45,75,36,58,26,45,-12,4" onClick="frmMain.reset();" onFocus="this.blur();" style="cursor:hand">
</MAP>
<MAP NAME="MAIN-3x4">
<AREA SHAPE=poly COORDS="-62,6,-21,7,-7,10,2,14,-1,20,-15,38,-31,52,-51,57,-84,62,-110,62,-117,55,-126,42,-140,28,-150,21,-166,15,-130,14,-62,6" HREF="index.php">
<AREA SHAPE=rect COORDS="0,0,4,98"></MAP>
<form method="post" action="index.php" name="frmMain">
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=430 HEIGHT=308 align="center">
<TR>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=134 HEIGHT=47> <IMG NAME="MAIN1" SRC="main-1x2.jpg" WIDTH=134 HEIGHT=47 BORDER=0 ></TD>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=292 HEIGHT=47> <IMG NAME="MAIN2" SRC="main-1x3.jpg" WIDTH=292 HEIGHT=47 BORDER=0 ></TD>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=4 HEIGHT=47> <IMG NAME="MAIN3" SRC="main-1x4.jpg" WIDTH=4 HEIGHT=47 BORDER=0 ></TD>
</TR>
<TR>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=134 HEIGHT=163> <IMG NAME="MAIN5" SRC="main-2x2.jpg" WIDTH=134 HEIGHT=163 BORDER=0 ></TD>
<TD COLSPAN=1 ROWSPAN=1 valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<TD WIDTH=105 HEIGHT=23 align="right" valign="top"><font color="#666666" size="2">Оператор
</font><font color="#666666"><strong>: </strong></font> </TD>
<TD WIDTH=187 valign="top"><select name='operator' size='1' onChange='chan(this.selectedIndex);'>
<option value="KSA">Kyivstar Ace&Base</option>
<option value="KSC">Kyivstar Contract</option>
<option value="UMC">UMC</option>
<option value="GTO">Golden Telecom Odessa</option>
<option value="GTK">Golden Telecom Kyiv</option>
</select> </TD>
</tr>
<tr>
<TD HEIGHT=25 align="right" valign="middle"><font color="#666666" size="2">Номер
</font><font color="#666666"><strong>: </strong></font></TD>
<TD valign="top"><input name='oper' type='text' disabled='true' class='flat' style="border:0" value="+380-67" size='7' maxlength='7'>
<input class='hill' type='text' name='cellular' maxlength='7' size='7'></TD>
</tr>
<tr align="right">
<TD HEIGHT=10></TD>
<TD></TD>
</tr>
<tr align="right">
<TD HEIGHT=80 colspan="2" valign="top"> <textarea name='message' cols='30' onKeyDown='checkSMS();' onMouseOut='checkSMS();' rows='4' wrap='VIRTUAL' class='hill'></textarea></TD>
</tr>
<tr align="right">
<TD HEIGHT=25></TD>
<TD align="right" valign="top"> <font size="2">осталось</font>
<input name='sleft' type='text' disabled='true' style="border:0" value="155" size='2' maxlength='3'>
<font size="2"> символов</font></TD>
</tr>
</table></TD>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=4> <IMG NAME="MAIN7" SRC="main-2x4.jpg" WIDTH=4 HEIGHT=163 BORDER=0 ></TD>
</TR>
<TR>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=134 HEIGHT=98> <IMG NAME="MAIN9" SRC="main-3x2.jpg" WIDTH=134 HEIGHT=98 BORDER=0 USEMAP="#MAIN-3x2"></TD>
<TD ROWSPAN=1 COLSPAN=1 HEIGHT=98> <IMG NAME="MAIN10" SRC="main-3x3.jpg" WIDTH=292 HEIGHT=98 BORDER=0 USEMAP="#MAIN-3x3"></TD>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=4 HEIGHT=98> <IMG NAME="MAIN11" SRC="main-3x4.jpg" WIDTH=4 HEIGHT=98 BORDER=0 USEMAP="#MAIN-3x4"></TD>
</TR>
</TABLE>
</form>
</BODY>
</HTML>