config.0.7.js
上传用户:cdpainuo
上传日期:2022-07-12
资源大小:5257k
文件大小:6k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. //Cinfig
  2. var add_pl={
  3. id:"add_pl",
  4. noChange:true,
  5. callback:null
  6. };
  7. var ly={
  8. id:"ly",
  9. templete:"<li class='ul_c'>{name}</li>"+
  10. "<li class='ul_f'>{time}</li>"+
  11. "<li class='ul_e'>{content}</li>",
  12. always:true,
  13. callback:null
  14. };
  15. var gr={
  16. id:"gr",
  17. always:true,
  18. onChange:true,
  19. callback:null
  20. };
  21. var fl={
  22. id:"fl",
  23. 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>",
  24. always:true,
  25. callback:null
  26. };
  27. var rz={
  28. id:"rz",
  29. templete:"<li class='ul_g'><a onclick="Index.showList(rz_single,{id})" href='javascript:;'>{title}</a></li>"+
  30. "<li class='ul_f'>{time}</li>"+
  31. "<li class='ul_h'>{content}</li>"+
  32. "<li class='ul_i'><a onclick="Index.showList(rz_list,0,'{type}')" href="#">分类({type})</a>"+
  33. "<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>",
  34. url:"blog?m=getArticle",
  35. callback:null
  36. };
  37. var rz_list={
  38. id:"rz_list",
  39. 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>",
  40. url:"blog?m=getArticleList",
  41. 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>",
  42. callback:null
  43. };
  44. var rz_single = {
  45. id:"rz_single",
  46. templete:"<li class='ul_g'>{title}</li>"+
  47. "<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>"+
  48. "<li class='ul_h'>{content}</li>",
  49. url:"blog?m=getSingleArticle",
  50. extend:[add_pl],
  51. callback:null
  52. };
  53. var ly_list={
  54. id:"ly_list",
  55. templete:"<li class='ul_j'><strong>{name}</strong> 在 <strong>{time}</strong> 说:</li>"+
  56. "<li class='ul_e'>{content}</li>",
  57. url:"blog?m=getMessageList",
  58. 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>",
  59. callback:null
  60. };
  61. var pl={
  62. id:"pl",
  63. templete:"<li class='ul_j'><strong>{name}</strong> 评论:</li>"+
  64. "<li class='ul_f'><a onclick="Index.showList(rz_single,{id})" href="#">[{title}]</a></li>"+
  65. "<li class='ul_f'>{time}</li>"+
  66. "<li class='ul_e'>{content}</li>",
  67. always:true,
  68. callback:null
  69. };
  70. var pl_list={
  71. id:"pl_list",
  72. templete:"<li class='ul_j'><strong>{name}</strong> 与 <strong>{time} </strong> 发表评论:</li>"+
  73. "<li class='ul_e'>{content}</li>",
  74. url:"blog?m=getDiscussList",
  75. 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>",
  76. only:true,
  77. callback:null
  78. };
  79. var link={
  80. id:"link",
  81. templete:"<li class='ul_k'><a href='{url}' target='_blank'>{name}</a></li>",
  82. url:"",
  83. always:true,
  84. callback:null
  85. };
  86. var login={
  87. title:"管理员登录",
  88. width:300,
  89. height:190,
  90. templete:"<form action='/blog?m=login' method='post' class='formClass' name='f3' onsubmit='return checkform(this);'  target='cframe'>"+
  91. "<table>"+
  92. "<tr>"+        
  93. "<td width='30%'><label class='lab'>账号:</label></td>"+       
  94. "<td width='40%'><input class='input_text' type='text' name='username'   dataType='Require' msg='账号不能为空' /></td>"+
  95. "<td width='30%'></td>"+      
  96. "</tr>"+    
  97. "<tr>"+  
  98. "<td><label class='lab'>密码:</label></td>"+    
  99. "<td><input class='input_text' type='password' name='pwd'   dataType='Require' msg='密码不能为空' /><br /></td>"+     
  100. "<td></td>"+     
  101. "</tr>"+   
  102. "</table>"+   
  103. "<input class='inupt_button' type='submit' value='确定'/>"+  
  104. "<input class='inupt_button'  type='button' onclick='Shade.hide();' value='取消' />"+  
  105. " </form>"
  106. };
  107. var message={
  108. title:"发表留言",
  109. width:450,
  110. height:350,
  111. templete:"<div id='respond'>"+  
  112. "<form action='/blog?m=addMessage' method='post' onsubmit='return checkform(this);' name='f2' target='cframe'>"+
  113. "<p><input type='text'  dataType='Require' msg='昵称不能为空' name='name' id='name'/>"+  
  114. "<label for='author'>您的昵称 </label></p>"+
  115. "<p><input type='text' name='email' dataType='Email' msg='邮箱地址格式不正确' id='email'/>"+  
  116. "<label for='email'>电子邮件 </label></p>"+
  117. "<p><input type='text' name='url' id='url' require='false' msg='网站格式不正确' dataType='Url'/>"+  
  118. "<label for='url'>您的网站</label>"+
  119. "</p>"+
  120. "<p><textarea name='content' dataType='Require' msg='内容不能为空' id='content' cols='80' rows='6'>"+
  121. "</textarea></p>"+        
  122. "<p><input type='submit' value='发表' /> "+
  123. "<input type='button' value='取消' onclick='Shade.hide();'/> "+        
  124. "</p>"+
  125. "</form>"+
  126. " </div>" 
  127. };
  128. var indexList=[gr,rz,fl,ly,pl,link];
  129. var allList=[ly,gr,fl,rz,rz_list,rz_single,ly_list,pl,pl_list,add_pl];