我能编辑啊!
切.
<LABEL>
创建词条编辑实验</LABEL>
<!--ad start --><!--ad end --><SCRIPT src="js/popWindow.js" type=text/javascript></SCRIPT><SCRIPT type=text/javascript> function verifydoc(){ title=$.trim($('#title').val()); if(title==""){ $('#response').html('<label style="color:#FF0000">词条名称不能为空!</label>'); }else if(title.length>80){ $('#response').html('<label style="color:#FF0000">词条名称不能超过80个汉字或字母!</label>'); }else{ $.ajax({ url: "index.php?doc-verify", cache: false, dataType: "xml", type:"post", //async:false, data: {title:title}, success: function(xml){ var message=xml.lastChild.firstChild.nodeValue; if(message=='1'){ $('#response').html('<label>词条 "'+title+'" 可以创建!</label>'); }else if(message=='-1'){ $('#response').html('<label style="color:#FF0000">词条 "'+title+'" 含有违禁词!</label>'); }else if(message=='-2'){ $('#response').html('<label style="color:#FF0000">词条 含有危险代码</label>'); }else if(message.length>'3'){ var message=$.trim(message).split(/ +/); $('#response').html('<label style="color:#FF0000">词条"'+title+'"是
"'+message[1]+'"的同义词。</label>'); }else{ $('#response').html('<label style="color:#FF0000">词条 "'+title+'" 已经存在!</label>'); } } }); } } function docheck(){ title=$.trim($('#title').val()); if(title==""){ $('#response').html('<label style="color:#FF0000">词条名称不能为空!</label>'); return false; } return true; } var catevalue = { input:null, scids:new Array(), scnames:new Array(), ajax:function(cateid, E){ if(!cateid)cateid=0 $.ajax({ url: 'index.php?category-ajax-'+cateid, cache: false, dataType: "xml", type:"get", success: function(xml){ var message=xml.lastChild.firstChild.nodeValue; if($('#dialog_category:visible').size()){ $.dialog.content('category', ''+message+'
'); catevalue.selectCategory(); }else{ $.dialog({ id:'category', title:'词条分类', content: ''+message+'
', height:450, width:680, position:'c', resizable:0, resetTime:0, onOk:function(){ $.dialog.close('category'); catevalue.ok(); }, callback:function(){ catevalue.selectCategory(); }, styleContent:{'text-align':'left', 'overflow-y':'scroll', 'padding-right':'0', height:'380px'}, styleOk:{'font-size':'14px','line-height':'20px', 'padding':'2px 6px 1px','margin-right':'3px'} }); } } }); }, cateOk:function(id,title,handle){ var point; if(handle){ this.scids.push(id); this.scnames.push(title); }else{ for(i=0;i<this.scids.length;i++){ if(this.scids
==id){ point=i; } } this.scids.splice(point,1); this.scnames.splice(point,1); } catevalue.pushCategory() }, pushCategory:function(){ $('#category').val(this.scids.toString()); $('#scnames').text(this.scnames.toString()); $('#columntitle').html(catevalue.getCatUrl()); }, getCatUrl:function(){ var catstring=''; for(i=0;i<this.scids.length;i++){ catstring=catstring+''+this.scnames+','; } catstring=catstring.substring(0, catstring.length-1); return catstring; }, selectCategory:function(){ var cb=$(":checkbox"); catevalue.pushCategory(); for(i=0;i<cb.length;i++){ if(catevalue.inArray(cb.id, this.scids)){ cb.checked = true; } } }, inArray:function(stringToSearch, arrayToSearch) { for (s = 0; s <arrayToSearch.length; s++) { if (stringToSearch == arrayToSearch) { return true; } } return false; }, removeCateTree:function(){ $('#flsx').hide(); }, ok:function(){ $('#flsx').hide(); }, init:function(){ if(''!=''){ this.scids.push(); this.scnames.push(''); } } } function openclose(obj){ var patrn=/close.gif$/; var s=obj.src; var id=obj.id; if(patrn.test(s)){ obj.src='style/default/open.gif'; var t=$('#'+id).find("dd"); t.show(); }else{ obj.src='style/default/close.gif'; var t=$('#'+id).find("dd"); t.hide(); } } catevalue.init();</SCRIPT>按字母顺序浏览: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
<FORM id=form1 name=form1 onsubmit="return docheck();" action=doc-create.html method=post>渥太华百科 >> 创建词条
创建词条
- 词条名称: <INPUT class=reg-inp id=title onblur=verifydoc(); maxLength=80 name=title> <LABEL id=response></LABEL><INPUT id=category type=hidden name=category>
- 词条分类: <INPUT class="chose m-r8" onclick=javascript:catevalue.ajax(0,this); type=button value=选择/修改 name=Button2> 请为您要创建的词条选择一个合适的分类。
- 已选择分类:
- <INPUT style="DISPLAY: none" name=hdwiki><INPUT class=btn_inp type=submit value=创建词条 name=create_submit>
</FORM>词条标准规范:
- 不可以是带修饰词的陈述性词语
- 不可以是短语或句子
- 不可以是讨论的话题
- 不可以含有特殊符号和空格
- 不可以含有错别字
- 英译词必须是全称
- 新闻类、技巧类文章不能做为百科词条
<!--ad start --><!--ad end -->
Copyright @ HDWiKi V 5.0 ©2005-2010 hudong
<LABEL>Processed in 0.028844 second(s), 4 queries.</LABEL> <LABEL><SCRIPT type=text/javascript> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-426936-7']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();</SCRIPT></LABEL>
当前时区GMT-5 现在时间是 02-27 13:56
- 清除Cookies
- 联系我们
- TOP
- <SELECT onchange="javascript:window.location='http://www.comefromchina.org/index.php?index-settheme-'+this.value" name=style> <OPTION value=default selected>默认风格</OPTION></SELECT>