<%@ Import Namespace="Spaces" %>
<%@ Control Language="C#" ClassName="DiskTools" %>
<%@ Register Assembly="Controls" Namespace="Spaces.Controls" TagPrefix="cc1" %>
<%@ Register TagPrefix="skm" Namespace="Xiaoxiao.WebUI" Assembly="Xiaoxiao.WebUI" %>
<skm:Form id="uploadForm" name="uploadForm" method="post" runat="server" enctype="multipart/form-data">
    <table width="779" height="600" cellspacing="0" id="toppage">
        <tr>
            <td width="100%" valign="top">
                <div name="SpaceTemplateRegion">
                    <table cellspacing="2" cellpadding="0" width="778" id="dlayoutManager" class="ClassicTwoCol">
                        <tr>
                            <td id="MainFocus" runat="server" valign="top" istarget="true" width="558" class="ZigZagSpanFirst">
                                <xiaoxiao:part id="FolderTools" multiinstance="False" class="FullRegionWidth" placement="Anywhere"
                                    movable="True">
           <div id="Div1" class="blog_dragDiv">
    <table cellspacing="0" class="pheader" border="0" style="width: 100%" height="22">
        <tr>
            <td class="mod_tlc" width="6" nowrap>&nbsp;
                </td>
            <td width="100%" class="modhead">
                <table cellspacing="0" width="100%" class="fixedTable partheader" style="width: 100%">
                    <tr>
                        <td id="Td1" class="bold ellipse partDetail" nowrap>
                            <div class='ellipse'>
                               <%=Globals.Text["UserSpace_ToolBox"]%></div>
                        </td>
                        <td class="partBuffer" align="right" nowrap>
                        </td>
                    </tr>
                </table>
            </td>
            <td class="mod_trc" width="6" nowrap>&nbsp;
                </td>
        </tr>
    </table>
</div>

          <table cellspacing="0" border="0" class="partsmb">
        <tr>
            <td>
                <img src="<%=Globals.GetSkinPath() %>/images/c.gif" width="8" height="1"></td>
            <td class="bvBody">

 <!--Item--><div id="Tools">
             
               
         
                       <table border="0" cellpadding="3" cellspacing="0" width="100%">
    
    <tr>
        <td>
            <a href="javascript:this.location.reload()">
                <img src='<%=Globals.ApplicationPath %>/images/refreshiron.gif' border="0" title="刷新当前页面" alt="刷新当前页面"/></a>
            <asp:HyperLink ID="linkDiskHome" runat="server">
                <img src='<%=Globals.ApplicationPath %>/images/home_icon.gif' border="0" title="网络磁盘主目录" alt="网络磁盘主目录"/></asp:HyperLink>
            <asp:HyperLink ID="linkGoToUp" runat="server">
                <img src='<%=Globals.ApplicationPath %>/images/gotop.gif' border="0" title="上级目录"/></asp:HyperLink>
            &nbsp;&nbsp;&nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Literal ID="LimitsDes" runat="server"></asp:Literal></td>
    </tr>
    <tr><td>
     <table class="1pxtableborder" cellspacing="0" cellpadding="0" width="100%" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td height="12">
                                                                    <table cellspacing="0" cellpadding="0"  bgcolor="#ff9900" border="0" id="tabSpaceStatus" runat="server"> 
                                                                        <tbody>
                                                                            <tr>
                                                                                <td  height="12">
                                                                                </td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
    </td></tr>
    <tr>
        <td>
            <asp:Literal ID="Dirdesc" runat="server"></asp:Literal> <asp:Literal ID="spaceSizeDesc" runat="server"></asp:Literal> </td>
    </tr>
    
    <tr>
        <td>
            <table width="100%">
                <tr>
                    <td height="13">
                        <asp:Literal ID="spaceStatus" runat="server"></asp:Literal>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
     <tr>
        <td  align="left" class="bold ellipse partDetail">
            当前目录:<asp:Literal id="litCurrentDir" runat="server" /> 
            </td>
    </tr>
    
