Posts by Wagner Fillio • 1,328 points
143 posts
-
1
votes1
answer509
viewsQ: overlay div elements with the box-shadow property
Hello, By triggering the scroll, i add a class to div-operador, causing a box-shadow, at the top of div-operador. But as picture below, the input elements, select, etc... are above the shadow. How…
-
1
votes1
answer100
viewsQ: Performance Ajax
Developing an application, and testing some calls ajax I have come across two different situations, but in both of which I have the feedback I need. What I want to know is, if there’s any other way,…
-
1
votes0
answers989
viewsQ: Convert PHP to PDF
I need to convert HTML generated PHP boletos to PDF. codeigniter-bolete I tried to use the Dompdf library, as well as FPDF and finally MPDF (the latter, from what I read on some forums, would be…
-
0
votes2
answers147
viewsQ: Get modal element value attribute
Hello, Watching objeto_receita I get the following data: After receiving this data, I assign its value to the respective fields. Basically using the function below: function objeto_form() {…
-
2
votes1
answer82
viewsQ: Focus on the first validation element - jQuery
Hello, With the function below, I validated required fields. In this case, I don’t use this function to submit the form, but rather to add items to the object. However, I want to focus on the first…
jqueryasked Wagner Fillio 1,328 -
0
votes0
answers45
viewsQ: Filter function returns Undefined - Jquery
Hello! Can someone tell me what’s wrong ? Using the filter function, I am seeing a Undefined return. Javascript var enum_toastr_type = { success: 1, info: 2, warning: 3, error: 4 } /***# PAGELOAD…
jqueryasked Wagner Fillio 1,328 -
0
votes1
answer523
viewsA: Import CSV file to Mysql
Maybe there’s an easier way, I believe there is, but I got it this way: public $contrato_id = 0; public function upload_file() { $csv_mimes =…
-
1
votes1
answer523
viewsQ: Import CSV file to Mysql
I have a database with these two tables: TABELA CONTRATO id contrato pessoa_id TABELA TITULO id titulo valor vencimento contrato_id I need to import the column contrato, retrieve the ID of the…
-
0
votes1
answer401
viewsQ: Calculate installment entry value - PHP
Based on the function below, how can I consider and calculate the value of the entry in the installment, so that the rest is divided in equal parts for the other installments? function…
phpasked Wagner Fillio 1,328 -
0
votes1
answer94
viewsQ: Create array through function
Is there any way to return a array, something like: $array = [ "parcela" => "1", "valor" => "100", ]; Using the function below? I need to return one array with the number of plots and the…
phpasked Wagner Fillio 1,328 -
1
votes2
answers54
viewsA: Only one line as true, MYSQL - Codeigniter
I decided to create a new function and put a condition in the functions: function created // mark_all_false public function mark_all_false() { $this->db->where('padrao',…
-
0
votes2
answers54
viewsQ: Only one line as true, MYSQL - Codeigniter
Hello! Since I have the following table: DROP TABLE IF EXISTS `tb_conta`; CREATE TABLE IF NOT EXISTS `tb_conta` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `nome` VARCHAR(255) NOT NULL, `tipo`…
-
1
votes1
answer147
viewsQ: DATATABLE CODEIGNITER - INNER JOIN QUERY
Hello! I’m using dataTable in codeigniter and performing a query through the field search Seeing the query below, it works well when it comes to query within the same table tb_pagamento. Now I want…
-
2
votes1
answer235
viewsQ: Value in input element is not displayed - (although value is being loaded correctly ) - Jquery
Hello! I am returning an object through ajax and assigning the values to the respective fields. Using as example the title field: $('#txt_titulo').val(objeto_menu.titulo); However, I noticed…
-
0
votes2
answers131
viewsQ: Merge php arrays
Hello! There is the possibility of joining array’s ? If yes how can I do ? What I got Array ( [Dashboard_1] => 1 ) Array ( [Configuração_2] => 1 ) Array ( [Usuário_3] => 1 ) Array (…
-
0
votes2
answers54
viewsA: Unserialize data in Codeigniter?
public function get_data($permissao_id) { $this->db->select('id, nome, permissoes tree_funcao, grupo_id'); $this->db->from($this->tabela); $this->db->where('id',$permissao_id);…
-
3
votes2
answers54
viewsQ: Unserialize data in Codeigniter?
Seeing that I have the following method: Controller public function get_objeto($permissao_id) { if ($permissao_id == 0) { $permissao_id = $permissao_id; $dados =…
-
1
votes2
answers69
viewsQ: Ignore strings containing "@" - jquery
See the function, below it serves to change the first character of the string for uppercase and other minuscule characters in the fields they have class lower This function ignores strings smaller…
jqueryasked Wagner Fillio 1,328 -
0
votes0
answers104
viewsQ: Comparison between Array and Database, Codeigniter inclusion and exclusion
I decided on this question, a question I had about including and removing items that was in the array and was not in the database or vice versa. So I tried to use the same method for a team record,…
-
0
votes2
answers261
viewsA: Codeigniter - Active Record - Query - Update Method Database
Making some changes on Paul’s response, follows how it turned out and worked... The method has been changed result for result_array and removed a foreach desnecessário. The query parameters have…
-
1
votes5
answers3338
viewsA: How do I get a div to start hiding?
Follow this basic example: <div style="display:none"> <label>Título</label> <input type="text" value="texto"> </div>
-
0
votes2
answers261
viewsQ: Codeigniter - Active Record - Query - Update Method Database
Hello! I ask this question in order to remove a doubt I have, and to be able to read other people’s ideas, of how I can insert or delete an item, to a certain operador_id. As the first image shows,…
-
0
votes1
answer180
viewsQ: KEYCODE 9 JQUERY does not work
Hello! Can you tell me why the event keycode == 9 doesn’t work? $("#txt_cep").keypress(function (e) { if (e.keyCode == 9) { $("#btn_pesquisa_cep").click(); } else if (e.which == 13) {…
javascriptasked Wagner Fillio 1,328 -
0
votes1
answer138
viewsQ: Error script JS - Canoot read Property 'match'
Hello! This script is used to turn capital letters into minuscule, keeping the first letter uppercase.. Put in line return str.match(/\S+\s*/g); an error is occurring: Uncaught TypeError: Canoot…
javascriptasked Wagner Fillio 1,328 -
0
votes2
answers572
viewsQ: Check if item exists in array
I have this object. stdClass Object ( [assessoria_id] => 1 [id] => 3 [nome] => wagner.fillio [cpf] => 00000000000 [login] => wagner.fillios [ramal] => 123 [pin] => 123…
phpasked Wagner Fillio 1,328 -
0
votes1
answer382
viewsQ: Remove Event/Function - jquery
I have the following function: function paper_collapse() { $(".collapse-card").paperCollapse(); } This function is always called when the page is loaded. $(document).ready(function() {…
jqueryasked Wagner Fillio 1,328 -
1
votes1
answer98
viewsQ: Get INT as INT and not as string - Codeigniter - Ajax
I have the following tabela, controller and model, I want to get what it is int as int, and not string. Note that when the item is recovered, the field int is in quotes. How do I recover the data…
-
0
votes1
answer642
viewsQ: IF condition codeigniter - Check whether data exists in the database(model)
I have the following method to obtain data in codeigniter. // Obter Fase public function obter_fase($id) { $this->db->from($this->tbl_empresa_fase);…
-
1
votes1
answer196
viewsQ: Return result_array codeigniter
Having the following table: tbl_event `id` INT(11) NOT NULL AUTO_INCREMENT, `descricao` VARCHAR(255) NULL DEFAULT NULL, `evento_id` INT(11) NOT NULL, `devedor_id` INT(11) NOT NULL, `negociacao_id`…
-
0
votes0
answers129
viewsQ: PHP - Create error status for return in ajax
To perform a system validation I need to create an error status and get this status in ajax in: error: (function (erro) { //codigo }) Based on http_response_code(404); of PHP. I can make a mistake…
-
0
votes1
answer54
viewsQ: Get name in Select Join
See the following function: $id_contratos = array_map(function($item) { return $item['id'];}, $result['contratos']); $empresa = " -- aqui eu preciso recuperar o nome da empresa --"; $view["empresa"]…
codeigniterasked Wagner Fillio 1,328 -
0
votes1
answer74
viewsQ: Popular form (Object array)
I have the following object array: What I have of this object is the index, and I want to use this index to populate a form. In the function below, fase is the array and ID is the index of the…
jqueryasked Wagner Fillio 1,328 -
2
votes1
answer921
viewsQ: Codeigniter - Recover ID
I need to retrieve the last ID inserted in a table and pass this ID to the field of another function. It is possible to recover in this way ? $negociacao = array( 'id' => $neg->id,…
-
1
votes1
answer179
viewsQ: Get data as Array and not as object - Codeigniter
Hello! I intend to get the table data tbl_devedor_parcela, using the field negociacao_id, thus, I need to recover data from table tbl_devedor_parcela as array de objetos. The first table ID…
-
0
votes2
answers1610
viewsQ: Automatically update timestamp on update
Using the UPDATE CURRENT_TIMESTAMP it is possible to automatically update a field from a table in the Mysql database? I want the inclusion date to be assigned to the fields: dt_cadastro and…
mysqlasked Wagner Fillio 1,328 -
0
votes1
answer50
viewsQ: Retrieve and separate data that is not in the array
I know that using in_array, i check if the value exists in the array. I need to know if the id, contains numbers from 1 to 6. If any number between 1 and 6 exists, displays the message, ID existe no…
phpasked Wagner Fillio 1,328 -
0
votes1
answer149
viewsQ: Optimize Codeigniter code
I have a system for registering debt negotiations. Suppose I register a negotiation with 3 installments. Being: Parcela || Valor || Vencimento || Situação 1 || 100,00 || 01/09/2017 || Pago 2 ||…
-
0
votes1
answer1114
viewsQ: Plugin Bootstrap Table - English translation
Hello! I believe I have done the plugin loading and translation correctly, but is not translating. Can you help me ?…
-
0
votes1
answer839
viewsA: take jquery file from a form
You could use ajax. It would be something like: <form id="frm" enctype="multipart/form-data"> <input id="file"/> <button type="button" id="btn_enviar">Salvar</button>…
jqueryanswered Wagner Fillio 1,328 -
1
votes3
answers154
viewsA: Count how many days from today to the bank date
$dt_hoje = date('Y-m-d'); $dt_banco = '2017-08-22'; // Usa a função strtotime() e pega o timestamp das duas datas: $dt_hoje = strtotime($dt_hoje); $dt_banco =…
-
1
votes0
answers153
viewsQ: Jquery cookie - Display notification only once
I need a notification to be displayed as soon as the login is done, but when updating the page in the browser or F5, the notification is not displayed again. Using the cookie, is there any way to do…
-
0
votes2
answers634
viewsQ: Change button text in AJAX request
Hello! I know it sounds silly to ask, but I don’t understand why it’s not working. I want to send the form via ajax, while the request is made, the button is disabled and the name(text) of the…
-
0
votes1
answer76
viewsQ: Condition not to send field in ajax
Hello! Is there any way not to send the password field via ajax, if it is empty ? As it is, it is sending as empty and replacing the field value with empty, so I would like to send this field, only…
jqueryasked Wagner Fillio 1,328 -
0
votes1
answer3685
viewsQ: separate Divs HTML
Hello! Using the bootstrap, can you tell how I can align the Divs ? (col-Md-6) ? but in the first half, I need to divide the grid in two . <div class="col-md-6"> <div class="row">…
-
1
votes2
answers371
viewsQ: Add + 1 to current number (Jquery)
Hello! The following function below should add + 1 to id current, however, is not working, as opposed to adding, is adding + 1. Example: If the current ID is 1, using the function, the next ID (1 +…
jqueryasked Wagner Fillio 1,328 -
3
votes1
answer1434
viewsQ: Access object inside object (Sdtclass - Codeigniter)
Hello! Through the ajax data: { 'objeto': JSON.stringify(_obj_devedor) }; I am sending the following objeto to the server. And in codeigniter, I’m converting as follows: $objeto = $_POST['objeto'];…
-
1
votes1
answer316
viewsQ: Obtain Multidimensional Array (codeigniter) data?
I had a case solved through the question of this link here in the O.R.: Following the example of the above question, I have the following table tbl_devedor_contrato, with the following fields: `id`…
codeigniterasked Wagner Fillio 1,328 -
4
votes4
answers1350
viewsQ: Check if id_user is logged in (Session - codeigniter)
I am building a login system and in it I am making some validations. Everything functional, except, the verification if user is already logged in. I’m using the method below, but it’s not 100%…
-
0
votes2
answers173
viewsA: White stripe below the footer in the Airship with Adminlte
Make sure, that all page tags (div, form, input) where the problem appears are closed correctly. <html> <head> <title></title> </head> <body> <div>…
-
1
votes1
answer245
viewsQ: Insert_batch or update_batch - Codeigniter
Hello! Can help me with an insert_batch or update_batch. Through the code below I need to insert, update or delete an item from the database. As it is I am able to enter, but my problem is when I…