$result=mysql_db_query($dbname,"select * from categorie where ID=$p");
$row=mysql_fetch_array($result);?>
echo $row[descrizione]?>: |
|
$result=mysql_db_query($dbname,"select * from categorie where padre=$p order by descrizione");
while ($row=mysql_fetch_array($result)){?>
if ($c==$row[ID]){?>
echo $row[descrizione]?> |
}else{?>
echo $row[descrizione]?> |
}?>
|
}?>
include('include/banleft.php');?>
$result=mysql_db_query($dbname,"select * from categorie where ID=$p");
$row=mysql_fetch_array($result);?>
echo $row[descrizione]?>: |
|
$result=mysql_db_query($dbname,"select * from categorie where padre=$p order by descrizione");
while ($row=mysql_fetch_array($result)){?>
if ($c==$row[ID]){?>
echo $row[descrizione]?> |
}else{?>
echo $row[descrizione]?> |
}?>
|
}?>
|
|
$result=mysql_db_query($dbname,"select * from categorie where padre=1 order by descrizione");
while ($row=mysql_fetch_array($result)) {?>
if ($p==$row[ID]){?>
|
}else{?>
|
}?>
}?>
|
|
|
if ($p==""){
$p=1;
}if ($b==""){
$b=1;
}
if ($c==""){
$result=mysql_db_query($dbname,"select * from categorie where ID=$p");
}else{
$result=mysql_db_query($dbname,"select * from categorie where ID=$c");
}
$row=mysql_fetch_array($result) ;?>
echo $row[descrizione]?>
|
echo $row[note]?> |
|
include('include/bancenter.php');?> |
|
if ($c!=0){
$pad=$c;
}else{
$pad=$p;
}
$i=0;
while ($pad!=0){
$posizione=mysql_db_query($dbname,"select * from categorie where ID='$pad'");
$pos=mysql_fetch_array($posizione) ;
$px[$i]=$pos[descrizione];
$ix[$i]=$pos[padre];
$i++;
$pad=$pos[padre];
}
$i=$i-2;?>
while ($i>=0){?>
if ($i!=0){?>
}?>
echo $px[$i];?>
if ($i!=0){?>
}?>
>
$i=$i-1;}?>
|
|
if ($c!=""){?>
if ($stqry=='') {
$stqry=0;
}
$result=mysql_db_query ($dbname,"select * from aziende where categoria='$c' and visualizza=1 and tipo=1",$link);
$totpg=ceil((mysql_num_rows($result))/6);
$actpg=($stqry/6)+1;
if ($totpg>1) {
$tmppg=$actpg-4;
if (($tmppg < 1) || ($totpg<=5)){
$minp=1;
}else{
$minp=$actpg-1;
}
if (($actpg+1) <5) {
if ($totpg>5) {
$maxp=5;
}else{
$maxp=$totpg;
}
}else{
if (($actpg+1)<=$totpg) {
$maxp=$actpg+1;
}else{
$maxp=$totpg;
if (($maxp==$totpg) && (($minp-5)>1)) {
$minp=$totpg-5;
}
}
}
if ($actpg!=1){
echo ' << ';
}
for ($x=$minp;$x<=$maxp;$x++){
if ($x==$actpg) {
echo " " . $x . " ";
}else{
echo ' ' . $x .' ';
}
}
if ($actpg!=$totpg){
echo ' >> '; }} ?>
|
|
$result=mysql_db_query($dbname,"select * from aziende where categoria='$c' and visualizza=1 and tipo=1 limit $stqry,6");
while ($row=mysql_fetch_array($result)) {?>
|
if (($row[logo]!="")){?>
}?>
|
echo $row[descrizione]?>
echo $row[nome]?>
echo $row[indirizzo]?>
echo $row[cap]." - ".$row[citta]?>
echo $row[telefono]?>
if ($row[email]!=""){?>
echo $row[email];?>
}?>
if ($row[sito]!=""){?>
echo $row[sito];?>
}?>
|
|
|
}?>
|
}else{
$result=mysql_db_query ($dbname,"select * from categorie where ID=$p",$link);
$row=mysql_fetch_array($result); ?>
|
echo $row[testo]?> |
}?>
|
if ($stqry=='') {
$stqry=0;
}
$result=mysql_db_query ($dbname,"select * from aziende where categoria='$c' and visualizza=1 and tipo=1",$link);
$totpg=ceil((mysql_num_rows($result))/6);
$actpg=($stqry/6)+1;
if ($totpg>1) {
$tmppg=$actpg-4;
if (($tmppg < 1) || ($totpg<=5)){
$minp=1;
}else{
$minp=$actpg-1;
}
if (($actpg+1) <5) {
if ($totpg>5) {
$maxp=5;
}else{
$maxp=$totpg;
}
}else{
if (($actpg+1)<=$totpg) {
$maxp=$actpg+1;
}else{
$maxp=$totpg;
if (($maxp==$totpg) && (($minp-5)>1)) {
$minp=$totpg-5;
}
}
}
if ($actpg!=1){
echo ' << ';
}
for ($x=$minp;$x<=$maxp;$x++){
if ($x==$actpg) {
echo " " . $x . " ";
}else{
echo ' ' . $x .' ';
}
}
if ($actpg!=$totpg){
echo ' >> '; }} ?>
|
|
include('include/bandown.php');?> |
|
|
$result=mysql_db_query($dbname,"select * from aziende where visualizza=1 and tipo=3 order by data desc limit 0,3");
while ($row=mysql_fetch_array($result)) {?>
|
}?>
altri
eventi? |
|
|
|
|
include('include/trova.php');?> |
|
include('include/banright.php');?> |
|