<commit_before><link rel="stylesheet" type="text/css" href="/static/css/common.css?v=<?=$version?>">
<div class="row">
    <div class="col-lg-12">
    	<div class="container-fluid">
			<div class="info-center">
				<div class="page-header">
					<div class="pull-left">
						<h4><?=$pageTitle?></h4>
					</div>
					<div class="pull-right">
		                <span onclick="javascript:window.location.reload();"  class="glyphicon glyphicon-refresh"></span>
		            </div>
				</div>
				<div class="indentify-class">
					<p class="text-sub text-default">
                        <?php if(isset($pageTips)):?>
                        	<?=$pageTips?>
                    	<?php endif;?>
					</p>
				</div>
			</div>
		</div>
    </div>
</div>
<!-- 功能区 -->
<div class="row">
	<div class="col-md-12 btn-area">
		<div class="btn-group pull-left" role="group" aria-label="...">
			
		</div>
	</div>
</div>

<div class="row" id="main_div" style="overflow-y: scroll;">
	<div class="col-md-12" id="child_div">
		<div class="panel-body">
			<form class="form-horizontal tasi-form" role="form" name="edit_banner">
		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>标题</label>
		            <div class="col-sm-4">
		                <input type="text" name="title" placeholder="" class="form-control input-sm" value="<?=$ban['title']?>" required>
		            </div>
		            <div class="col-sm-6">
		                <em><font color="red">*</font></em>
		            </div>
		        </div>
		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>地址</label>
		            <div class="col-sm-4">
		                <input type="text" name="url" placeholder="http://或https://开头" class="form-control input-sm" value="<?=$ban['url']?>" required>
		            </div>
		            <div class="col-sm-6">
		                <em><font color="red">*</font></em>
		            </div>
		        </div>

		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>排序</label>
		            <div class="col-sm-4">
		                <input type="text" name="sort" placeholder="数字" class="form-control input-sm" value="<?=$ban['sort']?>" required>
		            </div>
		            <div class="col-sm-6">
		                <em><font color="red">*</font></em>
		            </div>
		        </div>
		       
		        

		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>状态</label>
		            <div class="col-sm-2">
		            	<label class="radio-inline">
							<input type="radio" name="status"  value="0" <?php if($ban['status']==0):?>checked<?php endif;?> >正常
						</label>
						<label class="radio-inline">
							<input type="radio" name="status"  value="1" <?php if($ban['status']==1):?>checked<?php endif;?>>停用
						</label>

		            </div>
					
		            <div class="col-sm-4">
		                <em></em>
		            </div>
		        </div>

		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>封面图</label>
		            <div class="col-sm-4">
		                <input type="text" placeholder="" class="form-control input-sm" value="<?=$ban['img_src']?>" name="img_src" readonly>
		            </div>
		            <div class="col-sm-6">
		                <button class="btn btn-default btn-sm" id="upload_img">上传</button>
		                <em> &nbsp;&nbsp;&nbsp;&nbsp;*建议尺寸：820*200</em>
		            </div>
		        </div>
		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font></label>
		            <div class="col-sm-4">
		                <div  style="width:820px;height: 200px; border:1px #e4e4e4 solid; overflow: hidden;">
		                	<img src="<?=$ban['img_src']?>" width="820" height="200" id="show_img">
		                </div>
		            </div>
		            <div class="col-sm-6">
		                
		            </div>
		        </div>

		         
		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>备注</label>
		            <div class="col-sm-6">
		                <textarea class="form-control" placeholder="备注" name="detail" rows="2"><?=$ban['detail']?></textarea>
		            </div>
		            <div class="col-sm-4">
		                <em></em>
		            </div>
		        </div>
		        <input type="hidden" name="id" value="<?=$ban['id']?>">
		        <hr>
		        <div class="form-group">
		            <div class="col-sm-12 text-center">
		              <button class="btn btn-danger" id="save_data" type="submit">保存</button>
		              &nbsp;&nbsp;&nbsp;&nbsp;
		              <button class="btn btn-default " type="button">取消</button>
		            </div>
		        </div>
		    </form>
		</div>
	</div>
</div>

