Untitled diff

Created Diff never expires
1 removal
134 lines
1 addition
134 lines
<script>
<script>
<!--
<!--
var path = '{PICTURES_DATA_PATH}';
var path = '{PICTURES_DATA_PATH}';
var selected_cat = {SELECTED_CAT};
var selected_cat = {SELECTED_CAT};
function check_form_post(){
function check_form_post(){
if(document.getElementById('title') && document.getElementById('title').value == "") {
if(document.getElementById('title') && document.getElementById('title').value == "") {
alert("{L_ALERT_TITLE}");
alert("{L_ALERT_TITLE}");
return false;
return false;
}
}
if(document.getElementById('contents').value == "") {
if(document.getElementById('contents').value == "") {
alert("{L_ALERT_CONTENTS}");
alert("{L_ALERT_CONTENTS}");
return false;
return false;
}
}
return true;
return true;
}
}
var disabled = {OWN_AUTH_DISABLED};
var disabled = {OWN_AUTH_DISABLED};
function disable_own_auth()
function disable_own_auth()
{
{
if( disabled )
if( disabled )
{
{
disabled = false;
disabled = false;
jQuery("#own_auth_display").show();
jQuery("#own_auth_display").show();
}
}
else
else
{
{
jQuery("#own_auth_display").hide();
jQuery("#own_auth_display").hide();
disabled = true;
disabled = true;
}
}
}
}
-->
-->
</script>
</script>
<script src="{PATH_TO_ROOT}/pages/templates/js/pages.js"></script>
<script src="{PATH_TO_ROOT}/pages/templates/js/pages.js"></script>
# INCLUDE message_helper #
# INCLUDE message_helper #
# START previewing #
# START previewing #
<article>
<article>
<header>
<header>
<h1>{L_PREVIEWING} {previewing.TITLE}</h1>
<h1>{L_PREVIEWING} {previewing.TITLE}</h1>
</header>
</header>
<div class="content">{previewing.PREVIEWING}</div>
<div class="content">{previewing.PREVIEWING}</div>
<footer></footer>
<footer></footer>
</article>
</article>
# END previewing #
# END previewing #
<form action="post.php" method="post" onsubmit="return check_form_post();" class="fieldset-content">
<form action="post.php" method="post" onsubmit="return check_form_post();" class="fieldset-content">
<fieldset>
<fieldset>
<legend>{L_TITLE_POST}</legend>
<legend>{L_TITLE_POST}</legend>
# START create #
# START create #
<div class="form-element">
<div class="form-element">
<label for="title">* {L_TITLE_FIELD}</label>
<label for="title">* {L_TITLE_FIELD}</label>
<div class="form-field"><label><input type="text" id="title" name="title" maxlength="250" class="field-large" value="{PAGE_TITLE}"></label></div>
<div class="form-field"><label><input type="text" id="title" name="title" maxlength="250" class="field-large" value="{PAGE_TITLE}"></label></div>
</div>
</div>
# END create #
# END create #
<div class="form-element-textarea">
<div class="form-element-textarea">
<label for="contents">* {L_CONTENTS}</label>
<label for="contents">* {L_CONTENTS}</label>
{KERNEL_EDITOR}
{KERNEL_EDITOR}
<div class="form-field-textarea">
<div class="form-field-textarea">
<textarea rows="25" id="contents" name="contents">{CONTENTS}</textarea>
<textarea rows="25" id="contents" name="contents">{CONTENTS}</textarea>
</div>
</div>
</div>
</div>
</fieldset>
</fieldset>
<fieldset>
<fieldset>
<legend>{L_PATH}</legend>
<legend>{L_PATH}</legend>
<div class="form-element">
<div class="form-element">
<label for="is_cat">{L_IS_CAT}</label>
<label for="is_cat">{L_IS_CAT}</label>
<div class="form-field"><label><input type="checkbox" name="is_cat" id="is_cat" {CHECK_IS_CAT}></label></div>
<div class="form-field"><label><input type="checkbox" name="is_cat" id="is_cat" {CHECK_IS_CAT}></label></div>
</div>
</div>
<div class="form-element">
<div class="form-element">
<label>{L_CAT}</label>
<label>{L_CAT}</label>
<div class="explorer inline">
<div class="explorer inline">
<div class="cats">
<div class="cats">
<div class="content">
<div class="content">
<input type="hidden" name="id_cat" id="id_cat" value="{ID_CAT}"/>
<input type="hidden" name="id_cat" id="id_cat" value="{ID_CAT}"/>
<ul>
<ul>
<li><a id="class_0" class="{CAT_0}" href="javascript:select_cat(0);"><i class="fa fa-folder"></i>{L_ROOT}</a></li>
<li><a id="class-0" class="{CAT_0}" href="javascript:select_cat(0);"><i class="fa fa-folder"></i>{L_ROOT}</a></li>
{CAT_LIST}
{CAT_LIST}
</ul>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</fieldset>
</fieldset>
<fieldset>
<fieldset>
<legend>{L_PROPERTIES}</legend>
<legend>{L_PROPERTIES}</legend>
<div class="form-element">
<div class="form-element">
<label for="count_hits">{L_COUNT_HITS}</label>
<label for="count_hits">{L_COUNT_HITS}</label>
<div class="form-field"><label><input type="checkbox" id="count_hits" name="count_hits" {COUNT_HITS_CHECKED}></label></div>
<div class="form-field"><label><input type="checkbox" id="count_hits" name="count_hits" {COUNT_HITS_CHECKED}></label></div>
</div>
</div>
<div class="form-element">
<div class="form-element">
<label for="comments_activated">{L_COMMENTS_ACTIVATED}</label>
<label for="comments_activated">{L_COMMENTS_ACTIVATED}</label>
<div class="form-field"><label><input type="checkbox" id="comments_activated" name="comments_activated" {COMMENTS_ACTIVATED_CHECKED}></label></div>
<div class="form-field"><label><input type="checkbox" id="comments_activated" name="comments_activated" {COMMENTS_ACTIVATED_CHECKED}></label></div>
</div>
</div>
<div class="form-element">
<div class="form-element">
<label for="display_print_link">{L_DISPLAY_PRINT_LINK}</label>
<label for="display_print_link">{L_DISPLAY_PRINT_LINK}</label>
<div class="form-field"><label><input type="checkbox" id="display_print_link" name="display_print_link" {DISPLAY_PRINT_LINK_CHECKED}></label></div>
<div class="form-field"><label><input type="checkbox" id="display_print_link" name="display_print_link" {DISPLAY_PRINT_LINK_CHECKED}></label></div>
</div>
</div>
</fieldset>
</fieldset>
<fieldset>
<fieldset>
<legend>{L_AUTH}</legend>
<legend>{L_AUTH}</legend>
<div class="form-element">
<div class="form-element">
<label for="own_auth">{L_OWN_AUTH}</label>
<label for="own_auth">{L_OWN_AUTH}</label>
<div class="form-field"><label><input type="checkbox" name="own_auth" id="own_auth" onclick="disable_own_auth();" {OWN_AUTH_CHECKED}></label></div>
<div class="form-field"><label><input type="checkbox" name="own_auth" id="own_auth" onclick="disable_own_auth();" {OWN_AUTH_CHECKED}></label></div>
</div>
</div>
<span id="own_auth_display" style="{DISPLAY}">
<span id="own_auth_display" style="{DISPLAY}">
<div class="form-element">
<div class="form-element">
<label>{L_READ_PAGE}</label>
<label>{L_READ_PAGE}</label>
<div class="form-field">{SELECT_READ_PAGE}</div>
<div class="form-field">{SELECT_READ_PAGE}</div>
</div>
</div>
<div class="form-element">
<div class="form-element">
<label>{L_EDIT_PAGE}</label>
<label>{L_EDIT_PAGE}</label>
<div class="form-field">{SELECT_EDIT_PAGE}</div>
<div class="form-field">{SELECT_EDIT_PAGE}</div>
</div>
</div>
<div class="form-element">
<div class="form-element">
<label>{L_READ_COM}</label>
<label>{L_READ_COM}</label>
<div class="form-field">{SELECT_READ_COM}</div>
<div class="form-field">{SELECT_READ_COM}</div>
</div>
</div>
</span>
</span>
</fieldset>
</fieldset>
<fieldset class="fieldset-submit">
<fieldset class="fieldset-submit">
<legend>{L_SUBMIT}</legend>
<legend>{L_SUBMIT}</legend>
<input type="hidden" name="id_edit" value="{ID_EDIT}">
<input type="hidden" name="id_edit" value="{ID_EDIT}">
<input type="hidden" name="token" value="{TOKEN}">
<input type="hidden" name="token" value="{TOKEN}">
<button type="submit" class="submit">{L_SUBMIT}</button>
<button type="submit" class="submit">{L_SUBMIT}</button>
<button type="submit" name="preview" value="preview">{L_PREVIEW}</button>
<button type="submit" name="preview" value="preview">{L_PREVIEW}</button>
<button type="reset">{L_RESET}</button>
<button type="reset">{L_RESET}</button>
</fieldset>
</fieldset>
</form>
</form>