Untitled diff

Created Diff never expires
1 removal
149 lines
1 addition
149 lines
# IF C_ADD_MEDIA #
# IF C_ADD_MEDIA #
<script>
<script>
<!--
<!--
function check_form()
function check_form()
{
{
if (document.getElementById('name').value == "")
if (document.getElementById('name').value == "")
{
{
alert ("{L_REQUIRE_NAME}");
alert ("{L_REQUIRE_NAME}");
return false;
return false;
}
}
if (document.getElementById('u_media').value == "" || document.getElementById('u_media').value == "http://")
if (document.getElementById('u_media').value == "" || document.getElementById('u_media').value == "http://")
{
{
alert ("{L_REQUIRE_URL}");
alert ("{L_REQUIRE_URL}");
return false;
return false;
}
}
return true;
return true;
}
}
function in_array(needle, haystack)
function in_array(needle, haystack)
{
{
for (var i=0; i < haystack.length; i++)
for (var i=0; i < haystack.length; i++)
if (haystack[i] == needle)
if (haystack[i] == needle)
return true;
return true;
return false;
return false;
}
}
function hide_width_height()
function hide_width_height()
{
{
var id_music = new Array({JS_ID_MUSIC});
var id_music = new Array({JS_ID_MUSIC});
if (id_music.length > 0)
if (id_music.length > 0)
if (in_array(jQuery('#idcat').val(), id_music))
if (in_array(jQuery('#idcat').val(), id_music))
{
{
jQuery('#width_dl').hide();
jQuery('#width_dl').hide();
jQuery('#height_dl').hide();
jQuery('#height_dl').hide();
}
}
else
else
{
{
jQuery('#width_dl').show();
jQuery('#width_dl').show();
jQuery('#height_dl').show();
jQuery('#height_dl').show();
}
}
}
}
jQuery(document).ready(function() {
jQuery(document).ready(function() {
# IF C_MUSIC #
# IF C_MUSIC #
jQuery('#width_dl').hide();
jQuery('#width_dl').hide();
jQuery('#height_dl').hide();
jQuery('#height_dl').hide();
# ENDIF #
# ENDIF #
jQuery('#idcat').change(function() {
jQuery('#idcat').change(function() {
hide_width_height();
hide_width_height();
});
});
});
});
-->
-->
</script>
</script>
<section id="module-media-action">
<section id="module-media-action">
<header>
<header>
<h1>{L_PAGE_TITLE}</h1>
<h1>{L_PAGE_TITLE}</h1>
</header>
</header>
<div class="content">
<div class="content">
<form action="media_action.php" method="post" onsubmit="return check_form();" class="fieldset-content">
<form action="media_action.php" method="post" onsubmit="return check_form();" class="fieldset-content">
<p class="center">{L_REQUIRE}</p>
<p class="center">{L_REQUIRE}</p>
<fieldset>
<fieldset>
<legend>{L_PAGE_TITLE}</legend>
<legend>{L_PAGE_TITLE}</legend>
<div class="form-element">
<div class="form-element">
<label for="name">* {L_TITLE}</label>
<label for="name">* {L_TITLE}</label>
<div class="form-field"><input type="text" maxlength="100" class="field-large" id="name" name="name" value="{NAME}" /></div>
<div class="form-field"><input type="text" maxlength="100" class="field-large" id="name" name="name" value="{NAME}" /></div>
</div>
</div>
# IF C_CATEGORIES #
# IF C_CATEGORIES #
<div class="form-element">
<div class="form-element">
<label for="category">${LangLoader::get_message('form.category', 'common')}</label>
<label for="category">${LangLoader::get_message('form.category', 'common')}</label>
<div class="form-field">
<div class="form-field">
<select name="idcat" id="idcat">
<select name="idcat" id="idcat">
{CATEGORIES}
{CATEGORIES}
</select>
</select>
</div>
</div>
</div>
</div>
# ENDIF #
# ENDIF #
<div class="form-element" id="width_dl">
<div class="form-element" id="width_dl">
<label for="width">{L_WIDTH}</label>
<label for="width">{L_WIDTH}</label>
<div class="form-field"><input type="number" min="10" max="5000" maxlength="4" id="width" name="width" value="{WIDTH}" /></div>
<div class="form-field"><input type="number" min="10" max="5000" maxlength="4" id="width" name="width" value="{WIDTH}" /></div>
</div>
</div>
<div class="form-element" id="height_dl">
<div class="form-element" id="height_dl">
<label for="height">{L_HEIGHT}</label>
<label for="height">{L_HEIGHT}</label>
<div class="form-field"><input type="number" min="10" max="5000" id="height" name="height" value="{HEIGHT}" /></div>
<div class="form-field"><input type="number" min="10" max="5000" id="height" name="height" value="{HEIGHT}" /></div>
</div>
</div>
<div class="form-element">
<div class="form-element">
<label for="u_media">* {L_U_MEDIA}</label>
<label for="u_media">* {L_U_MEDIA}</label>
<div class="form-field">
<div class="form-field">
<input type="text" maxlength="255" class="field-large" id="u_media" name="u_media" value="{U_MEDIA}" />
<input type="text" maxlength="255" class="field-large" id="u_media" name="u_media" value="{U_MEDIA}" />
# IF C_AUTH_UPLOAD #
# IF C_AUTH_UPLOAD #
<a title="${LangLoader::get_message('files_management', 'main')}" href="" class="fa fa-cloud-upload fa-2x" onclick="window.open('{PATH_TO_ROOT}/user/upload.php?popup=1&amp;fd=u_media&amp;parse=true&amp;no_path=true', '', 'height=500,width=720,resizable=yes,scrollbars=yes');return false;"></a>
<a title="${LangLoader::get_message('files_management', 'main')}" href="" class="fa fa-cloud-upload fa-2x" onclick="window.open('{PATH_TO_ROOT}/user/upload.php?popup=1&amp;fd=u_media&amp;parse=true&amp;no_path=true', '', 'height=500,width=720,resizable=yes,scrollbars=yes');return false;"></a>
# ENDIF #
# ENDIF #
</div>
</div>
</div>
</div>
<div class="form-element">
<div class="form-element">
<label for="poster">{L_POSTER}</label>
<label for="poster">{L_POSTER}</label>
<div class="form-field# IF C_AUTH_UPLOAD # form-field-upload-file# ENDIF #">
<div class="form-field# IF C_AUTH_UPLOAD # form-field-upload-file# ENDIF #">
<input type="text" maxlength="255" class="field-large" id="poster" name="poster" value="{POSTER}" />
<input type="text" maxlength="255" class="field-large" id="poster" name="poster" value="{POSTER}" />
# IF C_AUTH_UPLOAD #
# IF C_AUTH_UPLOAD #
<a title="${LangLoader::get_message('files_management', 'main')}" href="" class="fa fa-cloud-upload fa-2x" onclick="window.open('{PATH_TO_ROOT}/user/upload.php?popup=1&amp;fd=poster&amp;parse=true&amp;no_path=true', '', 'height=500,width=720,resizable=yes,scrollbars=yes');return false;"></a>
<a title="${LangLoader::get_message('files_management', 'main')}" href="" class="fa fa-cloud-upload fa-2x" onclick="window.open('{PATH_TO_ROOT}/user/upload.php?popup=1&amp;fd=poster&amp;parse=true&amp;no_path=true', '', 'height=500,width=720,resizable=yes,scrollbars=yes');return false;"></a>
# ENDIF #
# ENDIF #
</div>
</div>
</div>
</div>
<div class="form-element-textarea">
<div class="form-element-textarea">
<label for="contents" id="preview_content">{L_CONTENTS}</label>
<label for="contents" id="preview_content">{L_CONTENTS}</label>
{KERNEL_EDITOR}
{KERNEL_EDITOR}
<div class="form-field-textarea">
<div class="form-field-textarea">
<textarea rows="10" cols="90" id="contents" name="contents">{DESCRIPTION}</textarea>
<textarea rows="10" cols="90" id="contents" name="contents">{DESCRIPTION}</textarea>
</div>
</div>
</div>
</div>
# IF C_APROB #
# IF C_APROB #
<div class="form-element">
<div class="form-element">
<label>{L_APPROVED}</label>
<label>{L_APPROVED}</label>
<div class="form-field">
<div class="form-field">
<input type="checkbox" name="approved" id="approved"{APPROVED} />
<input type="checkbox" name="approved" id="approved"{APPROVED} />
</div>
</div>
</div>
</div>
# ENDIF #
# ENDIF #
</fieldset>
</fieldset>
# IF C_CONTRIBUTION #
# IF C_CONTRIBUTION #
<fieldset>
<fieldset>
<legend>{L_CONTRIBUTION_LEGEND}</legend>
<legend>{L_CONTRIBUTION_LEGEND}</legend>
<div class="notice">{L_NOTICE_CONTRIBUTION}</div>
<div class="message-helper notice">{L_NOTICE_CONTRIBUTION}</div>
<div class="form-element-textarea">
<div class="form-element-textarea">
<label>{L_CONTRIBUTION_COUNTERPART} <p class="field-description">{L_CONTRIBUTION_COUNTERPART_EXPLAIN}</p></label>
<label>{L_CONTRIBUTION_COUNTERPART} <p class="field-description">{L_CONTRIBUTION_COUNTERPART_EXPLAIN}</p></label>
{CONTRIBUTION_COUNTERPART_EDITOR}
{CONTRIBUTION_COUNTERPART_EDITOR}
<div class="form-field-textarea">
<div class="form-field-textarea">
<textarea rows="20" cols="40" id="counterpart" name="counterpart">{CONTRIBUTION_COUNTERPART}</textarea>
<textarea rows="20" cols="40" id="counterpart" name="counterpart">{CONTRIBUTION_COUNTERPART}</textarea>
</div>
</div>
</div>
</div>
</fieldset>
</fieldset>
# ENDIF #
# ENDIF #
<fieldset class="fieldset-submit">
<fieldset class="fieldset-submit">
<legend>{L_SUBMIT}</legend>
<legend>{L_SUBMIT}</legend>
<input type="hidden" name="idedit" value="{IDEDIT}" />
<input type="hidden" name="idedit" value="{IDEDIT}" />
<input type="hidden" name="contrib" value="{C_CONTRIBUTION}" />
<input type="hidden" name="contrib" value="{C_CONTRIBUTION}" />
<input type="hidden" name="token" value="{TOKEN}" />
<input type="hidden" name="token" value="{TOKEN}" />
<button type="submit" name="submit" value="true" class="submit">{L_SUBMIT}</button>
<button type="submit" name="submit" value="true" class="submit">{L_SUBMIT}</button>
<button type="button" onclick="XMLHttpRequest_preview(); return false;">{L_PREVIEW}</button>
<button type="button" onclick="XMLHttpRequest_preview(); return false;">{L_PREVIEW}</button>
<button type="reset" value="true">{L_RESET}</button>
<button type="reset" value="true">{L_RESET}</button>
</fieldset>
</fieldset>
</form>
</form>
</div>
</div>
<footer></footer>
<footer></footer>
</section>
</section>
# ENDIF #
# ENDIF #