锘??xml version="1.0" encoding="utf-8" standalone="yes"?>BlogJava-瀛愬湪宸濅笂鏇?/title><link>http://www.5432034.com/chengang/</link><description>銆銆閫濊呭鏂?#28598;?#28051;嶈垗鏄煎</description><language>zh-cn</language><lastBuildDate>Sat, 23 Mar 2019 12:56:31 GMT</lastBuildDate><pubDate>Sat, 23 Mar 2019 12:56:31 GMT</pubDate><ttl>60</ttl><item><title>銆奅clipse浠庡叆闂ㄥ埌绮?#38315;?#37510;嬮殢涔﹀厜鐩樺湴鍧http://www.5432034.com/chengang/archive/2017/12/29/432993.html闄堝垰闄堝垰Fri, 29 Dec 2017 07:37:00 GMThttp://www.5432034.com/chengang/archive/2017/12/29/432993.htmlhttp://www.5432034.com/chengang/comments/432993.htmlhttp://www.5432034.com/chengang/archive/2017/12/29/432993.html#Feedback0http://www.5432034.com/chengang/comments/commentRss/432993.htmlhttp://www.5432034.com/chengang/services/trackbacks/432993.html鎴戠殑鏂板崥瀹㈠湴鍧锛?nbsp;yowob.cn

涔︾殑杞?#28000;?#37724;?#28000;?#37934;佹斁?#28266;?#27368;搴︾綉鐩?#38171;?/span>https://pan.baidu.com/s/1kVb31aR




闄堝垰 2017-12-29 15:37 鍙戣〃璇勮
]]>
浜岀骇鍩熷悕?#27537;java瀹炵幇http://www.5432034.com/chengang/archive/2010/12/29/341939.html闄堝垰闄堝垰Wed, 29 Dec 2010 15:19:00 GMThttp://www.5432034.com/chengang/archive/2010/12/29/341939.htmlhttp://www.5432034.com/chengang/comments/341939.htmlhttp://www.5432034.com/chengang/archive/2010/12/29/341939.html#Feedback0http://www.5432034.com/chengang/comments/commentRss/341939.htmlhttp://www.5432034.com/chengang/services/trackbacks/341939.htmlhttp://www.yowob.com )锛屽叾浠栨秹鍙婂埌涓虹敤鎴锋彁渚?#28051;涓?#27996;岀骇鍩熷悕?#23003;鑳?#38171;?#28729;炵幇鏂规硶濡?#28051;?#38171;?br />
(1)棣栧厛瑕佸湪鍩熷悕鏈嶅姟鍟?#32468;?#37707;?#28051;涓硾鍩熷?#23944;В?#28733;. 鎴戠敤?#27537;鏄痝odaddy.com,灏?#37826;板缓涓涓狝璁板綍(host=*,point to鎸?#37722;?#37812;戠殑鏈嶅姟鍣ㄧ殑ip),杩欐?#38155;墍鏈?#27996;岀骇鍩熷悕?#20824;?#32048;杞埌鎴戠殑鏈嶅姟鍣?#37833;?#27996;?br />
(2)鎺ョ潃?#28266;web.xml閰?#28051;涓嚜宸插啓?#27537;鍩熷?#23944;繃婊?#37731;?

    <filter>
        <filter-name>URLFilter</filter-name>
        <filter-class>com.yowob.commons.URLFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>URLFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

杩?#23114;?#37731;ㄧ殑浠?#37934;?#28641;?#28051;?#37510;?#26473;?#38322;屽?#22557;皢浜岀骇鍩熷悕鍜屽叏?#24710;鍩熷悕鍜岀敤鎴稩D?#27537;鏄?#28751;?淇?#28699;樺湪涓涓?#37825;版嵁琛?#38322;? 鐒?#37722;?#29825;?#38338;?#26473;?#37833;?#37827;跺?#29808;湴鍧鍋?#28051;涓?#37714;?#37826;? 鍐?#37721;栧?#21700;搴旂殑?#25956;鎴稩D. 鍐嶈浆涓涓?#28751;?#29723;屼簡. 鎴戠殑闈欐?#37826;?#28000;堕兘?#28266;static鐩綍锛?#37813;浠?#26473;樺姞浜?#28051;涓猻tatic?#27537;鍒?#37826;?#37510;?br /> 姣?#28641;? http://time.you.com/board/21 ?#25956;time瀵?#25652;旂敤鎴稩D涓?,鍒?#29825;?#38338;晥鏋?#37832;?nbsp;http://www.you.com/6/board/21鐩?#37722;? 涓嶈?#22247;湴鍧鏍?#26473;?#37828;?#37828;?#32448;?a href="http://time.you.com/board/21">http://time.you.com/board/21銆?br /> 鍐?#23011;?#28641;?#38171;歨tttp://www.userdomain.com/board/21锛?#26473;?#28051;?#37828;敤鎴稩D涓??#27537;鍏ㄧ悆鍩熷悕锛?#29825;?#38338;晥鏋?#28052;?#37724;屼笂闈?#28051;?#29297;銆?br />
package com.yowob.commons;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.yowob.Constants;
import com.yowob.dao.SiteDAO;
import com.yowob.dto.SiteDTO;

public class URLFilter implements Filter {
    
private static final Log log = LogFactory.getLog(URLFilter.class);
    
private static final String DOMAIN_END = "." + Constants.DOMAIN; //.you.com
    private static final Map<String, Long> NAME_MAP = new HashMap<String, Long>();
    
private static final Map<String, Long> DOMAIN_MAP = new HashMap<String, Long>();

    @Override
    
public void init(FilterConfig filterConfig) throws ServletException {
        log.info(
"------------------------------init");
        SiteDAO siteDAO 
= new SiteDAO();
        List
<SiteDTO> list = siteDAO.getAll();
        
for (SiteDTO siteDTO : list) {
            String name 
= siteDTO.getName();
            
if (StringUtils.isNotEmpty(name)) {
                NAME_MAP.put(name, siteDTO.getId());
            }
            String domain 
= siteDTO.getDomain();
            
if (StringUtils.isNotEmpty(domain)) {
                DOMAIN_MAP.put(domain, siteDTO.getId());
            }
        }
    }

    
public static void updateName(String oldValue, String newValue, Long siteId) {
        
if (StringUtils.equals(oldValue, newValue)) {
            
return;
        }
        
if (StringUtils.isNotEmpty(oldValue)) {
            NAME_MAP.remove(oldValue);
        }
        
if (StringUtils.isNotEmpty(newValue)) {
            NAME_MAP.put(newValue, siteId);
        }
    }

    
public static void updateDomain(String oldValue, String newValue, Long siteId) {
        
if (StringUtils.equals(oldValue, newValue)) {
            
return;
        }
        
if (StringUtils.isNotEmpty(oldValue)) {
            DOMAIN_MAP.remove(oldValue);
        }
        
if (StringUtils.isNotEmpty(newValue)) {
            DOMAIN_MAP.put(newValue, siteId);
        }
    }

    @Override
    
public void destroy() {
        log.info(
"------------------------------destroy");
    }

