Вход Регистрация
Файл: sm_ff/EN/templates/GENERAL/vitrina_links.tpl
Строк: 265
{* публичный раздел витрины ссылок *} <div
style="margin-top: 4px"> <div><a{if
$smarty.get.new} style="color: #000000"{/if}
href="{$smarty.const.W_SITEPATH}vitrinalinks/new=1">Add
Link</a>{if $smarty.get.new}<span style="display:
inline-block; margin-left: 12px"><a
href="{$smarty.const.W_SITEPATH}vitrinalinks/">Links
List</a></span>{/if}</div> <div
style="margin-top: 16px"> {if !$smarty.get.new} {if
!$global_data_list_info.data} <div style="margin-left:
5px">No active links!</div> {else} <div
style="margin-top: 10px; border: 1px dashed #C0C0C0; padding:
3px"> Total links:
<b>{$global_data_list_info.count}</b> </div>
<div style="margin-top: 14px"></div>
{literal} <script type="text/javascript">
function DoHigl(th, n) { if (n) { $(th).css('background','#F8F5F1');
} else { $(th).css('background', 'none'); }
}//DoHigl </script> {/literal} {foreach
from=$global_data_list_info.data item=val name=val} <div
style="margin-top: 12px" onmouseover="DoHigl(this, 1)"
onmouseout="DoHigl(this, 0)" style="padding:
2px"> <span style="width: 100%"> <table
width="100%" cellpadding="0"
cellspacing="0"> <tr> <td
valign="top" align="left"
width="140px"> <img
src="http://mini.site-shot.com/1024x768/120/jpeg/?http://{$val.lhost}"
width="120" height="90"> </td>
<td valign="top" align="left">
<div>{if !$val.isindexed}<noindex>{/if}{if
$val.isbolded}<b>{/if}<a href="http://{$val.lurl}"{if
!$val.isindexed} rel="nofollow"{/if}
target="_blank">{$val.ltext}</a>{if
$val.isbolded}</b>{/if}{if
!$val.isindexed}</noindex>{/if}</div> <div
style="color: #969696; font-size: 95%; margin-top:
4px"><noindex>{$val.lurl}</noindex></div>
<div style="color: #969696; font-size: 95%; margin-top:
4px">{$val.ldate}</div> </td>
</tr> </table> </span> </div>
{/foreach} {/if} {else} {* добавление ссылки
*} {if !$CONTROL_OBJ->IsOnline()} <div style="color:
#FF0000">Please login or register..</div> {else}
{if !$_VITRINALINKSOPTIONS.enabled || !$_VITRINALINKSOPTIONS.defprice ||
$_VITRINALINKSOPTIONS.defprice < 0} <div style="color:
#FF0000">Add links to showcase temporarily closed by the
administrator..</div> {else} {literal}
<script type="text/javascript"> function RestInp(th)
{ if (!th.value) { th.className = 'inpt_r';
return ; } th.className = 'inpt';
}//RestInp function PrepereSent(th) {
RestInp(th.url); RestInp(th.urltext); if (trim(th.url.value) ==
'') { alert('Enter URL of link!'); th.url.focus(); return
false; } if (trim(th.urltext.value) == '') { alert('Enter the
link text!'); th.urltext.focus(); return false; } if
(th.ptype.value < 1 || th.ptype.value > 4) { alert('Specify the
type of reference!'); return false; } var price =
GetPriced(); if (!price) { alert('Unspecified amount of added links!');
return false; } //confirm if (!confirm("Do you really want to
add a link to showcase links?\r\nConcerning the selected type links from
your balance will be charged at the rate of ["+ price + "
USD]\r\n\r\nDo you really want to continue?")) { return
false; } $('#globalbodydata').css('cursor', 'wait');
th.rb.disabled = true; return true; }//PrepereSent function
SetTyped(n) { $('#ptype').val(n); $('#summprice').html(GetPriced() + '
USD'); } function GetPriced() { var price =
$('#ptype').val(); if (!price) { $('#ptype').val(1); price = 1; }
if (price == '1') { return
'{/literal}{$_VITRINALINKSOPTIONS.defprice}{literal}'; } else if
(price == '2') { return
'{/literal}{$_VITRINALINKSOPTIONS.boldprice}{literal}'; } else if
(price == '3') { return
'{/literal}{$_VITRINALINKSOPTIONS.indexprice}{literal}'; } else if
(price == '4') { return
'{/literal}{$_VITRINALINKSOPTIONS.indexboldprice}{literal}'; } else
return '0'; }//GetPriced </script> {/literal}
<div style="margin-top: 10px; border: 1px dashed #C0C0C0;
padding: 3px"> When adding links, you added URL stands in first
place showcases.<br /> Videos added after your URL, your shifts
by 1 position down. After
<b>{$_VITRINALINKSOPTIONS.countinblock}</b> added Links Your
URL is no longer displayed on the Site showcases (except <a
href="{$smarty.const.W_SITEPATH}vitrinalinks/"
target="_blank">page</a> of List display showcases).
On page showcases displays all
<b>{$_VITRINALINKSOPTIONS.countinpage}</b> links. Link is
deleted permanently after
<b>{$_VITRINALINKSOPTIONS.countinpage}</b> shifts.
</div> <div style="margin-top:
14px"></div> <form method="post"
name="addlink" id="addlink" onsubmit="return
PrepereSent(this)"> <div
class="typelabel"><label
id="red">*</label> Link URL (up to 120
characters)</div> <div class="typelabel">
<input type="text" class="inpt"
style="width: 300px" name="url" id="url"
maxlength="120"
value="{$CONTROL_OBJ->GetPostElement('url','addaction')}"
onclick="RestInp(this)" onblur="RestInp(this)">
</div> <div
class="typelabel"><label
id="red">*</label> Link text (up to 80
characters)</div> <div class="typelabel">
<input type="text" class="inpt"
style="width: 300px" name="urltext"
id="urltext" maxlength="80"
value="{$CONTROL_OBJ->GetPostElement('urltext','addaction')}"
onclick="RestInp(this)" onblur="RestInp(this)">
</div> <div class="typelabel">
<input type="radio"{if $smarty.post.addaction != 'do' ||
$smarty.post.ptype == '1'} checked="checked"{/if}
style="cursor: pointer" name="selecttype"
id="setdeflink" onclick="SetTyped(1)"><label
for="setdeflink" style="cursor:
pointer">&nbsp;Standart Link</label>
</div> {if $_VITRINALINKSOPTIONS.boldprice}
<div class="typelabel"> <input
type="radio"{if $smarty.post.addaction == 'do' &&
$smarty.post.ptype == '2'} checked="checked"{/if}
style="cursor: pointer" name="selecttype"
id="setboldlink" onclick="SetTyped(2)"><label
for="setboldlink" style="cursor:
pointer">&nbsp;Bold Link
(<b>bold</b>)</label> </div> {/if}
{if $_VITRINALINKSOPTIONS.indexprice} <div
class="typelabel"> <input type="radio"{if
$smarty.post.addaction == 'do' && $smarty.post.ptype == '3'}
checked="checked"{/if} style="cursor: pointer"
name="selecttype" id="setdefindex"
onclick="SetTyped(3)"><label for="setdefindex"
style="cursor: pointer">&nbsp;Standart Link (indexed) (no
tag &lt;noindex&gt;)</label> </div>
{/if} {if $_VITRINALINKSOPTIONS.indexboldprice}
<div class="typelabel"> <input
type="radio"{if $smarty.post.addaction == 'do' &&
$smarty.post.ptype == '4'} checked="checked"{/if}
style="cursor: pointer" name="selecttype"
id="setboldindex" onclick="SetTyped(4)"><label
for="setboldindex" style="cursor:
pointer">&nbsp;Bold Link (indexed) (<b>bold</b> +
no tag &lt;noindex&gt;)</label> </div>
{/if} <div class="typelabel"
style="margin-top: 15px"> The amount of linking: <b
id="summprice">0 USD</b> </div>
<div class="typelabel" style="margin-top:
15px"> <input type="submit"
value="&nbsp;Send&nbsp;" class="button"
name="rb" id="rb"> </div>
<input type="hidden" value="do"
name="addaction"> <input type="hidden"
value="{$CONTROL_OBJ->GetPostElement('ptype','addaction')}"
name="ptype" id="ptype"> </form>
{literal} <script type="text/javascript">
$('#summprice').html(GetPriced() + ' USD'); </script>
{/literal} <div style="margin-top: 18px">
{if $smarty.post.addaction == 'do'} {if
$global_data_list_info.error} <div style="color:
#FF0000">{$global_data_list_info.error}</div> {else}
<div style="color: #008000">Link added
successfully!</div> {/if} {/if} </div>
{/if} {/if} {/if} </div> </div>
Онлайн: 0
Реклама