/
editlog.tpl.php
177 lines (160 loc) · 5.82 KB
/
editlog.tpl.php
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?php
/****************************************************************************
./lang/de/ocstyle/editlog.tpl.php
-------------------
begin : Mon July 5 2004
copyright : (C) 2004 The OpenCaching Group
For license information see doc/license.txt
****************************************************************************/
/****************************************************************************
Unicode Reminder メモ
edit a log listing
template replacement(s):
cachename
logid
logtypeoptions
date_message
logday
logmonth
logyear
logtext
reset
submit
****************************************************************************/
?>
<script type="text/javascript">
<!--
function insertSmiley(smileySymbol, smileyFile) {
var myText = document.editform.logtext;
var insertText = (descMode == 1 ? smileySymbol : '<img src="{smileypath}' + smileyFile + '" alt="" border="0" width="18px" height="18px" />');
myText.focus();
/* for IE and Webkit */
if(typeof document.selection != 'undefined') {
var range = document.selection.createRange();
var selText = range.text;
range.text = insertText + selText;
}
/* for Firefox/Mozilla */
else if(typeof myText.selectionStart != 'undefined')
{
var start = myText.selectionStart;
var end = myText.selectionEnd;
var selText = myText.value.substring(start, end);
myText.value = myText.value.substr(0, start) + insertText + selText + myText.value.substr(end);
/* Cursorposition hinter Smiley setzen */
myText.selectionStart = start + insertText.length;
myText.selectionEnd = start + insertText.length;
}
/* other Browsers */
else
{
alert(navigator.appName + ": {/literal}{t}Setting smilies is not supported{/t}{literal}");
}
}
function _chkFound () {
if(document.editform.rating) {
if (document.editform.logtype.value == "1" || document.editform.logtype.value == "7") {
document.editform.rating.disabled = false;
}
else
{
document.editform.rating.disabled = true;
}
}
return false;
}
//-->
</script>
<div class="content2-pagetitle"><img src="lang/de/ocstyle/images/description/22x22-logs.png" style="margin-right: 10px;" width="22" height="22" alt="" />{t}Edit log entry for the cache <a href="viewcache.php?cacheid={cacheid}">{cachename}</a>{/t}</div>
<form action="editlog.php" method="post" enctype="application/x-www-form-urlencoded" name="editform" dir="ltr">
<input type="hidden" name="logid" value="{logid}"/>
<input type="hidden" name="version2" value="1"/>
<input id="oldDescMode" type="hidden" name="oldDescMode" value="1" />
<input id="descMode" type="hidden" name="descMode" value="1" />
<input type="hidden" name="scrollposx" value="{scrollposx}" />
<input type="hidden" name="scrollposy" value="{scrollposy}" />
<table class="table">
<tr><td class="spacer" colspan="2"></td></tr>
<tr>
<td width="180px">{t}Type of log-enrty{/t}</td>
<td align="left">
<select name="logtype" onChange="return _chkFound()">
{logtypeoptions}
</select>
{teamcommentoption}
</td>
</tr>
<tr><td class="spacer" colspan="2"></td></tr>
<tr>
<td width="180px">{t}Date / time:{/t}</td>
<td align="left">
<input class="input20" type="text" name="logday" maxlength="2" value="{logday}"/>.
<input class="input20" type="text" name="logmonth" maxlength="2" value="{logmonth}"/>.
<input class="input40" type="text" name="logyear" maxlength="4" value="{logyear}"/>
<input class="input20" type="text" name="loghour" maxlength="2" value="{loghour}" /> :
<input class="input20" type="text" name="logminute" maxlength="2" value="{logminute}" />
{date_message}
</td>
</tr>
<tr>
<td></td>
<td>
<img src="lang/de/ocstyle/images/misc/hint.gif" border="0" width="15" height="11" />
{t}For 'Found' and 'Not found' logs: Date and (optional) time of the cache search.{/t}
</td>
</tr>
<tr><td class="spacer" colspan="2"></td></tr>
{rating_message}
</table>
<table class="table">
<tr>
<td colspan="2">
<div class="menuBar">
<span id="descHtmlEdit" class="buttonNormal" onclick="btnSelect(3)" onmouseover="btnMouseOver(3)" onmouseout="btnMouseOut(3)">{t}Editor{/t}</span>
<span class="buttonSplitter">|</span>
<span id="descHtml" class="buttonNormal" onclick="btnSelect(2)" onmouseover="btnMouseOver(2)" onmouseout="btnMouseOut(2)">{t}<html>{/t}</span>
<span class="buttonSplitter">|</span>
<span id="descText" class="buttonNormal" onclick="btnSelect(1)" onmouseover="btnMouseOver(1)" onmouseout="btnMouseOut(1)">{t}Text{/t}</span>
</div>
</td>
</tr>
<tr>
<td>
<span id="scriptwarning" class="errormsg">{t}JavaScript is disabled in your browser, you can enter text only. To use HTML, or the editor, please enable JavaScript.{/t}</span>
</td>
</tr>
<tr>
<td>
<textarea name="logtext" id="logtext" cols="68" rows="25" class="logs" >{logtext}</textarea>
</td>
</tr>
<tr>
<td colspan="2">
{smilies}
</td>
</tr>
<tr><td class="spacer" colspan="2"></td></tr>
{log_pw_field}
<tr><td class="spacer" colspan="2"></td></tr>
<tr>
<td colspan="2">
{t}By submitting I accept the <a href="articles.php?page=impressum#tos" target="_blank">Opencaching.de Terms of Service</a> and the <a href="articles.php?page=impressum#datalicense" target="_blank">Opencaching.de Datalicense</a>{/t}
</td>
</tr>
<tr><td class="spacer" colspan="2"></td></tr>
<tr>
<td class="header-small" colspan="2">
<!-- <input type="reset" name="reset" value="{reset}" class="formbutton" onclick="flashbutton('reset')" /> -->
<input type="submit" name="submitform" value="{submit}" class="formbutton" onclick="submitbutton('submitform')" />
</td>
</tr>
</table>
</form>
<script type="text/javascript">
<!--
var descMode = {descMode};
OcInitEditor();
_chkFound();
//-->
</script>