Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

PHP variables
(1 viewing) (1) Guest
Go to bottomPage: 1234567
TOPIC: PHP variables
*
#38784
Re:PHP variables 11 Years, 8 Months ago Karma: 5
I've added the following

Code:

$dtCode = sprintf('if (typeof(AriDataTables) != "undefined") AriDataTables.hideLoadingPane("#%1$s_wrapper");var options = %2$s;options["fnDrawCallback"] = function(oSettings) { adt_DataTable_DrawCallback(oSettings) };options["fnServerParams"]=function(aoData){aoData.push({"name":"leagueid","value":"<?php echo $GET[leagueid];?>"});};$("#%1$s").addClass("display dataTable").dataTable(options);',


but the table is still loading with "No Data Available in Table"

Anything else I need to add?

thanks
Last Edit: 2013/03/22 18:07 By trevor_stp.
The administrator has disabled public write access.
 
#38790
Re:PHP variables 11 Years, 8 Months ago Karma: 760
Try the following code:

$dtCode = sprintf('if (typeof(AriDataTables) != "undefined") AriDataTables.hideLoadingPane("#%1$s_wrapper");var options = %2$s;options["fnDrawCallback"] = function(oSettings) { adt_DataTable_DrawCallback(oSettings) };options["fnServerParams"] =function(aoData){aoData.push({"name":"leagueid","value":"' . JRequest::getString('leagueid') . '"});};$("#%1$s").addClass("display dataTable").dataTable(options);',

Regards,
ARI Soft
The administrator has disabled public write access.
 
#38801
Re:PHP variables 11 Years, 8 Months ago Karma: 5
Thanks,

works great but it does strip any CSS added to "CSS Styles".
Also, when a query has a 'Having' clause, the first page loads but the pagination buttons (next/prev or full numbers) are disabled. The table also displays 'showing 0 of 0 results' when it has indeed loaded the first page of results.
The administrator has disabled public write access.
 
#38811
Re:PHP variables 11 Years, 8 Months ago Karma: 760
Could you provide a link to a page where we can see the problem and specify what query with "HAVING" clause you use?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#38861
Re:PHP variables 11 Years, 8 Months ago Karma: 5
thanks for the suggestion. I've changed HAVING to WHERE and it is now working.

The CSS style that does not load is:

Code:

TABLE{$id} TR TD.ari-tbl-col-6
{
color: green;
font-weight: bold;
}



It does, however, work if I include

Code:

<font color=green>${$value}</font>


within the 'Format Column' of column settings. Thanks again for the great support
The administrator has disabled public write access.
 
#38864
Re:PHP variables 11 Years, 8 Months ago Karma: 5
Last Edit: 2013/03/24 23:04 By trevor_stp.
The administrator has disabled public write access.
 
Go to topPage: 1234567