<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../inc/productStyle.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../inc/FormCheck.js"></script>
<script type="text/javascript" language="JavaScript">
/*function toBack(){
location.href="<%=url%>";
}
function toSubmit(){
if(document.form1.styName.value.Trim()==""){
alert("请指定样式名称!");
document.form1.styName.focus();
return false;
}
if(document.form1.styPrice.value.Trim()==""){
alert("请指定单价!");
document.form1.styPrice.focus();
document.form1.styPrice.select();
return false;
}
if(!is_Double(document.form1.styPrice.value.Trim())){
alert("请指定合法的单价!");
document.form1.styPrice.focus();
document.form1.styPrice.select();
return false;
}
document.form1.btnOK.disabled=true;
document.form1.tp.value="<%=tp%>";
document.form1.submit();
}
function CheckInt(me){
var s="0123456789"
var c=String.fromCharCode(event.keyCode)
if (s.indexOf(c)<0){
event.keyCode=0;
return false;
}
}
function CheckFloat(me){
var s="0123456789."
var c=String.fromCharCode(event.keyCode)
if (s.indexOf(c)<0){
event.keyCode=0;
return false;
}
}
function setReFirst(){
if(event.keyCode==9){
document.form1.styName.focus();
event.returnValue=false;
}
}
function frmKeyDown(){
if(event.keyCode==116){
event.keyCode=0;
event.returnValue=false;
toSubmit();
}
if(event.keyCode==27){
event.keyCode=0;
event.returnValue=false;
toBack();
}
}
var rowIndex=0;
function toAddNewPic(){
var row = picTable.insertRow(picTable.rows.length);
var col=row.insertCell(0);
col.innerHTML="样式图片:";
col.setAttribute("width","10%");
col.setAttribute("align","right");
col = row.insertCell(1);
col.innerHTML="<input name=\"proPic\" class=\"input2\" tabindex=\""+eval(50+rowIndex+1)+"\" type=\"file\" size=\"72\" style=\"width:95%;ime-mode:active\">";
col.setAttribute("width","80%");
col = row.insertCell(2);
if(rowIndex==0){
col.innerHTML=" 默认";
}else{
var tmp="<button class=\"btn3_mouseout\" tabindex=\""+eval(50+rowIndex+1)+"\" id=\"button1\" name=\"button1\" οnmοuseοver=\"this.className='btn3_mouseover'\" οnmοuseοut=\"this.className='btn3_mouseout'\"";
tmp+="οnmοusedοwn=\"this.className='btn3_mousedown'\" οnmοuseup=\"this.className='btn3_mouseup'\" onClick=\"return delPic_Row('row"+rowIndex+"')\" title=\"删除\">删除</button>";
col.innerHTML = tmp;
}
row.setAttribute("id", "row"+rowIndex);
row.setAttribute("name", "row"+rowIndex);
rowIndex++;
}
function delPic_Row(rowTag){
if(confirm("请确认是否要删除该图片?")){
var i=picTable.rows(rowTag).rowIndex;
if(i!=0){
picTable.deleteRow(i);
rowIndex--;
}
}
}
function delPic(id){
if(confirm("请确认是否要删除该图片?")){
form1.action="delProduct.jsp?tp=delStylePic&id=<%=id%>&pid="+id;
form1.submit();
}
}
function showModule(){
var name=document.getElementById("fieldModule").value;
//SettingInformation,EarringInformation,IndividualPrice,CanBeSetWith,SideStoneInformation,BandInformation,DiamondInformation,MatchingItems
//divSetting,divEarringPost,divIndividualPrice,divSetWith,divSideStone,divBand,divDiamond,divMatchItem
if(name=="SettingInformation"){
divSetting.style.display="";
form1.styHadSetting.value="yes";
}
if(name=="EarringInformation"){
divEarringPost.style.display="";
form1.styHadEarring.value="yes";
}
if(name=="IndividualPrice") divIndividualPrice.style.display="";
if(name=="CanBeSetWith") divSetWith.style.display="";
if(name=="SideStoneInformation"){
divSideStone.style.display="";
form1.styHadSideStone.value="yes";
}
if(name=="BandInformation"){
divBand.style.display="";
form1.styHadBand.value="yes";
}
if(name=="DiamondInformation"){
divDiamond.style.display="";
form1.styHadDiamond.value="yes";
}
if(name=="MatchingItems") divMatchItem.style.display="";
}
function removeModule(name){
if(name=="divSetting") form1.styHadSetting.value="";
if(name=="divEarringPost") form1.styHadEarring.value="";
if(name=="divSideStone") form1.styHadSideStone.value="";
if(name=="divBand") form1.styHadBand.value="";
if(name=="divDiamond") form1.styHadDiamond.value="";
document.getElementById(name).style.display="none";
}*/
</script>
<title>新增产品</title>
</head>
<body onLoad="" οnkeydοwn="">
<span class="input">您当前的位置: 后台管理 <img src="../top/arrow.gif" name="meun_r2_c7" border="0" id="meun_r2_c7" /> 样式维护 <img src="../top/arrow.gif" name="meun_r2_c7" border="0" id="meun_r2_c7" />
用户:
</span>
<!--
my code this time!
-->
<div align="center"></div>
<table width=80% border="1" align="center" cellpadding="2" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#EFEFEF" class="td8">
<tr bgcolor="#55ABD0" >
<td colspan=4 style="cursor:hand;" title="样式信息"> <div align="left"><span class="td8"><font color=blue><strong><font color="#006633"><u><font color="#FFFFFF">样式信息</font></u></font></strong></font></span></div></td>
</tr>
<tr>
<td width="20%" align="right">Style Name: </td>
<td width="80%"> <input type="text" name="styName" tabindex="1" maxlength="32" style="ime-mode:active;width:100%" class="input" value="">
</td>
<td align="right" width="20%">Style Type: </td>
<td width="30%"><select name="styType" class="input" style="width:120px" tabindex="4">
<option value="Ring" >Ring</option>
<option value="Earrings" >Earrings</option>
<option value="Diamond Pendant" >Diamond
Pendant</option>
<option value="Three-Stone Ring" >Three-Stone
Ring</option>
<option value="Five-Stone Ring" >Five-Stone
Ring</option>
</select> </td>
</tr>
<tr>
<td align="right">Material Name: </td>
<td> <input type="text" name="styMaterialName" tabindex="2" size="25" maxlength="32" style="ime-mode:active;width:98%" class="input" value="">
</td>
<td align="right">Price: </td>
<td><input type="text" name="styPrice" tabindex="3" maxlength="16" style="ime-mode:disabled;width:180px" onKeyPress="" class="input" value="">
</td>
</tr>
<tr>
<td align="right">test: </td>
<td><input type="text" name="styPrice2" tabindex="3" maxlength="16" style="ime-mode:disabled;width:180px" onKeyPress="" class="input" value=""></td>
<td align="right">Ring Style: </td>
<td> <select name="styRingStyle" class="input" style="width:100px" tabindex="5">
<option value="">None</option>
</select></td>
</tr>
<tr>
<td align="right">Style Remark: </td>
<td><textarea cols="6" rows="3" style="width:100%" class="input" name="styRemark" tabindex="6"></textarea>
</td>
<td align="right">Image View: </td>
<td>这里放的是样式图片的首选图片展示</td>
</tr>
<tr>
<td colspan=4 style="cursor:hand;" title="样式图片"> <div align="left"><span class="td8"><font color=blue><strong><font color="#006633"><u><font color="#FFFFFF">样式图片信息</font></u></font></strong></font></span></div></td>
</tr>
<tr id="" name="">
<td align="right" width="20%">Style Image:</td>
<td width="80%"><a href="#" onClick="" title="点击查看">
</a></td>
<td colspan="2"> <button class="btn3_mouseout" id="button1" name="button1" title="删除">Delete</button></td>
</tr>
<tr>
<td> <button tabindex="97" id="btnAddPic" name="btnOK" class="btn3_mouseout" title="新增一个图片">Add
One More</button></td>
<td colspan="3"></td>
</tr>
</table>
<!--按下来是做样式子表详细参数-->
<!--结尾部分-->
<p> </p><p><br>
</p><div align="center">
<button tabindex="300" id="btnOK" name="btnOK" class="btn3_mouseout" title="保存">
保存(F5)</button>
<button tabindex="301" id="btnBack" name="btnBack" class="btn3_mouseout" title="返回">
返回(Esc)</button>
</div>
</form>
</body>
</html>