Skip to content

Commit

Permalink
🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
saulotarsobc committed Sep 26, 2022
1 parent 5514623 commit af42d9f
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 51 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# csv_tabela_myzap
Converte um csv com contatos para um tabela. Tambem podemos usar os campos de dados como variáveis.

## Converte um csv com contatos para um tabela. Tambem podemos usar os campos de dados como variáveis

![banner](./img/banner.png)
4 changes: 4 additions & 0 deletions gitp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!
git add --all;
git commit -m ":fire: $1";
git push;
Binary file added img/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 7 additions & 12 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<html lang="pt-br">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<title>CSV to Table - Myzap</title>
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.css">
</head>
Expand Down Expand Up @@ -44,8 +44,7 @@
</div>
<div class="col-12 mt-2">
<input id="testarConexao" class="form-control btn btn-secondary" type="button"
value="Testar conexão com API">
<input id="testarConexao" class="form-control btn btn-secondary" type="button" value="Testar conexão com API">
</div>
</div>
Expand All @@ -55,8 +54,7 @@
<div class="row">
<form class="col" id="form" method="post" enctype="multipart/form-data">
<div class="form-group">
<input required class="form-control custom-file-input" id="file" name="file" type="file"
accept=".csv">
<input required class="form-control custom-file-input" id="file" name="file" type="file" accept=".csv">
<input class="form-control btn btn-primary mt-2" type="submit" value="Carregar contatos">
</div>
</form>
Expand All @@ -65,8 +63,7 @@
<div class="form-group">
<label for="variaveis">Variaveis que voçê pode usar na mensagem:</label>
<textarea disabled class="form-control" name="variaveis" id="variaveis" rows="3"
placeholder="Listarei as variaveis que voçê pode usar na composição de sua mensagem"></textarea>
<textarea disabled class="form-control" name="variaveis" id="variaveis" rows="3" placeholder="Listarei as variaveis que voçê pode usar na composição de sua mensagem"></textarea>
</div>
</div>
Expand All @@ -78,15 +75,13 @@
<!-- Oi *{{nome}}*, tudo bem? id:{{id}} whatsapp: {{whatsapp}} -->
<div class="mt-2 col-md-6 col-sm-12">
<label class="custom-file-label" for="mensagem">Compor Mensagem:</label>
<textarea class="form-control" name="mensagem" id="mensagem" rows="5"
placeholder="Sem mensagem definida"></textarea>
<textarea class="form-control" name="mensagem" id="mensagem" rows="5" placeholder="Sem mensagem definida"></textarea>
</div>
<div class="mt-2 col-md-6 col-sm-12">
<label class="custom-file-label" for="mensagemModelo">Modelo baseado no primeiro
contato:</label>
<textarea disabled class="form-control" name="mensagemModelo" id="mensagemModelo" rows="5"
placeholder="Sem mensagem definida"></textarea>
<textarea disabled class="form-control" name="mensagemModelo" id="mensagemModelo" rows="5" placeholder="Sem mensagem definida"></textarea>
</div>
<div class="col-sm-12">
Expand Down
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 17 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
{
"dependencies": {
"bootstrap": "^5.2.0",
"jquery": "^3.6.0"
},
"name": "php_processar_csv",
"version": "1.0.0",
"name": "csv_tabela_myzap",
"version": "4.0.3",
"description": "Converte um csv com contatos para um tabela. Tambem podemos usar os campos de dados como variáveis",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"keywords": [
"myzap",
"csv",
"php",
"table",
"curl",
"api",
"whatsapp"
],
"author": "Saulo Costa",
"license": "ISC",
"description": ""
"dependencies": {
"bootstrap": "^5.2.1",
"jquery": "^3.6.1"
}
}
8 changes: 4 additions & 4 deletions teste.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id,nome,whatsapp
1,Saulo Costa,559392135722
2,Matheus Lemos,558194471494
3,Arthur,5521965890461
4,Leticia Travassos,559384010752
1,Saulo Costa,559392135712
2,Matheus Lemos,558194421494
3,Arthur,5521965867461
4,Leticia Travassos,559384012152

0 comments on commit af42d9f

Please sign in to comment.