'){
$len = strlen($text);
if ($len > $wrap){
$h = '';
$lastWhite = 0;
$lastChar = 0;
$lastBreak = 0;
while ($lastChar < $len){
$char = substr($text, $lastChar, 1);
if (($lastChar - $lastBreak > $wrap) && ($lastWhite > $lastBreak)){
$h .= substr($text, $lastBreak, ($lastWhite - $lastBreak)) . $break;
$lastChar = $lastWhite + 1;
$lastBreak = $lastChar;
}
/* You may wish to include other characters as valid whitespace... */
if ( $char == chr(13) || $char== chr(10) ){
$lastWhite = $lastChar;
}
$lastChar = $lastChar + 1;
}
$h .= substr($text, $lastBreak);
}
else{
$h = $text;
}
return $h;
}
if ($id) {
$sql = "select * from publicaciones where id=$id";
$proye = "PUBLICACIONES";
$tabla = "publicaciones";
include("../sinfo/conect.inc");
$result = mysql_query($sql);
if ($myrow = mysql_fetch_array($result)) {
//Agrego enters a Otros
$otros ="
".$myrow["Otros"];
$w=30;
$otros = textwrap($otros, $w);
//Tipo de Publicacion
$sql = "Select * from tipo where id=".$myrow[tipo];
$resultr = mysql_query($sql,$db);
if ($myrowr = mysql_fetch_array($resultr)) {
do {
$optbox2 = $myrowr[titulo];
} while ($myrowr = mysql_fetch_array($resultr));
} else {
$optbox2= "No Asignado";
}
///Cargo Areas
$sql = "select apublica.* , area.titulo as areatit from apublica left join area on apublica.idarea = area.id where idproyecto=$id";
$result2 = mysql_query($sql,$db);
$areat="";
if ($myrow2 = mysql_fetch_array($result2)) {
do {
$areat =$areat.$myrow2[areatit].",";
} while ($myrow2 = mysql_fetch_array($result2));
} else {
$areat = "Area No Asignada";
}
//Cargo Sedes
$sql = "Select * from sedes where id=$myrow[eemisora]";
$resultrs = mysql_query($sql,$db);
if ($myrowrs = mysql_fetch_array($resultrs)) {
do {
$optbox4 = $myrowrs["nombre"];
} while ($myrowrs = mysql_fetch_array($resultrs));
} else {
$optbox4= "No Asignada";
}
if ($myrow[foto]!=''){
$foto="
";
}else {
$foto="Sin Foto";
}
if ($myrow[archivobajar]!=''){
$doc="
".$myrow[textolink]."";
}else {
$doc="";
}
}
?>
Publicaciones
|
|
|
|
Autores:
|
|
|
Edición |
|
|
Fecha: |
|
|
CARIS
(reducido) |
|
|
Est.
Emisora |
|
|
ISBN
|
|
|
Area
Temática |
|
|
|
|
|
|
|
|