55 lines
2.3 KiB
Smarty
55 lines
2.3 KiB
Smarty
|
|
{*
|
|
@author Ermek
|
|
@copyright Hire-Experts LLC
|
|
@version UserNote 1.01
|
|
*}
|
|
|
|
{if $he_user_note}
|
|
<link rel="stylesheet" href="../templates/he_user_note_styles.css"/>
|
|
<script src="../include/js/he_user_note.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript">
|
|
window.addEvent('domready', function() {ldelim}
|
|
var $parent_node = $$('.rightside .smallbox')[0].getParent('td');
|
|
var $user_note = $$('.admin_panel_user_note');
|
|
$parent_node.adopt($user_note);
|
|
$user_note.setStyle('display', 'block');
|
|
{rdelim});
|
|
</script>
|
|
|
|
{lang_javascript ids=690699006}
|
|
|
|
<div class="admin_panel_user_note" style="display: none;">
|
|
<table cellspacing="0" cellpadding="0" width="100%" style="margin-bottom: 10px;" class="he_user_note_block">
|
|
<tbody>
|
|
<tr><td class="header">
|
|
<div class="block_acts" {if !$note_info}style="display: none"{/if}>
|
|
<a href="javascript://" title="{lang_print id=690699001}" onclick="he_user_note.show_note_form();"><img src="../images/icons/he_user_note_edit.png" border="0"/></a>
|
|
<a href="javascript://" title="{lang_print id=690699002}" onclick="he_user_note.delete_note();"><img src="../images/icons/he_user_note_del.png" border="0"/></a>
|
|
</div>
|
|
{lang_sprintf id=690699000 1=$user->user_displayname_short}
|
|
<div class="clr"></div>
|
|
</td></tr>
|
|
<tr>
|
|
<td class="profile">
|
|
<div id="he_user_note_cont">
|
|
<div class="user_note" {if !$note_info}style="display: none"{/if}>{$note_info.note|nl2br}</div>
|
|
<a href="javascript://" onclick="he_user_note.show_note_form();" class="add_note_btn" {if $note_info}style="display: none"{/if}>{lang_print id=690699003}</a>
|
|
<div class="he_user_note_loading" style="display: none;"></div>
|
|
</div>
|
|
|
|
<div id="he_user_note_form" style="display: none;">
|
|
<center>
|
|
<textarea id="user_note_textarea" class="text note_textarea">{$note_info.note}</textarea>
|
|
</center>
|
|
<div class="note_controls">
|
|
<input type="button" class="button" value="{lang_print id=690699004}" onclick="he_user_note.save_note(this);"/>
|
|
<input type="button" class="button" value="{lang_print id=690699005}" onclick="he_user_note.cancel_note_form()"/>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody></table>
|
|
</div>
|
|
{/if} |