File: /home/ednermusika/ednergranados.com/admin/curriculum_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;
}
}
mysql_select_db($database_con_edner, $con_edner);
$query_curriculum = "SELECT cur_consecutivo, usu_consecutivo, DATE_FORMAT(cur_fecha, '%d/%m/%Y') as cur_fecha, cur_desc, CASE cur_activo WHEN 1 THEN 'SI' WHEN 0 THEN 'NO' END as cur_activo FROM curriculum ORDER BY cur_consecutivo DESC";
$curriculum = mysql_query($query_curriculum, $con_edner) or die(mysql_error());
$row_curriculum = mysql_fetch_assoc($curriculum);
$totalRows_curriculum = mysql_num_rows($curriculum);
?>
<!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>Curriculum</h1></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<!--<td><a href="curriculum_altas.php" class="ligas_menu_principal">« Nueva curicia »</a></td>-->
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td><hr class="hr_principal" /></td>
</tr>
</table>
<blockquote>
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr>
<td width="28%"><h4>Descripción corta</h4></td>
<td width="10%"><h4>Fecha</h4></td>
<td width="11%"><h4>Activo</h4></td>
<td width="8%"><h6> </h6></td>
<td width="8%"> </td>
</tr>
<tr>
<td colspan="8"><hr class="hr_principal" /></td>
</tr>
<?php do { ?>
<?php if ($totalRows_curriculum > 0) { // Show if recordset cur empty ?>
<tr>
<td><p><?php echo $row_curriculum['cur_desc']; ?></p></td>
<td><p><?php echo $row_curriculum['cur_fecha']; ?></p></td>
<td><p><?php echo $row_curriculum['cur_activo']; ?></p></td>
<td><a href="curriculum_cambios.php?cur_consecutivo=<?php echo $row_curriculum['cur_consecutivo']; ?>" class="ligas_menu_interiores">« Modificar »</a></td>
<!--<td><a href="curriculum_bajas.php?cur_consecutivo=<?php echo $row_curriculum['cur_consecutivo']; ?>" class="ligas_ajustes">« Eliminar »</a></td>-->
</tr>
<?php } // Show if recordset cur empty ?>
<tr>
<td colspan="8"> </td>
</tr>
<tr>
<td colspan="8"><hr width="100%" size="1" class="hr_renglones" /></td>
</tr>
<?php } while ($row_curriculum = mysql_fetch_assoc($curriculum)); ?>
</table>
</blockquote>
</body>
</html>
<?php
mysql_free_result($curriculum);
?>
<!--
<form method="POST" enctype="multipart/form-data" name="form1" id="form1">
<tr valign="baseline">
<textarea name="curro" rows="30" cols="80"><?php $archivo = file_get_contents("curriculum_edner.txt"); echo $archivo ?></textarea>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"><h4> </h4></td>
<td><input name="guardar" type="button" class="boton_panel" id="guardar" onclick="MM_callJS('f_enviar();')" value="Guardar Cambios" />
<input name="cancelar" type="button" class="boton_panel" id="cancelar" onclick="MM_callJS('history.back();')" value="Cancelar" /></td>
</tr>
</form>
-->