blob: 192635ea6154acb8de9a8836e0965f231bdc0b6f (
plain) (
blame)
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
|
<h1>{{lang_vmChooser_title}}</h1>
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="{{^editHelp}}active{{/editHelp}}"><a href="#news" role="tab" data-toggle="tab">{{lang_editNews}}</a></li>
<li role="presentation" class="{{#editHelp}}active{{/editHelp}}" ><a href="#help" role="tab" data-toggle="tab">{{lang_editHelp}}</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane {{^editHelp}}active{{/editHelp}}" id="news" style="padding:5px">
<form action="?do=News&action=save" method="post">
<p>{{lang_newsIntro}}</p>
<div class="form-group">
<label for="news-title-id">{{lang_title}}</label>
<input type="text" name="news-title" id ="news-title-id" class="form-control" placeholder="{{welcome}}" value="{{latestTitle}}">
</div>
<div class="form-group">
<label for="news-content-id">{{lang_content}}</label>
<textarea name="news-content" id ="news-content-id" class="form-control summernote" rows="5" cols="30" placeholder="">{{latestContent}}</textarea>
</div>
<p>{{lang_latestUpdate}}: {{latestDate}}</p>
<button class="btn btn-primary btn-sm sn-btn" name="news-type" value="news" type="submit">{{lang_save}}</button>
<input type="hidden" name="token" value="{{token}}">
</form>
<br/>
<div class="panel panel-default">
<div class="panel-heading">
{{lang_newsOld}}
</div>
<div class="panel-body">
<div class="table-responsive">
<form method="post" action="?do=News&action=delete">
<table class="table table-stripped table-condensed">
<thead>
<tr>
<th>{{lang_date}}</th>
<th>{{lang_title}}</th>
<th>{{lang_content}}</th>
<th></th>
</tr>
</thead>
<tbody>
{{#list}}
<tr {{#active}}class="active"{{/active}}>
<td class="text-left text-nowrap">{{date}}</td>
<td><table class="slx-ellipsis"><tr><td>{{title}}</td></tr></table></td>
<td><table class="slx-ellipsis"><tr><td>{{content}}</td></tr></table></td>
<td class="text-nowrap">
<a class="btn btn-primary btn-xs" href="?do=news&newsid={{newsid}}&action=show"><span class="glyphicon glyphicon-share-alt"></span> {{lang_show}}</a>
<button class="btn btn-danger btn-xs" type="submit" name="newsid" value="{{newsid}}"><span class="glyphicon glyphicon-remove"></span> {{lang_delete}}</button>
</td>
</tr>
{{/list}}
</tbody>
</table>
<input type="hidden" name="token" value="{{token}}">
</form>
</div>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane {{#editHelp}}active{{/editHelp}}" id="help">
<form action="?do=News&action=save" method="post">
<div class="form-group">
<label for="news-content-id">{{lang_content}}</label>
<textarea name="help-content" id="help-content-id" class="form-control summernote" style="min-height:400px" placeholder="">{{latestHelp}}</textarea>
</div>
<button class="btn btn-primary btn-sm sn-btn" name="news-type" value="help" type="submit">{{lang_save}}</button>
<input type="hidden" name="token" value="{{token}}">
</form>
<div class="panel panel-default">
<div class="panel-heading">
{{lang_oldHelp}}
</div>
<div class="panel-body">
<div class="table-responsive">
<form method="post" action="?do=News&action=delete&editHelp=true">
<table class="table table-stripped table-condensed">
<thead>
<tr>
<th>{{lang_date}}</th>
<th>{{lang_content}}</th>
<th></th>
</tr>
</thead>
<tbody>
{{#listHelp}}
<tr {{#active}}class="active"{{/active}}>
<td class="text-left text-nowrap">{{date}}</td>
<td><table class="slx-ellipsis"><tr><td>{{content}}</td></tr></table></td>
<td class="text-nowrap">
<a class="btn btn-primary btn-xs" href="?do=news&newsid={{newsid}}&action=show"><span class="glyphicon glyphicon-share-alt"></span> {{lang_show}}</a>
<button class="btn btn-danger btn-xs" type="submit" name="newsid" value="{{newsid}}"><span class="glyphicon glyphicon-remove"></span> {{lang_delete}}</button>
</td>
</tr>
{{/listHelp}}
</tbody>
</table>
<input type="hidden" name="token" value="{{token}}">
</form>
</div>
</div>
</div>
</div>
</div>
<script type="application/javascript"><!--
document.addEventListener("DOMContentLoaded", function () {
$('.sn-btn').click(function (event) {
var $button = $('.note-btn.btn-codeview');
if ($button.hasClass('active')) {
$button.click();
}
});
}, false);
// --></script>
|