<%@ Page Title="" Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true" CodeBehind="AddNewsFlash.aspx.cs" Inherits="Portal.Admin.AddNewsFlash" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">



    <br />


新闻标题 <asp:TextBox ID="txttitle" Width="300" runat="server"></asp:TextBox> <br />
    
图片地址 
       <asp:textbox id="image_small" Width="300px" Runat="server" ></asp:textbox>
        <asp:textbox id="image_big" Width="150px" Visible="false" Runat="server"></asp:textbox>
    
    
    
    <asp:RadioButtonList ID="RadioButtonList1" runat="server"   RepeatColumns="2" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"
         AutoPostBack="true">
    <asp:ListItem Text="本地上传" Value="0" Selected="True"></asp:ListItem>
     <asp:ListItem Text="站外URL" Value="1"></asp:ListItem>
    </asp:RadioButtonList>
    
        <asp:Panel runat="server" ID="pnl0">
        		<a href="#" onclick="window.open('Upload.aspx'); return false;" style=" color:Blue">点击上传本地图片并裁减</a>
        </asp:Panel>
        
            <asp:Panel runat="server" ID="pnl1">
            请输入URL 
            <input type="text" id="url" style=" width:200px" /> 
             <a href="#" onclick="myopen()">点击裁剪外部图片</a>
            </asp:Panel>
        
        
        <script>

            function myopen() {

              _url=document.getElementById("url").value;
              if (_url == "") {
                  alert("请输入外部URL，例如 http://www.dotnetcms.org/a.jpg");
                  return false;
              }
              else {


                  window.open("gen.aspx?url=" + _url);
                  return false;
              }
            
            }
        
        </script>
    
   
    <br />
    <asp:Button ID="Button1" runat="server" class="btn" OnClick="Button1_Click"  Text="更新" />
        <input type="button"  class="btn"  onclick="window.location='Newslist.aspx'"  value="返回" />
        
        
        
</asp:Content>
