|
From: Jon O. <jon...@us...> - 2006-07-04 22:33:40
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv12783/modules/mx_kb/templates/subSilver Modified Files: kb_rate_body.tpl Log Message: lots of optimizations Index: kb_rate_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_rate_body.tpl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** kb_rate_body.tpl 28 Jun 2006 21:18:14 -0000 1.7 --- kb_rate_body.tpl 4 Jul 2006 22:33:32 -0000 1.8 *************** *** 1,42 **** ! <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> ! <tr> ! <td align="left" class="nav"> ! <a href="{U_KB}" class="nav">{L_KB}</a> {PATH} ! </td> ! </tr> </table> - <!-- BEGIN rate --> - <form action="{S_RATE_ACTION}" method="POST"> <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> ! <tr> ! <th colspan="2" class="thHead"> {L_RATE}</th> ! </tr> ! <tr> ! <td class="row1" width="90%"><span class="genmed">{RATEINFO}</span></td> ! <td class="row2"> ! <select size="1" name="rating" class="forminput"> ! <option value="1">{L_R1}</option> ! <option value="2">{L_R2}</option> ! <option value="3">{L_R3}</option> ! <option value="4">{L_R4}</option> ! <option value="5" selected>{L_R5}</option> ! <option value="6">{L_R6}</option> ! <option value="7">{L_R7}</option> ! <option value="8">{L_R8}</option> ! <option value="9">{L_R9}</option> ! <option value="10">{L_R10}</option> ! </select> ! <input type="hidden" name="mode" value="rate"> ! <input type="hidden" name="k" value="{ID}"> ! <input type="hidden" name="rate" value="dorate"> ! </td> ! </tr> ! <tr> ! <td colspan="2" class="cat" align="center"><input class="liteoption" type="submit" value="{L_RATE}"> ! ! </td> ! </tr> </table> </form> - <!-- END rate --> --- 1,55 ---- ! <script language="JavaScript" type="text/javascript"> ! <!-- ! function checkRateForm() { ! if (document.rateform.rating.value == -1) ! { ! return false; ! } ! else ! { ! return true; ! } ! } ! // --> ! </script> ! ! <table width="100%" cellpadding="2" cellspacing="2"> ! <tr> ! <td valign="bottom"> ! <span class="nav"><a href="{U_KB}" class="nav">{L_KB}</a> » {L_RATE}</span> ! </td> ! </tr> </table> <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> ! <tr> ! <th colspan="2" class="thHead">{L_RATE}</th> ! </tr> ! <tr> ! <td class="row1" width="90%"><span class="genmed">{RATEINFO}</span></td> ! <td class="row2"> ! <form name="rateform" action="{S_RATE_ACTION}" method="post" onsubmit="return checkRateForm();"> ! <select size="1" name="rating" class="forminput"> ! <option value="-1" selected>{L_RATE}</option> ! <option value="1">{L_R1}</option> ! <option value="2">{L_R2}</option> ! <option value="3">{L_R3}</option> ! <option value="4">{L_R4}</option> ! <option value="5">{L_R5}</option> ! <option value="6">{L_R6}</option> ! <option value="7">{L_R7}</option> ! <option value="8">{L_R8}</option> ! <option value="9">{L_R9}</option> ! <option value="10">{L_R10}</option> ! <input type="hidden" name="action" value="rate"> ! <input type="hidden" name="file_id" value="{ID}"> ! </select> ! </td> ! </tr> ! <tr> ! <td colspan="2" class="cat" align="center"><input class="liteoption" type="submit" value="{L_RATE}" name="submit"> ! ! </td> ! </tr> </table> </form> |