Ver Mensaje Individual
  #6 (permalink)  
Antiguo 14/09/2006, 13:19
mancemo
 
Fecha de Ingreso: marzo-2006
Mensajes: 194
Antigüedad: 19 años
Puntos: 1
variable

hola, ya lo he hecho, y en pamntalla si me muestra pero no pasa dato en variable

el codigo que tengo total es

Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<?
require_once('./inc/header.php');
?>
<head>
<style type="text/css">

BODY {



scrollbar-face-color: #FFCCFF;

scrollbar-shadow-color: #000000;

scrollbar-highlight-color: #FDEDF9;

scrollbar-3dlight-color: #FDEDF9;

scrollbar-darkshadow-color: #000000;

scrollbar-track-color: #FDEDF9;

scrollbar-arrow-color: #000000;

}

</style>

<title>Somos Malas, Bonitas pero siempre malas....</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
    background-image: url(../videos/fondo.gif);
}
.Estilo1 {
    font-family: Verdana;
    font-size: 16px;
    color: #FF3333;
}
.Estilo2 {
    font-family: Verdana;
    font-size: 14px;
    color: #000066;
}
.Estilo3 {
    font-family: Verdana;
    font-size: 16px;
    color: #330099;
    font-weight: bold;
    font-style: italic;
}
.Estilo4 {
    font-family: Verdana;
    font-size: 14px;
    color: #660033;
    font-weight: bold;
}
.Estilo6 {font-family: Verdana; font-size: 14px; color: #990000; }
-->
</style>
 
</head>

<body>
<div align="center">
  <table width="800" border="0" align="center">
    <tr>
      <td width="200" height="350"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="350">
          <param name="movie" value="../images/dedo.swf">
          <param name="quality" value="high">
          <embed src="../images/dedo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="350"></embed>
      </object></td>
      <td width="600" height="1720" rowspan="6" align="center" valign="top"><table width="591" border="0">
          <tr>
            <td width="585"><center>
              <p><img src="images/videos_INTER.jpg" width="580" height="100"></p>
              <p><br>
                </p>
            </center></td>
          </tr>
          <tr>
            <td>
            <script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) {
   derecha=(screen.width-450)/2;
    arriba=(screen.height-450)/2;
    features = features+',left='+derecha+',top='+arriba;
    window.open(theURL,winName,features);
}
//-->
</script>

<?php

function simplexml2array($xml) {
    if (
get_class($xml) == 'SimpleXMLElement') {
        
$attributes $xml->attributes();
        foreach(
$attributes as $k=>$v){
            if (
$v$a[$k] = (string) $v;
        }
        
$x $xml;
        
$xml get_object_vars($xml);
    }
    if (
is_array($xml)) {
        if (
count($xml) == 0) return (string) $x// for CDATA
        
foreach($xml as $key=>$value) {
            
$r[$key] = simplexml2array($value);
            
// original line instead of the following if statement:
            //$r[$key] = simplexml2ISOarray($value);
            
if ( !is_array$r[$key] ) ) $r[$key] = utf8_decode$r[$key] );
        }
        if (isset(
$a)) $r['@'] = $a;    // Attributes
        
return $r;
    }
    return (string) 
$xml;
}


include 
'./xml/mosvideos.php';

$xml simplexml_load_string($xmlstr);
$cantidad 21;

$nump $_REQUEST["nump"];
if (empty(
$nump))
{
    
$cont=0;
}
else
{
    
$cont=$nump*1;
}
$numfin $cont +5;
if (
$numfin $cantidad)
{
    
$numfin=$cantidad;
}
$numpag 25;


while (
$cont $numfin)
{
$url $xml->video[$cont]->foto1;
?><img src="<?echo "$url"?>" width="200" height="150"><?
$url2 
$xml->video[$cont]->fotox2;
?><img src="<?echo "$url2"?>" width="190" height="150"><?
$url3 
$xml->video[$cont]->fotox1;
?><img src="<?echo "$url3"?>" width="200" height="150"><?
$title 
$xml->video[$cont]->nombre;
$tamano $xml->video[$cont]->peso;
$categoria $xml->video[$cont]->descripcion;
$duracion $xml->video[$cont]->duracion;
$id $xml->video[$cont]->id_video;
$cod$id;
echo 
$cod

//$url = $xml->video[$cont]->url;
//$descarga = $xml->video[$cont]->descarga;
//$archivo = $descarga;

?>
                <table width="590" border="1" bordercolor="#FF3366" bgcolor="#FFCCFF">
                <tr>
                  <td colspan="4"><span class="Estilo3">TITULO : <?echo "$title";?> </span></td>
                </tr>
                <tr>
                  <td width="147"><span class="Estilo4">DESCRIPCION</span></td>
                  <td width="186" colspan="3"><span class="Estilo6"> <?echo "$categoria";?> </span></td>
                  </tr>
                <tr>
                  <td class="Estilo4">DURACION</td>
                  <td class="Estilo6"><?echo "$duracion";?> </td>
                <td width="197" class="Estilo4">TAMA&Ntilde;O</td>
                  <td width="232" class="Estilo6"><?echo "$tamano";?></td>
                </tr>
                <tr>
<td height="56" colspan="4" class="Estilo4">DESCARGATELO YA CLICK <a href="#"onClick="MM_openBrWindow('prueba.php?id_video=<? echo $cod;?>','Contacto','status=yes,scrollbars=yes,resizable=yes,width=600,height=230')">     AQUI</a>     </td>
                </tr>
</table>
<?
$cont 
$cont +1;
}

?><center><?
$paginas 
$numpag 5;
$contador 1;
$nump=0;
while (
$contador $paginas +1)
{
    
?>
    <a href="videos.php?nump=<?=$nump;?>"><?
    
echo $contador;
    
?></a>
    <?
    $nump 
$nump+5;
    
$contador $contador +1;
}
?></center><?
?>


            </td>
          </tr>
      </table>

      </td>
    </tr>
    <tr>
      <td width="200" height="270"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="270">
          <param name="movie" value="../images/latina.swf">
          <param name="quality" value="high">
          <embed src="../images/latina.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="270"></embed>
      </object></td>
    </tr>
    <tr>
      <td width="200" height="350"><img src="../images/estrella.jpg" width="200" height="350"></td>
    </tr>
    <tr>
      <td width="200" height="250"><img src="../images/200.jpg" width="200" height="250"></td>
    </tr>
    <tr>
      <td height="300"><img src="../images/suisa.jpg" width="200" height="300"></td>
    </tr>
    <tr>
      <td width="200" height="200"><img src="../images/quitamelo.jpg" width="200" height="200"></td>
    </tr>
  </table>
  <p>
    <head>
    <?
require_once('./inc/footer.php');
?>
</p>
</div>
</body>
</html>