我有一個基於PHP的應用程序,我需要在普通PC和三星Galaxy平板電腦上工作。功能不同於IE上的三星Galaxy Tab
這兩個設備上的功能都可以正常工作,但它只是不同格式的數據表示。
當用戶輸入產品編號時,我的應用程序從mysql數據庫中提取數據。此數據顯示在與用戶插入的產品代碼相同的行中。在Internet Explorer中,它在平板電腦上100%工作,一旦用戶輸入用戶代碼,整行就會壓縮到第一個單元格中。
我附上圖片以嘗試找出問題所在,請在qustion底部找到這些圖片。
我的培訓相關的代碼是:
頁眉:
<script type="text/javascript">
function showUser(userNumber, str)
{
document.getElementById("r"+(userNumber+1)).style.display="block";
if (str=="")
{
document.getElementById("txtHint" + userNumber).innerHTML="";
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("txtHint" + userNumber).innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","getdata1.php?q="+str,true);
xmlhttp.send();
}
</script>
身體:
<table><tr id="r1">
<td>
<input size=8 style="border: none" type=number id=sku1 name=sku1 onchange="showUser(1, this.value)" onkeypress="return enter(document.orderform.sku2)" value=<? echo $sku1; ?> >
</td>
<td>
<? if($grp1==0){echo " ".$grp1;} else {echo " " ;} ?>
</td>
<td>
<? if($su1==0){echo " ".$su1;} else {echo " " ;} ?>
</td>
<td>
<? if($fp1>0){echo " ".$fp1;} else {echo " " ;} ?>
</td>
<td>
<input type=number id=qty1 name=qty1 size=3 value=<? if($qty1>0){echo $qty1;}; ?> >
</td>
<td>
<? if($qty1==0){echo " ";} else {if($qty1>0){if($line1decvalue==0){ echo "<img src=tick.jpg>";} else{ echo "<img src=cross.jpg>";}} else {echo "<img src=cross.jpg>";}} ?>
</td>
<td>
<b><font color=red><? if($sku1>0){if($points1>0){echo " ".$points1;} else {echo "0";};} else {echo " ";} ?></font></b>
</td>
<td>
<div align="left" id="txtHint1"><? if($sku1>0){echo "Selling Units: <font color=red>$su1</font>, Grouping: <font color=red>$grp1</font>, $su1 per Pallet: <font color=red>$fp1</font>";} else {echo "Select a SKU on left and Details will be seen here";} ?></div>
</td>
</tr>
<tr id="r2">
<td>
<input size=8 style="border: none" type=number id=sku2 name=sku2 onchange="showUser(2, this.value)" onkeypress="return enter(document.orderform.sku3)" value=<? echo $sku2; ?> >
</td>
<td>
<? if($grp2==0){echo " ".$grp2;} else {echo " " ;} ?>
</td>
<td>
<? if($su2==0){echo " ".$su2;} else {echo " " ;} ?>
</td>
<td>
<? if($fp2>0){echo " ".$fp2;} else {echo " " ;} ?>
</td>
<td>
<input type=number id=qty2 name=qty2 size=3 value=<? if($qty2>0){echo $qty2;}; ?> >
</td>
<td>
<? if($qty2==0){echo " ";} else {if($qty2>0){if($line2decvalue==0){ echo "<img src=tick.jpg>";} else{ echo "<img src=cross.jpg>";}} else {echo "<img src=cross.jpg>";}} ?>
</td>
<td>
<b><font color=red><? if($sku2>0){if($points2>0){echo " ".$points2;} else {echo "0";};} else {echo " ";} ?></font></b>
</td>
<td>
<div align="left" id="txtHint2"><? if($sku2>0){echo "Selling Units: <font color=red>$su2</font>, Grouping: <font color=red>$grp2</font>, $su1 per Pallet: <font color=red>$fp2</font>";} else {echo " "; }?></div>
</td>
</tr>
PC功能:
平板功能:
請讓我知道,如果我可以進一步幫助任何其他信息。