Diff
checker
Texto
Texto
Imágenes
Documentos
Excel
Carpetas
Legal
Enterprise
Aplicación de escritorio
Precios
Iniciar sesión
Descargar Diffchecker Desktop
Comparar texto
Encuentra la diferencia entre dos archivos de texto
Herramientas
Historial
Editor live
Ocultar sin cambios
Sin ajuste de línea
Vista
Dividido
Unificado
Nivel de detalle
Inteligente
Palabra
Letra
Resaltado de sintaxis
Elegir sintaxis
Ignorar
Transformar texto
Ir al primer cambio
Editar entrada
Diffchecker Desktop
La forma más segura de usar Diffchecker. ¡Obtén la app de Diffchecker Desktop: tus diffs nunca salen de tu computadora!
Obtener Desktop
Untitled diff
Creado
hace 7 años
El diff nunca expira
Borrar
Exportar
Compartir
Explicar
18 eliminaciones
Líneas
Total
Eliminado
Caracteres
Total
Eliminado
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
194 líneas
Copiar todo
22 adiciones
Líneas
Total
Añadido
Caracteres
Total
Añadido
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
195 líneas
Copiar todo
# INCLUDE forum_top #
# INCLUDE forum_top #
Copiar
Copiado
Copiar
Copiado
<script>
<script>
<!--
<!--
function check_form_post(){
function check_form_post(){
if(document.getElementById('contents').value == "") {
if(document.getElementById('contents').value == "") {
alert("{L_REQUIRE_TEXT}");
alert("{L_REQUIRE_TEXT}");
return false;
return false;
}
}
if(document.getElementById('title').value == "") {
if(document.getElementById('title').value == "") {
alert("{L_REQUIRE_TITLE}");
alert("{L_REQUIRE_TITLE}");
return false;
return false;
}
}
if(!poll_hidded && document.getElementById('question').value == "") {
if(!poll_hidded && document.getElementById('question').value == "") {
alert("{L_REQUIRE_TITLE_POLL}");
alert("{L_REQUIRE_TITLE_POLL}");
return false;
return false;
}
}
return true;
return true;
}
}
var poll_hidded = true;
var poll_hidded = true;
function hide_poll(divID)
function hide_poll(divID)
{
{
if( document.getElementById(divID) )
if( document.getElementById(divID) )
{
{
document.getElementById(divID).style.display = 'block';
document.getElementById(divID).style.display = 'block';
if( document.getElementById('hidepoll_link') )
if( document.getElementById('hidepoll_link') )
{
{
document.getElementById('hidepoll_link').style.display = 'none';
document.getElementById('hidepoll_link').style.display = 'none';
poll_hidded = false;
poll_hidded = false;
}
}
}
}
}
}
function add_poll_field(nbr_field)
function add_poll_field(nbr_field)
{
{
if ( typeof this.max_field_p == 'undefined' )
if ( typeof this.max_field_p == 'undefined' )
this.max_field_p = (nbr_field == 0) ? 5 : nbr_field;
this.max_field_p = (nbr_field == 0) ? 5 : nbr_field;
else
else
this.max_field_p++;
this.max_field_p++;
Copiar
Copiado
Copiar
Copiado
if( this.max_field_p < 20 )
if( this.max_field_p < 20 )
{
{
if( this.max_field_p == 19 )
if( this.max_field_p == 19 )
{
{
if( document.getElementById('add_poll_field_link') )
if( document.getElementById('add_poll_field_link') )
document.getElementById('add_poll_field_link').innerHTML = '';
document.getElementById('add_poll_field_link').innerHTML = '';
}
}
Copiar
Copiado
Copiar
Copiado
document.getElementById('add_poll_field' + this.max_field_p).innerHTML += '<label><input type="text" name="a' + this.max_field_p + '" value="" /></label><
br /><
span
id="add_poll_field' + (this.max_field_p + 1) + '"></span>';
document.getElementById('add_poll_field' + this.max_field_p).innerHTML += '<label><input type="text" name="a' + this.max_field_p + '" value="" /></label><
span
class="field-description"
id="add_poll_field' + (this.max_field_p + 1) + '"></span>';
}
}
}
}
function XMLHttpRequest_change_statut()
function XMLHttpRequest_change_statut()
{
{
var idtopic = {IDTOPIC};
var idtopic = {IDTOPIC};
if( document.getElementById('forum_change_img') )
if( document.getElementById('forum_change_img') )
document.getElementById('forum_change_img').innerHTML = '<i class="fa fa-spinner fa-spin"></i>';
document.getElementById('forum_change_img').innerHTML = '<i class="fa fa-spinner fa-spin"></i>';
Copiar
Copiado
Copiar
Copiado
var xhr_object = xmlhttprequest_init('{PATH_TO_ROOT}/forum/xmlhttprequest.php?token={TOKEN}&msg_d=' + idtopic);
var xhr_object = xmlhttprequest_init('{PATH_TO_ROOT}/forum/xmlhttprequest.php?token={TOKEN}&msg_d=' + idtopic);
xhr_object.onreadystatechange = function()
xhr_object.onreadystatechange = function()
{
{
if( xhr_object.readyState == 4 && xhr_object.status == 200 )
if( xhr_object.readyState == 4 && xhr_object.status == 200 )
{
{
if( document.getElementById('forum_change_img') )
if( document.getElementById('forum_change_img') )
document.getElementById('forum_change_img').innerHTML = xhr_object.responseText == '1' ? '<i class="fa fa-msg-not-display"></i>' : '<i class="fa fa-msg-display"></i>';
document.getElementById('forum_change_img').innerHTML = xhr_object.responseText == '1' ? '<i class="fa fa-msg-not-display"></i>' : '<i class="fa fa-msg-display"></i>';
if( document.getElementById('forum_change_msg') )
if( document.getElementById('forum_change_msg') )
document.getElementById('forum_change_msg').innerHTML = xhr_object.responseText == '1' ? "{L_EXPLAIN_DISPLAY_MSG_BIS}" : "{L_EXPLAIN_DISPLAY_MSG}";
document.getElementById('forum_change_msg').innerHTML = xhr_object.responseText == '1' ? "{L_EXPLAIN_DISPLAY_MSG_BIS}" : "{L_EXPLAIN_DISPLAY_MSG}";
}
}
}
}
xmlhttprequest_sender(xhr_object, null);
xmlhttprequest_sender(xhr_object, null);
}
}
-->
-->
</script>
</script>
Copiar
Copiado
Copiar
Copiado
<article itemscope="itemscope" itemtype="http://schema.org/Creativework" id="article-forum-post"
>
<article itemscope="itemscope" itemtype="http://schema.org/Creativework" id="article-forum-post"
class="forum-contents"
>
<header>
<header>
<h2>
<h2>
Copiar
Copiado
Copiar
Copiado
•
{U_FORUM_CAT}
»
{U_TITLE_T}
<span
><em>{DESC}</em></span>
<a href="
{U_FORUM_CAT}
">{FORUM_CAT}</a> <i class="fa fa-angle-double-right" aria-hidden="true"></i> <a href="
{U_TITLE_T}
">{L_NEW_SUBJECT}</a>
<span
class="small"
><em>{DESC}</em></span>
</h2>
</h2>
</header>
</header>
<div class="content">
<div class="content">
<form action="{U_ACTION}" method="post" onsubmit="return check_form_post();">
<form action="{U_ACTION}" method="post" onsubmit="return check_form_post();">
# INCLUDE message_helper #
# INCLUDE message_helper #
Copiar
Copiado
Copiar
Copiado
<div class="fieldset-content">
<div class="fieldset-content">
<p class="center">{L_REQUIRE}</p>
<p class="center">{L_REQUIRE}</p>
<fieldset>
<fieldset>
<legend>{L_ACTION}</legend>
<legend>{L_ACTION}</legend>
# IF C_FORUM_CUT_CAT #
# IF C_FORUM_CUT_CAT #
<div class="form-element">
<div class="form-element">
<label for="to">* {L_CAT}</label>
<label for="to">* {L_CAT}</label>
<div class="form-field"><label>
<div class="form-field"><label>
<select id="to" name="to">
<select id="to" name="to">
{CATEGORIES}
{CATEGORIES}
</select>
</select>
</label></div>
</label></div>
</div>
</div>
# ENDIF #
# ENDIF #
<div class="form-element">
<div class="form-element">
<label for="title">* {L_TITLE}</label>
<label for="title">* {L_TITLE}</label>
<div class="form-field"><label><input type="text" class="field-large" maxlength="100" id="title" name="title" value="{TITLE}"></label></div>
<div class="form-field"><label><input type="text" class="field-large" maxlength="100" id="title" name="title" value="{TITLE}"></label></div>
</div>
</div>
<div class="form-element">
<div class="form-element">
<label for="desc">{L_DESC}</label>
<label for="desc">{L_DESC}</label>
<div class="form-field"><label><input type="text" class="field-large" maxlength="75" id="desc" name="desc" value="{DESC}"></label></div>
<div class="form-field"><label><input type="text" class="field-large" maxlength="75" id="desc" name="desc" value="{DESC}"></label></div>
</div>
</div>
<div class="form-element-textarea">
<div class="form-element-textarea">
<label for="contents">* {L_MESSAGE}</label>
<label for="contents">* {L_MESSAGE}</label>
{KERNEL_EDITOR}
{KERNEL_EDITOR}
<div class="form-field-textarea">
<div class="form-field-textarea">
<textarea rows="25" cols="47" id="contents" name="contents">{CONTENTS}</textarea>
<textarea rows="25" cols="47" id="contents" name="contents">{CONTENTS}</textarea>
</div>
</div>
</div>
</div>
# IF C_FORUM_POST_TYPE #
# IF C_FORUM_POST_TYPE #
<div class="form-element">
<div class="form-element">
<label for="type">{L_TYPE}</label>
<label for="type">{L_TYPE}</label>
<div class="form-field">
<div class="form-field">
<label><input type="radio" name="type" id="type" value="0" {CHECKED_NORMAL}> {L_DEFAULT}</label>
<label><input type="radio" name="type" id="type" value="0" {CHECKED_NORMAL}> {L_DEFAULT}</label>
<label><input type="radio" name="type" value="1" {CHECKED_POSTIT}> {L_POST_IT}</label>
<label><input type="radio" name="type" value="1" {CHECKED_POSTIT}> {L_POST_IT}</label>
<label><input type="radio" name="type" value="2" {CHECKED_ANNONCE}> {L_ANOUNCE}</label>
<label><input type="radio" name="type" value="2" {CHECKED_ANNONCE}> {L_ANOUNCE}</label>
</div>
</div>
</div>
</div>
# ENDIF #
# ENDIF #
</fieldset>
</fieldset>
Copiar
Copiado
Copiar
Copiado
<fieldset>
<fieldset>
<legend>{L_POLL}</legend>
<legend>{L_POLL}</legend>
<p id="hidepoll_link" class="center"><a title="{L_OPEN_MENU_POLL}" href="" onclick="hide_poll('hidepoll');return false;">{L_OPEN_MENU_POLL}</a></p>
<p id="hidepoll_link" class="center"><a title="{L_OPEN_MENU_POLL}" href="" onclick="hide_poll('hidepoll');return false;">{L_OPEN_MENU_POLL}</a></p>
<div id="hidepoll">
<div id="hidepoll">
<div class="form-element">
<div class="form-element">
<label for="question">* {L_QUESTION}</label>
<label for="question">* {L_QUESTION}</label>
<div class="form-field"><label><input type="text" name="question" id="question" value="{POLL_QUESTION}"></label></div>
<div class="form-field"><label><input type="text" name="question" id="question" value="{POLL_QUESTION}"></label></div>
</div>
</div>
<div class="form-element">
<div class="form-element">
<label for="poll_type">{L_POLL_TYPE}</label>
<label for="poll_type">{L_POLL_TYPE}</label>
<div class="form-field">
<div class="form-field">
<label><input type="radio" name="poll_type" id="poll_type" value="0" {SELECTED_SIMPLE}> {L_SINGLE}</label>
<label><input type="radio" name="poll_type" id="poll_type" value="0" {SELECTED_SIMPLE}> {L_SINGLE}</label>
Copiar
Copiado
Copiar
Copiado
<label><input type="radio" name="poll_type" value="1" {SELECTED_MULTIPLE}> {L_MULTIPLE}</label>
<label><input type="radio" name="poll_type" value="1" {SELECTED_MULTIPLE}> {L_MULTIPLE}</label>
</div>
</div>
</div>
</div>
# IF C_DELETE_POLL #
# IF C_DELETE_POLL #
<div class="form-element">
<div class="form-element">
<label for="del_poll">{L_DELETE_POLL}</label>
<label for="del_poll">{L_DELETE_POLL}</label>
<div class="form-field"><label><input type="checkbox" name="del_poll" id="del_poll" value="true"></label></div>
<div class="form-field"><label><input type="checkbox" name="del_poll" id="del_poll" value="true"></label></div>
</div>
</div>
# ENDIF #
# ENDIF #
<div class="form-element">
<div class="form-element">
<label>{L_ANSWERS}</label>
<label>{L_ANSWERS}</label>
<div class="form-field">
<div class="form-field">
# START answers_poll #
# START answers_poll #
Copiar
Copiado
Copiar
Copiado
<label><input type="text" name="a{answers_poll.ID}" value="{answers_poll.ANSWER}" /> <em>{answers_poll.NBR_VOTES} {answers_poll.L_VOTES}</em></label>
<br />
<label><input type="text" name="a{answers_poll.ID}" value="{answers_poll.ANSWER}" /> <em>{answers_poll.NBR_VOTES} {answers_poll.L_VOTES}</em></label>
# END answers_poll #
# END answers_poll #
<span id="add_poll_field{NBR_POLL_FIELD}"></span>
<span id="add_poll_field{NBR_POLL_FIELD}"></span>
Copiar
Copiado
Copiar
Copiado
<p class="center" id="add_poll_field_link">
<p class="center" id="add_poll_field_link">
# IF C_ADD_POLL_FIELD #
# IF C_ADD_POLL_FIELD #
Copiar
Copiado
Copiar
Copiado
<a
title
="${LangLoader::get_message('add', 'common')}" href="" onclick="add_poll_field({NBR_POLL_FIELD});return false;"><i class="fa fa-plus
"></i></a>
<a
aria-label
="${LangLoader::get_message('add', 'common')}" href="" onclick="add_poll_field({NBR_POLL_FIELD});return false;"><i class="fa fa-plus
" aria-hidden="true" title="${LangLoader::get_message('add', 'common')}
"></i></a>
# ENDIF #
# ENDIF #
</p>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
<script>
<!--
<!--
if( {NO_DISPLAY_POLL} )
if( {NO_DISPLAY_POLL} )
document.getElementById('hidepoll').style.display = 'none';
document.getElementById('hidepoll').style.display = 'none';
else
else
document.getElementById('hidepoll_link').style.display = 'none';
document.getElementById('hidepoll_link').style.display = 'none';
-->
-->
</script>
</script>
</fieldset>
</fieldset>
Copiar
Copiado
Copiar
Copiado
<fieldset class="fieldset-submit">
<fieldset class="fieldset-submit">
<legend>{L_SUBMIT}</legend>
<legend>{L_SUBMIT}</legend>
<input type="hidden" name="idm" value="{IDM}">
<input type="hidden" name="idm" value="{IDM}">
<input type="hidden" name="token" value="{TOKEN}">
<input type="hidden" name="token" value="{TOKEN}">
<button type="submit" name="post_topic" value="true" class="submit">{L_SUBMIT}</button>
<button type="submit" name="post_topic" value="true" class="submit">{L_SUBMIT}</button>
<button onclick="XMLHttpRequest_preview();" type="button">{L_PREVIEW}</button>
<button onclick="XMLHttpRequest_preview();" type="button">{L_PREVIEW}</button>
<button type="reset" value="true">{L_RESET}</button>
<button type="reset" value="true">{L_RESET}</button>
Copiar
Copiado
Copiar
Copiado
# IF C_DISPLAY_MSG #
# IF C_DISPLAY_MSG #
Copiar
Copiado
Copiar
Copiado
<
br /><br /><br /
>
<
p
>
<span id="forum_change_statut">
<span id="forum_change_statut">
<a href="" onclick="XMLHttpRequest_change_statut();return false;" id="forum_change_img">
{ICON_DISPLAY_MSG}
</a> <a href="" onclick="XMLHttpRequest_change_statut();return false;"><span id="forum_change_msg">{L_EXPLAIN_DISPLAY_MSG_DEFAULT}</span></a>
<a href="" onclick="XMLHttpRequest_change_statut();return false;" id="forum_change_img">
# IF C_ICON_DISPLAY_MSG #<i class="
{ICON_DISPLAY_MSG}
" aria-hidden="true"></i># ENDIF #
</a> <a href="" onclick="XMLHttpRequest_change_statut();return false;"><span id="forum_change_msg">{L_EXPLAIN_DISPLAY_MSG_DEFAULT}</span></a>
</span>
</span>
</p>
# ENDIF #
# ENDIF #
</fieldset>
</fieldset>
</div>
</div>
</form>
</form>
</div>
</div>
Copiar
Copiado
Copiar
Copiado
<footer
>
<footer
class="footer-forum"
>
•
{U_FORUM_CAT}
»
{U_TITLE_T}
<span
><em>{DESC}</em></span>
<a href="
{U_FORUM_CAT}
">{FORUM_CAT}</a> <i class="fa fa-angle-double-right" aria-hidden="true"></i> <a href="
{U_TITLE_T}
">{L_NEW_SUBJECT}</a>
<span
class="small"
><em>{DESC}</em></span>
</footer>
</footer>
</article>
</article>
Copiar
Copiado
Copiar
Copiado
# INCLUDE forum_bottom #
# INCLUDE forum_bottom #
Diferencias guardadas
Texto original
Abrir archivo
# INCLUDE forum_top # <script> <!-- function check_form_post(){ if(document.getElementById('contents').value == "") { alert("{L_REQUIRE_TEXT}"); return false; } if(document.getElementById('title').value == "") { alert("{L_REQUIRE_TITLE}"); return false; } if(!poll_hidded && document.getElementById('question').value == "") { alert("{L_REQUIRE_TITLE_POLL}"); return false; } return true; } var poll_hidded = true; function hide_poll(divID) { if( document.getElementById(divID) ) { document.getElementById(divID).style.display = 'block'; if( document.getElementById('hidepoll_link') ) { document.getElementById('hidepoll_link').style.display = 'none'; poll_hidded = false; } } } function add_poll_field(nbr_field) { if ( typeof this.max_field_p == 'undefined' ) this.max_field_p = (nbr_field == 0) ? 5 : nbr_field; else this.max_field_p++; if( this.max_field_p < 20 ) { if( this.max_field_p == 19 ) { if( document.getElementById('add_poll_field_link') ) document.getElementById('add_poll_field_link').innerHTML = ''; } document.getElementById('add_poll_field' + this.max_field_p).innerHTML += '<label><input type="text" name="a' + this.max_field_p + '" value="" /></label><br /><span id="add_poll_field' + (this.max_field_p + 1) + '"></span>'; } } function XMLHttpRequest_change_statut() { var idtopic = {IDTOPIC}; if( document.getElementById('forum_change_img') ) document.getElementById('forum_change_img').innerHTML = '<i class="fa fa-spinner fa-spin"></i>'; var xhr_object = xmlhttprequest_init('{PATH_TO_ROOT}/forum/xmlhttprequest.php?token={TOKEN}&msg_d=' + idtopic); xhr_object.onreadystatechange = function() { if( xhr_object.readyState == 4 && xhr_object.status == 200 ) { if( document.getElementById('forum_change_img') ) document.getElementById('forum_change_img').innerHTML = xhr_object.responseText == '1' ? '<i class="fa fa-msg-not-display"></i>' : '<i class="fa fa-msg-display"></i>'; if( document.getElementById('forum_change_msg') ) document.getElementById('forum_change_msg').innerHTML = xhr_object.responseText == '1' ? "{L_EXPLAIN_DISPLAY_MSG_BIS}" : "{L_EXPLAIN_DISPLAY_MSG}"; } } xmlhttprequest_sender(xhr_object, null); } --> </script> <article itemscope="itemscope" itemtype="http://schema.org/Creativework" id="article-forum-post"> <header> <h2> • {U_FORUM_CAT} » {U_TITLE_T} <span><em>{DESC}</em></span> </h2> </header> <div class="content"> <form action="{U_ACTION}" method="post" onsubmit="return check_form_post();"> # INCLUDE message_helper # <div class="fieldset-content"> <p class="center">{L_REQUIRE}</p> <fieldset> <legend>{L_ACTION}</legend> # IF C_FORUM_CUT_CAT # <div class="form-element"> <label for="to">* {L_CAT}</label> <div class="form-field"><label> <select id="to" name="to"> {CATEGORIES} </select> </label></div> </div> # ENDIF # <div class="form-element"> <label for="title">* {L_TITLE}</label> <div class="form-field"><label><input type="text" class="field-large" maxlength="100" id="title" name="title" value="{TITLE}"></label></div> </div> <div class="form-element"> <label for="desc">{L_DESC}</label> <div class="form-field"><label><input type="text" class="field-large" maxlength="75" id="desc" name="desc" value="{DESC}"></label></div> </div> <div class="form-element-textarea"> <label for="contents">* {L_MESSAGE}</label> {KERNEL_EDITOR} <div class="form-field-textarea"> <textarea rows="25" cols="47" id="contents" name="contents">{CONTENTS}</textarea> </div> </div> # IF C_FORUM_POST_TYPE # <div class="form-element"> <label for="type">{L_TYPE}</label> <div class="form-field"> <label><input type="radio" name="type" id="type" value="0" {CHECKED_NORMAL}> {L_DEFAULT}</label> <label><input type="radio" name="type" value="1" {CHECKED_POSTIT}> {L_POST_IT}</label> <label><input type="radio" name="type" value="2" {CHECKED_ANNONCE}> {L_ANOUNCE}</label> </div> </div> # ENDIF # </fieldset> <fieldset> <legend>{L_POLL}</legend> <p id="hidepoll_link" class="center"><a title="{L_OPEN_MENU_POLL}" href="" onclick="hide_poll('hidepoll');return false;">{L_OPEN_MENU_POLL}</a></p> <div id="hidepoll"> <div class="form-element"> <label for="question">* {L_QUESTION}</label> <div class="form-field"><label><input type="text" name="question" id="question" value="{POLL_QUESTION}"></label></div> </div> <div class="form-element"> <label for="poll_type">{L_POLL_TYPE}</label> <div class="form-field"> <label><input type="radio" name="poll_type" id="poll_type" value="0" {SELECTED_SIMPLE}> {L_SINGLE}</label> <label><input type="radio" name="poll_type" value="1" {SELECTED_MULTIPLE}> {L_MULTIPLE}</label> </div> </div> # IF C_DELETE_POLL # <div class="form-element"> <label for="del_poll">{L_DELETE_POLL}</label> <div class="form-field"><label><input type="checkbox" name="del_poll" id="del_poll" value="true"></label></div> </div> # ENDIF # <div class="form-element"> <label>{L_ANSWERS}</label> <div class="form-field"> # START answers_poll # <label><input type="text" name="a{answers_poll.ID}" value="{answers_poll.ANSWER}" /> <em>{answers_poll.NBR_VOTES} {answers_poll.L_VOTES}</em></label><br /> # END answers_poll # <span id="add_poll_field{NBR_POLL_FIELD}"></span> <p class="center" id="add_poll_field_link"> # IF C_ADD_POLL_FIELD # <a title="${LangLoader::get_message('add', 'common')}" href="" onclick="add_poll_field({NBR_POLL_FIELD});return false;"><i class="fa fa-plus"></i></a> # ENDIF # </p> </div> </div> </div> <script> <!-- if( {NO_DISPLAY_POLL} ) document.getElementById('hidepoll').style.display = 'none'; else document.getElementById('hidepoll_link').style.display = 'none'; --> </script> </fieldset> <fieldset class="fieldset-submit"> <legend>{L_SUBMIT}</legend> <input type="hidden" name="idm" value="{IDM}"> <input type="hidden" name="token" value="{TOKEN}"> <button type="submit" name="post_topic" value="true" class="submit">{L_SUBMIT}</button> <button onclick="XMLHttpRequest_preview();" type="button">{L_PREVIEW}</button> <button type="reset" value="true">{L_RESET}</button> # IF C_DISPLAY_MSG # <br /><br /><br /> <span id="forum_change_statut"> <a href="" onclick="XMLHttpRequest_change_statut();return false;" id="forum_change_img">{ICON_DISPLAY_MSG}</a> <a href="" onclick="XMLHttpRequest_change_statut();return false;"><span id="forum_change_msg">{L_EXPLAIN_DISPLAY_MSG_DEFAULT}</span></a> </span> # ENDIF # </fieldset> </div> </form> </div> <footer> • {U_FORUM_CAT} » {U_TITLE_T} <span><em>{DESC}</em></span> </footer> </article> # INCLUDE forum_bottom #
Texto modificado
Abrir archivo
# INCLUDE forum_top # <script> <!-- function check_form_post(){ if(document.getElementById('contents').value == "") { alert("{L_REQUIRE_TEXT}"); return false; } if(document.getElementById('title').value == "") { alert("{L_REQUIRE_TITLE}"); return false; } if(!poll_hidded && document.getElementById('question').value == "") { alert("{L_REQUIRE_TITLE_POLL}"); return false; } return true; } var poll_hidded = true; function hide_poll(divID) { if( document.getElementById(divID) ) { document.getElementById(divID).style.display = 'block'; if( document.getElementById('hidepoll_link') ) { document.getElementById('hidepoll_link').style.display = 'none'; poll_hidded = false; } } } function add_poll_field(nbr_field) { if ( typeof this.max_field_p == 'undefined' ) this.max_field_p = (nbr_field == 0) ? 5 : nbr_field; else this.max_field_p++; if( this.max_field_p < 20 ) { if( this.max_field_p == 19 ) { if( document.getElementById('add_poll_field_link') ) document.getElementById('add_poll_field_link').innerHTML = ''; } document.getElementById('add_poll_field' + this.max_field_p).innerHTML += '<label><input type="text" name="a' + this.max_field_p + '" value="" /></label><span class="field-description" id="add_poll_field' + (this.max_field_p + 1) + '"></span>'; } } function XMLHttpRequest_change_statut() { var idtopic = {IDTOPIC}; if( document.getElementById('forum_change_img') ) document.getElementById('forum_change_img').innerHTML = '<i class="fa fa-spinner fa-spin"></i>'; var xhr_object = xmlhttprequest_init('{PATH_TO_ROOT}/forum/xmlhttprequest.php?token={TOKEN}&msg_d=' + idtopic); xhr_object.onreadystatechange = function() { if( xhr_object.readyState == 4 && xhr_object.status == 200 ) { if( document.getElementById('forum_change_img') ) document.getElementById('forum_change_img').innerHTML = xhr_object.responseText == '1' ? '<i class="fa fa-msg-not-display"></i>' : '<i class="fa fa-msg-display"></i>'; if( document.getElementById('forum_change_msg') ) document.getElementById('forum_change_msg').innerHTML = xhr_object.responseText == '1' ? "{L_EXPLAIN_DISPLAY_MSG_BIS}" : "{L_EXPLAIN_DISPLAY_MSG}"; } } xmlhttprequest_sender(xhr_object, null); } --> </script> <article itemscope="itemscope" itemtype="http://schema.org/Creativework" id="article-forum-post" class="forum-contents"> <header> <h2> <a href="{U_FORUM_CAT}">{FORUM_CAT}</a> <i class="fa fa-angle-double-right" aria-hidden="true"></i> <a href="{U_TITLE_T}">{L_NEW_SUBJECT}</a> <span class="small"><em>{DESC}</em></span> </h2> </header> <div class="content"> <form action="{U_ACTION}" method="post" onsubmit="return check_form_post();"> # INCLUDE message_helper # <div class="fieldset-content"> <p class="center">{L_REQUIRE}</p> <fieldset> <legend>{L_ACTION}</legend> # IF C_FORUM_CUT_CAT # <div class="form-element"> <label for="to">* {L_CAT}</label> <div class="form-field"><label> <select id="to" name="to"> {CATEGORIES} </select> </label></div> </div> # ENDIF # <div class="form-element"> <label for="title">* {L_TITLE}</label> <div class="form-field"><label><input type="text" class="field-large" maxlength="100" id="title" name="title" value="{TITLE}"></label></div> </div> <div class="form-element"> <label for="desc">{L_DESC}</label> <div class="form-field"><label><input type="text" class="field-large" maxlength="75" id="desc" name="desc" value="{DESC}"></label></div> </div> <div class="form-element-textarea"> <label for="contents">* {L_MESSAGE}</label> {KERNEL_EDITOR} <div class="form-field-textarea"> <textarea rows="25" cols="47" id="contents" name="contents">{CONTENTS}</textarea> </div> </div> # IF C_FORUM_POST_TYPE # <div class="form-element"> <label for="type">{L_TYPE}</label> <div class="form-field"> <label><input type="radio" name="type" id="type" value="0" {CHECKED_NORMAL}> {L_DEFAULT}</label> <label><input type="radio" name="type" value="1" {CHECKED_POSTIT}> {L_POST_IT}</label> <label><input type="radio" name="type" value="2" {CHECKED_ANNONCE}> {L_ANOUNCE}</label> </div> </div> # ENDIF # </fieldset> <fieldset> <legend>{L_POLL}</legend> <p id="hidepoll_link" class="center"><a title="{L_OPEN_MENU_POLL}" href="" onclick="hide_poll('hidepoll');return false;">{L_OPEN_MENU_POLL}</a></p> <div id="hidepoll"> <div class="form-element"> <label for="question">* {L_QUESTION}</label> <div class="form-field"><label><input type="text" name="question" id="question" value="{POLL_QUESTION}"></label></div> </div> <div class="form-element"> <label for="poll_type">{L_POLL_TYPE}</label> <div class="form-field"> <label><input type="radio" name="poll_type" id="poll_type" value="0" {SELECTED_SIMPLE}> {L_SINGLE}</label> <label><input type="radio" name="poll_type" value="1" {SELECTED_MULTIPLE}> {L_MULTIPLE}</label> </div> </div> # IF C_DELETE_POLL # <div class="form-element"> <label for="del_poll">{L_DELETE_POLL}</label> <div class="form-field"><label><input type="checkbox" name="del_poll" id="del_poll" value="true"></label></div> </div> # ENDIF # <div class="form-element"> <label>{L_ANSWERS}</label> <div class="form-field"> # START answers_poll # <label><input type="text" name="a{answers_poll.ID}" value="{answers_poll.ANSWER}" /> <em>{answers_poll.NBR_VOTES} {answers_poll.L_VOTES}</em></label> # END answers_poll # <span id="add_poll_field{NBR_POLL_FIELD}"></span> <p class="center" id="add_poll_field_link"> # IF C_ADD_POLL_FIELD # <a aria-label="${LangLoader::get_message('add', 'common')}" href="" onclick="add_poll_field({NBR_POLL_FIELD});return false;"><i class="fa fa-plus" aria-hidden="true" title="${LangLoader::get_message('add', 'common')}"></i></a> # ENDIF # </p> </div> </div> </div> <script> <!-- if( {NO_DISPLAY_POLL} ) document.getElementById('hidepoll').style.display = 'none'; else document.getElementById('hidepoll_link').style.display = 'none'; --> </script> </fieldset> <fieldset class="fieldset-submit"> <legend>{L_SUBMIT}</legend> <input type="hidden" name="idm" value="{IDM}"> <input type="hidden" name="token" value="{TOKEN}"> <button type="submit" name="post_topic" value="true" class="submit">{L_SUBMIT}</button> <button onclick="XMLHttpRequest_preview();" type="button">{L_PREVIEW}</button> <button type="reset" value="true">{L_RESET}</button> # IF C_DISPLAY_MSG # <p> <span id="forum_change_statut"> <a href="" onclick="XMLHttpRequest_change_statut();return false;" id="forum_change_img"># IF C_ICON_DISPLAY_MSG #<i class="{ICON_DISPLAY_MSG}" aria-hidden="true"></i># ENDIF #</a> <a href="" onclick="XMLHttpRequest_change_statut();return false;"><span id="forum_change_msg">{L_EXPLAIN_DISPLAY_MSG_DEFAULT}</span></a> </span> </p> # ENDIF # </fieldset> </div> </form> </div> <footer class="footer-forum"> <a href="{U_FORUM_CAT}">{FORUM_CAT}</a> <i class="fa fa-angle-double-right" aria-hidden="true"></i> <a href="{U_TITLE_T}">{L_NEW_SUBJECT}</a> <span class="small"><em>{DESC}</em></span> </footer> </article> # INCLUDE forum_bottom #
Encontrar la diferencia