8 "bodyStyle"=>"padding: 5px; background-color: #cfcfcf; font-family: Arial; font-weight: bold;",
9 "html"=>"Employee Database",
20 "bodyStyle"=>"padding: 5px;",
21 "html"=>"This example demonstrates how to remotely load component configurations with a sample extension <a href='ComponentLoader.js'>Ext.ux.ComponentLoader</a>. By changing the session isAdmin flag you can see how different component configurations can be sent over the wire to improve security. "
25 "id"=>"employeeDetailsCt",
27 "title"=>"Employee Details",
40 "xtype"=>"employeegrid",
41 "store"=>"employeeStore"
45 $components = array();
46 $components[] = array(
53 "xtype"=>"employeedetails",
54 "title"=>"Information",
55 "url"=>"loadEmployeeInfo.php"
57 if (true == $_SESSION['isAdmin']) {
60 "xtype"=>"employeepropertygrid",
61 "url"=>"loadEmployeePropGrid.php"
65 $components[] = array(
66 "xtype"=>"employeedetailstab",
67 "id"=>"employeeDetails",
68 "container"=>"employeeDetailsCt",
71 "tabPosition"=>"bottom",
75 $jsonPacket = array("components"=>$components, "success"=>true);
76 echo json_encode($jsonPacket);