<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" />
<meta http-equiv="expires" content="0" />
<title>添加图片</title>
<script type="text/javascript">top.window.aTitle.innerText='添加图片'</script>
<link href="../css/Public.css" rel="stylesheet" type="text/css" /> 
<script type="text/javascript" src="../Include/Pub.js"></script>
<script type="text/javascript" src="../Include/TipBox.js"></script>
<script type="text/javascript" src="../Include/calendar.js"></script>
<script type="text/javascript">
function CheckForm(){
    if (document.getElementById("ClassID").value=="") {
        alert("请选择分类");
document.getElementById("ClassID").focus();
return false;
    }
if (document.getElementById("PicName").value=="") {
        alert("请填写名称");
document.getElementById("PicName").focus();
return false;
    }
if (document.getElementById("SmallPic").value=="") {
        alert("请上传缩略图");
document.getElementById("SmallPic").focus();
return false;
    }
}function doChange(objText, objDrop){
if (!objDrop) return;
var str = objText.value;
var arr = str.split("|");
objDrop.length=0;
for (var i=0; i<arr.length; i++){
objDrop.options[i] = new Option(arr[i], arr[i]);
}
}function ShowField(Id){
$Get("FieldDiv56").style.display = "none";
$Get("FieldDiv55").style.display = "none";
$Get("FieldDiv45").style.display = "none";
$Get("FieldDiv44").style.display = "none";
$Get("FieldDiv9").style.display = "none";

$Get("FieldDiv"+ Id +"").style.display = "block";
}
</script>
</head><body> <form id="AddFrom" name="AddFrom" enctype="multipart/form-data" method="post" action="Pic_Add_Sql.asp" onSubmit="return CheckForm();">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin:5px 0;">
        <tr>
          <td width="82" height="30" align="right">分类:<span class="cRed">*</span>&nbsp;</td>
          <td width="317">
<select name="ClassID" id="ClassID" style="width:120px;" class="ipt5" onChange="ShowField(this.value)">
 <option value=""></option>
  <option value="56">材料介绍</option><option value="55" selected="selected">案例展示</option><option value="9">产品展示</option><option value="45">├ 产品系列二</option><option value="44">├ 产品系列一</option>
</select> </td>
          <td width="769" rowspan="3"><img id="ShowImg" onerror="this.src='../images/NoPhoto.gif'" src="../images/NoPhoto.gif" style="height:75px; border:1px solid #E8E8E8; padding:2px; margin:5px;" /></td>
        </tr>
        <tr>
          <td width="82" height="30" align="right">名称:<span class="cRed">*</span>&nbsp;</td>
          <td>
<input name="PicName" type="text" class="ipt4" id="PicName" style="width:290px;" maxlength="100"></td>
        </tr>
        <tr>
          <td height="30" align="right">缩略图:<span class="cRed">*</span>&nbsp;</td>
          <td>
  <input name="Pic" type="text" class="ipt4" id="Pic" style="width:300px; display:none;"  readonly="readonly">
  <input name="SmallPic" type="file" class="ipt4" id="SmallPic" style="width:290px;"  value="" size="20" maxlength="50" onChange="$Get('ShowImg').src=this.value" /></td>
        </tr>
        <tr>
          <td width="82" height="30" align="right">内容:<span class="cRed">*</span>&nbsp;</td>
          <td colspan="2" style="padding-right:20px;"><textarea name="Content" style="display:none"></textarea>
              <IFRAME ID="eWebEditor1" src="../Include/Editer/ewebeditor.htm?id=Content&style=coolblue&savepathfilename=Pic" frameborder="0" scrolling="no" width="100%" height="430"></IFRAME></td>
        </tr>
        <tr>
          <td colspan="3" align="right">
<div id="FieldDiv56" style="display:none;"><table width="100%" border="0" cellpadding="0" cellspacing="0"><input type="hidden" name="FieldId56" value="" /></table></div><div id="FieldDiv55" style="display:none;"><table width="100%" border="0" cellpadding="0" cellspacing="0"><input type="hidden" name="FieldId55" value="" /></table></div><div id="FieldDiv45" style="display:none;"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="82" height="30" align="right">同城特色服务:&nbsp;</td><td colspan="6"><input name="Fz_FieldId45_tc" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">售后服务:&nbsp;</td><td colspan="6"><input name="Fz_FieldId45_sh" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">价格区间:&nbsp;</td><td colspan="6"><input name="Fz_FieldId45_jg" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">货号:&nbsp;</td><td colspan="6"><input name="Fz_FieldId45_hh" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">型号:&nbsp;</td><td colspan="6"><input name="Fz_FieldId45_xh" type="text" class="ipt4" value="" style="width:100;" ></td></tr><input type="hidden" name="FieldId45" value="Fz_FieldId45_tc,Fz_FieldId45_sh,Fz_FieldId45_jg,Fz_FieldId45_hh,Fz_FieldId45_xh" /></table></div><div id="FieldDiv44" style="display:none;"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="82" height="30" align="right">同城特色服务:&nbsp;</td><td colspan="6"><input name="Fz_FieldId44_tc" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">售后服务:&nbsp;</td><td colspan="6"><input name="Fz_FieldId44_sh" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">价格区间:&nbsp;</td><td colspan="6"><input name="Fz_FieldId44_jg" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">货号:&nbsp;</td><td colspan="6"><input name="Fz_FieldId44_hh" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">型号:&nbsp;</td><td colspan="6"><input name="Fz_FieldId44_xh" type="text" class="ipt4" value="" style="width:100;" ></td></tr><input type="hidden" name="FieldId44" value="Fz_FieldId44_tc,Fz_FieldId44_sh,Fz_FieldId44_jg,Fz_FieldId44_hh,Fz_FieldId44_xh" /></table></div><div id="FieldDiv9" style="display:none;"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="82" height="30" align="right">同城特色服务:&nbsp;</td><td colspan="6"><input name="Fz_FieldId9_tc" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">售后服务:&nbsp;</td><td colspan="6"><input name="Fz_FieldId9_sh" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">价格区间:&nbsp;</td><td colspan="6"><input name="Fz_FieldId9_jg" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">货号:&nbsp;</td><td colspan="6"><input name="Fz_FieldId9_hh" type="text" class="ipt4" value="" style="width:100;" ></td></tr><tr><td width="82" height="30" align="right">型号:&nbsp;</td><td colspan="6"><input name="Fz_FieldId9_xh" type="text" class="ipt4" value="" style="width:100;" ></td></tr><input type="hidden" name="FieldId9" value="Fz_FieldId9_tc,Fz_FieldId9_sh,Fz_FieldId9_jg,Fz_FieldId9_hh,Fz_FieldId9_xh" /></table></div>
<script type="text/javascript">
ShowField("55");
</script> </td></tr>
        <tr>
          <td width="82" height="30" align="center"></td>
          <td colspan="2" valign="bottom" style="padding:10px 0;"><input name="Submit" type="submit" class="btn2" value=" 添 加 " ></td>
        </tr>
      </table>
</form></body>
</html>