<script type="text/javascript" src="{$_config[siteurl]}include/javascript/ajax.js"></script>
<script type="text/javascript" src="{$_config[siteurl]}include/javascript/myinfo.js"></script>
<div id="body">
<div class="link_path"><a href="{$_config[siteurl]}">首页</a>&nbsp;&raquo;&nbsp;<a href="index.php">我的助手</a>&nbsp;&raquo;&nbsp;$ac_title</div>
<div id="my_left">
<!--{template 'menu','member','./templates/member'}-->
</div>
<div id="my_right">
    <div class="mainrail">
        <h1>我的设置</h1>
        <form method="post" action="index.php?ac=space&" name="spacefrm" class="mysetform">
        <table width="100%" id="changepw-table" class="maintbale">
            <tr><td align="right">&nbsp;</td><td><a href="{$_modules[space][url]}index.php?suid=$user->uid">浏览我的个人空间</a></td>
            <tr><td width="95" align="right">个人空间名称：</td><td><input type="text" class="text" name="spacename" value="$spaceinfo[spacename]" size="50" />&nbsp;&nbsp;限<span class="font_2">100</span>个字符</td></tr>
            <tr><td align="right">空间描述：</td><td><input type="text" class="text" name="spacedescribe" value="$spaceinfo[spacedescribe]" size="50" />&nbsp;&nbsp;限<span class="font_2">200</span>个字符</td></tr>
            <tr><td align="right">空间风格：</td><td><select name="space_styleid">
                <option value="">选择空间风格</option>
                <option value="0"{if empty($spaceinfo[space_styleid])} selected="selected"{/if}>不使用风格</option>
                <!--{loop $_templates['space'] $tid $tval}-->
                <option value="$tid"{if $tid==$spaceinfo[space_styleid]} selected="selected"{/if}>$tval[name]</option>
                <!--{/loop}-->
            </select>&nbsp;&nbsp;<a href="javascript:viewstyle();">预览</a></td></tr>
            <tr><td align="right">&nbsp;</td><td><button type="submit" name="mysubmit" value="yes">提交</button></td></tr>
        </table>
        </form>
    </div>
</div>
</div>
<script type="text/javascript">
function viewstyle () {
    var space_styleid = document.spacefrm.space_styleid.value;
    if(is_numeric(space_styleid)&&space_styleid>0) {
        window.open("{$_modules[space][url]}index.php?action=viewstyle&space_styleid="+space_styleid);
    } else {
        alert('未选择风格模板。');
    }
}
</script>