This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <select> | |
| <option value="" selected="true" disabled="disabled">-- Estado --</option> | |
| <option value="AC">Acre</option> | |
| <option value="AL">Alagoas</option> | |
| <option value="AP">Amapá</option> | |
| <option value="AM">Amazonas</option> | |
| <option value="BA">Bahia</option> | |
| <option value="CE">Ceará</option> | |
| <option value="DF">Distrito Federal</option> | |
| <option value="ES">Espirito Santo</option> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| DATE(`created_at`) created_at, | |
| COUNT(`created_at`) total | |
| FROM TABLENAME | |
| WHERE | |
| YEAR(`created_at`) = YEAR(NOW()) | |
| AND MONTH(`created_at`) = MONTH(NOW()) | |
| GROUP BY | |
| DAY(`created_at`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| YEAR(`created_at`) year, | |
| MONTH(`created_at`) month, | |
| COUNT(`created_at`) total | |
| FROM TABLENAME | |
| WHERE | |
| YEAR(`created_at`) = YEAR(NOW()) | |
| AND MONTH(`created_at`) = MONTH(NOW()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| DATE(`created_at`) created_at, | |
| COUNT(`created_at`) total | |
| FROM TABLENAME | |
| WHERE | |
| DATE(`created_at`) > DATE_SUB(CURDATE(), INTERVAL 7 DAY) | |
| GROUP BY | |
| DATE(`created_at`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var consultaCep = function () { | |
| var factory = {}; | |
| factory.cep = {}; | |
| factory.get = function (cep) { | |
| var cep = cep = cep.replace(/\D/g,''); | |
| if (cep.length === 8) { | |
| $.ajax({ |
NewerOlder