EasyUI Forum
September 13, 2025, 10:01:07 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2
1  General Category / EasyUI for jQuery / Re: Export to Excel the loaded data in datagrid on: January 19, 2016, 02:14:52 PM
$q = mysql_query("select * from mytable");

while($mrow = mysql_fetch_assoc($q)) {
    $col = 0;
    foreach($mrow as $key=>$value) {
        $objPHPExcel->setActiveSheetIndex(0)->setCellValueByColumnAndRow($col, 0, $key);
        $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($col, $row + 1, $value);
        $col++;
    }
    $row++;
 }
2  General Category / EasyUI for jQuery / Re: Export to Excel the loaded data in datagrid on: January 19, 2016, 04:22:44 AM
try phpExcel

https://phpexcel.codeplex.com/wikipage?title=Examples&referringTitle=Home

I can help if you want to do phpExcel.

Ejaz
3  General Category / EasyUI for jQuery / Re: FileBox on: March 16, 2015, 06:31:10 AM
stworthy!

please help
4  General Category / EasyUI for jQuery / FileBox on: March 15, 2015, 01:25:35 PM
<input class="easyui-filebox" name="file" style="width:200px;" />

show fakepath in the screen not given real path of the file.
how to solve this ?

Ejaz
5  General Category / EasyUI for jQuery / Re: dialog/window not displayed in center in 1.4.1 on: January 16, 2015, 01:06:52 PM
use this

$.extend($.fn.dialog.methods, {
    mymove: function(jq, newposition){
        return jq.each(function(){
            $(this).dialog('move', newposition);
        });
    }
});


$(dialogName).dialog('move', {
   left: 10,
   top: 200
});
         
$(dialogName).dialog('open').dialog('setTitle','abcd Details');
6  General Category / EasyUI for jQuery / Re: How to update/delete a record from a table with multiple keys on: January 16, 2015, 12:51:48 PM
$sql = "update products set productName='$productName'  where ProductBrand = '$ProductBrand' and productCode = '$productCode' and ProductSerial = '$ProductSerial' ";

$result = @mysql_query($sql);
7  General Category / EasyUI for jQuery / Re: Datebox default date on: January 16, 2015, 12:25:35 PM
hi

if your date field data type is date/time then use this
$tdate = date('Y-m-d H:i:s',strtotime($tdate));

if data type is just date then use this
$tdate = date('Y-m-d',strtotime($tdate));
8  General Category / EasyUI for jQuery / DataGrid on: January 01, 2015, 02:22:10 AM
Can we show [ sound.wav ] file in DataGrid and play?
9  General Category / EasyUI for jQuery / easyui-tabs ( refresh inner page ) on: September 29, 2014, 04:17:58 AM
 <div id="mytab" class="easyui-tabs" data-options="tools:'#tab-tools'" style="width:1350px;height:780px; font-family:Eras Demi ITC;">
      
            <div title="Advertise" data-options="href:'page1.php',closable:false"></div>
                <div title="Advertise via SMS" data-options="href:'page2.php',closable:false"></div>
                <div title="Campaign Response" data-options="href:'page3.php',closable:false"></div>
</div>

How to refresh or reload inner page click on any tab?

Ejaz
10  General Category / EasyUI for jQuery / Responsive DataGrid on: September 26, 2014, 02:06:20 AM
How to make EasyUI datagrid responsive so that it is resized when the browser window's size changes?
11  General Category / EasyUI for jQuery / Re: DataGrid Colunm show hide on: May 15, 2014, 02:26:15 AM
One more thing..
how to set data type any integer value column in Grid?

thanks
12  General Category / EasyUI for jQuery / DataGrid Colunm show hide on: May 11, 2014, 02:33:56 PM
Is it possible to hide show columns programmatically?

ehussain.
13  General Category / EasyUI for jQuery / Re: DataGrid footer on: March 18, 2014, 04:37:52 AM
stworthy!

sir i'm waiting for your reply.

thanks

14  General Category / EasyUI for jQuery / DataGrid footer on: March 17, 2014, 06:50:59 AM
hi,
I want to use footer column in datagrid php, here is my code to get data from db...

        $page = isset($_POST['page']) ? intval($_POST['page']) : 1;
   $rows = isset($_POST['rows']) ? intval($_POST['rows']) : 10;
   $offset = ($page-1)*$rows;
   $result = array();

   //include 'conn.php';
   include 'include/db.php';
   
   $rs = mysql_query("select count(*) from table");
   $row = mysql_fetch_row($rs);
   $result["total"] = $row[0];
   $rs = mysql_query("SELECT .. limit $offset,$rows");
   
   $items = array();
   while($row = mysql_fetch_object($rs)){
      array_push($items, $row);
   }
   $result["rows"] = $items;

   echo json_encode($result);


can anyone help that how I add the footer value in my code?Huh

Thanks
15  General Category / EasyUI for jQuery / DataGrid in Dialog Box on: January 28, 2014, 04:03:49 AM
How to refresh grid in dialog box?
Pages: [1] 2
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!