space_doing_form.htm
1.88 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
<script type="text/javascript">
var msgstr = '$defaultstr';
function handlePrompt(type) {
var msgObj = $('message');
if(type) {
if(msgObj.value == msgstr) {
msgObj.value = '';
msgObj.className = 'xg2';
}
if($('message_menu')) {
if($('message_menu').style.display == 'block') {
showFace('message', 'message', msgstr);
}
}
if(BROWSER.firefox || BROWSER.chrome) {
showFace('message', 'message', msgstr);
}
} else {
if(msgObj.value == ''){
msgObj.value = msgstr;
msgObj.className = 'xg1';
}
}
}
</script>
<div id="moodfm">
<form method="post" autocomplete="off" id="mood_addform" action="home.php?mod=spacecp&ac=doing&view=$_GET[view]" onsubmit="if($('message').value == msgstr){return false;}">
<table cellspacing="0" cellpadding="0">
<tr>
<td id="mood_statusinput" class="moodfm_input">
<textarea name="message" id="message" class="xg1" onfocus="handlePrompt(1);" onclick="showFace(this.id, 'message', msgstr);" onblur="handlePrompt(0);" onkeyup="strLenCalc(this, 'maxlimit')" onkeydown="ctrlEnter(event, 'add');" rows="4">$defaultstr</textarea>
</td>
<td class="moodfm_btn">
<button type="submit" name="add" id="add">{lang publish}</button>
</td>
</tr>
<tr>
<td class="moodfm_f">
<div id="return_doing" class="xi1 xw1"></div>
<span class="y">{lang doing_maxlimit_char}</span>
<!--{if $_G['group']['maxsigsize']}-->
<label for="to_sign"><input type="checkbox" name="to_signhtml" id="to_sign" class="pc" value="1" />{lang doing_update_personal_signature}</label>
<!--{/if}-->
</td>
<td></td>
</tr>
</table>
<input type="hidden" name="addsubmit" value="true" />
<input type="hidden" name="refer" value="$theurl" />
<input type="hidden" name="topicid" value="$topicid" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
</form>
</div>