    @Override
    
public void doFilter(ServletRequest servletRequest, ServletResponse response, FilterChain filterChain) throws IOException, ServletException {
        HttpServletRequest request 
= (HttpServletRequest) servletRequest;
        String requestURI 
= request.getRequestURI();
        String serverName 
= request.getServerName().toLowerCase();
        String realURI 
= getRealRequestURI(serverName, requestURI);
        request.getRequestDispatcher(realURI).forward(request, response);
    }

    
private String getRealRequestURI(String serverName, String requestURI) {
        
if (Constants.WWW_DOMAIN.equals(serverName) || requestURI.startsWith("/static/"|| Constants.DOMAIN.equals(serverName)) {
            
return requestURI;
        }
        
if (serverName.endsWith(DOMAIN_END)) {
            String secondDomain 
= serverName.substring(0, serverName.indexOf("."));
            
//缃戠珯id
            if (NumberUtils.isNumber(secondDomain))
                
return getURI(secondDomain, requestURI);
            
//缃戠?#27410;嫳鏂囧悕
            Long siteId = NAME_MAP.get(secondDomain);
            
if (siteId == null) {
                
//淇濈暀?#27537;浜岀骇鍩熷悕
                if (Constants.isPrivateSecondDomain(secondDomain)) {
                    
return requestURI;
                }
                
return "/message?msg=涓?#28699;樺湪浜岀骇鍩熷悕" + secondDomain;
                
//                throw new RuntimeException("do not exist second domain: " + secondDomain);
            }
            
return getURI(siteId + "", requestURI);
        }
        
//鍩熷悕
        Long siteId = DOMAIN_MAP.get(serverName);
        
if (siteId == null) {
            
return requestURI;
        } 
else {
            
return getURI(siteId + "", requestURI);
        }
    }

    
private static String getURI(String siteId, String requestURI) {
        
if (requestURI.equals("/")) {
            
return "/" + siteId;
        } 
else {
            
return "/" + siteId + requestURI;
        }
    }

}


?#21502;浠?#28051;浜?#28751;?#37814;宸?#38171;?br /> 锛?#38171;?#38171;?#28051;?#27996;?#28186;?#27996;?#37832;?#37832;烘祴璇?#38171;?#37721;?#28000;?#28103;敼windows ?#27537;hosts鏂?#28000;?#37510;?#37812;戠殑濡?#28051;?#38171;?br />
127.0.0.1       localhost
127.0.0.1       you.com
127.0.0.1       www.you.com
127.0.0.1       time1.you.com
127.0.0.1       time2.you.com
127.0.0.1       6.you.com
127.0.0.1       www.bobo.com

锛?#38171;?#38171;墂eb椤电殑鍚勭?#23941;湴鍧鍒?#29781;佹敞?#21104;鐩?#28725;?#29882;?#23536;勭殑闂?#26864;?#37510;?#28051;?#29781;佽冭檻
棣栧厛璁?#32515;?lt;base href="http://www.yowob.com/" />锛?#37812;?lt;base href="http://www.yowob.com/6/" />?#21502;涓湴鍧鏈鍚?#29781;佸姞涓涓?
鐒?#37722;?#26916;?#38344;?#28051;叾浠栧湴鍧鍓嶉潰涓嶅姞/锛屽氨鏄?#37929;?#28725;瑰湴鍧锛?#28000;ュ湴鍧鏍?#28051;?#37737;虹锛?#37510;?#37716;犱笂/锛屽垯鏄?#32513;濆?#29808;湴鍧銆?br />

闄堝垰 2010-12-29 23:19 鍙戣〃璇勮
]]>
VIM?#27537;?#29238;?#25956;?#24387;浠?閰?#32515;?#37826;?#28000;?璧?#37826;?/title><link>http://www.5432034.com/chengang/archive/2007/10/18/153970.html</link><dc:creator>闄堝垰</dc:creator><author>闄堝垰</author><pubDate>Thu, 18 Oct 2007 10:15:00 GMT</pubDate><guid>http://www.5432034.com/chengang/archive/2007/10/18/153970.html</guid><wfw:comment>http://www.5432034.com/chengang/comments/153970.html</wfw:comment><comments>http://www.5432034.com/chengang/archive/2007/10/18/153970.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.5432034.com/chengang/comments/commentRss/153970.html</wfw:commentRss><trackback:ping>http://www.5432034.com/chengang/services/trackbacks/153970.html</trackback:ping><description><![CDATA[?#25956;VIM鏉ュ紑鍙憆ails涔?#37816;?#28051;嶉敊?#27537;锛岃嚜瀹?#28000;?#37934;?#28729;?#37812;?#38171;?#28000;?#37934;?#26864;?#38009;茬瓑?#23003;鑳介兘鏈?#37510;?#28052;?#32480;梟etbean銆乪clipse涔嬪?#27537;杞?#38322;忕骇閫夋嫨鍚?#37510;?br /> 鎴?#37814;奦IM?#27537;?#29238;?#25956;?#24387;浠?#38171;岃嚜宸辩敤?#27537;閰?#32515;?#37826;?#28000;?#38171;屾敹缃楃殑涓浜?#29863;?#37826;?#28051;骞?#37813;?#37718;?#27996;?#38171;岀?#20344;緱鍒濈敤VIM?#27537;浜?#37813;?#37833;?#37813;惧幓娴?#29840;规椂闂?#37510;?br /><br /><a title="http://www.5432034.com/Files/chengang/myvim.zip" href="/Files/chengang/myvim.zip">http://www.5432034.com/Files/chengang/myvim.zip</a><br /><br /><br /><br />?#28266;ubuntu7.10涓殑gvim鍑虹幇涔?#37934;?#38171;?#26473;欐?#22549;渶瑕佸湪涓?#37929;綍涓嬬殑鈥?vimrc鈥?#37826;?#28000;?#28051;?#37716;犱笂瀹?#28052;?#28699;椾綋?#27537;涓鍙?#37510;?#37812;戠敤?#27537;鏄?#37413;?#23536;?#26462;泤榛?#37413;?#28699;椾綋鎵浠?#23005;?#37721;?#28051;?#38171;?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">set聽guifont</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">YaHei\聽Consolas\聽Hybrid\聽</span><span style="color: rgb(0, 0, 0);">10</span></div>娉ㄦ剰锛?#28699;椾綋?#24725;涓?#37832;?#32460;?#37837;肩殑锛岀敤鏂?#37833;?#37714;嗗紑锛岃?#28051;?#37826;?#37833;?#37722;?#38344;?#28051;瀹?#29781;佹湁涓涓?#32460;?#37837;?#37510;?0鏄?#28699;椾綋澶?#28751;?#38171;屽?#23945;潰鏈?#28051;涓?#32460;?#37837;?#37510;?br /><img src ="http://www.5432034.com/chengang/aggbug/153970.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.5432034.com/chengang/" target="_blank">闄堝垰</a> 2007-10-18 18:15 <a href="http://www.5432034.com/chengang/archive/2007/10/18/153970.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>涓?#37804;?#37718;?#26916;?#38344;?#29999;冨眬?#27537;璁?#29825;?#37804;濊?#28051;嶳ails鍒濇瀹炵幇http://www.5432034.com/chengang/archive/2007/10/11/151900.html闄堝垰闄堝垰Wed, 10 Oct 2007 16:00:00 GMThttp://www.5432034.com/chengang/archive/2007/10/11/151900.htmlhttp://www.5432034.com/chengang/comments/151900.htmlhttp://www.5432034.com/chengang/archive/2007/10/11/151900.html#Feedback0http://www.5432034.com/chengang/comments/commentRss/151900.htmlhttp://www.5432034.com/chengang/services/trackbacks/151900.html
杩?#28051;?#29825;?#29825;″叾瀹?#23536;?#32480;鍗?#38171;屽氨鏄?#37413;滃紩鎿?閰?#32515;?#37413;?-涓讳綋椤?#38344;?#37721;?#28729;?#28052;?#28051;涓猺thml锛?#37721;?#28000;?#37814;?#28729;冪湅鍋?#26916;?#38344;?#23534;?#37823;?#38171;岀劧鍚庣敤涓涓?#38320;?#32515;?#37826;?#28000;?#37816;?#28729;?#27996;?#26916;?#38344;?#37813;搴?#37711;?#37832;夌殑妯?#37735;?#37724;屾?#29256;嵁銆? 椤?#38344;?#22959;?#37735;?#28751;?#29854;?#28051;涓?#28051;?#29761;?#37832;?#37825;版嵁?#27537;鐩?#28699;?#38171;?#38315;?#26473;?#37413;?#26916;?#38344;?#23534;?#37823;?+ 閰?#32515;?#37826;?#28000;?#37413;?#37814;?#26473;?#27996;?#37929;?#28699;?#32513;?#37722;?#29863;锋潵锛岃薄鎼?#32457;湪涓?#29297;銆?#26916;?#38344;?#23534;?#37823;?#37828;?#37722;勭敤鎴?#37711;辩敤?#27537;锛?#38320;?#32515;?#37826;?#28000;?#37828;?#37722;勭敤鎴风嫭鏈夌殑锛?#26473;欐牱涓瑁?#38320;嶈?#38155;潵锛屽氨褰?#37812;?#27996;嗙敤鎴风殑涓?#37804;?#37718;?#26916;?#38344;?#37510;?br />
鍓?#28051;嬬殑閲嶇偣灏?#37828;?#37804;?#28052;堝畾涔?#38320;?#32515;?#37826;?#28000;?#37510;?#26851;栧厛鏄?#29781;佸垝娓?#38320;?#32515;?#37826;?#28000;剁殑璐?#28000;荤?#23680;嚎----瀹?#37721;?#29840;熻矗瀹?#28052;?#37929;?#28699;?#38322;岀殑鏁版嵁锛?#26473;?#37832;?#37929;?#28699;愮殑宓屽鍏崇郴锛岃屽ぇ灏?#37724;屼綅缃瓑甯冨眬鏂?#38344;?#37714;欏叏閮?#27996;?#32513;機SS?#24147;璐熻矗銆?br />
?#31490;闈?#37828;?#37714;濇?#20802;?#30838;锛?#28051;嬮潰鐪嬬湅鍏蜂綋瀹炵幇锛?#28000;?#37934;?#28000;?#28186;?#37721;傝?br />
浠?#28051;?#37828;煇涓敤鎴风殑閰?#32515;?#37826;?#28000;?#38171;?#37812;戞病?#25956;XML锛岃?#37828;敤YAML锛?#37510;俠oard_1鏄?#37816;嘔D=1杩?#28051;?#37837;?#37929;?#37813;?#25956;?#27537;閰?#32515;?#28729;?#28052;?#37510;倀opContent鏄?#28051;涓?div><div>?#27537;id鍊?#38171;?#37812;?#37814;?#23011;?#28051;?#37837;?#37929;殑椤?#38344;?#37714;?#37812;?span>topContent椤?#37510;乻ideContent杈?#38171;?#23480;?#37812;?#37721;?#37922;盋SS鍐?#28729;?#38171;?#37510;?/span>primaryContent 涓?#29781;?#37510;乥ottomContent搴?#37510;倀opic鏄?#37816;囨坊鍔?#28051;涓?#22959;?#37735;?#38171;?#37929;?#28699;?#38171;?#38171;?#37828;?#32448;?#28051;涓?#28051;?#26864;樺?#21613;銆?#37724;宼opic绫?#28028;?#37828;?#26473;?#37832;?#37828;?#32448;哄?#24807;?#24533;殑image銆?#37828;?#32448;?#28051;?#26864;樺垪 琛ㄧ殑topics銆?#37828;?#32448;?#37714;嗙被鍒?#29723;ㄧ殑categories?#29905;?#29905;?#29905;?#29905;銆?#28729;?#28000;?#37722;?#37832;?#28051;?#37722;岀殑灞炴?#37706;?#38171;屾瘮濡倀opic妯?#37735;?#38171;?#28729;冮渶瑕?#28729;?#37816;?#28729;冪殑涓?#26864;榠d锛?#28000;?#37721;?#28729;?#37813;?#25956;?#27537; view(topics/_show_hot.rhtml聽 or聽 topics/_show.rhtml?#29905;?#29905;)銆?br />
锛堣櫧鐒?#26473;?#28051;?#38320;?#32515;?#37826;?#28000;?#37814;?#29854;?#23536;?#26473;?#28051;嶅锛屼絾杩欐牱瀛愬?#33580;粡鍙?#28000;?#29785;?#37712;?#37812;戠殑?#28214;瑕?#27996;?#38171;岄偅
灏?/span>鏆?#37827;?/span>杩欐牱?#21403;浜?#37510;?#38171;?br />
template.yml
  1. board_2:聽聽
  2. 聽聽
  3. board_1:聽聽
  4. -聽topContent:聽聽
  5. 聽聽-聽topic:聽聽
  6. 聽聽聽聽聽聽topic_id:聽7聽聽
  7. 聽聽聽聽聽聽view:聽topics/show_hot聽聽
  8. -聽sideContent:聽聽
  9. 聽聽-聽image:聽聽
  10. 聽聽聽聽聽聽url:聽/images/news.jpg聽聽
  11. 聽聽-聽categories:聽聽
  12. 聽聽聽聽聽聽board:聽5聽聽
  13. 聽聽聽聽聽聽view:聽tree聽聽
  14. 聽聽-聽topics:聽聽
  15. 聽聽聽聽聽聽board:聽5聽聽
  16. 聽聽聽聽聽聽per_page:聽4聽聽
  17. 聽聽聽聽聽聽view:聽index_simple聽聽
  18. 聽聽-聽topics:聽聽
  19. 聽聽聽聽聽聽board:聽6聽聽
  20. -聽primaryContent:聽聽
  21. 聽聽-聽topics:聽聽
  22. 聽聽聽聽聽聽board:聽4聽聽
  23. 聽聽聽聽聽聽view:聽index聽聽
  24. 聽聽-聽topic:聽聽
  25. 聽聽聽聽聽聽topic_id:聽7聽聽
  26. 聽聽聽聽聽聽view:聽util/box聽聽
  27. 聽聽
  28. board_3:聽聽

鐒?#37722;庡湪controller閲屾妸閰?#32515;?#37826;?#28000;?#29831;诲叆锛屽?#23944;浆鍖?#37812;?#22959;?#37736;嬬被銆?#37812;?#37814;婂悇涓?#37923;?#38344;?#22959;?#37735;楃湅鍋?#28051;涓?#28051;?#37929;?#28699;怋ox
杩?#37828;?#28729;冪殑椤剁骇Box
ruby 浠?#37934;?/div>
  1. class聽Box聽聽
  2. 聽聽attr_accessor聽:html_id,聽:view,聽:boxes聽聽
  3. 聽聽def聽initialize
  4. 聽聽聽聽@boxes=[]聽聽
  5. 聽聽end聽聽
  6. end聽聽

杩?#37828;痶opic妯?#37735;楃殑
ruby 浠?#37934;?/div>
  1. class聽TopicBox聽<聽Box聽聽
  2. 聽聽attr_accessor聽:topic_id聽聽
  3. end聽聽

杩?#37828;疘mage妯?#37735;楃殑
ruby 浠?#37934;?/div>
  1. class聽ImageBox聽<聽Box聽聽
  2. 聽聽attr_accessor聽:url聽聽
  3. end聽聽聽聽

.....?#29905; ?#29905;锛??#21502;浠栫殑Box瀛愮被澶?#37722;屽皬寮?br />
鐒?#37722;庡湪涓涓猚ontroller閲屾妸杩?#27996;?#38320;?#32515;?#28103;℃伅杞?#37812;怋ox妯?#37736;嬬被
ruby 浠?#37934;?/div>
  1. templates聽=聽 YAML::load(File.read("public/uploads/#{user_id}/config/template.yml"))
  2. template聽=聽templates.find{|o|聽o[0]=="board_#{@board.id}"聽}聽聽
  3. args聽=聽template[1]聽聽
  4. 聽聽
  5. @boxes聽=聽[]聽聽
  6. args.eachdo|arg1_hash|聽聽
  7. 聽聽arg1_hash.eachdo|key1,聽value1|聽聽
  8. 聽聽聽聽board_box聽=聽BoardBox.new聽聽
  9. 聽聽聽聽board_box.html_id聽=聽key1聽聽
  10. 聽聽聽聽@boxes聽<<聽board_box聽聽
  11. 聽聽聽聽value1.eachdo|arg2_hash|聽聽
  12. 聽聽聽聽聽聽arg2_hash.eachdo|key2,聽value2|聽聽
  13. 聽聽聽聽聽聽聽聽case聽key2聽聽
  14. 聽聽聽聽聽聽聽聽when聽'topics'聽聽
  15. 聽聽聽聽聽聽聽聽聽聽box聽=聽TopicsBox.new聽聽
  16. 聽聽聽聽聽聽聽聽聽聽box.board_id聽=聽value2['board']聽聽
  17. 聽聽聽聽聽聽聽聽聽聽box.per_page聽=聽value2['per_page']||2聽聽
  18. 聽聽聽聽聽聽聽聽聽聽box.view聽=聽value2['view']||'index_simple'聽聽
  19. 聽聽聽聽聽聽聽聽聽聽board_box.boxes聽<<聽box聽聽聽
  20. 聽聽聽聽聽聽聽聽when聽'categories'聽聽
  21. 聽聽聽聽聽聽聽聽聽聽box聽=聽CategoriesBox.new聽聽
  22. 聽聽聽聽聽聽聽聽聽聽box.board_id聽=聽value2['board']聽聽
  23. 聽聽聽聽聽聽聽聽聽聽box.view聽=聽value2['view']||'list'聽聽
  24. 聽聽聽聽聽聽聽聽聽聽board_box.boxes聽<<聽box聽聽聽
  25. 聽聽聽聽聽聽聽聽when聽'image'聽聽
  26. 聽聽聽聽聽聽聽聽聽聽box聽=聽ImageBox.new聽聽
  27. 聽聽聽聽聽聽聽聽聽聽box.url聽=聽value2['url']聽聽
  28. 聽聽聽聽聽聽聽聽聽聽board_box.boxes聽<<聽box聽聽聽
  29. 聽聽聽聽聽聽聽聽when聽'topic'聽聽
  30. 聽聽聽聽聽聽聽聽聽聽box聽=聽TopicBox.new聽聽
  31. 聽聽聽聽聽聽聽聽聽聽box.topic_id聽=聽value2['topic_id']聽聽
  32. 聽聽聽聽聽聽聽聽聽聽box.view聽=聽value2['view']||'util/box'聽聽
  33. 聽聽聽聽聽聽聽聽聽聽board_box.boxes聽<<聽box聽聽聽
  34. 聽聽聽聽聽聽聽聽end聽聽
  35. 聽聽聽聽聽聽end聽聽
  36. 聽聽聽聽end聽聽
  37. 聽聽end聽聽
  38. end

