<include file="public:header" />
<style type="text/css">
    .deploys{
        display: none;
    }
</style>
<!--SEO设置-->
<div class="pad_lr_10">
	<form id="info_form" action="{:u('seo/url')}" method="post">
	<table width="100%" class="table_form">
        <tr>
            <th width="150">{:L('url_model')} :</th>
            <td>
                <select name="url_model">
                  <!--<option value="3" <if condition="$config['URL_MODEL'] eq 3">selected="selected"</if>>兼容模式</option>-->
                    <option value="1" <if condition="$config['URL_MODEL'] eq 1">selected="selected"</if>>PATHINFO模式 </option>
                    <option value="2" <if condition="$config['URL_MODEL'] eq 2">selected="selected"</if>> 伪静态模式 </option>
                </select>
				如果开启了伪静态建议启用子域名另外需要配置 <a style="color: #0000FF;" target="_blank" href="http://www.tuiquanke.com/article_view/2115">重写规则 </a>
            </td>
        </tr>
        <tr>
            <th>{:L('url_suffix')} :</th>
            <td><input type="text" name="url_suffix" class="input-text" size="10" value="{$config.URL_HTML_SUFFIX}"></td>
        </tr>
        <tr>
            <th>{:L('url_depr')} :</th>
            <td><input type="text" name="url_depr" class="input-text" size="4" value="{$config.URL_PATHINFO_DEPR}"></td>
        </tr>
      
		
		 <tr>
		    <th>是否开启子域名 :</th>
		    <td>
		        <input type="radio" name="url_deploy" class="input-text url_deploy_checked"  value="1" <if condition="$config['APP_SUB_DOMAIN_DEPLOY'] eq 1">checked</if>>&nbsp;是
		        <input type="radio" name="url_deploy" class="input-text url_deploy_unchecked" value="0" <if condition="$config['APP_SUB_DOMAIN_DEPLOY'] eq 0">checked</if>>&nbsp;否
		    </td>
		</tr>
		
		<tr class="deploys">
		    <th>电脑域名 :</th>
		    <td><input type="text" placeholder="如：www" name="c_prefix" class="input-text" size="10" value="{$config.0}">
		
			</td>
		</tr>
		<tr class="deploys">
		    <th>手机域名 :</th>
		    <td><input type="text" placeholder="如：m" name="m_prefix" class="input-text" size="10" value="{$config.2}"></td>
		</tr>
		<tr class="deploys">
		    <th>后台域名 :</th>
		    <td><input type="text" placeholder="如：admin" name="h_prefix" class="input-text" size="10" value="{$config.1}"></td>
		</tr>
		  <tr>
			<th></th>
			<td><input type="hidden" name="menuid"  value="{$menuid}"/><input type="submit" class="smt mr10" name="do" value="{:L('submit')}"/></td>
		</tr>
		
	</table>
	</form>
</div>
<include file="public:footer" />

<script type="text/javascript">
$(function(){
    var url_deploy = '{$config.APP_SUB_DOMAIN_DEPLOY}';
    if(url_deploy!=0){
        $('.deploys').show();
    }  

    $('.url_deploy_checked').click(function(){
        $('.deploys').show();
    })
    $('.url_deploy_unchecked').click(function(){
        $('.deploys').hide();
    })
})
</script>
</body>
</html>