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

149 lines
7.8 KiB
Plaintext

{include file='header.tpl'}
{* $Id: user_friends_requests.tpl 8 2009-01-11 06:02:53Z john $ *}
<table class='tabs' cellpadding='0' cellspacing='0'>
<tr>
<td class='tab0'>&nbsp;</td>
<td class='tab2' NOWRAP><a href='user_friends.php'>{lang_print id=894}</a></td>
<td class='tab'>&nbsp;</td>
<td class='tab1' NOWRAP><a href='user_friends_requests.php'>{lang_print id=895}</a></td>
<td class='tab'>&nbsp;</td>
<td class='tab2' NOWRAP><a href='user_friends_requests_outgoing.php'>Sent Friend Requests</a></td>
<td class='tab3'>&nbsp;</td>
</tr>
</table>
<!--<img src='./images/icons/friends48.gif' border='0' class='icon_big'>-->
<div class='page_header'><span style="font-size:20pt; font-weight:bold;text-transform:uppercase;">{lang_print id=895}</span></div>
<br />
<br />
{* DISPLAY MESSAGE IF NO FRIEND REQUESTS *}
{if $total_friends == 0}
<table cellpadding='0' cellspacing='0' align='center'>
<tr><td class='result'><!--<img src='./images/icons/bulb16.gif' border='0' class='icon'>-->{lang_print id=910}</td></tr>
</table>
{* DISPLAY FRIEND REQUESTS *}
{else}
{* JAVASCRIPT FOR CHANGING FRIEND MENU OPTION *}
{literal}
<script type="text/javascript">
<!--
function friend_update(status) {
{/literal}
window.location = 'user_friends_requests.php?p={$p}';
{literal}
}
//-->
</script>
{/literal}
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
{if $maxpage > 1}
<br>
<div class='browse_pages'>
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?p=1"><span class="white arrow">&#171;</span></a> <a href='{$smarty.server.PHP_SELF}?p={math equation='p-1' p=$p}'><span class="white arrow">&#8249;</span></a>{else}<font class='disabled'><span class="white arrow">&#171; &#8249;</span></font>{/if}
| {foreach from=$for item=foo}
<a href='{$smarty.server.PHP_SELF}?&p={$foo}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?p={math equation='p+1' p=$p}'><span class="white arrow">&#8250;</span></a> <a href="{$smarty.server.PHP_SELF}?p={$maxpage}"><span class="white arrow">&#187;</span></a>{else}<font class='disabled'><span class="white arrow">&#8250; &#187;</span></font>{/if}
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
{lang_sprintf id=184 1=$p_start 2=$total_pms}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_pms}
{/if}</span><br />
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="submit" value="Go" /></form>
</div>
{/if}
<form action="user_friends_manage_bulk.php" method="post" onsubmit="return confirm('Are you sure?');" name="myform">
<table width="100%" cellspacing="0"><tr class="friend_request_div"><td style="width:15px;">
<input type="checkbox" value="" onclick="checkAll(document.myform.friend, this)" /></td><td>SELECT ALL</td><td style="width:150px;">Actions</td></tr>
{section name=friend_loop loop=$friends}
{* LOOP THROUGH FRIENDS *}
<tr class="friend_request_div"><td valign="top"><input type="checkbox" value="{$friends[friend_loop]->user_info.user_username}" name="friend[]" /></td><td colspan="2">
<div class='friends_result1'>
<table cellpadding='0' cellspacing='0' width="100%">
<tr>
<td class='friends_result0' style="width: 90px; text-align: center; vertical-align:top;"><a href='{$url->url_create('profile', $friends[friend_loop]->user_info.user_username)}'><img src='{$friends[friend_loop]->user_photo('./images/nophoto.png',true)}' class='photo' style='width:90px;' border='0' alt="{lang_sprintf id=509 1=$friends[friend_loop]->user_displayname_short}"></a></td>
<td class='friends_result1'>
<div><font class='big'><a href='{$url->url_create('profile', $friends[friend_loop]->user_info.user_username)}'><!--<img src='./images/icons/user16.gif' border='0' class='icon'>-->{$friends[friend_loop]->user_displayname}</a></div></font><br>
<table cellpadding='0' cellspacing='0'>
{if $friends[friend_loop]->user_info.user_dateupdated != 0}<tr><td>{lang_print id=849} &nbsp;</td><td>{assign var='last_updated' value=$datetime->time_since($friends[friend_loop]->user_info.user_dateupdated)}{lang_sprintf id=$last_updated[0] 1=$last_updated[1]}</td></tr>{/if}
{if $friends[friend_loop]->user_info.user_lastlogindate != 0}<tr><td>{lang_print id=906} &nbsp;</td><td>{assign var='last_login' value=$datetime->time_since($friends[friend_loop]->user_info.user_lastlogindate)}{lang_sprintf id=$last_login[0] 1=$last_login[1]}</td></tr>{/if}
{if $friends[friend_loop]->friend_type != ""}<tr><td>{lang_print id=882} &nbsp;</td><td>{$friends[friend_loop]->friend_type}</td></tr>{/if}
{if $friends[friend_loop]->friend_explain != ""}<tr><td>Message: &nbsp;</td><td>{$friends[friend_loop]->friend_explain}</td></tr>{/if}
{if $friends[friend_loop]->online_now() == 1}<tr><td colspan="2" style='color:white;'><!--<img src='./images/icons/online16.gif' border='0' class='icon2'>-->{lang_print id=1086}</td></tr>{/if}
</table>
</td>
<td class='friends_result2' NOWRAP>
<a href="javascript:TB_show('{lang_print id=887}', 'user_friends_manage.php?user={$friends[friend_loop]->user_info.user_username}&TB_iframe=true&height=300&width=450', '', './images/trans.gif');">{lang_print id=887}</a><br>
<a href="javascript:TB_show('{lang_print id=911}', 'user_friends_manage.php?task=reject&user={$friends[friend_loop]->user_info.user_username}&TB_iframe=true&height=300&width=450', '', './images/trans.gif');">{lang_print id=911}</a><br>
{if $user->level_info.level_message_allow != 0}<a href="javascript:TB_show('{lang_print id=784}', 'user_messages_new.php?to_user={$friends[friend_loop]->user_displayname}&to_id={$friends[friend_loop]->user_info.user_username}&TB_iframe=true&height=400&width=450', '', './images/trans.gif');">{lang_print id=839}</a><br>{/if}
</td>
</tr>
</table>
</div></td></tr>
{/section}
</table>
<input type="hidden" name="p" value="{$p}" /> <input type="hidden" name="page" value="user_friends_requests.php" />
<input type="submit" name="accept" value="Accept" /> <input type="submit" name="deny" value="Deny" /><br />
<input type="submit" name="addall" value="Accept All Requests" />
</form>
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
{if $maxpage > 1}
<br>
<div class='browse_pages'>
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?p=1"><span class="white arrow">&#171;</span></a> <a href='{$smarty.server.PHP_SELF}?p={math equation='p-1' p=$p}'><span class="white arrow">&#8249;</span></a>{else}<font class='disabled'><span class="white arrow">&#171; &#8249;</span></font>{/if}
| {foreach from=$for item=foo}
<a href='{$smarty.server.PHP_SELF}?&p={$foo}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?p={math equation='p+1' p=$p}'><span class="white arrow">&#8250;</span></a> <a href="{$smarty.server.PHP_SELF}?p={$maxpage}"><span class="white arrow">&#187;</span></a>{else}<font class='disabled'><span class="white arrow">&#8250; &#187;</span></font>{/if}
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
{lang_sprintf id=184 1=$p_start 2=$total_pms}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_pms}
{/if}</span><br />
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="submit" value="Go" /></form>
</div>
{/if}
{/if}
<script language="JavaScript">{literal}
function checkAll(field, x)
{
if(document.myform["friend[]"].length){
if(x.checked==true){
for (i = 0; i < document.myform["friend[]"].length; i++)
document.myform["friend[]"][i].checked = true ;
}else{
for (i = 0; i < document.myform["friend[]"].length; i++)
document.myform["friend[]"][i].checked = false ;
}}
else{
if(x.checked==true){
document.myform["friend[]"].checked = true ;
}else{
document.myform["friend[]"].checked = false ;
}
}
}
{/literal}
</script>
{include file='footer.tpl'}