<?php 
	session_start(); 
	require_once('../../../../ru/update/2.55/ls_admin/inc/conn.php');
	require_once('../../../../ru/update/2.55/ls_admin/inc/constant.php');
	require_once('../../../../ru/update/2.55/ls_admin/inc/ls_syscode.php');
	require_once('../../../../ru/update/2.55/ls_admin/inc/check.php');
	$opendb=new mydb();
	$ls_msg="添加主题图片操作";

	$motifText=$_POST['motifText'];
	
?>
<!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=utf-8">
		<link href="../../../../ru/update/2.55/ls_admin/css/admin.css" rel="stylesheet" type="text/css">
		<script language="JavaScript" src="../../../../ru/update/2.55/ls_admin/js/ls.js"></script>
		<title>无标题文档</title>
		
	</head>

	<body>
		<table width="96%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#6396d6">
			<tr>
				<td height="18" background="../../../../ru/update/2.55/ls_admin/images/admin_bg.gif"><div align="center"><font color="#ffffff"><strong>添加主题图片</strong></font></div>
				</td>
			</tr>
			<tr>
				<td height="213" valign="top" bgcolor="#dee7ff"><br>
				 <form name="myform" enctype="multipart/form-data" method="post" action="../../../../ru/update/2.55/ls_admin/savemotif.php" >
					<input type="hidden" value="insert" name="ls">
					<table border="0" width="96%" align="center">
						<tr>
							<td>提示：<font color="#FF0000"><?php echo $ls_msg; ?></font></td>
							<td align="right"><img src="../../../../ru/update/2.55/ls_admin/images/shao.gif">&nbsp;<a href="../../../../ru/update/2.55/ls_admin/motif.php"><u>返回</u></a></td>
						</tr>
					</table>
					<table width="96%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
					 
					  <tr bgcolor="#B9DAFF">
						<td height="28" colspan="2"></td>
					  </tr>
					  <tr bgcolor="#f4f4f4"> 
						<td width="11%" style="padding-left:15px;" >*缩略图：</td>
						<td width="89%" style="padding-left:5px;" >
							<img src="../../../../ru/update/2.55/ls_admin/images/picture.gif" width="700" height="<?php echo $SmallPicH; ?>" border="1" name="pic" style="float:left;">
							<br><br><br><br></td>
					  </tr>
					  <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:15px;" >图片：</td>
						<td style="padding-left:15px;"><input type="file" name="productPic" style="width:300px;" onBlur="document.pic.src=myform.productPic.value;">
					    <span style="padding-left:5px;">图片宽度应在200-400点、高度在200-300点，格式为jpg，大小不要超过50KB </span></td>
					  </tr>
					  <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:15px;" width="11%">介绍：</td>
						<td style="padding-left:15px;"><?php
								require_once('../../../../ru/update/2.55/ls_admin/fckeditor/fckeditor.php');
								$sBasePath=$_SERVER['PHP_SELF'];
								$sBasePath=substr($sBasePath,0,strpos($sBasePath,"ls_admin"));
								$sBasePath.="ls_admin/fckeditor/";
									
								$oFCKeditor=new FCKeditor('motifText');
								$oFCKeditor->BasePath=$sBasePath;
								$oFCKeditor->Config['SkinPath']=$sBasePath.'editor/skins/silver/';
								//$oFCKeditor->Config['AutoDetectLanguage']=true;
								$oFCKeditor->ToolbarSet='Default';
								$oFCKeditor->Height='350';
								$oFCKeditor->Width = '96%' ;
								$oFCKeditor->Value=htmlspecialchars_decode($motifText,ENT_QUOTES);
								$oFCKeditor->Create();
							?>
                            <!-- <textarea name="motifText" style="width:400px; height:80px;" ><?php echo $motifText;?></textarea> -->
                            </td>
					  </tr>
					  <tr bgcolor="#B9DAFF"> 
						<td height="25" colspan="2" align="center"><input type="submit" value="添加主题图片"></td>
					  </tr>
					</table>
				</form>
				</td>
			</tr>
		</table>
	</body>
</html>