|
|
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
|
|
|
<%@page import="util.Info"%>
|
|
|
<%@page import="dao.CommDAO"%>
|
|
|
<%@page import="util.PageManager"%>
|
|
|
<html>
|
|
|
<head>
|
|
|
|
|
|
<title>课程信息</title>
|
|
|
|
|
|
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
|
|
|
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
|
|
|
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
|
|
|
<script type="text/javascript" src="js/popup.js"></script>
|
|
|
|
|
|
</head>
|
|
|
<%
|
|
|
String id="";
|
|
|
|
|
|
|
|
|
%>
|
|
|
<script language="javascript">
|
|
|
|
|
|
function gow()
|
|
|
{
|
|
|
document.location.href="kechengxinxi_add.jsp?id=<%=id%>";
|
|
|
}
|
|
|
|
|
|
function hsgxia2shxurxu(nstr,nwbk)
|
|
|
{
|
|
|
if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
|
|
|
{
|
|
|
eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+";", "");
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+";";
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<%
|
|
|
HashMap ext = new HashMap();
|
|
|
if(request.getParameter("f")!=null){
|
|
|
|
|
|
|
|
|
|
|
|
ext.put("issh","否");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new CommDAO().insert(request,response,"kechengxinxi",ext,true,false,"");
|
|
|
|
|
|
}
|
|
|
|
|
|
%>
|
|
|
|
|
|
<body >
|
|
|
<form action="kechengxinxi_add.jsp?f=f&id=<%=id%>" method="post" name="form1" onsubmit="return checkform();">
|
|
|
添加课程信息:
|
|
|
<br><br>
|
|
|
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#cccccc" >
|
|
|
<tr><td width="200">教练:</td><td><input name='jiaolian' type='text' id='jiaolian' onblur='' class="form-control" value='<%=request.getSession().getAttribute("username")%>' readonly="readonly" /></td></tr>
|
|
|
<tr><td width="200">课程名称:</td><td><input name='kechengmingcheng' type='text' id='kechengmingcheng' value='' onblur='' class="form-control" /></td></tr>
|
|
|
<tr><td width="200">锻炼部位:</td><td><input name='duanlianbuwei' type='text' id='duanlianbuwei' value='' onblur='' class="form-control" /></td></tr>
|
|
|
<tr><td width="200">课程日期:</td><td><input name='kechengriqi' type='text' id='kechengriqi' value='' onblur='' readonly='readonly' onClick="WdatePicker({'dateFmt':'yyyy-MM-dd'})" class="form-control" /></td></tr>
|
|
|
<tr><td width="200">课时安排:</td><td><textarea name='keshianpai' id='keshianpai' onblur='' class="form-control" style="width:600px;height:80px;" ></textarea></td></tr>
|
|
|
<tr><td width="200">学费:</td><td><input name='xuefei' type='text' id='xuefei' value='' onblur='checkform()' class="form-control" /> <label id='clabelxuefei' />必需数字型</td></tr>
|
|
|
<tr><td width="200">封面:</td><td><input name='fengmian' type='text' id='fengmian' size='50' value='' onblur='' class="form-control" /><div style="margin-top:16px;"> <input type='button' value='上传' onClick="up('fengmian')" /></div></td></tr>
|
|
|
<tr><td width="200">课程内容:</td><td><textarea name='kechengneirong' id='kechengneirong' onblur='' class="form-control" style="width:600px;height:80px;" ></textarea></td></tr>
|
|
|
<tr><td width="200">课程介绍:</td><td><textarea name='kechengjieshao' id='kechengjieshao' onblur='' class="form-control" style="width:600px;height:80px;" ></textarea></td></tr>
|
|
|
|
|
|
<tr>
|
|
|
<td> </td>
|
|
|
<td><input type="submit" name="Submit" value="提交" class="btn btn-info btn-small" />
|
|
|
<input type="reset" name="Submit2" value="重置" class="btn btn-info btn-small" /></td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</form>
|
|
|
|
|
|
</body>
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
<script language=javascript src='js/ajax.js'></script>
|
|
|
|
|
|
<%@page import="java.util.ArrayList"%>
|
|
|
<%@page import="java.util.HashMap"%>
|
|
|
|
|
|
<script language=javascript >
|
|
|
|
|
|
function checkform(){
|
|
|
|
|
|
var xuefeiobj = document.getElementById("xuefei"); if(xuefeiobj.value!=""){ if(/^[0-9]+.?[0-9]*$/.test(xuefeiobj.value)){document.getElementById("clabelxuefei").innerHTML=""; }else{document.getElementById("clabelxuefei").innerHTML=" <font color=red>必需数字型</font>"; return false;}}
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
popheight=450;
|
|
|
</script>
|
|
|
<script src="images/hsgcommon/jq.js"></script>
|
|
|
<script src="images/hsgcommon/common.js"></script>
|
|
|
<script src="images/hsgcommon/bootbox.js"></script>
|