Viewing file: addlink.php (16.12 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<title>Editor de Categorias, Sitio de Bogota.gov</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}
textarea { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #333333; background-color: #FDFEF1}
-->
</style>
</head>
<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 colspan="2"><img src="sitebanner.gif" width="543" height="104"></td>
</tr>
<tr>
<td width="50%" valign="top">
<div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Agregar
Vinculos <br>
</b></font><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Módulo
de adición de vinculos para ser usados<br>
en los distintas secciones del sitio.</font></div>
</td>
<td width="50%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Se
agregará el vinculo a las siguientes categorias:<br>
<?php
$which = explode("-", $uno);
$aq = 0;
foreach ($which as $v) {
include('conect/conect.php');
if ($aq >= 1) {
$des = strlen($v);
$des1 = $des / 2;
$nombre1 = "";
for ($i = 1; $i <= $des1; $i++){
$v = substr($v, 0, $des);
//echo $v;
//echo $des;
$consul = "SELECT *
FROM cate where tema_id='$v'";
$result = mysql_query($consul,$db);
$myrow = mysql_fetch_array($result);
$nombre = $myrow["tema_desc"];
$des = $des - 2;
$nombre1 = $nombre . "," . $nombre1;
}
echo "<b>$aq.</b> $nombre1<br>";
}
$aq++;
}
?>
</font></td>
</tr>
<tr>
<td colspan="2">
<table width="100%" border="1" cellspacing="0" cellpadding="14" bordercolor="#74BABA" bgcolor="#D5EAEA">
<tr>
<td>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Llene
el siguiente formulario, los campos marcados con "<b><font color="#FF0000">*</font></b>",
son obligatorios.</font></p>
<form name="form1" method="post" action="../php/reqsadd.php" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="plus.gif" width="12" height="12"></font>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Nombre:<b><font color="#FF0000">*</font></b></font></td>
<td colspan="4"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input type="text" name="nombre" size="40">
<select name="perfil">
<option value="0">Normal</option>
<option value="1">Eventos</option>
<option value="2">Publicaciones</option>
<option value="3">Incentivos</option>
<option value="4">Contenido Educativo</option>
</select>
</font></td>
</tr>
<tr>
<td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="plus.gif" width="12" height="12"></font>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Descripción:</font></td>
<td colspan="4"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<textarea name="descripcion" cols="55" rows="4"></textarea>
</font></td>
</tr>
<tr>
<td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="plus.gif" width="12" height="12"></font>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Texto:</font></td>
<td colspan="4"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<textarea name="texto" cols="55" rows="8"></textarea>
</font></td>
</tr>
<tr>
<td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="plus.gif" width="12" height="12"></font>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Vinculo:<b><font color="#FF0000">a</font></b></font></td>
<td colspan="4"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input name="link" type="file" id="link">
<select name="linkclo" id="linkclo">
<option value="0">Externo</option>
<option value="1">Int. Documento</option>
<option value="2">Int. Texto</option>
</select>
</font></td>
</tr>
<tr>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="plus.gif" width="12" height="12"></font>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Vinculo:<b><font color="#FF0000">b</font></b></font></td>
<td colspan="4"><input name="linkweb" type="text" id="linkweb" size="35">
</td>
</tr>
<tr>
<td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Tipo
de Información: </font></td>
<td width="25%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="1">
<select name="tipo_info">
<option value="E">Estática</option>
<option value="D">Dinámica</option>
<option value="S">Servicio en Línea</option>
</select>
</font> <font face="Verdana, Arial, Helvetica, sans-serif" size="1">
</font></td>
<td width="25%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Prioridad:(<a href="#">?</a>)</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><font color="#FF0000">*</font></b></font></td>
<td width="25%" colspan="2"> <font face="Verdana, Arial, Helvetica, sans-serif" size="1">
</font> <font face="Verdana, Arial, Helvetica, sans-serif" size="1">
<select name="priority">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
</select>
</font></td>
</tr>
<tr>
<td colspan="2" rowspan="2" bgcolor="#CDDCFE"> <font face="Verdana, Arial, Helvetica, sans-serif" size="1"><strong>>></strong>
Si el vinculo tiene caracteristicas especiales como
temporalidad, use la fecha para indicar hasta cuando
se mantiene al aire. </font></td>
<td width="25%" bgcolor="#FDEACC"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Incluye
imagenes?</font></td>
<td width="25%" colspan="2" bgcolor="#FDEACC"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">
<select name="graphic">
<option value="0">No</option>
<option value="1">Si</option>
</select>
</font></td>
</tr>
<tr>
<td colspan="3" valign="middle" bgcolor="#F9DEAC"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Seleccione
sólo imagenes en formato (<b>.jpg</b>)</font></div></td>
</tr>
<tr>
<td colspan="2" bgcolor="#E7F5FE"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Requiere
Fecha?</font> <font face="Verdana, Arial, Helvetica, sans-serif" size="1">
<select name="suj_a_fecha">
<option value="0">No</option>
<option value="1">Si</option>
</select>
</font></td>
<td colspan="3" bgcolor="#FDEACC"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Archivo:</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input type="file" name="fotolink" size="15">
</font> <font face="Verdana, Arial, Helvetica, sans-serif" size="1">
</font></td>
</tr>
<tr>
<td colspan="2" bgcolor="#E7F5FE"> <p><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Fecha:</font>
<select name="dias">
<option value="#">NO</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="mes">
<option value="#">NO</option>
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11">Noviembre</option>
<option value="12">Diciembre</option>
</select>
<select name="ano">
<option value="#">NO</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
</select>
</td>
<td colspan="3" bgcolor="#B7DBDB"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input name="normas" type="hidden" id="normas" value="0">
<input name="estado" type="hidden" id="estado" value="0">
<input name="alcance" type="hidden" id="alcance" value="0">
<input name="entidad" type="hidden" id="entidad" value="0">
<input name="english_ver" type="hidden" id="english_ver" value="0">
<input type="hidden" name="temas_id" value="<?php echo $uno; ?>">
<input type="submit" name="Submit" value="Agregar el Vinculo...">
</font></div></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><img src="footer.gif" width="543" height="36"></td>
</tr>
<tr>
<td colspan="2">
<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>
|