📄 product.aspx
字号:
<%--介绍及图片--%>
<table id="Tabs1" cellpadding="2" cellspacing="1" style="width: 98%; background-color: white;
display: none">
<tr class="tdbg">
<td class="tdbgleft" align="right" style="width: 20%">
<strong>商品简介: </strong>
</td>
<td class="tdbg" align="left">
用于首页及栏目页显示,不要超过255个字符<br />
<asp:TextBox ID="TxtProductIntro" runat="server" TextMode="MultiLine" Columns="67"
Rows="38" Width="580px" Height="50px"></asp:TextBox>
<asp:CustomValidator ID="ValxProductIntro" runat="server" ErrorMessage="商品简介长度不能超过255!"
ClientValidationFunction="ValxProductIntro_ClientValidate" ControlToValidate="TxtProductIntro"
Display="Dynamic" SetFocusOnError="True" ValidateEmptyText="True"></asp:CustomValidator></td>
</tr>
<tr class="tdbg">
<td class="tdbgleft" align="right" style="width: 20%">
<strong>详细介绍: </strong>
</td>
<td class="tdbg" align="left">
<pe:PEeditor ID="ProductExplain" runat="server" Width="580px" Height="300px" IsUpload="true">
</pe:PEeditor>
</td>
</tr>
<pe:ProductPic runat="server" ID="ProductPic1" />
</table>
<%--其它信息--%>
<table id="Tabs2" cellpadding="2" cellspacing="1" style="width: 98%; background-color: white;
display: none">
<pe:Producer ID="Producer" runat="server" FieldAlias="生 产 商" />
<pe:Trademark ID="Trademark" runat="server" FieldAlias="品牌/商标" />
<tr class="tdbg">
<td class="tdbgleft" align="right">
<strong>缺货时允许购买: </strong>
</td>
<td class="tdbg" align="left">
<asp:CheckBox ID="ChkEnableBuyWhenOutofstock" runat="server" />
打勾表示缺货时允许购买,否则缺货时不允许购买
</td>
</tr>
<tr class="tdbg" id="tr1">
<td class="tdbgleft" align="right">
<strong>限购数量: </strong>
</td>
<td class="tdbg" align="left">
<asp:UpdatePanel ID="UpnlLimitNum" runat="server">
<ContentTemplate>
<asp:TextBox ID="TxtLimitNum" runat="server" Width="80" MaxLength="8" Text="0" AutoPostBack="true"
OnTextChanged="TxtLimitNum_TextChanged"></asp:TextBox>
0为不限制,大于0时,此商品将不允许批发</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft" align="right">
<strong>库存数量: </strong>
</td>
<td class="tdbg" align="left">
<asp:TextBox ID="TxtStocks" Text="1000" runat="server" Width="80" MaxLength="8"></asp:TextBox>
</td>
</tr>
<tr class="tdbg" id="trAlarmNum">
<td class="tdbgleft" align="right">
<strong>库存报警下限: </strong>
</td>
<td class="tdbg" align="left">
<asp:TextBox ID="TxtAlarmNum" runat="server" Width="80" MaxLength="8" Text="10"></asp:TextBox>
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft" align="right">
<strong>前台库存计算方式: </strong>
</td>
<td class="tdbg" align="left">
<asp:RadioButtonList ID="RadlStocksProject" runat="server" RepeatDirection="Vertical">
<asp:ListItem Selected="true" Value="0">实际库存</asp:ListItem>
<asp:ListItem Value="1">虚拟库存(实际库存-已订购数)</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft" align="right">
<strong>税率设置: </strong>
</td>
<td class="tdbg" align="left">
<pe:TaxRateSetting ID="TaxRateTypeSetting" runat="server" EnableTheming="true" EnableViewState="true"
Visible="true" />
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft" align="right" style="height: 27px">
<strong>商品税率: </strong>
</td>
<td class="tdbg" align="left" style="height: 27px">
<asp:TextBox ID="TxtTaxRate" runat="server" Width="80" MaxLength="8"></asp:TextBox>
%
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft" align="right" style="height: 27px">
<strong>商品推荐等级: </strong>
</td>
<td class="tdbg" align="left" style="height: 27px">
<asp:DropDownList ID="DropStars" runat="server">
<asp:ListItem Value="5">★★★★★</asp:ListItem>
<asp:ListItem Value="4">★★★★</asp:ListItem>
<asp:ListItem Value="3" Selected="True">★★★</asp:ListItem>
<asp:ListItem Value="2">★★</asp:ListItem>
<asp:ListItem Value="1">★</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
<%--价格设置--%>
<table id="Tabs3" cellpadding="2" cellspacing="1" style="width: 98%; background-color: white;
display: none">
<tr class="tdbg">
<td class="tdbgleft" align="right" style="width: 20%">
<strong>市场参考价: </strong>
</td>
<td align="left">
<asp:TextBox ID="TxtPrice_Market" Width="60px" MaxLength="10" runat="server"></asp:TextBox>元
<br />
<pe:PositiveNumValidator ID="VpnumPrice_Market" ControlToValidate="TxtPrice_Market"
SetFocusOnError="true" Display="dynamic" ErrorMessage="市场参考价格式不正确" runat="server"></pe:PositiveNumValidator>
</td>
<td align="left">
仅供消费者购买此商品时参考的市场零售价,一般可以得比当前零售价高一些。
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft" align="right" style="width: 20%">
<strong>当前零售价: </strong>
</td>
<td align="left">
<asp:TextBox ID="TxtPrice" Width="60px" MaxLength="10" runat="server"></asp:TextBox>元
<pe:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtPrice"
SetFocusOnError="true" Display="dynamic" ErrorMessage="当前零售价不能为空!"></pe:RequiredFieldValidator>
<pe:PositiveNumValidator ID="VpnumPrice" ControlToValidate="TxtPrice" SetFocusOnError="true"
Display="dynamic" ErrorMessage="当前零售价格式不正确" runat="server"></pe:PositiveNumValidator>
</td>
<td align="left">
商店销售此商品时的价格。一般在前台显示为“***商店价”。游客购买时以此价格为准。会员及代理的折扣计算以此为基数。
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft" align="right" style="width: 20%">
<strong>会员零售价: </strong>
</td>
<td colspan="2">
<asp:UpdatePanel ID="UpnlGroupPrice" runat="server" UpdateMode="conditional">
<ContentTemplate>
<asp:RadioButton ID="RadMemberDiscount" OnCheckedChanged="RadMemberDiscount_CheckChanged"
AutoPostBack="true" Checked="true" GroupName="Price_Member" runat="server" />会员组折扣率 使用会员组中设定的折扣比率。<br />
<asp:RadioButton ID="RadMemberPrice" GroupName="Price_Member" OnCheckedChanged="RadMemberPrice_CheckChanged"
AutoPostBack="true" runat="server" />统一会员价格 会员价:<asp:TextBox
ID="TxtPrice_Member" Width="60px" MaxLength="10" runat="server"></asp:TextBox>元
<pe:PositiveNumValidator ID="VpnumPrice_Member" ControlToValidate="TxtPrice_Member"
SetFocusOnError="true" Display="dynamic" ErrorMessage="会员价格式不正确" runat="server"></pe:PositiveNumValidator> 所有会员都以此为准,不区分组别。<br />
<asp:RadioButton ID="RadGroupPrice" GroupName="Price_Member" AutoPostBack="true"
runat="server" OnCheckedChanged="RadGroupPrice_CheckedChanged" />详细设置会员价 详细设置每个会员组的价格。<br />
<asp:Repeater ID="RptGroupPrice" Visible="true" runat="server">
<HeaderTemplate>
<table style="width: 95%" class="boder">
<tr class="tdbg">
<td align="center" class="tdbgleft">
会员组
</td>
<td align="center" class="tdbgleft">
价格
</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr class="tdbg">
<td align="center">
<%#Eval("GroupName")%>
<asp:HiddenField ID="HdnGroupID" Value='<%#Eval("GroupId")%>' runat="server" />
</td>
<td align="center">
<asp:TextBox ID="TxtGroupPrice" runat="server"></asp:TextBox>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -