Edit D:\rfid\libsystem\page\common\js\global_pinyin.js
var pinyinController=function(){};var _pyConvertListData=undefined;pinyinController.prototype.tagdata=function(d,a,k,b,f){if(a&&a!="save"){var e=cataConfigData.position;var j=cataConfigData.pyfld;for(var c=b;c<a.length;c++){if(k[f].field==a[c].field){var h=getDataDirect(d,j);if(!h){if(e=="0"){var g=getDataDirect(d,a[c].code);d=d.replace(g,g+"$"+j+a[c].pyval)}if(e=="1"){d+="$"+j+a[c].pyval}b++;break}}}}return d};pinyinController.prototype.pyfun=function(l){var a=[{fld:"200",code:"a"},{fld:"7**",code:"a"}];var h=cataConfigData.pyfld;var d=[];for(var e=0;e<l.length;e++){var b=l[e].field.substring(0,1);for(var c=0;c<a.length;c++){var f=getDataDirect(l[e].data,h);if(f){continue}var g=getDataDirect(l[e].data,a[c].code);var k={};if(l[e].field==a[c].fld||(a[c].fld=="7**"&&b=="7")){k.code=a[c].code;k.field=l[e].field;k.subval=g;d.push(k)}}}pinyinController.prototype.getPy(d,0)};pinyinController.prototype.getPy=function(d,b){if(b<d.length){var a=base_path+"par/common/getPinyin.do";var e={};var c=[];e.content=d[b].subval;if(e.content&&e.content.length>0){e.tone=getValue("page_tone");$.post(a,e,function(f){if(f.status=="0"&&f){c=f.rows}d[b].rows=c;b+=1;pinyinController.prototype.getPy(d,b)},"json")}else{d[b].rows=c;b+=1;pinyinController.prototype.getPy(d,b)}}else{pinyinController.prototype.showPy(d)}};pinyinController.prototype.showPy=function(d){var g="";_pyConvertListData=d;for(var f=0;f<d.length;f++){var q=d[f].field+d[f].code;var r=d[f].rows;var l="";var k="";var e="";for(var b=0;b<r.length;b++){var h=r[b].py;var n=r[b].ch;var m="";if(h.length==0){m=n}else{if(h.length==1){m=h[0]}else{if(h.length>1){var c=q+"_"+f+"_"+b;m=h[0];n="<span style='color:red;'>"+r[b].ch+"</span>";e+='<div class="div-py-record clearfix">';e+="<label>"+n+"</label>";for(var a=0;a<h.length;a++){var o="";if(a==0){o="checked"}e+='<label><input type="radio" class="py-index-postion" name="'+c+'" value="'+h[a]+'" '+o+"/>"+h[a]+"</label>"}e+="</div>"}}}k+=m;l+=n}if(e.length>0){g+="<tr>";g+="<td>"+q+"</td>";g+="<td>";g+=l;g+="</td>";g+="<td>"+e+"</td>";g+="</tr>"}}if(g.length>0){$(".py-body-list").html(g);$("#pyDlg").dialog("open")}else{pinyinController.prototype.savePy()}};pinyinController.prototype.savePy=function(){var b={};var e=_pyConvertListData;_pyConvertListData=undefined;var a=[];for(var f=0;f<e.length;f++){var m=e[f].field+e[f].code;var o=e[f].rows;var h="";for(var c=0;c<o.length;c++){var g=o[c].py;var l=o[c].ch;var k="";if(g.length==0){k=l}else{if(g.length==1){k=g[0]}else{if(g.length>1){var d=m+"_"+f+"_"+c;var k=$('input:radio[name="'+d+'"]:checked').val()}}}h+=k+" "}var n={};n.field=e[f].field;n.code=e[f].code;n.subval=e[f].subval;n.pyval=h;a.push(n)}bibController.prototype.save(a);$("#pyDlg").dialog("close")};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de