我想把这段asp代码改成PHP的,但是不知道怎么写了
<br /><%<br />Dim i,j<br />Dim TempStr,Menu_1,Menu_2<br /><br />TempStr = "<a cursor:hand;"">系统设置</a>"<br />TempStr = TempStr & "@@<a href=""SiteSys/SiteConfig.asp"" target=""frmright"">系统基本设置</a>"<br />TempStr = TempStr & "@@<a href=""Admin/Admin_Add.asp"" target=""frmright"">管理员添加</a>"<br />TempStr = TempStr & "@@<a href=""Admin/Admin_Manage.asp"" target=""frmright"">管理员管理</a>"<br />TempStr = TempStr & "@@<a href=""Admin/Admin_ChgPass.asp"" target=""frmright"">修改登录密码</a>"<br />TempStr = TempStr & "@@<a href=""SiteSys/Admin_Message.asp"" target=""frmright"">短信接口配置</a>"<br />TempStr = TempStr & "@@<a href=""SiteSys/soft.asp"" target=""frmright"">短信软件操作管理</a>"<br /><br />TempStr = TempStr & "||<a cursor:hand;"">常见问题管理</a>"<br />TempStr = TempStr & "@@<a href=""News/News_add.asp"" target=""frmright"">添加常见问题</a>"<br />TempStr = TempStr & "@@<a href=""News/News_List.asp"" target=""frmright"">管理常见问题</a>"<br />TempStr = TempStr & "@@<a href=""Member/Lx_word.asp?act=showadd"" target=""frmright"">敏感字符管理</a>"<br /><br />TempStr = TempStr & "||<a cursor:hand;"">预约须知</a>"<br />TempStr = TempStr & "@@<a href=""SiteSys/SiteInformation.asp"" target=""frmright"">预约须知</a>"<br />TempStr = TempStr & "@@<a href=""SiteSys/userreg.asp"" target=""frmright"">注册会员管理</a>"<br />TempStr = TempStr & "@@<a href=""SiteSys/tel.asp"" target=""frmright"">短信群发</a>"<br /><br />TempStr = TempStr & "||<a cursor:hand;"">预约门诊</a>"<br />TempStr = TempStr & "@@<a href=""outpatient/outpatientType.asp"" target=""frmright"">门诊类型</a>"<br />TempStr = TempStr & "@@<a href=""outpatient/department_Add.asp"" target=""frmright"">科室添加</a>"<br />TempStr = TempStr & "@@<a href=""outpatient/type1_up.asp"" target=""frmright"">科室导入</a>"<br />TempStr = TempStr & "@@<a href=""outpatient/department_List.asp"" target=""frmright"">科室管理</a>"<br />TempStr = TempStr & "@@<a href=""outpatient/experts_Add.asp"" target=""frmright"">专家添加</a>"<br />TempStr = TempStr & "@@<a href=""outpatient/experts_List.asp"" target=""frmright"">专家管理</a>"<br />TempStr = TempStr & "@@<a href=""outpatient/jijie.asp"" target=""frmright"">季节时间管理</a>"<br /><br />Menu_1 = Split(TempStr , "||")<br />For i = 0 To Ubound(Menu_1)<br /> Menu_2 = Split(Menu_1(i) , "@@")<br /> <br />%><br /> <li id="menu_<%=i%>" onMouseOver="Menus.Show(this,0)" onMouseOut="Menus.Hide(0);" onClick="getleftbar(this);"><br /> <table border="0" cellspacing="0" cellpadding="0"><br /> <tr><br /> <td height="23" valign="bottom"><%=Menu_2(0)%></td><br /> <td width="6" height="23"></td><br /> <td width="3" height="23"><img src="skins/images/menu01_right.gif" style="max-width:90%" style="max-width:90%" / alt="小弟我想把这段asp代码改成PHP的,但是不知道如何写了" ></td><br /> </tr><br /> </table><br /> <div class="menu_childs"><br /> <ul><br /><%<br /> For j = 1 To Ubound(Menu_2)<br /> Response.Write "<li>"& Menu_2(j) &"</li>"<br /> Next<br />%><br /> </ul><br /> </div><br /> </li><br /><%<br />Next<br />%><br /> </ul><br /> </div><br /> </div><br /></div><br /><div class="top_table_2"></div><br />%><br />把这段asp代码改成PHP,但是我不知道改怎么去写了,应该用数组可以实现吧,这是个菜单选项。这是效果图
<?php <br />$TempStr.= "<a>系统设置</a>";<br>$TempStr.= "@@<a>系统基本设置</a>";<br>$TempStr.= "@@<a>管理员添加</a>";<br>$TempStr.= "@@<a>管理员管理</a>";<br>$TempStr.= "@@<a>修改登录密码</a>";<br>$TempStr.= "@@<a>短信接口配置</a>";<br>$TempStr.= "@@<a>短信软件操作管理</a>";<br><br>$TempStr.= "<br><font color="#FF8000">------解决方案--------------------</font><br><a>常见问题管理</a>";<br>$TempStr.= "@@<a>添加常见问题</a>";<br>$TempStr.= "@@<a>管理常见问题</a>";<div class="clear"> </div>