如何优化这段代码,在线等待
if instr(path,("总经理"))>0 then
response.write("<input type='button' name='Button2'value='上传文件' class='bt1' style='width:60;height:19' onclick='upload();'>")
else
……'中间部份略去
if instr(path,("path/财务部"))>0 then
response.write("<input type='button' name='Button2'value='上传文件' class='bt1' style='width:60;height:19' onclick='upload();'>")
else
……'中间部份略去
if instr(path,("path/总经理"))>0 then
response.write("<input type='button' name='Button2'value='上传文件' class='bt1' style='width:60;height:19' onclick='upload();'>")
else
……
if instr(path,("path/财务部"))>0 then
response.write("<input type='button' name='Button2'value='上传文件' class='bt1' style='width:60;height:19' onclick='upload();'>")
else
response.Write("<input type='button' name='Button2' value='无权上传' class='bt1' style='width:60;height:19'>")
end if
注:
if instr(path,("总经理"))>0 then
if instr(path,("path/总经理"))>0 then
不同在于path,请高手救命!