-9 Removals
+9 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 if(document.getElementById('title') && document.getElementById('title').value == "") { 6 if(document.getElementById('title') && document.getElementById('title').value == "") {
7 alert("{L_ALERT_TITLE}"); 7 alert("{L_ALERT_TITLE}");
8 return false; 8 return false;
9 } 9 }
10 if(document.getElementById('contents').value == "") { 10 if(document.getElementById('contents').value == "") {
11 alert("{L_ALERT_CONTENTS}"); 11 alert("{L_ALERT_CONTENTS}");
12 return false; 12 return false;
13 } 13 }
14 return true; 14 return true;
15 } 15 }
16 var disabled = {OWN_AUTH_DISABLED}; 16 var disabled = {OWN_AUTH_DISABLED};
17 function disable_own_auth() 17 function disable_own_auth()
18 { 18 {
19 if( disabled ) 19 if( disabled )
20 { 20 {
21 disabled = false; 21 disabled = false;
22 jQuery("#own_auth_display").show(); 22 jQuery("#own_auth_display").show();
23 } 23 }
24 else 24 else
25 { 25 {
26 jQuery("#own_auth_display").hide(); 26 jQuery("#own_auth_display").hide();
27 disabled = true; 27 disabled = true;
28 } 28 }
29 } 29 }
30 --> 30 -->
31 </script> 31 </script>
32 32
33 <script src="{PATH_TO_ROOT}/pages/templates/js/pages.js"></script> 33 <script src="{PATH_TO_ROOT}/pages/templates/js/pages.js"></script>
34 34
35 # INCLUDE message_helper # 35 # INCLUDE message_helper #
36 36
37 # START previewing # 37 # START previewing #
38 <article> 38 <article>
39 <header> 39 <header>
40 <h1>{L_PREVIEWING} {previewing.TITLE}</h1> 40 <h1>{L_PREVIEWING} {previewing.TITLE}</h1>
41 </header> 41 </header>
42 <div class="content">{previewing.PREVIEWING}</div> 42 <div class="content">{previewing.PREVIEWING}</div>
43 <footer></footer> 43 <footer></footer>
44 </article> 44 </article>
45 # END previewing # 45 # END previewing #
46 46
47 <form action="post.php" method="post" onsubmit="return check_form_post();" class="fieldset-content"> 47 <form action="post.php" method="post" onsubmit="return check_form_post();" class="fieldset-content">
48 <fieldset> 48 <fieldset>
49 <legend>{L_TITLE_POST}</legend> 49 <legend>{L_TITLE_POST}</legend>
50 # START create # 50 # START create #
51 <div class="form-element"> 51 <div class="form-element">
52 <label for="title">* {L_TITLE_FIELD}</label> 52 <label for="title">* {L_TITLE_FIELD}</label>
53 <div class="form-field"><label><input type="text" id="title" name="title" maxlength="250" class="field-large" value="{PAGE_TITLE}"></label></div> 53 <div class="form-field"><label><input type="text" id="title" name="title" maxlength="250" class="field-large" value="{PAGE_TITLE}"></label></div>
54 </div> 54 </div>
55 # END create # 55 # END create #
56 <div class="form-element-textarea"> 56 <div class="form-element-textarea">
57 <label for="contents">* {L_CONTENTS}</label> 57 <label for="contents">* {L_CONTENTS}</label>
58 {KERNEL_EDITOR} 58 {KERNEL_EDITOR}
59 <div class="form-field-textarea"> 59 <div class="form-field-textarea">
60 <textarea rows="25" id="contents" name="contents">{CONTENTS}</textarea> 60 <textarea rows="25" id="contents" name="contents">{CONTENTS}</textarea>
61 </div> 61 </div>
62 </div> 62 </div>
63 </fieldset> 63 </fieldset>
64 64
65 <fieldset> 65 <fieldset>
66 <legend>{L_PATH}</legend> 66 <legend>{L_PATH}</legend>
67 <div class="form-element"> 67 <div class="form-element">
68 <label for="is_cat">{L_IS_CAT}</label> 68 <label for="is_cat">{L_IS_CAT}</label>
69 <div class="form-field"><label><input type="checkbox" name="is_cat" id="is_cat" {CHECK_IS_CAT}></label></div> 69 <div class="form-field"><label><input type="checkbox" name="is_cat" id="is_cat" {CHECK_IS_CAT}></label></div>
70 </div> 70 </div>
71 <div class="form-element"> 71 <div class="form-element">
72 <label>{L_CAT}</label> 72 <label>{L_CAT}</label>
73 <div class="explorer inline"> 73 <div class="explorer inline">
74 <div class="cats"> 74 <div class="cats">
75 <div class="content"> 75 <div class="content">
76 <input type="hidden" name="id_cat" id="id_cat" value="{ID_CAT}"/> 76 <input type="hidden" name="id_cat" id="id_cat" value="{ID_CAT}"/>
77 <ul> 77 <ul>
78 <li><a id="class-0" class="{CAT_0}" href="javascript:select_cat(0);"><i class="fa fa-folder"></i>{L_ROOT}</a></li> 78 <li><a id="class-0" class="{CAT_0}" href="javascript:select_cat(0);"><i class="fa fa-folder" aria-hidden="true"></i>{L_ROOT}</a></li>
79 {CAT_LIST} 79 {CAT_LIST}
80 </ul> 80 </ul>
81 </div> 81 </div>
82 </div> 82 </div>
83 </div> 83 </div>
84 </div> 84 </div>
85 </fieldset> 85 </fieldset>
86 86
87 <fieldset> 87 <fieldset>
88 <legend>{L_PROPERTIES}</legend> 88 <legend>{L_PROPERTIES}</legend>
89 <div class="form-element"> 89 <div class="form-element">
90 <label for="count_hits">{L_COUNT_HITS}</label> 90 <label for="count_hits">{L_COUNT_HITS}</label>
91 <div class="form-field"><label><input type="checkbox" id="count_hits" name="count_hits" {COUNT_HITS_CHECKED}></label></div> 91 <div class="form-field"><label><input type="checkbox" id="count_hits" name="count_hits" {COUNT_HITS_CHECKED}></label></div>
92 </div> 92 </div>
93 <div class="form-element"> 93 <div class="form-element">
94 <label for="comments_activated">{L_COMMENTS_ACTIVATED}</label> 94 <label for="comments_activated">{L_COMMENTS_ACTIVATED}</label>
95 <div class="form-field"><label><input type="checkbox" id="comments_activated" name="comments_activated" {COMMENTS_ACTIVATED_CHECKED}></label></div> 95 <div class="form-field"><label><input type="checkbox" id="comments_activated" name="comments_activated" {COMMENTS_ACTIVATED_CHECKED}></label></div>
96 </div> 96 </div>
97 <div class="form-element"> 97 <div class="form-element">
98 <label for="display_print_link">{L_DISPLAY_PRINT_LINK}</label> 98 <label for="display_print_link">{L_DISPLAY_PRINT_LINK}</label>
99 <div class="form-field"><label><input type="checkbox" id="display_print_link" name="display_print_link" {DISPLAY_PRINT_LINK_CHECKED}></label></div> 99 <div class="form-field"><label><input type="checkbox" id="display_print_link" name="display_print_link" {DISPLAY_PRINT_LINK_CHECKED}></label></div>
100 </div> 100 </div>
101 </fieldset> 101 </fieldset>
102 102
103 <fieldset> 103 <fieldset>
104 <legend>{L_AUTH}</legend> 104 <legend>{L_AUTH}</legend>
105 <div class="form-element"> 105 <div class="form-element">
106 <label for="own_auth">{L_OWN_AUTH}</label> 106 <label for="own_auth">{L_OWN_AUTH}</label>
107 <div class="form-field"><label><input type="checkbox" name="own_auth" id="own_auth" onclick="disable_own_auth();" {OWN_AUTH_CHECKED}></label></div> 107 <div class="form-field"><label><input type="checkbox" name="own_auth" id="own_auth" onclick="disable_own_auth();" {OWN_AUTH_CHECKED}></label></div>
108 </div> 108 </div>
109 <span id="own_auth_display" style="{DISPLAY}"> 109 <span id="own_auth_display" style="{DISPLAY}">
110 <div class="form-element"> 110 <div class="form-element">
111 <label>{L_READ_PAGE}</label> 111 <label>{L_READ_PAGE}</label>
112 <div class="form-field">{SELECT_READ_PAGE}</div> 112 <div class="form-field">{SELECT_READ_PAGE}</div>
113 </div> 113 </div>
114 <div class="form-element"> 114 <div class="form-element">
115 <label>{L_EDIT_PAGE}</label> 115 <label>{L_EDIT_PAGE}</label>
116 <div class="form-field">{SELECT_EDIT_PAGE}</div> 116 <div class="form-field">{SELECT_EDIT_PAGE}</div>
117 </div> 117 </div>
118 <div class="form-element"> 118 <div class="form-element">
119 <label>{L_READ_COM}</label> 119 <label>{L_READ_COM}</label>
120 <div class="form-field">{SELECT_READ_COM}</div> 120 <div class="form-field">{SELECT_READ_COM}</div>
121 </div> 121 </div>
122 </span> 122 </span>
123 </fieldset> 123 </fieldset>
124 124
125 <fieldset class="fieldset-submit"> 125 <fieldset class="fieldset-submit">
126 <legend>{L_SUBMIT}</legend> 126 <legend>{L_SUBMIT}</legend>
127 <input type="hidden" name="id_edit" value="{ID_EDIT}"> 127 <input type="hidden" name="id_edit" value="{ID_EDIT}">
128 <input type="hidden" name="token" value="{TOKEN}"> 128 <input type="hidden" name="token" value="{TOKEN}">
129 <button type="submit" class="submit">{L_SUBMIT}</button> 129 <button type="submit" class="submit">{L_SUBMIT}</button>
130 <button type="submit" name="preview" value="preview">{L_PREVIEW}</button> 130 <button type="submit" name="preview" value="preview">{L_PREVIEW}</button>
131 <button type="reset">{L_RESET}</button> 131 <button type="reset">{L_RESET}</button>
132 </fieldset> 132 </fieldset>
133 </form> 133 </form>
Editor
Original Text
Changed Text
Recommended videos