Вход Регистрация
Файл: sm_ff/EN/templates/SIMPLE/tools/tpl_linkgenerator.tpl
Строк: 167
{* генератор ссылок *} <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 generate a unique list of links on that page.
{/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 PrepereToSend(th) { if
(trim(th.url.value) == '') { alert('Enter URL of link
page!'); th.url.focus(); return false; }
$('#globalbodydata').css('cursor', 'wait'); th.rb.disabled = true;
return true; }//PrepereToSend </script> {/literal}
<form method="post" name="tollform"
id="toolform" onsubmit="return
PrepereToSend(this)"> <div
class="typelabel"> <span style="width:
100%"> <table width="100%"
cellpadding="0" cellspacing="0">
<tr> <td valign="top" align="left"
style="padding-right: 4px"> <div
class="typelabel">List of links began (on 1 per
line)</div> <div class="typelabel">
<textarea class="int_text" style="height: 100px; width:
96%" name="leftlinks"
id="leftlinks">{$CONTROL_OBJ->GetPostElement('leftlinks',
'doactiontool')}</textarea> </div> </td> <td
valign="top" align="left" style="padding-right:
4px"> <div class="typelabel">List of midpoints
of links</div> <div class="typelabel">
<textarea class="int_text" style="height: 100px; width:
96%" name="centerlinks"
id="centerlinks">{$CONTROL_OBJ->GetPostElement('centerlinks',
'doactiontool')}</textarea> </div> </td> <td
valign="top" align="left" style="padding-right:
4px"> <div class="typelabel">List endings
links</div> <div class="typelabel">
<textarea class="int_text" style="height: 100px; width:
96%" name="rightlinks"
id="rightlinks">{$CONTROL_OBJ->GetPostElement('rightlinks',
'doactiontool')}</textarea> </div> </td>
</tr> </table> </span> </div>
<div class="typelabel"><label
id="red">*</label>Link URL</div> <div
class="typelabel"> <input type="text"
value="{$CONTROL_OBJ->GetPostElement('url', 'doactiontool')}"
style="width: 378px" class="inpt" name="url"
id="url"> </div> <div
class="typelabel"> Open link</div> <div
class="typelabel"> <select size="1"
name="target" id="target" style="width:
380px"> <option{if $smarty.post.target == '_blank' ||
$smarty.post.doactiontool != 'do'} selected="selected"{/if}
value="_blank">In a new window
(_blank)</option> <option{if $smarty.post.target == '_self'}
selected="selected"{/if} value="_self">In same
window (_self)</option> <option{if $smarty.post.target ==
'_top'} selected="selected"{/if} value="_top">Top
window (_top)</option> </select> </div>
<div class="typelabel"> <input
type="submit" value="&nbsp;Send&nbsp;"
class="button" name="rb" id="rb">
</div> <input type="hidden" value="do"
name="doactiontool"> </form> {if
$smarty.post.doactiontool == 'do' && isset($tool_object)}
<div style="margin-top: 25px"> {literal} <script
type="text/javascript"> function ShHdBlElement(th, ident) {
var hd = ($('#'+ident).css('visibility') == 'hidden') ? true : false;
$(th).html((hd) ? 'Hide' : 'Show'); $('#'+ident).css('visibility',
(hd) ? 'visible' : 'hidden'); $('#'+ident).css('display', (hd) ? 'block'
: 'none'); }//ShHdBlElement </script> {/literal}
<div style="padding-bottom: 6px; border-bottom: 1px solid
#003366"><b>Result generation</b> <label
style="color: #000000; margin-left: 6px">(Total:
{$tool_object->GetResult('count')})</label> <label
style="color: #000000; margin-left: 6px">[ <a
style="font-size: 95%" href="javascript:"
onclick="ShHdBlElement(this,
'block1')">Show</a>]</label> </div> <div
id="block1" style="overflow: auto; margin-top: 12px;
display: none; visibility: hidden"> {foreach
from=$tool_object->GetResult('list') item=val name=val} {if
$smarty.foreach.val.index > 0}<div style="margin-top: 12px;
margin-bottom: 12px"></div>{/if}
<div>#<b>{$tool_object->GetIndex($smarty.foreach.val.index)}.</b></div>
<div style="margin-top: 4px"> {$val}
</div> {/foreach} </div> <div
style="padding-bottom: 6px; border-bottom: 1px solid #003366;
margin-top: 34px"><b>Result list</b> <label
style="color: #000000; margin-left: 6px">(Total:
{$tool_object->GetResult('count')})</label> <label
style="color: #000000; margin-left: 6px">[ <a
style="font-size: 95%" href="javascript:"
onclick="ShHdBlElement(this,
'block2')">Hide</a>]</label> </div> <div
id="block2" style="overflow: auto; margin-top:
12px"> <textarea class="int_text"
style="height: 120px; width:
98%">{$tool_object->GetResult('liststring')}</textarea> </div>
</div> {/if} {/if} </div>
Онлайн: 0
Реклама