Biomedi@ – Modifica dell’articolo
{source}
[[?php
$numart = $_POST["ID"];
include "files/conexion.php";//---------------------------------------------------------------
$query="SELECT * FROM jos_jforms_3157e WHERE ID = $numart";
$result=mysql_query($query);
$num=mysql_numrows($result);
//---------------------------------------------------------------
$autori=mysql_result($result,0,"h17ac");
$titolo=mysql_result($result,0,"he527");
$sottotitolo=mysql_result($result,0,"he520");
$testata=mysql_result($result,0,"h8354");
$altra=mysql_result($result,0,"h098f");
$data=mysql_result($result,0,"hcd1c");
$pagina=mysql_result($result,0,"hff95");
$url=mysql_result($result,0,"h2899");
$tipo=mysql_result($result,0,"h83bf");
$area=mysql_result($result,0,"h514d");
$temi=mysql_result($result,0,"h1843");
$parole=mysql_result($result,0,"hf6a7");
$file=mysql_result($result,0,"h7231");
$testo=mysql_result($result,0,"hdb79");
$rilevanza=mysql_result($result,0,"h55b2");
$commenti=mysql_result($result,0,"h0f68");
$dataentrata=mysql_result($result,0,"h87fc");
$uid=mysql_result($result,0,"uid");
$g = substr($data,8,2);
$m = substr($data,5,2);
$a = substr($data,0,4);
$ge = substr($dataentrata,8,2);
$me = substr($dataentrata,5,2);
$ae = substr($dataentrata,0,4);
$rila = ";
$rilm = ";
$rilb = ";
switch ($rilevanza){
case 'Alta': $rila = 'checked';
break;
case 'Media': $rilm = 'checked';
break;
case 'Bassa': $rilb = 'checked';
break;
default :
}
//---------------------------------------------------------------
echo ("
<form method='post' action='http://www.uprait.org/index.php?option=com_content&view=article&id=497'> <center>
<table border='1'>
<tbody>
<tr>
<td>
<table bgcolor='aqua'>
<tbody>
<tr>
<td>.</td>
</tr>
<tr>
<td></td>
<td><strong>Testata</strong></td>
<td><select name='testata' style='width: 600px;'><option>$testata</option><option>ALTRA</option><option>Avvenire</option><option>Clarín</option><option>Corriere della sera</option><option>El Mundo</option><option>El País</option><option>Il Foglio</option><option>Il Giornale</option><option>il manifesto</option><option>Il Mattino</option><option>Il Riformista</option><option>Il Tempo</option><option>Il Sole 24 ore</option><option>La Repubblica</option><option>La Stampa</option><option>Le Monde</option><option>L'Espresso</option><option>Libero</option><option>L'Osservatore Romano</option><option>L'Unità</option><option>The New York Times</option><option>The Times</option><option>ZENIT</option></select></td>
</tr>
<tr>
<td></td>
<td><strong>Altra testata</strong></td>
<td><input name='altra' value='$altra' style='width: 600px;' size='71' /></td>
<td></td>
</tr>
<tr>
<td></td>
<td><strong>Data</strong></td>
<td><input name='data' value=$g-$m-$a style='width: 90px;' size='8' /></td>
<td></td>
</tr>
<tr>
<td></td>
<td><strong>Pagina</strong></td>
<td><input name='pagina' value='$pagina' style='width: 600px;' size='71' /></td>
<td></td>
</tr>
<tr>
<td></td>
<td><strong>URL</strong></td>
<td><input name='url' value='$url' style='width: 600px;' size='71' /></td>
<td></td>
</tr>
<tr>
<td></td>
<td><strong>Autori</strong></td>
<td><input name='autori' value='$autori' style='width: 600px;' size='71' /></td>
<td></td>
</tr>
<tr>
<td></td>
<td><strong>Titolo</strong></td>
<td><textarea name='titolo' rows='2' style='width: 600px;' >$titolo</textarea></td>
<td></td>
</tr>
<tr>
<td></td>
<td><strong>Sottotitolo</strong></td>
<td> <textarea name='sottotitolo' rows='2' style='width: 600px;' >$sottotitolo</textarea></td>
<td></td>
</tr>
<tr>
<td></td>
<td><strong>Tipo</strong></td>
<td><select name='tipo' style='width: 600px;'><option>$tipo</option><option>Articolo di opinione</option><option>Cronaca</option><option>Editoriale</option><option>Inchiesta</option><option>Intervista</option><option>Servizio</option></select></td>
</tr>
<tr>
<td></td>
<td><strong>Area</strong></td>
<td><select name='area' style='width: 600px;'><option>$area</option><option>Altra...</option><option>Aborto</option><option>Cellule staminali e clonazione</option><option>Contraccezione e pillola del giorno dopo</option><option>Dipendenze da sostanze</option><option>Famiglia</option><option>Fine vita</option><option>Genetica</option><option>Nanotecnologie</option><option>Neonatologia</option><option>Neurobioetica</option><option>Popolazione, sviluppo, ambiente</option><option>Procreazione assistita</option><option>Sessualità e omosessualità</option></select></td>
</tr>
<tr>
<td></td>
<td><strong>Soggetti</strong></td>
<td><input name='tema' value='$temi' style='width: 600px;' size='71' /></td>
<td></td>
</tr>
<tr>
<td></td>
<td><strong>Parole chiave</strong></td>
<td><input name='parole' value='$parole' style='width: 600px;' size='71' /></td>
<td></td>
</tr>
<tr>
<td></td>
<td><strong>Testo</strong></td>
<td><textarea name='testo' rows='20' style='width: 600px;' >$testo</textarea></td>
<td></td>
</tr>
<tr>
<td></td>
<td><strong>Rilevanza</strong></td>
<td><input type="radio" value="Alta" name="rilevanza" $rila>Alta <input type="radio" value="Media" name="rilevanza" $rilm>Media <input type="radio" value="Bassa" name="rilevanza" $rilb>Bassa</td>
</tr>
<tr>
<td></td>
<td><strong>Commenti</strong></td>
<td><textarea name='commenti' rows='5' style='width: 600px;' >$commenti</textarea></td>
<td></td>
<tr>
<td></td>
<td><b>Collaboratore</b>:</td>
<td>$uid</td>
</tr><tr>
<td></td>
<td><b>Data registro</b>:</td>
<td>$ge-$me-$ae</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td><input value='Salvare' type='submit' /></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</center>
<input type='Hidden' name='ID' value=$numart>
</form>
");
//---------------------------------------------------------------
include "files/cerrar_conexion.php";
?]]
{/source}