<!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="#D1DDAA">
<tr>
  <td height="28" background="images/tbg.gif">
  	&nbsp;<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 action="ppt_edit.php" method="post" enctype="multipart/form-data" name="form1">
          <input type='hidden' name='aid' value='<?php echo $aid?>'>
          <input type='hidden' name='dopost' value='saveedit'>
          <tr> 
            <td width="15%" height="25" align="center">幻灯标题：</td>
            <td colspan="2"><input name="title" type="text" id="title" size="30" value="<?php echo $row['title']?>" class='iptxt' /></td>
          </tr>
          <tr>
            <td height="25" align="center" >内容描述：</td>
            <td colspan="2"><textarea name="introduce" cols="50" rows="7" id="introduce"><?php echo $row['introduce']?></textarea>
            <img style="vertical-align:middle" src="<?php echo $row['pic']?>" height="30%"/>
            </td>
             
          </tr>
          <tr>
            <td height="25" align="center">分类：</td>
            <td colspan="2"><select name='typeid' style='width:150' id="typeid">
                <option value='0'>默认分类...</option>
                
          	<?php echo $option;?>
          
            </select></td>
          </tr>
          <tr> 
            <td align="center">幻灯图片地址：</td>
            <td width="76%">
              <textarea name="pic" id="pic" style="width:80%;height:100"><?php echo $row['pic']?></textarea><input type="button" name="set3" value="浏览... "class="coolbg np" style="width:60px" onClick="SelectImage('form1.pic','small');" />
            </td>
            <td width="9%">&nbsp;</td>
          </tr>
          <tr> 
            <td align="center">幻灯超链接：</td>
            <td> 
            	<textarea name="url" id="url" style="width:80%;height:100"><?php echo $row['url']?></textarea>
            </td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td width="15%" height="25" align="center">排序：</td>
            <td colspan="2"><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>
          <tr> 
            <td height="53" align="center">&nbsp;</td>
            <td colspan="2">
            <input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0"></td>
          </tr>
        </form>
      </table>
	 </td>
</tr>
</table>
</body>
</html>