ailinh890
Tổng số bài gửi : 287 Điểm tích lũy : 5083 Thích : 7 Tham gia : 03/02/2012
| Tiêu đề: [Share] Topic_list_box của codeforumotion Mon Jun 03, 2013 9:21 pm | |
| Demo: Demo online: http://codeforumotion.forumvi.com/f19-forum Code: Phpbb2: - Code:
-
/*Writen by Tuấn Anh http://codeforumotion.forumvi.com*/ <!-- BEGIN topics_list_box --><!-- BEGIN row --><!-- BEGIN header_table --><!-- BEGIN multi_selection --> <script type="text/javascript"> function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() { var all_checked = true; for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) { if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') { all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked; } } document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked; } function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() { for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) { if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') { document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked; } } } </script> <!-- END multi_selection -->
<!-- BEGIN multi_selection -->
<!-- END multi_selection -->
<!-- BEGIN pagination -->
<table width="100%" style="border:1px solid black;"> <tr> <td> <span class="gensmall">{PAGINATION}</span></td> <td align="right"><a href="#top">{L_BACK_TO_TOP}</a> </td> </tr> </table> <!-- END pagination --> <!-- END header_table --><!-- BEGIN header_row -->
<!-- END header_row --> <!-- BEGIN topic --> <br /><br /> <table width="100%" border="0"> <tr> <script type="text/javascript">$(function(){$(".xname").hide();});</script> <table style="float: left; width: 95%;border: 1px solid #B0B0B0;margin-left:15px;" > <tr> <td> <div class="blog_message1" href="{topics_list_box.row.U_VIEW_TOPIC}" ></div><div class="bai_new4"><r> <h2 class="topic-title"> <a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}"><span onmouseover="showtip('<font color=#40ff00><b>Thời gian gửi:</b></font> <font color=#FF6600><b>{topics_list_box.row.LAST_POST_TIME}</b></font><br /><font color=#40ff00><b>Trạng Thái:</b></font> <font color=#ff8c00>{topics_list_box.row.L_TOPIC_FOLDER_ALT}</font> <br /><font color=#40ff00><b>Lượt xem:</b></font> <font color=red>{topics_list_box.row.VIEWS}</font><br /><font color=#40ff00><b>Trả lời:</b></font> <font color=#FF66CC>{topics_list_box.row.REPLIES}</font><br>');" onmouseout="hidetip();"> {topics_list_box.row.TOPIC_TITLE}</span></a><span class="xname" style="float: right;"><strong>{topics_list_box.row.TOPIC_AUTHOR} </strong><br/></span> </h2> <!-- BEGIN switch_description --> <span class="genmed"> <br /> {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION} </span> <!-- END switch_description --> <span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span> <span class="gensmall"><!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree --></span> <p valign="middle"><span class="postdetails"><font color="black"> By: </font>{topics_list_box.row.TOPIC_AUTHOR}</span> <span class="postdetails"><font color="black"> -Trả lời: </font><font color="#8C8787">{topics_list_box.row.REPLIES}</font></span> <span class="postdetails"><font color="black"> -Xem: </font><font color="#8C8787">{topics_list_box.row.VIEWS}</font></span> <span class="postdetails"><font color="black"> -Gửi cuối: </font><font color="#8C8787">{topics_list_box.row.LAST_POST_TIME}</font></span></p> </r> </div> </td> </tr> </table> </tr> <tr> <!-- BEGIN multi_selection --> <p align="center" valign="middle"><span class="postdetails"><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></span></p> <!-- END multi_selection --> <!-- END topic --><!-- BEGIN no_topics --> <p colspan="{topics_list_box.row.COLSPAN}" align="center" valign="middle" height="30"><span class="gen">{topics_list_box.row.L_NO_TOPICS}</span></p> <!-- END no_topics --><!-- BEGIN bottom --> <td class="catBottom" colspan="{topics_list_box.row.COLSPAN}" valign="middle"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <span class="gensmall">{PAGINATION}</span></td> <td align="right"><a href="#top">{L_BACK_TO_TOP}</a> </td> </tr> </table> </td> </tr> </table> <script> /*Writen by Tuấn Anh in codeforumotion.forumvi.com*/ $(document).on('ready',function(){$('.blog_message1').each(function(){var url=$(this).attr('href');$(this).prepend('<a onclick="openWin(this.href.replace('#', '?showpost='), 1000, 500);return false" href="'+url+'"><img src="http://2img.net/i/fa/fdf_en3/logo.jpg"/></a>');$(this).load(url+' div.postbody img:eq(0)')})});</script> <!-- END bottom --><!-- BEGIN footer_table --> <!-- END footer_table --><!-- BEGIN spacer --><br class="gensmall" /><!-- END spacer --><!-- END row --><!-- END topics_list_box --> <style>.blog_message1 {overflow: hidden;margin-top: -5px;width: 110px;height: 55px;padding: 3px;border: 1px solid #CFCDCE;font-size: 0px;font-family: none;}.blog_message1 img {width: 110px;height: 55px;}.pun tbody.statused td.tcl {padding-left: 0;}.codebox {display: none;}.postmain blockquote,blockquote{display: none;}.blog_message1 {float: left;}.blog_tintuc li:nth-of-type(1) .blog_message1 {margin: 0px;width: 320px;height: 212px;border: 1px solid #626263;}.blog_tintuc li:nth-of-type(1) .blog_message1 img {padding: 0px;width: 320px;height: 212px;}.blog_tintuc li {background-color: white;} .blog_tintuc li:nth-of-type(3) .blog_message1, .blog_tintuc li:nth-of-type(2) .blog_message1 {width: 190px;height: 90px;float: left;margin: 0px;border: 1px solid #B0B0B0;}.blog_tintuc li:nth-of-type(3) .blog_message1 img , .blog_tintuc li:nth-of-type(2) .blog_message1 img {width: 190px;height: 90px;padding: 0px;}</style>
Punbb: - Code:
-
/*Writen by Tuấn Anh in codeforumotion.forumvi.com*/ <!-- BEGIN topics_list_box --><!-- BEGIN row --><!-- BEGIN header_table --><!-- BEGIN multi_selection --> <script type="text/javascript"> function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() { var all_checked = true; for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) { if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') { all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked; } } document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked; } function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() { for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) { if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') { document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked; } } } </script> <!-- END multi_selection -->
<!-- BEGIN multi_selection -->
<!-- END multi_selection -->
<!-- BEGIN pagination -->
<table width="100%" style="border:1px solid black;"> <tr> <td> <span class="gensmall">{PAGINATION}</span></td> <td align="right"><a href="#top">{L_BACK_TO_TOP}</a> </td> </tr> </table> <!-- END pagination --> <!-- END header_table --><!-- BEGIN header_row -->
<!-- END header_row --> <!-- BEGIN topic --> <br /><br /> <table width="100%" border="0"> <tr> <script type="text/javascript">$(function(){$(".xname").hide();});</script> <table style="float: left; width: 95%;border: 1px solid #B0B0B0;margin-left:15px;" > <tr> <td> <div class="blog_message1" href="{topics_list_box.row.U_VIEW_TOPIC}" ></div><div class="bai_new4"><r> <h2 class="topic-title"> <a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}"><span onmouseover="showtip('<font color=#40ff00><b>Thời gian gửi:</b></font> <font color=#FF6600><b>{topics_list_box.row.LAST_POST_TIME}</b></font><br /><font color=#40ff00><b>Trạng Thái:</b></font> <font color=#ff8c00>{topics_list_box.row.L_TOPIC_FOLDER_ALT}</font> <br /><font color=#40ff00><b>Lượt xem:</b></font> <font color=red>{topics_list_box.row.VIEWS}</font><br /><font color=#40ff00><b>Trả lời:</b></font> <font color=#FF66CC>{topics_list_box.row.REPLIES}</font><br>');" onmouseout="hidetip();"> {topics_list_box.row.TOPIC_TITLE}</span></a><span class="xname" style="float: right;"><strong>{topics_list_box.row.TOPIC_AUTHOR} </strong><br/></span> </h2> <!-- BEGIN switch_description --> <span class="genmed"> <br /> {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION} </span> <!-- END switch_description --> <span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span> <span class="gensmall"><!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree --></span> <p valign="middle"><span class="postdetails"><font color="black"> By: </font>{topics_list_box.row.TOPIC_AUTHOR}</span> <span class="postdetails"><font color="black"> -Trả lời: </font><font color="#8C8787">{topics_list_box.row.REPLIES}</font></span> <span class="postdetails"><font color="black"> -Xem: </font><font color="#8C8787">{topics_list_box.row.VIEWS}</font></span> <span class="postdetails"><font color="black"> -Gửi cuối: </font><font color="#8C8787">{topics_list_box.row.LAST_POST_TIME}</font></span></p> </r> </div> </td> </tr> </table> </tr> <tr> <!-- BEGIN multi_selection --> <p align="center" valign="middle"><span class="postdetails"><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></span></p> <!-- END multi_selection --> <!-- END topic --><!-- BEGIN no_topics --> <p colspan="{topics_list_box.row.COLSPAN}" align="center" valign="middle" height="30"><span class="gen">{topics_list_box.row.L_NO_TOPICS}</span></p> <!-- END no_topics --><!-- BEGIN bottom --> <td class="catBottom" colspan="{topics_list_box.row.COLSPAN}" valign="middle"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <span class="gensmall">{PAGINATION}</span></td> <td align="right"><a href="#top">{L_BACK_TO_TOP}</a> </td> </tr> </table> </td> </tr> </table> <script> $(document).on('ready',function(){$('.blog_message1').each(function(){var url=$(this).attr('href');$(this).prepend('<a onclick="openWin(this.href.replace('#', '?showpost='), 1000, 500);return false" href="'+url+'"><img src="http://2img.net/i/fa/fdf_en3/logo.jpg"/></a>');$(this).load(url+' .post-entry .entry-content img:eq(0)')})});</script> <!-- END bottom --><!-- BEGIN footer_table --> <!-- END footer_table --><!-- BEGIN spacer --><br class="gensmall" /><!-- END spacer --><!-- END row --><!-- END topics_list_box --> <style>.blog_message1 {overflow: hidden;margin-top: -5px;width: 110px;height: 55px;padding: 3px;border: 1px solid #CFCDCE;font-size: 0px;font-family: none;}.blog_message1 img {width: 110px;height: 55px;}.pun tbody.statused td.tcl {padding-left: 0;}.codebox {display: none;}.postmain blockquote,blockquote{display: none;}.blog_message1 {float: left;}.blog_tintuc li:nth-of-type(1) .blog_message1 {margin: 0px;width: 320px;height: 212px;border: 1px solid #626263;}.blog_tintuc li:nth-of-type(1) .blog_message1 img {padding: 0px;width: 320px;height: 212px;}.blog_tintuc li {background-color: white;} .blog_tintuc li:nth-of-type(3) .blog_message1, .blog_tintuc li:nth-of-type(2) .blog_message1 {width: 190px;height: 90px;float: left;margin: 0px;border: 1px solid #B0B0B0;}.blog_tintuc li:nth-of-type(3) .blog_message1 img , .blog_tintuc li:nth-of-type(2) .blog_message1 img {width: 190px;height: 90px;padding: 0px;}</style>
| |
|