|
Directory : /home/zjabogados/public_html/otrosscripts/ |
<?php require_once('../../../Connections/zyz.php'); ?>
<?php
session_start();
$motorBD = $_SESSION['motorBD'];
$idusuario = $_SESSION['idusuario'];
require_once("../Libs/functionsjava.htm");
require_once("../Libs/functionsextra.php");
if (isset($_POST['paso'])) {
$paso = $_POST['paso'];
}
else {
$paso = 0;
}
if (isset($_POST['tb_caso_cyc'])) {
$tb_caso_cyc = $_POST['tb_caso_cyc'];
}
else {
$tb_caso_cyc = $_GET['tb_caso_cyc'];
}
if (isset($_POST['id_caso_cyc_seguimiento'])) {
$id_caso_cyc_seguimiento = $_POST['id_caso_cyc_seguimiento'];
}
else {
$id_caso_cyc_seguimiento = $_GET['id_caso_cyc_seguimiento'];
}
if (isset($_POST['acc'])) {
$acc = $_POST['acc'];
}
else {
$acc = $_GET['acc'];
}
$desabilitado = '';
if ($acc == 'I') {
$etiqueta_boton = 'Agregar';
}
if ($acc == 'M') {
$etiqueta_boton = 'Modificar';
}
if ($acc == 'B') {
$etiqueta_boton = 'Borrar';
$desabilitado = 'disabled = "disabled"';
}
if ($paso == 1) {
$observaciones_del_seguimiento = $_POST['observaciones_del_seguimiento'];
$es_un_impulso_procesal = DarFormato($_POST['es_un_impulso_procesal'], 'c');
$tb_estado_de_seguimiento = DarFormato($_POST['tb_estado_de_seguimiento'], 'n');
if ($acc == 'I') {
$sql = "Insert Into tb_caso_cyc_seguimiento (tb_caso_cyc, observaciones_del_seguimiento, tb_usuario0registrante, tb_estado_de_seguimiento, es_un_impulso_procesal) VALUES ($tb_caso_cyc, '$observaciones_del_seguimiento', $idusuario, $tb_estado_de_seguimiento, $es_un_impulso_procesal)";
mysql_query($sql, $zyz) or die(mysql_error());
}
if ($acc == 'M') {
$sql = "UPDATE tb_caso_cyc_seguimiento SET observaciones_del_seguimiento = '$observaciones_del_seguimiento', tb_estado_de_seguimiento = $tb_estado_de_seguimiento, es_un_impulso_procesal = $es_un_impulso_procesal WHERE id_caso_cyc_seguimiento = $id_caso_cyc_seguimiento";
mysql_query($sql, $zyz) or die(mysql_error());
}
if ($acc == 'B') {
$sql = "DELETE FROM tb_caso_cyc_seguimiento WHERE id_caso_cyc_seguimiento = $id_caso_cyc_seguimiento";
mysql_query($sql, $zyz) or die(mysql_error());
}
//echo '<b>'.$sql.'</b>';
?>
<script language="JavaScript">
opener.parent.rightFrame.document.form_actualizar.valor.value = '';
opener.parent.rightFrame.document.form_actualizar.campo.value = 'otra';
opener.parent.rightFrame.document.form_actualizar.acc.value = 'R';
opener.parent.rightFrame.document.form_actualizar.submit();
window.close();
</script>
<?php
}
?>
<?php
$colname_rs_seguimiento = "-1";
if (isset($id_caso_cyc_seguimiento)) {
$colname_rs_seguimiento = (get_magic_quotes_gpc()) ? $id_caso_cyc_seguimiento : addslashes($id_caso_cyc_seguimiento);
}
mysql_select_db($database_zyz, $zyz);
$query_rs_seguimiento = sprintf("SELECT * FROM tb_caso_cyc_seguimiento WHERE id_caso_cyc_seguimiento = %s", $colname_rs_seguimiento);
$rs_seguimiento = mysql_query($query_rs_seguimiento, $zyz) or die(mysql_error());
$row_rs_seguimiento = mysql_fetch_assoc($rs_seguimiento);
$totalRows_rs_seguimiento = mysql_num_rows($rs_seguimiento);
mysql_select_db($database_zyz, $zyz);
$query_rs_estado_de_seguimiento = "SELECT id_estado_de_seguimiento, detalle_del_estado FROM tb_estado_de_seguimiento";
$rs_estado_de_seguimiento = mysql_query($query_rs_estado_de_seguimiento, $zyz) or die(mysql_error());
$row_rs_estado_de_seguimiento = mysql_fetch_assoc($rs_estado_de_seguimiento);
$totalRows_rs_estado_de_seguimiento = mysql_num_rows($rs_estado_de_seguimiento);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/Contenido.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Documento sin título</title>
<!-- InstanceEndEditable --><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
margin-left: 0px;
margin-top: 0px;
}
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
-->
</style>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.Estilo1 {
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
<script type="text/javascript" src="../Libs/editor_html/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,|,sub,sup,|,charmap,emotions,iespell,|,print,|,ltr,rtl,|,fullscreen",
//theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Example word content CSS (should be your site CSS) this one removes paragraph margins
content_css : "css/word.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "lists/template_list.js",
external_link_list_url : "lists/link_list.js",
external_image_list_url : "lists/image_list.js",
media_external_list_url : "lists/media_list.js",
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
</script>
<!-- /TinyMCE -->
<!-- InstanceEndEditable -->
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
<td><!-- InstanceBeginEditable name="Contenido" -->
<table width="630" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="28"><img src="../img/tabla_tit_izq.jpg" width="28" height="40"></td>
<td valign="bottom" background="../img/tabla_tit_med.jpg"><table border="0" cellspacing="8" cellpadding="1">
<tr>
<td><span class="Estilo1">SEGUIMIENTOS DEL caso_cyc </span> </td>
</tr>
</table></td>
<td width="28"><img src="../img/tabla_tit_der.jpg" width="28" height="40"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13" background="../img/tabla_cont_izq.jpg"> </td>
<td bgcolor="#9EC6EA"><table width="100%" border="0" cellspacing="4" cellpadding="4">
<tr>
<td><form method="post" name="form1" onsubmit="CalcularMontoCuota(); return Chequear(this);">
<table align="center">
<tr valign="baseline">
<td valign="top">OBSERVACIONES DEL SEGUIMIENTO:</td>
</tr>
<tr valign="baseline">
<td valign="top"><textarea name="observaciones_del_seguimiento" cols="70" class="NO varchar" id="Observaciones del Seguimiento" <?php echo $desabilitado ?>><?php echo $row_rs_seguimiento['observaciones_del_seguimiento']; ?></textarea>
* </td>
</tr>
<tr>
<td><span class="Estilo2">ESTADO DEL SEGUIMIENTO:</span></td>
</tr>
<tr>
<td><select name="tb_estado_de_seguimiento" id="Estado de Seguimiento" class="NO int" onChange="TomarCambiarEstadoDelcaso_cyc()">
<option value="">Seleccione el Estado del Seguimiento</option>
<?php
do {
?>
<option value="<?php echo $row_rs_estado_de_seguimiento['id_estado_de_seguimiento']?>"<?php if (!(strcmp($row_rs_estado_de_seguimiento['id_estado_de_seguimiento'], $row_rs_seguimiento['tb_estado_de_seguimiento']))) {echo "selected=\"selected\"";} ?>><?php echo $row_rs_estado_de_seguimiento['detalle_del_estado']?></option>
<?php
} while ($row_rs_estado_de_seguimiento = mysql_fetch_assoc($rs_estado_de_seguimiento));
$rows = mysql_num_rows($rs_estado_de_seguimiento);
if($rows > 0) {
mysql_data_seek($rs_estado_de_seguimiento, 0);
$row_rs_estado_de_seguimiento = mysql_fetch_assoc($rs_estado_de_seguimiento);
}
?>
</select></td>
</tr>
<tr valign="baseline">
<td> </td>
</tr>
<tr valign="baseline">
<td><label>Es un impulso procesa:l
<select name="es_un_impulso_procesal" id="Es un impulso procesal" class="NO varchar">
<option value="" <?php if (!(strcmp("SI", $row_rs_seguimiento['es_un_impulso_procesal']))) {echo "selected=\"selected\"";} ?>></option>
<option value="SI" <?php if (!(strcmp("SI", $row_rs_seguimiento['es_un_impulso_procesal']))) {echo "selected=\"selected\"";} ?>>SI</option>
<option value="NO" <?php if (!(strcmp("NO", $row_rs_seguimiento['es_un_impulso_procesal']))) {echo "selected=\"selected\"";} ?>>NO</option>
</select>
</label>*</td>
</tr>
<tr valign="baseline">
<td><input type="submit" value="<?php echo $etiqueta_boton ?>">
<input name="acc" type="hidden" id="acc" value="<?php echo $acc ?>" size="32">
<input name="id_caso_cyc_seguimiento" type="hidden" value="<?php echo $id_caso_cyc_seguimiento ?>">
<input name="tb_caso_cyc" type="hidden" value="<?php echo $tb_caso_cyc ?>">
<input name="paso" type="hidden" id="paso" value="<?php echo $paso+1 ?>" size="32"></td>
</tr>
</table>
</form>
</td>
</tr>
</table></td>
<td width="13" background="../img/tabla_cont_der.jpg"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="28"><img src="../img/tabla_pie_izq2.jpg" width="28" height="19"></td>
<td background="../img/tabla_pie_med2.jpg"> </td>
<td width="28"><img src="../img/tabla_pie_der2.jpg" width="28" height="19"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
</tr>
</table></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($rs_seguimiento);
?>