Winetu Kaue Sedrez Bilhalva edited this page Sep 18, 2016 · 5 revisions

Welcome to the CedrosDatabase wiki!

Use os menus ao lado para navegar

Exemplo de Uso

var conexao=new CedrosDatabase();
conexao.database_="gestao";

$(function(){

    meses();

});


meses = function() {

    conexao.table_="meses";

    conexao.getAll();

    if(conexao.numLins==0) {

        $("#selectMes").html("Nenhum mês cadastrado ainda");

    }
    else {

        resultado="<select class='myInput'>";

        for(i=1;i<=conexao.numLins;i++) {

            id=conexao.get("id",i);
            ano=conexao.get("ano",i);
            mes=conexao.get("mes",i);

            resultado+="<option value='"+id+"'>"+mes+"/"+ano+"</option>";

        }
        resultado+="</select>";

        $("#selectMes").html(resultado);

    }

}
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.