/
trasladosCxCB.php
executable file
·135 lines (104 loc) · 4.91 KB
/
trasladosCxCB.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?PHP
require("/Constantes.php");
//require("menuOperaciones.php");
require(CONSTANT_PATH_CONFIGURACION."/ventanasEmergentes.php");
require(CONSTANT_PATH_CONFIGURACION.'/funciones.php');
$mostrarmenu=new menus();
$mostrarmenu->menuTemplate($_GET['warehouse'],$_GET['datawarehouse'],$rutasalir,$rutapasswd,$usuario,$entidad,$rutamenuprincipal,'principal',$rutaimagen,$basedatos);
$sSQLC= "Select status From statusCaja where entidad='".$entidad."' and usuario='".$usuario."' order by keySTC DESC ";
$resultC=mysql_db_query($basedatos,$sSQLC);
$myrowC = mysql_fetch_array($resultC);
if($myrowC['status']=='abierta'){ //*******************Comienzo la validaci�n*****************
?>
<script language="javascript" type="text/javascript">
//Validacion de campos de texto no vacios by Mauricio Escobar
//
//Iv�n Nieto P�rez
//Este script y otros muchos pueden
//descarse on-line de forma gratuita
//en El C�digo: www.elcodigo.com
//*********************************************************************************
// Function que valida que un campo contenga un string y no solamente un " "
// Es tipico que al validar un string se diga
// if(campo == "") ? alert(Error)
// Si el campo contiene " " entonces la validacion anterior no funciona
//*********************************************************************************
//busca caracteres que no sean espacio en blanco en una cadena
function vacio(q) {
for ( i = 0; i < q.length; i++ ) {
if ( q.charAt(i) != " " ) {
return true
}
}
return false
}
//valida que el campo no este vacio y no tenga solo espacios en blanco
function valida(F) {
if( vacio(F.importe.value) == false ) {
alert("Por Favor, escribe el importe!")
return false
}
}
</script>
<script language=javascript>
function ventanaSecundaria10 (URL){
window.open(URL,"ventana10","width=500,height=500,scrollbars=YES")
}
</script>
<script language=javascript>
function ventanaSecundaria1 (URL){
window.open(URL,"ventana1","width=800,height=300,scrollbars=YES")
}
</script>
<script language="javascript" type="text/javascript">
var win = null;
function nueva(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<?php
$estilos=new muestraEstilos();
$estilos->styles();
?>
</head>
<body>
<div class="page_right">
<h1 align="center">Pagos a CxC </h1>
<form id="form1" name="form1" method="post" action="">
<!--p align="center"><img src="../imagenes/imagenesModulos/medicos.gif" width="155" height="214" /></p-->
<p> </p>
<p align="center">
<input onMouseOver="Tip('<div class="estilo25"><?php echo 'Presiona aquí para hacer traslados a CxC..';?></div>')" onMouseOut="UnTip()" name="nuevo2" type="button" class="style7" id="nuevo2" value="Convenios"
onclick="nueva('../ventanas/ventanasTCxC.php?cargos=cargos&almacen=<?php echo $ALMACEN;?>','ventanaSecundaria1','800','300','yes')" />
<input onMouseOver="Tip('<div class="estilo25"><?php echo 'Presiona aquí para hacer traslados a Otros..';?></div>')" onMouseOut="UnTip()" name="others" type="button" class="style7" id="others" value="Otros"
onclick="nueva('../ventanas/ventanasTCxCOtros.php?cargos=cargos&almacen=<?php echo $ALMACEN;?>','ventanaSecundaria1','800','300','yes')" />
<input onMouseOver="Tip('<div class="estilo25"><?php echo 'Presiona aquí para ver las notas de cargo y su estado actual..';?></div>')" onMouseOut="UnTip()" name="nuevo22" type="button" class="style7" id="nuevo22" value="Listado de Pagos"
onclick="nueva('../cargos/listadoVentasPacientes.php?paquetes=paquetes&almacen=<?php echo $ALMACEN;?>','ventanaSecundaria10','500','500','yes')" />
</p>
</form>
<h1 align="center"> </h1>
</div>
<?php
$mostrarFooter = new menus();
$mostrarFooter->footerTemplate($usuario,$entidad,$basedatos);
?>
</body>
</html>
<?php
} else {
$link=new ventanasPrototype();
$mensaje=new ventanasPrototype();
$link->links();
$mensaje->despliegaMensaje('LA CAJA ESTA CERRADA');
}
?>