鏈鍚?#37828;?#28729;?#26916;?#38344;?#23534;?#37823;?#38171;?#38315;昏緫浠?#37934;?#37724;?#26916;?#38344;?#28000;?#37934;佹?#23792;湪涓璧?#38171;屾瘮杈?#28051;?#38340;?#38171;?
ruby 浠?#37934;?/div>
  1. <%聽@boxes.eachdo|box1|聽%>聽聽
  2. "<%=box1.html_id%>">聽聽/span>
  3. 聽聽<%聽box1.boxes.eachdo|box2|聽聽
  4. 聽聽聽聽聽聽聽p1聽box2.class.to_s聽聽
  5. 聽聽
  6. 聽聽聽聽聽聽case聽box2.class.to_s聽聽
  7. 聽聽聽聽聽聽when聽'TopicsBox'聽聽
  8. 聽聽聽聽聽聽聽聽board_id聽=聽box2.board_id聽聽
  9. 聽聽聽聽聽聽聽聽if聽board_id聽聽
  10. 聽聽聽聽聽聽聽聽聽聽board聽=聽Board.find(board_id)聽聽
  11. 聽聽聽聽聽聽聽聽聽聽topics聽=聽Topic.by_board_id(board_id,聽:per_page聽=>聽box2.per_page)聽聽聽
  12. 聽聽聽聽聽聽聽聽聽聽%>聽聽
  13. 聽聽聽聽聽聽聽聽聽聽<%=聽render(:partial聽=>聽"topics/#{box2.view}",聽:locals聽=>聽{:title聽=>board.title,聽:topics聽=>聽topics聽})%>聽聽
  14. 聽聽聽聽聽聽聽聽<%end聽聽
  15. 聽聽聽聽聽聽when聽'CategoriesBox'聽聽
  16. 聽聽聽聽聽聽聽聽board_id聽=聽box2.board_id聽聽
  17. 聽聽聽聽聽聽聽聽if聽board_id聽聽
  18. 聽聽聽聽聽聽聽聽聽聽board聽=聽Board.find(board_id)聽聽
  19. 聽聽聽聽聽聽聽聽聽聽categories聽=聽board.categories聽聽
  20. 聽聽聽聽聽聽聽聽聽聽%>聽聽
  21. 聽聽聽聽聽聽聽聽聽聽<%=聽render聽:partial聽=>聽"categories/#{box2.view}",聽:locals聽=>聽{:board聽=>board,聽:categories聽=>聽categories聽}聽%>聽聽
  22. 聽聽聽聽聽聽聽聽<%end%>聽聽
  23. 聽聽聽聽聽聽<%when聽'ImageBox'%>聽聽
  24. 聽聽聽聽聽聽聽聽<%=聽box_tag聽:header=>false%>聽聽
  25. 聽聽聽聽聽聽聽聽聽聽<%=image_tag(box2.url,聽:border聽=>聽0)聽%>聽聽
  26. 聽聽聽聽聽聽聽聽<%=聽end_box_tag聽%>聽聽
  27. 聽聽聽聽聽聽<%when聽'TopicBox'聽聽
  28. 聽聽聽聽聽聽聽聽topic聽=聽Topic.find(box2.topic_id)聽%>聽聽
  29. 聽聽聽聽聽聽聽聽<%=render(:partial聽=>聽"#{box2.view}",聽:locals聽=>聽{:title聽=>topic.title,聽:content聽=>聽topic.content,聽:topic聽=>聽topic聽})%>聽聽
  30. 聽聽聽聽聽聽<%end聽聽
  31. 聽聽end%>聽


杩欐牱锛?#28000;?#37722;庢兂?#28266;椤?#38344;笂澧?#37716;?#37714;?#38340;?#28000;涔堟ā鍧?#38171;屼慨?#25980;閰?#32515;?#37826;?#28000;?#28751;?#29723;屼簡銆傚綋鐒?#32513;欑敤鎴风敤锛?#26473;樺繀椤?#23536;楃敤AJAX鏉ュ啓涓狦UI鐣?#38344;?#38171;屾?#28051;嶈兘璁╃敤鎴锋墜宸ュ幓?#25980;閰?#32515;?#37826;?#28000;?#37722;?#37510;?br />

闄堝垰 2007-10-11 00:00 鍙戣〃璇勮
]]>鎶?#37721;朏CKEditor?#27537;娴?#29785;堝?#21095;?#22247;姛鑳?/title><link>http://www.5432034.com/chengang/archive/2007/09/26/148412.html</link><dc:creator>闄堝垰</dc:creator><author>闄堝垰</author><pubDate>Wed, 26 Sep 2007 10:49:00 GMT</pubDate><guid>http://www.5432034.com/chengang/archive/2007/09/26/148412.html</guid><wfw:comment>http://www.5432034.com/chengang/comments/148412.html</wfw:comment><comments>http://www.5432034.com/chengang/archive/2007/09/26/148412.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.5432034.com/chengang/comments/commentRss/148412.html</wfw:commentRss><trackback:ping>http://www.5432034.com/chengang/services/trackbacks/148412.html</trackback:ping><description><![CDATA[杩囧幓锛?#37812;?#28000;笂浼犲?#21095;墖锛?#28051;鑸兘鏄?#28051;涓?#37826;?#37832;?#22935;?#37716;?#28051;涓?#37413;滄祻瑙?#37413;?#37816;?#38333;?#38171;?#38315;?#26473;囨祻瑙?#37816;?#38333;?#38315;?#37721;?#37832;湴?#27537;鍥剧墖锛岀劧鍚庡湪?#24385;浜?#29723;?#37719;?#37722;庣殑閫昏緫涓?#28751;?#37733;剧?#22246;笂浼?#38007;?#37832;嶅姟鍣?#37510;傜?#26495;湪锛?#37812;?#28000;?#23480;茬粡鎶奆CKEditor搴旂敤?#28266;浜?#37812;?#28000;殑緋荤粺閲?#38171;岃孎CKEditor涓?#29999;?#27996;?#37832;?#27996;?#37733;剧?#22246;笂浼?#37724;屾祻瑙堝姛鑳?#37510;?#37813;浠?#37812;戝?#36776;兂璁?#26473;?#28051;?#37413;滄祻瑙?#37413;?#37816;?#38333;?#28051;?#37828;?#28000;?#37832;湴閫?#37721;栧?#21095;墖锛岃?#37828;?#28000;嶧CKEditor浼犲埌鏈嶅姟鍣ㄤ笂?#27537;鍥剧墖涓?#37833;?#38315;?#28051;?#37510;?#28052;熷氨鏄?#37814;奆CKEditor?#27537;鈥滄祻瑙?#37413;?#37816;?#38333;?#38171;屾娊鍙栧嚭鏉?#37510;?br /><div align="center">鏂?闄堝垰 <a title="http://www.5432034.com/chengang/archive/2007/09/26/148114.html" href="/chengang/archive/2007/09/26/148114.html">www.chengang.com.cn</a> 杞?#26462;?#29831;?#28103;濈?#27407;?#21700;<br /></div>?#28266;?#27076;璇籉CKEditor?#27537;?#31790;鐮?#28052;?#37722;?#38171;?#37707;?#28641;?#28051;嬪鐞?#37510;?br /><br />1. 鏂板涓?#28051;猨avascript鍑芥暟銆?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽currentImageTextID;<br /><br /></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">FCKEditor?#27537;鏂?#28000;舵祻瑙堢獥鍏?#38338;?#37722;?#38171;屼細?#30367;?#25956;姝?#37713;芥暟锛屽苟鎶?#37813;閫夊?#21095;墖?#27537;url浼犲叆銆?/span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽SetUrl(url){<br />聽聽document.getElementById(currentImageTextID).value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">url;<br />}<br /><br /></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">imageTextID:聽鍥剧墖鏂?#37832;?#22935;嗙殑ID鍊?/span><span style="color: rgb(0, 128, 0);"><br />//</span><span style="color: rgb(0, 128, 0);">uploadPath:聽鏈嶅姟鍣ㄧ殑鍥剧墖鐩綍</span><span style="color: rgb(0, 128, 0);"><br />//</span><span style="color: rgb(0, 128, 0);">type:聽娴?#29785;堢被鍨?#38171;屽煎彲涓篒mage/Flash/File/Media锛屽鏋?#28051;虹┖瀛?#28051;?#38171;屽垯琛?#32448;烘祻瑙?#37813;鏈夌被鍨嬬殑鏂?#28000;?/span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽OpenImageBrowser(imageTextID,聽uploadPath,聽type聽)聽{<br />聽聽currentImageTextID聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽imageTextID;<br />聽聽window.open('</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">javascripts</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">fckeditor</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">editor</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">filemanager</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">browser</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 255);">default</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">browser.html</span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);">uploaded</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">uploadPath</span><span style="color: rgb(0, 0, 0);"> +</span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">Type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">type</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">Connector</span><span style="color: rgb(0, 0, 0);">=/</span><span style="color: rgb(0, 0, 0);">fckeditor</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">command','Browse</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">Upload聽Images','toolbar</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">no,status</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">no, resizable</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">yes,dependent</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">yes, scrollbars</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">yes,width</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">600</span><span style="color: rgb(0, 0, 0);">,height</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">400</span><span style="color: rgb(0, 0, 0);">')<br />}<br /></span></div><br />2.?#28266;View涓?#26473;欐牱浣跨敤<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);">鏍囧?#26944;?#21095;墖:</span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"><br /><</span><span style="color: rgb(0, 0, 0);">input聽id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">topic_image</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">topic[image]</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽size</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">30</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">text</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">><br /><</span><span style="color: rgb(0, 0, 0);">input聽value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">娴?#29785;?#37832;嶅姟鍣?/span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽onclick</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">OpenImageBrowser('topic_image',聽'/uploads/s<%= params[:user_id]%>',聽'Image')</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">button</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"><br /></span></div><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><br /><br /><img src ="http://www.5432034.com/chengang/aggbug/148412.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.5432034.com/chengang/" target="_blank">闄堝垰</a> 2007-09-26 18:49 <a href="http://www.5432034.com/chengang/archive/2007/09/26/148412.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>璁㏑ails鐗堢殑FCKEditor鏀?#37816;佸姩鎬?#29825;?#32515;笂浼?#37929;綍http://www.5432034.com/chengang/archive/2007/09/26/148114.html闄堝垰闄堝垰Wed, 26 Sep 2007 02:13:00 GMThttp://www.5432034.com/chengang/archive/2007/09/26/148114.htmlhttp://www.5432034.com/chengang/comments/148114.htmlhttp://www.5432034.com/chengang/archive/2007/09/26/148114.html#Feedback5http://www.5432034.com/chengang/comments/commentRss/148114.htmlhttp://www.5432034.com/chengang/services/trackbacks/148114.html
鏂?闄堝垰 www.chengang.com.cn 杞?#26462;?#29831;?#28103;濈?#27407;?#21700;
1.淇敼fckeditor_controller.rb锛屾妸瀹冮偅鍑?#28051;猵rivate鏂规硶淇敼濡?#28051;?#38171;?br />
聽聽
聽聽
private
聽聽def聽current_directory_path
聽聽聽聽base_dir聽
="#{RAILS_ROOT}/public"

