Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/09/2010, 07:54
pablobaez
 
Fecha de Ingreso: octubre-2005
Mensajes: 129
Antigüedad: 18 años, 7 meses
Puntos: 0
De acuerdo Respuesta: caracteres raros

holaa aqui esta mi codigo completo yy no me funciona

Código:
<?php
include("data/dbapertura.php");

$CodigoPrograma=$_GET["CodigoPrograma"];
$sql= "Select * from programas where pro_publicar = 'S' and pro_codigo = '$CodigoPrograma'";
$query = mysql_query($sql,$conector);

If (mysql_num_rows($query)>0)
{
	$Titulo = $row["pro_titulo"];
	$Codigo = $row["pro_codigo"];
	$Detalle= $row["pro_detalle"];
	$Archivo= $row["pro_imagen"];
}
mysql_free_result($query);
?>

<html>
<style type="text/css">
BODY {
scrollbar-face-color: #000066;
	scrollbar-shadow-color: #ffffff;
	scrollbar-highlight-color: #000066;
	scrollbar-3dlight-color: #ffffff;
	scrollbar-darkshadow-color: #000066;
	scrollbar-track-color: #000066;
	scrollbar-arrow-color: #ffffff;
}
//-->

</style>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<link href="css/vinculos.css" rel="stylesheet" type="text/css">
<link href="css/estilos.css" rel="stylesheet" type="text/css">
<head>
<title>Documento sin t&iacute;tulo</title>
<!-- aqui esta el codigo -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<? utf8_decode($cadena); ?> 

<link href="css/backg01.css" rel="stylesheet" type="text/css">
<link href="css/textos.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#000066" leftmargin="0" topmargin="15" marginwidth="0" marginheight="0">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="190" valign="top"> 
    	<?php
    		include("IncludeMenuCapacitacion.php");
    	?>
    	</td>
    <td align="center" valign="top">
<table width="680" border="0" cellpadding="3" cellspacing="0" class="contblanco">
        <tr> 
          <td width="586" height="42"><img src="images/titulos/capacitacion.jpg" width="460" height="32"></td>
        </tr>
        <tr> 
          <td valign="top" class="titblanco1">&nbsp;</td>
        </tr>
        <tr> 
          <td valign="top" class="titblanco1"><?=$Titulo?></td>
        </tr>
        <tr> 
          <td align="right" valign="top">
		  
		  <?php if (Trim($Archivo) <> "") {?>
		  		<a href="#" class="vermas" onClick="MM_openBrWindow('ImagenCurso.php?Imagen=<?=$Archivo?>&NombrePrograma=<?=$Titulo?>','','scrollbars=yes,width=885,height=500')">ver calendario completo</a>
          <?php }?>
		</td>
		</tr>
        <tr> 
          <td valign="top"><strong>PRESENTACI&Oacute;N </strong> <p><?=str_replace(chr(13),"<br>",$Detalle)?></p></td>
        </tr>
        <tr>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr> 
          <td valign="top"><strong>
		  <?php if ($_REQUEST["CodigoPrograma"] == 1) { print("CURSOS &Aacute;REA DE AUTOMATIZACION"); } else{ print("CURSOS &Aacute;REA DE ACCIONAMIENTO");}?>
		  </strong></td>
        </tr>
        <tr> 
          <td valign="top">&nbsp;</td>
        </tr>

<?php
$sql =  "Select * from cursos where cur_publicar = 'S' and pro_codigo = ".$_REQUEST["CodigoPrograma"]." order by cur_orden";
$query = mysql_query($sql,$conector);

while ($row = mysql_fetch_array($query)) {
	
	$TituloCurso = $row["cur_titulo"];
	$CodigoCurso = $row["cur_codigo"];
?>
        <tr> 
          <td valign="top"><a href="DetalleCurso.php?CodigoCurso=<?=$CodigoCurso?>&NombrePrograma=<?=$Titulo?>&Archivo=<?=$Archivo?>" target="contenido" class="botonblanco2"><?=$TituloCurso?></a></td>
        </tr>
<?php
}
mysql_free_result($query);
?>

      </table>
    </td>
  </tr>
</table>
</body>
</html>
<?php
include("data/dbcierre.php");
?>
__________________
Pablo Baez