 <nav class="breadcrumb"> 五折卡模块 <span class="c-gray en">&gt;</span> 五折卡配置 </nav>
<style>
.insert-seller1{height: 30px; font-size: 14px; float: right;margin-right: 31px;margin-top: -5px;line-height: 0px!important;color: #FFF;border: 0;width: 80px;border-radius: 4px;}
.edt{padding-left:30px;}
.ebm{width: 300px;}
td{ border:1px solid #cccccc;text-align:center }
.table td {text-align: center;background-color:white;}
#showtime {background-color:#F4FBFE;}
#showprice {background-color:#F4FBFE;}
.wzkpz-xgxx{background-color: #aad96f!important;}
.wzkpz-xgxx:hover{background-color: #9ece62!important;}
.wzkpz-zfgl{background-color: #f9b733!important;}
.wzkpz-zfgl:hover{background-color: #ea9a25!important;}

</style>


	<div class="" role="main"> 

	<div style="width:100%;border-bottom: 1px solid #e5e5e5;"><li class="edt"  style="font-size: 28px; color: #7d7d7d;vertical-align: middle; padding-top: 15px; padding-bottom: 15px;">五折卡配置</div>
		
		<ul class="cardInfo-box edt" style="text-align:left;">
			<li class="cardInfo-li cardInfo-title" >
				<label style="vertical-align: middle;font-size:20px;">卡片信息</label>
	
<!-- 				<a href="<?php //echo site_url('admin/card/edit');?>" class="changePwd">修改信息</a> -->
				<button type="button" class=" insert-seller1 wzkpz-xgxx"  data-toggle="modal" onclick="location.href='<?php echo site_url('admin/card/edit');?>'">
                	修改信息
            	</button>
            	<button type="button" onclick="location.href='<?php echo site_url('admin/pay/edit');?>'"class="insert-seller1  newaddcode wzkpz-zfgl" data-toggle="modal">
                	支付管理
            	</button>


			</li>
			<li class="cardInfo-li">
				<label class="li-privilege">客户端名称</label>
				<span class="cardInfo-span ebm" ><?php echo $client_name;?></span>
			</li>
			<li class="cardInfo-li">
				<label class="li-privilege">卡片名称</label>
				<span class="cardInfo-span ebm"><?php echo $name;?></span>
			</li>
			<li class="cardInfo-li">
				<label class="li-privilege">卡片颜色</label>	
				<p class="cardColor" style="background-color:<?php echo $color;?>;margin-bottom: 0px;margin-top: 4px;"></p>
			</li>
			<li class="cardInfo-li">
				<label class="li-privilege">卡片简介</label>
				<span class="cardInfo-span ebm"><?php echo $card_des;?></span>
			</li>
			<li class="cardInfo-li">
				<label class="li-privilege">普通权益介绍</label>
				<ul>
<!-- 					<li>可自提可堂食,只适用于大厅试用，敬请谅解；</li>
					<li>不在于其他优惠同享</li> -->
					<?php echo $level1_des;?>
				</ul>
			</li>
			<li class="cardInfo-li">
				<label class="li-privilege">高级权益介绍</label>
				<ul>
<!-- 					<li>提供免费WIFI</li>
					<li>停车位信息详询商户</li> -->
					<?php echo $level2_des;?>
				</ul>
			</li>
			<li class="cardInfo-li">
				<label class="li-privilege">高级权益价格</label>
				<div class="bs-example cardInfo-table" >
            		<table class="table" id="table" style="display:none">
		                <tbody>
		                	<?php foreach ($now_price as $value) :?>
 		                     <tr>
			                    <td><?php echo $value['duration'];?>天</td>
			                    <td>￥<?php echo $value['price'];?></td>
		                    </tr>
		                    <?php endforeach;?>
                                              
	                	</tbody>
           			</table>
					
					
					<table class="table" id="show">
		       
           			</table>
					
					
        		</div>
			</li>
			<li class="cardInfo-li">
				<label class="li-privilege">详细规则</label>
				<span class="cardInfo-span"><?php echo $message;?></span>
			</li>
		</ul>
	</div>

	<script type="text/javascript">
	
  $(function(){            
            var trs = $("#table tr"); 
            var tdLength = $("#table > tbody > tr:eq(0) > td").length;  
            var times = new Array(); 
                var begin = new Date();  
                var newTable = $("<table></table>").css({"border":"1px  solid"}).attr("border","1"); 
                newTable.appendTo($("#show"));  
 
                for(var i = 0; i < tdLength; i++){ 
				if(i==0){
					var tr = $("<tr><td id='showtime'>时长</td></tr>");
				}else{
					var tr = $("<tr><td id='showprice'>价格</td></tr>");
				}
                    
                    trs.each(function(index){  
                        var td = $("td:eq("+i+")",$(this));  
						//tr.append("<td>shichang</td>");
                        tr.append(td.clone()); 
                    }); 
                    newTable.append(tr); 
                }  
        }); 
	
	</script>
	
	
	
	
	