<%@ Page Language="C#" MasterPageFile="../Admin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Public.Admin.LinkEdit" Codebehind="LinkEdit.aspx.cs" %>
<asp:Content ID="MyHead" ContentPlaceHolderID="cphHead" Runat="Server">
<script type="text/javascript">
//<![CDATA[
function addLoadEvent(func)
{
    if ( typeof MyOnload!='function')
    {
        MyOnload=func;
    }
    else
    {
        var Oldonload=MyOnload;MyOnload=function(){Oldonload();func();}
    }
}
//]]>
</script>
<script type="text/javascript" src="<%=AppUrl %>/Common/Script/xfn.js"></script>
</asp:Content>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMain" Runat="Server">

    <fieldset class="ContentBox">
    <div class="Head" onclick="BoxSwitch('mc_MemberNotice','si_MemberNotice')"><div class="Title"><%=MyTitle %></div><div id="si_MemberNotice" class="SwitchIcon_Up"></div></div>
    <div class="Body" id="mc_MemberNotice">
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px"><strong>注意事项：</strong></div><div class="ContentItem_03b" style="width:649px">
        <ul class="NotesMessage">
        <li>正确的选择XNF链接关系网，可以让搜索引擎以及其他自动化的程序更好的理解这些链接。</li>
        <li>"高级"框中可以设置更多的链接选项。</li>
        </ul>
        </div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px"><strong>快捷操作：</strong></div><div class="ContentItem_03b" style="width:649px">
        <input type="button" class="LinkButton" value="链接添加" onclick="location='LinkAdd<%=ExtensionName %>'" />
        <input type="button" class="LinkButton" value="链接管理" onclick="location='LinkManage<%=ExtensionName %>'" />
        <input type="button" class="LinkButton" value="链接分类管理" onclick="location='LinkCategoryManage<%=ExtensionName %>'" />
        </div></div>
    </div>
    <div class="Bottom"></div>
	</fieldset>
	<div class="ContentBox_Separator"></div>
    
    <fieldset class="ContentBox">
    <div class="Head" onclick="BoxSwitch('mc_MainBody','si_MainBody')"><div class="Title">基本资料</div><div id="si_MainBody" class="SwitchIcon_Up"></div></div>
    <div class="Body" id="mc_MainBody">    
        <table border="0" cellspacing="1" class="EditTable">
            <tr class="ItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='ItemTR';">
                <td class="NameTD">链接名称<br /><span class="Text_Notes">链接的显示名称，图标使用后会显示于名称之前</span></td>
                <td class="ValueTD">
                <img id="LinkIconPreview" alt="" src="" style="display:none;" />
                <asp:DropDownList ID="ddlIcon" runat="server"></asp:DropDownList>
                <asp:TextBox ID="tbName" runat="server"></asp:TextBox>
                <span class="Text_Stress">*</span> <span class="Text_Notes"><%=Ruiao.Public.Entity.pbLink.Name_MixLength%>-<%=Ruiao.Public.Entity.pbLink.Name_MaxLength %></span>
                </td>
            </tr>
            <tr class="sepItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='sepItemTR';">
                <td class="NameTD">连接地址<br /><span class="Text_Notes">链接的目标地址</span></td>
                <td class="ValueTD"><asp:TextBox ID="tbUrl" runat="server" Width="260px"></asp:TextBox>
                <span class="Text_Stress">*</span> <span class="Text_Notes"><%=Ruiao.Public.Entity.pbLink.Url_MixLength%>-<%=Ruiao.Public.Entity.pbLink.Url_MaxLength %></span>
                </td>
            </tr>
            <tr class="ItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='ItemTR';">
                <td class="NameTD">分类<br /><span class="Text_Notes">该链接所属的分类</span></td>
                <td class="ValueTD"><asp:DropDownList ID="ddlLinkCategory" runat="server"></asp:DropDownList>
                <span class="Text_Stress">*</span>
                </td>
            </tr>
            <tr class="sepItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='sepItemTR';">
                <td class="NameTD">简短描述<br /><span class="Text_Notes">该链接的简短描述，会出现在名称提示中</span></td>
                <td class="ValueTD"><asp:TextBox ID="tbDescription" runat="server" TextMode="MultiLine" Columns="30" Rows="5"></asp:TextBox>
                <span class="Text_Notes"><%=Ruiao.Public.Entity.pbLink.Description_MixLength %>-<%=Ruiao.Public.Entity.pbLink.Description_MaxLength %></span>
                </td>
            </tr>
            <tr class="sepItemTR">
                <td class="NameTD"></td>
                <td class="ValueTD"><asp:Button ID="btSave" runat="server" Text="保存设置" OnClick="btSave_Click" CssClass="SubmitButton" /></td>
            </tr>
        </table>
    </div>
	<div class="Bottom"></div>
	</fieldset>
	<div class="ContentBox_Separator"></div>
    
    <fieldset class="ContentBox">
    <div class="Head" onclick="BoxSwitch('mc_XNF','si_XNF')"><div class="Title">链接关系网(XNF)</div><div id="si_XNF" class="SwitchIcon_Down"></div></div>
    <div class="Body" id="mc_XNF" style="display:none;">
        <div class="ContentItem">
        <table class="editform" width="100%" cellspacing="2" cellpadding="5">
            <tr>
                <th scope="row" style="width:30%; text-align:right">关系：</th>
            	<td style="width:70%"><input type="text" name="link_rel" id="link_rel" size="50" /></td>
           	</tr>
            <tr>
                <th scope="row" style="text-align:right"><a href="http://gmpg.org/xfn/">XFN</a>引擎：</th>
            	<td>
					<table cellpadding="3" cellspacing="5">
	          <tr>
              <th scope="row"> 身份 </th>
              <td>
                <label for="me">
                <input type="checkbox" name="identity" value="me" id="me"  />
          我的另一个网站地址</label>
              </td>
            </tr>
            <tr>
              <th scope="row"> 友谊 </th>
              <td>
			    <label for="contact">
                <input class="valinp" type="radio" name="friendship" value="contact" id="contact"  /> 联系</label>
                <label for="acquaintance">
                <input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance"  />  熟人</label>
                <label id="friend">
                <input class="valinp" type="radio" name="friendship" value="friend" id="Radio1"  /> 朋友</label>
                <label for="friendship">
                <input name="friendship" type="radio" class="valinp" value="" id="friendship"  checked="checked" /> 无</label>
              </td>
            </tr>
            <tr>
              <th scope="row"> 接触 </th>
              <td>
                <label for="met">
                <input class="valinp" type="checkbox" name="physical" value="met" id="met"  />
          一面之交</label>
              </td>
            </tr>
            <tr>
              <th scope="row"> 职业关系 </th>
              <td>
                <label for="co-worker">
                <input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker"  />
          同事</label>
                <label for="colleague">
                <input class="valinp" type="checkbox" name="professional" value="colleague" id="colleague"  />
          亲密同事</label>
              </td>
            </tr>
            <tr>
              <th scope="row"> 同城 </th>
              <td>
                <label for="co-resident">
                <input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident"  />
          同居</label>
                <label for="neighbor">
                <input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor"  />
          邻居</label>
                <label for="geographical">
                <input class="valinp" type="radio" name="geographical" value="" id="geographical"  checked="checked" />
          无</label>
              </td>
            </tr>
            <tr>
              <th scope="row"> 家庭 </th>
              <td>
                <label for="child">
                <input class="valinp" type="radio" name="family" value="child" id="child"   />
          子女</label>
                <label for="kin">
                <input class="valinp" type="radio" name="family" value="kin" id="kin"   />
          亲戚</label>
                <label for="parent">
                <input class="valinp" type="radio" name="family" value="parent" id="parent"  />
          父母</label>
                <label for="sibling">
                <input class="valinp" type="radio" name="family" value="sibling" id="sibling"  />
          同胞</label>
                <label for="spouse">
                <input class="valinp" type="radio" name="family" value="spouse" id="spouse"  />
          配偶</label>
                <label for="family">
                <input class="valinp" type="radio" name="family" value="" id="family"  checked="checked" />
          无</label>
              </td>
            </tr>
            <tr>
              <th scope="row"> 罗曼史 </th>
              <td>
                <label for="muse">
                <input class="valinp" type="checkbox" name="romantic" value="muse" id="muse"  />
         单恋</label>
                <label for="crush">
                <input class="valinp" type="checkbox" name="romantic" value="crush" id="crush"  />
         好感</label>
                <label for="date">
                <input class="valinp" type="checkbox" name="romantic" value="date" id="date"  />
         交往</label>
                <label for="romantic">
                <input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic"  />
         恋人</label>
              </td>
            </tr>
        </table>
		  </td>
           	</tr>
        </table>
        </div>
    </div>
	<div class="Bottom"></div>
	</fieldset>
	<div class="ContentBox_Separator"></div>
    
    <fieldset class="ContentBox">
    <div class="Head" onclick="BoxSwitch('mc_Adv','si_Adv')"><div class="Title">高级选项</div><div id="si_Adv" class="SwitchIcon_Down"></div></div>
    <div class="Body" id="mc_Adv" style="display:none;">
    
        <table border="0" cellspacing="1" class="EditTable">
            <tr class="ItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='ItemTR';">
                <td class="NameTD">图片链接<br /><span class="Text_Notes">链接的相关图片</span></td>
                <td class="ValueTD">
                <asp:TextBox ID="tbImage" runat="server" Width="260px"></asp:TextBox>
                <span class="Text_Notes"><%=Ruiao.Public.Entity.pbLink.Image_MixLength%>-<%=Ruiao.Public.Entity.pbLink.Image_MaxLength%></span>
                </td>
            </tr>
            <tr class="sepItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='sepItemTR';">
                <td class="NameTD">RSS地址<br /><span class="Text_Notes">链接目标的RSS内容聚合地址</span></td>
                <td class="ValueTD"><asp:TextBox ID="tbRssUrl" runat="server" Width="260px"></asp:TextBox>
                <span class="Text_Notes"><%=Ruiao.Public.Entity.pbLink.RssUrl_MixLength%>-<%=Ruiao.Public.Entity.pbLink.RssUrl_MaxLength %></span>
                </td>
            </tr>
            <tr class="ItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='ItemTR';">
                <td class="NameTD">评级<br /><span class="Text_Notes">链接的评级，值越大，排在越前面</span></td>
                <td class="ValueTD"><asp:DropDownList ID="ddlRating" runat="server"></asp:DropDownList>
                </td>
            </tr>
            <tr class="sepItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='sepItemTR';">
                <td class="NameTD">打开目标<br /><span class="Text_Notes">此属性在严格的XHTML 1.1和1.0中是不合法的</span></td>
                <td class="ValueTD"><asp:DropDownList ID="ddlTarget" runat="server"></asp:DropDownList>
                </td>
            </tr>
            <tr class="ItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='ItemTR';">
                <td class="NameTD">公开显示<br /><span class="Text_Notes">如果不选中此项，则隐藏该链接，只能在管理中可见</span></td>
                <td class="ValueTD"><asp:CheckBox ID="cbxVisible" runat="server"  Checked="true" />
                </td>
            </tr>
            <tr class="sepItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='sepItemTR';">
                <td class="NameTD">附录<br /><span class="Text_Notes">链接的详细附录，一般显示于专门的链接列表中</span></td>
                <td class="ValueTD"><asp:TextBox ID="tbNotes" runat="server" TextMode="MultiLine" Columns="30" Rows="5"></asp:TextBox>
                <span class="Text_Notes"><%=Ruiao.Public.Entity.pbLink.Notes_MixLength %>-<%=Ruiao.Public.Entity.pbLink.Notes_MaxLength %></span>
                </td>
            </tr>
        </table>
    </div>
	<div class="Bottom"></div>
	</fieldset>
	<div class="ContentBox_Separator"></div>
<script type="text/javascript">if(typeof MyOnload=='function')MyOnload();</script>
</asp:Content>