<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title></title>
<link href="base/themes/blue/main.css" rel="stylesheet" type="text/css">
<script language="javascript">
</script>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
a:link {
text-decoration: none;
color: #1A4771;
}
a:visited {
text-decoration: none;
color: #1A4771;
}
a:hover {
text-decoration: underline;
color: #0B63AA;
}
a:active {
text-decoration: none;
color: #1A4771;
}
.selectedTab {
color: #FFFFFF;
font-weight: bold;
}
.oneMenuCtn{
behavior: expression("url(base/htc/menu.htc)");
}
-->
</style>
<script type="text/javascript">
<!--
function mainMainMainShowHideMenuFrame(){
mainMainMainLeftFrame.style.display=mainMainMainLeftFrame.style.display=="none"?"block":"none";
if(mainMainMainLeftFrame.style.display=="none")
mainMainmainMainMainLeftFrameInd.src="images2/image/ll1.png";
else
mainMainmainMainMainLeftFrameInd.src="images2/image/rl1.png";
}
function mainMainMainShowHideMsgFrame(){
mainMainMainLeftMsgFrame.style.display=mainMainMainLeftMsgFrame.style.display=="none"?"block":"none";
if(mainMainMainLeftMsgFrame.style.display=="none")
mainMainMainLeftMsgFrameInd.src="images2/image/xia.png";
else
mainMainMainLeftMsgFrameInd.src="images2/image/shang.png";
}
-->
</script>
<script type="text/javascript">
<!--
function mainMenuSecond(node){
if(node==null)
return "";
var html="";
while(node!=null){
var n;
if(node.nextSibling==null)
n="└";
else
n="├";
if(node.tagName=="menu_node")
html+="<tr _level='2' style='display:none'><td> </td><td><span _kind='simg'>"+n+"</span></td><td colspan='48' nowrap align='left'><span _kind='slabel' _thirdItems=\""+mainMenuThird(node)+"\" style='cursor:hand'>"+node.getAttribute("name")+"</span></td></tr>";
node=node.nextSibling;
}
return html;
}
function mainMenuThird(node){
var child=node.firstChild;
var html="";
while(child!=null){
if(child.tagName=="menu_node")
html+=child.getAttribute("name")+","+mainMenuUrl(child)+";";
child=child.nextSibling;
}
if(html=="")
html=node.getAttribute("name")+","+mainMenuUrl(node)+";";
if(html.length>0&&html.substr(html.length-1)==";")
html=html.substr(0,html.length-1);
return html;
}
function mainMenuUrl(node){
var ps=node.getElementsByTagName("page");
if(ps.length==0)
return "";
return ps[0].getAttribute("src");
}
function mainMenuInitFun(div){
var spans=div.getElementsByTagName("span");
for(var i=0;i<spans.length;i++){
spans[i]["_div"]=div;
if(spans[i]["_kind"]=="fimg"){
var img=spans[i].firstChild;
img.onclick=img.ondblclick=function(){
var tr=this;
while(tr.tagName.toLowerCase()!="tr")
tr=tr.parentNode;
mainMenuShowHideChild(tr);
}
}else if(spans[i]["_kind"]=="flabel"){
spans[i].onclick=function(){
var tr=this;
while(tr.tagName.toLowerCase()!="tr")
tr=tr.parentNode;
mainMenuShowHideChild(tr);
mainMenuClickLabel(this);
}
}else if(spans[i]["_kind"]=="simg"){
}else if(spans[i]["_kind"]=="slabel"){
spans[i].onclick=function(){
mainMenuShowThiredMenu(this._thirdItems,0);
mainMenuClickLabel(this);
}
if(mainMenuInitClick==null)
mainMenuInitClick=spans[i];
}
}
}
function mainMenuClickLabel(span){
if(span["_div"]["_selLabel"]!=null)
span["_div"]["_selLabel"]["style"]["background"]=span["_div"]["_selLabel"]["_oldColor"];
span["_oldColor"]=span["style"]["background"];
span["style"]["background"]="#0066FF";
span["_div"]["_selLabel"]=span;
}
function mainMenuShowHideChild(tr){
var imgs=tr.getElementsByTagName("img");
if(tr["_state"]=="o"){
imgs[0].src=imgs[0]["_imgC"];
tr["_state"]="c"
}else{
imgs[0].src=imgs[0]["_imgO"];
tr["_state"]="o"
}
var c=tr.nextSibling;
while(c!=null){
if(c["_level"]=="2"){
c.style.display=(c.style.display=="none"?"block":"none");
}else
return ;
c=c.nextSibling;
}
}
function mainMenuShowThiredMenu(items,selIndex){
if(items.length==0){
alert("菜单配置有问题!");
return ;
}
var html="";
html+="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
html+=" <tr>";
var arrayItems=items.split(";");
var label,url;
for(var i=0;i<arrayItems.length;i++){
label=arrayItems[i].split(",")[0];
url=arrayItems[i].split(",")[1];
if(selIndex==i){
html+="<td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
html+=" <tr><td><img src=\"images2/image/bt1.png\" width=\"10\" height=\"22\"></td>";
html+="<td background=\"images2/image/bt2.png\" class=\"selectedTab\">"+label+"</td>";
html+="<td><img src=\"images2/image/bt3.png\" width=\"10\" height=\"22\"></td>";
html+=" </tr> </table></td>";
mainMainMainMainMainIFrame.document.location=url;
}else{
html+="<td style='cursor:hand' onclick=\"mainMenuShowThiredMenu('"+items+"',"+i+")\"> "+label+" </td>";
}
}
html+="</tr></table>";
mainMainMainThirdMenuTable.innerHTML=html;
}
function mainMainInitModeleSelect(){
var strLocation = new String(window.location);
strLocation = strLocation.replace(/^[^\?]*\?/g,'');
var strLocationA=strLocation.split(";");
var srcTree = new ActiveXObject("Microsoft.XMLDOM");
srcTree.async=false;
window.xmlhttp.post("login", "<user><subfunction>module</subfunction></user>")
var str = window.xmlhttp._object.responseText
srcTree.loadXML(str);
var nodes = srcTree.documentElement.getElementsByTagName("module");
if(nodes.length==0)
return ;
var html="<select id='mainMainMainFirstSelectSel' onchange='mainMainModuleSelectChange(this.value)'>";
var sel="";
for(var i=0;i<nodes.length;i++){
if(strLocationA[0]==nodes[i].getAttribute("id"))
sel=" selected "
else
sel="";
html+="<option "+sel+" value=\""+nodes[i].getAttribute("id")+"\" >"+nodes[i].getAttribute("name")+"</option>"
}
html+="</select>";
mainMainMainFirstSelect0.innerHTML=html;
var sel=document.getElementById("mainMainMainFirstSelectSel").value;
if(typeof(mainMainModuleSecondSql[sel])!="undefined"){
mainMainInitParaSelect(sel,mainMainModuleSecondSql[sel]);
mainMainMainFirstSelect1.style.display="block";
}
}
var mainMainModuleSecondSql= {"acct":"acct_year_lists",
"drug":"drug_house_lists",
"budg":"budg_years_lists"
};
function mainMainModuleSelectChange(sel){
if(typeof(mainMainModuleSecondSql[sel])!="undefined"){
mainMainInitParaSelect(sel,mainMainModuleSecondSql[sel]);
mainMainMainFirstSelect1.style.display="block";
}else{
mainMainModuleSelected(sel,null);
mainMainMainFirstSelect1.style.display="none";
}
}
function mainMainInitParaSelect(modu,sql){
var strLocation = new String(window.location);
strLocation = strLocation.replace(/^[^\?]*\?/g,'');
var strLocationA=strLocation.split(";");
var ppp="";
if(strLocationA.length>0){
for(var i=1;i<strLocationA.length;i++)
ppp+=strLocationA[i]+";";
ppp=ppp.substr(0,ppp.length-1);
}
var root=getDict(sql).documentElement;
var nodes=root.getElementsByTagName("para");
if(nodes.length==0)
return ;
var html="<select onchange=\"mainMainModuleSelected('"+modu+"',this.value)\"><option value='MMMMP'>模块参数</option>";
var sel="";
for(var i=0;i<nodes.length;i++){
if(ppp==nodes[i].getAttribute("code"))
sel=" selected "
else
sel="";
html+="<op