<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	<h4 class="modal-title">轮播图设置</h4>
</div>
<div class="modal-body">
<form method="post" id="editModule">
<input type="hidden" name="module" value="<?php echo $config['module'];?>">
<input type="hidden" name="config[viewType]" value="<?php echo $config['config']['viewType'];?>">
<div class="fit-custom-service">
	<div class="choosed-custom-service">
		<span>内容设置</span>
	</div>
	<div class="setting-cus-ser-info">
		<div class="fit-cus-ser-carousel">
			<table id="imgCarousel">
				<thead>
					<tr>
						<th class="carousel-th">图片地址:</th>
						<th class="carousel-th">链接地址:</th>
						<th class="carousel-th">操作:</th>
					</tr>
				</thead>
				<tbody>
				<?php if(!empty($config['config']['data'])){?>
				 <?php foreach($config['config']['data'] as $carK=>$carV){?>
					<tr class="data-tr">
						<td>
							<div class="input-f">
								<p><input type="text" class="form-control" value="<?php echo $carV['imgUrl'];?>" name="config[data][<?php echo $carK;?>][imgUrl]"></p>
								<span class='error'></span>
							</div>
							<span class="iconDesign iconleftShopInfo" onclick="chooseBannerFile(this);"></span>
						</td>
						<td>
							<input type="text" class="form-control" value="<?php echo $carV['url'];?>" name="config[data][<?php echo $carK;?>][url]">
						</td>
						<td>
							<i class="icon icon_up <?php if($carK==0){ echo 'icon_disabled';}?>" onclick='sortUp(this)'></i>
							<i class="icon icon_down <?php if($carK==count($config['config']['data'])-1){ echo 'icon_disabled';}?>" onclick='sortDown(this)'></i>
							<i class="icon2 icon2_cross" onclick='delCarImgBox(this);'></i>
						</td>
					</tr>
				 <?php }?>
				<?php }else{?>
					<tr class="data-tr">
						<td>
							<div class="input-f">
								<p><input type="text" class="form-control" name="config[data][0][imgUrl]"></p>
								<span class='error'></span>
							</div>
							<span class="iconDesign iconleftShopInfo" onclick="chooseBannerFile(this);"></span>
						</td>
						<td>
							<input type="text" class="form-control" name="config[data][0][url]">
						</td>
						<td>
							<i class="icon icon_up icon_disabled"></i>
							<i class="icon icon_down icon_disabled"></i>
							<i class="icon2 icon2_cross" onclick='delCarImgBox(this);'></i>
						</td>
					</tr>
				<?php }?>
				</tbody>
			</table>
		</div>
	<div class="addCarImg">
		<button type='button' class="btn btn-default" style="float: right;margin-right:20px;" onclick='addCarImg();'>添加</button>
	</div>
	</div>
	<div id='emptyPicImgBox'></div>
	<div class="setting-cus-ser-title">
			<div class="txt_main">
				<label class="txt_title">标题:</label>
				<input type="text" name='config[title]' class="form-control" value="<?php echo $config['config']['title'];?>">
				<input type="checkbox" name='config[titleShow]' class="form-control cus-ser-checkbox" value="1" <?php if($config['config']['titleShow']){ echo 'checked';}?>>
				<span>显示标题栏</span>
			</div>
			<div class="txt_main">
				<label class="txt_title">轮播方式:</label>
				<select name="config[changeType]" class="form-control" style="width: 100px;">
					<option value="0" <?php if(!$config['config']['changeType']){ echo 'selected';}?>>上下轮播</option>
					<option value="1" <?php if($config['config']['changeType']){ echo 'selected';}?>>渐变轮播</option>
				</select>
			</div>
			<div class="txt_main">
				<label class="txt_title">高度:</label>
				<input type="text" class="form-control" style="width:45px; " name="config[customHeight]" value="<?php if($config['config']['customHeight']){echo $config['config']['customHeight'];}else{echo '240';}?>">px&nbsp;&nbsp;
				<label class="marr10"><span class="gray">高度为200 - 600像素之间，否则轮播显示可能异常</span></label>
			</div>
			<div class="txt_main imgCarousel-notice red">当前模块宽度为<?php if($config['config']['viewType']==950){echo '970px';}else if($config['config']['viewType']==240){echo '210px';}else{echo '1200px';}?></div>
	</div>
	<div class="clear"></div>
	<div class="modal-footer center">
		<button type="button" class="btn btn-primary" onclick="DESIGN.editFinish('checkInput()');">提交</button>
		<button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">关闭</button>
	</div>
</div>
</form>
<div id="picImgBox" type='carousel'></div>
</div>
<link rel="stylesheet" href="<?php echo mvc::$cfg['HOST']['b2c'];?>static/css/imgCarousel.css?ver=<?php echo mvc::$cfg['VER']['css'];?>" type="text/css"/>
<script src="<?php echo mvc::$cfg['HOST']['b2c'];?>static/js/imgCarousel.js?ver=<?php echo mvc::$cfg['VER']['js'];?>"></script>
<script>

</script>