标签:
function LoadPage(){ $.ajax({ url:'detailCourseEvaluate/queryByEvaluateID', async:false, type:'post', dataType:"json", success:function(data){ $("#teacherName").val(data.teacherName); $("#teacherCompany").val(data.teacherCompany); $("#teacherJob").val(data.teacherJob); $("#goodAt").val("擅长领域:"+data.goodAt); $("#telphone").val("联系方式:"+data.telphone); $("#evaluateLevel").val("综合评价:"+data.evaluateLevel); $("#jxymsxf").val("教学与描述相符值:"+data.jxymsxf); $("#jsdjxtd").val("讲师的教学态度值:"+data.jsdjxtd); $("#jsxysd").val("讲师的响应速度值:"+data.jsxysd); }, error:function(){ } });
<input type="text" class="form-control" id="teacherName" value="${(teacher.nickName)!}" style="border:none;font-size:22px;">
private static String EvaluateID = null; detailCourseEvaluateService courseEvaluate=new detailCourseEvaluateService(); TjEvaluatecourse TjEvaluatecourse=new TjEvaluatecourse(); /* * 课程评论详情页 * 李少然 2016-5-6 14:55:50*/ @Before(LoginInterceptor.class) public void list() { EvaluateID=getPara("evaluateID"); TjEvaluatecourse Evaluatecourse = null; //根据评论ID查询教师的ID Evaluatecourse=courseEvaluate.findCourseById(EvaluateID); String teacherid=Evaluatecourse.getTStudentid(); //放入值栈中,方便页面获取 setAttr("Evaluatecourse",Evaluatecourse); //根据教师ID查询教师的一些信息 TjStudent teahcerList=null; teahcerList=courseEvaluate.findTeacherById(teacherid); //放入值栈中,方便页面获取 setAttr("teacher",teahcerList); //加载讲师头像 String Pic=teahcerList.getHeadPic(); String HeadPic = "http://123.56.120.25:8888/apple/" + Pic; if(Pic!="" || Pic!=null){ setAttr("HeadPic",HeadPic); }else{ setAttr("HeadPic","/style/css/images/img-avatar-bg.png"); } render("detailCourseEvaluate.html"); }
标签:
原文地址:http://blog.csdn.net/lishaoran369/article/details/51334236