2009-11-30 19:46:45 +00:00
|
|
|
<div>
|
|
|
|
{include file="$style_dir/blocks/manage/account_left.html"}
|
|
|
|
|
|
|
|
<div class="account_box">
|
|
|
|
{include file="$style_dir/blocks/manage/account_head.html" user=$user}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- CHANGING USER ACCOUNT AND PROFILE -->
|
|
|
|
|
|
|
|
{if $mode == 'profile_settings'}
|
|
|
|
{assign var="user_fields" value=$userquery->load_profile_fields($p)}
|
|
|
|
{assign var="user_custom_profile_fields" value=$userquery->load_custom_profile_fields($p)}
|
|
|
|
{assign var="user_custom_signup_fields" value=$userquery->load_custom_signup_fields($p)}
|
2009-12-04 21:03:27 +00:00
|
|
|
{assign var="signup_fields" value=$userquery->load_signup_fields($user)}
|
2009-11-30 19:46:45 +00:00
|
|
|
|
|
|
|
<div class="account_form">
|
|
|
|
<form method="post" name="edit_profile">
|
|
|
|
<fieldset class="fieldset">
|
2010-02-10 05:54:08 +00:00
|
|
|
<legend>{lang code='account_details'}</legend>
|
2009-11-30 19:46:45 +00:00
|
|
|
<div class="account_field_block clearfix">
|
2010-02-18 07:03:34 +00:00
|
|
|
<div class="account_field_label" align="right"><strong><label for="country">{lang code='country'}</label></strong></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
<div class="account_field"><select name="country" id="country">
|
|
|
|
{assign var='countries' value=$Cbucket->get_countries(iso2)}
|
|
|
|
{foreach from=$countries item=country key=code}
|
|
|
|
<option value="{$code}" {if $user.country==$code} selected="selected"{/if}>{$country}</option>
|
|
|
|
{/foreach}
|
|
|
|
</select></div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="account_field_block clearfix">
|
2010-02-18 07:03:34 +00:00
|
|
|
<div class="account_field_label" align="right"><strong><label for="country">{lang code='gender'}</label></strong></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
<div class="account_field"><label>
|
|
|
|
<input type="radio" name="sex" value="male" id="sex_0" {if $user.sex == male} checked="checked"{/if} />
|
2010-02-10 05:54:08 +00:00
|
|
|
{lang code='male'}</label>
|
2009-11-30 19:46:45 +00:00
|
|
|
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="sex" value="female" id="sex_1" {if $user.sex == female} checked="checked"{/if}/>
|
2010-02-10 05:54:08 +00:00
|
|
|
{lang code='female'}</label></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
2009-12-04 21:03:27 +00:00
|
|
|
<div class="account_field_block clearfix">
|
2010-02-10 05:54:08 +00:00
|
|
|
<div class="account_field_label" align="right"><strong><label for="category">{lang code='account_details'}</label></strong></div>
|
2009-12-04 21:03:27 +00:00
|
|
|
<div class="account_field">{ANCHOR place=$signup_fields.cat.anchor_before}{$formObj->createField($signup_fields.cat)}{ANCHOR place=$signup_fields.cat.anchor_after}</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
2010-07-28 07:42:12 +00:00
|
|
|
<div class="account_field_block clearfix">
|
|
|
|
<div class="account_field_label" align="right"><strong><label for="dob">{lang code='user_date_of_birth'}</label></strong></div>
|
|
|
|
<div class="account_field">{ANCHOR place=$signup_fields.dob.anchor_before}{$formObj->createField($signup_fields.dob)}{ANCHOR place=$signup_fields.dob.anchor_after}</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
2009-11-30 19:46:45 +00:00
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="fieldset">
|
2010-02-10 05:54:08 +00:00
|
|
|
<legend>{lang code='profile_details'}</legend>
|
2009-11-30 19:46:45 +00:00
|
|
|
{foreach from=$user_fields item=field}
|
|
|
|
<div class="account_field_block clearfix">
|
|
|
|
<div class="account_field_label" align="right"><strong><label for="{$field.id}">{$field.title}</label></strong></div>
|
|
|
|
<div class="account_field">{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
|
|
|
<br>
|
|
|
|
{$field.hint_2}</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{/foreach}
|
|
|
|
|
2010-02-10 05:54:08 +00:00
|
|
|
<div align="right"><button name="update_profile" id="button" value="submit" class="cb_button">{lang code='update_profile'}</button></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
{/if}
|
|
|
|
<!--- END CHANGING USER ACCOUNT AND PROFILE -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- CHANGING USER AVATAR AND BG -->
|
|
|
|
|
|
|
|
{if $mode == 'avatar_bg'}
|
|
|
|
<div class="account_form avatar_bg">
|
|
|
|
<form method="post" enctype="multipart/form-data" name="edit_profile">
|
|
|
|
|
|
|
|
<fieldset class="fieldset">
|
2010-02-10 05:54:08 +00:00
|
|
|
<legend>{lang code='user_user_avatar'}</legend>
|
2009-11-30 19:46:45 +00:00
|
|
|
<div style="height:15px;"></div>
|
|
|
|
<div style="float:left; width:200px;" align="center">
|
|
|
|
<img src="{$userquery->getUserThumb($user)}" class="mid_user_thumb" style="max-width:95px"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="width:300px; display:block; float:left">
|
|
|
|
|
2010-02-10 05:54:08 +00:00
|
|
|
<strong>{lang code='user_user_avatar'}</strong><br />
|
|
|
|
{lang code='please_select_img_file'}<br />
|
2009-11-30 19:46:45 +00:00
|
|
|
<label for="avatar_file"></label>
|
2010-02-10 05:54:08 +00:00
|
|
|
<input type="file" name="avatar_file" id="avatar_file" />
|
|
|
|
{lang code='or'}<br />
|
2009-11-30 19:46:45 +00:00
|
|
|
|
2010-02-10 05:54:08 +00:00
|
|
|
<label for="avatar_url">{lang code='pelase_enter_image_url'}
|
2009-11-30 19:46:45 +00:00
|
|
|
<input name="avatar_url" type="text" id="avatar_url" value="{$user.avatar_url}" />
|
|
|
|
<br />
|
|
|
|
<input name="delete_avatar" type="checkbox" id="delete_avatar" value="yes" />
|
2010-02-18 07:03:34 +00:00
|
|
|
<label for="delete_avatar" style="display:inline">{lang code='delete_this_img'} - (if user has uploaded profile pic)</label>
|
2009-11-30 19:46:45 +00:00
|
|
|
<input type="hidden" name="avatar_file_name" value="{$user.avatar}" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
<fieldset class="fieldset">
|
2010-02-10 05:54:08 +00:00
|
|
|
<legend>{lang code='user_bg'}</legend>
|
2009-11-30 19:46:45 +00:00
|
|
|
<div style="height:15px;"></div>
|
|
|
|
<div style="float:left; width:200px;" align="center">
|
|
|
|
{if $userquery->getUserBg($user)}<img src="{$userquery->getUserBg($user)}" style="max-width:95px"/>{else}<em><strong>No Bg</strong></em>{/if}
|
|
|
|
</div>
|
|
|
|
<div style="width:300px; display:block; float:left">
|
2010-02-10 05:54:08 +00:00
|
|
|
<strong>{lang code='user_bg_img'}
|
2009-11-30 19:46:45 +00:00
|
|
|
</strong><br />
|
2010-02-10 05:54:08 +00:00
|
|
|
{lang code='please_select_img_file'}
|
2009-11-30 19:46:45 +00:00
|
|
|
<br />
|
|
|
|
<input type="file" name="background_file" id="background_file" />
|
2010-02-10 05:54:08 +00:00
|
|
|
{lang code='or'}
|
2009-11-30 19:46:45 +00:00
|
|
|
|
|
|
|
|
2010-02-10 05:54:08 +00:00
|
|
|
<label for="background_url">{lang code='pelase_enter_image_url'}<br /></label>
|
2009-11-30 19:46:45 +00:00
|
|
|
<input name="background_url" type="text" id="background_url" value="{$user.background_url}" />
|
|
|
|
|
2010-02-10 05:54:08 +00:00
|
|
|
{lang code='or'}
|
|
|
|
<label for="background_color">{lang code='please_enter_bg_color'}</label>
|
2009-11-30 19:46:45 +00:00
|
|
|
<input name="background_color" type="text" id="background_color" value="{$user.background_color}" />
|
|
|
|
<input type="hidden" name="bg_file_name" value="{$user.background}" />
|
|
|
|
|
|
|
|
|
2010-02-10 05:54:08 +00:00
|
|
|
<label for="background_repeat">{lang code='bg_repeat_type'}</label>
|
2009-11-30 19:46:45 +00:00
|
|
|
<select name="background_repeat" id="background_repeat" >
|
|
|
|
<option value="repeat" {if $user.background_repeat=='repeat'} selected="selected"{/if}>repeat</option>
|
|
|
|
<option value="repeat-x" {if $user.background_repeat=='repeat-x'} selected="selected"{/if}>repeat-x</option>
|
|
|
|
<option value="repeat-y" {if $user.background_repeat=='repeat-y'} selected="selected"{/if}>repeat-y</option>
|
|
|
|
<option value="no-repeat" {if $user.background_repeat=='no-repeat'} selected="selected"{/if}>no-repeat</option>
|
|
|
|
</select>
|
|
|
|
<br />
|
|
|
|
|
2009-12-01 11:51:31 +00:00
|
|
|
<input type="checkbox" {if $user.background_attachement=='yes'} checked="checked"{/if} value="yes" name="background_attachement" id="background_attachement" />
|
2010-02-10 05:54:08 +00:00
|
|
|
<label for="background_attachement" style="display:inline">{lang code='fix_bg'}</label>
|
|
|
|
{if $userquery->getUserBg($user)}<input name="delete_bg" type="checkbox" id="delete_bg" value="yes" /><label for="delete_bg" style="display:inline">{lang code='delete_this_img'}</label>{/if}
|
2009-11-30 19:46:45 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</fieldset>
|
2010-02-10 05:54:08 +00:00
|
|
|
<div align="right" style="padding-right:10px"><button name="update_avatar_bg" id="button" value="submit" class="cb_button">{lang code='update'}</button></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
<!--- END CHANGING USER AVATAR AND BG -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if $mode == 'change_email'}
|
|
|
|
|
|
|
|
<!--- CHANGING USER EMAIL -->
|
|
|
|
<div class="account_form">
|
|
|
|
<form method="post" name="edit_profile">
|
|
|
|
<fieldset class="fieldset">
|
2010-02-10 05:54:08 +00:00
|
|
|
<legend>{lang code='user_change_email'}</legend>
|
2009-11-30 19:46:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
<div class="account_field_block">
|
2010-02-10 05:54:08 +00:00
|
|
|
<div class="account_field_label" align="right"><strong><label for="curemail">{lang code='current_email'}</label></strong></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
<div class="account_field"><input type="text" disabled value="{$user.email}" id="curemail" style="margin-bottom:10px"></div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="account_field_block">
|
2010-02-10 05:54:08 +00:00
|
|
|
<div class="account_field_label" align="right"><strong><label for="new_email">{lang code='user_new_email'}</label></strong></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
<div class="account_field"><input type="text" name="new_email" id="new_email" style="margin-bottom:10px"></div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="account_field_block">
|
2010-02-10 05:54:08 +00:00
|
|
|
<div class="account_field_label" align="right"><strong><label for="cnew_email">{lang code='confirm_new_email'}</label></strong></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
<div class="account_field"><input type="text" name="cnew_email" id="cnew_email" style="margin-bottom:10px"></div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
2010-02-10 05:54:08 +00:00
|
|
|
<div align="right"><button name="change_email" id="button" value="submit" class="cb_button">{lang code='user_change_email'}</button></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- END CHANGIN USER EMAIL -->
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if $mode == 'change_password'}
|
|
|
|
|
|
|
|
<!-- CHANGING USER PASSWORD -->
|
|
|
|
<div class="account_form">
|
|
|
|
<form method="post" name="edit_profile">
|
|
|
|
<fieldset class="fieldset">
|
2010-02-10 05:54:08 +00:00
|
|
|
<legend>{lang code='user_change_pass'}</legend>
|
2009-11-30 19:46:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
<div class="account_field_block">
|
|
|
|
<div class="account_field_label" align="right"><strong><label for="old_pass">{lang code='user_old_pass'}</label></strong></div>
|
|
|
|
<div class="account_field"><input name="old_pass" type="password" id="old_pass" style="margin-bottom:10px"></div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="account_field_block">
|
|
|
|
<div class="account_field_label" align="right"><strong><label for="new_pass">{lang code='user_new_pass'}</label></strong></div>
|
|
|
|
<div class="account_field"><input name="new_pass" type="password" id="new_pass" style="margin-bottom:10px"/></div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="account_field_block">
|
|
|
|
<div class="account_field_label" align="right"><strong><label for="c_new_pass">{lang code='user_c_new_pass'}</label></strong></div>
|
|
|
|
<div class="account_field"><input name="c_new_pass" type="password" id="c_new_pass" style="margin-bottom:10px" /></div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
<div align="right"><button name="change_password" id="button" value="submit" class="cb_button_2">{lang code='user_change_pass'}</button></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- END CHANGING USER PASSWORD -->
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if $mode == 'ban_users'}
|
|
|
|
<!-- Banning Users -->
|
|
|
|
<div class="account_form">
|
|
|
|
<form method="post" name="ban_users">
|
|
|
|
<fieldset class="fieldset">
|
|
|
|
<legend>Ban Users</legend>
|
|
|
|
<div class="account_field_block">
|
|
|
|
<div class="account_field_label" align="right"><strong><label for="users">{lang code='ban_users'}</label></strong></div>
|
|
|
|
<div class="account_field">
|
|
|
|
<textarea name="users" id="users" style="margin-bottom:10px">{$user.banned_users}</textarea>
|
|
|
|
<br />
|
|
|
|
{lang code='spe_users_by_comma'}</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div align="right"><button name="ban_users" id="button" value="submit" class="cb_button_2">{lang code='ban_users'}</button></div>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- Banning Users End-->
|
|
|
|
{/if}
|
|
|
|
|
2010-02-01 12:06:13 +00:00
|
|
|
|
|
|
|
{if $mode=='subs'}
|
2010-02-10 05:54:08 +00:00
|
|
|
<h2>{lang code='com_manage_subs'}</h2>
|
2010-02-01 12:06:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
{if $subs}
|
|
|
|
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="manage_contacts_tbl_head">
|
|
|
|
<tr>
|
|
|
|
<td width="15"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
|
|
|
<td width="50"> </td>
|
|
|
|
<td>Username</td>
|
|
|
|
<td width="100">views</td>
|
|
|
|
<td width="50"> </td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{foreach from=$subs item=sub}
|
|
|
|
<div class="manage_contacts_tbl">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td width="15"><input type="checkbox" name="sub[]" id="check_userd-{$user_detail.userid}" value="{$sub.subscribed_to}" /></td>
|
|
|
|
<td width="50" height="50" align="center" valign="middle"><a href="{$userquery->profile_link($sub)}"><img src="{$userquery->getUserThumb($sub)}" alt="{$sub.username}" width="40" height="40" border="0"></a></td>
|
2010-02-10 05:54:08 +00:00
|
|
|
<td><a href="{$userquery->profile_link($sub)}">{$sub.username}</a> | <a href="{$userquery->get_user_videos_link($sub)}">{lang code='grp_view_vdos'}</a></td>
|
2010-02-01 12:06:13 +00:00
|
|
|
<td width="100">{$sub.profile_hits|number_format}</td>
|
|
|
|
|
|
|
|
<td width="50" align="center" valign="middle"><a href="?mode=subscriptions&delete_subs={$sub.subscribed_to}"><img src="{$imageurl}/cancel.png" width="16" height="16" border="0" /></a></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
{else}
|
2010-02-10 05:54:08 +00:00
|
|
|
<div><em><strong>{lang code='no_subs_found'}</strong></em></div>
|
2010-02-01 12:06:13 +00:00
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/if}
|
2009-11-30 19:46:45 +00:00
|
|
|
</div>
|