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