Pessoal, preciso de ajuda, apanhei o dia todo dos comandos: mktime e date() precisava colocar o formulario abaixo para funcionar em php.
Se trata de uma agenda que estou criando, sou aprendiz e preciso muito aprender a criar um modulo deste tipo. Se alguém puder me ajudar eu agradeço. Minha necessidade é a seguinte: Abaixo o codigo do formulario que estou criando, contem o nome do aluno, nome do instrutor, veiculo. em seguida tem uma tabela com os dias da semana e horários entre 07: e 20 hs. gostaria que abaixo do dia da semana ex.: Sexta fosse apresentado o dia correspondente conforme o mês e ano escolhido. Minha ideia é criar um campo ao lado de cada horario para que o usuario clique e grave um compromisso neste horario...
Pergunta
Guest --Luis Fernando --
Pessoal, preciso de ajuda, apanhei o dia todo dos comandos: mktime e date() precisava colocar o formulario abaixo para funcionar em php.
Se trata de uma agenda que estou criando, sou aprendiz e preciso muito aprender a criar um modulo deste tipo. Se alguém puder me ajudar eu agradeço. Minha necessidade é a seguinte: Abaixo o codigo do formulario que estou criando, contem o nome do aluno, nome do instrutor, veiculo. em seguida tem uma tabela com os dias da semana e horários entre 07: e 20 hs. gostaria que abaixo do dia da semana ex.: Sexta fosse apresentado o dia correspondente conforme o mês e ano escolhido. Minha ideia é criar um campo ao lado de cada horario para que o usuario clique e grave um compromisso neste horario...
valeu a ajuda...
<html>
<head>
<title>Agenda</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="estilo.css" type="text/css">
</head>
<body >
<table width="638" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="238" bgcolor="#CCCCCC"><font color="#003366" size="2"><strong>Agenda
de aulas e palestras</strong></font></td>
<td width="122" bgcolor="#CCCCCC"> </td>
<td width="143" bgcolor="#CCCCCC"> </td>
<td width="135" bgcolor="#CCCCCC"><font color="#003366" size="2"> </font></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr bgcolor="#EFEFEF">
<td><font color="#003366"><b>Aluno</b></font></td>
<td><font color="#003366"><b>Tipo</b></font></td>
<td><font color="#003366"><strong>Veículo</strong></font></td>
<td><font color="#003366"><strong>Data</strong></font></td>
</tr>
<tr bgcolor="#EFEFEF">
<td><font color="#003366"><strong>
<select name="select" class="input" id="select6">
<option value="1">FERNANDO MOREIRA</option>
<option value="2">ANTONIO SOARES NETO</option>
<option>MARIA DAS DORES ALMEIDA PRADO</option>
<option>JANETE GUIMARAES</option>
<option>CARLOS ARAUJO SILVA</option>
</select>
</strong></font></td>
<td><font color="#003366"><strong>
<select name="select2" class="input" id="select9">
<option value="1">TREINAMENTO</option>
<option value="2">PALESTRA</option>
</select>
</strong></font></td>
<td><font color="#003366"><strong>
<select name="select3" class="input" id="select10">
<option value="1">CELTA BLH9876</option>
<option value="2">CELTA BRB4567</option>
<option>FOX DFG4356</option>
<option>CORSA 2346</option>
</select>
</strong></font></td>
<td><font color="#003366">
<input name="codaluno2" type="text" class="input" id="codaluno2" size="15" select ="selected"value ="<?php echo $codigo; ?>" >
<strong> </strong></font></td>
</tr>
<tr bgcolor="#EFEFEF">
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<table width="638" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><font color="#003366">
<input name="mês" type="text" class="input" id="mês" value="digitar mês" size="15">
<input name="ano" type="text" class="input" id="ano" value="digitar ano" size="15">
</font></td>
</tr>
<tr>
<td> <div align="center"></div>
<div align="left"></div>
<div align="right">Proxima semana >></div></td>
</tr>
</table>
<table width="638" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="102" bgcolor="#EFEFEF"><div align="center">DOMINGO</div></td>
<td width="105"><div align="center">SEGUNDA</div></td>
<td width="97" bgcolor="#EFEFEF"><div align="center">TERCA</div></td>
<td width="81"><div align="center">QUARTA</div></td>
<td width="87" bgcolor="#EFEFEF"><div align="center">QUINTA</div></td>
<td width="76"><div align="center">SEXTA</div></td>
<td width="90" bgcolor="#EFEFEF"><div align="center">SABADO</div></td>
</tr>
<tr>
<td height="18" bgcolor="#EFEFEF">apresenta dia/mês/ano</td>
<td>apresenta dia/mês/ano</td>
<td bgcolor="#EFEFEF">apresenta dia/mês/ano</td>
<td>apresenta dia/mês/ano</td>
<td bgcolor="#EFEFEF">apresenta dia/mês/ano</td>
<td>apresenta dia/mês/ano</td>
<td bgcolor="#EFEFEF">apresenta dia/mês/ano</td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">07:00</font></strong></td>
<td><strong><font size="1">07:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">07:00</font></strong></td>
<td><strong><font size="1">07:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">07:00</font></strong></td>
<td><strong><font size="1">07:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">07:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF">agendar neste horario</td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">08:00</font></strong></td>
<td><strong><font size="1">08:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">08:00</font></strong></td>
<td><strong><font size="1">08:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">08:00</font></strong></td>
<td><strong><font size="1">08:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">08:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">09:00</font></strong></td>
<td><strong><font size="1">09:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">09:00</font></strong></td>
<td><strong><font size="1">09:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">09:00</font></strong></td>
<td><strong><font size="1">09:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">09:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">10:00</font></strong></td>
<td><strong><font size="1">10:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">10:00</font></strong></td>
<td><strong><font size="1">10:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">10:00</font></strong></td>
<td><strong><font size="1">10:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">10:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">11:00</font></strong></td>
<td><strong><font size="1">11:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">11:00</font></strong></td>
<td><strong><font size="1">11:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">11:00</font></strong></td>
<td><strong><font size="1">11:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">11:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">12:00</font></strong></td>
<td><strong><font size="1">12:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">12:00</font></strong></td>
<td><strong><font size="1">12:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">12:00</font></strong></td>
<td><strong><font size="1">12:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">12:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">13:00</font></strong></td>
<td><strong><font size="1">13:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">13:00</font></strong></td>
<td><strong><font size="1">13:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">13:00</font></strong></td>
<td><strong><font size="1">13:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">13:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">14:00</font></strong></td>
<td><strong><font size="1">14:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">14:00</font></strong></td>
<td><strong><font size="1">14:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">14:00</font></strong></td>
<td><strong><font size="1">14:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">14:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">15:00</font></strong></td>
<td><strong><font size="1">15:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">15:00</font></strong></td>
<td><strong><font size="1">15:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">15:00</font></strong></td>
<td><strong><font size="1">15:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">15:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">17:00</font></strong></td>
<td><strong><font size="1">17:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">17:00</font></strong></td>
<td><strong><font size="1">17:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">17:00</font></strong></td>
<td><strong><font size="1">17:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">17:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">18:00</font></strong></td>
<td><strong><font size="1">18:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">18:00</font></strong></td>
<td><strong><font size="1">18:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">18:00</font></strong></td>
<td><strong><font size="1">18:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">18:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">19:00</font></strong></td>
<td><strong><font size="1">19:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">19:00</font></strong></td>
<td><strong><font size="1">19:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">19:00</font></strong></td>
<td><strong><font size="1">19:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">19:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><strong><font size="1">20:00</font></strong></td>
<td><strong><font size="1">20:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">20:00</font></strong></td>
<td><strong><font size="1">20:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">20:00</font></strong></td>
<td><strong><font size="1">20:00</font></strong></td>
<td bgcolor="#EFEFEF"><strong><font size="1">20:00</font></strong></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
<td> </td>
<td bgcolor="#EFEFEF"> </td>
</tr>
<tr bgcolor="#EFEFEF">
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
Link para o comentário
Compartilhar em outros sites
2 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.