<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<%@ Register TagPrefix="alicmsUC" TagName="Ime" Src="../../ime.dwt.ascx"%>
<%@ Register TagPrefix="alicmsUC" TagName="LanguageMenu" Src="../../language_menu.dwt.ascx"%>
<!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>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加套餐</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ali:Comment><link rel="stylesheet" type="text/css" href="../../S01/CHS/css/common.css" /></ali:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<alicmsUC:Ime Ime="true" Eot="true" runat="server" />
<style type="text/css">
form .SubTable{width:600px;background:#FFF}
form .SubTable THEAD TH,form .SubTable TD{text-align:center}
</style>
<script type="text/javascript">
var _page = "combo_add";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _guid;
var _agentPriceIndex;
var _agentPrices = [];
var _productIndex;
var _products = [];
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_no_empty = "编号不能空！";
var _lang_no_exist = "编号已经存在！";
var _lang_typeid_empty = "请选择类型！";
var _lang_name_empty = "名称不能空！";
var _lang_price_incorrect = "价格格式不正确！";
var _lang_agent_price_incorrect = "代理价格格式不正确！";
var _lang_adding_agent_price = "正在添加代理价...";
var _lang_select_product = "请选择产品！";
var _lang_adding_product = "增在添加产品...";
var _lang_delete = "删除";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title">添加套餐</div>
	<div class="Right">
		<alicmsUC:LanguageMenu runat="server" />
		<img height="15" src="<%=ImagePath%>dropdown.gif" /> 语言：<%=CurrentLanguage%>
	</div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="../combo/list.aspx?Lang=<%=ContentLang%>">套餐列表</a></li>
		<li class="Right"></li>
		<li class="Left Selected"></li>
		<li class="Middle Selected">添加套餐</li>
		<li class="Right Selected"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<form>
		<table border="0" cellpadding="4" cellspacing="1">
			<tfoot>
				<tr><td colspan="2"><input type="submit" value="添加" /></td></tr>
			</tfoot>
			<tbody>
				<tr>
					<th width="120">编号：</th>
					<td><span id="prefix">COMBO_</span><input type="text" name="No" size="40" maxlength="50" class="Text" /><strong style="color:#F00"></strong>全部大写，词与词之间用下划线隔开</td>
				</tr>
				<tr>
					<th>名称：</th>
					<td><input type="text" name="Name" size="50" maxlength="255" class="Text <%=ContentLang%>Font" /></td>
				</tr>
				<tr>
					<th>价格：</th>
					<td><input type="text" name="Price" value="0.00" size="10" maxlength="10" class="Text" />元</td>
				</tr>
				<tr>
					<th>单位：</th>
					<td>
						<select name="TimeUnit">
							<option value="Minute">分钟</option>
							<option value="Hour">小时</option>
							<option value="Day">天</option>
							<option value="Week">星期</option>
							<option value="Month">月</option>
							<option value="Season">季</option>
							<option value="HafeYear">半年</option>
							<option value="Year" selected="selected">年</option>
							<option value="Infinite">永久</option>
						</select>
					</td>
				</tr>
				<tr>
					<th>是否是应用：</th>
					<td>
						<select name="AppID" class="<%=ContentLang%>Font">
							<option value="">未指定</option>
							<ali:List Object="App">
								<ali:Record>
									<option value="<%=ID%>"><%=Name%></option>
								</ali:Record>
							</ali:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>产品：</th>
					<td>
						<button type="button" id="SelectProduct">选择产品</button>
						<table id="ProductTable" border="0" cellpadding="4" cellspacing="1" class="SubTable">
							<thead>
								<tr>
									<th>名称</th>
									<th>编号</th>
									<th>价格</th>
									<th>数量</th>
									<th>删除</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<th>代理价格：</th>
					<td>
						<table id="AgentTable" border="0" cellpadding="4" cellspacing="1" class="SubTable">
							<thead>
								<tr>
									<th>选择</th>
									<th>代理等级</th>
									<th>价格</th>
								</tr>
							</thead>
							<tbody>
								<ali:List Object="AgentLevel">
									<ali:Record>
										<tr>
											<td><input type="checkbox" value="<%=ID%>" /></td>
											<td class="<%=ContentLang%>Font"><%=Name%></td>
											<td><input type="text" size="10" maxlength="10"  value="0.00" class="Text" />可以固定价格，也可以百分比（格式：数字%）</td>
										</tr>
									</ali:Record>
								</ali:List>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<th>描述：</th>
					<td>
						<textarea name="Description" data-lang="<%=PageLang%>" data-content-lang="<%=ContentLang%>" data-browse-url="<%=AdminBrowserURL%>?Root=<%=InstanceID%>" class="editor"></textarea>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<div class="Footer"></div>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=ModuleJsPath%>module.js"></script>
</body>
</html>