コード例 #1
0
ファイル: box-atrasos.php プロジェクト: pwatanabe/sgo
    echo '<table  class="table-aniversariantes" border="0">';
    echo '<tr><td colspan="5"><b>Hoje</b><br /><span>' . date("d/m/Y") . '</span></td></tr>';
    // echo '<tr><td colspan="4"><b>Justificar atraso</b></td></tr>';
    echo '<tr><td colspan="5">' . $string . '</td></tr>';
    echo '<tr><td colspan="5" style="text-align:left; padding-left:10px; padding-top: 10px;"><b>Motivo do atraso:</b></td></tr>';
    echo '<tr><td colspan="5" style="text-align:left; padding-left:30px; color:#454545; "><div style="max-height:50px; height:50px; overflow-y:scroll">' . $horario->observacao_funcionario . '</div></td></tr>';
    echo '<tr><td colspan="5" style="text-align:left; padding-left:10px; padding-top: 10px;"><b>Justifique esse atraso:*</b></td></tr>';
    echo '<tr><td colspan="5"> <textarea id="observacao" name="observacao" style="width: 450px; height:50px; resize:none;"></textarea> </td></tr>';
    echo '<tr><td colspan="5" style="padding-top:5px"> <input type="submit" class="button" value="Salvar"> <input class="button" type="button" value="Cancelar" onclick="window.location.href=\'principal\'"> </td></tr>';
    echo '</table>';
    echo '</form>';
    echo '</div>
            </div> ';
} else {
    $horario = new Horarios();
    $array = $horario->get_atrasos(date("Y-m-d"));
    if (count($array) > 0) {
        echo '<div class="content-right" >
                <div class="box-atrasos" style="">';
        echo '<div class="cont" style="margin-left:480px;"><a name="exibe_box_atrasos" onclick="oculta(this.name)"><img width="20px" src="../images/icon-fechar.png" onmouseover="info(\'pop2\')" onmouseout="fecharInfo(\'pop2\')"></a>
                              <div id="pop2" class="pop" style="display:none">
                                  <div id="titulo2" class="title-info-config"><span>Informações</span></div>
                                  <div id="content2" class="content-info">Clique para ocultar esse bloco, você pode exibi-lo novamente a qualquer momento em:<br /><b>Configurações > Layout</b></div>   
                              </div>
                         </div>';
        echo '<div class="cont" style="color:#f33;font-size:15px;  text-align:left"><b>' . count($array) . '</b></div>';
        echo '<table class="table-atrasos" style="box-shadow:0px 0px 5px #ccc;">';
        echo '<tr>
                          <td colspan="4">
                            <div class="time">
                                  <input type="text" id="txtRelogio" disabled name="relogio" size="10" style="font-size:26px;height:45px;">