<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="swfupload.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../style/js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="swfupload.js"></script>
    <script type="text/javascript" src="handler.js"></script>
    <script type="text/javascript">
        var thumbs = true;
        var swfu;   //上传控件
        window.onload = function () {
            swfu = new SWFUpload({
                file_size_limit: "2048",	              // 允许上传的文件大小

                file_types: "*.jpg;*.jpeg;*.gif;*.png;*.bmp;",
                file_types_description: "Images(*.jpg;*.jpeg;*.gif;*.png;*.bmp;)",
                file_upload_limit: "0",                   //允许上传文件数 0为不限制

                flash_url: "swfupload.swf",         //Flash文件路径
                upload_url: "swfupload.aspx",       //上传提交路径
                file_post_name: "Filedata",

                post_params: {  //提交处理参数,用于判断是否站内提交过去
                    "ASPSESSID": "f5i591m5lc2fah8bf2bvla2i23",
                    "Thumbs": "true"
                },

                file_dialog_complete_handler: fileDialogComplete,   //选择上传开始事件
                upload_start_handler: uploadStart,          //文件开始上传事件
                upload_progress_handler: uploadProgress,    //上传进度条返回
                upload_error_handler: uploadError,          //上传出错事件
                upload_success_handler: uploadSuccess,      //上传成功返回事件
                upload_complete_handler: uploadComplete,    //全部上传完成事件

                button_image_url: "selectfilescn.png",      //按钮背景图片
                button_text: '',    //按钮显示文本样式
                button_placeholder_id: "spanButtonPlaceholder",
                button_width: 72,
                button_height: 23,
                button_text_style: '',  //按钮css样式
                button_text_top_padding: 0,
                button_text_left_padding: 0,
                button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
                button_cursor: SWFUpload.CURSOR.HAND,
                debug: false
            });
        };        
    </script>
</head>
<body>
    <div id="divtools">
        <div id="divupload">
            <form action="" method="post" enctype="multipart/form-data">
                <span id="spanButtonPlaceholder"></span>
            </form>
        </div>
        <div id="divedit">
            <input type='button' value='远程图片' onclick='window.parent.CmsData.UpFiles.OpenImages(QueryString("id"))' />
        </div>
        <div id="divdelete">
            <input type='button' value='删除图片' onclick='window.parent.CmsData.UpFiles.DeleteImages(QueryString("id"))' />
        </div>
        <div id="divstate" class="divstate">
            <div id="divstatehtml"></div>
            <div id="divstatebg"></div>
        </div>
    </div>
</body>
</html>
