<?php defined('IN_DESTOON') or exit('Access Denied');?><?php include template('header', 'member');?>
<script type="text/javascript">c(3);</script>
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="tab" id="Tab0"><a href="home.php"><span>商铺设置</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab1"><a href="style.php"><span>模板设置</span></a></td>
<td class="tab_nav">&nbsp;</td>
<td class="tab" id="Tab2"><a href="<?php echo DT_PATH;?>index.php?homepage=<?php echo $_username;?>&update=1" target="homepage"><span>更新主页</span></a></td>
</tr>
</table>
</div>
<form method="post" action="home.php" id="dform">
<table cellspacing="1" cellpadding="6" class="tb">
<tr style="display:<?php if($MG['home_menu']) { ?><?php } else { ?>none<?php } ?>;">
<td class="tl">菜单设置<br/><br/><br/><a href="home.php?action=reset&item=menu" class="t" onclick="return confirm('确定要恢复默认吗？');">恢复默认</a></td>
<td class="tr">
<table cellpadding="3" cellspacing="3">
<tr align="center">
<td width="50">显示</td>
<td width="50">排序</td>
<td width="100">名称</td>
<td width="50">分页</td>
</tr>
<?php if(is_array($HMENU)) { foreach($HMENU as $k => $v) { ?>
<?php if(strpos($menu_c, ','.$k.',') !== false) { ?>
<tr align="center">
<td>
<input type="checkbox" name="menu_show_tmp" value="<?php echo $k;?>"<?php if($menu_show[$k]) { ?> checked<?php } ?> onclick="Dd('menu_show_<?php echo $k;?>').value=this.checked ? 1 : 0;"/><input type="hidden" name="setting[menu_show][<?php echo $k;?>]" value="<?php echo $menu_show[$k];?>" id="menu_show_<?php echo $k;?>"/>
</td>
<td><input type="text" name="setting[menu_order][<?php echo $k;?>]" size="3" value="<?php echo $menu_order[$k];?>"/></td>
<td><input type="text" name="setting[menu_name][<?php echo $k;?>]" size="20" value="<?php echo $menu_name[$k];?>"/></td>
<td><input type="text" name="setting[menu_num][<?php echo $k;?>]" size="3" value="<?php echo $menu_num[$k];?>"/>
<input type="hidden" name="setting[menu_file][<?php echo $k;?>]" value="<?php echo $menu_file[$k];?>"/></td>
</tr>
<?php } else { ?>
<tr style="display:none;">
<td>
<input type="checkbox" name="menu_show_tmp" value="<?php echo $k;?>"/><input type="hidden" name="setting[menu_show][<?php echo $k;?>]" value="0" id="menu_show_<?php echo $k;?>"/>
</td>
<td><input type="text" name="setting[menu_order][<?php echo $k;?>]" size="3" value="<?php echo $menu_order[$k];?>"/></td>
<td><input type="text" name="setting[menu_name][<?php echo $k;?>]" size="20" value="<?php echo $menu_name[$k];?>"/></td>
<td><input type="text" name="setting[menu_num][<?php echo $k;?>]" size="3" value="<?php echo $menu_num[$k];?>"/>
<input type="hidden" name="setting[menu_file][<?php echo $k;?>]" value="<?php echo $menu_file[$k];?>"/></td>
</tr>
<?php } ?>
<?php } } ?>
</table>
</td>
</tr>
<tr style="display:<?php if($MG['home_side']) { ?><?php } else { ?>none<?php } ?>;">
<td class="tl">侧栏设置<br/><br/><br/><a href="home.php?action=reset&item=side" class="t" onclick="return confirm('确定要恢复默认吗？');">恢复默认</a></td>
<td class="tr">
<table cellpadding="3" cellspacing="3">
<tr align="center">
<td width="50">显示</td>
<td width="50">排序</td>
<td width="100">名称</td>
<td width="50">数量</td>
</tr>
<?php if(is_array($HSIDE)) { foreach($HSIDE as $k => $v) { ?>
<?php if(strpos($side_c, ','.$k.',') !== false) { ?>
<tr align="center">
<td>
<input type="checkbox" name="side_show_tmp" value="<?php echo $k;?>"<?php if($side_show[$k]) { ?> checked<?php } ?> onclick="Dd('side_show_<?php echo $k;?>').value=this.checked ? 1 : 0;"/><input type="hidden" name="setting[side_show][<?php echo $k;?>]" value="<?php echo $side_show[$k];?>" id="side_show_<?php echo $k;?>"/></td>
<td><input type="text" name="setting[side_order][<?php echo $k;?>]" size="3" value="<?php echo $side_order[$k];?>"/></td>
<td><input type="text" name="setting[side_name][<?php echo $k;?>]" size="20" value="<?php echo $side_name[$k];?>"/></td>
<td><input type="text" name="setting[side_num][<?php echo $k;?>]" size="3" value="<?php echo $side_num[$k];?>"/>
<input type="hidden" name="setting[side_file][<?php echo $k;?>]" size="3" value="<?php echo $side_file[$k];?>"/></td>
</tr>
<?php } else { ?>
<tr style="display:none;">
<td>
<input type="checkbox" name="side_show_tmp" value="<?php echo $k;?>"/><input type="hidden" name="setting[side_show][<?php echo $k;?>]" value="0" id="side_show_<?php echo $k;?>"/></td>
<td><input type="text" name="setting[side_order][<?php echo $k;?>]" size="3" value="<?php echo $side_order[$k];?>"/></td>
<td><input type="text" name="setting[side_name][<?php echo $k;?>]" size="20" value="<?php echo $side_name[$k];?>"/></td>
<td><input type="text" name="setting[side_num][<?php echo $k;?>]" size="3" value="<?php echo $side_num[$k];?>"/>
<input type="hidden" name="setting[side_file][<?php echo $k;?>]" size="3" value="<?php echo $side_file[$k];?>"/></td>
</tr>
<?php } ?>
<?php } } ?>
</table>
</td>
</tr>
<tr style="display:<?php if($MG['home_main']) { ?><?php } else { ?>none<?php } ?>;">
<td class="tl">首页主栏设置<br/><br/><br/><a href="home.php?action=reset&item=main" class="t" onclick="return confirm('确定要恢复默认吗？');">恢复默认</a></td>
<td class="tr">
<table cellpadding="3" cellspacing="3">
<tr align="center">
<td width="50">显示</td>
<td width="50">排序</td>
<td width="100">名称</td>
<td width="50">数量</td>
</tr>
<?php if(is_array($HMAIN)) { foreach($HMAIN as $k => $v) { ?>
<?php if(strpos($main_c, ','.$k.',') !== false) { ?>
<tr align="center">
<td>
<input type="checkbox" name="main_show_tmp" value="<?php echo $k;?>"<?php if($main_show[$k]) { ?> checked<?php } ?> onclick="Dd('main_show_<?php echo $k;?>').value=this.checked ? 1 : 0;"/><input type="hidden" name="setting[main_show][<?php echo $k;?>]" value="<?php echo $main_show[$k];?>" id="main_show_<?php echo $k;?>"/></td>
<td><input type="text" name="setting[main_order][<?php echo $k;?>]" size="3" value="<?php echo $main_order[$k];?>"/></td>
<td><input type="text" name="setting[main_name][<?php echo $k;?>]" size="20" value="<?php echo $main_name[$k];?>"/></td>
<td><input type="text" name="setting[main_num][<?php echo $k;?>]" size="3" value="<?php echo $main_num[$k];?>"/>
<input type="hidden" name="setting[main_file][<?php echo $k;?>]" size="3" value="<?php echo $main_file[$k];?>"/></td>
</tr>
<?php } else { ?>
<tr style="display:none;">
<td>
<input type="checkbox" name="main_show_tmp" value="<?php echo $k;?>"/><input type="hidden" name="setting[main_show][<?php echo $k;?>]" value="0" id="main_show_<?php echo $k;?>"/></td>
<td><input type="text" name="setting[main_order][<?php echo $k;?>]" size="3" value="<?php echo $main_order[$k];?>"/></td>
<td><input type="text" name="setting[main_name][<?php echo $k;?>]" size="20" value="<?php echo $main_name[$k];?>"/></td>
<td><input type="text" name="setting[main_num][<?php echo $k;?>]" size="3" value="<?php echo $main_num[$k];?>"/>
<input type="hidden" name="setting[main_file][<?php echo $k;?>]" size="3" value="<?php echo $main_file[$k];?>"/></td>
</tr>
<?php } ?>
<?php } } ?>
</table>
</td>
</tr>
<tr>
<td class="tl">显示设置</td>
<td class="tr">
<input type="radio" name="setting[side_pos]" value="0" id="s_p_0"<?php if($side_pos==0) { ?> checked<?php } ?>/><label for="s_p_0"> 侧栏在左</label>&nbsp;&nbsp;
<input type="radio" name="setting[side_pos]" value="1" id="s_p_1"<?php if($side_pos==1) { ?> checked<?php } ?>/><label for="s_p_1"> 侧栏在右</label> 
</td>
</tr>
<tr>
<td class="tl">访问统计</td>
<td class="tr">
<input type="radio" name="setting[show_stats]" value="1" id="s_s_1"<?php if($show_stats==1) { ?> checked<?php } ?>/><label for="s_s_1"> 显示</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="setting[show_stats]" value="0" id="s_s_0"<?php if($show_stats==0) { ?> checked<?php } ?>/><label for="s_s_0"> 不显示</label> 
</td>
</tr>
<tr>
<td class="tl">侧栏宽度</td>
<td class="tr"><input type="text" size="5" name="setting[side_width]" value="<?php echo $side_width;?>"/> px</td>
</tr>
<tr>
<td class="tl">公司简介显示</td>
<td class="tr"><input type="text" size="5" name="setting[intro_length]" value="<?php echo $intro_length;?>"/> 字符</td>
</tr>
<tr>
<td class="tl">自定义背景颜色</td>
<td class="tr"><input name="setting[bgcolor]" type="text" size="10" id="bgcolor" value="<?php echo $bgcolor;?>"/> 例如红色为 red 或者 #FF0000</td>
</tr>
<tr>
<td class="tl">自定义背景图</td>
<td class="tr"><input name="setting[background]" type="text" size="60" id="background" value="<?php echo $background;?>" readonly/>&nbsp;&nbsp;<span onclick="Dthumb(<?php echo $moduleid;?>,0,0, Dd('background').value, true, 'background');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="_preview(Dd('background').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('background').value='';" class="jt">[删除]</span></td>
</tr>
<tr>
<td class="tl">自定义LOGO</td>
<td class="tr"><input name="setting[logo]" type="text" size="60" id="logo" value="<?php echo $logo;?>" readonly/>&nbsp;&nbsp;<span onclick="Dthumb(<?php echo $moduleid;?>,0,0, Dd('logo').value, true, 'logo');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="_preview(Dd('logo').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('logo').value='';" class="jt">[删除]</span></td>
</tr>
<tr>
<td class="tl">横幅显示方式</td>
<td class="tr">
<input name="setting[bannert]" type="radio" id="bannert_0" value="0"<?php if($bannert==0) { ?> checked<?php } ?> onclick="Ds('bt_0');Dh('bt_1');Dh('bt_2');"/> <label for="bannert_0">图片</label>&nbsp;&nbsp;
<input name="setting[bannert]" type="radio" id="bannert_1" value="1"<?php if($bannert==1) { ?> checked<?php } ?> onclick="Dh('bt_0');Ds('bt_1');Dh('bt_2');"/> <label for="bannert_1">Flash</label>&nbsp;&nbsp;
<input name="setting[bannert]" type="radio" id="bannert_2" value="2"<?php if($bannert==2) { ?> checked<?php } ?> onclick="Dh('bt_0');Dh('bt_1');Ds('bt_2');"/> <label for="bannert_2">幻灯片</label>&nbsp;&nbsp;
</td>
</tr>
<tr>
<td class="tl">横幅宽度</td>
<td class="tr">
<input type="text" size="5" name="setting[bannerw]" value="<?php echo $bannerw;?>" id="bannerw"/> px
&nbsp;&nbsp;&nbsp;&nbsp;高度
<input type="text" size="5" name="setting[bannerh]" value="<?php echo $bannerh;?>" id="bannerh"/> px
</td>
</tr>
<tr id="bt_0" style="display:<?php if($bannert!=0) { ?>none<?php } ?>;">
<td class="tl">横幅图片地址</td>
<td class="tr"><input name="setting[banner]" type="text" size="60" id="banner" value="<?php echo $banner;?>" readonly/>&nbsp;&nbsp;<span onclick="Dthumb(<?php echo $moduleid;?>,0,0, Dd('banner').value, true, 'banner');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="_preview(Dd('banner').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('banner').value='';" class="jt">[删除]</span></td>
</tr>
<tr id="bt_1" style="display:<?php if($bannert!=1) { ?>none<?php } ?>;">
<td class="tl">横幅Flash地址</td>
<td class="tr"><input name="setting[bannerf]" type="text" size="60" id="bannerf" value="<?php echo $bannerf;?>" readonly/>&nbsp;&nbsp;<span onclick="Dfile(<?php echo $moduleid;?>, Dd('bannerf').value, 'bannerf', 'swf');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="if(Dd('bannerf').value) window.open(Dd('bannerf').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('bannerf').value='';" class="jt">[删除]</span> <span id="dflash" class="f_red"></span></td>
</tr>
<tbody id="bt_2" style="display:<?php if($bannert!=2) { ?>none<?php } ?>;">
<tr>
<td class="tl f_red">系统提示</td>
<td class="tr f_gray">&nbsp;仅支持jpg格式图片，且最少上传2张</td>
</tr>
<tr>
<td class="tl">横幅图片地址1</td>
<td class="tr"><input name="setting[banner1]" type="text" size="60" id="banner1" value="<?php echo $banner1;?>" readonly/>&nbsp;&nbsp;<span onclick="Dthumb(<?php echo $moduleid;?>,Dd('bannerw').value,Dd('bannerh').value, Dd('banner1').value, true, 'banner1', 'jpg');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="_preview(Dd('banner1').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('banner1').value='';" class="jt">[删除]</span></td>
</tr>
<tr>
<td class="tl">横幅图片地址2</td>
<td class="tr"><input name="setting[banner2]" type="text" size="60" id="banner2" value="<?php echo $banner2;?>" readonly/>&nbsp;&nbsp;<span onclick="if(Dd('banner1').value==''){alert('请先上传横幅图片地址1');return false;}Dthumb(<?php echo $moduleid;?>,Dd('bannerw').value,Dd('bannerh').value, Dd('banner2').value, true, 'banner2');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="_preview(Dd('banner2').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('banner2').value='';" class="jt">[删除]</span></td>
</tr>
<tr>
<td class="tl">横幅图片地址3</td>
<td class="tr"><input name="setting[banner3]" type="text" size="60" id="banner3" value="<?php echo $banner3;?>" readonly/>&nbsp;&nbsp;<span onclick="if(Dd('banner2').value==''){alert('请先上传横幅图片地址2');return false;}Dthumb(<?php echo $moduleid;?>,Dd('bannerw').value,Dd('bannerh').value, Dd('banner3').value, true, 'banner3');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="_preview(Dd('banner3').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('banner3').value='';" class="jt">[删除]</span></td>
</tr>
<tr>
<td class="tl">横幅图片地址4</td>
<td class="tr"><input name="setting[banner4]" type="text" size="60" id="banner4" value="<?php echo $banner4;?>" readonly/>&nbsp;&nbsp;<span onclick="if(Dd('banner3').value==''){alert('请先上传横幅图片地址3');return false;}Dthumb(<?php echo $moduleid;?>,Dd('bannerw').value,Dd('bannerh').value, Dd('banner4').value, true, 'banner4');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="_preview(Dd('banner4').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('banner4').value='';" class="jt">[删除]</span></td>
</tr>
<tr>
<td class="tl">横幅图片地址5</td>
<td class="tr"><input name="setting[banner5]" type="text" size="60" id="banner5" value="<?php echo $banner5;?>" readonly/>&nbsp;&nbsp;<span onclick="if(Dd('banner4').value==''){alert('请先上传横幅图片地址4');return false;}Dthumb(<?php echo $moduleid;?>,Dd('bannerw').value,Dd('bannerh').value, Dd('banner5').value, true, 'banner5');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="_preview(Dd('banner5').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('banner5').value='';" class="jt">[删除]</span></td>
</tr>
</tbody>
<tr>
<td class="tl">形象视频地址</td>
<td class="tr"><input name="setting[video]" type="text" size="60" id="video" value="<?php echo $video;?>"/>&nbsp;&nbsp;<span onclick="Dfile(<?php echo $moduleid;?>, Dd('video').value, 'video', 'flv|mp4|wma|wav');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="vs();" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('video').value='';" class="jt">[删除]</span>
<div id="v_player"></div>
<?php echo load('page.js');?>
<script type="text/javascript">
function vs() {
if(Dd('video').value.length > 5) {
Ds('v_player');
Inner('v_player', player(Dd('video').value,480,400,'',1)+'<br/><a href="javascript:" onclick="vh();" class="t">[关闭预览]</a>');
} else {
vh();
}
}
function vh() {Inner('v_player', '');Dh('v_player');}
</script>
</td>
</tr>
<tr>
<td class="tl">自定义CSS</td>
<td class="tr"><textarea name="setting[css]" id="css" style="width:500px;height:60px;overflow:visible;font-family:Fixedsys"><?php echo $css;?></textarea></td>
</tr>
<tr>
<td class="tl">网站公告<br/>(支持html)</td>
<td class="tr"><textarea name="setting[announce]" id="announce" style="width:500px;height:60px;"><?php echo $announce;?></textarea></td>
</tr>
<tr>
<td class="tl">首页SEO标题</td>
<td class="tr"><input type="text" size="60" name="setting[seo_title]" value="<?php echo $seo_title;?>"/> 不设置则显示公司名称</td>
</tr>
<tr>
<td class="tl">网站关键词</td>
<td class="tr"><input type="text" size="80" name="setting[seo_keywords]" value="<?php echo $seo_keywords;?>"/></td>
</tr>
<tr>
<td class="tl">网站描述</td>
<td class="tr"><input type="text" size="80" name="setting[seo_description]" value="<?php echo $seo_description;?>"/></td>
</tr>
<?php if($api_map && $MG['map']) { ?>
<?php include DT_ROOT.'/api/map/'.$api_map.'/post.inc.php';?>
<?php } ?>
<?php if($api_stats && $MG['stats']) { ?>
<?php include DT_ROOT.'/api/stats/'.$api_stats.'/post.inc.php';?>
<?php } ?>
<?php if($api_kf && $MG['kf']) { ?>
<?php include DT_ROOT.'/api/kf/'.$api_kf.'/post.inc.php';?>
<?php } ?>
<tr>
<td class="tl">&nbsp;</td>
<td class="tr" height="30"><input type="submit" name="submit" value=" 保 存 " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" value=" 恢复默认 " class="btn" onclick="if(confirm('确定要恢复默认设置吗？当前所有设置将被清空')){this.form.action='home.php?reset=1';}else{return false;}"/></td>
</tr>
</table>
</form>
<?php echo load('clear.js');?>
<script type="text/javascript">s('homepage');m('Tab0');</script>
<?php include template('footer', 'member');?>