</table>
              
            </div>
                                      
                                                     <!--endItem-->
           

                                                        
                                                        
 </td></tr></table>

   </xiaoxiao:part>
                                <xiaoxiao:part id="FolderList1" multiinstance="False" class="FullRegionWidth" placement="Anywhere"
                                    movable="True">
           <div id="Div2" class="blog_dragDiv">
    <table cellspacing="0" class="pheader" border="0" style="width: 100%" height="22">
        <tr>
            <td class="mod_tlc" width="6" nowrap>&nbsp;
                </td>
            <td width="100%" class="modhead">
                <table cellspacing="0" width="100%" class="fixedTable partheader" style="width: 100%">
                    <tr>
                        <td id="Td2" class="bold ellipse partDetail" nowrap>
                            <div class='ellipse'>
                               <%=Globals.Text["UserSpace_DirList"]%></div>
                        </td>
                        <td class="partBuffer" align="right" nowrap>
                        </td>
                    </tr>
                </table>
            </td>
            <td class="mod_trc" width="6" nowrap>&nbsp;
                </td>
        </tr>
    </table>
</div>

          <table cellspacing="0" border="0" class="partsmb">
        <tr>
            <td>
                <img src="<%=Globals.GetSkinPath() %>/images/c.gif" width="8" height="1"></td>
            <td class="bvBody">

 <!--Item--> <div id="Directorys">
                <asp:DataList runat="server" ID="FolderList" CellPadding="2" Width="98%" BorderWidth="0px"
                          CaptionAlign="Left">
                        <HeaderTemplate>
                            <table align="left">
                                <tr>
                                    <td width="200" align="left">
                                        <strong>&nbsp;&nbsp;&nbsp;<%=Globals.Text["UserSpace_FileName"]%></strong></td>
                                    <td width="58">
                                        <strong><%=Globals.Text["UserSpace_Size"]%></strong></td>
                                    <td width="58">
                                        <strong><%=Globals.Text["UserSpace_Type"]%></strong></td>
                                    <td width="107">
                                        <strong><%=Globals.Text["UserSpace_CreateTime"]%></strong></td>
                                    <td width="100">
                                        <strong><%=Globals.Text["UserSpace_Status"]%></strong></td>
                                    <td width="40">
                                        <%=Globals.Text["UserSpace_Setting"]%></td>
                                    <td width="40">
                                       <%=Globals.Text["UserSpace_Delete"]%></td>
                                    <td>
                                       </td>
                                </tr>
                            </table>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <table align="left">
                                <tr>
                                    <td width="200"  align="left">
                                        <asp:Image runat="server" ID="fileIcon" />
                                        <asp:HyperLink ID="Name" runat="server" NavigateUrl="" Text="文件名"></asp:HyperLink>
                                    </td>
                                    <td width="58">
                                        <asp:Literal ID="FileSize" runat="server"></asp:Literal>
                                        &nbsp;</td>
                                    <td width="58">
                                        <asp:Literal ID="Type" runat="server" Text="文件夹"></asp:Literal></td>
                                    <td width="107">
                                        <asp:Literal ID="Created" runat="server"></asp:Literal></td>
                                    <td width="100">
                                        <asp:Literal ID="Status" runat="server"></asp:Literal></td>
                                    <td width="40">
                                        <asp:HyperLink runat="server" ID="Settings" /></td>
                                    <td width="40">
                                        <asp:LinkButton runat="server" ID="Delete" CommandName="delete" OnClientClick="return confirm('是否真的删除该文件？')" /></td>
                                    <td>&nbsp;
                                        </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        <FooterTemplate>
                        </FooterTemplate>
                    </asp:DataList>
                </div>
                                      
                                                     <!--endItem-->
           

                                                        
                                                        
 </td></tr></table>

   </xiaoxiao:part>
                                <xiaoxiao:part id="disk_file_list" multiinstance="False" class="FullRegionWidth"
                                    placement="Anywhere" movable="True">
           <div id="Div3" class="blog_dragDiv">
    <table cellspacing="0" class="pheader" border="0" style="width: 100%" height="22">
        <tr>
            <td class="mod_tlc" width="6" nowrap>&nbsp;
                </td>
            <td width="100%" class="modhead">
                <table cellspacing="0" width="100%" class="fixedTable partheader" style="width: 100%">
                    <tr>
                        <td id="Td3" class="bold ellipse partDetail" nowrap>
                            <div class='ellipse'>
                               <%=Globals.Text["UserSpace_Filelist"]%></div>
                        </td>
                        <td class="partBuffer" align="right" nowrap>
                        </td>
                    </tr>
                </table>
            </td>
            <td class="mod_trc" width="6" nowrap>&nbsp;
                </td>
        </tr>
    </table>
