pm_send.htm
2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{template header_client}
{template pm_nav}
<script type="text/javascript">
function switchfirendls() {
if(document.getElementById('friendls').style.display == '') {
document.getElementById('friendls').style.display = 'none';
document.getElementById('pmcontent').className = 'pmcontent noside';
} else {
document.getElementById('friendls').style.display = '';
document.getElementById('pmcontent').className = 'pmcontent';
}
}
</script>
<div class="ucinfo">
<!--{if $pmid && $do == 'forward'}-->
<h1><span><button onclick="location.href='index.php?m=pm_client&a=view&touid=$touid&plid=$plid&$extra'">{lang back}</button></span></h1>
<!--{/if}-->
<form method="post" id="postpmform" name="postpmform" action="index.php?m=pm_client&a=send&$extra">
<input type="hidden" name="formhash" value="{FORMHASH}">
<!--{if $sendpmseccode}--><input type="hidden" name="seccodehidden" value="$seccodeinit" /><!--{/if}-->
<div class="pmcontent{if !$friends} noside{/if}" id="pmcontent">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="newpm">
<tbody>
<tr>
<td class="sel"></td>
<th>{lang pm_to}:</th>
<td>
<input class="ucinput" type="text" name="msgto" size="65" value="$touser" />
</td>
</tr>
<tr>
<td class="sel"></td>
<th>{lang pm_message}:</th>
<td>
{template pm_editorbar}
<textarea class="listarea" id="pm_textarea" rows="15" cols="10" style="height: 210px" name="message" onKeyDown="ctlent(event)">$message</textarea>
</td>
</tr>
<!--{if $sendpmseccode}-->
<tr>
<td class="sel"></td>
<th>{lang login_seccode}:</th>
<td>
<label><input type="text" name="seccode" value="" size="5" /> <img width="70" height="21" src="admin.php?m=seccode&seccodeauth=$seccodeinit&{eval echo rand();}" /></label>
</td>
</tr>
<!--{/if}-->
</tbody>
<tfoot>
<tr>
<td class="sel"></td>
<th></th>
<td>
<button name="pmsubmit" type="submit" class="pmsubmit">{lang pm_sendpm}</button>
<input type="checkbox" name="type" value="1" checked="checked" />{lang chatpm}
</td>
</tr>
</tfoot>
</table>
</div>
<!--{if $friends}-->
<div class="pmside" id="friendls">
<h3><input type="checkbox" name="chkall" onclick="checkall(this.form, 'friend')" value="$pm[pmid]" /> {lang pm_tofriends}</h3>
<ul>
<!--{loop $friends $friend}-->
<li><input type="checkbox" name="friend[]" value="$friend[friendid]"> $friend[username]</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
</form>
</div>
{template footer_client}