protype2.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. $type1id=intval($_GET[type1id]);
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="x-ua-compatible" content="ie=7" />
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  11. <title>Ñ¡ÔñÉÌÆ··ÖÀà</title>
  12. <link href="../css/pty.css" rel="stylesheet" type="text/css" />
  13. <script language="javascript">
  14. function prosx2(b,c){
  15. parent.ptype3.location="../tem/protype3.php?type1id=<?=$type1id?>&type2id="+b;
  16. parent.ptype4.location="about:blank";
  17. parent.ptype5.location="about:blank";
  18. parent.document.f1.type2id.value=b;
  19. parent.document.getElementById("type2name").innerHTML=c+" >> ";
  20. parent.document.f1.type3id.value=0;
  21. parent.document.getElementById("type3name").innerHTML="";
  22. parent.document.f1.type4id.value=0;
  23. parent.document.getElementById("type4name").innerHTML="";
  24. parent.document.f1.type5id.value=0;
  25. parent.document.getElementById("type5name").innerHTML="";
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <?
  31. if($type1id!="" && $type1id!="0"){
  32. $type1name=returntype(1,$_GET[type1id]);
  33. ?>
  34. <!--begin-->
  35. <div class="ptype2">
  36. <a href="javascript:void(0);" class="a1"><?=$type1name?> <img border="0" src="../img/jiandown.gif" width="7" height="4" /></a>
  37. <? while2("*","yjcode_type where admin=2 and type1='".$type1name."' order by xh asc");while($row2=mysql_fetch_array($res2)){?>
  38. <a href="javascript:prosx2(<?=$row2[id]?>,'<?=$row2[type2]?>');" class="a2"><?=$row2[type2]?></a>
  39. <? }?>
  40. </div>
  41. <!--end-->
  42. <? }?>
  43. </body>
  44. </html>