Diff
checker
Testo
Testo
Immagini
Documenti
Excel
Cartelle
Legal
Enterprise
Applicazione per desktop
Prezzi
Accedi
Scarica Diffchecker Desktop
Confronta il testo
Trova la differenza tra due file di testo
Strumenti
Cronologia
Editor live
Comprimi invariate
Senza a capo
Layout
Diviso
Unificato
Livello di dettaglio
Intelligente
Parola
Carattere
Evidenziazione sintassi
Scegli sintassi
Ignora
Trasforma testo
Vai alla prima modifica
Modifica input
Diffchecker Desktop
Il modo più sicuro per usare Diffchecker. Ottieni l'app Diffchecker Desktop: i tuoi diff non lasciano mai il tuo computer!
Ottieni Desktop
Untitled diff
Creato
7 anni fa
Il diff non scade mai
Eliminare
Esporta
Condividere
Spiegare
18 rimozioni
Linee
Totale
Rimosso
Caratteri
Totale
Rimosso
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
194 linee
Copia tutti
22 aggiunte
Linee
Totale
Aggiunto
Caratteri
Totale
Aggiunto
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
195 linee
Copia tutti
# INCLUDE forum_top #
# INCLUDE forum_top #
Copia
Copiato
Copia
Copiato
<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++;
Copia
Copiato
Copia
Copiato
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 = '';
}
}
Copia
Copiato
Copia
Copiato
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>';
Copia
Copiato
Copia
Copiato
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>
Copia
Copiato
Copia
Copiato
<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>
Copia
Copiato
Copia
Copiato
•
{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 #
Copia
Copiato
Copia
Copiato
<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>
Copia
Copiato
Copia
Copiato
<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>
Copia
Copiato
Copia
Copiato
<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 #
Copia
Copiato
Copia
Copiato
<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>
Copia
Copiato
Copia
Copiato
<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 #
Copia
Copiato
Copia
Copiato
<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>
Copia
Copiato
Copia
Copiato
<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>
Copia
Copiato
Copia
Copiato
# IF C_DISPLAY_MSG #
# IF C_DISPLAY_MSG #
Copia
Copiato
Copia
Copiato
<
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>
Copia
Copiato
Copia
Copiato
<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>
Copia
Copiato
Copia
Copiato
# INCLUDE forum_bottom #
# INCLUDE forum_bottom #
Diff salvati
Testo originale
Apri file
# 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 #
Testo modificato
Apri file
# 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 #
Trovare la differenza