Viewing file: contenido_links_asignacion.php (14.48 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$ia = isset($accion);
if ($ia == false) {
$accion = "x";
}
include('setup_administracion.php');
include('../clases_herramientas/include_acciones.php');
include('pass.php');
$id_app = 44;
?>
<script language="JavaScript">
<!--
function up1() {
b = document.form5.categoria_id.value;
a = document.form5.lista_categoria_id.value;
a = b + "-" + a;
document.form5.categoria_id.value = a;
}
function up2() {
b = document.form8.categoria_id.value;
a = document.form8.lista_categoria_id.value;
a = b + "-" + a;
document.form8.categoria_id.value = a;
}
//-->
</script>
<script language="Javascript1.2">
//Directory must end with a '/'
//Examples:
// AK_editor_url = "TextAreaPro/";
AK_editor_url = "";
document.write('<scr' + 'ipt src="' + AK_editor_url+ 'wysiwyg.js" language="Javascript1.2"></scr' + 'ipt>');
</script>
<link href="<?php echo $archivo_css; ?>" rel="stylesheet" type="text/css">
<title><?php echo $nombre_pagina; ?></title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<body bgcolor="<?php echo $color_fondo; ?>" leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td bgcolor="<?php echo $color_fondo_banner; ?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25%" valign="bottom"><img src="<?php echo $imagen_banner; ?>" width="<?php echo $ancho_banner; ?>" height="<?php echo $alto_banner; ?>"></td>
<td width="50%" valign="bottom" class="texto"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="texto">
<tr>
<td width="25%"><?php include('light_bus.php'); ?><img src="../imagenes/user.gif" width="22" height="28">UR:
<?php echo $user; ?></td>
<td width="25%" align="right"><a href="<?php echo $home_administrador; ?>"><img src="../imagenes/home.gif" alt="Ir al menú principal" width="32" height="29" border="0"></a><a href="#" onClick="MM_callJS('history.go(-1);')"><img src="../imagenes/back.gif" alt="Regresar" width="32" height="29" border="0"></a><a href="#"><img src="../imagenes/help_big.gif" alt="Ayuda General" width="34" height="29" border="0" onClick="MM_openBrWindow('aviso.php?tipo=2&idapp=<?php echo $id_app; ?>','','scrollbars=yes,width=400,height=300')"></a></td>
</tr>
</table></td>
<td width="25%" align="right" valign="bottom" class="texto"> </td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="<?php echo $color_fondo_cuerpo; ?>"><table width="100%" border="0" cellspacing="0" cellpadding="6" class="texto">
<tr>
<td><form name="form4" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="6" class="texto">
<tr>
<td> </td>
<td align="left"><strong>Seleccionar Área de Contenido</strong></td>
<td> </td>
</tr>
<tr>
<td width="25%"> </td>
<td align="center">Áreas Permitidas:
<select name="categoria_id">
<?php $control = new tree_simple("%", $x_y, $user); ?>
</select> <input type="submit" name="Submit4" value="Ir">
<input name="id_app" type="hidden" id="id_app3" value="<?php echo $id_app; ?>">
<input name="links_id_parent" type="hidden" id="id_app3" value="<?php echo $links_id_parent; ?>">
<input name="accion" type="hidden" id="accion4" value="5">
<input name="x_y" type="hidden" id="accion" value="<?php echo $uid->UID; ?>">
<input name="user" type="hidden" id="accion" value="<?php echo $user; ?>">
</td>
<td width="25%"> </td>
</tr>
</table>
</form></td>
</tr>
<?php if ($accion == "ins_" or $accion == "edi_") { ?>
<tr>
<td align="center"><a href="contenido_links_administracion.php?user=<?php echo $user; ?>&x_y=<?php echo $x_y; ?>&links_id=<?php echo $links_id_parent; ?>&accion=-1&id_app=21">Regresar a la Edición del Contenido</a></td>
</tr>
<?php } ?>
<?php
if ($accion == "5") { ?>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="6" class="texto">
<tr>
<td width="25%"> </td>
<td width="50%" bgcolor="#0099FF"><strong><font color="#FFFFFF">Seleccione
los contenidos que quiere asignar</font></strong></td>
<td width="25%"> </td>
</tr>
</table></td>
</tr>
<tr>
<td> <form name="form9" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="6" class="texto">
<tr>
<td> </td>
<td align="left">Ver por tipos:</td>
<td> </td>
</tr>
<tr>
<td width="25%"> </td>
<td align="left"> <select name="links_tipo_id" id="select">
<option value="0">Todos</option>
<?php $control = new select_v1(0, "links_tipo_id, links_tipo_nombre", "contenido_links_tipo", "links_tipo_id != 0", 2, 0, "(id)-(nombre)", "<option value=\"(id)\">(nombre)</option>", ""); ?>
</select> <input type="submit" name="Submit7" value="Ir...">
<input name="accion" type="hidden" id="accion4" value="5">
<input name="id_app" type="hidden" id="id_app7" value="<?php echo $id_app; ?>">
<input name="categoria_id" type="hidden" id="id_app6" value="<?php echo $categoria_id; ?>">
<input name="x_y" type="hidden" id="accion" value="<?php echo $uid->UID; ?>">
<input name="user" type="hidden" id="accion" value="<?php echo $user; ?>">
</td>
<td width="25%"> </td>
</tr>
</table>
</form>
<form name="form10" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="6" class="texto">
<tr>
<td> </td>
<td align="left"><img src="../imagenes/linea_admon.gif" width="397" height="11"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="left">Ver por fecha publicación:</td>
<td> </td>
</tr>
<tr>
<td width="25%"> </td>
<td align="left"> <select name="dia">
<option value="0">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="0">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="0">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> <input type="submit" name="Submit72" value="Ir...">
<input name="accion" type="hidden" id="accion" value="5">
<input name="id_app" type="hidden" id="id_app2" value="<?php echo $id_app; ?>">
<input name="categoria_id" type="hidden" id="id_app2" value="<?php echo $categoria_id; ?>">
<input name="x_y" type="hidden" id="accion" value="<?php echo $uid->UID; ?>">
<input name="user" type="hidden" id="accion" value="<?php echo $user; ?>">
</td>
<td width="25%"> </td>
</tr>
</table>
</form>
<form name="form6" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="6" class="texto">
<tr>
<td> </td>
<td colspan="2" align="left" valign="top"><img src="../imagenes/linea_admon.gif" width="397" height="11"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td width="10%" align="left" valign="top">Contenidos:</td>
<td width="40%"><select name="links_id_child" size="10" multiple id="select6">
<?php
$q = 0;
if (isset($links_tipo_id)) {
$q = 1;
$cuando = "contenido_links.links_id = contenido_pertenencia_categoria_links.links_id and contenido_pertenencia_categoria_links.categoria_tema_id =" . $categoria_id . " and contenido_links.links_tipo_id=" . $links_tipo_id;
}
if (isset($dia) and isset($mes) and isset($ano)) {
$q = 1;
$fecha = $ano . "-" . $mes . "-" . $dia . " 00:00:00";
$cuando = "contenido_links.links_id = contenido_pertenencia_categoria_links.links_id and contenido_pertenencia_categoria_links.categoria_tema_id =" . $categoria_id . " and contenido_links.links_fecha_publicacion='" . $fecha . "'";
}
if ($q == 0) {
$cuando = "contenido_links.links_id = contenido_pertenencia_categoria_links.links_id and contenido_pertenencia_categoria_links.categoria_tema_id =" . $categoria_id;
}
$control = new select_v1(0, "contenido_links.links_id , contenido_links.links_nombre", "contenido_links, contenido_pertenencia_categoria_links", $cuando, 2, 0, "(id)-(nombre)", "<option value=\"(id)\">(nombre)</option>", ""); ?>
</select></td>
<td> </td>
</tr>
<tr>
<td width="25%"> </td>
<td width="10%"> </td>
<td width="40%"> <input type="submit" name="Submit6" value="Relacionar...">
<input name="accion" type="hidden" id="accion3" value="ins_">
<input name="id_app" type="hidden" id="id_app3" value="<?php echo $id_app; ?>">
<input name="categoria_id" type="hidden" id="id_app3" value="<?php echo $categoria_id; ?>">
<input name="links_id_parent" type="hidden" id="id_app3" value="<?php echo $links_id_parent; ?>">
<input name="x_y" type="hidden" id="accion" value="<?php echo $uid->UID; ?>">
<input name="user" type="hidden" id="accion" value="<?php echo $user; ?>">
</td>
<td width="25%"> </td>
</tr>
<tr>
<td> </td>
<td colspan="2"><img src="../imagenes/linea_admon.gif" width="397" height="11"></td>
<td> </td>
</tr>
</table>
</form></td>
</tr>
<?php } ?>
</table></td>
</tr>
<tr>
<td align="center" bgcolor="<?php echo $color_fondo_pie; ?>" class="textopequeno"><?php echo $nombre_cliente; ?><br>
Todos los Derechos Reservados para NRG<br>
Bogotá, Colombia, S.A. <?php echo $ano_vig; ?><br>
<a href="../../documentacion/terminos.htm">Terminos de Uso</a> <strong>I</strong>
<a href="../../documentacion/terms.htm">Terms of Use</a></td>
</tr>
</table>
|