<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="creat.aspx.cs" Inherits="JuSNS.Web.home.bill.create" %>

<!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 id="ptitle" runat="server">记账</title>
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>
<script language="javascript" type="text/javascript" src="../../js/date.js"></script> 
<link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css"   id="skinpath" type="text/css" rel="stylesheet" />
</head>
<body>
   <!--头部-->
   <%=this.GetHtmlShort()%> 
    <div id="divhead">
        <%=this.GetHtmlHead()%>
    </div>
    <div id="divbody">
        <div id="body_first">
            <div class="body_menu">
                <%=this.GetHtmlLeft()%>
            </div>
        </div>
        <div id="body_sec">
           <form id="form1" runat="server"> 
                <div id="body_mid">
                    <div class="body_frame">
                        <!--主题内容中-->
                        <div class="body_frame_otherinfo">
                            <div class="title">
                                <div class="l">
                                    <img src="../../template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/bill.gif" align="absmiddle" />
                                    <span class="bold shenlan font14 ocolor" id="pNames" runat="server">理财，记账</span>
                                </div>
                                <div class="r">
                                    <a href="javascript:history.back();">返回上一级</a>                                   
                                </div>
                                <div class="c">
                                </div>
                            </div>
                            <div class="nav-menu">
                                <ul>
                                    <li id="FriendBill" runat="server"><a href="../bill">朋友的账本</a></li>
                                    <li id="MyBill" runat="server"><a href="../bill/?r=my">我的账本</a></li>
                                    <li id="AllBill" runat="server"><a href="../bill/?r=all">所有人的账本</a></li>
<%--                                    <li><a href="../bill/stat.aspx">帐务分析</a></li>
--%>                                    <li class="current"><a href="../bill/creat.aspx">我要记账</a></li>
                                    
                                </ul>
                            </div>
                        </div>
                        
                        
                        
                        <div class="body_sec_all">
                            <div id="succ_div" class="msg-succ" runat="server" visible="false"></div>
                            <div id="eorror_div" class="msg-error" runat="server" visible="false"></div>
                            
                           <div class="bold content">账目录入</div>
                           <div class="content">
                            <label class="f-label">类别</label>
                               <asp:DropDownList ID="btype" runat="server">
                                 <asp:ListItem Value="0">收入</asp:ListItem> 
                                 <asp:ListItem Value="1">支出</asp:ListItem> 
                               </asp:DropDownList>
                           </div> 
                            <asp:HiddenField ID="bID" runat="server" />
                           
                           <div class="content">
                            <label class="f-label">名称</label>
                               <asp:TextBox ID="bName" runat="server" CssClass="f-text w260" MaxLength="30"></asp:TextBox>
                               <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="bName" Display="Dynamic" ErrorMessage="此项必须填写！"></asp:RequiredFieldValidator> 
                           </div>
                           
                           <div class="content">
                            <label class="f-label">金额</label>
                               <asp:TextBox ID="bmoney" runat="server" CssClass="f-text w260" MaxLength="8"></asp:TextBox>
                              <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="bmoney" Display="Dynamic" ErrorMessage="此项必须填写！而且必须是数字类型。"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="只能包含数字，且金额不能超过1,000,000" ControlToValidate="bmoney" Display="Dynamic" ValidationExpression="^[.0-9]{0,9}$"></asp:RegularExpressionValidator>
                           </div>
                           <div class="content">
                            <label class="f-label">时间</label>
                               <asp:TextBox ID="b_BillTime" runat="server" onclick="SelectDate(this,'yyyy-MM-dd')" CssClass="f-text w260" MaxLength="30"></asp:TextBox>
                               <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="b_BillTime" Display="Dynamic" ErrorMessage="此项必须填写！"></asp:RequiredFieldValidator> 
                           </div> 
                           <div class="content">
                                <label class="f-label">分类</label>
                                <span id="creat_aspx_classID">
                                   <asp:DropDownList ID="classID" runat="server">
                                     <asp:ListItem Value="0">无分类</asp:ListItem> 
                                   </asp:DropDownList> 
                               </span>
                               <a href="javascript:void(0);" onclick="managebillclass();">管理分类</a>
                           </div>
                           <div class="content">
                                 <label class="f-label">谁使用？</label>
                               <asp:DropDownList ID="fid" runat="server">
                                 <asp:ListItem Value="0">我自己</asp:ListItem> 
                               </asp:DropDownList> <a href="javascript:void(0);" onclick="managebillfamily();">管理家庭成员</a>
                           </div>
                           <div class="content">
                            <label class="f-label">备注</label>
                               <asp:TextBox ID="content" TextMode="MultiLine" Height="50" runat="server" CssClass="f-text w260" MaxLength="30"></asp:TextBox>
                           </div>
                           <div class="content">
                            <label class="f-label">隐私</label>
                               <asp:DropDownList ID="isPub" runat="server">
                                 <asp:ListItem Value="1">所有人可见</asp:ListItem> 
                                 <asp:ListItem Value="0">好友可见</asp:ListItem> 
                                 <asp:ListItem Value="2">自己可见</asp:ListItem> 
                               </asp:DropDownList>
                           </div>
                           <div class="content pstr">
                            <label class="f-label">&nbsp;</label>
                               <asp:Button ID="send" runat="server" Text="保存记账" CssClass="f-button" OnClick="send_Click" />
                           </div>
                           
                           <div class="spline"></div>
                        </div>
                        </div>
                        <!--底部-->
                        <div class="divbottom">
                            <%=this.GetHtmlFoot()%>
                        </div>                          
                        
                        </div>
                </form>
        </div>
</div>
</body>
</html>
