<!DOCTYPE html>
<Html>
<Head>
<Title>RAM登錄</Title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<LINK rel=stylesheet type="text/css" href="/syn/fun/style.css">
<script language="JavaScript">
<!--
var errfound = false;
var xmlHttp;
var iSetProductMode = document.getElementById('SetProductMode');
var iSetDPY = document.getElementById('SetDPY');
function ValidateNumber(e) {
var key;
if(window.event) {
key = e.keyCode;
}else if(e.which) {
key = e.which;
} else {
return true;
}
if(8==key || 46==key){//8:backspace 46:delete (倒退鍵和刪除鍵也允許作用)
return true;
}
var keychar = String.fromCharCode(key);
var reg = /\d/;
return reg.test(keychar);
};
function FieldLength(item,len) {
if (item.value.length > len - 1 ) return false;
else return true;
};
function ValidLength(item, len) {
return (item.length >= len);
}
function MatchLength(item, len) {
document.frmMobile.msg.value = item.length;
return (item.length == len);
}
function ShowMsg(elem, text){
window.alert(text);
elem.select();
elem.focus();
errfound = true;
}
function IsNull( val ) {
var isValid = false;
if (val+"" == "null")
isValid = true;
return isValid;
}
function IsUndef( val ) {
var isValid = false;
if (val+"" == "undefined")
isValid = true;
return isValid;
}
function IsBlank( str ) {
var isValid = false;
if ( IsNull(str) || IsUndef(str) || (str+"" == "") )
isValid = true;
return isValid;
}
function IsAlpha( str ) {
if (str+"" == "undefined" || str+"" == "null" || str+"" == "")
return false;
var isValid = true;
str += "";
for (i = 0; i < str.length; i++) {
if ( !( ((str.charAt(i) >= "a") && (str.charAt(i) <= "z")) ||
((str.charAt(i) >= "A") && (str.charAt(i) <= "Z")) ) ) {
isValid = false;
break;
}
}
return isValid;
}
function IsAlphaNum( str ) {
if (str+"" == "undefined" || str+"" == "null" || str+"" == "")
return false;
var isValid = true;
str += "";
for (i = 0; i < str.length; i++) {
if (!(((str.charAt(i) >= "0") && (str.charAt(i) <= "9")) ||
((str.charAt(i) >= "a") && (str.charAt(i) <= "z")) ||
((str.charAt(i) >= "A") && (str.charAt(i) <= "Z"))))
{
isValid = false;
break;
}
}
return isValid;
}
function IsValidEmail( str ) {
if (str+"" == "undefined" || str+"" == "null" || str+"" == "")
return false;
var isValid = true;
str += "";
namestr = str.substring(0, str.indexOf("@"));
domainstr = str.substring(str.indexOf("@")+1, str.length);
if (IsBlank(str) || (namestr.length == 0) ||
(domainstr.indexOf(".") <= 0) ||
(domainstr.indexOf("@") != -1) ||
!IsAlpha(str.charAt(str.length-1)))
isValid = false;
return isValid;
}
function jsSetProductMode(iPtype)
{
var selectedValue = iPtype.options[iPtype.selectedIndex].value;
var iMODE=document.getElementById("SetProductMode");
document.frmMobile.query.value="SetProductMode";
iMODE.src="SonyMobileSetModeDPY1.php"+"?KIND="+selectedValue;
checkModeLoaded();
}
function checkModeLoaded() {
iSetProductMode = document.getElementById('SetProductMode');
var iSetProductModeDoc = iSetProductMode.contentDocument || iSetProductMode.contentWindow.document;
if ( iSetProductModeDoc.readyState == 'complete' ) {
iSetProductMode.contentWindow.onload = function(){
};
document.getElementById('txtMode').value=iSetProductModeDoc.getElementById('ProductMode').value;
jsSetDPY();
return;
}
window.setTimeout('checkModeLoaded();', 50);
}
function jsSetDPY() {
var iKIND=document.getElementById("ProductKind");
var iSetMode = document.getElementById('SetProductMode');
var iMODE=iSetMode.contentDocument.getElementById("ProductMode");
var selectedValue = iMODE.options[iMODE.selectedIndex].value;
var iSetDPY=document.getElementById("SetDPY");
var iDPY=iSetDPY.contentDocument.getElementById("DPY");
var iKINDval=iKIND.options[iKIND.selectedIndex].value;
var iMODEval=iMODE.options[iMODE.selectedIndex].value;
document.frmMobile.query.value="SetDPY";
if (iKINDval=='手機' || iKINDval=='DOA' || iKINDval=='機板') {
iDPY.disabled="";
iDPY.src="SonyMobileSetDPY1.php"+"?KIND="+iKINDval+"?MODE="+iMODEval;
checkDPY_Loaded();
} else {
iDPY.disabled="disabled";
};
};
function checkDPY_Loaded() {
iSetDPY = document.getElementById('SetDPY');
var iSetDPYDoc = iSetDPY.contentDocument || iSetDPY.contentWindow.document;
if ( iSetDPYDoc.readyState == 'complete' ) {
iSetDPY.contentWindow.onload = function(){
alert("DPY is loaded");
};
var iDPY=iSetDPYDoc.getElementById("DPY");
document.getElementById('txtDPY').value=iDPY.value;
return;
}
window.setTimeout('checkDPY_Loaded();', 50);
}
function getChildDPY()
{
var iPRG = document.getElementById('SetDPY');
var iDPY=iPRG.contentDocument.getElementById("DPY");
var selectedValue = iDPY.options[iDPY.selectedIndex].value;
}
function jsSubmit()
{
var num=document.frmMobile.quantity.value;
if ( num < 1 ) {
errfound = true;
ShowMsg(document.frmMobile.quantity, '數量不能小於 1 !');
}
if (errfound==true) {
document.frmMobile.query.value="error-found";
} else {
document.frmMobile.query.value="submit";
};
}
function AlertMsg()
{
var msg1="送修時請勿將附配件一起送修\n";
var msg2="若需附上配件一起檢測時,請在備註欄位加註說明\n";
var msg3="55機種,送修時請將背蓋一起送修,以利防水檢測\n";
var iNUM=document.getElementById('txtNUM');
if ( parseInt(iNUM.value)==0) {
window.alert(msg1+msg2+msg3);
};
checkModeLoaded();
}
function Validate()
{
}
//-->
</script>
</Head>
<body bgcolor="#ffffff" OnLoad="AlertMsg();">
<form onSubmit="return Validate();" method="post" name="frmMobile" target="_self" id="frmMobile" width="100%">
<table width="100%" border="0" name="mainTable" id="mainTable">
<tr>
<td width="16%" height="14"> </td>
<td height="14" bgcolor="#ffffff">
<div align="center"><IMG height=22 width=106 src=https://www.synvision.com.tw/agent/callfix/images/service_regist_title.gif ><br>
</div>
<hr>
<center>
<font color="#400080" size="2"><font color="#ff0000"></font></font> <font color="#400080" size="2">:
</font>
</center>
</td>
<td width="15%" height="14px">
</td>
</tr>
<tr>
<td width="16%" height="286"> </td>
<td height="286" bgcolor="#004080">
<table width="100%" border="0" height="257" align="center">
<tr>
<td width="30%" height="30px" bgcolor="#99cccc" align="right"><font face="新細明體" size="2" color="#333333">
商品名稱:</font>
</td>
<td width="68%" height="30px" bgcolor="#cccccc">
<select id="ProductKind" name="ProductKind" STYLE='BACKGROUND-COLOR:#44FFFF' onChange='javascript: jsSetProductMode(this);'>
<option value=手機 selected='selected'>手機</option> <option value=DOA>DOA</option> <option value=機板>機板</option> <option value=配件>配件</option> <option value=藍芽>藍芽</option> </select>
<font size="2" color="#ff0000">*</font>
</td>
</tr>
<tr>
<td width="30%" height="30px" bgcolor="#99cccc" align="right"><font face="新細明體" size="2" color="#333333">機型:</font></td>
<td width="68%" height="30px" bgcolor="#cccccc">
<iframe name="SetProductMode" id="SetProductMode" frameborder="0" scrolling=no height="30px" width="100%"
src="SonyMobileSetModeDPY1.php">
</iframe>
</td>
</tr>
<tr>
<td width="30%" height="30px" bgcolor="#99cccc" align="right"><font face="新細明體" size="2" color="#333333">DPY No:</font></td>
<td width="68%" height="30px" bgcolor="#cccccc" align="left">
<iframe name="SetDPY" id="SetDPY" frameborder="0" scrolling=no height="30px" width="100%"
src="SonyMobileSetDPY1.php">
</iframe>
</td>
</tr>
<tr>
<td width="30%" height="30px" bgcolor="#99cccc" align="right"><font face="新細明體" size="2" color="#333333">數量:</font></td>
<td width="68%" height="30px" bgcolor="#cccccc">
<input class="right" type="text" name="quantity" id="quantity" maxlength="4" size="4" style="ime-mode:disabled" onkeypress="return ValidateNumber(event)"
value=>
</td>
</tr>
</table>
<div align="center">
<input type="submit" value="新 增" name="submit" id="submit" onclick="javascript: jsSubmit();">
<input type="hidden" name="query" id="query" value="">
<input type="hidden" name="txtMode" id="txtMode" value="">
<input type="hidden" name="txtDPY" id="txtDPY" value="">
<input class="right" type="hidden" name="txtNUM" id="txtNUM" value=0 >
<input type="hidden" name="DocRoot" id="DocRoot" value="
https://www.my.tw">
</div>
<div align="left" name="dMSG" id="dMSG">
訊息:
</div>
</td>
</tr>
</table>
</form>
<div align="left" style="position: absolute; top: 120;left: 100px;width: 210px;height: 125px;" >
<iframe name="list1" id="list1" frameborder="0" width="900" height="800" sandbox="allow-forms allow-scripts" src="RMA_request_list.php">
</iframe>
</div>
</body>
</html>