File: /home/ednermusika/ednergranados.com/admin/galeria_detalle_altas.php
<?php
//initialize the session
if (!isset($_SESSION)) {
session_start();
}
?>
<?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 = "-1";
if (isset($_GET['gal_consecutivo'])) {
$colname_galeria = $_GET['gal_consecutivo'];
}
mysql_select_db($database_con_edner, $con_edner);
$query_galeria = sprintf("SELECT gal_consecutivo, gal_titulo FROM galeria WHERE gal_consecutivo = %s", GetSQLValueString($colname_galeria, "int"));
$galeria = mysql_query($query_galeria, $con_edner) or die(mysql_error());
$row_galeria = mysql_fetch_assoc($galeria);
$totalRows_galeria = mysql_num_rows($galeria);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML5 File Drag and Drop Upload with jQuery and PHP | Tutorialzine Demo</title>
<!-- Our CSS stylesheet file -->
<link rel="stylesheet" href="assets/css/styles.css" />
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><h1>Fotos de <?php echo $row_galeria['gal_titulo']; ?></h1></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href="galeria_detalle_admin.php?gal_consecutivo=<?php echo $row_galeria['gal_consecutivo']; ?>" class="ligas_menu_principal">« Regresar »</a></td>
</tr>
</table>
<div id="dropbox">
<span class="message">Arrastrar las imágenes que se desean subir</span>
</div>
<input id="parametro" name="parametro" value="<?php echo $row_galeria['gal_consecutivo']; ?>" type="hidden"/>
<input name="gal_titulo" type="hidden" id="gal_titulo" value="<?php echo $row_galeria['gal_titulo']; ?>">
<!-- Including The jQuery Library -->
<script src="http://code.jquery.com/jquery-1.6.3.min.js"></script>
<!-- Including the HTML5 Uploader plugin -->
<script src="assets/js/jquery.filedrop.js"></script>
<!-- The main script file -->
<script src="assets/js/script.js"></script>
</body>
</html>
<?php
mysql_free_result($galeria);
?>