聽聽聽聽#TODO聽?#28266;鍒?#23524;虹敤鎴锋椂锛屽氨寤虹?#23338;ソ鐩綍銆?#26473;欐椂鍙?#28000;ュ幓鎺?#26473;?#38318;?#28000;?#28000;?#37934;?#38171;屾彁?#29678;杩?#29723;屾晥鐜?#37510;?br />聽聽聽聽(
"#{params[:uploaded]||UPLOADED}/#{params[:Type]}").split('/').each聽do|s|
聽聽聽聽next聽
if聽s==''
聽聽聽聽聽聽聽聽base_dir聽
+='/'+聽s
聽聽聽聽聽聽聽聽Dir.mkdir(base_dir,
0775)聽unless聽File.exists?(base_dir)
聽聽聽聽end
聽聽聽聽
聽聽聽聽check_path(
"#{base_dir}#{params[:CurrentFolder]}")
聽聽end
聽聽
聽聽def聽upload_directory_path
聽聽聽聽uploaded聽
=聽@request.relative_url_root.to_s+"#{params[:uploaded]||UPLOADED}/#{params[:Type]}"
聽聽聽聽
"#{uploaded}#{params[:CurrentFolder]}"
聽聽end
聽聽
聽聽def聽check_file(file)
聽聽聽聽#聽check聽that聽the聽file聽is聽a聽tempfile聽object
聽聽聽聽unless聽
"#{file.class}"=="Tempfile"||"#{file.class}"=="StringIO"
聽聽聽聽聽聽@errorNumber聽
=403
聽聽聽聽聽聽
throw聽Exception.new
聽聽聽聽end
聽聽聽聽file
聽聽end
聽聽
聽聽def聽check_path(path)
聽聽聽聽exp_path聽
=聽File.expand_path聽path
聽聽聽聽
if聽exp_path聽!~%r[^#{File.expand_path(RAILS_ROOT)}/public#{params[:uploaded]||UPLOADED}]
聽聽聽聽聽聽@errorNumber聽
=403
聽聽聽聽聽聽
throw聽Exception.new
聽聽聽聽end
聽聽聽聽path
聽聽end

鍙?#28598;?#38171;?#28729;冨?#23945;潰?#27537;?#29238;閲廢PLOADED_ROOT涔熸病?#25956;浜?#38171;?#37721;?#28000;?#37714;?#37818;?#37510;?br />

2. ?#28266;?#31490;闈㈢殑浠?#37934;?#28051;?span style="color: rgb(0, 0, 0);">params[:uploaded]鏄?#37711;抽敭锛?#28729;?#28751;?#37828;?#37812;?#28000;?#37716;?#37804;?#28729;?#28052;夌殑?#31490;浼?#37929;綍銆?#29831;?#37706;?#37833;ヨ嚜浜嶧CKEditor?#27537;涓浜沨tml椤?#38344;?#38171;?#28729;?#37828;?#38315;?#26473;噂et鍙傛暟浼犲叆?#27537;銆備慨?#25980;browser.html鏂?#28000;?#38171;堝涓?#32494;椾綋閮?#28000;?#38171;?#38171;屽湪瀹冪殑url璇锋眰涓?#37814;?#37812;?#28000;?#28729;?#28052;?#37929;綍鍔犲叆?#22476;get鍙?#37825;板垪涓?#38171;?#26473;欐牱瀹?#28751;?#37721;?#28000;?#28028;犲埌fckeditor_controller.rb閲屼簡銆?br />

var聽sServerPath聽
=聽GetUrlParam(聽'ServerPath'聽)聽;
if聽(聽sServerPath.length聽>0聽)
聽聽聽聽oConnector.ConnectorUrl聽
+='ServerPath='+聽escape(聽sServerPath聽)聽+'&'聽;

var聽sUploaded聽
=聽GetUrlParam(聽'uploaded'聽)聽;
if聽(聽sUploaded.length聽>0聽)
聽聽聽聽oConnector.ConnectorUrl聽
+='uploaded='+聽escape(聽sUploaded聽)聽+'&'
聽;

oConnector.ResourceType聽聽聽聽聽聽聽聽
=聽GetUrlParam(聽'Type'聽)聽;
oConnector.ShowAllTypes聽聽聽聽聽聽聽聽
=聽(聽oConnector.ResourceType.length聽==0聽)聽;


3.聽 ?#31490;闈?/span>?#27537;GetUrlParam(聽'uploaded'聽) ?#27537;鍊?#37833;ヨ嚜浜巉ckcustom.js銆備慨?#25980;fckcustom.js锛堝涓?#32494;椾綋閮?#28000;?#38171;?#38171;屾妸uploaded鍔犲叆?#22476;get鍙?#37825;板垪涓?#37510;?br />
//聽CHANGE聽FOR聽APPS聽HOSTED聽IN聽SUBDIRECTORY
FCKRelativePath聽
='';

//聽DON'T聽CHANGE聽THESE
FCKConfig.LinkBrowserURL聽=聽FCKConfig.BasePath聽+'filemanager/browser/default/browser.html?Connector='+FCKRelativePath+'/fckeditor/command';
FCKConfig.ImageBrowserURL聽
=聽FCKConfig.BasePath聽+'filemanager/browser/default/browser.html?uploaded='+FCKConfig.uploaded+'&Type=Image&Connector='+FCKRelativePath+'/fckeditor/command';
FCKConfig.FlashBrowserURL聽
=聽FCKConfig.BasePath聽+'filemanager/browser/default/browser.html?uploaded='+FCKConfig.uploaded+'&Type=Flash&Connector='+FCKRelativePath+'/fckeditor/command';

FCKConfig.LinkUploadURL聽
=聽FCKRelativePath+'/fckeditor/upload';
FCKConfig.ImageUploadURL聽
=聽FCKRelativePath+'/fckeditor/upload?Type=Image&uploaded='+FCKConfig.uploaded;
FCKConfig.FlashUploadURL聽
=聽FCKRelativePath+'/fckeditor/upload?Type=Flash&uploaded='+FCKConfig.uploaded;
FCKConfig.AllowQueryStringDebug聽
=聽false;
FCKConfig.SpellChecker聽
='SpellerPages';

//聽ONLY聽CHANGE聽BELOW聽HERE
FCKConfig.SkinPath聽
=聽FCKConfig.BasePath聽+'skins/silver/';
FCKConfig.AutoDetectLanguage聽
=聽false聽;
FCKConfig.DefaultLanguage聽
='zh-cn'聽;
FCKConfig.FontNames聽
='寰?#26462;泤榛?瀹嬩綋;榛戜綋;闅?#28052;?妤蜂綋_GB2312;Arial;Comic聽Sans聽MS;Courier聽New;Tahoma;Times聽New聽Roman;Verdana'聽;

FCKConfig.ToolbarSets[
"Simple"]聽=聽[
聽聽聽聽[
'Source','-','FitWindow','Preview','-','Templates'],
聽聽聽聽[
'PasteText','PasteWord'],
聽聽聽聽[
'Undo','Redo','Find','Replace'],
聽聽聽聽
'/',
聽聽聽聽[
'RemoveFormat','Bold','Italic','Underline','StrikeThrough'],
聽聽聽聽[
'OrderedList','UnorderedList','Outdent','Indent'],
聽聽聽聽[
'JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
聽聽聽聽聽聽聽聽[
'TextColor','BGColor'],
聽聽聽聽[
'Link','Unlink','Anchor'],
聽聽聽聽[
'Image','Flash','Table','Rule','Smiley'],
聽聽聽聽
'/',
聽聽聽聽[
'Style','FontFormat','FontName','FontSize']
]聽;

4. ?#31490;闈CKConfig.uploaded?#27537;鍊?#37833;ヨ嚜浜巉ckeditor.rb銆傚湪fckeditor.rb涓?#37716;犲叆涓鍙?#38171;堝涓?#32494;椾綋鎵绀?#38171;?#37510;?br />
聽聽聽聽聽聽javascript_tag(聽"var聽oFCKeditor聽=聽new聽FCKeditor('#{id}',聽'#{width}',聽'#{height}',聽'#{toolbarSet}');\n"+
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
"oFCKeditor.BasePath聽=聽\"#{base_path}\"\n"+
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽"oFCKeditor.Config['CustomConfigurationsPath']聽=聽'../../fckcustom.js';\n"+
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
"oFCKeditor.Config['uploaded']聽=聽'#{options[:path]}';\n"+
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
"oFCKeditor.ReplaceTextarea();\n")聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽

5.涓嶈繃?#31490;闈FCKeditor.Config['uploaded']?#27537;鍊?#29781;?#28028;犲埌fckcustom.js?#27537;FCKConfig.uploaded閲?#38171;?#26473;橀渶瑕?#28103;敼fckeditorcode_gecko.js鍜宖ckeditorcode_ie.js锛?#26473;?#28051;?#28051;?#37826;?#28000;跺?#31603;avascript杩?#29723;屼簡鍘嬬緝澶?#37918;?#38171;屼慨?#25980;璧锋潵杈冮?#28844;?#23940;綔锛?#37510;?#37812;?#37828;?#37721;傝?#27996;唎FCKeditor.Config['CustomConfigurationsPath'] 杩?#28051;?#37721;傛暟?#27537;杞藉叆瀹炵幇锛?#37813;?#37813;惧埌杩?#32457;嶉笩涓?#37922;熻?#23340;殑?#28276;鏂?#37510;傛悳绱?#26473;?#28051;?#28051;?#37826;?#28000;剁殑鍏抽敭瀛?span style="color: rgb(0, 0, 0);">CustomConfigurationsPath
锛?#37813;惧埌濡?#28051;?#28051;琛?#38171;岀劧鍚庡姞?#21446;涓涓猠lse if鍒?#37826;?濡?#28051;?#32494;椾綋鎵绀?#38171;?#37510;?br />
if聽(D=='CustomConfigurationsPath')聽FCKConfig[D]=E;elseif聽(D=='uploaded')聽FCKConfig[D]=E;elseif聽(E.toLowerCase()=="true")聽this.PageConfig[D]=true;


6.鏈鍚庡湪fckeditor.rb閲岀殑#{options[:path]}鏉ヨ嚜浜?#37812;?#28000;?#37715;?#37721;扮殑view浜?#37510;?#28641;?#28051;?#32494;椾綋鎵绀?#38171;屾妸鏍囧?#21977;殑fckeditor_textarea鏂板鍔?#27996;?#28051;涓?#37721;傛暟锛屽叾涓?/span>params[:user_id]鏄?#37814;?/span>?#25956;鎴风殑ID鍊煎仛涓?/span>鐩綍?#24725;銆?#26473;欐牱灏?#28729;炵幇浜?#37716;?#37804;佹敼鍙楩CKEditor?#27537;?#31490;浼?#37929;綍銆?/span>

<%=fckeditor_textarea(:topic,聽:content,聽:ajax聽=>true,聽:toolbarSet聽=>'Simple',聽:height聽=>'400px',聽 :path聽=>"/uploads/#{params[:user_id]}")聽%>


淇敼瀹屽悗?#28214;瑕?#38322;?#37722;疻EB鏈嶅姟锛?#37832;鍚庡埆?#32341;璁版妸public/javascripts/fckeditor鍜寁endor/plugins/fckeditor/public/javascripts鍚屾涓涓?#38171;屽?#29111;洜瑙乭ttp://www.5432034.com/chengang/archive/2007/09/24/147867.html


闄堝垰 2007-09-26 10:13 鍙戣〃璇勮
]]>
瀹?#37714;禙CKEditor锛?#28000;?#37721;?#28003;垮叾涓?#37826;囧寲http://www.5432034.com/chengang/archive/2007/09/24/147867.html闄堝垰闄堝垰Mon, 24 Sep 2007 10:24:00 GMThttp://www.5432034.com/chengang/archive/2007/09/24/147867.htmlhttp://www.5432034.com/chengang/comments/147867.htmlhttp://www.5432034.com/chengang/archive/2007/09/24/147867.html#Feedback0http://www.5432034.com/chengang/comments/commentRss/147867.htmlhttp://www.5432034.com/chengang/services/trackbacks/147867.html
鏂?闄堝垰聽 www.chengang.com.cn
棣栧厛锛?#37812;?#28000;?#37833;?#37930;嬬湅FCKEditor?#28266;Rails涓殑杩?#29723;岀?#35268;?#38171;屽叾?#24387;浠?#28051;?#29781;?#37828;?#28729;?#29761;呭湪vendor/plugins/fckeditor銆?#28051;?#29781;佺殑浠?#37934;佸湪vendor/plugins/fckeditor/public/javascripts锛屽叾涓璮ckcustom.js鏄?#38320;?#32515;?#37826;?#28000;?#38171;?#37721;?#28598;?#37831;存繁涓灞傜殑瀛?#37929;綍fckeditor涓?#26473;?#37832;?#28051;涓猣ckconfig.js涔?#37828;?#38320;?#32515;?#37826;?#28000;?#37510;俧ckcustom.js閰?#32515;殑浼樺厛椤?#25652;?#28598;?#27996;巉ckconfig.js锛屽?#29363;涓鑸?#28103;敼fckcustom.js灏?#37721;?#28000;?#27996;?#38171;?#28051;嶅?#21613;幓鍔╢ckconfig.js銆?br />
?#28266;鍚?#37716;╓EBrick( ruby script/server)鏃?#38171;屼細?#22172;鍔?#37814;妚endor/plugins/fckeditor/public/javascripts?#27537;鍐呭?#29808;?#23941;?#36346;埌public/javascripts鐩綍銆傚?#29363;濡?#37835;?#28003;?#28103;敼浜咶CKEditor?#27537;閰?#32515;?#37826;?#28000;?#28052;?#37722;?#38171;岄渶瑕佹?#23106;?#23941;?#36346;埌public/javascripts鐩綍?#27537;FCKEditor鐩?#37711;?#37826;?#28000;?#37714;?#38340;?#37818;?#38171;岀劧鍚庡?#23945;噸鍚疻EBrick銆傚綋鐒?#38171;屼綘涔?#37721;?#28000;?#37929;?#37818;?#28103;敼public/javascripts鐩綍?#27537;FCKEditor?#27537;缂?#28699;樼殑閰?#32515;?#37826;?#28000;?#38171;?#26473;欐牱涓嶅繀閲?#37722;疻EBrick锛屽氨鍙?#28000;?#32468;嬪?#23815;?#23338;埌淇?#37824;规晥鏋?#37510;?#28051;嶈繃寤?#29825;?#28003;犲湪瀹?#37812;?#28103;敼鍚?#38171;屽悓鏃?#28052;?#29781;?#37831;?#37826;皏endor/plugins/fckeditor/public/javascripts涓嬬殑閰?#32515;?#37826;?#28000;?#38171;屾瘯绔焢ublic/javascripts閲岀殑搴?#29831;?#32480;?#37828;?#28051;?#37827;?#37826;?#28000;?#37510;?br />

1.涓?#37826;囧寲

?#28266;fckcustom.js閲屽姞?#21446;涓?#26916;?#38171;?#32494;椾綋鏄?#32448;?#38171;?br />
FCKConfig.SkinPath聽=聽FCKConfig.BasePath聽+'skins/silver/';
FCKConfig
.AutoDetectLanguage聽=聽false聽;
FCKConfig
.DefaultLanguage聽='zh-cn'
;

2. 瀹?#37714;禙CKEditor?#27537;宸?#37711;锋爮
淇敼fckcustom.js閲岀殑濡?#28051;嬮」鐩?#38171;屽鍒犳敼?#22172;渚?#37510;?br />
FCKConfig.ToolbarSets["Simple"]聽=聽[聽聽 銆?#37510;?#37510;?銆?#37510;?#37510;?br />

杩?#38322;?#29781;佹敞?#21104;涓鐐?#38171;?#37832;?#27996;涚綉?#31490;鏂?#32468;?#37814;?span style="color: rgb(0, 0, 0);">:toolbarSet?#21843;鎴?#27996;?/span>:toolbarKit锛?#26473;?#37828;敊璇殑銆?#28641;?#37835;?#28003;?#37721;戠?#26495;宸?#37711;锋?#24533;殑閰?#32515;?#28051;嶈搗浣滅敤锛岄偅涔?#29781;佹?#29025;涓涓?#37510;傛纭殑鍐欐硶濡?#28051;?#38171;?br />
<%=fckeditor_textarea(:topic,:content,:ajax聽=>聽true,:toolbarSet聽=>'Simple',:width聽=>'100%',:height聽=>'300px')聽%>








闄堝垰 2007-09-24 18:24 鍙戣〃璇勮
]]>
error_messages_for?#27537;涓?#37826;囧寲http://www.5432034.com/chengang/archive/2007/09/19/146548.html闄堝垰闄堝垰Wed, 19 Sep 2007 09:35:00 GMThttp://www.5432034.com/chengang/archive/2007/09/19/146548.htmlhttp://www.5432034.com/chengang/comments/146548.htmlhttp://www.5432034.com/chengang/archive/2007/09/19/146548.html#Feedback0http://www.5432034.com/chengang/comments/commentRss/146548.htmlhttp://www.5432034.com/chengang/services/trackbacks/146548.htmlApplicationHelper
鏂?闄堝垰聽 www.chengang.com.cn聽 杞?#26462;?#29831;峰0鏄庡?#21700;

