<%@ Page Language="C#" MasterPageFile="~/Blogger/Admin/BloggerAdmin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Blogger.Plugins.RuiaoLink.Admin.LinkAdd" Codebehind="LinkAdd.aspx.cs" %>
<asp:Content ID="MyHead" ContentPlaceHolderID="phHead" 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="cphMainAdmin" Runat="Server">
<form id="MainForm" runat="server">
<div id="ContentTitle"><%=MyTitle %></div>
<div id="ContentBody">

    <div style="">
    <input type="button" class="LinkButton" value="管理链接" onclick="location='Default<%=ExtensionName %>'" />
    <input type="button" class="LinkButton" value="添加链接" onclick="location='LinkAdd<%=ExtensionName %>'" />
    <input type="button" class="LinkButton" value="链接分类" onclick="location='LinkCategoryManage<%=ExtensionName %>'" />
    </div>
    
    <fieldset class="ContentBox">
    <div class="ContentBox_Head" onclick="BoxSwitch('mcBody','siBody','/Blogger/Admin/Images/Box_')"><div style="float:left;">基本资料</div><div id="siBody" class="SwitchIcon_Up"></div></div> 
    <div class="ContentBox_ContentBox" id="mcBody">
        <div class="ContentBox_ContentItem">
        <table id="MainOptions" width="100%" border="0" cellpadding="3" cellspacing="0" class="Body">

		<tr>
        <td align="right" style="width: 15%">链接名称：</td>
        <td >
        <img id="LinkIconPreview" alt="" src="" style="display:none;" />
        <asp:DropDownList ID="ddlIcon" runat="server"></asp:DropDownList>
        <asp:TextBox ID="tbName" runat="server" Width="260px"></asp:TextBox>
        </td>
      	</tr>
      	
      	<tr>
        <td align="right" style="width: 15%">连接地址：</td>
        <td ><asp:TextBox ID="tbUrl" runat="server" Width="260px"></asp:TextBox></td>
      	</tr>
		
		<tr>
			<td align="right"style="width: 15%">简短描述：</td>
			<td ><asp:TextBox ID="tbDescription" runat="server" TextMode="MultiLine" Width="260px" Height="68px"></asp:TextBox></td>
		</tr>
		
		<tr>
        <td align="right" style="width: 15%">分类：</td>
        <td ><asp:DropDownList ID="ddlLinkCategory" runat="server"></asp:DropDownList></td>
      	</tr>
      	
	    </table>
        </div>
    </div>
	</fieldset>
    
    <div style="text-align:right; padding:5px">
    <asp:Button ID="btSave" runat="server" Text="添加链接" CssClass="SubmitButton" OnClick="btSave_Click" />
    </div>
        
    <fieldset class="ContentBox">
    <div class="ContentBox_Head" onclick="BoxSwitch('mcXNF','siXNF','/Blogger/Admin/Images/Box_')"><div style="float:left;">链接关系网(XNF)</div><div id="siXNF" class="SwitchIcon_Down"></div></div> 
    <div class="ContentBox_ContentBox" id="mcXNF" style="display:none;">
        <div class="ContentBox_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>
	</fieldset>
    <br />
        
    <fieldset class="ContentBox">
    <div class="ContentBox_Head" onclick="BoxSwitch('mcAdv','siAdv','/Blogger/Admin/Images/Box_')"><div style="float:left;">高级</div><div id="siAdv" class="SwitchIcon_Down"></div></div> 
    <div class="ContentBox_ContentBox" id="mcAdv" style="display:none;">
        <div class="ContentBox_ContentItem">
        <table id="Table1" width="100%" border="0" cellpadding="3" cellspacing="0" class="Body">

		<tr>
        <td align="right" style="width: 15%">图片链接：</td>
        <td ><asp:TextBox ID="tbImage" runat="server" Width="260px"></asp:TextBox></td>
      	</tr>
      	
      	<tr>
        <td align="right" style="width: 15%">RSS地址：</td>
        <td ><asp:TextBox ID="tbRssUrl" runat="server" Width="260px"></asp:TextBox></td>
      	</tr>
		
		<tr>
			<td align="right"style="width: 15%">附录：</td>
			<td ><asp:TextBox ID="tbNotes" runat="server" TextMode="MultiLine" Width="260px" Height="68px"></asp:TextBox></td>
		</tr>
		
		<tr>
        <td align="right" style="width: 15%">评级：</td>
        <td >
            <asp:DropDownList ID="ddlRating" runat="server">
            </asp:DropDownList></td>
      	</tr>
      	
      	<tr>
        <td align="right" style="width: 15%">打开目标：</td>
        <td >
            <asp:DropDownList ID="ddlTarget" runat="server">
            </asp:DropDownList>（注意：<code>target</code>属性在严格的XHTML 1.1和1.0中是不合法的。）</td>
      	</tr>
      	
      	<tr>
        <td align="right" style="width: 15%">公开显示：</td>
        <td >
            <asp:CheckBox ID="cbxVisible" runat="server"  Checked="true" /></td>
      	</tr>
      	
	    </table>
        </div>
    </div>
	</fieldset>
    <br />
</div>
<div id="ContentBottom"></div>
<script type="text/javascript">if(typeof MyOnload=='function')MyOnload();</script>
</form>
</asp:Content>