provide installation instructions
[extjs.git] / examples / remoteload / remoteload.php
1 <?php
2         session_start();
3         $_SESSION['isAdmin'] = true;
4 ?>
5 <html>
6 <head>
7   <title>Remote Component Loading - Employee DB</title>
8         <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
9     
10     <!-- GC -->
11         <!-- LIBS -->
12         <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
13         <!-- ENDLIBS -->
14
15     <script type="text/javascript" src="../../ext-all.js"></script>
16     <script type="text/javascript" src="ComponentLoader.js"></script>
17         <script type="text/javascript" src="EmployeeDetailsTab.js"></script>
18         <script type="text/javascript" src="EmployeeDetails.js"></script>
19         <script type="text/javascript" src="EmployeePropertyGrid.js"></script>
20         <script type="text/javascript" src="EmployeeGrid.js"></script>
21         <script type="text/javascript" src="EmployeeStore.js"></script>
22     <script type="text/javascript" src="App.js"></script>       
23
24 </head>
25 <body>
26         <textarea id="employeeDetailTpl" class="x-hidden">              
27                 <div>
28                         <table cellpadding="2" cellspacing="2">
29                                 <tr>
30                                         <td>First Name:</td>
31                                         <td>{firstName}</td>
32                                 </tr>
33                                 <tr>
34                                         <td>Last Name:</td>
35                                         <td>{lastName}</td>
36                                 </tr>
37                                 <tr>
38                                         <td>Title:</td>
39                                         <td>{title}</td>
40                                 </tr>
41                                 <tr>
42                                         <td>Telephone:</td>
43                                         <td>{telephone}</td>
44                                 </tr>                                                   
45                 
46         <?php
47                 if (true == $_SESSION['isAdmin']) {
48         ?>
49                                 <tr>
50                                         <td>Home Address</td>
51                                         <td><tpl for="homeAddress">{street}<br/>{city}, {state}<br/></tpl></td>
52                                 </tr>                   
53         
54         <?php
55                 }
56         ?>
57                 </div>
58         </textarea>
59         
60 </body>
61 </html>