Files
Testing/templates/admin_activityfeed.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

162 lines
4.8 KiB
Smarty

{include file='admin_header.tpl'}
{* JAVASCRIPT FOR CREATING SUGGESTION BOX *}
{literal}
<style>
.action_text {
padding: 0 15px 0 15px;
}
div.portal_action_date {
float: right;
color: #999;
padding-left: 5px;
}
.portal_action table{width:600px;}
div.portal_action {
padding: 12px 0px 12px 0px;
border-top: 1px solid #534741;
}
</style>
{/literal}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>jQuery.noConflict();</script>
{* $Id: admin_viewusers_edit.tpl 43 2009-01-29 21:50:31Z szerrade $ *}
{if $user->user_info.user_enabled ==-1}<h1 style="color:red;">THIS USER WAS DISABLED DUE TO SPAM</h1>{/if}
{if $user->user_info.user_enabled ==-2}<h1 style="color:red;">THIS USER WAS DISABLED DUE TO BREAKING TOS</h1>{/if}
{if $user->user_info.user_enabled ==-3}<h1 style="color:red;">YOU SHOULD ONLY BE SEEING THIS USER IF SUPER ADMIN</h1>{/if}
{if $user->user_info.user_enabled ==-6}<h1 style="color:red;">THIS USER IS BEING FORCED TO VERIFY</h1>{/if}
{capture assign='user_showname'}{if $setting.setting_username}{$user->user_info.user_username}{else}{$user->user_displayname}{/if}{/capture}
<h2>{lang_sprintf id=1123 1=$user_showname}</h2>
{lang_print id=1124}
<br />
<br />
{if $is_error != 0}
<div class='error'><img src='../images/error.gif' border='0' class='icon'> {lang_print id=$is_error}</div>
<br>
{/if}
{if $result != 0}
{capture assign="old_subnet_name"}{lang_print id=$old_subnet_name}{/capture}
{capture assign="new_subnet_name"}{lang_print id=$new_subnet_name}{/capture}
<div class='success'><img src='../images/success.gif' border='0' class='icon'> {lang_sprintf id=$result 1=$old_subnet_name 2=$new_subnet_name}</div>
<br>
{/if}
<table class='tabs' cellpadding='0' cellspacing='0'>
<tr>
<td class='tab0'>&nbsp;</td>
<td class='tab2' NOWRAP><a href='admin_viewusers_edit.php?user_id={$user_id}'>User Details</a></td>
<td class='tab'>&nbsp;</td>
<td class='tab1' NOWRAP><a href='activityfeed.php?user_id={$user_id}'>Activity Feed</a></td>
<td class='tab'>&nbsp;</td>
<td class="tab2" nowrap=""><a href="userlog.php?user_id={$user_id}">Log</a></td>
<td class="tab">&nbsp;</td>
<td class='tab2' NOWRAP><a href='admin_subscriber_edituser.php?user_id={$user_id}'>Financial Details</a></td>
<td class='tab'>&nbsp;</td>
<td class='tab2' NOWRAP><a href='admin_subscriber_userhistory.php?user_id={$user_id}'>{lang_print id=100014225}</a></td>
<td class='tab'>&nbsp;</td>
<td class='tab2' NOWRAP><a href='admin_subscriber_usermessages.php?user_id={$user_id}'>{lang_print id=100014260}</a></td>
<td class='tab'>&nbsp;</td>
<td class="tab2" nowrap=""><a href="usernotes.php?user_id={$user_id}">Notes</a></td>
<td class="tab">&nbsp;</td>
<td class='tab3'>&nbsp;<a href='admin_viewusers.php'>&#171; &nbsp; {lang_print id=100014226}</a></td>
</tr>
</table>
<br>
{* SHOW RECENT ACTIVITY *}
{if $actions|@count > 0}
{literal}
<script language="JavaScript">
<!--
Rollimage0 = new Image(10,12);
Rollimage0.src = "../images/icons/action_delete1.gif";
Rollimage1 = new Image(10,12);
Rollimage1.src = "../images/icons/action_delete2.gif";
var total_actions = {/literal}{$actions|@count}{literal};
function action_delete(action_id) {
$('action_' + action_id).style.display = 'none';
total_actions--;
if(total_actions == 0)
$('actions').style.display = "none";
}
//-->
</script>
{/literal}
{* SHOW RECENT ACTIONS *}
{/if}
{literal}
<div id="activities"></div>
<script>
jQuery(document).ready(function() {
jQuery.ajax({
url: "admin_activityfeed.php?show=0&user={/literal}{$user->user_info.user_id}{literal}",
cache: false
})
.done(function( a ) {
jQuery( "#activities" ).html( a );
});
});
</script>{/literal}
{* END RECENT ACTIVITY *}
<br /><br />
{literal}
<script type="text/javascript">
<!--
jQuery( document ).ready(function() {
var options = {
script:"../misc_js.php?task=suggest_user&limit=10&",
varname:"input",
json:true,
shownoresults:false,
maxresults:10,
callback: function (obj) {
if(obj.id != '') {
var newDiv = document.createElement('div');
newDiv.id = 'block_'+obj.id;
newDiv.innerHTML = "<div style='padding-left: 5px;'><div style='float: left;'><input type='hidden' name='user_blocklist[]' value='"+obj.id+"'></div><div><a href='../profile.php?user="+obj.id+"'>"+obj.value+"</a></div><div style='clear: both;'></div></div>";
jQuery(newDiv).insertBefore('#block_user');
jQuery('#block_user').val('');
}
}
};
var as_json = new bsn.AutoSuggest('block_user', options);
jQuery('#block_user').val('');
});
//-->
</script>
{/literal}
{include file='admin_footer.tpl'}