$agenda->SalvarNovo();
        }
        if (converte_data($_GET[pesquisa], 1) < date(Y . '-' . m . '-' . d) || $_GET[cpf_dentista] != $_SESSION[cpf] && $_SESSION[nivel] == 'Dentista') {
            $blur = 'onblur';
            $disable = 'disabled';
        } else {
            $blur = '';
            $disable = '';
        }
        ?>
      <td width="8%" align="left" height="23">&nbsp;<?php 
        echo $horario[$i];
        ?>
</td>
      <td width="30%" align="left"><input type="text" size="40" maxlength="30" name="descricao" id="descricao" value="<?php 
        echo $agenda->RetornaDados('descricao');
        ?>
" <?php 
        echo $disable;
        ?>
 onblur="Ajax('agenda/atualiza', 'agenda_atualiza', 'data=<?php 
        echo $agenda->RetornaDados('data');
        ?>
&hora=<?php 
        echo $agenda->RetornaDados('hora');
        ?>
:00&descricao='%2Bthis.value%2B'&cpf_dentista=<?php 
        echo $agenda->RetornaDados('cpf_dentista');
        ?>
')" class="forms"></td>
      <td width="12%" align="left" <?php 
示例#2
0
            $j++;
            $style = '';
        } else {
            $style = '';
        }
        $agenda->LoadAgenda($_GET[data], $horario[$i], $_GET[cpf_dentista]);
        if (!$agenda->ExistHorario()) {
            $agenda->SalvarNovo();
        }
        ?>
      <td width="8%" align="left" height="23"style="border-left: 1px; border-left-color=: #CCCCCC; border-left-style: solid; border-bottom: 1px; border-bottom-color=: #CCCCCC; border-bottom-style: solid">&nbsp;<?php 
        echo $horario[$i];
        ?>
</td>
      <td width="30%" align="left" style="border-bottom: 1px; border-bottom-color=: #CCCCCC; border-bottom-style: solid"><?php 
        echo $agenda->RetornaDados('descricao');
        ?>
&nbsp;</td>
      <td width="12%" align="left" style="border-right: 1px; border-right-color=: #CCCCCC; border-right-style: solid; border-bottom: 1px; border-bottom-color=: #CCCCCC; border-bottom-style: solid"><?php 
        echo $agenda->RetornaDados('procedimento');
        ?>
&nbsp;</td>
<?php 
    }
}
?>
	</tr>
    <tr>
      <td colspan="6">&nbsp;</td>
    </tr>
    <tr bgcolor="#<?php 
示例#3
0
            $style = 'style="border-right: 1px; border-right-color=: #CCCCCC; border-right-style: solid"';
        } else {
            $style = '';
        }
        $agenda->LoadAgenda(converte_data($_GET[pesquisa], 1), $horario[$i], $_GET[codigo_dentista]);
        if (!$agenda->ExistHorario()) {
            $agenda->SalvarNovo();
        }
        if (converte_data($_GET[pesquisa], 1) < date(Y . '-' . m . '-' . d) || $_GET[codigo_dentista] != $_SESSION[codigo] && $_SESSION[nivel] == 'Dentista') {
            $blur = 'onblur';
            $disable = 'disabled';
        } else {
            $blur = '';
            $disable = '';
        }
        if ($agenda->RetornaDados('faltou') == 'Sim') {
            $chk = 'checked';
            $val_chk = 'Não';
        } else {
            $chk = '';
            $val_chk = 'Sim';
        }
        ?>
      <td width="7%" align="center" height="23">&nbsp;<?php 
        echo $horario[$i];
        ?>
</td>
      <td width="24%" align="left">
        <input type="text" size="30" maxlength="90" name="descricao" onkeyup="searchSuggest(this, 'codigo_pac<?php 
        echo $i;
        ?>