<div style="width:1050px;padding:20px"> @using (Html.BeginForm("Select", "Index",FormMethod.Post)) { <span>小区</span>@Html.DropDownList("xiaoqu", ViewBag.DataXiaoQu as List<SelectListItem>,"==请选择==") <span>栋号</span>@Html.DropDownList("donghao", ViewBag.DataDongHao as List<SelectListItem>,"==请选择==") <span>户型</span>@Html.DropDownList("huxing", ViewBag.DataHuXing as List<SelectListItem>,"==请选择==") <span>状态</span>@Html.DropDownList("zhuangtai", ViewBag.DataZhuangTai as List<SelectListItem>,"==请选择==") <span>坐落</span><input id="Text1" name="name" /><input id="Submit1" type="submit" value="查询" />
<input id="Button1" type="button" value="添加" οnclick="location.href = '/Index/AddInfo'"/> <input id="Button2" type="button" value="批量删除" οnclick="DeleteIds()"/> } <table class="table-bordered table-striped table-hover" style="width:1000px" align="center" height="100" > <tr> <td><input id="QuanXuan" type="checkbox" name="QuanXuan" οnclick="QuanXuan()"/> <input id="FanXuan" type="checkbox" name="FanXuan" οnclick="FanXuan()"/></td>
<td>编号</td> <td>小区</td> <td>栋号</td> <td>位置</td> <td>坐落</td> <td>房源面积</td> <td>计租面积</td> <td>户型</td> <td>建筑结构</td> <td>租赁性质</td> <td>状态</td> <td>操作</td> </tr> @foreach (var item in Model) { <tr> <td><input id="cks" type="checkbox" name="cks" value="@item.ID"/></td> <td>@item.ID</td> <td>@item.XName</td> <td>@item.DName</td> <td>@item.WeiZhi</td> <td>@item.ZuoLuo</td> <td>@item.FangYuanMianJi</td> <td>@item.JiZuMianJi </td> <td>@item.HName</td> <td>@item.JName </td> <td>@item.XZName</td> <td>@item.ZName </td> <td> @Html.ActionLink("删除", "DeleteId", new { @ID=item.ID }) </td> </tr> } </table> <p> 共 <span>@ViewBag.count</span> 条数据 共计 <span>@ViewBag.page</span> 页 当前第 <span>@ViewBag.Index</span> 页 </p> <p style="padding-left:170px"> @Html.ActionLink("首页", "First") @Html.ActionLink("上一页", "ShangYiYe") @Html.ActionLink("下一页", "Next") @Html.ActionLink("尾页", "WeiYe") </p> </div></body></html>
转载于:https://www.cnblogs.com/MenBe/p/9521700.html
相关资源:数据结构—成绩单生成器