⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addbiddinginfo.jsp

📁 java阿里巴巴代码
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

<%@ page import="java.util.*"%>

<%@ page contentType="text/html;charset=GBK"%>

<%@ page import="java.util.Date"%>

<%@ page import="java.text.SimpleDateFormat"%>

<%@ page import="com.saas.biz.commen.ParamethodMgr"%>

<jsp:useBean id="bean" class="com.saas.biz.commen.commMethodMgr" scope="page"/>

	<%

	String fbtime=new SimpleDateFormat("yyyy-MM-dd").format(new Date());

	String bidding_id=bean.GenTradeId();

	%>

<html>

<head>

<title>XSaaS-发布招标公告</title>



<script language="javascript" src="/js/Calendar_Ly.js"></script>

<script language="JavaScript">

function Check_Value()

{

	if (cTrim(document.bidForm.title.value,0) == "" || document.bidForm.title.value == null) 

	{                                                                                         

		alert("招标标题不可以为空!");                                                             

		document.bidForm.title.focus();                                                    

		return false;                                                                            

	}                                                                                       

	if (cTrim(document.bidForm.bidding_no.value,0) == "" || document.bidForm.bidding_no.value == null) 

	{                                                                                         

		alert("标号不可以为空!");                                                             

		document.bidForm.bidding_no.focus();                                                    

		return false;                                                                            

	}                                                                                         

	if (cTrim(document.bidForm.open_date.value,0) == "" || document.bidForm.open_date.value == null) 

	{                                                                                         

		alert("开标时间不可以为空!");                                                             

		document.bidForm.open_date.focus();                                                    

		return false;                                                                            

	}                                                                                        

	if (cTrim(document.bidForm.addr.value,0) == "" || document.bidForm.addr.value == null) 

	{                                                                                         

		alert("招标地点不可以为空!");                                                             

		document.bidForm.addr.focus();                                                    

		return false;                                                                            

	}                                                                                     

	if (content.getText()=="" || document.bidForm.content.value == null) 

	{                                                                                         

		alert("招标说明不可以为空!");                                                             

		document.bidForm.content.focus();                                                    

		return false;                                                                            

	}                                                                                       

	if (cTrim(document.bidForm.phone.value,0) == "" || document.bidForm.phone.value == null) 

	{                                                                                         

		alert("联系电话不可以为空!");                                                             

		document.bidForm.phone.focus();                                                    

		return false;                                                                            

	}
				var re =/(^[0-9]{3,4}\-[0-9]{7,8}$)|(^[0-9]{7,8}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)/;
  		if(re.test(document.getElementById("phone").value)){   
 
			}else{   
				 alert("联系电话格式不正确!"); 
				document.getElementById("phone").value='';
				document.getElementById("phone").focus();
				return false;
			}                                                                                    
    
	 return true;

}

function check_none(current_obj)

{

    if (current_obj.advshow.checked)

    {

	    current_obj.submit1.disabled=false;        	     

	}

	else

	{

	    current_obj.submit1.disabled=true;

	}

}

function confirmsub(formobj)

{

    if(window.confirm('你确定要提交吗?')) 

    {  	    	

        if (!Check_Value())

        {

             return;

        }

        

     	 addparm(formobj);

         formobj.submit();   	         

    }

    else

    {

        return;

    }

}

function  addparm(formobj)

{

  if(formobj.str_attr)

  {

 		var attr_str="";

 		formobj.str_attr.value="";

for(var i=0;i<formobj.length;i++)

{

	if(formobj[i].getAttribute("name").substring(0,4)=="attr")

	{

 	  attr_str =attr_str + formobj[i].getAttribute("name").substring(4, formobj[i].getAttribute("name").length)+":";

 	  attr_str = attr_str +formobj[i].getAttribute("value")+"|";

	}

}

formobj.str_attr.value=attr_str;

}

}    		

</script>

</head>

<body>

<table width="100%" border="0" cellspacing="0" cellpadding="0" align=center>

  <tr>

    <td valign="top" >

	      <table width=100% border=0 cellpadding=5 cellspacing=1 align=center  bgcolor="#dddddd">

		  <form name=bidForm action=/doTradeReg.do method=post target="_self">

          <tr>

            <td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;"  align=right  width="15%">招标标题:</td>

            <td style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;" align=left  width="75%"><div class="ping"><input name="title" type="text" size=50 maxlength=50></div>

            </td>

          </tr>

          <input name="bidding_id" type="hidden" value=<%=bidding_id%>>

          <tr>

            <td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;" align=right>标号:</td>

            <td style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;" align=left>
            	<div class="ping"> 
            	<input name="bidding_no" type="text" size=50 maxlength=50>
						</div>
            </td>

          </tr>

          <tr>

            <td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;" align=right>开标时间:</td>

            <td style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;" align=left>
            	<div class="ping"> 
            	<input name="open_date" id="open_date" readonly type="text" size=10  onfocus="setday(this);"  style="width:93px">
            	</div>
            	</td>

          </tr>

          <tr>

            <td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;" align=right>招标地点:</td>

            <td style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;" align=left>
            	<div class="ping"> 
            	<input name="addr" type="text" size=50 maxlength=50>
            	</div>

            </td>

          </tr>

          <tr>

            <td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;" align=right>招标说明:</td>

            <td style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;" align=left>
            	<div class="ping"> 
            	<textarea name="content" style=display:none></textarea>
              <iframe ID=content src=/www/ewebeditor/ewebeditor.htm?id=content&style=coolblue&root_id=<%=bidding_id%> frameborder=0 scrolling=no width=600 HEIGHT=350></iframe>
              </div>
              </td>

          </tr>

          <tr>

            <td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;" align=right>联系电话:</td>

            <td style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;" align=left>
            	<div class="ping"> 
            	<input name="phone" id="phone" type="text" size=25 maxlength=25>
							</div>
            </td>

          </tr>

          <input name="trade_type_code" type="hidden" value="0236">

          <input name="attach_tag" type="hidden" value="0">

          <tr>

            <td style="background-color:#ffffff; color:#000000; padding:3px 5px;  font-size:12px;" colspan=2 align="center"><INPUT name="advshow" type="checkbox" value="0" onclick="check_none(bidForm)">

              &nbsp;以上资料正确无误。

            </td>

          </tr>

          <tr>

            <td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px; padding-top:10px;padding-bottom:10px;" align="center" colspan=2><input class="tjan" name="submit1" type="button" value="" disabled="true" onclick="confirmsub(bidForm)">

            </td>

          </tr>

        </form>

      </table>

	  </td>

  </tr>

  <tr>

    <td height="13"></td>

  </tr>

</table>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -