<%@ Control Language="C#" %>
<%@ Import Namespace="Spaces" %>
<%@ Register Assembly="Xiaoxiao.WebUI" Namespace="Xiaoxiao.WebUI" TagPrefix="cc1" %>

<style>
.bvError{margin:0 0 8 0;}
.bvSection{border-style:none;margin-left:0px}
.bvwordwrap{width:100%}
</style>
<cc1:Form runat="server">
    <table class="bvwordwrap" border="0" width="100%" height="247">
        <tr>
            <td valign="top" class="cellstyle">
                <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["updatefile_overfileproperty"]%></div>
                                    </td>
                                    <td class="partBuffer" align="right" nowrap>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td class="mod_trc" width="6" nowrap>&nbsp;
                      </td>
                    </tr>
                </table>
                <table cellspacing="0" style="width: 100%;" height="22">
                    <tr>
                        <td>
                            <table cellspacing="0" cellpadding="2" width="100%" border="0" class='subnav'>
                                <tbody>
                                    <tr align="left">
                                        <td>
                                            <%=Globals.Text["updatefile_filename"]%></td>
                                        <td>
                                            <asp:TextBox ID="txtFileName" runat="server" MaxLength="80" Width="250px"></asp:TextBox></td>
                                    </tr>
                                      <tr align="left">
                                        <td>
                                            标签:</td>
                                        <td>
                                            <asp:TextBox ID="txtTags" runat="server" MaxLength="80" Width="250px"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <%=Globals.Text["updatefile_share"]%></td>
                                        <td>
                                            <asp:DropDownList runat="server" ID="dropFileVisit" onchange="showFileVisititem()"
                                                Width="250px">
                                                <asp:ListItem Value="0" Selected="true">无偿共享</asp:ListItem>
                                                <asp:ListItem Value="1">有偿共享</asp:ListItem>
                                            </asp:DropDownList>

                                            <script>
                                                                               

                                                                                 function showFileVisititem()
                                                                                 {
                                                                                 if(document.all['<%=dropFileVisit.ClientID %>'].value =="1" ){ fileVisitItem.style.display = "block";} else{ fileVisitItem.style.display = "none";} 
                                                                                 }
                                            </script>

                                        </td>
                                    </tr>
                                    <tr style="display: none" id="fileVisitItem" name="fileVisitItem">
                                        <td align="left">
                                            <%=Globals.Text["updatefile_Fees"]%>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtFilePrice" runat="server"  Text="0" Width="145px"></asp:TextBox>
                                            <asp:DropDownList ID="dropFilePriceType" runat="server" Width="100px">
                                                <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">
                                           <%=Globals.Text["updatefile_explain"]%>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtFileDesc" runat="server" Rows="5" TextMode="MultiLine" Width="250px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                        </td>
                                        <td>
                                            <asp:Button ID="btnFile" runat="server" Text="完成 >>" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>

                            <script>

function Init(){
if(document.all['<%=txtFilePrice.ClientID %>'].value >0 )
{

fileVisitItem.style.display = "block";


} 
else
{ 
fileVisitItem.style.display = "none";

}
 }
     Init();                                                                         
                            </script>

                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </cc1:Form>
