<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&op=<?=$op?>&">
    <div class="space">
        <div class="subtitle">网站模板设置</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" class="altbg1"><strong>网站默认模板:</strong>网站的界面风格</td>
                <td width="*"><select name="templateid">
                    <option value="">==选择模板==</option>
                    <?=$templates_option?>
                </select></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>显示风格下拉菜单:</strong>设置是否在网站底部显示可用的网站风格下拉菜单，用户可以通过此菜单切换不同的网站风格</td>
                <td><input type="radio" name="templatemenu" value="1"<?if($config['templatemenu'])echo' checked'?> /> 是&nbsp;
                    <input type="radio" name="templatemenu" value="0"<?if(!$config['templatemenu'])echo' checked'?> />否</td>
            </tr>
            <tr>
                <td class="altbg1"><strong>商户默认风格:</strong>商户的界面风格，默认不使用风格，与主站统一风格</td>
                <td><select name="item_styleid">
                    <option value="">==选择模板==</option>
                    <option value="0"<?if($config['item_styleid']=='0')echo' selected';?> style="color:#CC0000;">不使用风格</option>
                    <?if($_templates['item'])foreach($_templates['item'] as $tid => $val) {?>
                    <option value="<?=$tid?>"<?if($tid==$config['item_styleid'])echo' selected';?>><?=$val['name']?></option>
                    <?}?>
                </select></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>个人空间默认风格:</strong>个人空间的界面风格，默认不使用风格，与主站统一风格</td>
                <td><select name="space_styleid">
                    <option value="">==选择模板==</option>
                    <option value="0"<?if($config['space_styleid']=='0')echo' selected';?> style="color:#CC0000;">不使用风格</option>
                    <?if($_templates['space'])foreach($_templates['space'] as $tid => $val) {?>
                    <option value="<?=$tid?>"<?if($tid==$config['space_styleid'])echo' selected';?>><?=$val['name']?></option>
                    <?}?>
                </select></td>
            </tr>
        </table>
    </div>
    <div class="space">
        <div class="subtitle">显示设置</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" class="altbg1"><strong>默认点评城市:</strong>会员浏览和点评的城市，暂不支持多城市功能；没有可选城市时，请在网站管理页面，增加地区</td>
                <td width="50%"><select name="default_city">
                    <option value="">==选择城市==</option>
                    <? if($_areacodes) foreach($_areacodes as $key=>$val) {?><? if(strlen($key) == 2) {?><option value="<?=$key?>" <? if($config['default_city'] == $key){?>selected="selected"<?}?>><?=$val?></option><? } ?><? } ?></select></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>默认点评板块:</strong>在首页或未指名板块的情况下，默认显示哪个板块的内容；没有可选板块时，请再网站管理页面，增加点评板块</td>
                <td><select name="default_panel">
                    <option value="">==选择板块==</option>
                    <? if($_panels) foreach($_panels as $key=>$val) {?>
                    <option value="<?=$key?>" <? if($config['default_panel']==$key){?>selected="selected"<?}?>><?=$val?></option>
                    <? } ?>
                </select></td>
            </tr>
            <tr>
                <td width="45%" class="altbg1"><strong>每页显示商铺数:</strong>商铺大全，搜索页面中每页显示商铺数目</td>
                <td width="55%"><input type="text" name="dpshopnumber" value="<?=$config['dpshopnumber']?>" class="txtbox4" /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>每页显示点评数:</strong>点评页面中每页显示点评数目</td>
                <td><input type="text" name="dpreviewnumber" value="<?=$config['dpreviewnumber']?>" class="txtbox4" /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>商铺详细页面显示点评数:</strong>商铺详细页面中每页显示点评数目</td>
                <td><input type="text" name="dpdetail_reviewnumber" value="<?=$config['dpdetail_reviewnumber']?>" class="txtbox4" /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>回应显示数:</strong>回应中每页显示回应数目</td>
                <td><input type="text" name="dpreview_respondnumber" value="<?=$config['dpreview_respondnumber']?>" class="txtbox4" /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>板块内分类排序:</strong>在商铺列表，商铺所在分类的排序方式；本设置在更改后，必须在系统工具里。</td>
                <td><select name="classorder">
                    <option value="total" <?=$config['classorder']=='total'?' selected="selected"':''?>>按分类中的数量</option>
                    <option value="order" <?=$config['classorder']=='order'?'selected="selected"':''?>>按分类顺序</option>
                </select></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>商铺封面设置:</strong>在商铺列表，商铺页面所显示的图片更新缓存</td>
                <td><select name="shopthumb">
                    <option value="1" <?=$config['shopthumb']==1 ? ' selected="selected"' : ''?>>最新上传的图片</option>
                    <option value="2" <?=$config['shopthumb']==2 ? ' selected="selected"' : ''?>>后台手动选择图片</option>
                    <option value="3" <?=$config['shopthumb']==3 ? ' selected="selected"' : ''?>>自适应(无图时选最新)</option>
                </select></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>缩略图显示:</strong>会员上传的缩图可能尺寸不同，会因为尺寸不一影响排版</td>
                <td><select name="thumbdisplay">
                    <option value="fixed" <?=$config['thumbdisplay']=='fixed'?' selected="selected"':''?>>固定尺寸</option>
                    <option value="auto" <?=$config['thumbdisplay']=='auto'?'selected="selected"':''?>>自动尺寸</option>
                </select></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>商铺信息页显示所有缩略图:</strong>在shop.php页面显示商铺的所有缩略图，并设置缩略图大小</td>
                <td><select name="detail_allthumb_enable">
                    <option value="0"<?=!$config['detail_allthumb_enable']?' selected="selected"':''?>>否</option>
                    <option value="1"<?=$config['detail_allthumb_enable']?' selected="selected"':''?>>是</option>
                </select>&nbsp;<select name="detail_allthumb_sort">
                    <option value="big"<?=$config['detail_allthumb_sort']=='big'?' selected="selected"':''?>>大缩略图</option>
                    <option value="small"<?=$config['detail_allthumb_sort']=='small'?' selected="selected"':''?>>小缩略图</option>
                </select></td>
            </tr>
        </table>
    </div>
    <center><input type="submit" name="settingsubmit" value=" 提交 " class="btn" /></center>
</form>
</div>