<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>聰明的生活2</title>
	<atom:link href="http://blog.yslifes.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.yslifes.com</link>
	<description>自己寫java程式的一些筆記</description>
	<lastBuildDate>Wed, 14 Mar 2012 09:59:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://blog.yslifes.com/?pushpress=hub'/>
		<item>
		<title>[Java]常用數字函數</title>
		<link>http://blog.yslifes.com/archives/992</link>
		<comments>http://blog.yslifes.com/archives/992#comments</comments>
		<pubDate>Tue, 07 Feb 2012 15:06:04 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Java基礎入門]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/?p=992</guid>
		<description><![CDATA[字串取小數幾位，不足碼補零 package com.creations.util; &#160; import java.math.BigDecimal; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; &#160; public class NumberUtils &#123; /** * 字串取小數幾位 * * @param str * 字串(數字) * @param precision * 小數幾碼 * @return 取好的字串 */ public static String MarkUpZero&#40;String str, int precision&#41; &#123; String maskup = &#34;00000000000&#34;; String retVal = str; &#160; retVal = StringUtils.nvl&#40;retVal, &#34;0&#34;&#41;; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/992/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Java]常用的字串String函數function</title>
		<link>http://blog.yslifes.com/archives/987</link>
		<comments>http://blog.yslifes.com/archives/987#comments</comments>
		<pubDate>Sat, 04 Feb 2012 11:45:00 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Java基礎入門]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/?p=987</guid>
		<description><![CDATA[字串或數字不足碼部份補零 &#160; /** * 數字不足部份補零回傳 * @param str 數字 * @param lenSize 數字最大長度,不足的部份補零 * @return 回傳補零後字串數字 */ public static String MakesUpZero&#40;int str, int lenSize&#41; &#123; return MakesUpZero&#40;String.valueOf&#40;str&#41;, lenSize&#41;; &#125; &#160; /** * 數字不足部份補零回傳 * @param str 字串 * @param lenSize 字串數字最大長度,不足的部份補零 * @return 回傳補零後字串數字 */ public static String MakesUpZero&#40;String str, int lenSize&#41; &#123; String zero [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/987/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[JAVA]聯絡我們表單程式後台</title>
		<link>http://blog.yslifes.com/archives/980</link>
		<comments>http://blog.yslifes.com/archives/980#comments</comments>
		<pubDate>Thu, 02 Feb 2012 15:32:00 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[easyui]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/?p=980</guid>
		<description><![CDATA[前一篇介紹過聯絡我們的的前台程式，這篇會介紹如何取得前台聯絡表單所留言的內容，使用的網頁使用framework有jquery及easyui，利用datagrid來顯示所有的資料列，而重要的留言內容則顯示於iframe裡，如此可排除大部份的html tag產生的問題。 這程式目前缺少了幾個功能，並不影響使用，不過如果有需求的人倒可以自己加入使用： 前台留言後自動發mail給某位管理者 後台可回覆留言給使用者，寄送mail或電話聯絡後寫下聯絡事項 最主要是JavaMail的使用，及資料寫入資料庫的應用。 因為是後台，所以還需要一個登入畫面，再登入成功後可以顯示後台menus，利用easyui的layout排列north為資訊狀態，center為datagrid顯示聯絡資料列表，而east為留言的內容。 而網頁使用Ajax傳送get或post參數給後端，而後端程式回傳json格式如下： total：總筆數，grid顯示分頁toolbar使用的，會計算總頁數等… success：成功執行則回傳true，否則則回傳false msg：回傳的訊息，可於回傳success為false時，帶上錯誤訊息顯示給使用者知道 rows：為一個陣列資料，每一筆資料都是一個json格式 程式碼如下： index.jsp登入後台 &#60;%@ page language=&#34;java&#34; contentType=&#34;text/html; charset=UTF-8&#34; pageEncoding=&#34;UTF-8&#34;%&#62; &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD HTML 4.01 Transitional//EN&#34; &#34;http://www.w3.org/TR/html4/loose.dtd&#34;&#62; &#60;html&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=UTF-8&#34;&#62; &#60;title&#62;登入&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; html,body{ margin:0; padding:0; height:100%; border:none } &#60;/style&#62; &#60;script type=&#34;text/javascript&#34; src=&#34;js/jquery-1.7.1.min.js&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34; src=&#34;js/jquery.form.js&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34;&#62; $(function(){ $(document).ready(function() { [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/980/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[JAVA]連絡我們表單程式前台</title>
		<link>http://blog.yslifes.com/archives/979</link>
		<comments>http://blog.yslifes.com/archives/979#comments</comments>
		<pubDate>Mon, 16 Jan 2012 13:49:56 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[架站]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/979</guid>
		<description><![CDATA[這是個很常在官方網頁看到的程式，在這種表單之前要與官方網站人員連絡，只能使用email，只是這email address會被人故意的收集，發送垃圾郵件，十分讓人困擾。 在表單的設計上，需要讓網站人員能知道是誰留了資料，所以連絡的方式一定要讓使用者留下，所以設計畫面如下：類型、標題、姓名、EMail、電話及內容。 按下送出，可存於資料庫裡，這裡可以再加一個send mail的動作，不過目前這個範例並沒有實作。 MySQL資料表 delimiter $$ &#160; CREATE TABLE `contact` &#40; `id` INT&#40;11&#41; NOT NULL AUTO_INCREMENT, `title` VARCHAR&#40;500&#41; DEFAULT NULL, `content` text, `user_name` VARCHAR&#40;45&#41; DEFAULT NULL, `user_email` VARCHAR&#40;45&#41; DEFAULT NULL, `user_tel` VARCHAR&#40;45&#41; DEFAULT NULL, `kind` VARCHAR&#40;45&#41; DEFAULT NULL, `postdate` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, `replydate` TIMESTAMP NULL DEFAULT NULL, PRIMARY KEY &#40;`id`&#41; &#41; ENGINE=MyISAM [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/979/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP]自動取號(編碼)程式</title>
		<link>http://blog.yslifes.com/archives/978</link>
		<comments>http://blog.yslifes.com/archives/978#comments</comments>
		<pubDate>Thu, 05 Jan 2012 15:38:15 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[autoencode]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/978</guid>
		<description><![CDATA[使用php撰寫程式的人，最常使用的資料庫應該是MySQL，MySQL本身已經有提供自動取號的功能，不過在某些狀況上可能並不適用，而已也有些資料庫並沒有提供自動給號的功能的。 自動取號，主要用在key值的產生，可以得到唯一的編號，而這個編號是有一定規則的，像是（檔頭＋年份＋流水號）之類的，用來識別此筆資料，而產生這個編號有很多種方式，如： 資料庫本身提供此功能,ex:mysql的Auto Increment 利用一個Table存放目前編號，再使用stored procedure或是程資語言來取號 其它... 之前有寫過一個Oracle Store procedure的取號程式，而這次提供利用php程式來取得編號，取號的原則有幾個來確保取號不會錯誤： 取號後，不管有無使用，則此編號已不會再產生 要使用transaction功能來取號及存入取到號碼（此範例並未用到交易） 這個範列的結果 編碼用Table(autoencode) CREATE TABLE `autoencode` &#40; `code_type` VARCHAR&#40;50&#41; NOT NULL, `code_head` VARCHAR&#40;10&#41; NOT NULL, `code_count` BIGINT&#40;20&#41; NOT NULL, `code_max` INT&#40;11&#41; NOT NULL DEFAULT '10', PRIMARY KEY &#40;`code_type`&#41; &#41; ENGINE=InnoDB DEFAULT CHARSET=utf8 編碼程式內容 &#160; define&#40;'DB_HOST', &#34;localhost&#34;&#41;; //資料庫主機位置 define&#40;'DB_LOGIN', &#34;root&#34;&#41;; //資料庫的使用帳號 define&#40;'DB_PASSWORD', &#34;12345&#34;&#41;; //資料庫的使用密碼 define&#40;'DB_NAME', [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/978/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>c3p0 ConnectionPools設置與使用</title>
		<link>http://blog.yslifes.com/archives/975</link>
		<comments>http://blog.yslifes.com/archives/975#comments</comments>
		<pubDate>Mon, 12 Dec 2011 14:44:12 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[Exception]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[sql server]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/975</guid>
		<description><![CDATA[c3p0是一個基於JNDI-bindable DataSources(使用DriverManager-based)的很容易使用的JDBC驅動函數庫。 所以在使用c3p0時，還需要一個JDBC的Driver，才能使用，而c3p0的作用只是控制Database的Connection使用，舉個簡單的例子，當Connection被DataBase Server timeout斷線後，c3p0會自動多次去重新連線，避免程式就直接丟出SQLException。 這次剛好遇到Microsoft SQL Server 2005不知為何一直丟出以下訊息，才去找到c3p0來使用的，發生的原因似乎是SQL Server本身對JDBC的Connection TimeOut斷線、或是Connection數不夠。 I/O Error: Connection reset I/O Error: Software caused connection abort: recv failed 下面是一個範例，結果如下圖： package com.yslifes; &#160; import java.beans.PropertyVetoException; import java.sql.SQLException; &#160; import javax.sql.DataSource; &#160; import com.mchange.v2.c3p0.ComboPooledDataSource; &#160; public class DB &#123; private static ComboPooledDataSource ds = null; public static DataSource getPool&#40;&#41; throws java.sql.SQLException &#123; [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/975/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSharp Windows Form 使用圓邊EdgeRounding</title>
		<link>http://blog.yslifes.com/archives/973</link>
		<comments>http://blog.yslifes.com/archives/973#comments</comments>
		<pubDate>Mon, 31 Oct 2011 14:12:04 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[VisualStudio]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[express]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/973</guid>
		<description><![CDATA[Windows Form的屬性設定裡並無法直接設定成圓邊，如果需要在FormBoderStyle為none的狀態下讓Form以圓邊的狀態下顯示，如下圖： 只需要把Form的可視範圍畫出成圓邊的路徑就可以了，其它元件也可以那麼做，只是當元件被重畫時，需要重新Repaint圓邊的範圍。 GraphicsPath graphicpath = new GraphicsPath&#40;&#41;; graphicpath.StartFigure&#40;&#41;; graphicpath.AddArc&#40;0, 0, 25, 25, 180, 90&#41;; graphicpath.AddLine&#40;25, 0, this.Width - 25, 0&#41;; graphicpath.AddArc&#40;this.Width - 25, 0, 25, 25, 270, 90&#41;; graphicpath.AddLine&#40;this.Width, 25, this.Width, this.Height - 25&#41;; graphicpath.AddArc&#40;this.Width - 25, this.Height - 25, 25, 25, 0, 90&#41;; graphicpath.AddLine&#40;this.Width - 25, this.Height, 25, this.Height&#41;; graphicpath.AddArc&#40;0, this.Height - 25, [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/973/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Csharp使用ADO.NET操作SQLite</title>
		<link>http://blog.yslifes.com/archives/972</link>
		<comments>http://blog.yslifes.com/archives/972#comments</comments>
		<pubDate>Sun, 30 Oct 2011 02:10:35 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[VisualStudio]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[datasource]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sqlite]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/972</guid>
		<description><![CDATA[SQLite是一個簡易的資料庫系統，開放原始碼，可以直接把SQLite綁在程式裡使用，FireFox及Android等軟體也都有內建SQLite。SQLite不需要安裝，看起來就只是一個檔案而已，也可以使用memory模式，讓它存在記憶體中而不需要建立一個檔案存放。 SQLite支援的SQL指令：http://www.sqlite.org/lang_corefunc.html C#要連接SQLite可以使用open source的System.Data.SQLite，它是一個基於ADO.Net所做與SQLite的溝通介面，目前支援到.net framework 3.5。可於sourceforge下載其dll來使用，就可以了。 下方的範例是介紹如何在Csharp下使用ADO.NET連接與操作SQLite，包含了自動產生SQLite檔案與DataGridView使用class binding datasource方法。 一、建立一個專案，並先將其儲存起來 (需要先建置專案才能使用專案裡的class當做datasource) 二、改變專案使用的Framework 在專案節點上選擇屬性 把目標Framework(G):改成.NET Framework 3.5以下 告知需要重新啟動專案 三、加入System.Data.SQLite的Dll當做參考 在專案裡的參考節點上按右鍵選加入參考(R).... 找到DLL加入 在參考的節點上可以看到System.Data.SQLite已加入成功 因為原本專案為.NET Framework 4被降為3.5，所以會多出一個無法使用的參考Microsoft CSharp，此時可順便移除掉它。 四、建立相容模式 SQLite ADO.NET是建立於版本v2.0.50727，所以在比較高的版本會有相容性問題，所以修改app.config或web.config來使其相容使用。 ps.有一說可以在.NET Framework 4.0修改設定則可以使用SQLite ADO.NET 在startup的tag上加上屬性 &#60;startup useLegacyV2RuntimeActivationPolicy=&#34;true&#34;&#62; &#60;supportedRuntime version=&#34;v2.0.50727&#34;/&#62; &#60;/startup&#62; 在範列裡我們會使用到二種建立SQLite Connection的方法，其中一種為DbProvider，所以需要使用到以下tag內容，放在configuration內就可以了，如果不使用此種DbProvider方法，也可不加。 &#60;system.data&#62; &#60;DbProviderFactories&#62; &#60;remove invariant=&#34;System.Data.SQLite&#34;/&#62; &#60;add name=&#34;SQLite Data Provider&#34; invariant=&#34;System.Data.SQLite&#34; description=&#34;.Net Framework Data Provider for SQLite&#34; [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/972/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java使用JDBC操作SQLite</title>
		<link>http://blog.yslifes.com/archives/971</link>
		<comments>http://blog.yslifes.com/archives/971#comments</comments>
		<pubDate>Sat, 08 Oct 2011 16:05:34 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[資料庫]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/971</guid>
		<description><![CDATA[SQLite是一個輕量級的資料庫系統，不需要安裝就可以使用，也可以十分容易的就內嵌於系統內，FireFox就內嵌SQLite，可以在FireFox上直接使用JavaScript來呼叫操作資料庫。 SQLite是由C語言撰寫而已，可以跨Linux及Windows等平台，在Java存取及操作上則可使用JDBC來連線SQLite。 在JDBC連線SQLite上，大概分成二種方式，一種是由Pure-Java來連結資料，另一種則是直接利用Java呼叫C語言撰寫的函式庫，不過在實測上直接呼叫C的函式庫的方式應該是比較快的，不過在無法找到合適C函式庫的平台則可使用Pure-Java版。 SQLiteJDBC目前查到這個版本是比較有在更新，而且在使用上跟一般的JDBC幾乎是一樣的，上手程式十分簡單。 SQLiteJDBC可以由這裡下載，以下範例是由3.5.7版本製作，提供建立Table、移除Table、查詢、新增、刪除及修改等範例。 package com.izero.sqllite; import java.sql.*; &#160; import org.sqlite.SQLiteConfig; import org.sqlite.SQLiteDataSource; public class MyTest &#123; public Connection getConnection&#40;&#41; throws SQLException &#123; SQLiteConfig config = new SQLiteConfig&#40;&#41;; // config.setReadOnly(true); config.setSharedCache&#40;true&#41;; config.enableRecursiveTriggers&#40;true&#41;; &#160; &#160; SQLiteDataSource ds = new SQLiteDataSource&#40;config&#41;; ds.setUrl&#40;&#34;jdbc:sqlite:sample.db&#34;&#41;; return ds.getConnection&#40;&#41;; //ds.setServerName(&#34;sample.db&#34;); &#160; &#160; &#125; //create Table public void createTable&#40;Connection con &#41;throws SQLException&#123; [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/971/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何新增Joomla樣板(template)</title>
		<link>http://blog.yslifes.com/archives/970</link>
		<comments>http://blog.yslifes.com/archives/970#comments</comments>
		<pubDate>Tue, 04 Oct 2011 11:46:00 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[架站]]></category>
		<category><![CDATA[軟體介紹]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[樣板]]></category>
		<category><![CDATA[樣版]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/970</guid>
		<description><![CDATA[joomla網頁主要是由樣板html及後台資料所組合而成的，可先由photoshop、Dreamviewer等軟體製作好畫面並切好成一區塊一區塊的的，再由joomla Module來控制輸出資料狀況，這就是樣板樣生成網頁的方式。 Joomla安裝完成後會有幾個樣板範例，可由這幾個範例來做延伸，下圖是安裝完後的首頁內容。 可以把網頁內容分成數個區塊，每一個區塊的資料都是由joomla的module對應所產生的內容。 樣板放置的位置為joomla安裝目錄下templates裡，每一個樣板都有自己的目錄名稱，joomla在有安裝範例樣資料的狀況下，使用rhuk_milkyway做為其預設樣板。 可由joomla選單上，選擇Template Manager來設定使用的樣板。 在樣板目錄下有二個檔案比較重要，一是index.php，此為樣板的內容，而另一是templateDetails.xml，此檔案定義了在樣板要使用的模組、內容及參數等。 打開templateDetails.xml，可定義其 樣板名稱name 建立樣板日期creationDate 樣板作者名稱author 作者電子郵件authorEmail copyright資訊copyright 版權license 版本version 描述description 等等等 其中files裡內容需提供所有在樣板會使用到的內容，包含php、html、圖片、css及javascript等，而在positions裡則需告知要對應及使用的模組有那一些，可由後台新增相對應內容來顯示資料。 再來用一個簡單的例子說明如何把資料對應到樣板再輸出成html顯示於使用者端。 下圖Latest News及Popular為二塊資料顯示區。 打開index.php，內容的對應可使用以下語法 &#60;jdoc:include type=”modules=” name=” templateDetails.xml裡positions名稱” /&#62; 可輸出positions為user1及user2二個的內容，其中user1為Latest News區塊資料而user2為Popular區塊資料。 建立資料內容，可由joomla後台Extensions－＞Module Manager來管理及建立資料。 由上方New按扭來增加需要的模組內容。 在建立module時，Position需選擇在templateDetails.xml定義之名稱，就可以連接資料與網頁內容了。 其它補充： 在index.php建立時在header之前之內容，可以自訂需要載入之css及javascript等 網頁主要的內容，也就是每頁的文章顯示則由 &#60;jdoc:include type=”component” /&#62; 來顯示其內容資料]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/970/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

