EasyUI Forum
April 06, 2026, 10:25:40 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / search Incremetal on: January 26, 2013, 10:34:19 AM
jQuery makes EasyUI search Incremetal datagrid have any examples ...?
2  General Category / General Discussion / Re: pass parameter via $ _POST on: November 21, 2012, 07:40:01 AM
Thanks for the posts, I decided in a way that can serve to someone more below the codes



1- <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-print" plain="true" onClick="print_it()">Imprimir</a>   
 
2- function print_it(){
var row = $('#dg').datagrid('getSelected');
var oDados
oDados = document.getElementById('cSeqlot'); 
oDados.value = row.seqlotB;
$('#form-printer').submit();
}; 
 

3- <form action="impress.php" method="post" id="form-printer">
     <input type="hidden"  id="cSeqlot"  name="cSeqlot" value="cSeqlot"/> 
     </form>         
3  General Category / EasyUI for jQuery / footer someone has example with mysql on: November 19, 2012, 06:27:46 PM
searched the net for some example footer with sum of fields and value not found, if someone had an example with footer using mysql thank you very much.
Any practical example will be welcome
4  General Category / EasyUI for jQuery / Re: Help with sum of column that appears in the result rodape on: November 19, 2012, 04:24:42 AM
Thanks for your message, but no, I need one colcoar rodape if you know something I thank
5  General Category / EasyUI for jQuery / Help with sum of column that appears in the result rodape on: November 17, 2012, 11:53:38 AM


Uploaded with ImageShack.us

I need urgent help sum column rodape tried the example but could not make it work please if someone could post an example I thank,
SOURCE CODE BELOW USED


 <table id="dg" title="IMPERIO SOFTWARE" class="easyui-datagrid" style="width:900px;height:450px"
    url="troca_fazope01.php"   
    toolbar="#toolbar"
    pagination="true"
    rownumbers="true"
    fitColumns="true"
    singleSelect="true"
    pageSize="20"
    showFooter="true">   
      <thead>
         <tr>                   
               
                <th field="bomparB" width="50" sortable="true" align="left">Bom para</th>
            <th field="fantasB" width="50" align="left">PRODUTO</th>
 this column to sum----><th field="salemiB" width="50" align="left">VALOR</th>
            </tr>
      </thead>
   </table>

   
<!-------------------------------------------->
FILE troca_fazope01.php

        session_start();
        $cCodope=$_SESSION["cCodope"];
   $page = isset($_POST['page']) ? intval($_POST['page']) : 1;
   $rows = isset($_POST['rows']) ? intval($_POST['rows']) : 10;
   $offset = ($page-1)*$rows;
   $result = array();      
   include_once('conn.php');
   mysql_query ( "SET NAMES 'utf8'" ); //PARA CARREGAR COM ACENTOS   
   $rs = mysql_query("SELECT count(*) from tab_entche WHERE seqlotB='$cCodope' ") or die (mysql_error ());
   $row = mysql_fetch_row($rs);
   $result["total"] = $row[0];
   $rs = mysql_query("SELECT date_format(bomparB,'%d/%m/%Y') as bomparB,fantasB,salemiB FROM tab_entche WHERE seqlotB='$cCodope' limit $offset,$rows")
   or die (mysql_error ());      
   $items = array();
   while($row = mysql_fetch_object($rs)):
      array_push($items, $row);
   endwhile;
   $result["rows"] = $items;
   echo json_encode($result);

<!---------------------------------------->
6  General Category / EasyUI for jQuery / Re: pass parameter via $ _POST on: October 29, 2012, 05:38:03 AM
thanks for your reply, I do not need my correctly

here I call the page print this PDF to print the student bulletin
<a href="#" class="easyui-linkbutton" iconCls="icon-print" plain="true" onclick="print_it()"> Stampa </ a>




print_it function () {
var row = $ ('# dg'). datagrid ('getSelected');
if (row) {
-> Here I need to call the page impress.php where the PDF report

window.open ('impress.php? cCodalu =' + row.codalub);
exit;
}
};

first lines of page impress.php
nivel_necessario $ = 1;
require_once ('conn.php');
require_once ('fpdf.php');

date_default_timezone_set ('Brazil / East');
/ / Echo date ('d / m / Y - h: i');
/ / SEARCH DATABASE

-> $ CCodalu = $ _GET ['cCodalu'];
-> The above line need $ _POST
I thank in advance anyone's opnion sir, thank you very much and sorry for the inconvenience
7  General Category / EasyUI for jQuery / pass parameter via $ _POST on: October 28, 2012, 05:35:57 PM
Gentlemen need help have the value
of the selected row datagrid to call page PDF print.
How poss pass the parameter via $ _POST NOT $_GET
below example of functional code in $ _GET


function print () {
var row = $ ('# dg'). datagrid ('getSelected');
var minha_variavel = [window.open ('impress.php? cCodalu =' + row.codalub)]
};
I appreciate any help in advance
8  General Category / General Discussion / pass parameter via $ _POST on: October 25, 2012, 10:39:40 AM
Gentlemen need help have the value
of the selected row datagrid to call page PDF print.
How poss pass the parameter via $ _POST NOT $_GET
below example of functional code in $ _GET


function print () {
var row = $ ('# dg'). datagrid ('getSelected');
var minha_variavel = [window.open ('impress.php? cCodalu =' + row.codalub)]
};
I appreciate any help in advance
9  General Category / EasyUI for jQuery / Re: HELP DATE_FORMAT (date, '% d /% m /% Y') NOT RUNNING on: October 08, 2012, 12:01:46 PM
many, many thanks for your help I'm even show the ball
10  General Category / EasyUI for jQuery / Re: HELP DATE_FORMAT (date, '% d /% m /% Y') NOT RUNNING on: October 08, 2012, 11:17:25 AM
Thank you for your attention, and so put date_format (field) that the field is not displayed if no data
follows the code used below

 <table id="dg" title="My Users" class="easyui-datagrid" style="width:900px;height:450px"
         url="get_users.php"
         toolbar="#toolbar" pagination="true"
         rownumbers="true" fitColumns="true" singleSelect="true">
      <thead>
         <tr>                   
                <th field="nomalub" width="50" sortable="true" align="left">Nome</th>
            <th field="endalub" width="50" align="right">Sobrenome</th>
            <th field="telalub" width="50" align="right">Telefone</th>
            <th field="emaalub" width="50">E-mail</th>                                     
                <th field="datnasb" width="50">Data</th>
           
            </tr>
</thead>
11  General Category / EasyUI for jQuery / HELP DATE_FORMAT (date, '% d /% m /% Y') NOT RUNNING on: October 07, 2012, 05:46:33 PM
COMAND LINE
$rs = mysql_query("select date_format(datnasb,'%d/%m/%Y'),nomalub,endalub,telalub,emaalub,
   sql_rowid from tab_cadalu limit $offset,$rows");      

I appreciate any information anticipating many thanks
Imperio - Sao Paulo - Brazil

   
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!