Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/01/2014, 11:42
caroandrea333
 
Fecha de Ingreso: enero-2014
Mensajes: 8
Antigüedad: 10 años, 4 meses
Puntos: 0
Respuesta: como pasar un parametro por la URL

yo tengo hehco esto:
{source}
<!-- You can place html anywhere within the source tags -->
<?php
$user =JFactory::getUser();
if (!$user->guest) {

echo '<font color=#2b60c1> Usuario: ' . $user->username . '</font><br />';
echo '<font color=#2b60c1> Nombre: ' . $user->name . '</font><br />';
echo '<font color=#2b60c1> Localidad: ' . $user->Sexo . '</font><br />';
echo '<font color=#2b60c1> Usuario ID: ' . $user->id . '</font><br />';
}
?>
{/source}

CONSOLIDADO



CRÉDITOS

{source}
<?php
$db = JFactory::getDBO();
$query = "SELECT fecha_proc,
nombre,
saldo, id_cred_cab
from #__credito_cab WHERE id_user = $user->id";
$database->setQuery($query);
$results = $db->loadObjectList();
?>

<table width="690" border="1" bordercolor=#17618E cellspacing="1" cellpadding="1">
<tr>
<th width="65" scope="col"><FONT COLOR=#C17411>Fecha Procesamiento</FONT></th>
<th width="120" scope="col"><FONT COLOR=#C17411>Nombre</FONT></th>
<th width="95" scope="col"><FONT COLOR=#C17411>Saldo</FONT></th>
<th width="75" scope="col"><FONT COLOR=#C17411>clave</FONT></th>
<th width="75" scope="col"><FONT COLOR=#C17411>Ver Detalle</FONT></th>


</tr>

<?php
if($results){
foreach($results as $result)
{
echo '<tr align="center" font color="#000">';
echo "<td><FONT COLOR=#000>";
echo $result->fecha_proc;
echo "</FONT><\td>";
echo "<td><FONT COLOR=#000>";
echo $result->nombre;
echo "</FONT><\td>";
echo "<td><FONT COLOR=#000>";
echo number_format($result->saldo,2,",",".");
echo "</FONT><\td>";
echo "<td><FONT COLOR=#000>";
echo $id_cab=$result->id_cred_cab;
echo "</FONT><\td>";
echo "<td><FONT COLOR=#000>";
echo '<a href="index.php?option=com_content&view=article&la yout=edit&id=91&$id_cab=".$id_cred_cab["id_cred_cab"]."\">';
echo '<img src="images/imagen OK2.jpg"\>';
echo "</FONT><\td>";
echo "<\tr>";
}
}
?>

</table>

pero al momento de hacer click en ver detalle no se muestran los datos, porq no se pasa el valor del id_cred_cab para hacer la referencia a la tabla detalle, ahi tengo problemas
gracias por su ayuda

Última edición por caroandrea333; 06/01/2014 a las 11:52