Показать сообщение отдельно
  #25 (permalink)  
Старый 07.12.2015, 17:06
Аспирант
Отправить личное сообщение для olegalimov Посмотреть профиль Найти все сообщения от olegalimov
 
Регистрация: 27.09.2015
Сообщений: 94

Вы писали:
Сообщение от laimas Посмотреть сообщение
В РНР коде изменить метод с $_POST на $_GET. Выше приведенный код и будет открыт в новом окне.
я исправил но не работает.
<?
set_time_limit(0);
require_once("doain.php");
?>
<!DOCTYPE html>
<head>
	<title></title>
	<meta charset="utf-8">
	
	<style>
	.modalDialog {
		position: fixed;
		font-family: Arial, Helvetica, sans-serif;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		background: rgba(0,0,0,0.8);
		z-index: 99999;
		-webkit-transition: opacity 400ms ease-in;
		-moz-transition: opacity 400ms ease-in;
		transition: opacity 400ms ease-in;
		display: none;
		pointer-events: none;
	}

	.modalDialog:target {
		display: block;
		pointer-events: auto;
	}

	.modalDialog > div {
		width: 400px;
		position: relative;
		margin: 10% auto;
		padding: 5px 20px 13px 20px;
		border-radius: 10px;
		background: #fff;
		background: -moz-linear-gradient(#fff, #999);
		background: -webkit-linear-gradient(#fff, #999);
		background: -o-linear-gradient(#fff, #999);
	}

	.close {
		background: #606061;
		color: #FFFFFF;
		line-height: 25px;
		position: absolute;
		right: -12px;
		text-align: center;
		top: -10px;
		width: 24px;
		text-decoration: none;
		font-weight: bold;
		-webkit-border-radius: 12px;
		-moz-border-radius: 12px;
		border-radius: 12px;
		-moz-box-shadow: 1px 1px 3px #000;
		-webkit-box-shadow: 1px 1px 3px #000;
		box-shadow: 1px 1px 3px #000;
	}

	.close:hover { background: #00d9ff; }
	</style>
</head>

<body>
<table>
<tr>

<div class="dom-fon">
<form class="form" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="domain" id="domain">
<table>
<tr>
<td class ="table_name">Введите имя домена:</td>
<td><input class="name-dom" style="height:38px" name="domain" type="text" /></td>

<td><input class="button-test" onclick="location.href='#openModal'" type="submit" value="Проверить"></td>
 
<div id="openModal" class="modalDialog">
	<div>
		<a href="#close" title="Закрыть" class="close">X</a>
<p>
		<?
if(isset($_GET["domain"]) && strlen($_GET["domain"])>0 && isset($_GET["TLD"]) && is_array($_GET["TLD"]))
{
$target=$_GET["domain"];
$whois=new whois();
foreach($_GET['TLD'] AS $tldz)
{
echo($target.$tldz." - ");
$whois->zonelookup($target.$tldz);
if($whois->ERROR==0)
{
if(is_array($whois->RAWINFO) && count($whois->RAWINFO)>7 && $whois->FOUND==1)
{
echo("занят,") ;

}else
{
echo("свободен,");
}
}else
{
echo("ошибка запроса");
}
echo('<br style="display:inline">');
}
}
?>
</p>
    </div>
</div>
</tr>
</table>
<table>
<tr>
<td class ="table_butt-1"><input type="button" onClick="sel('checked')" value="Выбрать все" /></td>
<td class ="table_butt-2"><input type="button" onClick="sel()" value="Снять все" /></td>
<td><input type="button" value="Заказать домен" class="button-domain" onClick="window.open('http://panel.webvm.ru/OFFERTA/offerta_add_select_type.khtml','_blank')" /></td>
</tr>
</table>
<table class="prise-domain-teble">
<tr class ="table_string">
<td class ="table_cell-1">
<p class="zone-dom"><input type="checkbox" name="TLD[]" value=".ru" id="11"><label for="11">.ru</label></p>
<p class="price-yer">Цена 1 год <br /> 90 Р</p>
<p class="price-too">Продление на год 90 Р<br></p></td>
<td class ="table_cell-2">
<p class="zone-dom"><input type="checkbox" name="TLD[]" value=".рф" id="12"><label for="12">.рф</label></p>
<p class="price-yer">Цена 1 год 100 Р</p>
<p class="price-too">Продление на год 100 Р<br></p></td>
<td class ="table_cell-3">
<p class="zone-dom"><input type="checkbox" name="TLD[]" value=".москва" id="13"><label for="13">.москва</label></p>
<p class="price-yer">Цена 1 год 385 Р</p>
<p class="price-too">Продление на год 385 Р<br></p></td>
<td class ="table_cell-4">
<p class="zone-dom"><input type="checkbox" name="TLD[]" value=".moscow" id="14"><label for="14">.moscow</label></p>
<p class="price-yer">Цена 1 год 385 Р</p>
<p class="price-too">Продление на год 385 Р<br></p></td>
<td class ="table_cell-5">
<p class="zone-dom"><input type="checkbox" name="TLD[]" value=".su" id="15"><label for="15">.su</label></p>
<p class="price-yer">Цена 1 год 390 Р</p>
<p class="price-too">Продление на год 390 Р<br></p></td>
<td class ="table_cell-6">
<p class="zone-dom"><input type="checkbox" name="TLD[]" value=".net" id="16"><label for="16">.net</label></p>
<p class="price-yer">Цена 1 год 895 Р</p>
<p class="price-too">Продление на год 995 Р<br></p></td>
<td class ="table_cell-7">
<p class="zone-dom"><input type="checkbox" name="TLD[]" value=".name" id="17"><label for="17">.name</label></p>
<p class="price-yer">Цена 1 год 795 Р</p>
<p class="price-too">Продление на год 895 Р<br></p></td>
<td class ="table_cell-8">
<p class="zone-dom"><input type="checkbox" name="TLD[]" value=".kz" id="18"><label for="18">.kz</label></p>
<p class="price-yer">Цена 1 год 600 Р</p>
<p class="price-too">Продление на год 600 Р<br></p></td>
</tr>
</table>
</form>
<script>
function sel(opt) {
var checks = document.getElementById('domain').getElementsByTagName('input');
for (var i = 0; i < checks.length; i++) {
var check = checks[i];
check.checked = opt;
}
}
</script>
</div>
</body>
</html>
</body>
</html>


да.. я не учился в институтах. по своей инвалидности, я самоучка.
этот скрипт без рhр открывает слой
Ответить с цитированием