![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/10/2009, 09:19
|
| | Fecha de Ingreso: octubre-2009
Mensajes: 100
Antigüedad: 15 años, 4 meses Puntos: 0 | |
Como dentro de un if meter un Switch - Solucionado- Amigos tengo el siguiente Codigo
<?php
if($row->deals =="1"){
echo '
<div id="elqcontienedeal"><br>
<div id="titulodeal"><div id="markdeal"></div><span style="text-decoration:underline;">'
.$row->name.'<br><br>'.$row->refprop.
'</span><span style="color:#2576BB; text-decoration:none; font-size:14px; font-weight:normal;">'
.$row->city.'</span></div><?PHP
switch ($row->icon_type)
{
case'smallicon.png':
echo'<div id="starses"></div>';
break;
case'standard.png':
echo'<div id="starses"><img src="images/properties/starsgray.png" width="127" height="33" /></div>';
break;
case'largeicon.png':
echo'<div id="starses"><img src="images/properties/stars.png" width="127" height="33" /></div>';
break;
}
?>
<div id="starsdeal"><img src="images/properties/stars.png" width="127" height="33" /></div>
<div id="comparandodeal"><input name="" type="checkbox" value="" /> Compare</div>
<div id="citydeal"><div id="markadeal"></div><div id="titudeal">Free Night Valued at USD $400</div></div>
<div id="lineadeal"></div>';
}else{
echo 'otra cosa'
pero no se como llamar el switch
dentro del if
Última edición por TavoRossal; 22/10/2009 a las 14:22
Razón: Problema Solucionado
|