Page 12

download Page 12

If you can't read please download the document

description

Articles of faith

Transcript of Page 12

var iMAXROWSTOSHOW_c = 1; var iALL_c = 2; var iMAXDEFAULTTOTALS_c = 3; var iNUMROWSDEFAULT_c = 25; var ptPreview; var objPT; var adorsTable; function display() { var sHTML, sProgID, sCubeName, sConnectionString, sCommandType, sCommandText; var collProgIDTags, collXMLTags, xmldocODC; var objHR; collProgIDTags = window.document.getElementsByName("ProgID") // if there is no progid, bail out. if (collProgIDTags.length == 0) { return; } sProgID = collProgIDTags[0].content; objPT = window.document.createElement("OBJECT") objPT.classid = "clsid:0002E552-0000-0000-C000-000000000046" objPT.width = "100%" objPT.height = "100%" objPT.AutoFit = false; objPT.style.margin = "1px" objPT.id = "ptPreview"; xmldocODC = window.document.getElementById("msodc"); if (xmldocODC == null) { return; } element.appendChild(objPT); the page element.style.backgroundColor="buttonface"; ptPreview = objPT.object; switch (sProgID) { case "ODC.Table": sCommandType = xmldocODC.documentElement.selectSingleNode("odc:Connection/ odc:CommandType").text sCommandText = xmldocODC.documentElement.selectSingleNode("odc:Connection/ odc:CommandText").text sConnectionString = xmldocODC.documentElement.selectSingleNode("odc:Connec tion/odc:ConnectionString").text setTable(sConnectionString, sCommandText, sCommandType); // add the PT to

break; case "ODC.Database": sConnectionString = xmldocODC.documentElement.selectSingleNode("odc:Connec tion/odc:ConnectionString").text setDatabase(sConnectionString); break; case "ODC.Cube": sCubeName = xmldocODC.documentElement.selectSingleNode("odc:Connection/odc :CommandText").text sConnectionString = xmldocODC.documentElement.selectSingleNode("odc:Connec tion/odc:ConnectionString").text setCube(sConnectionString, sCubeName); break; } } function setTable(sConnectionString, sCommandText, sCommandType) { sCommandType = sCommandType.toLowerCase(); ptPreview.ConnectionString = sConnectionString ptPreview.DataSource.MaxRecords = iNUMROWSDEFAULT_c; if (sCommandType.indexOf("default") >= 0 { ptPreview.CommandText = sCommandText } else if (sCommandType.indexOf("table") >= 0) { ptPreview.DataMember = scrubTableName(sConnectionString, sCommandText); } try { ptPreview.ActiveView.AutoLayout(); } catch (e) { if (e.description.length > 0) { alert (e.description); } } // if this is a "table" from an OLAP provider, cubeify. Otherwise, add the ro w count dropdown. if (sCommandText.indexOf("].[")>=0) { showDefaultCubeView(); } else { addMaxRowDropdown(); } configurePTPreview(); } function scrubTableName(sConnectionString, sDataMember) { var sOut; var i; var sConnectionStringLower = sConnectionString.toLowerCase(); sCommandType.indexOf("sql") >= 0 )

sOut = sDataMember; if (sConnectionStringLower.indexOf("dsn=excel files")>=0 sConnectionStringLower.indexOf("dsn=ms access database")>=0 sConnectionStringLower.indexOf("microsoft access")>=0) { sOut = replace(sOut, "`", "") // ODBC providers, like Excel and Access, f ail when called via OLE-DB if there // are these single quotes. } // customize the connection string for the picky MS ODBC Text Driver if (sConnectionStringLower.indexOf("driverid=27")>=0) { i = sOut.lastIndexOf("`"); if (i>=0) { i = sOut.lastIndexOf("`", i-1); if (i>=0) { sOut = sOut.substring(i, sOut.length); sOut = replace(sOut, "`", "\""); } } } return sOut; } function setCube(sConnectionString, sCubeName) { var i, iNumDefaultTotals ptPreview.ActiveView.Titlebar.Visible = false; ptPreview.ConnectionString = sConnectionString; ptPreview.DataMember = sCubeName; showDefaultCubeView(); } function showDefaultCubeView() { ptPreview.DisplayFieldList = true; // give the PT focus; otherwise, the field list doesn't show until you click o n PT. objPT.focus(); with (ptPreview.ActiveView) { if (Totals.count < iMAXDEFAULTTOTALS_c) { iNumDefaultTotals = Totals.count } else { iNumDefaultTotals = iMAXDEFAULTTOTALS_c } for (i=0; i=0) { strNew = strNew + strOrig.substring(j, i) + strTo; j = i + iFromLen i = strOrig.indexOf(strFrom, j) } i = strOrig.length; strNew = strNew + strOrig.substring(j, i); return strNew; } function getLocalizedFontSize(iStringIndex) { var sLng = window.clientInformation.browserLanguage; if (sLng.indexOf("zh") == 0) { return 12; } if (sLng.indexOf("ja") == 0 sLng.indexOf("ko") == 0) { return 11; } return 10; } function getLocalizedFontName(iStringIndex) { var sLng = window.clientInformation.browserLanguage;

if if if if

(sLng.indexOf("zh-hk") (sLng.indexOf("zh-tw") (sLng.indexOf("zh-sg") (sLng.indexOf("zh") ==

== == == 0)

0) { return "PMingLiu"; } 0) { return "PMingLiu"; } 0) { return "PMingLiu"; } { return "SimSun"; }

if (sLng.indexOf("ko") == 0) { return "Dotum"; } if (sLng.indexOf("ja") == 0) { return "MS PGothic"; } return "Arial Unicode MS"; } function getLocalizedString(iStringIndex) { var sLng = window.clientInformation.browserLanguage; if (iStringIndex == iALL_c) if (sLng.indexOf("ar") == if (sLng.indexOf("zh-hk") if (sLng.indexOf("zh-tw") if (sLng.indexOf("zh-sg") if (sLng.indexOf("zh") == if (sLng.indexOf("cs") == if (sLng.indexOf("da") == if (sLng.indexOf("nl") == if (sLng.indexOf("fi") == if (sLng.indexOf("fr") == if (sLng.indexOf("de") == if (sLng.indexOf("el") == if (sLng.ind xOf("h ") == if (sLng.ind xOf("hu") == if (sLng.ind xOf("it") == if (sLng.ind xOf("ja") == if (sLng.ind xOf("ko") == if (sLng.ind xOf("no") == if (sLng.ind xOf("p ") == if (sLng.ind xOf("pt") == if (sLng.ind xOf("ro") == if (sLng.ind xOf("ru") == if (sLng.ind xOf("sk") == if (sLng.ind xOf("s ") == if (sLng.ind xOf(" s") == if (sLng.ind xOf("sv") == if (sLng.ind xOf("th") == if (sLng.ind xOf("tr") == if (sLng.ind xOf("hr") == r turn "(a )"; } { 0) == == == 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) { return "( )"; } 0) { return "()"; } 0) { return "()"; } 0) { return "()"; } { return "()"; } { return "(Vechny)"; } { return "(Alle)"; } { return "(Alle)"; } { return "(Kaikki)"; } { return "(Toutes)"; } { return "(Alle)"; } { return "()"; } { r turn "(} ;") { r turn "(Mind)"; } { r turn "(Tutt )"; } { r turn "( )"; } { r turn " "; } { r turn "(A )"; } { r turn "(Wszystki )"; } { r turn "(Todas)"; } { r turn "(Toat )"; } { r turn "Bc "; } { r turn "( tky)"; } { r turn " s "; } { r turn "(Todas)"; } { r turn "(A a)"; } { r turn ""; } { r turn "Tm"; } { r turn "(Svi)"; }

xOf("n ") == 0) { r turn "Maximum aanta

w r t

g v n rij n";

if (iStringInd if (sLng.ind if (sLng.ind if (sLng.ind if (sLng.ind if (sLng.ind if (sLng.ind if (sLng.ind ; } if (sLng.ind }

x == iMAXROWSTOSHOW_c) { xOf("ar") == 0) { r turn " "; } xOf("zh-hk") == 0) { r turn ""; } xOf("zh-tw") == 0) { r turn ""; } xOf("zh-sg") == 0) { r turn ""; } xOf("zh") == 0) { r turn " "; } xOf("cs") == 0) { r turn "maxim n po t dk k zobraz n"; } xOf("da") == 0) { r turn "maksima anta rkk r, d r ska vis s"

if (sLng.ind xOf("fi") == 0) { r turn "nyt ttvi n rivi n nimmismr"; } if (sLng.ind xOf("fr") == 0) { r turn "nombr maximum d ign s affich r"; } if (sLng.ind xOf("d ") == 0) { r turn "Maxima Anzah anzuz ig nd r Z i n" if f if if } if if if "; } if if if if if if if if if if if (sLng.ind ( L . d (sLng.ind (sLng.ind xOf(" ") xOf("h ") xOf("hu") xOf("it") == == == == 0) 0) 0) 0) { r turn { u { r turn { r turn

(sLng.ind xOf("ja") == 0) { r turn ""; } (sLng.ind xOf("ko") == 0) { r turn " "; } (sLng.ind xOf("no") == 0) { r turn "Maksima t anta rad r som ska vis s

r turn "maximum numb r of rows to show"; } } &nbsp ;& nbsp;&nb sp; PAGE#12 Th Quran Says,&n bsp;&nbs p; &n bsp;&nbs p; &n bsp;&nbs p; &n bsp; &nbsp ; "But v ri y ov r you (ar appoint d Ang s) to prot ct you kind and honoura b . writing down (your d ds)" (82, 10-11) Nakir and Munkir:- *Ang s which qu stion th sou of th d ad p rson as th y ar awaiting r s rvation. *Th n ith r punishm nt or p ac wi b visit d upon that sou unti th y ar rais d for judg m nt. Th ir nam s ar " Nakir and Munkir". Guardian of H Fir s:-

(sLng.ind (sLng.ind (sLng.ind (sLng.ind (sLng.ind (sLng.ind (sLng.ind (sLng.ind (sLng.ind (sLng.ind (sLng.ind

xOf("p ") xOf("pt") xOf("ro") xOf("ru") xOf("sk") xOf("s ") xOf(" s") xOf("sv") xOf("th") xOf("tr") xOf("hr")

== == == == == == == == == == ==

0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0)

{ { { { { { { { { { {

r r r r r r r r r r r

turn turn turn turn turn turn turn turn turn turn turn

"Maksyma na i o wi rszy do pokazania"; } "nm ro mximo d inhas a mostrar"; } "numru maxim d rnduri car s afi az"; } " "; } "Maxim ny po t riadkov na zobraz ni "; } "Najv j t vi o vrstic za prikaz"; } "nm ro mximo d fi as para mostrar"; } "maxima t anta rad r att visa"; } ""; } "Gst ri c k maksimum satr says"; } "maksima an broj r daka za prikaz"; }

; }

" "; } "} ;" "mutatand sorok maxim is szma"; } "num ro massimo di righ da mostrar ";

*H fir s too has Ang s standing ov r it, nin t n in a . *Throw th wrong du s into th pit of H and push d th ir back wh n th y try to scap . *Th chi f of th Ang s of H fir is nam d "Maa ik'. Oth r Ang s:- *Th y cam natura disast r by th command of A ah. *Prot ct th b i v rs.. *Mu titud r of Ang s fi th cosmos and p rform a vari ty of function both in this wor d and in th n xt. *Th y int rvanc in matur wh n A ah wi s can imp ant p ac within our minds and a f ing of tranqui ity.