q2.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?><script>
  7. function AddFj(str)
  8. {var r;
  9. var a;
  10. a=document.add.softfj.value;
  11. r=a.split(str);
  12. if(r.length!=1)
  13. {return true;}
  14. document.add.softfj.value+="/"+str;
  15. }
  16. function DelFj(str)
  17. {
  18. var a;
  19. a=document.add.softfj.value;
  20. document.add.softfj.value=a.replace("/"+str,"");
  21. }
  22. </script>
  23. <table width=100% align=center cellpadding=3 cellspacing=1 class="tableborder">
  24. <tr>
  25. <td width=16% height=25 bgcolor=ffffff>软件名称(*)</td>
  26. <td bgcolor=ffffff><input name="title" type="text" size="42" value="<?=$ecmsfirstpost==1?"":DoReqValue($mid,'title',stripSlashes($r[title]))?>">
  27. </td>
  28. </tr>
  29. <tr>
  30. <td width='16%' height=25 bgcolor='ffffff'>关键字</td>
  31. <td bgcolor='ffffff'>
  32. <input name="keyboard" type="text" size=42 value="<?=stripSlashes($r[keyboard])?>">
  33. <font color="#666666">(多个请用&quot;,&quot;隔开)</font>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td width=16% height=25 bgcolor=ffffff>软件预览图</td>
  38. <td bgcolor=ffffff><input type="file" name="titlepicfile" size="45">
  39. </td>
  40. </tr>
  41. <tr>
  42. <td width=16% height=25 bgcolor=ffffff>软件作者</td>
  43. <td bgcolor=ffffff><input name="softwriter" type="text" id="softwriter" value="<?=$ecmsfirstpost==1?"":DoReqValue($mid,'softwriter',stripSlashes($r[softwriter]))?>" size="42">
  44. </td>
  45. </tr>
  46. <tr>
  47. <td width=16% height=25 bgcolor=ffffff>厂商主页</td>
  48. <td bgcolor=ffffff><input name="homepage" type="text" id="homepage" value="<?=$ecmsfirstpost==1?"http://":DoReqValue($mid,'homepage',stripSlashes($r[homepage]))?>" size="42">
  49. </td>
  50. </tr>
  51. <tr>
  52. <td width=16% height=25 bgcolor=ffffff>系统演示</td>
  53. <td bgcolor=ffffff><input name="demo" type="text" id="demo" value="<?=$ecmsfirstpost==1?"http://":DoReqValue($mid,'demo',stripSlashes($r[demo]))?>" size="42">
  54. </td>
  55. </tr>
  56. <tr>
  57. <td width=16% height=25 bgcolor=ffffff>运行环境</td>
  58. <td bgcolor=ffffff><input name="softfj" type="text" id="softfj" value="<?=$ecmsfirstpost==1?"":DoReqValue($mid,'softfj',stripSlashes($r[softfj]))?>" size="42">
  59. </td>
  60. </tr>
  61. <tr>
  62. <td height=25 bgcolor=ffffff>&nbsp;</td>
  63. <td bgcolor=ffffff><input type=checkbox name=check value='Win9X/Me' onclick="if(this.checked){AddFj(this.value);}else{DelFj(this.value);}">
  64. Win9X/Me&nbsp; <input type=checkbox name=check value='WinNT/2000/XP' onclick="if(this.checked){AddFj(this.value);}else{DelFj(this.value);}">
  65. WinNT/2000/XP&nbsp; <input type=checkbox name=check value='Unix' onclick="if(this.checked){AddFj(this.value);}else{DelFj(this.value);}">
  66. Unix&nbsp; <input type=checkbox name=check value='Linux' onclick="if(this.checked){AddFj(this.value);}else{DelFj(this.value);}">
  67. Linux&nbsp; <input type=checkbox name=check value='DOS' onclick="if(this.checked){AddFj(this.value);}else{DelFj(this.value);}">
  68. DOS&nbsp; <input type=checkbox name=check value='MAC OS' onclick="if(this.checked){AddFj(this.value);}else{DelFj(this.value);}">
  69. MAC OS&nbsp; <input type=checkbox name=check value='Other' onclick="if(this.checked){AddFj(this.value);}else{DelFj(this.value);}">
  70. Other</td>
  71. </tr>
  72. <tr>
  73. <td width=16% height=25 bgcolor=ffffff>软件属性</td>
  74. <td bgcolor=ffffff>软件语言:<select name="language" id="language"><option value="简体中文"<?=$r[language]=="简体中文"?' selected':''?>>简体中文</option><option value="繁体中文"<?=$r[language]=="繁体中文"?' selected':''?>>繁体中文</option><option value="英文"<?=$r[language]=="英文"?' selected':''?>>英文</option><option value="多国语言"<?=$r[language]=="多国语言"?' selected':''?>>多国语言</option></select>,软件类型:<select name="softtype" id="softtype"><option value="国产软件"<?=$r[softtype]=="国产软件"?' selected':''?>>国产软件</option><option value="汉化软件"<?=$r[softtype]=="汉化软件"?' selected':''?>>汉化软件</option><option value="国外软件"<?=$r[softtype]=="国外软件"?' selected':''?>>国外软件</option></select>,授权形式:<select name="softsq" id="softsq"><option value="共享软件"<?=$r[softsq]=="共享软件"?' selected':''?>>共享软件</option><option value="免费软件"<?=$r[softsq]=="免费软件"?' selected':''?>>免费软件</option><option value="自由软件"<?=$r[softsq]=="自由软件"?' selected':''?>>自由软件</option><option value="试用软件"<?=$r[softsq]=="试用软件"?' selected':''?>>试用软件</option><option value="演示软件"<?=$r[softsq]=="演示软件"?' selected':''?>>演示软件</option><option value="商业软件"<?=$r[softsq]=="商业软件"?' selected':''?>>商业软件</option></select></td>
  75. </tr>
  76. <tr>
  77. <td width=16% height=25 bgcolor=ffffff>文件</td>
  78. <td bgcolor=ffffff>文件类型:<input name="filetype" type="text" id="filetype" value="<?=$ecmsfirstpost==1?"":DoReqValue($mid,'filetype',stripSlashes($r[filetype]))?>" size="10">
  79. <select name="select2" onchange="document.add.filetype.value=this.value">
  80. <option value="">类型</option>
  81. <option value=".zip">.zip</option>
  82. <option value=".rar">.rar</option>
  83. <option value=".exe">.exe</option>
  84. </select>,文件大小:<input name="filesize" type="text" id="filesize" value="<?=$ecmsfirstpost==1?"":DoReqValue($mid,'filesize',stripSlashes($r[filesize]))?>" size="10">
  85. <select name="select" onchange="document.add.filesize.value+=this.value">
  86. <option value="">单位</option>
  87. <option value=" MB">MB</option>
  88. <option value=" KB">KB</option>
  89. <option value=" GB">GB</option>
  90. <option value=" BYTES">BYTES</option>
  91. </select></td>
  92. </tr>
  93. <tr>
  94. <td width=16% height=25 bgcolor=ffffff>上传软件(*)</td>
  95. <td bgcolor=ffffff><input type="file" name="downpathfile" size="45">
  96. </td>
  97. </tr>
  98. <tr>
  99. <td width=16% height=25 bgcolor=ffffff>软件简介(*)</td>
  100. <td bgcolor=ffffff><textarea name="softsay" cols="60" rows="10" id="softsay"><?=$ecmsfirstpost==1?"":DoReqValue($mid,'softsay',stripSlashes($r[softsay]))?></textarea>
  101. </td>
  102. </tr>
  103. </table>