<!-- 文件上传 加载js -->
<?php $this->load->view('public/plupload.html');?>
<script> plupImage('image/banner',820,200,'upload_file','upload_file','2mb'); </script><commit_msg>修正banner修改的图片bug<commit_after><link rel="stylesheet" type="text/css" href="/static/css/common.css?v=<?=$version?>">
<div class="row">
    <div class="col-lg-12">
    	<div class="container-fluid">
			<div class="info-center">
				<div class="page-header">
					<div class="pull-left">
						<h4><?=$pageTitle?></h4>
					</div>
					<div class="pull-right">
		                <span onclick="javascript:window.location.reload();"  class="glyphicon glyphicon-refresh"></span>
		            </div>
				</div>
				<div class="indentify-class">
					<p class="text-sub text-default">
                        <?php if(isset($pageTips)):?>
                        	<?=$pageTips?>
                    	<?php endif;?>
					</p>
				</div>
			</div>
		</div>
    </div>
</div>
<!-- 功能区 -->
<div class="row">
	<div class="col-md-12 btn-area">
		<div class="btn-group pull-left" role="group" aria-label="...">
			
		</div>
	</div>
</div>

<div class="row" id="main_div" style="overflow-y: scroll;">
	<div class="col-md-12" id="child_div">
		<div class="panel-body">
			<form class="form-horizontal tasi-form" role="form" name="edit_banner">
		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>标题</label>
		            <div class="col-sm-4">
		                <input type="text" name="title" placeholder="" class="form-control input-sm" value="<?=$ban['title']?>" required>
		            </div>
		            <div class="col-sm-6">
		                <em><font color="red">*</font></em>
		            </div>
		        </div>
		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>地址</label>
		            <div class="col-sm-4">
		                <input type="text" name="url" placeholder="http://或https://开头" class="form-control input-sm" value="<?=$ban['url']?>" required>
		            </div>
		            <div class="col-sm-6">
		                <em><font color="red">*</font></em>
		            </div>
		        </div>

		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>排序</label>
		            <div class="col-sm-4">
		                <input type="text" name="sort" placeholder="数字" class="form-control input-sm" value="<?=$ban['sort']?>" required>
		            </div>
		            <div class="col-sm-6">
		                <em><font color="red">*</font></em>
		            </div>
		        </div>
		       
		        

		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>状态</label>
		            <div class="col-sm-2">
		            	<label class="radio-inline">
							<input type="radio" name="status"  value="0" <?php if($ban['status']==0):?>checked<?php endif;?> >正常
						</label>
						<label class="radio-inline">
							<input type="radio" name="status"  value="1" <?php if($ban['status']==1):?>checked<?php endif;?>>停用
						</label>

		            </div>
					
		            <div class="col-sm-4">
		                <em></em>
		            </div>
		        </div>

		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>封面图</label>
		            <div class="col-sm-4">
		                <input type="text" placeholder="" class="form-control input-sm" value="<?=$ban['img_src']?>" name="img_src" readonly>
		            </div>
		            <div class="col-sm-6">
		                <button class="btn btn-default btn-sm" id="upload_img">上传</button>
		                <em> &nbsp;&nbsp;&nbsp;&nbsp;*建议尺寸：820*200</em>
		            </div>
		        </div>
		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font></label>
		            <div class="col-sm-4">
		                <div  style="width:820px;height: 200px; border:1px #e4e4e4 solid; overflow: hidden;">
		                	<img src="<?=$ban['img_src']?>" width="820" height="200" id="show_img">
		                </div>
		            </div>
		            <div class="col-sm-6">
		                
		            </div>
		        </div>

		         
		        <div class="form-group">
		            <label class="col-sm-2 control-label text-right"><font color="red"></font>备注</label>
		            <div class="col-sm-6">
		                <textarea class="form-control" placeholder="备注" name="detail" rows="2"><?=$ban['detail']?></textarea>
		            </div>
		            <div class="col-sm-4">
		                <em></em>
		            </div>
		        </div>
		        <input type="hidden" name="id" value="<?=$ban['id']?>">
		        <hr>
		        <div class="form-group">
		            <div class="col-sm-12 text-center">
		              <button class="btn btn-danger" id="save_data" type="submit">保存</button>
		              &nbsp;&nbsp;&nbsp;&nbsp;
		              <button class="btn btn-default " type="button">取消</button>
		            </div>
		        </div>
		    </form>
		</div>
	</div>
</div>

<!-- 文件上传 加载js -->
<?php $this->load->view('public/plupload.html');?>
<script> plupImage('image/banner',820,200,'upload_img','show_img','img_src','2mb'); </script>
{'fraction_non_alphanumeric': 0.20545333206216035, 'fraction_numerical': 0.012393936504909905, 'mean_word_length': 1.873185428649685, 'pattern_counts': {'":': 0, '<': 349, '<?xml version=': 0, '>': 353, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3386391', 'n_tokens_mistral': 3849, 'n_tokens_neox': 3301, 'n_words': 577}