Viewing file: cateedi.php (4.76 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<title>Editor de Categorias, Sitio del DAMA</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
select { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #333333; background-color: #FDFEF1}
input { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #333333; background-color: #FDFEF1}
a { text-decoration: none}
a:hover { text-decoration: underline}
-->
</style>
</head>
<?php
$cinco = isset($acc3);
if ($cinco == true and $acc3 == 3) {
include('conect/conect.php');
$query ="DELETE FROM cate WHERE id='$id'";
$result = mysql_query($query,$db);
}
$cuatro = isset($acc2);
if ($cuatro == true and $acc2 == 2) {
$kos = strlen($last);
$kosi = $kos - 2;
$numero = substr($last, $kosi, 2);
$numero = $numero + 1;
$lennu = strlen($numero);
if ($lennu == 1) {
$numet = "0" . $numero;
}else{
$numet = $numero;
}
$numet = $catparent . $numet;
include('conect/conect.php');
$query ="INSERT INTO cate VALUES('','$numet','$add','$templa')";
$result = mysql_query($query,$db);
//echo "$numet";
}
?>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" link="#0000FF" vlink="#0000FF" alink="#0000FF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%"> </td>
<td width="34%">
<table width="100%" border="0" cellspacing="0" cellpadding="6">
<tr>
<td><img src="sitebanner.gif" width="543" height="104"></td>
</tr>
<tr>
<td valign="top"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Editor
de Categorias<br>
</b></font><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Adición
y elminiación del árbol de categorias</font><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>
</b></font></div></td>
</tr>
<tr>
<td> <table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="50%" colspan="2"> <table width="100%" border="1" cellspacing="0" cellpadding="8" bordercolor="#999999">
<tr>
<td bgcolor="#D7D7D7" valign="top">
<?php
include('conect/conect.php');
$consul = "SELECT *
FROM cate where id=$id";
//echo $id;
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
//echo $num_filas;
$myrow = mysql_fetch_array($result);
$tema = $myrow["tema_desc"];
$req = $myrow["carpeta_template"];
?>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="plus.gif" width="12" height="12">
Editar los datos de una categoria</font><br>
<font face="Verdana, Arial, Helvetica, sans-serif"><font size="1">--------------------------------------------</font></font>
</p>
<form name="form2" method="post" action="reqcate.php">
<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Require:</font>
<input name="templa" type="text" id="templa" value="<?php echo $req; ?>">
</p>
<p>
<input name="add" type="text" value="<?php echo $tema; ?>" size="40">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input type="hidden" name="acc8" value="8">
<input type="hidden" name="id2" value="<?php echo $id; ?>">
</font>
<input type="submit" name="Submit2" value="Guardar Cambios">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input name="user" type="hidden" id="user" value="<?php echo $user; ?>">
</font> </p>
</form></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="footer.gif" width="543" height="36"></td>
</tr>
<tr>
<td> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Departamento
Técnico Administrativo del Medio Ambiente DAMA<br>
Sistema de Información Ambiental, SIA-DAMA<br>
Módulo Interno de Administración.</font></div></td>
</tr>
</table>
</td>
<td width="33%"> </td>
</tr>
</table>
</body>
</html>
|