</div>

          <table cellspacing="0" border="0" class="partsmb">
        <tr>
            <td>
                <img src="<%=Globals.GetSkinPath() %>/images/c.gif" width="8" height="1"></td>
            <td class="bvBody">

 <!--Item-->  <asp:DataList ID="FileList" runat="server" CellPadding="2" Width="98%" BorderWidth="0px"
                        CssClass="font12" CaptionAlign="Left" ShowHeader="true">
                        <HeaderTemplate>
                            <table>
                                <tr>
                                    <td width="200">
                                        <strong>&nbsp;&nbsp;&nbsp;<%=Globals.Text["UserSpace_FileName"]%></strong></td>
                                    <td width="58">
                                        <strong><%=Globals.Text["UserSpace_Size"]%></strong></td>
                                    <td width="58">
                                        <strong><%=Globals.Text["UserSpace_Type"]%></strong></td>
                                    <td width="120">
                                        <strong><%=Globals.Text["UserSpace_CreateTime"]%></strong></td>
                                    <td width="100">
                                        <strong><%=Globals.Text["UserSpace_Status"]%></strong></td>
                                    <td width="40">
                                        <%=Globals.Text["UserSpace_Setting"] %></td>
                                    <td width="40">
                                        <%=Globals.Text["UserSpace_Delete"]%></td>
                                    <td>
                                        </td>
                                </tr>
                            </table>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <table align="left">
                                <tr>
                                    <td height="24" align="left" width="200">
                                        <asp:Image runat="server" ID="fileIcon" />
                                        <asp:HyperLink ID="Name" runat="server" NavigateUrl="" Text="文件名"></asp:HyperLink>
                                        &nbsp;
                                        <asp:PlaceHolder ID="pnlOpt" runat="server" />
                                    </td>
                                    <td width="58">
                                        <asp:Literal ID="FileSize" runat="server"></asp:Literal></td>
                                    <td width="58">
                                        <asp:Literal ID="Type" runat="server" Text="文件夹"></asp:Literal></td>
                                    <td width="120">
                                        <asp:Literal ID="Created" runat="server"></asp:Literal></td>
                                    <td width="100">
                                        <asp:Literal ID="Status" runat="server"></asp:Literal></td>
                                    <td width="40">
                                        <asp:HyperLink runat="server" ID="Settings" /></td>
                                    <td width="40">
                                        <asp:LinkButton runat="server" ID="Delete" CommandName="delete" OnClientClick="return confirm('是否真的删除该文件？')" /></td>
                                    <td>
                                        <asp:HyperLink ID="FileKey" runat="server"></asp:HyperLink></td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                                      
                                                     <!--endItem-->
           

                                                        
                                                        
 </td></tr></table>

   </xiaoxiao:part>
                            </td>
                            <td id="SupplementalE" runat="server" valign="top" istarget="true" width="220" orientationpref="NarrowPart"
                                nowrap="nowrap" class="TopToBottom">
                                <xiaoxiao:part id="NewFolder" multiinstance="False" class="FullRegionWidth" placement="Anywhere"
                                    movable="True">
           <div id="ModuleHeaderNarrowPrompt_MainPanel" class="blog_dragDiv">
    <table cellspacing="0" class="pheader" border="0" style="width: 100%" height="22">
        <tr>
            <td class="mod_tlc" width="6" nowrap>&nbsp;
                </td>
            <td width="100%" class="modhead">
                <table cellspacing="0" width="100%" class="fixedTable partheader" style="width: 100%">
                    <tr>
                        <td id="" class="bold ellipse partDetail" nowrap>
                            <div class='ellipse'>
                               <%=Globals.Text["UserSpace_CreateFolder"]%></div>
                        </td>
                        <td class="partBuffer" align="right" nowrap>
                        </td>
                    </tr>
                </table>
            </td>
            <td class="mod_trc" width="6" nowrap>&nbsp;
                </td>
        </tr>
    </table>
