<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Rising Sun

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      148 隨筆 :: 0 文章 :: 22 評論 :: 0 Trackbacks

    <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>文件上載</title>
    <script>
    //可以上傳的文件類形

    function filetype(){
    ? ?var sTheFile = document.forms[0].pic.value;
    ?var? filename? = document.forms[0].filename;
    ??var sFileName = sTheFile.substring(sTheFile.lastIndexOf("\\") + 1);
    ?var Name=sFileName.substring(sFileName.indexOf(".")+1).toLowerCase();
    ?var ext = new Array('jpg','jpeg','png','gif','bmp','ico');
    ?for (var i=0 ;i<ext.length; i++){
    ??if( Name == ext[i]){
    ??filename.value = sFileName;
    ??//alert(filename.value)
    ??return true;
    ??}
    ?}
    ?alert("上傳文件格式不正確!");
    ?document.getElementById("div1").innerHTML='<input type="file" name="pic" id="pic" value="" onChange="filetype()">'
    ?return false;
    ?
    }
    //驗證表單
    function checkValue(){
    ?var sJbr = document.forms[0].jbr.value;
    ?var sSelect = document.forms[0].select.options(document.forms[0].select.selectedIndex).value;
    ?var sContent = document.forms[0].content.value;
    ?var sTheFile = document.forms[0].pic.value;
    ?if (sJbr =="" ||sJbr == null){
    ?alert("請填寫舉報人!");
    ?return? false;
    ?}
    ?if (sSelect =="" ||sSelect == null){
    ?alert("請選擇分局!");
    ?return? false;
    ?}
    ?if (sContent =="" ||sContent == null){
    ?alert("請填寫缺陷!");
    ?return? false;
    ?}
    ?if (sTheFile =="" ||sTheFile == null){
    ?alert("缺陷截圖不能為空!");
    ?return? false;
    ?}
    ?
    ?
    ?
    }

    </script>

    ?

    </head>
    <body>
    <form action="/report/servlet/BugFeed" onSubmit="return checkValue()" enctype="MULTIPART/FORM-DATA" method=post>
    ? <p>舉報人:
    ??? <input type="text" name="jbr" onBlur="checkValue()">
    </p>
    ? <p>分局:
    ??? <select name="select">
    ??????? <option value="">請選擇分局</option>
    ??????? <option value="城東局">城東局</option>
    ??????? <option value="城南局">城南局</option>
    ??????? <option value="城西局">城西局</option>
    ??????? <option value="城北局">城北局</option>
    ??<option value="其它">其它</option>
    ????? </select>
    ? </p>
    ? <p>描述缺陷:?
    ??? <textarea name="content"></textarea>
    ? </p>
    ? <p>選擇要上載的圖片:
    ??? <div id="div1"><input type="file" name="pic" id="pic" value="" onChange="filetype()"></div>
    ? </p>
    ? <input type="hidden" value="" name="filename" id="filename">
    ? <p>
    ??? <input type=submit value="Upload">
    ???
    ????????? </p>
    </form>
    </body>
    </html>

    posted on 2006-07-14 15:09 brock 閱讀(592) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: jzzijzzij在线观看亚洲熟妇| 中文字幕无码毛片免费看| 免费在线观看亚洲| 国产黄片不卡免费| 亚洲国产成人在线视频| 国产91在线免费| 久久国产精品2020免费m3u8| 亚洲中文无码卡通动漫野外| 亚洲AV无码一区二区三区性色 | 日韩毛片无码永久免费看| 丁香六月婷婷精品免费观看| 亚洲一区综合在线播放| 免费国产成人高清视频网站| 最近中文字幕大全中文字幕免费 | 亚洲GV天堂无码男同在线观看| 亚洲无码精品浪潮| xxxxx免费视频| 国产大陆亚洲精品国产| 亚洲视频在线观看视频| 免费播放春色aⅴ视频| 中文字幕亚洲免费无线观看日本 | 国产在线观看免费完整版中文版| a毛片在线免费观看| 亚洲AV永久无码精品网站在线观看| 亚洲精品色午夜无码专区日韩| 国产精品免费小视频| 无码人妻精品中文字幕免费 | 亚洲国产综合人成综合网站| 最近2019中文字幕免费大全5| 另类专区另类专区亚洲| 亚洲综合无码一区二区三区| 日韩一卡2卡3卡4卡新区亚洲| 午夜视频在线在免费| 1000部国产成人免费视频| 三级黄色免费观看| 国产精品亚洲专区在线播放| 亚洲精品一卡2卡3卡三卡四卡| 亚洲av综合avav中文| 亚洲天堂在线视频| 国产美女被遭强高潮免费网站| 免费可以看黄的视频s色|