Файл: sm_ff/EN/templates/SIMPLE/tools/tpl_whoisurlip.tpl
Строк: 66
{* whois ip сайта *}
<div style="margin-top: 5px">
<div style="margin-bottom: 12px">
<img
src="{$CONTROL_OBJ->GetToolImageStyle($tool_object->section_id,
128, '', '')}" style="width: 64px; height: 64px; float: left;
margin-right: 6px">
{if
$tool_object->GetToolLimitInfoEx('tdescr')}{$CONTROL_OBJ->GetText($tool_object->GetToolLimitInfoEx('tdescr'))}{else}
This tool will help you get the Whois information on the IP of the
specified site.
{/if}
<div style="clear:
both;"></div>
</div>
{if
!$tool_object->canrun}
<div style="margin-top:
25px">
{if $tool_object->onlyforadmin}
The tool is
temporarily disabled by administrator! We apologize for any inconvenience
.. Please try again later.
{else}
To use this tool requires
authorization on the site. Please login or <a
href="{$smarty.const.W_SITEPATH}register/"
target="_blank">register</a> to gain access to the
tool.
{/if}
</div>
{else}
{literal}
<script
type="text/javascript">
function DoSetDefUrl(ident) {
var str = {/literal}'{$smarty.const.W_HOSTMYSITE}';{literal}
var obj =
$('#'+ident);
obj.val(str);
obj.focus();
}//DoSetDefUrl
function PrepereToSend(th) {
if (trim(th.url.value) == '')
{
alert('Enter Site Host!');
th.url.focus();
return false;
}
th.rb.disabled = true;
return true;
}//PrepereToSend
</script>
{/literal}
<form method="post"
name="tollform" id="toolform" onsubmit="return
PrepereToSend(this)">
<div
class="typelabel"><label
id="red">*</label> Site Host <label
class="prep_label_analisys">(example: <a
href="javascript:"
onclick="DoSetDefUrl('url')">{$smarty.const.W_HOSTMYSITE}</a>)</label></div>
<div class="typelabel">
<input
type="text" value="{$CONTROL_OBJ->GetPostElement('url',
'doactiontool')}" style="width: 98%" class="inpt"
name="url" id="url">
<div
class="typelabel">
<input type="submit"
value=" Send " class="button"
name="rb" id="rb">
</div>
</div>
<input type="hidden" value="do"
name="doactiontool">
</form>
{if
$smarty.post.doactiontool == 'do' && isset($tool_object)}
<div style="margin-top: 15px">
{if
$tool_object->error}
<div style="color:
#FF0000">{$tool_object->error}</div>
{else}
{if
$tool_object->GetResult()}
<div style="width: 530px;
overflow: auto;">
<pre>{$tool_object->GetResult()}</pre>
</div>
{else}
<div style="color: #FF0000">No
Data</div>
{/if}
{/if}
</div>
{else}
{*
блок информации при не выполненом
запросе *}
<div style="margin-top: 26px">
{include file="tools/tpl_toolhistorylist.tpl"}
</div>
{/if}
{/if}
</div>