-9 Removals
+18 Additions

Created by:phpboost

1 <script> 1 <script>
2 <!-- 2 <!--
3 var path = '{PICTURES_DATA_PATH}'; 3 var path = '{PICTURES_DATA_PATH}';
4 var selected_cat = {SELECTED_CAT}; 4 var selected_cat = {SELECTED_CAT};
5 function check_form_post(){ 5 function check_form_post(){
6 6
7 if(document.getElementById('title').value == "") { 7 if(document.getElementById('title').value == "") {
8 alert("{L_ALERT_TITLE}"); 8 alert("{L_ALERT_TITLE}");
9 return false; 9 return false;
10 } 10 }
11 if(document.getElementById('contents').value == "") { 11 if(document.getElementById('contents').value == "") {
12 alert("{L_ALERT_CONTENTS}"); 12 alert("{L_ALERT_CONTENTS}");
13 return false; 13 return false;
14 } 14 }
15 return true; 15 return true;
16 } 16 }
17 --> 17 -->
18 </script> 18 </script>
19 19
20 # START preview # 20 # START preview #
21 <article> 21 <section>
22 <header> 22 <header>
23 <h1>{L_PREVIEWING}: {preview.TITLE}</h1> 23 <h1>{L_PREVIEWING}: {preview.TITLE}</h1>
24 </header> 24 </header>
25 <div class="content" id="preview"> 25 <div class="content" id="preview">
26 # START preview.menu # 26 # START preview.menu #
27 <div class="wiki-summary"> 27 <div class="wiki-summary">
28 <div class="wiki-summary-title">{L_TABLE_OF_CONTENTS}</div> 28 <div class="wiki-summary-title">{L_TABLE_OF_CONTENTS}</div>
29 {preview.menu.MENU} 29 {preview.menu.MENU}
30 </div> 30 </div>
31 # END preview.menu # 31 # END preview.menu #
32 <br /><br /> 32 <br /><br />
33 {preview.CONTENTS} 33 {preview.CONTENTS}
34 </div> 34 </div>
35 <footer></footer> 35 <footer></footer>
36 </article> 36 </section>
37 # END preview # 37 # END preview #
38 38
39 # INCLUDE message_helper # 39 # INCLUDE message_helper #
40 40
41 <form action="{TARGET}" method="post" onsubmit="return check_form_post();" class="fieldset-content wiki-edit"> 41 <form action="{TARGET}" method="post" onsubmit="return check_form_post();" class="fieldset-content wiki-edit">
42 <p class="center">{L_REQUIRE}</p> 42 <p class="center">{L_REQUIRE}</p>
43 <fieldset> 43 <fieldset>
44 <legend>{TITLE}</legend> 44 <legend>{TITLE}</legend>
45 # START create # 45 # START create #
46 <div class="form-element"> 46 <div class="form-element">
47 <label for="title">* {L_TITLE_FIELD}</label> 47 <label for="title">* {L_TITLE_FIELD}</label>
48 <div class="form-field"><label><input type="text" id="title" name="title" maxlength="250" class="field-large" value="{ARTICLE_TITLE}"></label></div> 48 <div class="form-field"><label><input type="text" id="title" name="title" maxlength="250" class="field-large" value="{ARTICLE_TITLE}"></label></div>
49 </div> 49 </div>
50 <div class="form-element"> 50 <div class="form-element">
51 <label>{L_CURRENT_CAT}</label> 51 <label>{L_CURRENT_CAT}</label>
52 <div class="form-field"> 52 <div class="form-field">
53 <input type="hidden" name="id_cat" id="id_cat" value="{ID_CAT}"/> 53 <input type="hidden" name="id_cat" id="id_cat" value="{ID_CAT}"/>
54 <div id="selected_cat">{CURRENT_CAT}</div> 54 <div id="selected_cat">{CURRENT_CAT}</div>
55 </div> 55 </div>
56 </div> 56 </div>
57 <div class="form-element"> 57 <div class="form-element">
58 <label>{L_CAT}</label> 58 <label>{L_CAT}</label>
59 <div class="explorer inline"> 59 <div class="explorer inline">
60 <div class="cats"> 60 <div class="cats">
61 <div class="content"> 61 <div class="content">
62 <ul> 62 <ul>
63 <li><a class="{CAT_0}" id="class-0" href="javascript:select_cat(0);"><i class="fa fa-folder"></i>{L_DO_NOT_SELECT_ANY_CAT}</a> 63 <li><a class="{CAT_0}" id="class-0" href="javascript:select_cat(0);"><i class="fa fa-folder" aria-hidden="true"></i>{L_DO_NOT_SELECT_ANY_CAT}</a>
64 <ul> 64 <ul>
65 # START create.list # 65 # START create.list #
66 <li class="sub"> 66 <li class="sub">
67 # IF create.list.C_SUB_CAT # 67 # IF create.list.C_SUB_CAT #
68 <a class="parent" href="javascript:show_wiki_cat_contents({create.list.ID}, 1);" title="${LangLoader::get_message('display', 'common')}"> 68 <a class="parent" href="javascript:show_wiki_cat_contents({create.list.ID}, 1);" title="${LangLoader::get_message('display', 'common')}">
69 <i class="fa fa-plus-square-o" id="img-subfolder-{create.list.ID}"></i> 69 <i class="fa fa-plus-square-o" id="img-subfolder-{create.list.ID}"></i>
70 <i class="fa fa-folder" id ="img-folder-{create.list.ID}"></i> 70 <i class="fa fa-folder" id ="img-folder-{create.list.ID}"></i>
71 </a> 71 </a>
72 <a id="class-{create.list.ID}" href="javascript:select_cat({create.list.ID});">{create.list.TITLE}</a> 72 <a id="class-{create.list.ID}" href="javascript:select_cat({create.list.ID});">{create.list.TITLE}</a>
73 # ELSE # 73 # ELSE #
74 <a id="class-{create.list.ID}" href="javascript:select_cat({create.list.ID});"><i class="fa fa-folder"></i>{create.list.TITLE}</a> 74 <a id="class-{create.list.ID}" href="javascript:select_cat({create.list.ID});"><i class="fa fa-folder" aria-hidden="true"></i>{create.list.TITLE}</a>
75 # ENDIF # 75 # ENDIF #
76 <span id="cat-{create.list.ID}"></span> 76 <span id="cat-{create.list.ID}"></span>
77 </li> 77 </li>
78 # END create.list # 78 # END create.list #
79 {CAT_LIST} 79 {CAT_LIST}
80 </ul> 80 </ul>
81 </li> 81 </li>
82 </ul> 82 </ul>
83 </div> 83 </div>
84 </div> 84 </div>
85 </div> 85 </div>
86 </div> 86 </div>
87 # END create # 87 # END create #
88 <div class="form-element-textarea"> 88 <div class="form-element-textarea">
89 <label for="contents">* {L_CONTENTS}</label> 89 <label for="contents">* {L_CONTENTS}</label>
90 # INCLUDE post_js_tools # 90 # INCLUDE post_js_tools #
91 {KERNEL_EDITOR} 91 {KERNEL_EDITOR}
92 <div class="form-field-textarea"> 92 <div class="form-field-textarea">
93 <textarea rows="25" id="contents" name="contents">{CONTENTS}</textarea> 93 <textarea rows="25" id="contents" name="contents">{CONTENTS}</textarea>
94 </div> 94 </div>
95 </div> 95 </div>
96
97 # IF C_EDIT #
98 <br />
99 <div class="form-element-textarea">
100 <label>{L_CHANGE_REASON_LABEL}</label>
101 <textarea maxlength="100" rows="2" id="change_reason" name="change_reason">{CHANGE_REASON}</textarea>
102 </div>
103 # ENDIF #
104
96 # IF C_VERIF_CODE # 105 # IF C_VERIF_CODE #
97 <div class="form-element"> 106 <div class="form-element">
98 <label for="captcha">* ${LangLoader::get_message('form.captcha', 'common')}</label> 107 <label for="captcha">* ${LangLoader::get_message('form.captcha', 'common')}</label>
99 <div class="form-field"> 108 <div class="form-field">
100 {VERIF_CODE} 109 {VERIF_CODE}
101 </div> 110 </div>
102 </div> 111 </div>
103 <script> 112 <script>
104 <!-- 113 <!--
105 jQuery(document).ready(function() { 114 jQuery(document).ready(function() {
106 jQuery('button[name="submit"]').click(function() 115 jQuery('button[name="submit"]').on('click', function()
107 { 116 {
108 if(!jQuery('#captcha').val() && !jQuery('#g-recaptcha-response').val()) { 117 if(!jQuery('#captcha').val() && !jQuery('#g-recaptcha-response').val()) {
109 alert(${escapejs(LangLoader::get_message('captcha.validation_error', 'status-messages-common'))}); 118 alert(${escapejs(LangLoader::get_message('captcha.validation_error', 'status-messages-common'))});
110 return false; 119 return false;
111 } 120 }
112 }); 121 });
113 }); 122 });
114 --> 123 -->
115 </script> 124 </script>
116 # ENDIF # 125 # ENDIF #
117 126
118 </fieldset> 127 </fieldset>
119 <fieldset class="fieldset-submit"> 128 <fieldset class="fieldset-submit">
120 <legend>{L_SUBMIT}</legend> 129 <legend>{L_SUBMIT}</legend>
121 <input type="hidden" name="is_cat" value="{IS_CAT}"> 130 <input type="hidden" name="is_cat" value="{IS_CAT}">
122 <input type="hidden" name="id_edit" value="{ID_EDIT}"> 131 <input type="hidden" name="id_edit" value="{ID_EDIT}">
123 <input type="hidden" name="token" value="{TOKEN}"> 132 <input type="hidden" name="token" value="{TOKEN}">
124 <button type="submit" name="submit" class="submit">{L_SUBMIT}</button> 133 <button type="submit" name="submit" class="submit">{L_SUBMIT}</button>
125 <button type="submit" name="preview" value="preview">{L_PREVIEW}</button> 134 <button type="submit" name="preview" value="preview">{L_PREVIEW}</button>
126 <button type="reset">{L_RESET}</button> 135 <button type="reset">{L_RESET}</button>
127 </fieldset> 136 </fieldset>
128 </form> 137 </form>
Editor
Original Text
Changed Text
Recommended videos