PDA

View Full Version : Ext.ux.PreferencesWindow (3.x)



wemerson.januario
14 Dec 2009, 10:19 PM
Hi, this is my second ux created. Please download and test it.
This ux creates a preferences window where you can set themes, languages and user profile for your system.
As soon as possible I'll upload the project for an online demo.
Feedbacks are welcome. Thanks.

How it works
==============
Simple! You create an instance of it and pass at least 3 config options
a) systemName: the name of your system
b) winBanner: the system's image, banner, etc ( the logo, the banner of you system)
c) basePath: the pathe where images of extensions are located.
And that's IT! You can also customize the PreferencesWindow to suit your needs better.
Anyway here is a small example:

<script type="text/javascript">
Ext.BLANK_IMAGE_URL = 'img/s.gif';
Ext.QuickTips.init();

Ext.onReady(function() {
Ext.QuickTips.init();
var preferencesWindow = new Ext.ux.PreferencesWindow({
modal : true,
title: 'Preferences of the user: '+ serverVariables.nomeUsuarioLogado,
uxInfoURL: 'readme.html',
systemName: 'System name here',
winBanner: 'logoPreferences.png',
basePath: 'img'
});
preferencesWindow.show();
});
</script>Requeriments:
PHP 5.3.0
PostgreSQL
ExtJS 3.x
Tested in Firefox 3.5.5, IE 8, Opera 10, Chrome 4.0


Installation:
Download the zip file , extract and execute the SQL file to create the demo DB and tables


Download Link :


http://www.megaupload.com/?d=FJAFMPRH

fangzhouxing
15 Dec 2009, 2:00 AM
Thanks!

extjsnewb
20 Dec 2009, 1:06 PM
Looks awesome!