HEX
Server: Apache
System: Linux pdx1-shared-a1-06 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: ednermusika (2886498)
PHP: 8.4.2
Disabled: NONE
Upload Files
File: /home/ednermusika/ednergranados.com/admin/galeriavideos_detalle_admin.php
<?php require_once('../Connections/con_edner.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$colname_galeria_nombre = "-1";
if (isset($_GET['gav_consecutivo'])) {
  $colname_galeria_nombre = $_GET['gav_consecutivo'];
}
mysql_select_db($database_con_edner, $con_edner);
$query_galeria_nombre = sprintf("SELECT gav_consecutivo, gav_titulo FROM galeria_video WHERE gav_consecutivo = %s", GetSQLValueString($colname_galeria_nombre, "int"));
$galeria_nombre = mysql_query($query_galeria_nombre, $con_edner) or die(mysql_error());
$row_galeria_nombre = mysql_fetch_assoc($galeria_nombre);
$totalRows_galeria_nombre = mysql_num_rows($galeria_nombre);

$colname_galeria_videos = "-1";
if (isset($_GET['gav_consecutivo'])) {
  $colname_galeria_videos = $_GET['gav_consecutivo'];
}
mysql_select_db($database_con_edner, $con_edner);
$query_galeria_videos = sprintf("SELECT gav_consecutivo, gvd_consecutivo, gvd_titulo, gvd_descripcion, gvd_ruta, gvd_thumbnail, gvd_video, CASE gvd_activo WHEN 1 THEN 'SI' WHEN 0 THEN 'NO' END as gvd_activo FROM galeria_video_detalle WHERE gav_consecutivo = %s", GetSQLValueString($colname_galeria_videos, "int"));
$galeria_videos = mysql_query($query_galeria_videos, $con_edner) or die(mysql_error());
$row_galeria_videos = mysql_fetch_assoc($galeria_videos);
$totalRows_galeria_videos = mysql_num_rows($galeria_videos);

//initialize the session
if (!isset($_SESSION)) {
  session_start();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="css/admin.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><h1>Videos de <?php echo $row_galeria_nombre['gav_titulo']; ?></h1></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  
  <tr>
    <td><a href="galeriavideos_detalle_altas.php?gav_consecutivo=<?php echo $row_galeria_nombre['gav_consecutivo']; ?>" class="ligas_menu_principal">&laquo; Nuevo video &raquo;</a></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><a href="galeriavideos_admin.php" class="ligas_menu_principal">&laquo; Regresar &raquo;</a></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><hr class="hr_principal" /></td>
  </tr>
</table>
<blockquote>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="19%"><h4>T&iacute;tulo</h4></td>
      <td width="42%"><h4>Video</h4></td>
      <td width="13%"><h4>Activo</h4></td>
      <td width="8%"><h6>&nbsp;</h6></td>
      <td width="8%"><h6>&nbsp;</h6></td>
    </tr>
     <tr>
    	<td colspan="5"><hr class="hr_principal" /></td>
  	</tr>
    <?php do { ?>
        <?php if ($totalRows_galeria_videos > 0) { // Show if recordset not empty ?>
        <tr>
          <td><p><?php echo $row_galeria_videos['gvd_titulo']; ?></p></td>
          <td><div class="video-ajustar"><?php echo $row_galeria_videos['gvd_video']; ?></div></p></td>
          <td><p><?php echo $row_galeria_videos['gvd_activo']; ?></p></td>
          <td><a href="galeriavideos_detalle_cambios.php?gav_consecutivo=<?php echo $row_galeria_videos['gav_consecutivo']; ?>&amp;gvd_consecutivo=<?php echo $row_galeria_videos['gvd_consecutivo']; ?>" class="ligas_menu_interiores">&laquo; Modificar &raquo;</a></td>
          <td><a href="galeriavideos_detalle_bajas.php?gav_consecutivo=<?php echo $row_galeria_videos['gav_consecutivo']; ?>&amp;gvd_consecutivo=<?php echo $row_galeria_videos['gvd_consecutivo']; ?>" class="ligas_ajustes">&laquo; Eliminar &raquo;</a></td>
        </tr>
          <?php } // Show if recordset not empty ?>

      <tr>
      <td colspan="5">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="5"><hr class="hr_renglones" /></td>
    </tr>
    <?php } while ($row_galeria_videos = mysql_fetch_assoc($galeria_videos)); ?>
  </table>
</blockquote>
</body>
</html>
<?php
mysql_free_result($galeria_nombre);

mysql_free_result($galeria_videos);
?>