 <nav class="breadcrumb"> 客户端界面设置 <span class="c-gray en">&gt;</span> 客户端入口文字管理 </nav>
 <style>
    .elput{width: 80%;margin-left: 20px;margin-top: 25px;margin-bottom: 25px; text-align: center;color: #7D7D7D;border-color: #7D7D7D; }
    .elp{padding-left: 0px;padding-top: 20px;padding-bottom: 20px;}
    .reset_bg{margin-top: -20px;  overflow: hidden;width: 850px;}   
	.edt{padding-left:30px;}	
	.altw{width: 70%; margin: auto;}
	.subsy{text-align: right;border-radius: 0 0 6px 6px;box-shadow: inset 0 1px 0 #fff;margin-top: 30px;}
	.imgstyle{width:238px;box-shadow: 0px 0px 15px 8px rgba(230, 230, 230, 0.5)}
	.t-e {margin-left: 30px;margin-bottom: 15px;margin-top: 5px;overflow: hidden;}
</style>
<div class="col-md-10" role="main">

	<div style="width:100%;"><li class="edt" style="font-size: 28px; color: #7d7d7d;vertical-align: middle; padding-top: 15px; padding-bottom: 15px;">客户端入口文字管理</div>
           
			<div class="" style="border-bottom: 1px solid #e5e5e5;"> 
            <div class="t-e">
                    <img src="<?php echo asset_url('images/explain.png');?>" alt="">
                    <span>说明：Mocuz V3支持首页，社区，朋友圈入口和顶部标题文字自定义，可根据运营需要随时调整。重启客户端即可生效。</span>
                </div>                                     
            </div>

        <div class="reset_bg">
            <form action="<?php echo site_url('mocuzfun/client_fun/name_set')?>" method="post" class="registerForm regiswidth" enctype="multipart/form-data">	
				<div style="float:left;text-align:center;margin: 20px;padding-left: 10px;">  
                    <div class="altw">
                        <input type="text" class="form-control elput elputOne"  placeholder="首页" name="index_header_name" maxlength="8" value="<?php echo $index_header_name['value'];?>">
                    </div>
                                
						<img class="imgstyle" src="<?php echo asset_url('images/home_content.jpg')?>" alt="">		
								
                    <div class="altw">
                        <input type="text" class="form-control elput elputTwo" placeholder="首页" value="<?php echo $index_block_name['value']?>" maxlength="8" name="index_block_name">		
					</div>
				</div>

				<div   style="float:left;text-align:center;margin: 20px; display:block">   
                    <div class="altw">
                        <input type="text" class="form-control elput elputOne" placeholder="社区" value="<?php echo $community_header_name['value']?>" maxlength="8" name="community_header_name">  
                    </div>
              
						<img class="imgstyle" src="<?php echo asset_url('images/community_content.jpg')?>" alt="">
			  
                    <div class="altw">
                       <input type="text" class="form-control elput elputTwo" maxlength="8" placeholder="社区" value="<?php echo $community_block_name['value']?>" name="community_block_name"> 
					</div> 
				</div>
					
				<div  style="float:left;text-align:center;margin: 20px; display:block">   
 
                    <div class="altw">
                         <input type="text" class="form-control elput elputOne" placeholder="Biu" value="<?php echo $biu_header_name['value']?>" name="biu_header_name" maxlength="8">
                    
                    </div> 
						<img class="imgstyle" src="<?php echo asset_url('images/firends_content.jpg')?>" alt="">
                        <div class="altw">
                           <input type="text" class="form-control elput elputTwo" placeholder="Biu" value="<?php echo $biu_block_name['value']?>" maxlength="8" name="biu_block_name">
                        </div>  		  

				</div>	
 
				<div class="subsy" style="width:100%; height:auto;display:block;">
                    <button class="edit_btn" id="save" style="margin-top: 15px;margin-bottom: 15px;  margin-right: 30px;">保存修改</button>
                    <div class="lr_ts" style="width: 100%;  margin-bottom: 30px;  margin-right: 30px;">
                     <img src="<?php echo asset_url('images/tips.png');?>" alt="" style="width: 14px;">
                     <span style="font-size:12px;">提示：当前全部留空时，默认显示：首页，社区，朋友圈。</span>
                </div>
                </div>
			
            </form>    
        </div>
    </div>
</div>
<script type="text/javascript">
$(".elputOne,.elputTwo").blur(function(){
    var get_value = $(this).val();
    var rege = /^(\w|-|[\u4e00-\u9fa5]){1,8}$/;
    if(!get_value)
    {
        alert('名称不能为空');
        return false;
    }
    if(!rege.test(get_value))
    {
        alert('请输入正确名称');
    } 
});
$("#save").on('click',function(event) {
    event.preventDefault();
    /* Act on the event */
    var rege = /^(\w|-|[\u4e00-\u9fa5]){1,8}$/;
    var subvalue = new Array();
    subvalue[0] = $('input[name=index_header_name]').val();
    subvalue[1] = $('input[name=index_block_name]').val();
    subvalue[2] = $('input[name=community_header_name]').val();
    subvalue[3] = $('input[name=community_block_name]').val();
    subvalue[4] = $('input[name=biu_block_name]').val();
    subvalue[5] = $('input[name=biu_header_name]').val();
    for (i=0;i<subvalue.length;i++)
    {
        if(!rege.test(subvalue[i]))
        {
            alert('请慎入正确名称');
            return false;
        } 
    }
    $('form').submit();
});  
</script>