|
From: Jon O. <jon...@us...> - 2006-08-01 21:03:29
|
Update of /cvsroot/mxbb/mx_pafiledb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23242/modules/mx_pafiledb/templates/subSilver Modified Files: pa_category_body.tpl pa_header.tpl pa_main_body.tpl pa_mcp.tpl Log Message: massive update Index: pa_mcp.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_mcp.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** pa_mcp.tpl 5 Apr 2006 21:30:45 -0000 1.4 --- pa_mcp.tpl 1 Aug 2006 21:03:25 -0000 1.5 *************** *** 1,21 **** <script language='javascript'> <!-- ! var add_file = false; ! var deletefile = false; ! ! function set_add_file(status) { ! add_file = status; } ! ! function set_delete_file(status) { ! deletefile = status; } ! ! ! function delete_file(theURL) { ! if (confirm('Are you sure you want to delete this file??')) { window.location.href=theURL; --- 1,21 ---- <script language='javascript'> <!-- ! var addItem = false; ! var deleteItem = false; ! ! function set_add_item(status) { ! addItem = status; } ! ! function set_delete_item(status) { ! deleteItem = status; } ! ! ! function delete_item(theURL) { ! if (confirm('Are you sure you want to delete this item??')) { window.location.href=theURL; *************** *** 24,42 **** { alert ('No Action has been taken.'); ! } } ! function disable_cat_list() { ! if(document.form.mode_js.options[document.form.mode_js.selectedIndex].value != 'file_cat') { ! document.form.cat_js_id.disabled = true; } ! if(document.form.mode_js.options[document.form.mode_js.selectedIndex].value == 'file_cat') { ! document.form.cat_js_id.disabled = false; } } ! // // Taking from the Attachment MOD of Acyd Burn --- 24,43 ---- { alert ('No Action has been taken.'); ! } } ! function disable_cat_list() { ! if(document.form.mode_mcp.options[document.form.mode_mcp.selectedIndex].value != 'cat') { ! document.form.cat_id.selectedIndex = '0'; ! document.form.cat_id.disabled = true; } ! if(document.form.mode_mcp.options[document.form.mode_mcp.selectedIndex].value == 'cat') { ! document.form.cat_id.disabled = false; } } ! // // Taking from the Attachment MOD of Acyd Burn *************** *** 44,50 **** function select(status) { ! for (i = 0; i < document.file_ids.length; i++) { ! document.file_ids.elements[i].checked = status; } } --- 45,51 ---- function select(status) { ! for (i = 0; i < document.ids.length; i++) { ! document.ids.elements[i].checked = status; } } *************** *** 52,67 **** function check() { ! if(add_file) { return true; } ! for (i = 0; i < document.file_ids.length; i++) { ! if(document.file_ids.elements[i].checked == true) { ! if(deletefile) { ! if (confirm('Are you sure you want to delete these files??')) { return true; --- 53,68 ---- function check() { ! if(addItem) { return true; } ! for (i = 0; i < document.ids.length; i++) { ! if(document.ids.elements[i].checked == true) { ! if(deleteItem) { ! if (confirm('Are you sure you want to delete these items??')) { return true; *************** *** 75,79 **** } } ! alert('Please Select at least one file.'); return false; } --- 76,80 ---- } } ! alert('Please Select at least one item.'); return false; } *************** *** 84,97 **** <body onLoad="disable_cat_list();"> ! <form method="post" action="{S_FILE_ACTION}" name="form"> <table width="100%" cellpadding="3" cellspacing="1"> <tr> ! <td><span class="gen">{L_MCP_EXPLAIN}</span><br /><b><span class="genmed">{L_MODE}:</span></b> <select name="mode_js" onchange="disable_cat_list();">{S_MODE_SELECT}</select> <b><span class="genmed">{L_CATEGORY}:</span></b> {S_CAT_LIST}<input type="submit" class="liteoption" name="go" value="{L_GO}" /></td> </tr> </table> {S_HIDDEN_FIELDS} </form> - <form method="post" action="{S_FILE_ACTION}" name="file_ids" onsubmit="return check();"> <table width="100%" cellpadding="2" cellspacing="2"> <tr> --- 85,100 ---- <body onLoad="disable_cat_list();"> ! <form method="post" action="{S_ACTION}" name="form"> <table width="100%" cellpadding="3" cellspacing="1"> <tr> ! <td> ! <br /><b><span class="genmed">{L_MODE}:</span></b> <select name="mode_mcp" onchange="disable_cat_list();">{S_MODE_SELECT}</select> <b><span class="genmed">{L_CATEGORY}:</span></b> {S_CAT_LIST} <input type="submit" class="liteoption" name="go" value="{L_GO}" /> ! </td> </tr> </table> {S_HIDDEN_FIELDS} </form> + <form method="post" action="{S_ACTION}" name="ids" onsubmit="return check();"> <table width="100%" cellpadding="2" cellspacing="2"> <tr> *************** *** 102,139 **** </table> ! <!-- BEGIN file_mode --> <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> <tr> ! <th colspan="6" class="thHead"> {file_mode.L_FILE_MODE}</span></th> </tr> ! <!-- IF file_mode.DATA --> ! <!-- BEGIN file_row --> <tr> ! <td class="row1" align="center" width="5%"><span class="genmed">{file_mode.file_row.FILE_NUMBER}</span></td> ! <td class="row1" width="50%"><span class="genmed">{file_mode.file_row.FILE_NAME}</span></td> ! <td class="row1" align="center" width="10%"><span class="gen"><a href="{file_mode.file_row.U_FILE_EDIT}">{L_EDIT}</a></span></td> ! <td class="row1" align="center" width="10%"><span class="gen"><a href="javascript:delete_file('{file_mode.file_row.U_FILE_DELETE}')">{L_DELETE}</a></span></td> ! <td class="row1" align="center" width="20%"><span class="gen"><a href="{file_mode.file_row.U_FILE_APPROVE}">{file_mode.file_row.L_APPROVE}</a></span></td> ! <td class="row1" align="center" width="5%"><span class="genmed"><input type="checkbox" name="file_ids[]" value="{file_mode.file_row.FILE_ID}" /></span></td> </tr> ! <!-- END file_row --> <!-- ELSE --> <tr> ! <td class="row1" align="center"><span class="gen">{L_NO_FILES}</span></td> </tr> <!-- ENDIF --> </table> <br /> ! <!-- END file_mode --> ! <table width="100%" cellpadding="3" cellspacing="1" class="forumline"> ! <tr> ! <td class="cat" align="center"> ! {S_HIDDEN_FIELDS} ! <input type="submit" class="liteoption" name="approve" value="{L_APPROVE_FILE}" onClick="set_add_file(false); set_delete_file(false);" /> ! <input type="submit" class="liteoption" name="unapprove" value="{L_UNAPPROVE_FILE}" onClick="set_add_file(false); set_delete_file(false);" /> ! </td> ! </tr> ! </table> ! </form> <table width="100%" cellspacing="2" border="0" cellpadding="2"> <tr> --- 105,132 ---- </table> ! <!-- BEGIN mcp_mode --> <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> <tr> ! <th colspan="6" class="thHead"> {mcp_mode.L_MODE}</span></th> </tr> ! <!-- IF mcp_mode.DATA --> ! <!-- BEGIN row --> <tr> ! <td class="row1" align="center" width="5%"><span class="genmed">{mcp_mode.row.NUMBER}</span></td> ! <td class="row1" width="50%"><span class="genmed">{mcp_mode.row.NAME}</span></td> ! <td class="row1" align="center" width="10%"><span class="gen"><a href="{mcp_mode.row.U_EDIT}">{L_EDIT}</a></span></td> ! <td class="row1" align="center" width="10%"><span class="gen"><a href="javascript:delete_item('{mcp_mode.row.U_DELETE}')">{L_DELETE}</a></span></td> ! <td class="row1" align="center" width="20%"><span class="gen"><a href="{mcp_mode.row.U_APPROVE}">{mcp_mode.row.L_APPROVE}</a></span></td> ! <td class="row1" align="center" width="5%"><span class="genmed"><input type="checkbox" name="ids[]" value="{mcp_mode.row.ID}" /></span></td> </tr> ! <!-- END row --> <!-- ELSE --> <tr> ! <td class="row1" align="center"><span class="gen">{L_NO_ITEMS}</span></td> </tr> <!-- ENDIF --> </table> <br /> ! <!-- END mcp_mode --> <table width="100%" cellspacing="2" border="0" cellpadding="2"> <tr> *************** *** 144,146 **** </tr> </table> ! <!-- INCLUDE pa_footer.tpl --> \ No newline at end of file --- 137,150 ---- </tr> </table> ! <table width="100%" cellpadding="3" cellspacing="1" class="forumline"> ! <tr> ! <td class="cat" align="center"> ! {S_HIDDEN_FIELDS} ! <input type="submit" class="mainoption" name="do_approve" value="{L_APPROVE_ITEM}" onClick="set_add_item(true); set_delete_item(false);" /> ! <input type="submit" class="mainoption" name="do_unapprove" value="{L_UNAPPROVE_ITEM}" onClick="set_add_item(true); set_delete_item(false);" /> ! <input type="submit" class="liteoption" name="do_delete" value="{L_DELETE_ITEM}" onClick="set_add_item(false); set_delete_item(true);" /> ! </td> ! </tr> ! </table> ! </form> ! <!-- INCLUDE pa_footer.tpl --> \ No newline at end of file Index: pa_main_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_main_body.tpl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pa_main_body.tpl 4 Jul 2006 18:02:12 -0000 1.7 --- pa_main_body.tpl 1 Aug 2006 21:03:25 -0000 1.8 *************** *** 8,12 **** </table> ! <!-- IF CAT_PARENT_ORIGINAL --> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> --- 8,12 ---- </table> ! <!-- IF CAT_NAV_STANDARD --> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> *************** *** 38,42 **** ! <!-- IF CAT_PARENT --> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> --- 38,42 ---- ! <!-- IF CAT_NAV_SIMPLE --> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> *************** *** 49,53 **** <tr> <!-- BEGIN no_cat_parent --> ! <td width="{LINK_WIDTH}%"> <table border="0" cellpadding="2" cellspacing="2" width="100%"> <tr> --- 49,53 ---- <tr> <!-- BEGIN no_cat_parent --> ! <td width="{WIDTH}%"> <table border="0" cellpadding="2" cellspacing="2" width="100%"> <tr> Index: pa_header.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_header.tpl,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** pa_header.tpl 29 May 2006 15:41:46 -0000 1.10 --- pa_header.tpl 1 Aug 2006 21:03:25 -0000 1.11 *************** *** 76,80 **** <br /> <!-- IF IS_AUTH_MCP --> ! <b> <a href="{U_MCP}" class="gensmall">{MCP_LINK}</a> </b> <!-- ENDIF --> </td> --- 76,80 ---- <br /> <!-- IF IS_AUTH_MCP --> ! <b> <a href="{U_MCP}" class="gensmall">[{MCP_LINK}]</a> </b> <!-- ENDIF --> </td> Index: pa_category_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_category_body.tpl,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** pa_category_body.tpl 4 Jul 2006 18:02:12 -0000 1.9 --- pa_category_body.tpl 1 Aug 2006 21:03:25 -0000 1.10 *************** *** 8,12 **** </table> ! <!-- IF CAT_PARENT_ORIGINAL --> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> --- 8,12 ---- </table> ! <!-- IF CAT_NAV_STANDARD --> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> *************** *** 39,43 **** ! <!-- IF CAT_PARENT --> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> --- 39,43 ---- ! <!-- IF CAT_NAV_SIMPLE --> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> *************** *** 50,54 **** <tr> <!-- BEGIN no_cat_parent --> ! <td width="{LINK_WIDTH}%"> <table border="0" cellpadding="2" cellspacing="2" width="100%"> <tr> --- 50,54 ---- <tr> <!-- BEGIN no_cat_parent --> ! <td width="{WIDTH}%"> <table border="0" cellpadding="2" cellspacing="2" width="100%"> <tr> *************** *** 75,78 **** --- 75,79 ---- <!-- IF FILELIST --> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline"><tr><td> + <!-- IF ORIGINAL_STYLE --> <table width="100%" cellpadding="4" cellspacing="1"> <tr> *************** *** 110,113 **** --- 111,146 ---- <!-- END file_rows --> </table> + <!-- ELSE --> + <table width="100%" cellpadding="3" cellspacing="1"> + <tr> + <th class="thHead" colspan="2">{L_FILES}</th> + </tr> + <!-- BEGIN file_rows --> + <tr> + <td rowspan="2" class="{file_rows.COLOR}" valign="middle"> <img src="{file_rows.PIN_IMAGE}" border="0" ></td> + <td width="100%" class="{file_rows.COLOR}"> + <a href="{file_rows.U_FILE}" class="topictitle">{file_rows.FILE_NAME}</a> + <!-- BEGIN IS_NEW_FILE --> + <img src="{file_rows.FILE_NEW_IMAGE}" border="0" alt="{L_NEW_FILE}"> + <!-- END IS_NEW_FILE --> + <br><span class="genmed">{file_rows.FILE_DESC}</span> + </td> + </tr> + <tr> + <td valign="top" align="left" class="{file_rows.COLOR}"> + <span class="gensmall"> + {L_UPDATE_TIME}: {file_rows.DATE} • {L_DOWNLOADS}: {file_rows.FILE_DLS} • {L_SUBMITED_BY} {file_rows.POSTER} + <!-- IF SHOW_RATINGS --> + • {file_rows.L_RATING}: {file_rows.RATING} ({file_rows.FILE_VOTES} {L_VOTES}) {file_rows.DO_RATE} + <!-- ENDIF --> + <!-- IF SHOW_COMMENTS --> + • {file_rows.L_COMMENT}: {file_rows.COMMENTS} + <!-- ENDIF --> + </span> + </td> + </tr> + <!-- END file_rows --> + </table> + <!-- ENDIF --> <form action="{S_ACTION_SORT}" method="post"> |