no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@469 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 21 years ago
parent 98b0dc7408
commit 9a6ff36bd4

@ -38,6 +38,7 @@ public class ScheduleServlet extends MailerServlet
throws IOException throws IOException
{ {
ServletOutputStream out = res.getOutputStream(); ServletOutputStream out = res.getOutputStream();
String queryString = req.getQueryString();
res.setContentType( "text/html" ); res.setContentType( "text/html" );
Hashtable parameters = new Hashtable(); Hashtable parameters = new Hashtable();
@ -55,13 +56,22 @@ public class ScheduleServlet extends MailerServlet
parameters.put( ESTABELECIMENTO, session.getAttribute( "session_estabelecimento_nome" ) ); parameters.put( ESTABELECIMENTO, session.getAttribute( "session_estabelecimento_nome" ) );
parameters.put( FUNCIONARIO, session.getAttribute( "session_funcionario_nome" ) ); parameters.put( FUNCIONARIO, session.getAttribute( "session_funcionario_nome" ) );
out.println( showPage( "marcacao/marcacao_menu.html", parameters ) ); String tokens[] = queryString.split( "[?]" );
if( tokens.length > 0 && tokens[ tokens.length - 1 ].equals( "consulta" ) )
{
out.println( showPage( "marcacao/marcacao_consulta.html", parameters ) );
}
else
{
out.println( showPage( "marcacao/marcacao_exame.html", parameters ) );
}
} }
public void doPost( HttpServletRequest req, HttpServletResponse res ) public void doPost( HttpServletRequest req, HttpServletResponse res )
throws IOException throws IOException
{ {
ServletOutputStream out = res.getOutputStream(); ServletOutputStream out = res.getOutputStream();
String queryString = req.getQueryString();
res.setContentType( "text/html" ); res.setContentType( "text/html" );
// Info de marcacao // Info de marcacao

@ -189,8 +189,8 @@ function AnchorPosition_getWindowOffsetTop (el) {
// "MMM dd, yyyy hh:mm:ssa" matches: "January 01, 2000 12:30:45AM" // "MMM dd, yyyy hh:mm:ssa" matches: "January 01, 2000 12:30:45AM"
// ------------------------------------------------------------------ // ------------------------------------------------------------------
var MONTH_NAMES=new Array('January','February','March','April','May','June','July','August','September','October','November','December','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); var MONTH_NAMES=new Array('Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outobro','Novembro','Dezembro','Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez');
var DAY_NAMES=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sun','Mon','Tue','Wed','Thu','Fri','Sat'); var DAY_NAMES=new Array('Domingo','Segunda','Terça','Quarta','Quinta','Sexta','Sábado','Dom','Seg','Ter','Qua','Qui','Sex','Sab');
function LZ(x) {return(x<0||x>9?"":"0")+x} function LZ(x) {return(x<0||x>9?"":"0")+x}
// ------------------------------------------------------------------ // ------------------------------------------------------------------
@ -913,7 +913,7 @@ cal.addDisabledDates("January 01, 2003", "Dec 31, 2003");
cal.setYearSelectStartOffset(2); cal.setYearSelectStartOffset(2);
// Text for the word "Today" appearing on the calendar // Text for the word "Today" appearing on the calendar
cal.setTodayText("Today"); cal.setTodayText("Hoje");
// The calendar uses CSS classes for formatting. If you want your calendar to // The calendar uses CSS classes for formatting. If you want your calendar to
// have unique styles, you can set the prefix that will be added to all the // have unique styles, you can set the prefix that will be added to all the

@ -4,6 +4,7 @@
<head> <head>
<title>Marca&ccedil;&atilde;o de consulta</title> <title>Marca&ccedil;&atilde;o de consulta</title>
<link rel="stylesheet" href="/siprpWeb/html/css/style.css" type="text/css"> <link rel="stylesheet" href="/siprpWeb/html/css/style.css" type="text/css">
<SCRIPT LANGUAGE="JavaScript" SRC="CalendarPopup.js"></SCRIPT>
</head> </head>
<script language="javascript" src="/siprpWeb/html/css/funcs.js"></script> <script language="javascript" src="/siprpWeb/html/css/funcs.js"></script>
<script> <script>
@ -22,7 +23,13 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Data:</td><td><input type='text' id='data' name='data'>dd/mm/aaaa</td> <SCRIPT LANGUAGE="JavaScript">
var cal = new CalendarPopup();
</SCRIPT>
<td>Data:</td><td><input type='text' id='data' name='data'>dd/mm/aaaa
<!--<A HREF="#" onClick="cal.select(document.forms[0].data,'anchor1','dd/mm/yyyy'); return false;"
TITLE="cal.select(document.forms[0].data,'anchor1','dd/mm/yyyy'); return false;" NAME="anchor1" ID="anchor1">data</A>-->
</td>
</tr> </tr>
<tr> <tr>
<td>Hora:</td><td><input type='text' id='hora' name='hora'>hh:mm</td> <td>Hora:</td><td><input type='text' id='hora' name='hora'>hh:mm</td>

@ -141,6 +141,16 @@ td.box6
m_wnd = window.open( "schedule?" + Math.random(), "marcacao_window", "menubar=0, resizeable=0, width=400, height=250, top=100, left=450" ); m_wnd = window.open( "schedule?" + Math.random(), "marcacao_window", "menubar=0, resizeable=0, width=400, height=250, top=100, left=450" );
m_wnd.focus(); m_wnd.focus();
} }
function marcacaoConsultaWindow()
{
m_wnd = window.open( "schedule?consulta", "marcacao_window", "menubar=0, resizeable=0, width=400, height=250, top=100, left=450" );
m_wnd.focus();
}
function marcacaoExamesWindow()
{
m_wnd = window.open( "schedule?exames", "marcacao_window", "menubar=0, resizeable=0, width=400, height=250, top=100, left=450" );
m_wnd.focus();
}
</script> </script>
<body> <body>
<table style="width: 760px; height: 623px; background-image: url(/siprpWeb/html/images/fundo.jpg); background-repeat: no-repeat;" align='center' > <table style="width: 760px; height: 623px; background-image: url(/siprpWeb/html/images/fundo.jpg); background-repeat: no-repeat;" align='center' >
@ -276,8 +286,8 @@ td.box6
<td width='14%' style='color: #ffffff'>&Uacute;ltima Consulta</td> <td width='14%' style='color: #ffffff'>&Uacute;ltima Consulta</td>
<td width='14%' style='color: #ffffff'>Realizada</td> <td width='14%' style='color: #ffffff'>Realizada</td>
<td width='14%' style='color: #ffffff'>Resultado</td> <td width='14%' style='color: #ffffff'>Resultado</td>
<td width='14%'><a href='javascript:marcacaoWindow();'>Pr&oacute;ximo Exame</a></td> <td width='14%'><a href='javascript:marcacaoExamesWindow();'>Pr&oacute;ximo Exame</a></td>
<td width='14%'><a href='javascript:marcacaoWindow();'>Pr&oacute;xima Consulta</a></td> <td width='14%'><a href='javascript:marcacaoConsultaWindow();'>Pr&oacute;xima Consulta</a></td>
</tr> </tr>
<tr align='center'> <tr align='center'>

Loading…
Cancel
Save