config.0.7.js.svn-base
资源名称:cindyblog.rar [点击查看]
上传用户:cdpainuo
上传日期:2022-07-12
资源大小:5257k
文件大小:6k
源码类别:
Jsp/Servlet
开发平台:
Java
- //Cinfig
- var add_pl={
- id:"add_pl",
- noChange:true,
- callback:null
- };
- var ly={
- id:"ly",
- templete:"<li class='ul_c'>{name}</li>"+
- "<li class='ul_f'>{time}</li>"+
- "<li class='ul_e'>{content}</li>",
- always:true,
- callback:null
- };
- var gr={
- id:"gr",
- always:true,
- onChange:true,
- callback:null
- };
- var fl={
- id:"fl",
- templete:"<li class='ul_a'><a onclick="Index.showList(rz_list,0,'{name}')" href="javascript:;"><span style='vertical-align:middle;'><img src='images/img_7.gif'/></span>{name}({typeCount})</a></li>",
- always:true,
- callback:null
- };
- var rz={
- id:"rz",
- templete:"<li class='ul_g'><a onclick="Index.showList(rz_single,{id})" href='javascript:;'>{title}</a></li>"+
- "<li class='ul_f'>{time}</li>"+
- "<li class='ul_h'>{content}</li>"+
- "<li class='ul_i'><a onclick="Index.showList(rz_list,0,'{type}')" href="#">分类({type})</a>"+
- "<a onclick="Index.showList(rz_single,{id});Index.showList(pl_list,0,{id});" href='#pl'>评论({sayCount})</a><a href='#pl' onclick="Index.showList(rz_single,{id})" >快速评论</a></li>",
- url:"servlet?m=getArticle",
- callback:null
- };
- var rz_list={
- id:"rz_list",
- templete:"<li class='ul_k'><span style='vertical-align:middle;'><img src='images/img_6.gif'/></span> [ <a onclick="Index.showList(rz_list,0,'{type}')" href="#">{type}</a> ] <a onclick="Index.showList(rz_single,{id})" href='#'> {title}</a> {time} 评论({sayCount})</li>",
- url:"servlet?m=getArticleList",
- page:"<li class='ul_l'><span class='s_a'><a onclick="Index.before()" href='javascript:;'>上一页</a></span><span class='s_a'>第{nowPage}/{allPage}页</span><span class='s_a'><a onclick="Index.next()" href='javascript:;'>下一页</a></span></li>",
- callback:null
- };
- var rz_single = {
- id:"rz_single",
- templete:"<li class='ul_g'>{title}</li>"+
- "<li class='ul_j'><strong>Cindy</strong> 发表与<strong> {time} </strong><a onclick="Index.showList(pl_list,0,{id})" href='#pl'>显示评论({sayCount})</a> 分类:<a onclick="Index.showList(rz_list,0,'{type}')" href="#"> {type} </a></li>"+
- "<li class='ul_h'>{content}</li>",
- url:"servlet?m=getSingleArticle",
- extend:[add_pl],
- callback:null
- };
- var ly_list={
- id:"ly_list",
- templete:"<li class='ul_j'><strong>{name}</strong> 在 <strong>{time}</strong> 说:</li>"+
- "<li class='ul_e'>{content}</li>",
- url:"servlet?m=getMessageList",
- page:"<li class='ul_l'><span class='s_a'><a onclick="Index.before()" href='javascript:;'>上一页</a></span><span class='s_a'>第{nowPage}/{allPage}页</span><span class='s_a'><a onclick="Index.next()" href='javascript:;'>下一页</a></span></li>",
- callback:null
- };
- var pl={
- id:"pl",
- templete:"<li class='ul_j'><strong>{name}</strong> 评论:</li>"+
- "<li class='ul_f'><a onclick="Index.showList(rz_single,{id})" href="#">[{title}]</a></li>"+
- "<li class='ul_f'>{time}</li>"+
- "<li class='ul_e'>{content}</li>",
- always:true,
- callback:null
- };
- var pl_list={
- id:"pl_list",
- templete:"<li class='ul_j'><strong>{name}</strong> 与 <strong>{time} </strong> 发表评论:</li>"+
- "<li class='ul_e'>{content}</li>",
- url:"servlet?m=getDiscussList",
- page:"<li class='ul_l'><span class='s_a'><a onclick="Index.before()" href='javascript:;'>上一页</a></span><span class='s_a'>第{nowPage}/{allPage}页</span><span class='s_a'><a onclick="Index.next()" href='javascript:;'>下一页</a></span></li>",
- only:true,
- callback:null
- };
- var link={
- id:"link",
- templete:"<li class='ul_k'><a href='{url}' target='_blank'>{name}</a></li>",
- url:"",
- always:true,
- callback:null
- };
- var login={
- title:"管理员登录",
- width:300,
- height:190,
- templete:"<form action='/servlet?m=login' method='post' class='formClass' name='f3' onsubmit='return checkform(this);' target='cframe'>"+
- "<table>"+
- "<tr>"+
- "<td width='30%'><label class='lab'>账号:</label></td>"+
- "<td width='40%'><input class='input_text' type='text' name='username' dataType='Require' msg='账号不能为空' /></td>"+
- "<td width='30%'></td>"+
- "</tr>"+
- "<tr>"+
- "<td><label class='lab'>密码:</label></td>"+
- "<td><input class='input_text' type='password' name='pwd' dataType='Require' msg='密码不能为空' /><br /></td>"+
- "<td></td>"+
- "</tr>"+
- "</table>"+
- "<input class='inupt_button' type='submit' value='确定'/>"+
- "<input class='inupt_button' type='button' onclick='Shade.hide();' value='取消' />"+
- " </form>"
- };
- var message={
- title:"发表留言",
- width:450,
- height:350,
- templete:"<div id='respond'>"+
- "<form action='/admin?m=addMessage' method='post' onsubmit='return checkform(this);' name='f2' target='cframe'>"+
- "<p><input type='text' dataType='Require' msg='昵称不能为空' name='name' id='name'/>"+
- "<label for='author'>您的昵称 </label></p>"+
- "<p><input type='text' name='email' dataType='Email' msg='邮箱地址格式不正确' id='email'/>"+
- "<label for='email'>电子邮件 </label></p>"+
- "<p><input type='text' name='url' id='url' require='false' msg='网站格式不正确' dataType='Url'/>"+
- "<label for='url'>您的网站</label>"+
- "</p>"+
- "<p><textarea name='content' dataType='Require' msg='内容不能为空' id='content' cols='80' rows='6'>"+
- "</textarea></p>"+
- "<p><input type='submit' value='发表' /> "+
- "<input type='button' value='取消' onclick='Shade.hide();'/> "+
- "</p>"+
- "</form>"+
- " </div>"
- };
- var indexList=[gr,rz,fl,ly,pl,link];
- var allList=[ly,gr,fl,rz,rz_list,rz_single,ly_list,pl,pl_list,add_pl];