Click here to Skip to main content
15,886,788 members
Articles / Web Development / ASP.NET

Monorail Hands-On

Rate me:
Please Sign up or sign in to vote.
4.78/5 (15 votes)
19 Feb 2008CPOL9 min read 71.2K   1.1K   40  
In this article, I will present a sample application using the Monorail framework and provide the basic concepts of the design pattern known as MVC.
/*
 * Ext JS Library 1.0.1
 * Copyright(c) 2006-2007, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://www.extjs.com/license
 */

Ext.UpdateManager.defaults.indicatorText="<div class=\"loading-indicator\">U\xc4\ufffditavanje...</div>";if(Ext.View){Ext.View.prototype.emptyText="";}if(Ext.grid.Grid){Ext.grid.Grid.prototype.ddText="{0} odabranih redova";}if(Ext.TabPanelItem){Ext.TabPanelItem.prototype.closeText="Zatvori ovaj tab";}if(Ext.form.Field){Ext.form.Field.prototype.invalidText="Vrijednost u ovom polju je neispravna";}Date.monthNames=["Sije\xc4\ufffdanj","Velja\xc4\ufffda","O\xc5\xbeujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"];Date.dayNames=["Nedelja","Ponedeljak","Utorak","Srijeda","\xc4\u0152etvrtak","Petak","Subota"];if(Ext.MessageBox){Ext.MessageBox.buttonText={ok:"U redu",cancel:"Odustani",yes:"Da",no:"Ne"};}if(Ext.util.Format){Ext.util.Format.date=function(v,_2){if(!v){return "";}if(!(v instanceof Date)){v=new Date(Date.parse(v));}return v.dateFormat(_2||"d/m/Y");};}if(Ext.DatePicker){Ext.apply(Ext.DatePicker.prototype,{todayText:"Danas",minText:"Taj datum je prije najmanjeg datuma",maxText:"Taj datum je poslije najve\xc4\u2021eg datuma",disabledDaysText:"",disabledDatesText:"",monthNames:Date.monthNames,dayNames:Date.dayNames,nextText:"Slijede\xc4\u2021i mjesec (Control+Desno)",prevText:"Prethodni mjesec (Control+Lijevo)",monthYearText:"Odaberite mjesec (Control+Gore/Dolje za promjenu godine)",todayTip:"{0} (Razmaknica)",format:"d/m/y",startDay:1});}if(Ext.PagingToolbar){Ext.apply(Ext.PagingToolbar.prototype,{beforePageText:"Stranica",afterPageText:"od {0}",firstText:"Prva stranica",prevText:"Prethodna stranica",nextText:"Slijede\xc4\u2021a stranica",lastText:"Zadnja stranica",refreshText:"Obnovi",displayMsg:"Prikazujem {0} - {1} od {2}",emptyMsg:"Nema podataka za prikaz"});}if(Ext.form.TextField){Ext.apply(Ext.form.TextField.prototype,{minLengthText:"Minimalna du\xc5\xbeina za ovo polje je {0}",maxLengthText:"Maksimalna du\xc5\xbeina za ovo polje je {0}",blankText:"Ovo polje je obavezno",regexText:"",emptyText:null});}if(Ext.form.NumberField){Ext.apply(Ext.form.NumberField.prototype,{minText:"Minimalna vrijednost za ovo polje je {0}",maxText:"Maksimalna vrijednost za ovo polje je {0}",nanText:"{0} is not a valid number"});}if(Ext.form.DateField){Ext.apply(Ext.form.DateField.prototype,{disabledDaysText:"Neaktivno",disabledDatesText:"Neaktivno",minText:"Datum u ovom polje mora biti poslije {0}",maxText:"Datum u ovom polju mora biti prije {0}",invalidText:"{0} nije ispravan datum - mora biti u obliku {1}",format:"d/m/y"});}if(Ext.form.ComboBox){Ext.apply(Ext.form.ComboBox.prototype,{loadingText:"U\xc4\ufffditavanje...",valueNotFoundText:undefined});}if(Ext.form.VTypes){Ext.apply(Ext.form.VTypes,{emailText:"Ovo polje treba biti e-mail adresa u obliku \"korisnik@domena.com\"",urlText:"Ovo polje treba biti URL u obliku \"http:/"+"/www.domena.com\"",alphaText:"Ovo polje treba sadr\xc5\xbeavati samo slova i znak _",alphanumText:"Ovo polje treba sadr\xc5\xbeavati samo slova, brojeve i znak _"});}if(Ext.grid.GridView){Ext.apply(Ext.grid.GridView.prototype,{sortAscText:"Sortiraj rastu\xc4\u2021im redoslijedom",sortDescText:"Sortiraj padaju\xc4\u2021im redoslijedom",lockText:"Zaklju\xc4\ufffdaj stupac",unlockText:"Otklju\xc4\ufffdaj stupac",columnsText:"Stupci"});}if(Ext.grid.PropertyColumnModel){Ext.apply(Ext.grid.PropertyColumnModel.prototype,{nameText:"Naziv",valueText:"Vrijednost",dateFormat:"j/m/Y"});}if(Ext.SplitLayoutRegion){Ext.apply(Ext.SplitLayoutRegion.prototype,{splitTip:"Povuci za promjenu veli\xc4\ufffdine.",collapsibleSplitTip:"Povuci za promjenu veli\xc4\ufffdine. Dvostruki klik za skrivanje."});}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Instructor / Trainer Alura Cursos Online
Brazil Brazil

Comments and Discussions