温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:BugNet0.7.881.0汉化免安装版源码
当前文件路径:BugNet/BugNET_WAP/Bugs/AddBug.aspx

1<%@ Page language="c#" validateRequest="false" Inherits="BugNET.AddBug" MasterPageFile="~/Shared/FullWidth.master" Title="添加问题" Codebehind="AddBug.aspx.cs" %> 2
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %> 3
<%@ Register TagPrefix="it" TagName="PickComponent" Src="~/UserControls/PickComponent.ascx" %> 4
<%@ Register TagPrefix="it" TagName="PickVersion" Src="~/UserControls/PickVersion.ascx" %> 5
<%@ Register TagPrefix="it" TagName="PickType" Src="~/UserControls/PickType.ascx" %> 6
<%@ Register TagPrefix="it" TagName="PickPriority" Src="~/UserControls/PickPriority.ascx" %> 7
<%@ Register TagPrefix="it" TagName="PickSingleUser" Src="~/UserControls/PickSingleUser.ascx" %> 8
9
<asp:Content ID="Content1" ContentPlaceHolderID="content" runat="server"> 10
<div class="centered-content"> 11
<h1 class="page-title">添加问题 - <asp:literal enableviewstate="true" id="litProject" runat="server" /> <span>(<asp:Literal ID="litProjectCode" runat="Server"></asp:Literal>)</span> </h1> 12
</div> 13
<table class="form" border="0" summary="new issue form table"> 14
<tr> 15
<th class="required"><asp:label ID="Label5" runat="Server">标题(概述):</asp:label></th> 16
<td colspan="3"><asp:textbox id="txtSummary" runat="server" /> 17
<asp:RequiredFieldValidator id="rfvSummary" runat="server" Text=" *" Display="dynamic" ControlToValidate="txtSummary" ErrorMessage="You must provide a summary for this issue." /> 18
</td> 19
</tr> 20
<tr> 21
<th class="required"><asp:label ID="Label1" runat="Server">版本:</asp:label></th> 22
<td><it:PickVersion id="Version" Required="True" DisplayDefault="True" Runat="Server" /></td> 23
<th style="font-weight:bold;"><asp:label ID="lblCategory" runat="Server" >类别:</asp:label> </th> 24
<td><it:PickComponent id="Comps" Runat="Server" /></td> 25
</tr> 26
<tr> 27
<th class="required"><asp:label ID="Label4" runat="Server">类型:</asp:label></th> 28
<td><it:PickType DisplayDefault="True" Required="True" id="Type" Runat="Server" /></td> 29
<th><asp:label ID="Label7" runat="Server">Milestone:</asp:label></th> 30
<td><it:PickVersion id="Milestone" Required="false" DisplayDefault="True" Runat="Server" /></td> 31
</tr> 32
<tr> 33
<th class="required"><asp:label ID="Label2" runat="Server">优先级:</asp:label></th> 34
<td><it:PickPriority id="Priority" DisplayDefault="true" Required="True" Runat="Server" /></td> 35
<th><asp:label ID="Label3" runat="Server">指派给:</asp:label></th> 36
<td><it:PickSingleUser id="AssignTo" DisplayUnassigned="False" DisplayDefault="true" Required="false" Runat="Server" /></td> 37
</tr> 38
<tr> 39
<th><asp:label ID="Label8" runat="Server">有效时间:</asp:label></th> 40
<td><asp:TextBox ID="txtEstimation" runat="server" Width="80px"></asp:TextBox> <small>小时</small></td> 41
</tr> 42
<tr> 43
<th class="required"><asp:label id="lblDescription" runat="server" Text="描述:"/></th> 44
</tr> 45
<tr> 46
<td colspan="4"> <FCKeditorV2:FCKeditor id="FCKDescription" ToolbarSet="BugNET" Width="100%" Height="200px" runat="server"></FCKeditorV2:FCKeditor> 47
<asp:RequiredFieldValidator Display="dynamic" id="RequiredFieldValidator1" runat="server" SetFocusOnError="True" EnableClientScript="false" Enabled="True" Text=" *" ControlToValidate="FCKDescription" ErrorMessage="Bug描述不能为空" /> 48
</td> 49
</tr> 50
</table> 51
52
<asp:panel id="AddAttachment" runat="Server" style="" CssClass="row"> 53
<table border="0" summary="new issue form table"> 54
<tr> 55
<td><asp:Label ID="lblAttachment" AssociatedControlID="chkAddAttachment" runat="server" Text="添加附件:"></asp:Label></td> 56
<td class="input-group"> 57
<asp:checkbox id="chkAddAttachment" AutoPostBack="true" runat="server" OnCheckedChanged="chkAddAttachment_CheckedChanged" /> 58
</td> 59
</tr> 60
</table> 61
<asp:panel id="Attachment" Visible="false" runat="server" style="width:650px;padding:10px;background-color:#efefef;height:50px;border:1px dotted #ccc"> 62
<table class="form" border="0" summary="new issue form table"> 63
<tr> 64
<th> <asp:label ID="lblUploadAttachment" runat="server" AssociatedControlID="fuAttachment" Text="附件:"></asp:label></th> 65
<td class="input-group"> 66
<asp:FileUpload ID="fuAttachment" runat="server" Width="400px" Height="20px" /><asp:RequiredFieldValidator id="rvAttachedFile" SetFocusOnError="True" Display="dynamic" runat="server" Text=" *" ControlToValidate="fuAttachment" ErrorMessage="必须选择一个附件" /> 67
</td> 68
</tr> 69
<tr> 70
<th> <asp:label ID="Label6" runat="server" AssociatedControlID="txtAttachmentDesc" Text="简介:"></asp:label></th> 71
<td class="input-group"> 72
<asp:TextBox enableviewstate="false" id="txtAttachmentDesc" runat="server" Width="400px"></asp:TextBox> <asp:RequiredFieldValidator Display="dynamic" id="rvAttachmentDesc" runat="server" SetFocusOnError="True" Enabled="True" Text=" *" ControlToValidate="txtAttachmentDesc" ErrorMessage="附件描述不能为空" /> 73
</td> 74
</tr> 75
</table> 76
</asp:panel> 77
</asp:panel> 78
79
<div style="text-align:left;padding:5px;margin-top:15px;border-top:1px solid #efefef;width:650px;height:auto"> 80
<table class="form" border="0" summary="save and validation"> 81
<tr> 82
<td style="padding:1em 0 1em 5px;width:15%;" class="input-group" valign="top"> 83
<asp:imagebutton ID="imgSave" OnClick="cmdSubmit_Click" runat="server" CssClass="icon" ImageUrl="~\images\add.gif" /> 84
<asp:LinkButton ID="lnkUpdate" OnClick="cmdSubmit_Click" runat="server" Text="添加问题" /> 85
</td> 86
<td> 87
<asp:ValidationSummary ID="ValidationSummary1" runat="server" /> 88
</td> 89
</tr> 90
</table> 91
</div> 92
93
<div class="recently-added"> 94
<h3>最新添加问题列表</h3> 95
<asp:repeater runat="server" id="rptRecentlyAdded"> 96
<HeaderTemplate> 97
<ul class="nolist"> 98
</HeaderTemplate> 99
<ItemTemplate> 100
<li><asp:hyperlink id="lnkBug" runat="server" CausesValidation="False"/> </li> 101
</ItemTemplate> 102
<FooterTemplate> 103
</ul> 104
</FooterTemplate> 105
</asp:repeater> 106
</div> 107
</asp:Content> 108



