Files
Testing/leptesting/ats_tracking_show.tpl
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

173 lines
7.6 KiB
Smarty

{* LIST OF USERS *}
{*
<a id="show_paypal" href='javascript:void(0);' onclick="show('manage_form');">{$profile.manage_invisible}</a>
<a id="show_paypal" href='javascript:void(0);' onclick="show('buy_form');">{$profile.bay_invisible}</a>
<a id="show_user_list" href="javascript:void(0);" onclick="show('show_list_users');">{$profile.show_user_list}</a>
*}
<script type="text/javascript">
{literal}
function canSubmit()
{
if($('price').options[$('price').selectedIndex].value == -1)
{
$('TB_window').getElements('div[id=error]').each(function(el) { el.innerHTML = '<div class="errorinner"><img src="./images/error.gif"/> {/literal}{$profile.need_select_price}{literal}</div>' });
return false;
}
return true;
}
{/literal}
</script>
<div id="show_list_users">
<div style="position:relative;top:-8px;float:right; text-align:right" id="link">
<!--<img src="./images/icons/arrow_right_peppermint.png" width="11" height="11" alt="arrow_right_peppermint" style="position:relative;top:2px;"/>-->
{if $aMenuMessage.block}
<a href="javascript:TB_show('{$aMenuMessage.text}', '#TB_inline?height=190&width=400&inlineId={$aMenuMessage.block}', '', './images/trans.gif');"><b>{$aMenuMessage.text}</b></a>{else}{$aMenuMessage.text}{/if}
<div style="font-size:10px;text-align:right;margin-top:-2px;"><a href="profile.php?user={$owner->user_info.user_username}&amp;v=tracking&amp;hidetrack=1">{if $user->profile_info.profilevalue_22==1}Do not make me invisible{else}Make me invisible{/if}</a></div>
</div><br />
<div id="error">{$sMessage}</div>
<form method="post" action="{$sUrl}">
<table>
<tr>
{foreach from=$aUsers name='track_show' item='aItem'}
<td align="center">
<a href='/profile.php?user={$aItem.user_username}' ><img src='{$aItem.image}' {if $aItem.tracking_seen} style="border-color:#888888;" {/if} border="2" width="60" height="60"/><br />
{$aItem.displayname}</a><br />
<b>{$aItem.user_fname}</b><br />
{assign var='tracking_date' value=$datetime->time_since($aItem.tracking_date)}
<span class='portal_action_date'>{lang_sprintf id=$tracking_date[0] 1=$tracking_date[1]}</span><br />
{if $bCanDelete}
<input type="checkbox" name="ats_delete_items[{$aItem.tracking_id}]" />
{/if}
</td>
{if $smarty.foreach.track_show.iteration % $iRowSize == 0}
</tr>
<tr>
{/if}
{foreachelse}
<table cellspacing="0" cellpadding="2" align="center">
<tr>
<td><!--<img border="0" src="./images/icons/bulb16.gif" class="icon" style="display: inline;"/>--><strong>{$profile.no_quests}</strong></td>
</tr>
</table>
{/foreach}
</tr>
</table>
{if $bCanDelete && $aUsers|@count}
<input type="hidden" name="task" value="ats_delete" />
<input type="submit" value="{$profile.delete_checked}" class="button" />
{/if}
</form>
</div>
{* BUY *}
<div id="buy_form" style="display:none;" >
<br />
<div style="text-align: center; padding-left: 10px;margin-top:15px;">
<div class="error" id="error"></div>
{$profile.headerPayPal}
</div>
<form action="profile.php" method="post" onSubmit="return canSubmit();" style="width:270px;margin:0 auto">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="form1" colspan="2" style="text-align:center">Days:
<select name='price' id='price'>
<option value = "-1">{$profile.select}</option>
{foreach from = $aPrices item='aPrice'}
<option value='{$aPrice.price}'>{$aPrice.col_days}{$profile.days} - {$aPrice.price}$ </option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="task" value="ats_buy" />
<input type="submit" class="button" value="Buy" style="margin:15px 0 0 105px;" />
<input type="button" onclick="TB_remove();" class="button" value="Cancel" style="margin:15px 0 0 0;" />
</td>
</tr>
</table>
</form>
</div>
{* MANAGE *}
<div id="manage_form" style="display:none;">
<div class="popup_bookmarks">
<span id="a_descript_gift" onclick="$('tab1').style.display='block';$('tab2').style.display='none'; this.style.background = ' url(images/popup_selected_arrow.gif) no-repeat bottom center '; $('a_send_gift').style.background = 'none'; this.style.color = '#336699'; $('a_send_gift').style.color = '#c1c1c1'" style="background: url('images/popup_selected_arrow.gif') no-repeat bottom center; color: #336699;text-indent:10px; ">Change invisibility status</span>
<span id="a_send_gift" onclick="$('tab2').style.display='block';$('tab1').style.display='none'; this.style.background = ' url(images/popup_selected_arrow.gif) no-repeat bottom center '; $('a_descript_gift').style.background = 'none'; this.style.color = '#336699';$('a_descript_gift').style.color = '#c1c1c1' ">Prolong</span>
</div>
<br/>
<div id="tab1" style="padding:5px;margin-top:20px;margin-left:10px">
{$profile.can_set_invisible}
<br />
<strong>{$profile.activity_status}:&nbsp;</strong><span id='activity_status'>{if $bInvisible}<strong>{$profile.invisible}</strong>{else}<strong>{$profile.visible}</strong>{/if}</span>
<br />
<a href='javascript:void(0)' onclick='changeActiv({$bInvisible});' id='activity_status_link'><strong>{$profile.change_to}</strong> {if $bInvisible}<strong>{$profile.visible}</strong>{else}<strong>{$profile.invisible}</strong>{/if}</a>
<br />
{$profile.remain_time}: <strong>{$sRemainTime}</strong>
<br />
</div>
<div id="tab2" style="display:none;margin-top:20px">
<br />
<div style="text-align: center; margin-left: 10px;margin-top:10px">
<div class="error" id="error"></div>
{$profile.prolongPayPal}
</div>
<form action="profile.php" method="post" onSubmit="return canSubmit();" style="width:270px;margin:0 auto">
<table cellspacing="0" cellpadding="0" width="100%" style="margin-left:10px;">
<tr>
<td class="form1">{$profile.tariff}:</td>
<td class="form2">
<select name='price' id='price'>
<option value = "-1">{$profile.select}</option>
{foreach from = $aPrices item='aPrice'}
<option value='{$aPrice.price}'>{$aPrice.col_days}{$profile.days} - {$aPrice.price}$ </option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td colspan="2" class="form2" align="center">
<input type="hidden" name="task" value="ats_buy" />
<input type="submit" class="button" value="Buy" />
<input type="button" onclick="TB_remove();" class="button" value="Cancel">
</td>
</tr>
</table>
</form>
</div>
<br />
</div>
<script type="text/javascript">
{literal}
function changeActiv(activity)
{
request = new Request({
'url' :'profile.php',
'method' :'post',
'data' :{
'user' : '{/literal}{$user->user_info.user_username}{literal}',
'task' : 'set_act'
},
'onSuccess' : function() {
$('activity_status').innerHTML = (activity?'{/literal}<strong>{$profile.visible}</strong>':'<strong>{$profile.invisible}</strong>{literal}');
$('activity_status_link').onclick = function (){changeActiv(!activity);};
$('activity_status_link').innerHTML = {/literal}'<strong>{$profile.change_to}</strong> '+(activity?'<strong>{$profile.invisible}</strong>':'<strong>&nbsp;{$profile.visible}</strong>{literal}');
}
});
request.send();
}
function paymentResult(sMess)
{
sHtml = '<div style="text-align: left; padding-left: 10px;">';
sHtml += sMess;
sHtml += '<intput type="button" class="button" value="Close" onclick="TB_remove();">';
sHtml += '</div>';
$("TB_ajaxContent").innerHTML = sHtml;
$("link").innerHTML = "";
}
{/literal}
</script>