2014-01-22 10:32:50 +00:00
|
|
|
{assign var='signup_fields' value=$userquery->load_signup_fields($u)}
|
|
|
|
{assign var='channel_profile_fields' value=$userquery->load_user_fields($p)}
|
2014-03-04 10:22:56 +00:00
|
|
|
|
2014-02-04 14:08:41 +00:00
|
|
|
<div class="row">
|
2014-05-07 14:06:39 +00:00
|
|
|
<div class="lead dropdown">
|
|
|
|
<div class="heading clearfix">
|
|
|
|
<h3 class="paddingLeftLarge pull-left">Editing <small>>> {$u.username}</small></h3>
|
|
|
|
<div class="pull-right marginBottomLarge">
|
|
|
|
<span class="btn btn-app btn-sm btn-light no-hover">
|
|
|
|
<span class="line-height-1 blue">{$u.num_visits}</span>
|
|
|
|
<br>
|
|
|
|
<span class="line-height-1 smaller-90"> Views </span>
|
|
|
|
</span>
|
|
|
|
<span class="btn btn-app btn-sm btn-yellow no-hover">
|
|
|
|
<span class="line-height-1"> {$u.total_comments} </span>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<span class="line-height-1 smaller-90"> Comments </span>
|
|
|
|
</span>
|
|
|
|
<span class="btn btn-app btn-sm btn-pink no-hover">
|
|
|
|
<span class="line-height-1"> {if $u.usr_status=='Ok'}<span class="glyphicon glyphicon-ok"></span>
|
|
|
|
{else}<span class="glyphicon glyphicon-remove">{/if}</span>
|
|
|
|
<br>
|
|
|
|
<span class="line-height-1 smaller-90"> Active </span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span class="btn btn-app btn-sm btn-danger no-hover">
|
|
|
|
<span class="line-height-1">{if $u.ban_status=='yes'}
|
|
|
|
<span class="glyphicon glyphicon-ok"></span>
|
|
|
|
{else}<span class="glyphicon glyphicon-remove">{/if}</span>
|
|
|
|
<br>
|
|
|
|
<span class="line-height-1 smaller-90">Banned</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span class="btn btn-app btn-sm btn-primary no-hover">
|
|
|
|
|
|
|
|
<span class="line-height-1"> {$u.total_flags} </span>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<span class="line-height-1 smaller-90"> Flagged </span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-04 14:08:41 +00:00
|
|
|
<a class="btn btn-primary btn-sm dropdown-toggle pull-right" data-toggle="dropdown" href="">Actions <i class="caret"></i></a>
|
|
|
|
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu1">
|
|
|
|
<li><a role="menuitem" tabindex="-1" href="{$userquery->profile_link($u)}">View {$u.username} channel</a></li>
|
|
|
|
<li><a role="menuitem" tabindex="-1" href="login_as_user.php?uid={$u.userid}">Login as user</a></li>
|
|
|
|
{if $u.usr_status=="Ok"}
|
|
|
|
<li><a role="menuitem" tabindex="-1" href="?uid={$u.userid}&deactivate=yes">Deactivate</a></li>
|
|
|
|
{else}
|
|
|
|
<li><a role="menuitem" tabindex="-1" href="?uid={$u.userid}&activate=yes">Activate</a></li>
|
|
|
|
{/if}
|
|
|
|
{if $u.ban_status=="yes"}
|
|
|
|
<li><a role="menuitem" tabindex="-1" href="?uid={$u.userid}&unban=yes">Unban</a></li>
|
|
|
|
{else}
|
|
|
|
<li><a role="menuitem" tabindex="-1" href="?uid={$u.userid}&ban=yes">Ban</a></li>
|
|
|
|
{/if}
|
|
|
|
<li><a role="menuitem" tabindex="-1" href="?uid={$u.userid}&delete=yes">Delete</a></li>
|
|
|
|
<li><a role="menuitem" tabindex="-1" href="?uid={$u.userid}&delete_vids=yes">Delete Videos</a></li>
|
|
|
|
<li><a role="menuitem" tabindex="-1" href="?uid={$u.userid}&delete_contacts=yes">Delete Contacts</a></li>
|
|
|
|
<li><a role="menuitem" tabindex="-1" href="?uid={$u.userid}&delete_pm=yes">Delete Private Messages</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-03-04 10:22:56 +00:00
|
|
|
|
2014-01-22 10:32:50 +00:00
|
|
|
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1" class="cbform">
|
Admin Area
Fixed: User Pages, manage member,added members,manage categories,Search Members and mass email.
Groups Pages, add group,manage groups, manage groups, Advertisement pages.
Add Group now working fine.
Language Setting:
add language,delete language,add phrases,comments manage
2014-02-19 14:15:54 +00:00
|
|
|
<div class="col-sm-6 col-md-6 col-lg-6 col x1-12">
|
2014-02-26 14:06:06 +00:00
|
|
|
<div class="tabbable">
|
|
|
|
<ul class="nav nav-tabs" id="myTab">
|
|
|
|
<li class="active">
|
|
|
|
<a data-toggle="tab" href="#userinfo">
|
|
|
|
User Information
|
Admin Area
Fixed: User Pages, manage member,added members,manage categories,Search Members and mass email.
Groups Pages, add group,manage groups, manage groups, Advertisement pages.
Add Group now working fine.
Language Setting:
add language,delete language,add phrases,comments manage
2014-02-19 14:15:54 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="">
|
|
|
|
<a data-toggle="tab" href="#basicinfo">
|
|
|
|
|
|
|
|
Basic Info
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="">
|
|
|
|
<a data-toggle="tab" href="#location">
|
|
|
|
|
|
|
|
location
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="">
|
|
|
|
<a data-toggle="tab" href="#education">
|
2014-05-07 14:06:39 +00:00
|
|
|
Education, Hobbies, etc
|
2014-02-26 14:06:06 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="custSignup">
|
|
|
|
{assign var=cust_signup value=$userquery->load_custom_signup_fields($u,true)}
|
|
|
|
{if $cust_signup}
|
|
|
|
{foreach from=$cust_signup item=field}
|
|
|
|
<div class="form-group">
|
|
|
|
{$field.class="form-control"}
|
|
|
|
<label for="{$field.id}">{$field.title}</label>
|
|
|
|
{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
|
|
|
{$field.hint_2}
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
2014-01-22 10:32:50 +00:00
|
|
|
</div>
|
2014-02-26 14:06:06 +00:00
|
|
|
<div id="userinfo" class="tab-pane active">
|
|
|
|
<div class="userInfoSettings">
|
|
|
|
<div class="form-group">
|
|
|
|
<img src="{$userquery->getUserThumb($u,'small')}" class="btn btn-app btn-primary btn-xs" />
|
|
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
2014-05-07 14:06:39 +00:00
|
|
|
<table class="myTable" width="600px">
|
2014-02-26 14:06:06 +00:00
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label class="">User Id</label></td>
|
2014-05-07 14:06:39 +00:00
|
|
|
<td class="last"><p><span>{$u.userid}</span></p></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label class="">User Name</label></td>
|
2014-05-07 14:06:39 +00:00
|
|
|
<td class="last"><p><span>{$u.username}</span></p></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label class="">Email</label></td>
|
2014-05-07 14:06:39 +00:00
|
|
|
<td class="last"><p><span>{$u.email}</span></p></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
</tr>
|
2014-05-07 14:06:39 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"> <label for="laevel">User level</label></td>
|
2014-05-07 14:06:39 +00:00
|
|
|
<td class="last">
|
|
|
|
<p><span>{$u.level}</span></p>
|
|
|
|
{*
|
|
|
|
<select class="form-control" name="level" id="level">
|
|
|
|
{assign var=levels value=$userquery->get_levels()}
|
|
|
|
{foreach from=$levels item=level}
|
|
|
|
<option value="{$level.user_level_id}" {if $u.level==$level.user_level_id} selected="selected"{/if}>{$level.user_level_name}</option>
|
|
|
|
{/foreach}
|
|
|
|
</select>
|
|
|
|
*}
|
|
|
|
</td>
|
2014-02-26 14:06:06 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label for="country">Country</label></td>
|
2014-05-07 14:06:39 +00:00
|
|
|
<td class="last">
|
|
|
|
<p><span>{$u.country}</span></p>
|
|
|
|
{*
|
2014-02-26 14:06:06 +00:00
|
|
|
<select class="form-control" name="country" id="country">
|
|
|
|
{assign var='countries' value=$Cbucket->get_countries(iso2)}
|
|
|
|
{foreach from=$countries item=country key=code}
|
|
|
|
<option value="{$code}" {if $u.country==$code} selected="selected"{/if}>{$country}</option>
|
|
|
|
{/foreach}
|
2014-05-07 14:06:39 +00:00
|
|
|
</select>
|
|
|
|
*}
|
|
|
|
</td>
|
2014-02-26 14:06:06 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label for="gender">Gender</label></td>
|
2014-05-07 14:06:39 +00:00
|
|
|
<td class="last">
|
|
|
|
<p><span>{$u.sex}</span></p>
|
|
|
|
{*
|
2014-02-26 14:06:06 +00:00
|
|
|
<select>
|
|
|
|
<option name="sex" value="male" id="sex_0" {if $u.sex == male} checked="checked"{/if}>
|
|
|
|
Male</option>
|
|
|
|
<option name="sex" value="female" id="sex_1" {if $u.sex == female} checked="checked"{/if}>
|
|
|
|
Female</option>
|
|
|
|
</select>
|
2014-05-07 14:06:39 +00:00
|
|
|
*}
|
2014-02-26 14:06:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
<div class="custSignup">
|
|
|
|
{assign var=cust_signup value=$userquery->load_custom_signup_fields($u,true)}
|
|
|
|
{if $cust_signup}
|
|
|
|
{foreach from=$cust_signup item=field}
|
|
|
|
<div class="form-group">
|
|
|
|
{$field.class="form-control"}
|
|
|
|
<label for="{$field.id}">{$field.title}</label>
|
|
|
|
{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
|
|
|
{$field.hint_2}
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
|
|
|
</div>
|
2014-03-04 10:22:56 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-05-07 14:06:39 +00:00
|
|
|
<div id="channelsetting" class="tab-pane sr-only">
|
2014-05-06 13:36:47 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
<h2>Channel Settings</h2>
|
2014-05-06 13:36:47 +00:00
|
|
|
<table class="myTable table">
|
2014-02-26 14:06:06 +00:00
|
|
|
{foreach from=$channel_profile_fields item=field_group}
|
|
|
|
|
2014-05-06 13:36:47 +00:00
|
|
|
{if $field_group.group_name=='Channel settings'}
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-05-06 13:36:47 +00:00
|
|
|
{foreach from=$field_group.fields item=field}
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-05-06 13:36:47 +00:00
|
|
|
{$field.class='form-control'}
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="first" width="">
|
|
|
|
<label for="{$field.id}">{$field.title}</label></td>
|
|
|
|
<td class="last">
|
|
|
|
{$field.class = "form-control"}
|
|
|
|
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
|
|
|
{$field.hint_2}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
2014-02-26 14:06:06 +00:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="basicinfo" class="tab-pane">
|
2014-01-22 10:32:50 +00:00
|
|
|
<div class="form-group">
|
2014-05-06 13:36:47 +00:00
|
|
|
<table class="myTable" width="600">
|
2014-05-07 14:06:39 +00:00
|
|
|
{foreach from=$channel_profile_fields item=field_group}
|
|
|
|
{foreach from=$field_group.fields item=field}
|
|
|
|
{if $field_group.group_name=='Basic info'}
|
|
|
|
{$field.class='form-control'}
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="first">
|
|
|
|
<label for="{$field.id}">{$field.title}</label></td>
|
|
|
|
<td class="last">
|
|
|
|
{$val = $p[$field.db_field]}
|
|
|
|
{if $val == ""}
|
|
|
|
{$val = $u[$field.db_field]}
|
|
|
|
{/if}
|
|
|
|
<p><span>{$val}</span></p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
{/foreach}
|
2014-02-26 14:06:06 +00:00
|
|
|
</table>
|
2014-01-22 10:32:50 +00:00
|
|
|
</div>
|
2014-02-26 14:06:06 +00:00
|
|
|
</div>
|
|
|
|
<div id="location" class="tab-pane">
|
2014-05-07 14:06:39 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
<div class="form-group">
|
2014-05-07 14:06:39 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
{foreach from=$channel_profile_fields item=field_group}
|
|
|
|
{foreach from=$field_group.fields item=field}
|
|
|
|
{if $field_group.group_name=='Location'}
|
|
|
|
{$field.class='form-control'}
|
2014-05-06 13:36:47 +00:00
|
|
|
<table class="myTable" width="600">
|
2014-02-26 14:06:06 +00:00
|
|
|
<tr>
|
2014-05-07 14:06:39 +00:00
|
|
|
<td class="first">
|
2014-02-26 14:06:06 +00:00
|
|
|
<label for="{$field.id}">{$field.title}</label></td>
|
2014-05-07 14:06:39 +00:00
|
|
|
<td class="last">
|
|
|
|
{$val = $p[$field.db_field]}
|
|
|
|
{if $val == ""}
|
|
|
|
{$val = $u[$field.db_field]}
|
|
|
|
{/if}
|
|
|
|
<p><span>{$val}</span></p>
|
2014-02-26 14:06:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
{/foreach}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="education" class="tab-pane">
|
|
|
|
<div class="form-group">
|
|
|
|
<h2>Education, Hobbies, etc</h2>
|
|
|
|
{foreach from=$channel_profile_fields item=field_group}
|
|
|
|
{foreach from=$field_group.fields item=field}
|
|
|
|
{if $field_group.group_name=='Education, Hobbies, etc'}
|
|
|
|
{$field.class='form-control'}
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-05-06 13:36:47 +00:00
|
|
|
<table class="myTable" width="600">
|
2014-02-26 14:06:06 +00:00
|
|
|
<tr>
|
2014-05-07 14:06:39 +00:00
|
|
|
<td class="first">
|
2014-02-26 14:06:06 +00:00
|
|
|
<label for="{$field.id}">{$field.title}</label></td>
|
2014-05-07 14:06:39 +00:00
|
|
|
<td class="last">
|
|
|
|
{$val = $p[$field.db_field]}
|
|
|
|
{if $val == ""}
|
|
|
|
{$val = $u[$field.db_field]}
|
|
|
|
{/if}
|
|
|
|
<p><span>{$val}</span></p>
|
2014-02-26 14:06:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
{/foreach}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
</div>
|
2014-02-04 14:08:41 +00:00
|
|
|
</div>
|
2014-02-26 14:06:06 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-02-04 14:08:41 +00:00
|
|
|
<div class="col-sm-6 col-md-6 col-lg-6 col x1-12 pull-right">
|
2014-05-07 14:06:39 +00:00
|
|
|
|
2014-03-04 10:22:56 +00:00
|
|
|
|
2014-01-22 10:32:50 +00:00
|
|
|
<div class="actionsSettings">
|
2014-02-04 14:08:41 +00:00
|
|
|
<div class="userActivity">
|
2014-01-22 10:32:50 +00:00
|
|
|
<h3>User Activity</h3>
|
|
|
|
|
2014-05-06 13:36:47 +00:00
|
|
|
<table class="table table-striped table-bordered">
|
2014-02-26 14:06:06 +00:00
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label for="dob">Date of birth</label></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="500"> <input name="dob" type="text" id="dob" value="{$u.dob} YYYY-MM-DD" class="form-control" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"> <label for="doj">Joined - IP</label></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="500"> <input class="form-control" name="doj" type="text" id="doj" value="{$u.doj}" />
|
2014-05-06 13:36:47 +00:00
|
|
|
<small>{$u.signup_ip}</small>
|
2014-02-26 14:06:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"> <label for="doj">Last-Login IP</label></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="500"> {$u.last_logged} - {$u.ip}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"> <label for="doj">Last-Active Online</label></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="500"> {$u.last_active} - {$u.last_active|is_online}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label for="profile_hits">Profile Views</label></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="500"><input class="form-control" name="profile_hits" type="text" id="profile_hits" value="{$u.profile_hits}" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label for="total_watched">Videos Watched</label></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="500"><input class="form-control" name="total_watched" type="text" id="total_watched" value="{$u.total_watched}" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"> <label for="total_watched3">Comments made</label></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="500"> <input class="form-control" name="total_comments" type="text" id="total_watched3" value="{$u.total_comments}" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label for="comments_count">Profile comments</label></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="500"> <input class="form-control" name="comments_count" type="text" id="comments_count" value="{$u.comments_count}" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label for="tatal_watched4">Profile rating</label></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="500"> <input class="form-control" name="rating" type="text" id="total_watched4" value="{$p.rating}" />
|
|
|
|
0-10
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label for="total_watched5">Profile rated by</label></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="500"> <input class="form-control" name="rated_by" type="text" id="total_watched5" value="{$p.rated_by}" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-06 13:36:47 +00:00
|
|
|
<td class="first"><label for="total_watched6">Subscribers</label></td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="500"> <input class="form-control" name="subscribers" type="text" id="total_watched6" value="{$u.subscribers}" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
<hr>
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
<div class="tabbable">
|
|
|
|
<ul class="nav nav-tabs" id="myTab">
|
|
|
|
<li class="active">
|
|
|
|
<a data-toggle="tab" href="#recent">
|
|
|
|
Recent Activity Log
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="">
|
|
|
|
<a data-toggle="tab" href="#avatar">
|
|
|
|
User Avatar & Background
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="">
|
|
|
|
<a data-toggle="tab" href="#background">
|
|
|
|
User Background image
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div id="recent" class="tab-pane active">
|
2014-02-04 14:08:41 +00:00
|
|
|
<div class="recentActivityLog">
|
2014-01-22 10:32:50 +00:00
|
|
|
<h3>Recent Activity Log</h3>
|
|
|
|
<table class="table table-bordered table-striped">
|
|
|
|
<tr>
|
2014-02-04 14:08:41 +00:00
|
|
|
<td>ID</td>
|
|
|
|
<td>UID</td>
|
|
|
|
<td>Username</td>
|
|
|
|
<td>Date</td>
|
|
|
|
<td>Detail</td>
|
2014-01-22 10:32:50 +00:00
|
|
|
</tr>
|
|
|
|
{assign var="logs" value=$userquery->get_user_action_log($u.userid,10)}
|
|
|
|
{section loop=$logs name=log}
|
|
|
|
<tr>
|
2014-02-04 14:08:41 +00:00
|
|
|
<td>{$logs[log].action_id}</td>
|
|
|
|
<td>{$logs[log].action_userid}</td>
|
2014-02-26 14:06:06 +00:00
|
|
|
<td width="100" class="">{$logs[log].action_username}</td>
|
|
|
|
<td width="100" class="">{$logs[log].date_added}</td>
|
2014-01-22 10:32:50 +00:00
|
|
|
<td>
|
|
|
|
Type : {$logs[log].action_type} –{if $logs[log].action_details!=''}{$logs[log].action_details} –{/if} Success : {$logs[log].action_success} – {$logs[log].action_ip}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{sectionelse}
|
|
|
|
<!--<tr><td><em>No user action log found</em></td></tr>-->
|
|
|
|
{/section}
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-02-26 14:06:06 +00:00
|
|
|
</div>
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
<div id="avatar" class="tab-pane">
|
2014-01-22 10:32:50 +00:00
|
|
|
<div class="useAvatar">
|
2014-02-26 14:06:06 +00:00
|
|
|
|
2014-01-22 10:32:50 +00:00
|
|
|
<h3>User Avatar and Background</h3>
|
|
|
|
|
2014-02-04 14:08:41 +00:00
|
|
|
<div class="changeAvatar row">
|
2014-01-22 10:32:50 +00:00
|
|
|
<div class="showAvatar col-md-3">
|
|
|
|
<img src="{$userquery->getUserThumb($u)}" class="mid_user_thumb" style="max-width:95px"/><br />
|
|
|
|
<input name="delete_avatar" type="checkbox" id="delete_avatar" value="yes" />
|
|
|
|
<label for="delete_avatar">Delete This Image - (if user has profile pic)</label>
|
|
|
|
</div>
|
|
|
|
<div class="uploadNewAvatar col-md-9">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="avatar_file">User Avatar/Profile Pic<small>Please select image file</small></label>
|
|
|
|
<input class="" type="file" name="avatar_file" id="avatar_file" />
|
|
|
|
</div>
|
|
|
|
<h4>OR</h4>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="avatar_url">Please Enter Image URL</label>
|
|
|
|
<input class="form-control" name="avatar_url" type="text" id="avatar_url" value="{$u.avatar_url}" />
|
|
|
|
<input type="hidden" name="avatar_file_name" value="{$u.avatar}" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="radio" for="remove_avatar_url">
|
|
|
|
<input name="remove_avatar_url" type="checkbox" id="remove_avatar_url" value="yes" />
|
|
|
|
Remote avatar url
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-26 14:06:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="background" class="tab-pane">
|
2014-02-04 14:08:41 +00:00
|
|
|
<div class="changeBackground row">
|
2014-01-22 10:32:50 +00:00
|
|
|
<h3>User Background Image</h3>
|
|
|
|
<div class="showBackground col-md-3">
|
|
|
|
{if $userquery->getUserBg($u)}
|
|
|
|
<img src="{$userquery->getUserBg($u)}" style="max-width:95px"/>
|
|
|
|
{else}
|
|
|
|
No Bg
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
<div class="uploadNewBackground col-md-9">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="background_file">Please Select Image File</label>
|
|
|
|
<input type="file" name="background_file" id="background_file" />
|
|
|
|
</div>
|
|
|
|
<h4>OR</h4>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="background_url">Please Enter Image URL</label>
|
|
|
|
<input class="form-control" name="background_url" type="text" id="background_url" value="{$u.background_url}" />
|
|
|
|
</div>
|
|
|
|
<h4>OR</h4>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="background_color">Please Enter Background Color</label>
|
|
|
|
<input class="form-control" name="background_color" type="text" id="background_color" value="{$u.background_color}" />
|
|
|
|
</div>
|
|
|
|
<h4>OR</h4>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="background_repeat">Background Repeat Type (if using image as a background)</label>
|
|
|
|
<select class="form-control" name="background_repeat" id="background_repeat" >
|
|
|
|
<option value="repeat" {if $u.background_repeat=='repeat'} selected="selected"{/if}>repeat</option>
|
|
|
|
<option value="repeat-x" {if $u.background_repeat=='repeat-x'} selected="selected"{/if}>repeat-x</option>
|
|
|
|
<option value="repeat-y" {if $u.background_repeat=='repeat-y'} selected="selected"{/if}>repeat-y</option>
|
|
|
|
<option value="no-repeat" {if $u.background_repeat=='no-repeat'} selected="selected"{/if}>no-repeat</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
{if $userquery->getUserBg($u)}
|
|
|
|
<div>
|
|
|
|
<label class="checkbox" for="delete_bg"><input name="delete_bg" type="checkbox" id="delete_bg" value="yes" /><label for="delete_bg">Delete this image</label>
|
2014-02-04 14:08:41 +00:00
|
|
|
</label>
|
2014-01-22 10:32:50 +00:00
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
<input type="hidden" name="bg_file_name" value="{$u.background}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-26 14:06:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
2014-01-22 10:32:50 +00:00
|
|
|
|
|
|
|
<div class="form-group">
|
2014-02-04 14:08:41 +00:00
|
|
|
<input class="btn btn-primary btn-lg pull-right" type="submit" name="update_user" id="update_user" value="Submit" />
|
2014-01-22 10:32:50 +00:00
|
|
|
</div>
|
2014-02-04 14:08:41 +00:00
|
|
|
</div>
|
2014-01-22 10:32:50 +00:00
|
|
|
</div>
|
2014-02-26 14:06:06 +00:00
|
|
|
</div>
|
2014-05-07 14:06:39 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="pass">Change password</label>
|
|
|
|
<input class="form-control" name="pass" type="text" id="pass" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="cpass">Confirm password</label>
|
|
|
|
<input class="form-control" name="cpass" type="text" id="cpass" />
|
|
|
|
</div>
|
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2014-01-22 10:32:50 +00:00
|
|
|
|
2014-02-26 14:06:06 +00:00
|
|
|
<div id="comments"></div>
|
2014-01-22 10:32:50 +00:00
|
|
|
{assign var='object_type' value='channel'}
|
|
|
|
<script>
|
2014-02-26 14:06:06 +00:00
|
|
|
|
2014-01-22 10:32:50 +00:00
|
|
|
</script>
|
2014-02-26 14:06:06 +00:00
|
|
|
|
2014-02-04 14:08:41 +00:00
|
|
|
<div class="form-group">
|
2014-02-26 14:06:06 +00:00
|
|
|
{assign var=id value=$u.userid}{include file="$style_dir/blocks/comments.html" type=u id=$u.userid link="user=$id"}
|
|
|
|
</div>
|
|
|
|
|