新版微擎后台表格自动出现横向滚动条,调整列宽,style="max-width:3000px;width:2300px;"

<!-- 美化表格,这里是关键:style="max-width:3000px;width:2300px;" -->
<table class="table table-hover" style="max-width:3000px;width:2300px;">
            <thead class="navbar-inner">
                <tr>
					<th class='with-checkbox' style="width:30px;">
                    	<input type="checkbox" class="check_all" />
					</th>
                    <th>世代编号</th>
					<th>第几代</th> 
					<th>世系别名</th> 
					<th>成员编号</th> 
					<th>姓氏</th> 
					<th>名字</th> 					
					<th>身份证号</th> 
					<th>联系方式</th> 
					<th>生日</th> 
					<th>性别</th> 
					<th>学历</th> 
					<!--
					<th>个人介绍</th> 
					-->
					<th>是否嫁入</th> 
					<th>是否已亡</th> 
					<th>居住地址</th> 
					<th>墓地</th> 
					<th>备注</th> 
					<th>父亲编号</th> 
					<th>父亲身份证号</th> 
					<th>配偶编号</th> 
					<th>配偶身份证号</th> 
					<th>状态</th> 
                    <th>添加时间</th>
                    
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {loop $list2 $item}
                <tr>
					<td class="with-checkbox">
                     	<input type="checkbox" name="check" value="{$item['id']}">
					</td>
                    <td>{$item['generation_number']}</td>
					<td>{$item['generation_no']}</td>
					<td>{$item['lineage_nickname']}</td>
					<td>{$item['member_ID']}</td>
					<td>{$item['famiMembFana']}</td>					
					<td>{$item['famiMembLana']}</td>
					<td>{$item['userIdent']}</td>
					<td>{$item['famiMembTel']}</td>
					<td>{$item['famiMembBirth']}</td>	
					<td>
                    {if $item['famiMembGender'] == '1'}男{/if}
                    {if $item['famiMembGender'] == '2'}女{/if}
                    </td>					
					<td>{$item['famiMembEdu']}</td>
					
					<!--
					<td>{$item['famiMembWost']}</td>
					-->
					
					<td>
                    {if $item['famiMembEx'] == '1'}是{/if}
                    {if $item['famiMembEx'] == '0'}否{/if}
                    </td>
					<td>
                    {if $item['dead'] == '1'}是{/if}
                    {if $item['dead'] == '0'}否{/if}
                    </td>
					<td>{$item['address']}</td>
					<td>{$item['cemetery']}</td>
					<td>{$item['member_note']}</td>
					
					<td>{$item['father_ID']}</td>
					<td>{$item['famiMembFauid']}</td>
					<td>{$item['wife_ID']}</td>
					<td>{$item['wifeIdent']}</td>
					
					<td>
                    {if $item['state'] == '1'}有效{/if}
                    {if $item['state'] == '0'}无效{/if}
                    </td>
					
					
					
                    <td>
					{if $item['createtime'] > 0}
					{php echo date('Y-m-d H:i:s', $item['createtime']/1000)}
					{/if}
					</td>
                    <td>
						<a class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" href="{php echo $this->createWebUrl('myGen_list',array('op'=>'edit','famiMembId'=>$item['famiMembId']))}" title="编辑"><i class="fa fa-pencil"></i></a> 
					    <!--
						<a class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" href="{php echo $this->createWebUrl('donate_check',array('id'=>$item['id'],'ret_url'=>$ret_url))}" title="审核"><i class="fa fa-pencil"></i></a> 
						-->
						
						<!--
						<a class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" href="{php echo $this->createWebUrl('storage_track',array('book_id'=>$item['id'],'ret_url'=>$ret_url))}" title="存放追踪"><i class="fa fa-edit"></i></a> 
                      
                        
						<a class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" href="#" onclick="drop_confirm('您确定要删除吗?', '{php echo $this->createWebUrl('rescue_list',array('op'=>'delete', 'uid'=>$item['uid']))}');" title="删除"><i class="fa fa-remove"></i></a>
                        -->
                                        
                        <a class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" href="#" onclick="drop_confirm('您确定要删除吗?', '{php echo $this->createWebUrl('myGen_list',array('op'=>'delete', 'famiMembId'=>$item['famiMembId']))}');" title="删除"><i class="fa fa-remove"></i></a>
                         
                    </td>
                </tr>
                {/loop}
                
               {if $uid<=2 || $uid_dist>0}    
                <tr>
					<td colspan="10">
	   					<input type="button" class="btn btn-primary" name="deleteall" value="删除选择的" />
					</td>
				</tr>
                {/if}
            </tbody>
            <input name="token" type="hidden" value="{$_W['token']}" />
        </table>

新蔷程序员特训营,带领初学者快速开发商业项目:https://paishenwx.taobao.com/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值