color: #BBBBBB; scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #000000; scrollbar-arrow-color: #FFFFFF; } table { border: 0; font-size: 12px; cursor: default; } td { text-align: left; height: 20; } input { width: 100; height: 18; border: 0px solid #666666; text-align: left; } </style> <script> var objInput = null; var objTd = null; var num =null; function AutoEdit(obj,id) { if (objInput == null) { objTd = obj; obj.innerHTML = "<input size=\"10\" maxlength=\"10\" type=\"text\" value=\"" + obj.innerText + "\" id=\"objInput\" onblur=\"objTd.innerText=this.value;LoadData(objTd.innerText,num);objInput=null;\" style=\"overflow: visible;border:none;background-color:#EFEFEF\">"; objInput = document.getElementById("objInput"); objInput.focus(); } }
function LoadData(LoadIndex,LoadObj) { var LoadFileName="load.php?action=" + LoadIndex + "&num=" + LoadObj; document.getElementById("LoadDataSrc").src = LoadFileName; } function OutPutData(obj) { if (form1.num1.value.length<1){ alert("请输入数量1"); return false;} if (form1.num2.value.length<1){ alert("请输入数量2"); return false;} if (document.getElementById("name1").innerHTML.length<1){ alert("name1空值"); return false;} if (document.getElementById("name2").innerHTML.length<1){ alert("name2空值"); return false;} obj.innerHTML="<input type=\"hidden\" name=\"name1\" value=\"" + document.getElementById("name1").innerHTML + "\">"; obj.innerHTML+="<input type=\"hidden\" name=\"name2\" value=\"" + document.getElementById("name2").innerHTML + "\">"; obj.innerHTML+="<input type=\"hidden\" name=\"type1\" value=\"" + document.getElementById("type1").innerHTML + "\">"; obj.innerHTML+="<input type=\"hidden\" name=\"type2\" value=\"" + document.getElementById("type2").innerHTML + "\">"; obj.innerHTML+="<input type=\"hidden\" name=\"date1\" value=\"" + document.getElementById("date1").innerHTML + "\">"; obj.innerHTML+="<input type=\"hidden\" name=\"date2\" value=\"" + document.getElementById("date2").innerHTML + "\">"; obj.innerHTML+=form1.submit(); } function postdata() { form1.submit(); } </script> </head> <body> <form name="form1" method="post" action="load.php?action=OutPutData"> <table width="400" cellpadding="0" cellspacin |