</div>

         <table cellspacing="8" border="0" class="partsmb fixedTable">
                <tr>
                    <td class="ellipse" nowrap>
                        <table id="tabNewFolder" runat="server" cellspacing="3" border="0"    >
 
                        <tr>
                            <td >
                                <%=Globals.Text["UpdateDir_FileName"]%></td>
                            <td >
                                <asp:textbox id="txtFolderName" runat="server" columns="12" cssclass="baseline" Width="120px"></asp:textbox>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <%=Globals.Text["UpdateDir_Share"]%></td>
                            <td>
                                <asp:dropdownlist id="dropSelectShare" runat="server" onchange="showvisititem()" Width="120px">
                                                                                    <asp:ListItem Value="0">共享关闭</asp:ListItem>
                                                                                    <asp:ListItem Value="1" Selected="true">共享开放</asp:ListItem>
                                                                                </asp:dropdownlist>

                                <script>
                                                                                function showvisititem(){
if(document.all['<%=dropSelectShare.ClientID %>'].value =="0" ){ <% =visititem.ClientID%>.style.display = "none"; <%   =visitpass.ClientID%>.style.display = "";} else{ <% =visititem.ClientID%>.style.display = "";<%   =visitpass.ClientID%>.style.display = "none"; } };
                                                                              
                                </script>

                            </td>
                        </tr>
                        <tr style=" " id="visititem" runat="server" name="visititem">
                            <td  >
                                <%=Globals.Text["UpdateDir_GuessLimit"]%>
                            </td>
                            <td >
                                <asp:dropdownlist id="dropLimits" runat="server" Width="120px">
                                                                                    <asp:ListItem Value="L" Selected="true">只能浏览</asp:ListItem>
                                                                                    <asp:ListItem Value="LR">允许下载</asp:ListItem>
                                                                                    <asp:ListItem Value="LRC">下载|上传</asp:ListItem>
                                                                                </asp:dropdownlist>
                            </td>
                        </tr>
                        <tr style="display: none" id="visitpass" runat="server" name="visitpass">
                            <td >
                                <%=Globals.Text["UpdateDir_GuessPassword"]%></td>
                            <td>
                                <asp:textbox id="txtFolderPassword" runat="server" columns="12" cssclass="baseline" Width="120px"></asp:textbox>
                            </td>
                        </tr>
                        <tr>
                            <td  valign="top">
                                <%=Globals.Text["UpdateDir_Note"]%></td>
                            <td>
                                <asp:textbox id="txtFolderDesc" runat="server" columns="12" textmode="MultiLine" Width="120px"></asp:textbox>
                            </td>
                        </tr>
                        <tr>
                            <td >
                            </td>
                            <td>
                                <cc1:XButton id="btnNewFolder" runat="server" OnClientClick="return chkFolder();" ResourceName="btn_Finish" />
                            <script type="text/javascript">function chkFolder(){var fname=document.all['<%=txtFolderName.ClientID%>'];if(!fname||fname.value.trim()==''){_error_msg_show('您忘了输入文件夹名了！');return false;}}</script>
                            </td>
                        </tr>
                  
                      </table>
                    </td>
                </tr>
            </table>

   </xiaoxiao:part>
                                <xiaoxiao:part id="s_upFile" multiinstance="False" class="FullRegionWidth" placement="Anywhere"
                                    movable="True">
           <div id="Div4" class="blog_dragDiv">
    <table cellspacing="0" class="pheader" border="0" style="width: 100%" height="22">
        <tr>
            <td class="mod_tlc" width="6" nowrap>&nbsp;
                </td>
            <td width="100%" class="modhead">
                <table cellspacing="0" width="100%" class="fixedTable partheader" style="width: 100%">
                    <tr>
                        <td id="Td4" class="bold ellipse partDetail" nowrap>
                            <div class='ellipse'>
                               <%=Globals.Text["UserSpace_Upfile"]%></div>
                        </td>
                        <td class="partBuffer" align="right" nowrap>
                        </td>
                    </tr>
                </table>
            </td>
            <td class="mod_trc" width="6" nowrap>&nbsp;
                </td>
        </tr>
    </table>
