calendar javascript
Policy failures: Code warning - failed on resource AddConferenceController.java. Reason: Map is a raw type. References to generic type Map<K,V> should be parameterized, line 49 - failed on resource AddConferenceController.java. Reason: The import java.util.HashMap is never used, line 3 - failed on resource AddConferenceController.java. Reason: The local variable conference is never read, line 74 - failed on resource AddConferenceController.java. Reason: The local variable conference is never read, line 90 - failed on resource addConference5.jsp. Reason: Undefined attribute name (alignment)., line 27 ... and more. Override reason: haa
This commit is contained in:
@@ -49,3 +49,11 @@ conference.otherInformations=Complementary information
|
||||
conference.linkMenu.title=Adding Conference
|
||||
conference.linkMenu.choose=Choosing current conference
|
||||
conference.linkMenu.change=Change current conference
|
||||
|
||||
conference2.title=Calendar
|
||||
conference2.date=Conference's date
|
||||
conference2.start=Start :
|
||||
conference2.end=End :
|
||||
conference2.abstract=Abstract's deadline
|
||||
conference2.article=Article's deadline
|
||||
conference2.evaluation=Evaluation's deadline
|
||||
|
||||
@@ -6,16 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title><fmt:message key="title" /></title>
|
||||
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
function doSubmit()
|
||||
{
|
||||
var form = document.monForm;
|
||||
form.action = 'addConference.htm';
|
||||
form.submit();
|
||||
}
|
||||
</script>
|
||||
<!-- <link rel="stylesheet" href="./stylesheets/base.css" type="text/css" /> -->
|
||||
|
||||
</head>
|
||||
<body>
|
||||
@@ -32,16 +23,12 @@ form.submit();
|
||||
<h2 align="center"><fmt:message key="conference.titleMenu" /></h2>
|
||||
|
||||
<form:form commandName="formConference" name="monForm">
|
||||
|
||||
<input type="hidden" name="typeAction" value="">
|
||||
|
||||
<fmt:message key="conference.title" /> <input type="text" name="title"/> <br/><br />
|
||||
<fmt:message key="conference.description" /> <textarea name="description"></textarea> <br/><br />
|
||||
<fmt:message key="conference.otherInformations" /> <textarea name="otherInformations"></textarea> <br/><br />
|
||||
|
||||
<br />
|
||||
|
||||
<a href="javascript:doSubmit();">Next</a>
|
||||
|
||||
<input type="submit" alignment="center" name="_target1" value="Next" />
|
||||
|
||||
</form:form>
|
||||
|
||||
|
||||
@@ -6,29 +6,13 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title><fmt:message key="title" /></title>
|
||||
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
function doSubmit2()
|
||||
{
|
||||
var form = document.monForm2;
|
||||
form.action = 'addConference2.htm';
|
||||
form.submit();
|
||||
}
|
||||
|
||||
function doBack()
|
||||
{
|
||||
var form = document.monForm2;
|
||||
form.action = 'addConference2.htm';
|
||||
form.typeAction.value = 'back';
|
||||
form.submit();
|
||||
}
|
||||
</script>
|
||||
<!-- <link rel="stylesheet" href="./stylesheets/base.css" type="text/css" /> -->
|
||||
<script src="./stylesheets/calendar.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<jsp:include page="/WEB-INF/jsp/header.jsp" />
|
||||
<input type="text" value="dd/mm/yy" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)"/>
|
||||
<!--<jsp:include page="/WEB-INF/jsp/header.jsp" />
|
||||
|
||||
|
||||
<div class="mainBloc">
|
||||
@@ -37,25 +21,30 @@ form.submit();
|
||||
<div id="main_content">
|
||||
|
||||
|
||||
<h2 align="center">Add new conference</h2>
|
||||
|
||||
<form:form commandName="formConference2" name="monForm2">
|
||||
<h2 align="center"><fmt:message key="conference.titleMenu" /></h2>
|
||||
|
||||
<input type="hidden" name="typeAction" value="">
|
||||
<form:form commandName="formConference" name="monForm">
|
||||
|
||||
|
||||
Formulaire ici
|
||||
<fmt:message key="conference2.start" /><input type="text" value="dd/mm/yy" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)"/>
|
||||
<fmt:message key="conference2.end" /><input type="text" value="dd/mm/yy" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)">
|
||||
|
||||
<br />
|
||||
<a href="javascript:doSubmit2();">Next</a>
|
||||
<br />
|
||||
<a href="javascript:doBack();">Back</a>
|
||||
<fmt:message key="conference2.abstract" /><input type="text" value="dd/mm/yy" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)">
|
||||
<fmt:message key="conference2.article" /><input type="text" value="dd/mm/yy" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)">
|
||||
<fmt:message key="conference2.evaluation" /><input type="text" value="dd/mm/yy" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)">
|
||||
|
||||
<input type="submit" name="_target2" value="Next" />
|
||||
<input type="submit" name="_target0" value="Back">
|
||||
|
||||
</form:form>
|
||||
|
||||
<br />
|
||||
<a href="<c:url value="main.htm"/>">Home</a></div>
|
||||
</div>
|
||||
<div class="footer"> </div>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@@ -1,12 +1,41 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<%@ include file="/WEB-INF/jsp/include.jsp"%>
|
||||
<%@ page session="false"%>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Insert title here</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title><fmt:message key="title" /></title>
|
||||
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
Haha conf 3
|
||||
|
||||
<jsp:include page="/WEB-INF/jsp/header.jsp" />
|
||||
|
||||
|
||||
<div class="mainBloc">
|
||||
<div class="header"> </div>
|
||||
<div class="content"><jsp:include page="/WEB-INF/jsp/menu.jsp" />
|
||||
<div id="main_content">
|
||||
|
||||
|
||||
<h2 align="center"><fmt:message key="conference.titleMenu" /></h2>
|
||||
|
||||
<form:form commandName="formConference" name="monForm">
|
||||
|
||||
<br /> Page 3
|
||||
|
||||
<input type="submit" alignment="center" name="_target3" value="Next" />
|
||||
<input type="submit" alignment="center" name="_target1" value="Back">
|
||||
|
||||
</form:form>
|
||||
|
||||
<br />
|
||||
<a href="<c:url value="main.htm"/>">Home</a></div>
|
||||
</div>
|
||||
<div class="footer"> </div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
39
YACOSWeb/WebContent/WEB-INF/jsp/addConference4.jsp
Normal file
39
YACOSWeb/WebContent/WEB-INF/jsp/addConference4.jsp
Normal file
@@ -0,0 +1,39 @@
|
||||
<%@ include file="/WEB-INF/jsp/include.jsp"%>
|
||||
<%@ page session="false"%>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title><fmt:message key="title" /></title>
|
||||
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<jsp:include page="/WEB-INF/jsp/header.jsp" />
|
||||
|
||||
<div class="mainBloc">
|
||||
<div class="header"> </div>
|
||||
<div class="content"><jsp:include page="/WEB-INF/jsp/menu.jsp" />
|
||||
<div id="main_content">
|
||||
|
||||
<h2 align="center"><fmt:message key="conference.titleMenu" /></h2>
|
||||
|
||||
<form:form commandName="formConference" name="monForm">
|
||||
|
||||
<br /> Page 4
|
||||
|
||||
<input type="submit" alignment="center" name="_target4" value="Next" />
|
||||
<input type="submit" alignment="center" name="_target2" value="Back">
|
||||
|
||||
</form:form>
|
||||
|
||||
<br />
|
||||
<a href="<c:url value="main.htm"/>">Home</a></div>
|
||||
</div>
|
||||
<div class="footer"> </div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
39
YACOSWeb/WebContent/WEB-INF/jsp/addConference5.jsp
Normal file
39
YACOSWeb/WebContent/WEB-INF/jsp/addConference5.jsp
Normal file
@@ -0,0 +1,39 @@
|
||||
<%@ include file="/WEB-INF/jsp/include.jsp"%>
|
||||
<%@ page session="false"%>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title><fmt:message key="title" /></title>
|
||||
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<jsp:include page="/WEB-INF/jsp/header.jsp" />
|
||||
|
||||
<div class="mainBloc">
|
||||
<div class="header"> </div>
|
||||
<div class="content"><jsp:include page="/WEB-INF/jsp/menu.jsp" />
|
||||
<div id="main_content">
|
||||
|
||||
<h2 align="center"><fmt:message key="conference.titleMenu" /></h2>
|
||||
|
||||
<form:form commandName="formConference" name="monForm">
|
||||
|
||||
<br /> Page 5
|
||||
|
||||
<input type="submit" alignment="center" name="_finish" value="Next" />
|
||||
<input type="submit" alignment="center" name="_target3" value="Back">
|
||||
|
||||
</form:form>
|
||||
|
||||
<br />
|
||||
<a href="<c:url value="main.htm"/>">Home</a></div>
|
||||
</div>
|
||||
<div class="footer"> </div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
BIN
YACOSWeb/WebContent/stylesheets/arrowleftmonth.gif
Normal file
BIN
YACOSWeb/WebContent/stylesheets/arrowleftmonth.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 701 B |
BIN
YACOSWeb/WebContent/stylesheets/arrowrightmonth.gif
Normal file
BIN
YACOSWeb/WebContent/stylesheets/arrowrightmonth.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 699 B |
248
YACOSWeb/WebContent/stylesheets/calendar.js
Normal file
248
YACOSWeb/WebContent/stylesheets/calendar.js
Normal file
@@ -0,0 +1,248 @@
|
||||
/* --- Swazz Javascript Calendar ---
|
||||
/* --- v 1.0 3rd November 2006
|
||||
By Oliver Bryant
|
||||
http://calendar.swazz.org */
|
||||
|
||||
function getObj(objID)
|
||||
{
|
||||
if (document.getElementById) {return document.getElementById(objID);}
|
||||
else if (document.all) {return document.all[objID];}
|
||||
else if (document.layers) {return document.layers[objID];}
|
||||
}
|
||||
|
||||
function checkClick(e) {
|
||||
e?evt=e:evt=event;
|
||||
CSE=evt.target?evt.target:evt.srcElement;
|
||||
if (getObj('fc'))
|
||||
if (!isChild(CSE,getObj('fc')))
|
||||
getObj('fc').style.display='none';
|
||||
}
|
||||
|
||||
function isChild(s,d) {
|
||||
while(s) {
|
||||
if (s==d)
|
||||
return true;
|
||||
s=s.parentNode;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function Left(obj)
|
||||
{
|
||||
var curleft = 0;
|
||||
if (obj.offsetParent)
|
||||
{
|
||||
while (obj.offsetParent)
|
||||
{
|
||||
curleft += obj.offsetLeft
|
||||
obj = obj.offsetParent;
|
||||
}
|
||||
}
|
||||
else if (obj.x)
|
||||
curleft += obj.x;
|
||||
return curleft;
|
||||
}
|
||||
|
||||
function Top(obj)
|
||||
{
|
||||
var curtop = 0;
|
||||
if (obj.offsetParent)
|
||||
{
|
||||
while (obj.offsetParent)
|
||||
{
|
||||
curtop += obj.offsetTop
|
||||
obj = obj.offsetParent;
|
||||
}
|
||||
}
|
||||
else if (obj.y)
|
||||
curtop += obj.y;
|
||||
return curtop;
|
||||
}
|
||||
|
||||
document.write('<table id="fc" style="position:absolute;border-collapse:collapse;background:#FFFFFF;border:1px solid #ABABAB;display:none" cellpadding=2>');
|
||||
document.write('<tr><td style="cursor:pointer" onclick="csubm()"><img src="arrowleftmonth.gif"></td><td colspan=5 id="mns" align="center" style="font:bold 13px Arial"></td><td align="right" style="cursor:pointer" onclick="caddm()"><img src="arrowrightmonth.gif"></td></tr>');
|
||||
document.write('<tr><td align=center style="background:#ABABAB;font:12px Arial">S</td><td align=center style="background:#ABABAB;font:12px Arial">M</td><td align=center style="background:#ABABAB;font:12px Arial">T</td><td align=center style="background:#ABABAB;font:12px Arial">W</td><td align=center style="background:#ABABAB;font:12px Arial">T</td><td align=center style="background:#ABABAB;font:12px Arial">F</td><td align=center style="background:#ABABAB;font:12px Arial">S</td></tr>');
|
||||
for(var kk=1;kk<=6;kk++) {
|
||||
document.write('<tr>');
|
||||
for(var tt=1;tt<=7;tt++) {
|
||||
num=7 * (kk-1) - (-tt);
|
||||
document.write('<td id="v' + num + '" style="width:18px;height:18px"> </td>');
|
||||
}
|
||||
document.write('</tr>');
|
||||
}
|
||||
document.write('</table>');
|
||||
|
||||
document.all?document.attachEvent('onclick',checkClick):document.addEventListener('click',checkClick,false);
|
||||
|
||||
|
||||
// Calendar script
|
||||
var now = new Date;
|
||||
var sccm=now.getMonth();
|
||||
var sccy=now.getFullYear();
|
||||
var ccm=now.getMonth();
|
||||
var ccy=now.getFullYear();
|
||||
|
||||
var updobj;
|
||||
function lcs(ielem) {
|
||||
updobj=ielem;
|
||||
getObj('fc').style.left=Left(ielem);
|
||||
getObj('fc').style.top=Top(ielem)+ielem.offsetHeight;
|
||||
getObj('fc').style.display='';
|
||||
|
||||
// First check date is valid
|
||||
curdt=ielem.value;
|
||||
curdtarr=curdt.split('/');
|
||||
isdt=true;
|
||||
for(var k=0;k<curdtarr.length;k++) {
|
||||
if (isNaN(curdtarr[k]))
|
||||
isdt=false;
|
||||
}
|
||||
if (isdt&(curdtarr.length==3)) {
|
||||
ccm=curdtarr[1]-1;
|
||||
ccy=curdtarr[2];
|
||||
prepcalendar(curdtarr[0],curdtarr[1]-1,curdtarr[2]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function evtTgt(e)
|
||||
{
|
||||
var el;
|
||||
if(e.target)el=e.target;
|
||||
else if(e.srcElement)el=e.srcElement;
|
||||
if(el.nodeType==3)el=el.parentNode; // defeat Safari bug
|
||||
return el;
|
||||
}
|
||||
function EvtObj(e){if(!e)e=window.event;return e;}
|
||||
function cs_over(e) {
|
||||
evtTgt(EvtObj(e)).style.background='#FFCC66';
|
||||
}
|
||||
function cs_out(e) {
|
||||
evtTgt(EvtObj(e)).style.background='#C4D3EA';
|
||||
}
|
||||
function cs_click(e) {
|
||||
var laDate=calvalarr[evtTgt(EvtObj(e)).id.substring(1,evtTgt(EvtObj(e)).id.length)].split('/');
|
||||
|
||||
// On met au format dd/mm/yyyy
|
||||
if(laDate[0] < 10)
|
||||
laDate[0] = '0'+laDate[0];
|
||||
|
||||
if(laDate[1] < 10)
|
||||
laDate[1] = '0'+laDate[1];
|
||||
|
||||
updobj.value = laDate[0] + '/' + laDate[1] + '/' + laDate[2];
|
||||
|
||||
//updobj.value=calvalarr[evtTgt(EvtObj(e)).id.substring(1,evtTgt(EvtObj(e)).id.length)];
|
||||
getObj('fc').style.display='none';
|
||||
|
||||
}
|
||||
|
||||
var mn=new Array('JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC');
|
||||
var mnn=new Array('31','28','31','30','31','30','31','31','30','31','30','31');
|
||||
var mnl=new Array('31','29','31','30','31','30','31','31','30','31','30','31');
|
||||
var calvalarr=new Array(42);
|
||||
|
||||
function f_cps(obj) {
|
||||
obj.style.background='#C4D3EA';
|
||||
obj.style.font='10px Arial';
|
||||
obj.style.color='#333333';
|
||||
obj.style.textAlign='center';
|
||||
obj.style.textDecoration='none';
|
||||
obj.style.border='1px solid #6487AE';
|
||||
obj.style.cursor='pointer';
|
||||
}
|
||||
|
||||
function f_cpps(obj) {
|
||||
obj.style.background='#C4D3EA';
|
||||
obj.style.font='10px Arial';
|
||||
obj.style.color='#ABABAB';
|
||||
obj.style.textAlign='center';
|
||||
obj.style.textDecoration='line-through';
|
||||
obj.style.border='1px solid #6487AE';
|
||||
obj.style.cursor='default';
|
||||
}
|
||||
|
||||
function f_hds(obj) {
|
||||
obj.style.background='#FFF799';
|
||||
obj.style.font='bold 10px Arial';
|
||||
obj.style.color='#333333';
|
||||
obj.style.textAlign='center';
|
||||
obj.style.border='1px solid #6487AE';
|
||||
obj.style.cursor='pointer';
|
||||
}
|
||||
|
||||
// day selected
|
||||
function prepcalendar(hd,cm,cy) {
|
||||
now=new Date();
|
||||
sd=now.getDate();
|
||||
td=new Date();
|
||||
td.setDate(1);
|
||||
td.setFullYear(cy);
|
||||
td.setMonth(cm);
|
||||
cd=td.getDay();
|
||||
getObj('mns').innerHTML=mn[cm]+ ' ' + cy;
|
||||
marr=((cy%4)==0)?mnl:mnn;
|
||||
for(var d=1;d<=42;d++) {
|
||||
f_cps(getObj('v'+parseInt(d)));
|
||||
if ((d >= (cd -(-1))) && (d<=cd-(-marr[cm]))) {
|
||||
dip=((d-cd < sd)&&(cm==sccm)&&(cy==sccy));
|
||||
htd=((hd!='')&&(d-cd==hd));
|
||||
if (dip)
|
||||
f_cpps(getObj('v'+parseInt(d)));
|
||||
else if (htd)
|
||||
f_hds(getObj('v'+parseInt(d)));
|
||||
else
|
||||
f_cps(getObj('v'+parseInt(d)));
|
||||
|
||||
getObj('v'+parseInt(d)).onmouseover=(dip)?null:cs_over;
|
||||
getObj('v'+parseInt(d)).onmouseout=(dip)?null:cs_out;
|
||||
getObj('v'+parseInt(d)).onclick=(dip)?null:cs_click;
|
||||
|
||||
getObj('v'+parseInt(d)).innerHTML=d-cd;
|
||||
calvalarr[d]=''+(d-cd)+'/'+(cm-(-1))+'/'+cy;
|
||||
}
|
||||
else {
|
||||
getObj('v'+d).innerHTML=' ';
|
||||
getObj('v'+parseInt(d)).onmouseover=null;
|
||||
getObj('v'+parseInt(d)).onmouseout=null;
|
||||
getObj('v'+parseInt(d)).style.cursor='default';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
prepcalendar('',ccm,ccy);
|
||||
//getObj('fc'+cc).style.visibility='hidden';
|
||||
|
||||
function caddm() {
|
||||
marr=((ccy%4)==0)?mnl:mnn;
|
||||
|
||||
ccm+=1;
|
||||
if (ccm>=12) {
|
||||
ccm=0;
|
||||
ccy++;
|
||||
}
|
||||
cdayf();
|
||||
prepcalendar('',ccm,ccy);
|
||||
}
|
||||
|
||||
function csubm() {
|
||||
marr=((ccy%4)==0)?mnl:mnn;
|
||||
|
||||
ccm-=1;
|
||||
if (ccm<0) {
|
||||
ccm=11;
|
||||
ccy--;
|
||||
}
|
||||
cdayf();
|
||||
prepcalendar('',ccm,ccy);
|
||||
}
|
||||
|
||||
function cdayf() {
|
||||
if ((ccy>sccy)|((ccy==sccy)&&(ccm>=sccm)))
|
||||
return;
|
||||
else {
|
||||
ccy=sccy;
|
||||
ccm=sccm;
|
||||
cfd=scfd;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user