protype4.php 1.7 KB

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