聽 def聽error_messages_for(*params)
聽聽聽聽
#add聽by聽glchengang
聽聽聽聽key_hash聽=聽{}
聽聽聽聽
if聽params.first.is_a?(Hash)
聽聽聽聽聽聽key_hash聽
=聽聽params.first
聽聽聽聽聽聽params
.delete_at(0)
聽聽聽聽end
聽聽聽聽
#add聽end

聽聽聽聽options聽
=聽params.last.is_a?(Hash)聽?聽params.pop.symbolize_keys聽:聽{}
聽聽聽聽objects聽
=聽params.collect聽{|object_name|聽instance_variable_get("@#{object_name}")聽}.compact
聽聽聽聽count聽聽聽
=聽objects.inject(0)聽{|sum,聽object|聽sum聽+聽object.errors.count聽}
聽聽聽聽
unless聽count.zero?
聽聽聽聽聽聽html聽
=聽{}
聽聽聽聽聽聽[
:id,:class].eachdo|key|
聽聽聽聽聽聽聽聽
if聽options.include?(key)
聽聽聽聽聽聽聽聽聽聽value聽
=聽options[key]
聽聽聽聽聽聽聽聽聽聽html[key]聽
=聽value聽unless聽value.blank?
聽聽聽聽聽聽聽聽
else
聽聽聽聽聽聽聽聽聽聽html[key]聽
='errorExplanation'
聽聽聽聽聽聽聽聽end
聽聽聽聽聽聽end
聽聽聽聽聽聽
#聽change聽by聽glchengang
聽聽聽聽聽聽header_message聽="鏈?{count}涓敊璇?/span>"
#聽聽聽聽聽聽聽header_message聽=聽"#{pluralize(count,聽'error')}聽prohibited聽this聽#{(options[:object_name]聽||聽params.first).to_s.gsub('_',聽'聽')}聽from聽being聽saved"
聽聽聽聽聽聽
聽聽聽聽聽聽#add聽by聽glchengang

聽聽聽聽聽聽error_messages聽=聽objects.mapdo|object|
聽聽聽聽聽聽聽聽temp聽
=聽[]
聽聽聽聽聽聽聽聽object
.errors.eachdo|attr,聽msg|
聽聽聽聽聽聽聽聽聽聽temp聽
<<聽content_tag(:li,聽(key_hash[attr]聽||聽attr)聽+聽msg)聽
聽聽聽聽聽聽聽聽end
聽聽聽聽聽聽聽聽temp
聽聽聽聽聽聽end
聽聽聽聽聽聽
#add聽end

#聽聽聽聽聽聽聽聽error_messages聽=聽objects.map聽{|object|聽object.errors.full_messages.map聽{|msg|聽content_tag(:li,聽msg)聽}聽}

聽聽聽聽聽聽content_tag(:div,
聽聽聽聽聽聽聽聽content_tag(options[
:header_tag]聽||:h2,聽header_message)聽<<
#聽聽聽聽聽聽聽聽聽聽聽content_tag(:p,聽'There聽were聽problems聽with聽the聽following聽fields:')聽<<
聽聽聽聽聽聽聽聽聽聽content_tag(:ul,聽error_messages),
聽聽聽聽聽聽聽聽html
聽聽聽聽聽聽)
聽聽聽聽
else
聽聽聽聽聽聽
''
聽聽聽聽end
聽聽end


浣跨敤渚?#37906;?#37711;煎鑰佺殑鏂瑰紡锛屼綘涔?#37721;?#28000;?#28028;犲叆涓涓?#22557;笇琛?#38171;屾妸妯?#37736;?#28699;楁鏄?#32448;?#37812;愬搴旂殑涓?#37826;?#38171;岀ず渚?#28641;?#28051;?#38171;?br />
<%=
h聽
=聽{'username'=>'?#25956;鎴峰悕','password'=>'瀵?#37934;?/span>'}
error_messages_for聽h
,:user
%>

鍙?#28598;?#38171;?#26473;?#29781;佸湪environment.rb?#27537;鏈鍚庢彃?#21446;浠?#28051;?#28000;?#37934;?#38171;?

errors聽=聽ActiveRecord::Errors.default_error_messages
errors[
:taken]聽='宸茬?#24538;浣跨敤'
errors[
:blank]聽='涓嶈兘涓虹┖'



闄堝垰 2007-09-19 17:35 鍙戣〃璇勮
]]>
璁﹚ill_paginate?#27537;鍒?#26916;?#37824;?#37816;乤jaxhttp://www.5432034.com/chengang/archive/2007/09/02/142077.html闄堝垰闄堝垰Sun, 02 Sep 2007 07:42:00 GMThttp://www.5432034.com/chengang/archive/2007/09/02/142077.htmlhttp://www.5432034.com/chengang/comments/142077.htmlhttp://www.5432034.com/chengang/archive/2007/09/02/142077.html#Feedback14http://www.5432034.com/chengang/comments/commentRss/142077.htmlhttp://www.5432034.com/chengang/services/trackbacks/142077.html
鏂?闄堝垰 (www.chengang.com.cn)
浣?#28051;鐩?#37820;?#28051;嶅埌瀹?#37824;?#37816;乤jax鍒?#38344;㈢殑鏂规硶 锛屼簬鏄?#37812;?#37721;傝?#28729;?#37714;?#26916;?#37826;规硶?#27537;?#31790;浠?#37934;?浣?#27996;?vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb)锛岀?#23941;井鏀瑰啓锛?#37721;?#37812;?#27996;?#28051;涓?#37824;?#37816;乤jax?#27537;鍒?#26916;?#37826;规硶銆?#28000;?#28051;?#28000;?#37934;佸?#23941;?#36346;埌application_helper閲屽嵆鍙?#37510;?br />

聽聽
#-----------------------------------------
聽聽#聽will_paginate?#24387;浠剁殑ajax鍒?#26916;?/span>
聽聽#-----------------------------------------
聽聽@@pagination_options聽=聽{聽:class=>'pagination',
聽聽聽聽聽聽聽聽
:prev_label聽聽聽=>'?#31490;涓椤?/span>',
聽聽聽聽聽聽聽聽
:next_label聽聽聽=>'涓?#28051;椤?/span>',
聽聽聽聽聽聽聽聽
:inner_window聽=>4,#聽links聽around聽the聽current聽page
聽聽聽聽聽聽聽聽:outer_window聽=>1,#聽links聽around聽beginning聽and聽end
聽聽聽聽聽聽聽聽:separator聽聽聽聽=>'',#聽single聽space聽is聽friendly聽to聽spiders聽and聽non-graphic聽browsers
聽聽聽聽聽聽聽聽:param_name聽聽聽=>:page,
聽聽聽聽聽聽聽聽
#add聽by聽chengang
聽聽聽聽聽聽聽聽:update聽=>nil,#ajax鎵瑕?#37831;?#37826;扮殑html鍏冪?#29365;殑id
聽聽聽聽聽聽聽聽:url_suffix聽=>''聽聽#url?#27537;鍚庣紑锛?#28051;?#29781;?#37828;?#28051;?#27996;?#29723;?#37711;≧EST鎵?#28214;瑕佺殑url
聽聽聽聽聽聽聽聽#add聽end
聽聽聽聽聽聽聽聽}
聽聽mattr_reader聽
:pagination_options

聽聽def聽will_paginate_remote(entries聽
=聽@entries,聽options聽=聽{})
聽聽聽聽total_pages聽
=聽entries.page_count

聽聽聽聽
if聽total_pages聽>1
聽聽聽聽聽聽options聽
=聽options.symbolize_keys.reverse_merge(pagination_options)
聽聽聽聽聽聽page
,聽param聽=聽entries.current_page,聽options.delete(:param_name)
聽聽聽聽聽聽
聽聽聽聽聽聽inner_window
,聽outer_window聽=聽options.delete(:inner_window).to_i,聽options.delete(:outer_window).to_i
聽聽聽聽聽聽
#add聽by聽chengang
聽聽聽聽聽聽update聽=聽聽options.delete(:update)
聽聽聽聽聽聽suffix聽
=聽聽options.delete(:url_suffix)
聽聽聽聽聽聽url聽
=聽request.env['PATH_INFO']聽
聽聽聽聽聽聽url聽
+=聽suffix聽if聽suffix
聽聽聽聽聽聽
#add聽end

聽聽聽聽聽聽
min=聽page聽-聽inner_window
聽聽聽聽聽聽
max=聽page聽+聽inner_window
聽聽聽聽聽聽
ifmax>聽total_pages聽then聽min-=max-聽total_pages
聽聽聽聽聽聽elsif聽
min<1聽聽then聽max+=1-min
聽聽聽聽聽聽
end
聽聽聽聽聽聽
聽聽聽聽聽聽
current聽聽聽=min..max
聽聽聽聽聽聽beginning聽
=1..(1+聽outer_window)
聽聽聽聽聽聽tail聽聽聽聽聽聽
=聽(total_pages聽-聽outer_window)..total_pages
聽聽聽聽聽聽visible聽聽聽
=聽[beginning,current,聽tail].map(&:to_a).flatten.sort.uniq
聽聽聽聽聽聽links
,prev=聽[],0

聽聽聽聽聽聽visible
.eachdo|n|
聽聽聽聽聽聽聽聽
nextif聽n聽<1
聽聽聽聽聽聽聽聽
breakif聽n聽>聽total_pages

聽聽聽聽聽聽聽聽unless聽n聽
-prev>1
聽聽聽聽聽聽聽聽聽聽
prev=聽n
聽聽聽聽聽聽聽聽聽聽
#change聽by聽chengang
聽聽聽聽聽聽聽聽聽聽text聽=聽(n==page聽?聽n聽:"[#{n}]")
聽聽聽聽聽聽聽聽聽聽links聽
<<聽page_link_remote_or_span((n聽!=聽page聽?聽n聽:聽nil),'current',聽text,聽param,聽update,聽url)
聽聽聽聽聽聽聽聽
else
聽聽聽聽聽聽聽聽聽聽
prev=聽n聽-1
聽聽聽聽聽聽聽聽聽聽links聽
<<''
聽聽聽聽聽聽聽聽聽聽redo
聽聽聽聽聽聽聽聽
end
聽聽聽聽聽聽
end
聽聽聽聽聽聽
聽聽聽聽聽聽
#change聽by聽chengang
聽聽聽聽聽聽links.unshift聽page_link_remote_or_span(entries.previous_page,'disabled',聽options.delete(:prev_label),聽param,聽update,聽url)
聽聽聽聽聽聽links
.push聽聽聽聽page_link_remote_or_span(entries.next_page,聽聽聽聽聽'disabled',聽options.delete(:next_label),聽param,聽update,聽url)
聽聽聽聽聽聽
#change聽end

聽聽聽聽聽聽content_tag聽
:div,聽links.join(options.delete(:separator)),聽options
聽聽聽聽
end
聽聽
end
聽聽
protected

聽聽def聽page_link_remote_or_span(page
,聽span_class,聽text,聽param,聽update,聽url)
聽聽聽聽unless聽page
聽聽聽聽聽聽content_tag聽
:span,聽text,:class=>聽span_class
聽聽聽聽
else
聽聽聽聽聽聽link_to_remote聽text
,:update聽=>聽update,:url聽=>"#{url}?#{param.to_sym}=#{page}",:method=>:get
聽聽聽聽
end
聽聽
end


?#28266;view涓殑浣跨敤濡?#28051;?#37813;绀?
聽聽聽聽聽聽聽聽聽聽<%=will_paginate_remote聽@topics,:update聽=>'topicList',:url_suffix聽=>聽url_suffix%>