</div>

       <table cellspacing="8" border="0" class="partsmb fixedTable">
                <tr>
                    <td class="ellipse" nowrap>
                        <table  id="tabUpload" runat="Server" cellspacing=3 >
                                                                    <tbody>
                                                                        <tr>
                                                                            <td   align="left">
                                                                                文件：</td>
                                                                            <td align="left"  >
                                                                                <input style="width: 120px" class="tx1" type="file" name="file1" /></td>
                                                                        </tr>
                                                                         <tr>
                                                                            <td   align="left">
                                                                                标签：</td>
                                                                            <td align="left"  >
                                                                                <asp:TextBox runat="server" ID="txtTags" style="width: 90px" />&nbsp;<a href="###"  onclick="openWindow('<%=Globals.ApplicationPath %>/include/TagSelector.aspx?TagEditor=SelectTags','210','350','选择标签', '选择标签');"  >选..</a>
                                                           &nbsp;
                                                            <cc1:SelectAllTags ID="hidTags" runat="server"  TagType="File" MaxTagNums="50"  ClearCache="true"/>
                                                             <script language="JavaScript" type="text/javascript" src="<%=Globals.ApplicationPath %>/Include/TagEditor.js"></script>
                                                            <script language="javascript">var SelectTags= new TagEditor('SelectTags', '<%=hidTags.ClientID %>', '<%=txtTags.ClientID %>');
                                                            
                                                            </script></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="left"  >
                                                                                <%=Globals.Text["MusicFolder_Share"]%></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="upFileVisit" runat="server" onchange="showupFileVisititem()" Width="120px">
                                                                                    <asp:ListItem Value="0" Selected="True">无偿共享</asp:ListItem>
                                                                                    <asp:ListItem Value="1">有偿共享</asp:ListItem>
                                                                                </asp:DropDownList>

                                                                                <script>
                                   
                                                                                 function showupFileVisititem()
                                                                                 {
                                                                                 if($('<%=upFileVisit.ClientID %>').value =="1" ){ $('<%=upVisitItem.ClientID %>').style.display = "";} else{ $('<%=upVisitItem.ClientID %>').style.display = "none";} 
                                                                                 }
                                                                                </script>

                                                                            </td>
                                                                        </tr>
                                                                        <tr style="display: none" id="upVisitItem" name="upVisitItem">
                                                                            <td align="left">
                                                                                <%=Globals.Text["MusicFolder_Fees"]%>
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtUpFilePrice" runat="server" Width="120px" Text="0"></asp:TextBox>
                                                                                <asp:DropDownList ID="dropPriceType" runat="server" Width="120px">
                                                                                    <asp:ListItem Value="1" Selected="true">银豆</asp:ListItem>
                                                                                    <asp:ListItem Value="2">金豆</asp:ListItem>
                                                                                    <asp:ListItem Value="3">金砖</asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="left" valign="top">
                                                                                <%=Globals.Text["UpdateDir_Note"]%></td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtUpFileDesc" runat="server" MaxLength="800" TextMode="MultiLine" Width="120px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td align="left">
                                                                                <cc1:XButton ID="btnUpload" runat="server" ResourceName="btn_Finish" OnClientClick="return chkUpload()" />
                                                                                 <script type="text/javascript">function chkUpload(){
                                                                                 var fname=$('file1');
                                                                                 //alert(fname.value)
                                                                                 if(!fname||fname.value.trim()==''){_error_msg_show('您忘了选择上传的文件了！');return false;}
                                                                                 var tags=$('<%=txtTags.ClientID %>');
                                                                                 if(tags.value.trim()=='')
                                                                                 {_error_msg_show('您忘记输入文件标签了！');
                                                                                 tags.focus();
                                                                                 return false;}
                                                                                 
                                                                                   var exts=$('Xiaoxiao_Web_Upload_AllowExt');
                            var file1=$('file1');
                             if(exts&&file1)
                             {
                              chk=exts.value;
if(chk.trim()!=''&&chk!='*')
{

chk=chk.replace(/\./g,'');
chk=chk.replace(/\,/g,'|');
var pattern = new RegExp('\.('+chk+')$','i');
if (!pattern.test(file1.value))
{
_error_msg_show('上传文件格式不充许！');
return false;
}
 
}
                             }
                             
                             try{openProgress();}catch(err){}
                                                                                 }
                                                                                 </script>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                    </td>
                </tr>
            </table>

   </xiaoxiao:part>
   
       <xiaoxiao:part ID="NewFolder1" MultiInstance="False" class="FullRegionWidth" Placement="Anywhere" Movable="True">
           <div id="Div5" class="blog_dragDiv">
    <table cellspacing="0" class="pheader" border="0" style="width: 100%" height="22">
        <tr>
            <td class="mod_tlc" width="6" nowrap>&nbsp;
                </td>
            <td width="100%" class="modhead">
                <table cellspacing="0" width="100%" class="fixedTable partheader" style="width: 100%">
                    <tr>
                        <td id="Td5" class="bold ellipse partDetail" nowrap>
                            <div class='ellipse'>
                               <%=Globals.Text["UserSpace_CreateFile"]%></div>
                        </td>
                        <td class="partBuffer" align="right" nowrap>
                        </td>
                    </tr>
                </table>
            </td>
            <td class="mod_trc" width="6" nowrap>&nbsp;
                </td>
        </tr>
    </table>
