<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JuSNS.Web.home.privacy.index" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title id="ptitle" runat="server"> 隐私设置</title>
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>
<link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css" id="skinpath" type="text/css" rel="stylesheet" />
</head>
<body>
<!--头部-->
<%=this.GetHtmlShort()%>
<div id="divhead">
    <%=this.GetHtmlHead()%>
</div>

<div id="divbody">
    <div id="body_first">
        <div class="body_menu"> 
        <%=this.GetHtmlLeft()%>
        </div>
    </div>
    <div id="body_sec">
            <div id="body_mid"> 
                <div class="body_frame"> 
                 <!--主题内容中-->    
                
                <input type="hidden" id="txtYear" runat="server" /><input type="hidden" id="txtDay" runat="server" />                    
                        <div class="body_frame_otherinfo">
	                        <div class="title">
                                <div class="l"><img src="../../template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/acc.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor">隐私设置</span></div>
                                <div class="r"><a href="javascript:window.history.back();" title="返回上一页">返回上一页</a></div>
                                <div class="c"></div>
                            </div>
            		       
                            <div class="nav-menu">
                                <ul>
                                 <li class="cbg"></li>
                                 <li class="current"><a href="index.aspx">隐私设置</a></li>
                                 <li><a href="../base">帐户管理</a></li>
                                 <li><a href="../space/edit.aspx">空间设置</a></li>
                                 </ul>
                            </div>        
                     </div>
                    <div class="body_sec_all">
                    <div class="content-reshow">
                     你可以完全控制哪些人可以看到你的空间、心情日记、照片等。
                    </div>
                    <%=succSTR %>
                    <div class="content">
                    <div class="spline"></div>
	                <!--正文-->
                    <div class="line1"></div>
	                <!--有权限可看-->
                    <div runat="server" id="profile">
                            <form method="post" action="../privacy/?a=profile">
                                <div class="content">
                                <h3>基本设置</h3>
                                    <label class="f-label1">我的空间</label>
                                    <select name="PrivacySpace" id="PrivacySpace">
                                        <option value="0" <%=sected(PRI.PrivacySpace,0) %>>全站用户可见</option>
                                        <option value="1" <%=sected(PRI.PrivacySpace,1) %>>相同网络用户及好友可见</option>
                                        <option value="2" <%=sected(PRI.PrivacySpace,2) %>>仅好友可见</option>
                                        <option value="3" <%=sected(PRI.PrivacySpace,3) %>>仅自己可见</option>
                                    </select>
                                </div>
                                <div class="content">
                                    <label class="f-label1">
                                        个人信息</label>
                                    <select name="PrivacyFavourite" id="PrivacyFavourite">
                                        <option value="0" <%=sected(PRI.PrivacyFavourite,0) %>>全站用户可见</option>
                                        <option value="1" <%=sected(PRI.PrivacyFavourite,1) %>>相同网络用户及好友可见</option>
                                        <option value="2" <%=sected(PRI.PrivacyFavourite,2) %>>仅好友可见</option>
                                        <option value="3" <%=sected(PRI.PrivacyFavourite,3) %>>仅自己可见</option>
                                    </select>
                                </div>
                                <div class="content">
                                    <label class="f-label1">
                                        教育和工作信息</label>
                                    <select name="PrivacyEducate" id="PrivacyEducate">
                                        <option value="0" <%=sected(PRI.PrivacyEducate,0) %>>全站用户可见</option>
                                        <option value="1" <%=sected(PRI.PrivacyEducate,1) %>>相同网络用户及好友可见</option>
                                        <option value="2" <%=sected(PRI.PrivacyEducate,2) %>>仅好友可见</option>
                                        <option value="3" <%=sected(PRI.PrivacyEducate,3) %>>仅自己可见</option>
                                    </select>
                                </div>
                                <div class="content">
                                    <label class="f-label1">
                                        我被圈的照片</label>
                                    <select name="PrivacyLasso" id="PrivacyLasso">
                                        <option value="0" <%=sected(PRI.PrivacyLasso,0) %>>全站用户可见</option>
                                        <option value="1" <%=sected(PRI.PrivacyLasso,1) %>>相同网络用户及好友可见</option>
                                        <option value="2" <%=sected(PRI.PrivacyLasso,2) %>>仅好友可见</option>
                                        <option value="3" <%=sected(PRI.PrivacyLasso,3) %>>仅自己可见</option>
                                    </select>
                                 </div>
                                <div class="content">
                                    <label class="f-label1">
                                        好友列表</label>
                                    <select name="PrivacyFriends" id="PrivacyFriends">
                                        <option value="0" <%=sected(PRI.PrivacyFriends,0) %>>全站用户可见</option>
                                        <option value="1" <%=sected(PRI.PrivacyFriends,1) %>>相同网络用户及好友可见</option>
                                        <option value="2" <%=sected(PRI.PrivacyFriends,2) %>>仅好友可见</option>
                                        <option value="3" <%=sected(PRI.PrivacyFriends,3) %>>仅自己可见</option>
                                    </select>
                                </div>
                                <div class="content">
                                    <label class="f-label1">
                                        留言板</label>
                                    <select name="PrivacyLeaveWord" id="PrivacyLeaveWord">
                                        <option value="0" <%=sected(PRI.PrivacyLeaveWord,0) %>>全站用户可见</option>
                                        <option value="1" <%=sected(PRI.PrivacyLeaveWord,1) %>>相同网络用户及好友可见</option>
                                        <option value="2" <%=sected(PRI.PrivacyLeaveWord,2) %>>仅好友可见</option>
                                        <option value="3" <%=sected(PRI.PrivacyLeaveWord,3) %>>仅自己可见</option>
                                    </select>
                                </div>
                                <div class="content">
                                    <label class="f-label1">
                                        心情日记</label>
                                    <select name="PrivacyMiniBlog" id="PrivacyMiniBlog">
                                        <option value="0" <%=sected(PRI.PrivacyMiniBlog,0) %>>全站用户可见</option>
                                        <option value="1" <%=sected(PRI.PrivacyMiniBlog,1) %>>相同网络用户及好友可见</option>
                                        <option value="2" <%=sected(PRI.PrivacyMiniBlog,2) %>>仅好友可见</option>
                                        <option value="3" <%=sected(PRI.PrivacyMiniBlog,3) %>>仅自己可见</option>
                                    </select>
                                </div>
                                <div class="content">
                                    <label class="f-label1">
                                        相册</label>
                                    <a href="/home/privacy/?a=album">设置隐私</a>
                                </div>
                                <div class="content">
                                    <label class="f-label1">
                                        分享</label>
                                    <select name="PrivacyShare" id="PrivacyShare">
                                        <option value="0" <%=sected(PRI.PrivacyShare,0) %>>全站用户可见</option>
                                        <option value="1" <%=sected(PRI.PrivacyShare,1) %>>相同网络用户及好友可见</option>
                                        <option value="2" <%=sected(PRI.PrivacyShare,2) %>>仅好友可见</option>
                                        <option value="3" <%=sected(PRI.PrivacyShare,3) %>>仅自己可见</option>
                                    </select>
                                </div>
                                <div class="content">                                    
                                <label class="f-label1">
                                        群组</label>
                                    <select name="PrivacyGroup" id="PrivacyGroup">
                                        <option value="0" <%=sected(PRI.PrivacyGroup,0) %>>全站用户可见</option>
                                        <option value="1" <%=sected(PRI.PrivacyGroup,1) %>>相同网络用户及好友可见</option>
                                        <option value="2" <%=sected(PRI.PrivacyGroup,2) %>>仅好友可见</option>
                                        <option value="3" <%=sected(PRI.PrivacyGroup,3) %>>仅自己可见</option>
                                    </select>
                                </div>
                                <div class="content">
                                    <label class="f-label1">
                                        电影</label>
                                    <select name="PrivacyMovies" id="PrivacyMovies">
                                        <option value="0" <%=sected(PRI.PrivacyMovies,0) %>>全站用户可见</option>
                                        <option value="1" <%=sected(PRI.PrivacyMovies,1) %>>相同网络用户及好友可见</option>
                                        <option value="2" <%=sected(PRI.PrivacyMovies,2) %>>仅好友可见</option>
                                        <option value="3" <%=sected(PRI.PrivacyMovies,3) %>>仅自己可见</option>
                                    </select>
                                </div>
                                <div class="content">
                                <label class="f-label1">
                                        &nbsp;</label>
                                    <input type="submit" class="f-button" value="保存设置" />
                                </div>
                            </form>
                    <div class="line1"></div>
                        <div class="content">
                            <h3>个人动态设置</h3>
                            <div class="content-reshow">
                                <%# JuSNS.Config.UiConfig.SiteName%>将把修改个人资料等动作反映到个人动态里，方便朋友了解你的动态。<br />
                                你可以控制是否在下列动作发生时，在个人动态里发布相关信息。
                            </div>
                            <form method="post" action="/home/privacy/?a=profile">
                                <div class="content">
                                    <label for="minifeedProfile_space" >
                                        <input type="checkbox" id="minifeedProfile_space" name="minifeedProfile_space" value="1"
                                            <%=chked(PRI.ActUpdateData, 1)%>  /> 个人资料更新</label>
                               </div>
                                <div class="content">
                                    <label for="minifeedFriend" >
                                        <input type="checkbox" id="minifeedFriend" name="minifeedFriend" value="1" <%=chked(PRI.ActAddFriend, 1)%> />
                                        添加好友（邀请注册，注册）</label>
                                   </div>
                                <div class="content">
                                    <label for="minifeedWall" >
                                        <input type="checkbox" id="minifeedWall" name="minifeedWall" value="1" <%=chked(PRI.ActLeaveWord, 1)%> />
                                        留言板(问答，打招呼)</label>
                                </div>
                                <div class="content">
                                    <label for="minifeedPhotoComment" >
                                        <input type="checkbox" id="minifeedPhotoComment" name="minifeedPhotoComment" value="1"
                                            <%=chked(PRI.ActPicComment, 1)%> />
                                        相册（图片评论）</label>
                                   </div>
                                <div class="content">
                                    <label for="minifeedGroup_leave" >
                                        <input type="checkbox" id="minifeedGroup_leave" name="minifeedGroup_leave" value="1"
                                            <%=chked(PRI.ActSecede, 1)%> />
                                        账本、礼物、应用程序</label>
                                   </div>
                                <div class="content">
                                    <label for="minifeedGroupPost" >
                                        <input type="checkbox" id="minifeedGroupPost" name="minifeedGroupPost" value="1"
                                            <%=chked(PRI.ActDeliver, 1)%> />
                                        群组、发表主题</label>
                                   </div>
                                <div class="content">
                                    <label for="minifeedBlogComment" >
                                        <input type="checkbox" id="minifeedBlogComment" name="minifeedBlogComment" value="1"
                                            <%=chked(PRI.ActLogComment, 1)%> />
                                        日志、日记、新闻</label>
                               </div>
                                <div class="content">
                                    <label for="minifeedMovie" >
                                        <input type="checkbox" id="minifeedMovie" name="minifeedMovie" value="1" <%=chked(PRI.ActMovieComment, 1)%> />
                                        电影、投票</label>
                                 </div>
                                <div class="content">
                                    <label for="minifeedPhotoTag" >
                                        <input type="checkbox" id="minifeedPhotoTag" name="minifeedPhotoTag" value="1" <%=chked(PRI.ActPhotoLasso, 1)%> />
                                        照片圈人</label>
                                   
                                   </div>
                                <div class="content">
                                   
                                    <label for="minifeedShareComment" >
                                        <input type="checkbox" id="minifeedShareComment" name="minifeedShareComment" value="1"
                                            <%=chked(PRI.ActShareComment, 1)%> />
                                        分享评论</label>
                               </div>
                                <div class="content">
                                    <input type="hidden" name="a" value="minifeed" />
                                    <input type="submit" class="f-button" value="保存设置" />
                                </div>
                            </form>
                        </div>
                    </div>	   
                    
                    <!--相册权限-->       
                    <div id="wrap" runat="server" class="content">
                        <h3>相册隐私设置</h3>
                        <div class="content-reshow">
                            你可以为每个相册设置独立的隐私。
                       </div>
                     <form action="/home/privacy/index.aspx?a=album" method="post" id="photo-privacy">
                        <asp:Repeater ID="albumform" runat="server">
                            <HeaderTemplate>
                              <div class="nl privacy-album"> 
                              <br /> 
                            <ul class="il">
                            </HeaderTemplate>
                            <ItemTemplate>
                                <li>
                                   <div class="pstr center">
                                     <select name="attr[<%# Eval("AlbumID") %>]">
                                        <option value="0" <%# sected(Eval("Privacy"),0) %>>全站用户可见</option>
                                        <option value="1" <%# sected(Eval("Privacy"),1) %>>相同网络及好友可见</option>
                                        <option value="2" <%# sected(Eval("Privacy"),2) %>>仅好友可见</option>
                                        <option value="3" <%# sected(Eval("Privacy"),3) %>>仅自己可见</option>
                                    </select>
                                   </div>                                
                                    <div class="pstrr center">
                                        <a href="../album/albumview.aspx?r[0]=<%# Eval("UserID") %>&r[1]=<%# Eval("AlbumID") %>"><img src="<%# getCover(Eval("AlbumID")) %>" alt="相册" />
                                   </div>
                                   <div class="pstrr center bold">
                                     <%# Eval("Title") %></a>
                                   </div>
                                    <div class="spline"></div>
                                    <div class="spline"></div>
                                </li>
                            </ItemTemplate>
                            <FooterTemplate>
                                </ul>
                                </div>
                                <div class="pstr center">
                                    <input type="submit" class="f-button" value="保存设置" />
                                    <input type="button" class="f-button" value="取消" onclick="window.location='../privacy'" />
                                </div>
                            </FooterTemplate>
                        </asp:Repeater>
                    </form>
                </div>
               </div> 
                    </div>
                    
                    </div>
                   <!--底部-->
                     <div class="divbottom">
                      <%=this.GetHtmlFoot()%>
                      </div>
         </div>
         </div>
         </div>           
</body>
</html>