<!--- Premette all’utente di inserire i dati deglle attivita' -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Intervventi tecnici</title>
<script language="JavaScript">
<!--
function dataorasys(){
// inizializza i campi "data" e "ora" con la data e l'ora di sistema
var d= new Date();
var g=d.getDate();
var m= d.getMonth() + 1;
var ora=d.getHours();
var mi=d.getMinutes();
if (m<10) m="0"+m;
if (g<10) g="0"+g;
if (ora<10) ora ="0"+ora;
if (mi<10) mi="0"+mi;
tempo=ora+":"+mi;
oggi=g+ "/" + m + "/" + d.getFullYear();
app.data_app.value=oggi;
app.ora_app.value=tempo;
return;
}
function list_att(ind)
{
// se il tipo di attività selezionato dall'utente è "scadenza" o "appuntamento" attiva la chekbox "avvisa"
alert("sei dentro "+ind);
}
function init()
{
dataorasys();
for (k=1;k<=2;k++)
{
attiva(true,k);
}
app.tipo.options[0].selected;
app.tipo.focus();
}
function attiva(on,i)
{
// abilita o disabilità loggetto i
document.getElementById(i).disabilited=on;
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#3333FF" alink="#3333FF" vlink="#3333FF" link="#3333FF" onload="init();">
<div style="position:absolute; top:150px; left:300px; width:550px; height:200px">
<form name="app" method="post" action="scrivi_cal.php">
<table width="100%">
<tr>
<td width="50%">
Tipo attività :
</td>
<td width="50%">
<select name="tipo" >
<option value="0" ondblclick="list_att(0);" selected="selected">-</option>
<option value="1" ondblclick="list_att(1);">Attività</option>
<option value="2" ondblclick="list_att(2);">Scadenza</option>
<option value="3" ondblclick="list_att(3);">Appuntamento</option>
<option value="4" ondblclick=""="list_att(4);">Varie</option>
</select>
</td>
</tr>
<tr>
<td width="50%">
Data (gg/mm/aaaa) :
</td>
<td width="50%">
<input type="text" maxlength="10" size="10" name="data_app" style="border-color:#0000FF" value="" />
</td>
</tr>
<tr>
<td width="50%">
Ora (oo:mm) :
</td>
<td width="50%">
<input type="text" maxlength="5" size="5" name="ora_app" style="border-color:#0000FF" value="" />
</td>
</tr>
<tr>
<td width="50%">
Oggetto :
</td>
<td width="50%">
<input type="text" maxlength="10 "size="10" name="dint" style="border-color:#0000FF" value="" />
</td>
</tr>
<tr>
<td width="50%" valign="top">
Desscrizione :
</td>
<td width="50%">
<textarea cols="40" rows="5" name="descr" style="border-color:#0000FF"></textarea>
</td>
</tr>
<tr>
<td width="50%" valign="top">
Note :
</td>
<td width="50%">
<textarea cols="40" rows="5" name="note" style="border-color:#0000FF"></textarea>
</td>
</tr>
<tr>
<td width="50%" valign="top">
<input type="checkbox" name="avvisa" value="n" disabled="disabled" id="1" />Ricordarmerlo
</td>
<td width="50%">
<select name="giotni" disabled="disabled" id="2">
<option value="0" selected="selected">-</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">2</option>
<option value="6">3</option>
<option value="7">4</option>
</select>
</td>
</tr>
</table>
<table width="100%" align="center">
<tr>
<td width="50%" align="center">
<input type="reset" value="Annulla" name="annulla" />
</td>
<td width="50%" align="center" >
<input type="submit" value="Ok" name="ok" />
</td>
</tr>
</table>
</form>
<p align="center"><a href="../index1.php">Vai al menù principale</a></p>
</div>
</body>
</html>