<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Admin/AdminMain.Master" Inherits="System.Web.Mvc.ViewPage<MvcEnterprise.Models.CustomFormData.RowModel>" %>

<asp:Content ID="Content0" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/Admin.js" type="text/javascript"></script>
	<script src="../../Scripts/print.js" type="text/javascript"></script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    表单信息
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <%= Html.ActionLink("返回列表", "CustomFormDataList", new { tableName = Request.QueryString["tablename"] })%></div>
    <hr />
	<%
		var rows = Model.Content.Split(new string[] { "|ffcms.com|" }, StringSplitOptions.RemoveEmptyEntries);
	%>
	<div id="view">
	<table>
	<%
		foreach (var row in rows) {
			var item = row.Split(new string[] { ":ffcms.com:" }, StringSplitOptions.None);
	%>
		<tr>
			<td align="right" width="130"><%= Html.Encode(item[0])%>：</td>
			<td><%= Html.Encode(item[1]) %></td>
		</tr>
	<%} %>
	</table>
	</div>
	<div style="text-align:center"><input type="button" class="btn w50" value="<%= Language.Context.Global.InputValuePrint %>" onclick="doPrint($('#view').html())" /></div>
</asp:Content>

