wzg688
- PageAdmin新手
- 83
- 192
- 2015-10-19
|
1#
t
T
发表于 2019-09-28 20:45
|显示全部
如题,栏目列表代码为 @{ int columnId = Html.CurrentColumnId();//当前栏目id PageInfo pageInfo = new PageInfo() { PageSize = 5,//每页显示12条数据 CurrentPage = (int)ViewBag.CurrentPage //当前页码,系统预设 }; var dataList = Html.InfoDataList(new { ColumnId = columnId }, null, null, pageInfo); }
<div class="clear padding-top-10 padding-bottom-10"> <div class="web_navs1 zlm_left"> @Html.Partial("subNavPartialleft") </div> <div class="web_wz_wc zlm_right"> @Html.Partial("BreadcrumbPartial") <div class="letter_header"></div> <table class="letter" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody>
@foreach (var item in dataList) { string Sbsj = item.Sbsj; string Dbbz = item.Dbbz; string Bzcy = item.Bzcy; string Wcqk = item.Wcqk; string url = Html.InfoDataUrl((int)item.ColumnId, (int)item.Id); { <tr class="head"> <td width="13%" align="center"><strong>上班时间</strong></td> <td width="13%" align="center"><strong>当班班长</strong></td> <td align="center"><strong>班组成员</strong></td> <td align="center"><strong>任务完成情况</strong></td> </tr> <tr class="item"> <td align="center"> @Sbsj </td> <td align="center">@Dbbz</td> <td width="24%" align="center">@Bzcy</td> <td align="center"><a href="@url" >详细情况</a></td> </tr> } } </tbody> </table> <p> </p> </div> </div>
,怎么能在首页调用实现图片中这样的效果 ,请高手指点,谢谢!
-
-
无标题.jpg
(, 下载次数:0)
(2019/9/28 20:51:23 上传)
|