PhpWindowSystem - Demo Site
 
 
PhpConcept
 
 

Home

 
   
 

Other projects

 
  SourceForge Logo  
 


PhpWindowSystem
is a generic Window management PHP code that allow any PHP application to propose to the user a friendly graphical interface. Php Window System manage the main window, the title header, menu bars with sub-menus, footers, popup windows.

 
 
sample.xml
 
 

 

<?xml version="1.0" encoding="ISO-8859-1" ?>
<phpwindowsystem version="0.1">
  <application>
  <name>MiniPhpZip</name>
  <version>0.1</version>
  <icon>sample.gif</icon>
  <logo>sample-logo.gif</logo>
  <document class="MyAppliDocument" create_at_start='no'></document>
  <window name="pws_main" type="main">
    <title>
    </title>
    <separator>
    </separator>
    <menu>
      <button>
        <name>File</name>
        <menu>
          <button>
            <name>New</name>
            <action type='click'>
              <event event='pws_new'></event>
            </action>
          </button>
          <button>
            <name>Open ...</name>
            <action type='click'>
              <event event='start' target='pws_explorer' mode='open' return_parameter='name'></event>
            </action>
          </button>
          <separator>
          </separator>
          <button>
            <name>Save</name>
            <action type='click'>
              <event event='pws_save'></event>
            </action>
          </button>
          <button>
            <name>Save as</name>
            <action type='click'>
              <event event='pws_save_as'></event>
            </action>
          </button>
          <button>
            <name>Close</name>
            <action type='click'>
              <event event='pws_close'></event>
            </action>
          </button>
          <button>
            <name>Delete</name>
            <action type='click'>
              <event event='pws_delete'></event>
            </action>
          </button>
          <separator>
          </separator>
          <button>
            <name>Quit</name>
            <action type='click'>
              <event event='pws_quit'></event>
            </action>
          </button>
        </menu>
      </button>
      <button>
        <name>Edit</name>
        <menu>
          <button>
            <name>Add ...</name>
            <action type='click'>
              <event event='start' target='pws_explorer' mode='select' return_event='add' return_parameter='filename'></event>
            </action>
          </button>
        </menu>
      </button>
      <button>
        <name>Window</name>
        <menu>
          <button>
            <name>Refresh</name>
            <action type='click'>
              <event event='pws_display'></event>
            </action>
          </button>
          <separator>
          </separator>
          <menu type="document_list">
          </menu>
        </menu>
      </button>
      <button>
        <name>Help</name>
        <menu>
          <button>
            <name>Help</name>
            <action type='click'>
              <event event='pws_display' name='pws_help'></event>
            </action>
          </button>
          <separator>
          </separator>
          <button>
            <name>Trace On/Off</name>
            <action type='click'>
              <event event='pws_trace'></event>
            </action>
          </button>
          <separator>
          </separator>
          <button>
            <name>About</name>
            <action type='click'>
              <event event='pws_display' name='pws_about'></event>
            </action>
          </button>
        </menu>
      </button>
    </menu>
    <separator>
    </separator>
    <frame type="document">
    </frame>
  </window>
  <window type="about" name="pws_about">
    <module name='PclZip' version='1.1.1' link='http://www.phpconcept.net/pclzip/'>PclZip is a library that manage a Zip archive</module>
    <module name='PclTar' version='1.5' link='http://www.phpconcept.net/pcltar/'>Library that manage GNU TAR archives. Compressed or not.</module>
    <author name='Vincent Blavet' role='lead' mail='vincent@phpconcept.net' link='http://www.phpconcept'></author>
    <author name='Au Thor' role='lead' mail='vincent@phpconcept.net' link='http://www.phpconcept'></author>
    <author name='Cont Ributor' role='contributor' link='http://www.phpconcept'></author>
    <author name='Loud Speaker' role='translator' mail='vincent@phpconcept.net' link='http://www.phpconcept'></author>
  </window>
  <window type="help" name="pws_help">
  </window>
  <window type="popup" name="pws_explorer" title="File Explorer">
    <document class="PwsModuleExplorer" max_document='1'></document>
    <frame type="object">
    </frame>
  </window>
  </application>
</phpwindowsystem>