<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>更改幻灯片</title>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language='javascript' src='js/main.js'></script>
<link href='css/base.css' rel='stylesheet' type='text/css'>
<script language="javascript">
function checkSubmit()
{
	if(document.form1.title.value=="")
	{
		alert("幻灯标题不能为空！");
		document.form1.title.focus();
		return false;
	}
	if(document.form1.pic.value=="")
	{
		alert("幻灯图片不能为空！");
		document.form1.pic.focus();
		return false;
	}
	if(document.form1.url.value=="")
	{
		alert("幻灯链接地址不能为空！");
		document.form1.url.focus();
		return false;
	}
}

</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<tr>
	<td height="28" background="images/tbg.gif" style="padding-left:10px;"> 
		<b><a href="ppt_main.php"><u>幻灯片管理</u></a></b>&gt;&gt;更改幻灯片
	</td>
</tr>
<tr>
    <td height="200" bgcolor="#FFFFFF" valign="top">
	<table width="100%" border="0" cellspacing="4" cellpadding="4">
		<form name="form1" action="ppt_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()">
          <input type='hidden' name='aid' value='<?php echo $aid?>'>
          <input type='hidden' name='dopost' value='saveedit'>

<tr>
<td height="24" colspan="5" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">&nbsp;幻灯标题：</td>
<td width='710'><input name="title" type="text" id="title" value="<?php echo $row['title']?>" style="width:388px" /></td>
</tr>
</table>
</td>
</tr>

<tr>
<td height="24" colspan="5" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">&nbsp;幻灯分类：</td>
<td width='710'>
<select name='typeid' style='width:150' id="typeid">
<?php echo $option;?>
</select>
</td>
</tr>
</table>
</td>
</tr>

<tr id="pictable">
<td height="24" colspan="5" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> &nbsp;图片地址：</td>
<td width="400">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="30">
<input name="picname" type="text" id="picname" style="width:240px" value="<?php echo $row['pic']?>" />
<input type="button"  value="本地上传" style="width:70px;cursor:pointer;" />
<iframe name='uplitpicfra' id='uplitpicfra' src='' width='200' height='200' style='display:none'></iframe>
<span class="litpic_span"><input name="litpic" type="file" id="litpic"  onChange="SeePicNew(this, 'divpicview', 'uplitpicfra', 165, 'ppt_edit.php','saveedit');" size="1" class='np coolbg'/></span>
</td>
</tr>
</table>
</td>
<td width="310" align="center">
<style>
.divpre img{height:50px;}
</style>
<div id='divpicview' class='divpre'><img src="<?php if($row['pic']!="") echo $row['pic']; else echo "images/pview.gif";?>"></div>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td height="24" colspan="5" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">&nbsp;链接地址：</td>
<td width='710'>
<input type="text" size="60" name="url" value="<?php echo $row['url']?>"/>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td height="24" colspan="5" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">&nbsp;排序：</td>
<td width='710'>
<input name="orderid" type="text" id="orderid" onKeyUp="this.value=this.value.replace(/\D/g,'')"  value="<?php echo $row['orderid']?>" size="8" onafterpaste="this.value=this.value.replace(/\D/g,'')" />
</td>
</tr>
</table>
</td>
</tr>
		<tr>
			<td height="51">&nbsp;</td>
			<td>
				<input type="submit" name="Submit" value=" 提 交 " class="np coolbg" />　 　
				<input type="reset" name="Submit" value=" 返 回 " onClick="location.href='<?php echo $ENV_GOBACK_URL?>';" class="np coolbg" />         
			</td>
		</tr>
        </form>
      </table>
	 </td>
</tr>
</table>
</body>
</html>