Files
Testing/leptesting/profile1.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

133 lines
7.3 KiB
Smarty

{include file='header.tpl'}
{* $Id: profile1.tpl 255 2009-11-18 02:21:01Z steve $ *}
{literal}
<script>
function run(id) {
jqcc.cometchat.chatWith(id);
// parent.jqcc.cometchat.chatWith(id);
}
</script>
{/literal}
<div class='page_header'><span style="font-size:20pt; font-weight:bold;">{$owner->user_displayname}-- {$emailok}--z {$theemail}</span><span style="font-size:20pt; font-weight:bold;text-transform:uppercase;"></span></div>
<div>
<div class="invite_2" onclick="javascript:run('{$owner->user_info.user_id}')">Click here for demo - don't chat or anything- just a proof of concept</div>
</div>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='profile_leftside' width='200'>
{* BEGIN LEFT COLUMN *}
{* SHOW USER PHOTO *}
<table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'>
<tr>
<td class='profile_photo'><img class='photo' src='{$owner->user_photo("./images/nophoto.png")}' border='0'></td>
</tr>
</table>
<table class='profile_menu' cellpadding='0' cellspacing='0' width='100%'>
{* SHOW PHOTOS OF THIS PERSON *}
{if $total_photo_tags != 0}
<tr><td class='profile_menu1' nowrap='nowrap'><a href='profile_photos.php?user={$owner->user_info.user_username}'><img src='./images/icons/photos16.gif' class='icon' border='0'>{lang_sprintf id=1204 1=$owner->user_displayname_short 2=$total_photo_tags}</a></td></tr>
{assign var='showmenu' value='1'}
{/if}
{* SHOW BUTTONS IF LOGGED IN AND VIEWING SOMEONE ELSE *}
{if $owner->user_info.user_id != $user->user_info.user_id}
{* SHOW ADD OR REMOVE FRIEND MENU ITEM *}
{if $friendship_allowed != 0 && $user->user_exists != 0}
<tr><td class='profile_menu1' nowrap='nowrap'>
{* JAVASCRIPT FOR CHANGING FRIEND MENU OPTION *}
{literal}
<script type="text/javascript">
<!--
function friend_update(status, id) {
if(status == 'pending') {
if($('addfriend_'+id))
$('addfriend_'+id).style.display = 'none';
if($('confirmfriend_'+id))
$('confirmfriend_'+id).style.display = 'none';
if($('pendingfriend_'+id))
$('pendingfriend_'+id).style.display = 'block';
if($('removefriend_'+id))
$('removefriend_'+id).style.display = 'none';
} else if(status == 'remove') {
if($('addfriend_'+id))
$('addfriend_'+id).style.display = 'none';
if($('confirmfriend_'+id))
$('confirmfriend_'+id).style.display = 'none';
if($('pendingfriend_'+id))
$('pendingfriend_'+id).style.display = 'none';
if($('removefriend_'+id))
$('removefriend_'+id).style.display = 'block';
} else if(status == 'add') {
if($('addfriend_'+id))
$('addfriend_'+id).style.display = 'block';
if($('confirmfriend_'+id))
$('confirmfriend_'+id).style.display = 'none';
if($('pendingfriend_'+id))
$('pendingfriend_'+id).style.display = 'none';
if($('removefriend_'+id))
$('removefriend_'+id).style.display = 'none';
}
}
//-->
</script>
{/literal}
<div id='addfriend_{$owner->user_info.user_id}'{if $is_friend == TRUE || $is_friend_pending != 0} style='display: none;'{/if}><a href="javascript:TB_show('{lang_print id=876}', 'user_friends_manage.php?user={$owner->user_info.user_username}&TB_iframe=true&height=400&width=450', '', './images/trans.gif');"><img src='./images/icons/addfriend16.gif' class='icon' border='0'>{lang_print id=838}</a></div>
<div id='confirmfriend_{$owner->user_info.user_id}'{if $is_friend_pending != 1} style='display: none;'{/if}><a href="javascript:TB_show('{lang_print id=887}', 'user_friends_manage.php?user={$owner->user_info.user_username}&TB_iframe=true&height=400&width=450', '', './images/trans.gif');"><img src='./images/icons/addfriend16.gif' class='icon' border='0'>{lang_print id=885}</a></div>
<div id='pendingfriend_{$owner->user_info.user_id}'{if $is_friend_pending != 2} style='display: none;'{/if} class='nolink'><img src='./images/icons/addfriend16.gif' class='icon' border='0'>{lang_print id=875}</div>
<div id='removefriend_{$owner->user_info.user_id}'{if $is_friend == FALSE || $is_friend_pending != 0} style='display: none;'{/if}><a href="javascript:TB_show('{lang_print id=837}', 'user_friends_manage.php?task=remove&user={$owner->user_info.user_username}&TB_iframe=true&height=400&width=450', '', './images/trans.gif');"><img src='./images/icons/remove_friend16.gif' class='icon' border='0'>{lang_print id=837}</a></div>
</td></tr>
{assign var='showmenu' value='1'}
{/if}
{* SHOW SEND MESSAGE MENU ITEM *}
{if ($user->level_info.level_message_allow == 2 || ($user->level_info.level_message_allow == 1 && $is_friend)) && $owner->level_info.level_message_allow != 0}
<tr><td class='profile_menu1' nowrap='nowrap'><a href="javascript:TB_show('{lang_print id=784}', 'user_messages_new.php?to_user={$owner->user_displayname|escape:url}&to_id={$owner->user_info.user_username}&TB_iframe=true&height=500&width=450', '', './images/trans.gif');"><img src='./images/icons/sendmessage16.gif' class='icon' border='0'>{lang_print id=839}</a></td></tr>
{assign var='showmenu' value='1'}
{/if}
{* SHOW REPORT THIS PERSON MENU ITEM *}
{if $user->user_exists != 0}
<tr><td class='profile_menu1' nowrap='nowrap'><a href="javascript:TB_show('{lang_print id=857}', 'user_report.php?return_url={$url->url_current()|escape:url}&TB_iframe=true&height=450&width=450', '', './images/trans.gif');"><img src='./images/icons/report16.gif' class='icon' border='0'>{lang_print id=840}</a></td></tr>
{assign var='showmenu' value='1'}
{/if}
{* SHOW BLOCK OR UNBLOCK THIS PERSON MENU ITEM *}
{if $user->level_info.level_profile_block != 0}
<tr><td class='profile_menu1' nowrap='nowrap'>
<div id='unblock'{if $user->user_blocked($owner->user_info.user_id) == FALSE} style='display: none;'{/if}><a href="javascript:TB_show('{lang_print id=869}', 'user_friends_block.php?task=unblock&user={$owner->user_info.user_username}&TB_iframe=true&height=400&width=450', '', './images/trans.gif');"><img src='./images/icons/unblock16.gif' class='icon' border='0'>{lang_print id=841}</a></div>
<div id='block'{if $user->user_blocked($owner->user_info.user_id) == TRUE} style='display: none;'{/if}><a href="javascript:TB_show('{lang_print id=868}', 'user_friends_block.php?task=block&user={$owner->user_info.user_username}&TB_iframe=true&height=400&width=450', '', './images/trans.gif');"><img src='./images/icons/block16.gif' class='icon' border='0'>{lang_print id=842}</a></div>
</td></tr>
{assign var='showmenu' value='1'}
{/if}
{/if}
{* PLUGIN RELATED PROFILE MENU ITEMS *}
{hook_foreach name=profile_menu var=profile_menu_args}
{assign var='showmenu' value='1'}
<tr>
<td class='profile_menu1' nowrap='nowrap'>
<a href='{$profile_menu_args.file}'>
<img src='./images/icons/{$profile_menu_args.icon}' class='icon' border='0' />
{lang_sprintf id=$profile_menu_args.title 1=$profile_menu_args.title_1 2=$profile_menu_args.title_2}
</a>
</td>
</tr>
{/hook_foreach}
</table>
{include file='footer.tpl'}