Joomla.it Forum
Joomla! 1.0.x (versione con supporto terminato) => Le voci di Joomla.it (solo per versione Joomla 1.0.x) => : paperjoomla 26 Jul 2007, 11:59:10
-
ciao ragazzi ho fatto un sito per un concessionario
andando su cerca a questo link
http://www.unicaritalia.it/index.ph...amp;task=search
e nn riempiendo nessun campo dovrebbe darmi la lista completa dei veicoli, ma quando devo andare alla pagina successiva mi da un errore...
sapete dirmi da cosa dipende e/o come posso aggirarlo
-
Ciao Paper complimenti per il sito :)
Scusa ma il link che hai postato non porta a nulla... :-[
-
ciao grigoa,
l'80% del sito è merito vostro...
il sito è questo:
www.unicaritalia.it
devi andare su cerca
vedrai che se nn riempi nessun campo dovrebbe stampare la lista completa dei veicoli, ma quando voglio visulizzare l'altra pagina dei risultati mi da errore...
spero di essermi spiegato bene...
-
Ti sei spiegato benissimo :)
Visto l'errore, non conosco il componente.
Appena ho un attimo lo installa e provo a vedere che succede.. :-[
strano numero di item ......... Itemid=99999999 :-\
-
visto però che li stampa a 10 a 10 dovrei forse dargli qualche comando che faccia stampare un numero illimitato di veicoli cioè tutti, senza dividere in pagine, forse la porzione php da modificare è questa....
/**************************************************\
SHOW THE SEARCH FORM
\**************************************************/
function itemSearch( $option, $lists ) {
global $database, $Itemid, $mainframe, $mosConfig_live_site, $option;
?>
<table width="90%" align="center" cellpadding="5"><tr><td>
<table width="100%" cellpadding="10" class="pollstableborder"><tr><td>
<form name="searchfilter" action="<?php echo sefRelToAbs("index.php?option=com_ezautos&Itemid=$Itemid&task=results");?>" method="post">
<input type="hidden" name="option" value="com_ezautos" />
<input type="hidden" name="Itemid" value="<?php echo $Itemid;?>" />
<input type="hidden" name="task" value="results" />
<table border="0" width="100%">
<tr>
<td class="h2"><?php echo _EZAUTOS_SEARCHADV;?></td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="120" height="36"><?php echo _EZAUTOS_SEARCHPRICE;?>:</td>
<td width="157"><?php echo $lists['minprice'];?></td>
<td width="133"><?php echo $lists['maxprice'];?></td>
</tr>
<tr>
<td height="36"><?php echo _EZAUTOS_SEARCH_MAKE;?>:</td>
<td colspan="4"><?php echo $lists['make'];?></td>
</tr>
<tr>
<td height="37"><?php echo _EZAUTOS_SEARCH_MODEL;?>:</td>
<td colspan="4"><?php echo $lists['model'];?></td>
</tr>
<tr>
<td height="37"><?php echo _EZAUTOS_DDSL_TRANS;?>:</td>
<td colspan="4"><?php echo $lists['trans'];?></td>
</tr>
<tr>
<td height="38"><?php echo _EZAUTOS_VLDET_TAG;?>:</td>
<td colspan="4"><?php echo $lists['tag'];?></td>
</tr>
<tr>
<td height="40"><?php echo _EZAUTOS_SEARCH_SEARCHORD;?>:</td>
<td colspan="4"><select name="direction" class="inputbox">
<option value="ASCPRICE"><?php echo _EZAUTOS_DDSL_PRASC;?></option>
<option value="DESCPRICE"><?php echo _EZAUTOS_DDSL_PRDESC;?></option>
<option value="ASCID" selected="selected"><?php echo _EZAUTOS_DDSL_IDASC;?></option>
<option value="DESCID"><?php echo _EZAUTOS_DDSL_IDDESC;?></option>
</select></td>
</tr>
<tr>
<td height="51"><input class="button" type="submit" name="<?php echo _EZAUTOS_INCLUDES_SEARCH;?>" value="<?php echo _EZAUTOS_INCLUDES_SEARCH;?>" /></td>
<td colspan="2"> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td></tr></table>
<br /><br /><br />
</td></tr></table>
<?php
}
/**************************************************\
SHOW THE FILTERED SEARCH RESULTS
\**************************************************/
function searchFilteredResults( $option, &$rows, $pageNav ) {
global $database, $Itemid, $mainframe, $mosConfig_live_site, $ea_currencysign, $ea_thumbwidth, $ea_perpage, $ea_imagedirectory;
$num_rows=ceil( count( $rows ) / 1 );
if ($num_rows > 0) {
?>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="sectiontableheader"><?php echo _EZAUTOS_RESULTS_RESULTS;?></td>
</tr>
</table>
<?php
$k = 0;
for ($i=0, $n=count( $rows ); $i < $n; $i++) {
$row = &$rows[$i];
?>
<table border="0" width="100%" onmouseover="EZOver(this)" onmouseout="EZOut(this)" onclick="location.href='<?php echo sefRelToAbs("index.php?option=com_ezautos&Itemid=$Itemid&task=detail&id=$row->id");?>'">
<tr>
<td valign="top"> </td>
<td valign="top" width="420"><span class="h3"><?php echo $row->year.' '.$row->makename.' '.$row->modelname;?></span> ... <a href="<?php echo sefRelToAbs("index.php?option=com_ezautos&Itemid=$Itemid&task=detail&id=$row->id");?>"><strong><?php echo _EZAUTOS_READMORE;?></strong></a></td>
</tr>
<tr>
<td valign="top" align="center" width="<?php echo $ea_thumbwidth;?>"><a href="<?php echo sefRelToAbs("index.php?option=com_ezautos&Itemid=$Itemid&task=detail&id=$row->id");?>"><?php if ($row->image1) { ?><img src="components/com_ezautos/<?php echo $ea_imagedirectory;?>/th/<?php echo $row->image1;?>" border="0" hspace="15" width="<?php echo $ea_thumbwidth;?>" alt="<?php echo _EZAUTOS_PICTAG_VEHICLE;?>" /><?php }else{ ?><img src="components/com_ezautos/images/tn_noimage.jpg" border="0" hspace="15" width="<?php echo $ea_thumbwidth;?>" alt="<?php echo _EZAUTOS_PICTAG_VEHICLE;?>" /><?php } ?></a></td>
<td valign="top">
<table border="0" width="100%">
<tr>
<td align="right" width="130"><?php echo _EZAUTOS_DET_PRICE; ?></td>
<td align="center" width="20">:</td>
<td><?php echo $ea_currencysign.''.$row->price;?></td>
</tr>
<?php if ( $row->mileage ) { ?>
<tr>
<td align="right" width="130"><?php echo _EZAUTOS_DET_MILEAGE; ?></td>
<td align="center" width="20">:</td>
<td><?php echo $row->mileage;?></td>
</tr>
<?php } ?>
<?php if ( $row->engine ) { ?>
<tr>
<td align="right" width="130"><?php echo _EZAUTOS_DET_ENGSIZE; ?></td>
<td align="center" width="20">:</td>
<td><?php echo $row->engine;?></td>
</tr>
<?php } ?>
<?php if ( $row->trans ) { ?>
<tr>
<td align="right" width="130"><?php echo _EZAUTOS_DET_TRANSMISSION; ?></td>
<td align="center" width="20">:</td>
<td><?php echo $row->trans;?></td>
</tr>
<?php } ?>
<tr>
<td align="right" width="130"><?php echo _EZAUTOS_DET_AVAILABILITY; ?></td>
<td align="center" width="20">:</td>
<td><?php echo $row->availability;?></td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="sectiontableheader">
<tr>
<td><img src="components/com_ezautos/images/pixel.gif" border="0" height="2" width="1" alt="" /></td>
</tr>
</table>
<?php
}
?>
<form name="adminForm" action="index.php?option=<? echo $option;?>&task=<?php echo $_REQUEST['task'];?>&Itemid=<? echo $Itemid;?>" method="get">
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="Itemid" value="<?php echo $Itemid;?>" />
<input type="hidden" name="task" value="<?php echo $_REQUEST['task'];?>" />
<input type="hidden" name="cid" value="<?php echo $_REQUEST['cid'];?>" />
<input type="hidden" name="trans" value="<?php echo $_REQUEST['trans'];?>" />
<input type="hidden" name="tag" value="<?php echo $_REQUEST['tag'];?>" />
<input type="hidden" name="make" value="<?php echo $_REQUEST['make'];?>" />
<input type="hidden" name="model" value="<?php echo $_REQUEST['model'];?>" />
<input type="hidden" name="maxprice" value="<?php echo $_REQUEST['maxprice'];?>" />
<input type="hidden" name="minprice" value="<?php echo $_REQUEST['minprice'];?>" />
<input type="hidden" name="direction" value="<?php echo $_REQUEST['direction'];?>" />
<?php
$link='index.php?option='.$option.'&task='.$_REQUEST['task'].'&Itemid='. $Itemid;
?>
<table width='100%' border='0' cellspacing='1' cellpadding='0'>
<tr>
<td colspan="2" align="center"><?php echo $pageNav->writePagesLinks($link); ?></td>
</tr>
<tr>
<td><?php echo $pageNav->writePagesCounter();?></td><td align="right"><?php echo _EZAUTOS_LISTINGS_DISPLAYNUM;?> <?php echo $pageNav->getLimitBox($link);?></td>
</tr>
</table>
<?php
}else{
?>
<table width='100%' border='0' cellspacing='1' cellpadding='0'>
<tr>
<td colspan='2' class='sectiontableheader' width='100%'><?php echo _EZAUTOS_RESULTS_RESULTS;?></td>
</tr>
<tr>
<td class='h3'><br /><?php echo _EZAUTOS_RESULTS_NORESULTS;?></td>
</tr>
</table>
<?php
}
}
-
???
-
altrimenti sapete dirmi come faccio a far stampare allo script tutti i risultati senza suddividerli in pagine da 10...? ???
-
???
-
su un altro forum mi hanno detto che forse il problema è che si superano i 255 caratteri del $_GET
effettivamente l'indirizzo è lunghissimo...
http://www.unicaritalia.it/index.php?option=com_ezautos&Itemid=99999999&task=results&cid=&trans=&tag=&make=0&model=0&maxprice=&minprice=&direction=ASCID&limit=10&limitstart=10&username=&passwd=&option=login&op2=login&lang=italian&return=http%3A%2F%2Fwww.unicaritalia.it%2Findex.php%3Foption%3Dcom_ezautos%26Itemid%3D99999999%26task%3Dresults&message=0&force_session=1&ja026ffa21f622a26e3ce312851742045=1
-
up, qualcuno può aiutarmi?