Using text +asp to build News publishing System (ii) News add

Source: Internet
Author: User
Tags eval client
<!--#include file= "news_session.asp"-->

<meta http-equiv= "Content-language" content= "ZH-CN" >
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<style type= "Text/css" >
. buttonface {
Background-color: #0079F2; Border-bottom: #333333 1px outset; Border-left: #333333 1px outset; Border-right: #ffffff 1px outset; Border-top: #ffffff 1px outset; COLOR: #ffffff; Font-size:9pta {color: #000000; Text-decoration:none}
</style>
<script Id=clienteventhandlersjs language=javascript>
<!--

function Client_onblur (ii) {
Server=eval ("Form1.server" +ii)
if (server.value== "") {
Client=eval ("Form1.client" +ii)
Clientvalue=client.value+ ""
Varlen=clientvalue.length
A=clientvalue.lastindexof (' \ \ ')
Clientvalue=clientvalue.substring (a+1)
alert (Clientvalue);
Server.value=clientvalue
}
}
function Form1_onsubmit () {
for (i=1;i<1;i++) {
Client=eval ("Form1.client" +i)
Server=eval ("Form1.server" +i)
if (client.value!= "" && server.value== "") {alert ("The file name after the upload cannot be empty!") "); Server.focus (); return false}
}
}

-->
</SCRIPT>
<title> News Release System </title>
<body bgcolor= #EDF0F5 topmargin=10 marginheight=5 leftmargin=4 marginwidth=0>

<form method= "POST" action= "news_input.asp" Name= "Form1" enctype= "Multipart/form-data" Language=javascript Onsubmit= "return Form1_onsubmit ()" >
<div align= "Left" >
<table border= "1" width= "754" height= "404" >
&LT;TR align= "center" >
&LT;TD width= "754" height= "colspan=" 3 "style=" font-size:11pt "><strong> news Release System admin--News Add </strong> </td>
</tr>

<tr>
&LT;TD width= "121" height= "align=" "Center" style= "FONT-SIZE:9PT" > News headlines </td>
&LT;TD width= "617" height= "colspan=" 2 ">
<input type= "text" name= "News_title" size= "></td>"
</tr>
<tr>
&LT;TD width= "121" height= "165" align= "center" style= "font-size:9pt" > News content </td>
&LT;TD width= "617" height= "165" colspan= "2" ><textarea rows= "one" name= "news_content" cols= "" ></textarea ></td>
</tr>
<tr>
&LT;TD width= "121" height= align= "center" style= "font-size:9pt" > news source </td>
&LT;TD width= "617" height= "colspan=" 2 ">
<input type= "text" name= "news_src" size= "></td>"
</tr>
<tr>
&LT;TD width= "121" height= "align=" "Center" style= "font-size:9pt" > Picture upload </td>
&LT;TD width= "617" height= "colspan=" 2 ">
<input type= "File" Name= "client1" size= "" readonly language=javascript onblur= "return Client_onblur (1)" > ;



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.