</div>

          <table cellspacing="8" border="0" class="partsmb fixedTable">
                <tr>
                    <td class="ellipse" nowrap>
                      <table id="tabNewFile"  runat="server" cellspacing=3>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td align="left">
                                                                                <%=Globals.Text["UserSpace_Type"]%></td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="dropFileType" runat="server" onchange="showFileExtVisititem()" Width="120px">
                                                                                    <asp:ListItem Value=".txt">文本文件</asp:ListItem>
                                                                                    <asp:ListItem Value=".htm">网页文件</asp:ListItem>
                                                                                    <asp:ListItem Value=".xml">XML文件</asp:ListItem>
                                                                                    <asp:ListItem Value="0">自定义</asp:ListItem>
                                                                                </asp:DropDownList>

                                                                                <script>

                                                                                 function showFileExtVisititem()
                                                                                 {
                                                                                 if(document.all['<%=dropFileType.ClientID %>'].value =="0" ){ $('<%=fileExt.ClientID%>').style.display = "";} else{ $('<%=fileExt.ClientID%>').style.display = "none";} 
                                                                                 }
                                                                                </script>

                                                                            </td>
                                                                        </tr>
                                                                        <tr style="display: none" id="fileExt">
                                                                            <td>
                                                                             ext</td>
                                                                            <td>
                                                                                <asp:TextBox ID="txtFileExt" MaxLength="8" runat="server" Columns="12"  Width="120px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <%=Globals.Text["UserSpace_FileName"]%></td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtNewFileName" runat="server" Columns="12" Width="120px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <%=Globals.Text["UpdateDir_Share"]%></td>
                                                                            <td>
                                                                                <asp:DropDownList runat="server" ID="dropNewFileVisit" onchange="showNewFileVisititem()" Width="120px">
                                                                                    <asp:ListItem Value="0" Selected="true">无偿共享</asp:ListItem>
                                                                                    <asp:ListItem Value="1">有偿共享</asp:ListItem>
                                                                                </asp:DropDownList>

                                                                                <script>
                                                                               

                                                                                 function showNewFileVisititem()
                                                                                 {
                                                                                 if(document.getElementById('<%=dropNewFileVisit.ClientID %>').value =="1" ){ $('<%=newFileVisitItem.ClientID%>').style.display = "";} else{ $('<%=newFileVisitItem.ClientID%>').style.display = "none";} 
                                                                                 }
                                                                                </script>

                                                                            </td>
                                                                        </tr>
                                                                        <tr style="display: none" id="newFileVisitItem" name="newFileVisitItem">
                                                                            <td>
                                                                               <%=Globals.Text["MusicFolder_Fees"]%>
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="txtNewFilePrice" runat="server" Width="120px" Text="0" MaxLength="5"></asp:TextBox>
                                                                                <asp:DropDownList ID="dropNewFilePriceType" runat="server" Width="120px">
                                                                                    <asp:ListItem Value="1" Selected="true">银豆</asp:ListItem>
                                                                                    <asp:ListItem Value="2">金豆</asp:ListItem>
                                                                                    <asp:ListItem Value="3">金砖</asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td>
                                                                                <cc1:XButton ID="btnNewFile" runat="server" ResourceName="btn_Finish" OnClientClick="return chkNewFile();" />
                                                                                
                                                                                  <script type="text/javascript">
                                                                                  function isDigit(s)
{
var patrn=/^[\d]+$/;
if (!patrn.exec(s)) return false
return true
}
                                                                                  function chkNewFile(){
                                                                                  var fname=$('<%=txtNewFileName.ClientID %>');if(!fname||fname.value.trim()==''){_error_msg_show('您忘了输入新建文件名了！');return false;} 
                                                                                  
                                                                                   var price =$('<%=txtNewFilePrice.ClientID %>');
	if(!isDigit(price.value))
	{
	
	  _error_msg_show('价格只能是数字:S');
	  return false;
	 event.keyCode = 0 ;
	}
                                                                                  }</script>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>  
                    </td>
                </tr>
            </table>

   </xiaoxiao:part>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
    
</skm:Form>