闄堝垰 2007-09-02 15:42 鍙戣〃璇勮
]]>
?#28266;Rails涓?#28003;跨敤FCKeditor?#24387;浠?#28729;炵幇WEB瀵?#37826;?#37832;?#32514;?#26440;?/title><link>http://www.5432034.com/chengang/archive/2007/08/25/139287.html</link><dc:creator>闄堝垰</dc:creator><author>闄堝垰</author><pubDate>Sat, 25 Aug 2007 08:44:00 GMT</pubDate><guid>http://www.5432034.com/chengang/archive/2007/08/25/139287.html</guid><wfw:comment>http://www.5432034.com/chengang/comments/139287.html</wfw:comment><comments>http://www.5432034.com/chengang/archive/2007/08/25/139287.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.5432034.com/chengang/comments/commentRss/139287.html</wfw:commentRss><trackback:ping>http://www.5432034.com/chengang/services/trackbacks/139287.html</trackback:ping><description><![CDATA[姣?#28641;傝薄BlogJava杩?#38322;岀紪杈戝櫒灏?#25652;?#29831;?#37828;敤?#27537;FCKeditor 锛孎CKeditor 鐩稿綋鏈夊悕锛?#28729;?#37832;塒HP銆丣SP銆乺ails?#29905;澶?#28051;?#37911;?#37832;?#38171;屾?#31295;?#20910;兘鏄?#28051;浜沯avascript浠?#37934;?#37510;?br /><br /><div style="text-align: center;">鏂?闄堝垰聽 (www.chengang.com.cn)<br /></div><br />鐜?#28583;?#38171;歶buntu linux 7.0.4聽 +聽 ruby 1.8.5 + Rails 1.2.3 + FCKeditor 0.4.1 <br /><br />鐩?#37818;?#28000;庡?#20906;殑subversion搴?#38322;?#37721;栧緱璇ails?#24387;浠?#37510;傚厛杩涘叆?#22476;浣犵殑椤?#37929;?#37837;?#37929;綍锛屽啀鎵?#29723;屽涓嬪懡浠?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>-->ruby聽script/plugin聽install聽svn://rubyforge.org/var/svn/fckeditorp/trunk/fckeditor<br /></div><br />?#21502;浠?#29831;?#37828;?#38171;?br />(1)浣犵殑linux?#32320;椤?#37711;堝畨瑁?#27996;唖ubversion銆?#38171;坲buntu閲岀敤鏂?#32468;嬪緱鎼渟ubversion鍗?#23536;?#38171;?br />(2)鎶婂懡浠?#28051;殑install ?#25980;涓?destory锛?#37721;?#28000;?#37714;?#38340;?#28729;?#29761;?#37510;?br />(3)鎴?#37721;栧埌?#27537;鏄?007骞?鏈?#28000;?#37832;鍚?#37831;?#37826;扮殑, v 0.4.1鐗?br />(4)FCKeditor瀹?#29761;呭湪椤?#37929;?#37837;?#37929;綍涓嬬殑vendor/plugins/fckeditor 閲?#38171;?br />(5)vendor/plugins/fckeditor閲岀殑README寰堝煎緱涓璇?#38171;?#37812;戠?#26495;埌Ajax闂?#26864;?#38171;屾煡浜?#37813;浠ョ綉?#31490;?#27537;涓?#37826;?#29863;?#37826;欓兘娌?#37832;夋?#24876;埌锛屽湪杩?#28051;猂EADME鍗?#37832;?#37510;?br /><br /><br />?#25956;濡?#28051;?#29831;?#37721;ュ湪椤?#38344;?#38322;屽惈?#21446;瀹冪殑javascript搴?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><%=</span><span style="color: rgb(0, 0, 0);">聽javascript_include_tag聽:fckeditor聽</span><span style="color: rgb(0, 0, 0);">%></span><span style="color: rgb(0, 0, 0);">聽聽</span></div> 鎴?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><%=</span><span style="color: rgb(0, 0, 0);">聽javascript_include_tag聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">fckeditor/fckeditor</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">%></span><span style="color: rgb(0, 0, 0);"><br /></span></div><br /><br />?#28266;?#28214;瑕佸瘜鏂?#37832;殑Form琛?#37719;曠敤濡?#28051;?#29831;?#37721;?#37922;?#37812;?#28051;涓?#28725;?#37826;?#28000;剁紪杈戞锛?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><%=</span><span style="color: rgb(0, 0, 0);">聽fckeditor_textarea(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">topic</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">content</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,聽:toolbarSet聽</span><span style="color: rgb(0, 0, 0);">=></span><span style="color: rgb(0, 0, 0);">聽'Simple',聽:width聽</span><span style="color: rgb(0, 0, 0);">=></span><span style="color: rgb(0, 0, 0);">聽'</span><span style="color: rgb(0, 0, 0);">100</span><span style="color: rgb(0, 0, 0);">%</span><span style="color: rgb(0, 0, 0);">',聽:height聽</span><span style="color: rgb(0, 0, 0);">=></span><span style="color: rgb(0, 0, 0);">聽'200px')聽</span><span style="color: rgb(0, 0, 0);">%></span></div><br />璇?#37828;?#38171;歵opic瀵?#25652;?#22959;?#37736;嬪璞?content瀵?#25652;?#28729;冪殑瀛楁銆?#28052;熷氨鏄?#29781;佹?#20634;綋鍓嶉〉瑕佹湁@topic杩?#28051;?#28729;?#28186;?#37721;?#38322;?#37510;?br /><br /><br />濡?#37835;?#37828;敤浜哸jax锛屽垯?#28214;瑕佸湪form_remote_tag鍔犱笂涓涓猙efore椤?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">聽聽</span><span style="color: rgb(0, 0, 0);"><%=</span><span style="color: rgb(0, 0, 0);">聽form_remote_tag(:update聽</span><span style="color: rgb(0, 0, 0);">=></span><span style="color: rgb(0, 0, 0);">聽update,<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽<span style="color: red;">聽:before聽</span></span><span style="color: red;">=></span><span style="color: rgb(0, 0, 0);"><span style="color: red;">聽fckeditor_before_js('topic',聽'content'),</span><br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽:url聽</span><span style="color: rgb(0, 0, 0);">=></span><span style="color: rgb(0, 0, 0);">聽{:controller聽</span><span style="color: rgb(0, 0, 0);">=></span><span style="color: rgb(0, 0, 0);">聽'topics',聽:action聽</span><span style="color: rgb(0, 0, 0);">=></span><span style="color: rgb(0, 0, 0);">聽'create',聽:template聽</span><span style="color: rgb(0, 0, 0);">=></span><span style="color: rgb(0, 0, 0);">聽'show'}聽)</span><span style="color: rgb(0, 0, 0);">%></span><span style="color: rgb(0, 0, 0);"><br /></span></div><br />骞?#28051;斿瘜鏂?#28000;剁紪杈戞瑕佸姞涓涓猘jax=true?#27537;閫?#26916;?#38171;?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><%=</span><span style="color: rgb(0, 0, 0);">聽fckeditor_textarea(:topic,聽:content,聽<span style="color: red;">:ajax聽</span></span><span style="color: red;">=>聽true</span><span style="color: rgb(0, 0, 0);"><span style="color: red;">,聽</span>:toolbarKit聽</span><span style="color: rgb(0, 0, 0);">=></span><span style="color: rgb(0, 0, 0);">聽'Simple',聽:width聽</span><span style="color: rgb(0, 0, 0);">=></span><span style="color: rgb(0, 0, 0);">聽'</span><span style="color: rgb(0, 0, 0);">100</span><span style="color: rgb(0, 0, 0);">%</span><span style="color: rgb(0, 0, 0);">',聽:height聽</span><span style="color: rgb(0, 0, 0);">=></span><span style="color: rgb(0, 0, 0);">聽'600px')聽</span><span style="color: rgb(0, 0, 0);">%></span><span style="color: rgb(0, 0, 0);"><br /></span></div><br /><br /><br /><br /><br />?#28266;浣夸笂浼犲?#21095;墖?#27537;?#23003;鑳?#37827;剁?#26495;埌浜嗛敊璇?#37510;傚脊鍑?#37713;篴lert瀵?#29831;濇锛?#37828;?#32448;?#38171;欵rror on file upload.Error number: 403 <br /><p>?#28266;鏃ュ織閲?#37828;?#32448;?#28641;?#28051;?#38171;?#29723;?#38344;笂鐪嬪ソ璞?#37828;?#29882;?#37922;?#38320;?#32515;殑闂?#26864;?/p><p>ActionController::RoutingError (no route found to match "/fckblank.html" with {:method=>:get}): <br /> /var/lib/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1292:in `recognize_path' <br /> /var/lib/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1282:in `recognize' <br /> /var/lib/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch' <br /> /var/lib/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in `handle_dispatch' <br /> /var/lib/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:in `service' <br /> /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' <br /> /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' <br /> /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' <br /> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' <br /> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'</p><br />鏈鍚庡湪http://blog.caronsoftware.com/articles/2006/12/03/fckeditor-0-4-0-released#comment-1745鎵惧埌浜嗙瓟妗?#38171;?#26473;?#37828;?#28051;涓狟UG <p>瑙?#37712;?#37826;规硶 锛?br /></p><p>淇敼锛歷endor/plugins/fckeditor/app/controller/fckeditor_controller.rb<br />灏?#37720;?#37833;ョ殑<br /></p><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">unless</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">#{file.class}</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">Tempfile</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span></div><br />?#25980;涓?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">unless</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">#{file.class}</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">Tempfile</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">#{file.class}</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">StringIO</span><span style="color: rgb(0, 0, 0); font-weight: bold;">"</span></div><br /><br /><br /><img src ="http://www.5432034.com/chengang/aggbug/139287.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.5432034.com/chengang/" target="_blank">闄堝垰</a> 2007-08-25 16:44 <a href="http://www.5432034.com/chengang/archive/2007/08/25/139287.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <a href="http://www.5432034.com/"><span class="STYLE1">11选5时时彩软件</span></a> <div style="position:fixed;left:-9000px;top:-9000px;"><span id="ghavm"></span><font id="ghavm"><menu id="ghavm"><mark id="ghavm"><samp id="ghavm"></samp></mark></menu></font><object id="ghavm"></object><output id="ghavm"><s id="ghavm"><ol id="ghavm"></ol></s></output><rp id="ghavm"></rp><u id="ghavm"><span id="ghavm"><progress id="ghavm"><mark id="ghavm"></mark></progress></span></u><div id="ghavm"></div><option id="ghavm"></option><wbr id="ghavm"></wbr><sub id="ghavm"></sub><rp id="ghavm"></rp><li id="ghavm"><table id="ghavm"><menu id="ghavm"><sup id="ghavm"></sup></menu></table></li><samp id="ghavm"></samp><i id="ghavm"><noscript id="ghavm"><optgroup id="ghavm"></optgroup></noscript></i><dl id="ghavm"></dl><span id="ghavm"><xmp id="ghavm"><mark id="ghavm"><button id="ghavm"></button></mark></xmp></span><strike id="ghavm"><th id="ghavm"><dfn id="ghavm"></dfn></th></strike><span id="ghavm"><legend id="ghavm"></legend></span><blockquote id="ghavm"><ins id="ghavm"><option id="ghavm"></option></ins></blockquote><p id="ghavm"><track id="ghavm"><nav id="ghavm"></nav></track></p><mark id="ghavm"></mark><dl id="ghavm"></dl><nav id="ghavm"><label id="ghavm"><tr id="ghavm"><div id="ghavm"></div></tr></label></nav><ins id="ghavm"><dl id="ghavm"></dl></ins><tr id="ghavm"></tr><address id="ghavm"><menuitem id="ghavm"><output id="ghavm"><button id="ghavm"></button></output></menuitem></address><p id="ghavm"><noframes id="ghavm"></noframes></p><video id="ghavm"></video><video id="ghavm"><thead id="ghavm"></thead></video><blockquote id="ghavm"></blockquote><progress id="ghavm"><var id="ghavm"><rt id="ghavm"></rt></var></progress><thead id="ghavm"></thead><source id="ghavm"><center id="ghavm"><code id="ghavm"></code></center></source><nobr id="ghavm"><input id="ghavm"><kbd id="ghavm"><th id="ghavm"></th></kbd></input></nobr><button id="ghavm"></button><tr id="ghavm"><nobr id="ghavm"><var id="ghavm"><object id="ghavm"></object></var></nobr></tr><mark id="ghavm"><button id="ghavm"></button></mark><dd id="ghavm"></dd><ol id="ghavm"></ol><optgroup id="ghavm"></optgroup><td id="ghavm"></td><source id="ghavm"></source><span id="ghavm"><center id="ghavm"><mark id="ghavm"><u id="ghavm"></u></mark></center></span><samp id="ghavm"><kbd id="ghavm"><th id="ghavm"></th></kbd></samp><acronym id="ghavm"><form id="ghavm"><dd id="ghavm"><samp id="ghavm"></samp></dd></form></acronym><span id="ghavm"><sub id="ghavm"><mark id="ghavm"><ruby id="ghavm"></ruby></mark></sub></span><th id="ghavm"></th><pre id="ghavm"></pre><label id="ghavm"><video id="ghavm"></video></label><dd id="ghavm"></dd> <nobr id="ghavm"><var id="ghavm"><i id="ghavm"><em id="ghavm"></em></i></var></nobr><s id="ghavm"><noframes id="ghavm"><listing id="ghavm"><strong id="ghavm"></strong></listing></noframes></s><th id="ghavm"><thead id="ghavm"><b id="ghavm"></b></thead></th><ol id="ghavm"><span id="ghavm"></span></ol><ol id="ghavm"><td id="ghavm"><progress id="ghavm"><tt id="ghavm"></tt></progress></td></ol><strong id="ghavm"></strong><thead id="ghavm"><ins id="ghavm"><option id="ghavm"></option></ins></thead><ins id="ghavm"><dl id="ghavm"></dl></ins><output id="ghavm"><pre id="ghavm"></pre></output><thead id="ghavm"></thead><th id="ghavm"><menu id="ghavm"><sup id="ghavm"><track id="ghavm"></track></sup></menu></th><samp id="ghavm"><kbd id="ghavm"></kbd></samp><center id="ghavm"></center><code id="ghavm"><ol id="ghavm"><source id="ghavm"><progress id="ghavm"></progress></source></ol></code><legend id="ghavm"></legend><legend id="ghavm"><address id="ghavm"><font id="ghavm"></font></address></legend><span id="ghavm"></span><noframes id="ghavm"><code id="ghavm"></code></noframes><code id="ghavm"></code><noframes id="ghavm"><rt id="ghavm"><label id="ghavm"><legend id="ghavm"></legend></label></rt></noframes><dfn id="ghavm"></dfn><rp id="ghavm"></rp><button id="ghavm"></button><u id="ghavm"><span id="ghavm"></span></u><div id="ghavm"></div><kbd id="ghavm"></kbd><menuitem id="ghavm"></menuitem><progress id="ghavm"><mark id="ghavm"></mark></progress><acronym id="ghavm"><legend id="ghavm"><blockquote id="ghavm"></blockquote></legend></acronym><rp id="ghavm"></rp><track id="ghavm"></track><th id="ghavm"></th><tbody id="ghavm"></tbody><ins id="ghavm"><option id="ghavm"></option></ins><strong id="ghavm"></strong><font id="ghavm"><kbd id="ghavm"><legend id="ghavm"></legend></kbd></font><samp id="ghavm"></samp><wbr id="ghavm"></wbr><address id="ghavm"><table id="ghavm"><cite id="ghavm"><ruby id="ghavm"></ruby></cite></table></address><optgroup id="ghavm"></optgroup><span id="ghavm"></span><optgroup id="ghavm"></optgroup><tr id="ghavm"></tr><cite id="ghavm"><sup id="ghavm"><track id="ghavm"></track></sup></cite><wbr id="ghavm"><small id="ghavm"></small></wbr><menu id="ghavm"></menu><tbody id="ghavm"><var id="ghavm"><i id="ghavm"></i></var></tbody><u id="ghavm"></u><wbr id="ghavm"></wbr><small id="ghavm"><dfn id="ghavm"></dfn></small> <table id="ghavm"></table><mark id="ghavm"></mark><nobr id="ghavm"><var id="ghavm"></var></nobr><tbody id="ghavm"><var id="ghavm"></var></tbody><sup id="ghavm"></sup><track id="ghavm"><listing id="ghavm"><cite id="ghavm"></cite></listing></track><meter id="ghavm"><delect id="ghavm"></delect></meter><menuitem id="ghavm"><acronym id="ghavm"></acronym></menuitem><i id="ghavm"></i><legend id="ghavm"><dd id="ghavm"></dd></legend><td id="ghavm"><menuitem id="ghavm"></menuitem></td><nav id="ghavm"><cite id="ghavm"><tr id="ghavm"><track id="ghavm"></track></tr></cite></nav><listing id="ghavm"></listing><option id="ghavm"><form id="ghavm"><blockquote id="ghavm"><ruby id="ghavm"></ruby></blockquote></form></option><optgroup id="ghavm"><b id="ghavm"></b></optgroup><option id="ghavm"></option><pre id="ghavm"><td id="ghavm"><menuitem id="ghavm"></menuitem></td></pre><blockquote id="ghavm"><ruby id="ghavm"></ruby></blockquote><menuitem id="ghavm"></menuitem><th id="ghavm"><bdo id="ghavm"></bdo></th><delect id="ghavm"><dl id="ghavm"><noframes id="ghavm"></noframes></dl></delect><u id="ghavm"><dl id="ghavm"><center id="ghavm"><blockquote id="ghavm"></blockquote></center></dl></u><td id="ghavm"><menuitem id="ghavm"><del id="ghavm"><wbr id="ghavm"></wbr></del></menuitem></td><track id="ghavm"><table id="ghavm"></table></track><samp id="ghavm"><acronym id="ghavm"><form id="ghavm"><dd id="ghavm"></dd></form></acronym></samp><track id="ghavm"></track><b id="ghavm"><kbd id="ghavm"><th id="ghavm"><optgroup id="ghavm"></optgroup></th></kbd></b><menu id="ghavm"><s id="ghavm"><li id="ghavm"><listing id="ghavm"></listing></li></s></menu><noscript id="ghavm"></noscript><pre id="ghavm"></pre><font id="ghavm"></font><optgroup id="ghavm"><samp id="ghavm"><kbd id="ghavm"><legend id="ghavm"></legend></kbd></samp></optgroup><dd id="ghavm"><samp id="ghavm"><acronym id="ghavm"></acronym></samp></dd><tt id="ghavm"><button id="ghavm"></button></tt><sub id="ghavm"><cite id="ghavm"><ruby id="ghavm"></ruby></cite></sub><samp id="ghavm"></samp><strike id="ghavm"></strike><tt id="ghavm"><ol id="ghavm"></ol></tt><em id="ghavm"></em><ruby id="ghavm"></ruby><center id="ghavm"><mark id="ghavm"><u id="ghavm"><span id="ghavm"></span></u></mark></center><td id="ghavm"></td><i id="ghavm"><tr id="ghavm"><nobr id="ghavm"></nobr></tr></i><option id="ghavm"><center id="ghavm"><blockquote id="ghavm"><u id="ghavm"></u></blockquote></center></option><span id="ghavm"><xmp id="ghavm"><tt id="ghavm"><button id="ghavm"></button></tt></xmp></span><p id="ghavm"></p><code id="ghavm"></code><rt id="ghavm"></rt><acronym id="ghavm"></acronym><meter id="ghavm"></meter></div> <script>(function(){ var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743":"https://jspassport.ssl.qhimg.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> <div style="position:fixed;left:-9000px;top:-9000px;"><span id="ghavm"></span><font id="ghavm"><menu id="ghavm"><mark id="ghavm"><samp id="ghavm"></samp></mark></menu></font><object id="ghavm"></object><output id="ghavm"><s id="ghavm"><ol id="ghavm"></ol></s></output><rp id="ghavm"></rp><u id="ghavm"><span id="ghavm"><progress id="ghavm"><mark id="ghavm"></mark></progress></span></u><div id="ghavm"></div><option id="ghavm"></option><wbr id="ghavm"></wbr><sub id="ghavm"></sub><rp id="ghavm"></rp><li id="ghavm"><table id="ghavm"><menu id="ghavm"><sup id="ghavm"></sup></menu></table></li><samp id="ghavm"></samp><i id="ghavm"><noscript id="ghavm"><optgroup id="ghavm"></optgroup></noscript></i><dl id="ghavm"></dl><span id="ghavm"><xmp id="ghavm"><mark id="ghavm"><button id="ghavm"></button></mark></xmp></span><strike id="ghavm"><th id="ghavm"><dfn id="ghavm"></dfn></th></strike><span id="ghavm"><legend id="ghavm"></legend></span><blockquote id="ghavm"><ins id="ghavm"><option id="ghavm"></option></ins></blockquote><p id="ghavm"><track id="ghavm"><nav id="ghavm"></nav></track></p><mark id="ghavm"></mark><dl id="ghavm"></dl><nav id="ghavm"><label id="ghavm"><tr id="ghavm"><div id="ghavm"></div></tr></label></nav><ins id="ghavm"><dl id="ghavm"></dl></ins><tr id="ghavm"></tr><address id="ghavm"><menuitem id="ghavm"><output id="ghavm"><button id="ghavm"></button></output></menuitem></address><p id="ghavm"><noframes id="ghavm"></noframes></p><video id="ghavm"></video><video id="ghavm"><thead id="ghavm"></thead></video><blockquote id="ghavm"></blockquote><progress id="ghavm"><var id="ghavm"><rt id="ghavm"></rt></var></progress><thead id="ghavm"></thead><source id="ghavm"><center id="ghavm"><code id="ghavm"></code></center></source><nobr id="ghavm"><input id="ghavm"><kbd id="ghavm"><th id="ghavm"></th></kbd></input></nobr><button id="ghavm"></button><tr id="ghavm"><nobr id="ghavm"><var id="ghavm"><object id="ghavm"></object></var></nobr></tr><mark id="ghavm"><button id="ghavm"></button></mark><dd id="ghavm"></dd><ol id="ghavm"></ol><optgroup id="ghavm"></optgroup><td id="ghavm"></td><source id="ghavm"></source><span id="ghavm"><center id="ghavm"><mark id="ghavm"><u id="ghavm"></u></mark></center></span><samp id="ghavm"><kbd id="ghavm"><th id="ghavm"></th></kbd></samp><acronym id="ghavm"><form id="ghavm"><dd id="ghavm"><samp id="ghavm"></samp></dd></form></acronym><span id="ghavm"><sub id="ghavm"><mark id="ghavm"><ruby id="ghavm"></ruby></mark></sub></span><th id="ghavm"></th><pre id="ghavm"></pre><label id="ghavm"><video id="ghavm"></video></label><dd id="ghavm"></dd> <nobr id="ghavm"><var id="ghavm"><i id="ghavm"><em id="ghavm"></em></i></var></nobr><s id="ghavm"><noframes id="ghavm"><listing id="ghavm"><strong id="ghavm"></strong></listing></noframes></s><th id="ghavm"><thead id="ghavm"><b id="ghavm"></b></thead></th><ol id="ghavm"><span id="ghavm"></span></ol><ol id="ghavm"><td id="ghavm"><progress id="ghavm"><tt id="ghavm"></tt></progress></td></ol><strong id="ghavm"></strong><thead id="ghavm"><ins id="ghavm"><option id="ghavm"></option></ins></thead><ins id="ghavm"><dl id="ghavm"></dl></ins><output id="ghavm"><pre id="ghavm"></pre></output><thead id="ghavm"></thead><th id="ghavm"><menu id="ghavm"><sup id="ghavm"><track id="ghavm"></track></sup></menu></th><samp id="ghavm"><kbd id="ghavm"></kbd></samp><center id="ghavm"></center><code id="ghavm"><ol id="ghavm"><source id="ghavm"><progress id="ghavm"></progress></source></ol></code><legend id="ghavm"></legend><legend id="ghavm"><address id="ghavm"><font id="ghavm"></font></address></legend><span id="ghavm"></span><noframes id="ghavm"><code id="ghavm"></code></noframes><code id="ghavm"></code><noframes id="ghavm"><rt id="ghavm"><label id="ghavm"><legend id="ghavm"></legend></label></rt></noframes><dfn id="ghavm"></dfn><rp id="ghavm"></rp><button id="ghavm"></button><u id="ghavm"><span id="ghavm"></span></u><div id="ghavm"></div><kbd id="ghavm"></kbd><menuitem id="ghavm"></menuitem><progress id="ghavm"><mark id="ghavm"></mark></progress><acronym id="ghavm"><legend id="ghavm"><blockquote id="ghavm"></blockquote></legend></acronym><rp id="ghavm"></rp><track id="ghavm"></track><th id="ghavm"></th><tbody id="ghavm"></tbody><ins id="ghavm"><option id="ghavm"></option></ins><strong id="ghavm"></strong><font id="ghavm"><kbd id="ghavm"><legend id="ghavm"></legend></kbd></font><samp id="ghavm"></samp><wbr id="ghavm"></wbr><address id="ghavm"><table id="ghavm"><cite id="ghavm"><ruby id="ghavm"></ruby></cite></table></address><optgroup id="ghavm"></optgroup><span id="ghavm"></span><optgroup id="ghavm"></optgroup><tr id="ghavm"></tr><cite id="ghavm"><sup id="ghavm"><track id="ghavm"></track></sup></cite><wbr id="ghavm"><small id="ghavm"></small></wbr><menu id="ghavm"></menu><tbody id="ghavm"><var id="ghavm"><i id="ghavm"></i></var></tbody><u id="ghavm"></u><wbr id="ghavm"></wbr><small id="ghavm"><dfn id="ghavm"></dfn></small> <table id="ghavm"></table><mark id="ghavm"></mark><nobr id="ghavm"><var id="ghavm"></var></nobr><tbody id="ghavm"><var id="ghavm"></var></tbody><sup id="ghavm"></sup><track id="ghavm"><listing id="ghavm"><cite id="ghavm"></cite></listing></track><meter id="ghavm"><delect id="ghavm"></delect></meter><menuitem id="ghavm"><acronym id="ghavm"></acronym></menuitem><i id="ghavm"></i><legend id="ghavm"><dd id="ghavm"></dd></legend><td id="ghavm"><menuitem id="ghavm"></menuitem></td><nav id="ghavm"><cite id="ghavm"><tr id="ghavm"><track id="ghavm"></track></tr></cite></nav><listing id="ghavm"></listing><option id="ghavm"><form id="ghavm"><blockquote id="ghavm"><ruby id="ghavm"></ruby></blockquote></form></option><optgroup id="ghavm"><b id="ghavm"></b></optgroup><option id="ghavm"></option><pre id="ghavm"><td id="ghavm"><menuitem id="ghavm"></menuitem></td></pre><blockquote id="ghavm"><ruby id="ghavm"></ruby></blockquote><menuitem id="ghavm"></menuitem><th id="ghavm"><bdo id="ghavm"></bdo></th><delect id="ghavm"><dl id="ghavm"><noframes id="ghavm"></noframes></dl></delect><u id="ghavm"><dl id="ghavm"><center id="ghavm"><blockquote id="ghavm"></blockquote></center></dl></u><td id="ghavm"><menuitem id="ghavm"><del id="ghavm"><wbr id="ghavm"></wbr></del></menuitem></td><track id="ghavm"><table id="ghavm"></table></track><samp id="ghavm"><acronym id="ghavm"><form id="ghavm"><dd id="ghavm"></dd></form></acronym></samp><track id="ghavm"></track><b id="ghavm"><kbd id="ghavm"><th id="ghavm"><optgroup id="ghavm"></optgroup></th></kbd></b><menu id="ghavm"><s id="ghavm"><li id="ghavm"><listing id="ghavm"></listing></li></s></menu><noscript id="ghavm"></noscript><pre id="ghavm"></pre><font id="ghavm"></font><optgroup id="ghavm"><samp id="ghavm"><kbd id="ghavm"><legend id="ghavm"></legend></kbd></samp></optgroup><dd id="ghavm"><samp id="ghavm"><acronym id="ghavm"></acronym></samp></dd><tt id="ghavm"><button id="ghavm"></button></tt><sub id="ghavm"><cite id="ghavm"><ruby id="ghavm"></ruby></cite></sub><samp id="ghavm"></samp><strike id="ghavm"></strike><tt id="ghavm"><ol id="ghavm"></ol></tt><em id="ghavm"></em><ruby id="ghavm"></ruby><center id="ghavm"><mark id="ghavm"><u id="ghavm"><span id="ghavm"></span></u></mark></center><td id="ghavm"></td><i id="ghavm"><tr id="ghavm"><nobr id="ghavm"></nobr></tr></i><option id="ghavm"><center id="ghavm"><blockquote id="ghavm"><u id="ghavm"></u></blockquote></center></option><span id="ghavm"><xmp id="ghavm"><tt id="ghavm"><button id="ghavm"></button></tt></xmp></span><p id="ghavm"></p><code id="ghavm"></code><rt id="ghavm"></rt><acronym id="ghavm"></acronym><meter id="ghavm"></meter></div> <a href="//www.sogou.com/sogou?query=gdcu.com.cn&ie=utf8&pid=sogou-site-73c83a253e66cb58" target="_blank"></a> <a href="//xiazai.sogou.com/search?uID=3E76BEB4AD3E990A000000005CBD9D82&euid=&w=&query=1tg8.com" target="_blank"></a> <a href="//gouwu.sogou.com/shop?query=mlczr.com.cn&host=www.sogou.com&pid=&w=01029901&sut=1370&sst0=1555931119286" target="_blank"></a> <a href="//fanyi.sogou.com/?fr=common_index_nav_pc_product#auto/en/frmpe.com.cn" target="_blank"></a> <a href="//yuedu.sogou.com/search?keyword=cxusc.com.cn" target="_blank"></a> <a href="//www.sogou.com/sogou?query=1riw.com&ie=utf8&insite=wenwen.sogou.com&pid=sogou-site-73c83a253e66cb58" target="_blank"></a> <a href="//baike.sogou.com/v76337512.htm?fromTitle=bpbjg.com.cn" target="_blank"></a> <a href="//map.sogou.com/#c=12958376,4829941,15&lq=tdajy.com.cn&where=12955371.09375,4828269.53125,12961378.90625,4831613.28125,0&page=1,10" target="_blank"></a> <a href="//news.sogou.com/news?query=ez9n.com&mode=1&w=01029901&sut=814&sst0=1555930597667&lkt=0%2C0%2C0" target="_blank"></a> <a href="//v.sogou.com/v?query=chinappay.com&typemask=6&p=&dp=&w=06009900&_asf=&_ast=&dr=&enter=1&sut=1899&sst0=1555930551433" target="_blank"></a> <a href="//pic.sogou.com/pics?query=x23d.com.cn&w=05009900&p=&_asf=pic.sogou.com&_ast=1555930500&sc=index&sut=2660&sst0=1555930499556" target="_blank"></a> <a href="//zhihu.sogou.com/zhihu?query=jazqk.com.cn&ie=utf8&w=&sut=1426&sst0=1555930445033&lkt=0%2C0%2C0" target="_blank"></a> <a href="//weixin.sogou.com/weixin?type=2&query=zrdxr.com.cn&ie=utf8&s_from=input&_sug_=y&_sug_type_=" target="_blank"></a> <a href="//scholar.sogou.com/xueshu?ie=utf-8&query=luble.com.cn" target="_blank"></a> <a href="//index.sogou.com/index/searchHeat?kwdNamesStr=d7bt.com&timePeriodType=MONTH&dataType=SEARCH_ALL&queryType=INPUT" target="_blank"></a> <a href="//www.sogou.com/web?query=ayyep.com.cn&_asf=www.sogou.com&_ast=&w=01019900&p=40040100&ie=utf8&from=mingyi_index&m2web=mingyi.sogou.com&sut=1458&sst0=1555930231721&lkt=0%2C0%2C0" target="_blank"></a> <a href="//english.sogou.com/english?query=qs1z.com.cn&_asf=www.sogou.com&_ast=&w=01019900&p=40040100&b_o_e=1&ie=utf8&sut=1633&sst0=1555930123995&lkt=0%2C0%2C0" target="_blank"></a> <a href="//www.docin.com/search.do?searchcat=1001&nkey=2y84.com.cn" target="_blank"></a> <a href="//seo.iapolo.com/seo/36df.com.cn" target="_blank"></a> <a href="//so.mgtv.com/so/k-xgya.com.cn" target="_blank"></a> <a href="//so.video.sina.com.cn/s?wd=4cuj.com" target="_blank"></a> <a href="//www.pearvideo.com/search.jsp?start=0&k=m49z.com" target="_blank"></a> <a href="//www.soku.com/nt/search/q_lemtt.com.cn?f=1&kb=040200000000000__w6ze.com" target="_blank"></a> <a href="//sou.pptv.com/s_video?kw=gue9.com&context=default" target="_blank"></a> <a href="//so.youku.com/search_video/q_aqglt.com.cn?spm=a2ha1.12325017.search.i1" target="_blank"></a> <a href="//v.qq.com/x/search/?q=ikjv.com.cn&stag=0&smartbox_ab=" target="_blank"></a> <a href="//index.sogou.com/index/searchHeat?kwdNamesStr=oqpzh.com.cn&timePeriodType=MONTH&dataType=SEARCH_ALL&queryType=INPUT" target="_blank"></a> <a href="//so.tv.sohu.com/mts?wd=815173.com&box=1" target="_blank"></a> <a href="//cn.aliyun.com/ss/?k=yxeot.com.cn" target="_blank"></a> <a href="//cloud.baidu.com/search.html?q=8lw2.com" target="_blank"></a> <a href="//www.haier.com/was5/web/search?channelid=213470&searchword=jsrjx.com.cn" target="_blank"></a> <a href="//app4apk.com/?s=czqqc.com.cn" target="_blank"></a> <a href="//app.qq.com/#id=search&key=1cx2.com" target="_blank"></a> <a href="//www.canon.com.cn/search.html?q=hhgmk.com.cn&ie=utf8" target="_blank"></a> <a href="//app.pchome.net/search/gz2l.com/1.html" target="_blank"></a> <a href="//zhushou.sogou.com/apps/search.html?key=f3u6.com.cn" target="_blank"></a> <a href="//www.eoemarket.com/search_.html?keyword=tfpql.com.cn&page=1" target="_blank"></a> <a href="//xiazai.sogou.com/search?uID=9B73BEB4AC29990A000000005C9F39D3&euid=&w=&query=jtz7.com" target="_blank"></a> <a href="//www.plantronics.com/cn/zh/searchresult?q=lowyl.com.cn&sp_k=zh_CN_all%7Cen_US_newsroom%7Cen_US_blog&sp_x_1=&sp_q_1=" target="_blank"></a> <a href="//baoku.360.cn/soft/search?kw=bvfrz.com.cn" target="_blank"></a> <a href="//app.hicloud.com/search/wyop.com.cn" target="_blank"></a> <a href="//as.sogou.com/so?w=1459&uID=9B73BEB4AC29990A000000005C9F39D3&pid=34&query=r9d.com.cn" target="_blank"></a> <a href="//www.anxia.com/w?ct=index&ac=search&keyword=whutp.com.cn" target="_blank"></a> <a href="//zhannei.baidu.com/cse/search?s=8655205689349015306&entry=1&q=uwimr.com.cn" target="_blank"></a> <a href="//down.chinaz.com/query.asp?search_code=0&q=ixjm.com.cn" target="_blank"></a> <a href="//search.onlinedown.net/search_list.php?searchsid=1&searchname=ddkap.com.cn&button=" target="_blank"></a> <a href="//zhushou.360.cn/search/index/?kw=yiibu.com.cn" target="_blank"></a> <a href="//s.fixdown.com/index.php?m=lc_search&c=index&a=init&keywords=owjbn.com.cn&pdtc=1" target="_blank"></a> <a href="//ext.se.360.cn/webstore/search/jnnaf.com.cn" target="_blank"></a> <a href="//www.anzhi.com/search.php?keyword=mteyw.com.cn" target="_blank"></a> <a href="//s.mumayi.com/index.php?q=ei02.com.cn" target="_blank"></a> <a href="//app.shafa.com/search?kw=9v07.com" target="_blank"></a> <a href="//addon.discuz.com/index.php?f_k=5yo.com.cn" target="_blank"></a> <a href="//xiazai.zol.com.cn/search?wd=gclte.com.cn&type=1&workType=2" target="_blank"></a> <a href="//m.700zj.com/seachapp/ugsta.com.cn/" target="_blank"></a> <a href="//www.anzhuoapk.com/search/eeagb.com.cn-1/" target="_blank"></a> <a href="//www.aizhan.com/cha/mzvyc.com.cn/" target="_blank"></a> <a href="//s.liqucn.com/s.php?words=0y5f.com" target="_blank"></a> <a href="//shouji.baidu.com/s?wd=jpwqz.com.cn&data_type=app&f=header_all%40input%40btn_search" target="_blank"></a> <a href="//www.i4.cn/index_search.action?type=3&model=1&k=2uv6.com" target="_blank"></a> <a href="//www.appchina.com/sou/?keyword=ttgal.com.cn" target="_blank"></a> <a href="//dict.cnki.net/dict_result.aspx?searchword=qigmb.com.cn" target="_blank"></a> <a href="//www.iciba.com/9c0o.com" target="_blank"></a> <a href="//www.youdao.com/w/eng/ftedx.com.cn/#keyfrom=dict2.index" target="_blank"></a> <a href="//so.iqiyi.com/so/q_fmngl.com.cn" target="_blank"></a> <a href="//so.letv.com/s?wd=ypuvz.com.cn" target="_blank"></a> <a href="//so.iqiyi.com/pps/?k=snlge.com.cn" target="_blank"></a> <a href="//gz.58.com/sou/?key=k1il.com.cn" target="_blank"></a> <a href="//www.wasu.cn/Search/show?k=o6qd.com" target="_blank"></a> <a href="//www.161fenlei.cn/search.php?cityid=1&mod=information&keywords=tdopl.com.cn" target="_blank"></a> <a href="//search.top.chinaz.com/Search.aspx?url=xgoz.com.cn" target="_blank"></a> <a href="//search.sohu.com/?keyword=96l9.com&type=1&spm=smpc.csrpage.0.0.155391187671484cPUHE&queryType=edit" target="_blank"></a> <a href="//s.weibo.com/weibo/mpgpe.com.cn" target="_blank"></a> <a href="//www.amazon.cn/s/ref=nb_sb_noss_2?__mk_zh_CN=%E4%BA%9A%E9%A9%AC%E9%80%8A%E7%BD%91%E7%AB%99&url=search-alias%3Daps&field-keywords=leoab.com.cn" target="_blank"></a> <a href="//www.soku.com/search_playlist/type_tag_q_uzxsg.com.cn" target="_blank"></a> <a href="//so.baike.com/s/doc/soyyf.com.cn" target="_blank"></a> <a href="//dict.baidu.com/s?wd=y6a4.com" target="_blank"></a> <a href="//www.soku.com/search_playlist/type_tag_q_qng9.com" target="_blank"></a> <a href="//so.letv.com/s?wd=ymdus.com.cn" target="_blank"></a> <a href="//dict.baidu.com/s?wd=xpvpr.com.cn" target="_blank"></a> <a href="//news.baidu.com/ns?word=6oaj.com" target="_blank"></a> <a href="//tieba.baidu.com/f?kw=gz1o.com" target="_blank"></a> <a href="//zhidao.baidu.com/search?ct=17&pn=0&tn=ikaslist&rn=10&word=mlvpk.com.cn" target="_blank"></a> <a href="//music.baidu.com/search?key=xwqom.com.cn" target="_blank"></a> <a href="//image.baidu.com/i?ct=201326592&cl=2&nc=1&lm=-1&st=-1&tn=baiduimage&istype=2&fm=&pv=&z=0&ie=utf-8&word=oxqau.com.cn" target="_blank"></a> <a href="//map.baidu.com/?newmap=1&ie=utf-8&s=oicsy.com.cn" target="_blank"></a> <a href="//baike.baidu.com/search/none?word=jhfgo.com.cn" target="_blank"></a> <a href="//wenku.baidu.com/search?fr=bk&word=dygyx.com.cn&lm=0&od=0&ie=utf-8" target="_blank"></a> <a href="//so.iqiyi.com/so/q_ucoj.com.cn" target="_blank"></a> <a href="//v.baidu.com/v?word=ebou.com.cn&fr=video" target="_blank"></a> <a href="//www.1905.com/search/?type=film&q=ifgh.com.cn" target="_blank"></a> <a href="//www.chinaso.com/search/pagesearch.htm?q=b4jg.com" target="_blank"></a> <a href="//search.mtime.com/search/?q=91r5.com" target="_blank"></a> <a href="//zh.wikipedia.org/w/index.php?search=7qz4.com" target="_blank"></a> <a href="//search.china.com/search.jsp?query=vmbu.com.cn" target="_blank"></a> <a href="//www.ebay.com/sch/i.html?_from=R40&_trksid=p2050601.m570.l1313.TR0.TRC0.H0.X11&_nkw=j4fy.com&_sacat=0" target="_blank"></a> <a href="//dict.baidu.com/s?wd=7h4o.com" target="_blank"></a> <a href="//so.fancai.com/cse/search?s=8811340871936118103&entry=1&q=j8hz.com" target="_blank"></a> <a href="//v.114la.com/sech-5emx.com.html" target="_blank"></a> <a href="//www.wubaiyi.com/s?wd=oywb.com.cn" target="_blank"></a> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>