Hi, I have a connection in which I put some actions:
View action has this code:
How you can see, this is a judgment draft system; the user can update:
1. text vote;
2. english vote;
3. graphic vote;
4. plagiarism vote.
I use EDIT action to modify text vote, INGLESE to modify english vote, GRAFICA > graphic vote, PLAGIO > plagiarism vote.
I created 4 form with cronoform
I put this code in action Form event:
EDIT --> txt-edit:load
INGLESE --> english-txt-edit:load
GRAFICA --> graphic-txt-edit:load
PLAGIO --> plagiarism-txt-edit:load
When I click on EDIT LINK (in view action,
This system doesn't work with the other link (for example, INGLESE Action, this link
How I'm wrong?😟
view, edit, inglese, grafica, plagio
View action has this code:
<div class="article-title"><h2>{articolo.titolo}</h2></div>
<?php
$modifyon = $row['articolo']['modified'];
$nomodify = 'No modify';
$nomod = '0000-00-00 00:00:00';
$check_graphic = $row['articolo']['check_graphic'];
$check_txt = $row['articolo']['check_txt'];
$txt_voto = $row['articolo']['txt_voto'];
$check_plagiarism = $row['articolo']['check_plagiarism'];
$check_english = $row['articolo']['check_english'];
?>
<h3>Article Info</h3>
<div class='article_info'>
<table>
<tr>
<td>Article ID</td><td>{articolo.id}</td>
</tr>
<tr>
<td>Created on</td><td>{articolo.created}</td>
</tr>
<tr>
<td>Modify on</td><td><?php if ($modifyon == '0000-00-00 00:00:00') {
echo 'No Edit Yet';
} else {
echo '{articolo.modified}';
} ?></td>
</tr>
<tr>
<td>Characters</td><td> {articolo.caratteri}</td>
</tr>
</table>
</div>
<h3>Authors</h3>
<div class="article-authors">
<?php
echo '{articolo.email_utente} - <b>(Owner)</b></br>';
foreach( $row['autori'] as $result) {
echo $result[autoriemail], '<br>';
} ?></div>
<div class="article-file">
<div class="article-download"><a href="{articolo.articolo_url}"><img src="images/download.png" style="float:left;">Download Article</a></div>
<div class="article-illustration">
<?php
foreach( $row['foto'] as $result) {
echo '<a href="'.$result[link].'" target="new"><img width="100px" src="'.$result[link].'"/></a>';
}
?>
</div>
<div class="article-extra"><h3>Extra Content</h3>
<div class="article-extra-div">{articolo.contenuti_extra}</div>
</div>
</div>
<h2 style="margin:40px 0;">Pre-submission Evaluation</h2>
<div class="evaluation"><h3>Topic Acceptance</h3>
<?php
if ($check_txt == 0) {
echo 'Any evaluation yet</br>';
}
else {
if ($txt_voto == 0) {
echo 'Draft not Accepted</br>Editor suggest: {articolo.txt_suggest}</br>';
}
else {
echo 'Draft Accepted!</br>Editor suggest: {articolo.txt_suggest}</br>';
}
}
?>
<a href="gestione/text-editor-sys.html?cont=lists&ccname=text_editor&act=edit&gcb={articolo.id}">Submit Now</a>
</div>
<div class="evaluation"><h3>Plagiarism Compliance</h3>
<?php
if ($check_plagiarism == 0) {
echo 'Any evaluation yet</br>';
}
else {
echo 'Your Plagiarism Vote is: {articolo.plagiarism_voto}</br>Plagiarism suggest: {articolo.plagiarism_suggest}</br>';
}
?>
<a href="gestione/text-editor-sys.html?cont=lists&ccname=text_editor&act=plagio&gcb={articolo.id}">Submit Now</a>
</div>
<div class="evaluation"><h3>English Compliance</h3>
<?php
if ($check_english == 0) {
echo 'Any evaluation yet</br>';
}
else {
echo 'Your english Vote is: {articolo.english_voto}</br>english suggest: {articolo.english_suggest}</br>';
}
?>
<a href="gestione/text-editor-sys.html?cont=lists&ccname=text_editor&act=inglese&gcb={articolo.id}">Submit Now</a>
</div>
<div class="evaluation"><h3>Illustration Compliance</h3>
<?php
if ($check_graphic == 0) {
echo 'Any evaluation yet</br>';
}
else {
echo 'Your graphic Vote is: {articolo.graphic_voto}</br>graphic suggest: {articolo.graphic_suggest}</br>';
}
?>
<a href="gestione/text-editor-sys.html?cont=lists&ccname=text_editor&act=grafica&gcb={articolo.id}">Submit Now</a>
</div>
How you can see, this is a judgment draft system; the user can update:
1. text vote;
2. english vote;
3. graphic vote;
4. plagiarism vote.
I use EDIT action to modify text vote, INGLESE to modify english vote, GRAFICA > graphic vote, PLAGIO > plagiarism vote.
I created 4 form with cronoform
I put this code in action Form event:
EDIT --> txt-edit:load
INGLESE --> english-txt-edit:load
GRAFICA --> graphic-txt-edit:load
PLAGIO --> plagiarism-txt-edit:load
When I click on EDIT LINK (in view action,
<a href="gestione/text-editor-sys.html?cont=lists&ccname=text_editor&act=edit&gcb={articolo.id}">Submit Now</a>
) the system works great: it update the data into my row.
This system doesn't work with the other link (for example, INGLESE Action, this link
<a href="gestione/text-editor-sys.html?cont=lists&ccname=text_editor&act=inglese&gcb={articolo.id}">Submit Now</a>
); instead of update the same row, it create new row in my table!
How I'm wrong?😟