Jump to content
Fórum Script Brasil
  • 0

Apoio Agenda


Guest --Luis Fernando --
 Share

Question

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 to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Guest --Artedominio --

não é bem um calendário, deve funcionar como uma agenda... segue a solucao que encontrei:

<?php $amanha = mktime(0,0,0,date("08"),date("01"),date("2007")); ?>

<?php $amanha2 = mktime(0,0,0,date("08"),date("02"),date("2007")); ?>

<?php $amanha3= mktime(0,0,0,date("08"),date("03"),date("2007")); ?>

<?php $amanha4 = mktime(0,0,0,date("08"),date("04"),date("2007")); ?>

....

para exibir os valores...

<?php echo date("d/m", $amanha); ?>

<?php echo date("d/m", $amanha2); ?>

<?php echo date("d/m", $amanha3); ?>

<?php echo date("d/m", $amanha4); ?>

.....

o único problema é que vou ter que criar um formulario para cada mês, embora foi uma solucao bem de iniciante mas consegui fazer...

agora tenho uma outra dúvida, tenho um checkbox e queria que quando o usuario clicar grava um registro no banco...

muito obrigado pelo apoio...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.2k
    • Total Posts
      647.4k
×
×
  • Create New...