Articoli trovati nel Database di Biomedi@

{source} [[?php

$testata = $_POST["testata"];
$altra = $_POST["altra"];
$autori = $_POST["autori"];
$titolo = $_POST["titolo"];
$sottotitolo = $_POST["sottotitolo"];
$data = $_POST["data"];
$tipo = $_POST["tipo"];
$area = $_POST["area"];
$tema = $_POST["tema"];
$parole = $_POST["parole"];
$testo = $_POST["testo"];

$antes = $_POST["antes"];

$boton= $_POST["boton"];

$asdes= $_POST["asdes"];

if ($antes == $boton) {

if ($asdes == "ASC") {$asdes="DESC";} else {$asdes="ASC";};

} else {

$asdes = "ASC";

}

$antes = $boton;

switch ($boton) {
case "NÂș":
$orden = "id"; break;
case "Autori":
$orden = "h17ac"; break;

case "Titolo":
$orden = "he527"; break;

case "Testata":
$orden = "h8354"; break;

case "Data":
$orden = "hcd1c "; break;

default:
$orden = "id"; break;

}

//---------------------------------------------------------------

echo ("<b>Parametri della ricerca</b>:  ");

$ric = 0;

$coma =";
$comasi = " | ";

if ($testata<>") {echo ("Testata= $testata"); $ric=1; $coma=$comasi;}

if ($altra<>") {echo ("$coma Altra Testata= $altra");$ric=1;}
if ($autori<>") {echo ("$coma Autori= $autori");$ric=1;}
if ($titolo<>") {echo ("$coma Titolo= $titolo");$ric=1;}
if ($sottotitolo<>") {echo ("$coma Sottotitolo= $sottotitoli");$ric=1;}
if ($data<>") {echo ("$coma Data= $data");$ric=1;
$m = substr  ($data,3,2);
$g = substr  ($data,0,2);
$a = substr  ($data,6,4);
$data = "$a-$m-$g";
}
if ($tipo<>") {echo ("$coma Tipo= $tipo");$ric=1;}
if ($area<>") {echo ("$coma Area= $area");$ric=1;}
if ($tema<>") {echo ("$coma Tema= $tema");$ric=1;}
if ($parole<>") {echo ("$coma Parole chiave= $parole");$ric=1;}
if ($testo<>") {echo ("$coma Tema= $testo");$ric=1;}

if ($ric==0) {echo ("Tutti gli articoli"); }

//---------------------------------------------------------------

include "files/conexion.php";


$query="SELECT * FROM jos_jforms_3157e  WHERE ((h8354 LIKE '%$testata%') and (h17ac LIKE '%$autori%') and (he527 LIKE '%$titolo%') and (h514d LIKE '%$area%') and (h098f LIKE '%$altra%') and (hcd1c LIKE '%$data%') and (he520 LIKE '%$sottotitolo%') and (h83bf LIKE '%$tipo%') and (h1843 LIKE '%$tema%') and (hf6a7 LIKE '%$parole%') and (hdb79 LIKE '%$testo%') and (h55b2 LIKE '%$rilevanza%') ) ORDER BY $orden $asdes";

$result=mysql_query($query);
$num=mysql_numrows($result);

echo ("<br><b>Articoli trovati</b>: $num");

echo("<br><br><table width='700' border='1' cellspacing='2' cellpadding='2' bordercolor='Aqua'  cols='4' frame='BOX' rules='none'>

<form action='http://www.uprait.org/index.php?option=com_content&view=article&id=493' method='POST'>
<input type='Hidden' name='ID' value=$numart>

<input type='Hidden' name='testata' value=$testata>

<input type='Hidden' name='altra' value=$altra>
<input type='Hidden' name='autori' value=$autori>
<input type='Hidden' name='titolo' value=$ttitolo>
<input type='Hidden' name='sottotitolo' value=$sottotitolo>

<input type='Hidden' name='data' value=$data>

<input type='Hidden' name='testata' value=$testata>
<input type='Hidden' name='tipo' value=$tipo>
<input type='Hidden' name='area' value=$area>
<input type='Hidden' name='tema' value=$tema>
<input type='Hidden' name='parole' value=$parole>
<input type='Hidden' name='testo' value=$testo>

<input type='Hidden' name='antes' value=$antes>

<input type='Hidden' name='asdes' value=$asdes>

<tr bgcolor='Aqua'>

<td><input type='image'  name='boton' value='NÂș'></td>

<td><input type='image'  name='boton' value='Autori'></td>

<td><input type='image'  name='boton' value='Titolo'></td>

<td><input type='image'  name='boton' value='Testata'></td>

<td><input type='image'  name='boton' value='Data'></td>

</tr>

</form>

");

$fila = 1;

$i=0;

while ($i < $num) {

$autore=mysql_result($result,$i,"h17ac");
$titolo=mysql_result($result,$i,"he527");
$data=mysql_result($result,$i,"hcd1c");

$testata=mysql_result($result,$i,"h8354");

$altra=mysql_result($result,$i,"h098f");

if  ($testata=="ALTRA" ) {$testata=$altra;}
$area=mysql_result($result,$i,"h514d");
$uid=mysql_result($result,$i,"uid");
$numart=mysql_result($result,$i,"ID");

$m = substr  ($data,5,2);
$g = substr  ($data,8,2);
$a = substr  ($data,0,4);

if ($fila == 0) {$fila=1;} else {$fila=0;}

/** FORMATO EN LÍNEAS (DESACTIVADO):

echo ("<form action='http://www.uprait.org/index.php?option=com_content&view=article&id=494' method='POST'>
<input type='Hidden' name='ID' value=$numart>
<input type='image'  name='scheda' value=<img src='../images/of.gif' align='top' border=0>
$autore, <i>$titolo</i>, $testata, $g-$m-$a ($area) [$numart].</form>

");*/

// FORMATO EN TABLA (ACTIVO):

if ($fila == 1) {echo("<tr bgcolor='#D6F5E0'>");} else {echo("<tr>");}

echo ("

<td><form action='http://www.uprait.org/index.php?option=com_content&view=article&id=494' method='POST'>
<input type='Hidden' name='ID' value=$numart>
<input type='image'  name='scheda' value=<img src='../images/of.gif' align='top' border=0></form></td>

<td>$autore</td>

<td>$titolo</td>

<td>$testata</td>

<td>$g-$m-$a</td>

</tr>

");

$i++;

}

echo ("</table>");

include "files/cerrar_conexion.php";

?]]
{/source}

 

Hai bisogno di informazioni?

Contattaci