<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>礼品管理</title>
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<SCRIPT type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js?5566"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/ajaxrequest.js"></script>
<SCRIPT type="text/javascript">
function showrmb(){
        var actType=document.myform.CS_TID.value;
	if(actType=="3"){
		$("rmbid").style.display="";
	}
	else{
		$("rmbid").style.display="none";
	}
}
</script>
</head>
<body style="margin:2px">
<form method="post" Name="myForm" id="myform" action="<?=site_url('admin/gifts/save/')?>">
<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4" width="950" style="border-collapse:collapse;"><tr><td align="center" colspan="2" class="title"><?=$title?>礼品</td></tr>
<tr><td align="right"><strong> 礼品大类：</strong></td>
<td><select style="width:200px" name="CS_CID" size="1">
<option value=1<?php if($CS_CID==1)echo ' selected';?>>A类礼品</option>
<option value=2<?php if($CS_CID==2)echo ' selected';?>>B类礼品</option>
</select>
</td>
</tr>
<tr><td align="right"><strong> 礼品小类：</strong></td>
<td><select style="width:200px" id="CS_TID" name="CS_TID" size="1" onChange="showrmb();">
<option value=0<?php if($CS_TID==0)echo ' selected';?>>实物礼品</option>
<option value=1<?php if($CS_TID==1)echo ' selected';?>>QQ币卡</option>
<option value=2<?php if($CS_TID==2)echo ' selected';?>>手机充值卡</option>
<option value=3<?php if($CS_TID==3)echo ' selected';?>>站内金币</option>
</select>
</td>
</tr>
<tr id="rmbid" <?php if($CS_TID<3){echo "style=\"display:none\"";} ?>><td align="right"><strong><font color=red>＊</font> 可否提现：</strong></td>
<td>
<select style="width:200px" name="CS_SID" size="1">
<option value=0<?php if($CS_SID==0)echo ' selected';?>>不可提现</option>
<option value=1<?php if($CS_SID==1)echo ' selected';?>>可以提现</option>
</select>
</td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 礼品名称：</strong></td>
<td><input type="text" name="CS_Name" value="<?=$CS_Name?>" style="width:330px;"></td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 礼品图片：</strong></td>
<td><input type="text" name="CS_Pic" id="CS_Pic" value="<?=$CS_Pic?>" style="width:330px;">  <input type="button" name="Submit" value="图片上传" class="italk-st" onClick="Uploadpic('gifts');"></td></td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 礼品数量：</strong></td>
<td><input type="text" name="CS_Nums" value="<?=$CS_Nums?>" style="width:200px;" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">（只的是没人每月可兑换数量，0为不限制）</td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 所需积分：</strong></td>
<td><input type="text" name="CS_Cion" value="<?=$CS_Cion?>" style="width:200px;" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
</tr>
<tr><td align="right"><strong>礼品介绍：</strong></td>
<td><textarea style="width:506px;height:100px" rows="5" name="CS_Js" id="CS_Js"><?=$CS_Js?></textarea></td>
</tr>
<tr align="center"><td height="36" colspan="2"><input name="CS_ID" type="hidden" value="<?=$CS_ID?>">
<input type="submit" name="Submit" class="italk-bt" value=" <?=$title?> "> <INPUT TYPE=BUTTON class="italk-bt" value=" 返 回 " onclick="history.back();"></td></tr>
</table>
</form>
</body>
</html>

