Viewing file: contenido_categoria_mover.php (10.53 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$ia = isset($accion);
if ($ia == false) {
$accion = "x";
}
if ($accion != "mov_" and $accion != "ins_" and $accion != "cop_") {
$io = isset($opcion);
if ($io == false) {
$accion = "ins_1";
$last_insert_id = $patron;
}
}
include('setup_administracion.php');
include('../clases_herramientas/include_acciones.php');
include('pass.php');
$id_app = "18_A";
?>
<style type="text/css">
<!--
.nivel1 {
list-style-type: square;
list-style-position: inside;
margin: 1px 0px 0px 15px;
}
.nivel2 {
list-style-type: square;
list-style-position: inside;
margin: 1px 0px 0px 25px;
}
.nivel3 {
list-style-type: square;
list-style-position: inside;
margin: 1px 0px 0px 35px;
}
-->
</style>
<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; ?>" link="#0099CC" vlink="#0099CC" alink="#0099CC" 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">
<?php if ($accion == "mov_" or $accion == "cop_") { ?>
<tr>
<td align="center"><a href="contenido_categoria_administracion.php?user=<?php echo $user; ?>&x_y=<?php echo $x_y; ?>&patron=<?php echo $c_id_origen; ?>&id_app=18">Regresar
a la Edición de la Categoría</a></td>
</tr>
<?php } ?>
<?php
$bloqueador = 1;
if ($bloqueador == 0) { ?>
<tr>
<td><strong>1.</strong> Agregar Nueva Categoria dentro de <?php echo $patron; ?>
</td>
</tr>
<tr>
<td><form action="" method="post" enctype="multipart/form-data" name="form1">
<table width="100%" border="0" cellspacing="0" cellpadding="6" class="texto">
<tr>
<td> </td>
<td align="right">Nombre: </td>
<td align="left"> <input name="categoria_tema_desc" type="text" id="categoria_tema_desc"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="right">Estado:</td>
<td><select name="categoria_estado">
<option value="0">Activo</option>
<option value="1">Inactivo</option>
</select></td>
<td> </td>
</tr>
<tr>
<td width="25%"> </td>
<td width="25%" align="right">Formato:</td>
<td width="25%"><select name="formato_id" id="select16">
<option value="0">Sin Formato</option>
<?php $control = new select_v1(0, "formato_id, formato_nombre", "presentacion_formato", "formato_id != 0", 2, 0, "(id)-(nombre)", "<option value=\"(id)\">(nombre)</option>", ""); ?>
</select></td>
<td width="25%"> </td>
</tr>
<tr>
<td> </td>
<td align="right">Color de Fondo:</td>
<td><select name="categoria_fondo_hex" id="select2">
<?php $control = new select_v2(1); ?>
</select></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="right">Imagen de Fondo:</td>
<td><input type="file" name="categoria_fondo_imagen"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="right">Imagen de Banner:</td>
<td><input type="file" name="categoria_banner_imagen"></td>
<td> </td>
</tr>
<tr>
<td width="25%"> </td>
<td colspan="2" align="center"><input name="id_app" type="hidden" id="id_app3" value="<?php echo $id_app; ?>">
<?php if (isset($patron))
{
if ($patron == "%") {
$patron = 0;
}
$categoria_id_padre = $patron;
}else{
$categoria_id_padre = 0;
}?>
<input name="categoria_id_padre" type="hidden" id="accion2" value="<?php echo $categoria_id_padre; ?>">
<input name="categoria_id" type="hidden" id="accion2" value="<?php echo $categoria_id; ?>">
<input name="accion" type="hidden" id="accion" value="ins_">
<input name="x_y" type="hidden" id="accion" value="<?php echo $uid->UID; ?>">
<input name="user" type="hidden" id="accion" value="<?php echo $user; ?>">
<input type="submit" name="Submit" value="Agregar..."></td>
<td width="25%"> </td>
</tr>
</table>
</form></td>
</tr>
<?php } ?>
<?php
if ($accion == "ins_" or $accion == "ins_1") {
if ($accion == "ins_") {
$cuando = "categoria_id=" . $last_insert_id;
}else{
$cuando = "categoria_tema_id=" . $last_insert_id;
}
$control = new select_v1(0, "categoria_id, categoria_tema_id, categoria_tema_desc", "contenido_categoria", $cuando, 3, 0, "", "", "");
?>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="6" class="texto">
<tr>
<td> </td>
<td colspan="2" bgcolor="#003366"><font color="#FFFFFF">Usted
moverá o copiará la categoria <b><?php echo $categoria_id; ?></b>
a la categoria: <b><?php echo $control->RESULTADOS[0][2]; ?>,
ID: <?php echo $control->RESULTADOS[0][1]; ?></b> </font> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td bgcolor="#CCCCCC"><strong>Origen:</strong></td>
<td bgcolor="#D8EDFA"><strong>Destino:</strong></td>
<td> </td>
</tr>
<tr>
<td width="25%"> </td>
<td width="25%">Mover/Copiar todos los contenidos de..</td>
<td width="25%">hacia...</td>
<td width="25%"> </td>
</tr>
<tr>
<td width="25%"> </td>
<td width="25%"><?php echo $categoria_id; ?></td>
<td width="25%"><?php echo $control->RESULTADOS[0][1]; ?></td>
<td width="25%"> </td>
</tr>
<tr>
<td> </td>
<td colspan="2"><form name="form2" method="post" action="">
<div align="center">
<select name="accion">
<option value="mov_">Mover</option>
<option value="cop_">Copiar</option>
</select>
<input type="submit" name="Submit2" value="Mover/Copiar Contenidos...">
<input name="id_app" type="hidden" value="<?php echo $id_app; ?>">
<input name="c_id_origen" type="hidden" value="<?php echo $categoria_id; ?>">
<input name="c_id_destino" type="hidden" value="<?php echo $control->RESULTADOS[0][1]; ?>">
<input name="x_y" type="hidden" id="accion" value="<?php echo $uid->UID; ?>">
<input name="user" type="hidden" id="accion" value="<?php echo $user; ?>">
</div>
</form></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td colspan="2"><strong><font color="#CC0000">Atención:</font></strong>
Esta operación es solo reversible si se repite pero en
sentido contrario. Tenga presente que esta acción moverá
la categoria, sus subcategorias, contenidos y relaciones hacia
el nuevo destino, dejando la original intacta. Usted deberá
ocultar la categoria original inactivandola o borrandola del
sistema.</td>
<td> </td>
</tr>
</table></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>
|