Tabs & Datagrid

Discuss everything related to ApPHP Tabs. Any questions related to the ApPHP Tabs developing or using should be posted to this forum.

Moderators: ne_moj, zewa, Milton, vadimako, ne_moj, zewa, Milton, vadimako

STEPH80
Newbie
Newbie
Posts: 1
Joined: Aug 18th, '11, 22:16

Tabs & Datagrid

Postby STEPH80 » Aug 18th, '11, 22:33

Hello,

Is it possible to post an example with the uses of datagrid into a tab ? I'm trying to do it unsuccessfully.

A page with 1 Tab (or more) and the content is a PHP file with a datagrid. In my case I'm obliged to change the current directory in the page with datagrid (because the getcwd() return xxxxxxxx/PHPTABS_311/inc) and no JS functions are running.

Thanks in advance for your support and sorry for my bad english,

Regards

administrator
Site Admin
Site Admin
Posts: 5976
Joined: Jan 7th, '09, 23:18
Contact:

Re: Tabs & Datagrid

Postby administrator » Aug 21st, '11, 08:07

if(!defined('TABS_DIR')) define ("TABS_DIR","");
require_once(TABS_DIR.'tabs.class.php');
$tabs = new Tabs();
$tabs->SetId(1);
//$tabs->Debug(true);
$tabs->SetStyle($css_style);
$tabs->SetSubmissionType($submission);
$tabs->SetChildTabsType($child);
$tabs->SetHttpVars(array("submission","style","child","id"));
$tabs->AllowRefreshSelectedTabs(false);
$tabs->UseAnchor(true);
$tabs->CreateAnchorAuto(true);

$linediagnostics=$tabs->AddTab("Diagnostic Information","test1.php?id=1");
$linetests=$tabs->AddTab("Diagnostic Tests","test2.php?id=2");
$devicemanagement=$tabs->AddTab("Device Management","test3.php?id=3");

$tabs->SetDefaultTab($linediagnostics);
$tabs->SetWidth("100%");
$tabs->SetHeight("auto");
$tabs->Display();

DATA GRID CODE may be placed in test1.php or test2.php file etc.


Return to “ApPHP Tabs”