Login   Register  
PHP Classes
elePHPant
Icontem

File: demos/011.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  d3Extjs  >  demos/011.php  >  Download  
File: demos/011.php
Role: Example script
Content type: text/plain
Description: working with extjs (download extjs 4 and put it to your local dev site)
Class: d3Extjs
Generate JavaScript code to access ExtJS library
Author: By
Last change:
Date: 2013-01-18 09:07
Size: 1,620 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>ExtJS Layout Examples</title>
  <link rel="stylesheet" type="text/css" href="/extjs/resources/css/ext-all.css" />
  <link rel="stylesheet" type="text/css" href="/extjs/examples/portal/portal.css" />
  <script type="text/javascript" src="/extjs/ext.js"></script>
  <script type="text/javascript" src="/extjs/examples/shared/examples.js"></script>
  <script type="text/javascript" src="/extjs/examples/portal/portal.js"></script>
  <script type="text/javascript">
<?php 


include_once '../d3.classes.inc.php';
include_once 
'../extjs.class.inc.php';

ext()->Loader->setPath("Ext""/extjs/src")->colon()->linebreak()->toStack();
ext()->Loader->setPath("Ext.app""/extjs/examples/portal/classes")->colon()->linebreak()->toStack();
ext()->require(obj(array(
  
//'Ext.diag.layout.ContextItem.*',
  //'Ext.diag.layout.Context.*',
  
'Ext.layout.container.*',
  
'Ext.resizer.Splitter',
  
'Ext.fx.target.Element',
  
'Ext.fx.target.Component',
  
'Ext.window.Window',
  
'Ext.app.Portlet',
  
'Ext.app.PortalColumn',
  
'Ext.app.PortalPanel',
  
'Ext.app.Portlet',
  
'Ext.app.PortalDropZone',
  
'Ext.app.GridPortlet',
  
'Ext.app.ChartPortlet'
)))->colon()->linebreak()->toStack();

ext()->onReady(func()
  ->
add(ext()->create("Ext.app.Portal")->colon())
)->
colon()->linebreak()->toStack();

echo 
stack();
?>

  </script>
</head>
<body>
<span id="app-msg" style="display:none;"></span>
</body>
</html>