protype3.php 1.7 KB

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