|
From: Jon O. <jon...@us...> - 2005-03-28 20:23:02
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20851/modules/mx_kb/templates/subSilver/admin Modified Files: kb_config_body.tpl Added Files: kb_field_add.tpl kb_select.tpl kb_select_field_delete.tpl kb_select_field_edit.tpl kb_select_field_type.tpl kb_type_edit_body.tpl Log Message: finally rewriting this module, once and for all - rewritten post methods - better security - separated html. bbcode, smilies from phpbb - wysiwyg support - adding custom fields - making it compatible with phpBB mod --- NEW FILE: kb_field_add.tpl --- <h1>{L_FIELD_TITLE}</h1> <p>{L_FIELD_EXPLAIN}</p> <form action="{S_FIELD_ACTION}" method="post"> <!-- IF ERROR neq '' --> <table width="100%" cellpadding="3" cellspacing="1" class="forumline"> <tr> <td class="row2" align="center">{ERROR}</td> </tr> </table> <br /> <!-- ENDIF --> <table width="100%" cellpadding="3" cellspacing="1" class="forumline"> <tr> <th colspan="2" class="thHead">{L_FIELD_TITLE}</th> </tr> <tr> <td width="50%" class="row1">{L_FIELD_NAME}<br><span class="gensmall">{L_FIELD_NAME_INFO}</span></td> <td class="row2"><input type="text" class="post" size="50" name="field_name" value="{FIELD_NAME}" /></td> </tr> <tr> <td class="row1">{L_FIELD_DESC}<br><span class="gensmall">{L_FIELD_DESC_INFO}</span></td> <td class="row2"><input type="text" class="post" size="50" name="field_desc" value="{FIELD_DESC}" /></td> </tr> <!-- IF DATA --> <tr> <td class="row1">{L_FIELD_DATA}<br><span class="gensmall">{L_FIELD_DATA_INFO}</span></td> <td class="row2"><textarea rows="6" name="data" cols="32">{FIELD_DATA}</textarea></td> </tr> <!-- ENDIF --> <!-- IF REGEX --> <tr> <td class="row1">{L_FIELD_REGEX}<br><span class="gensmall">{L_FIELD_REGEX_INFO}</span></td> <td class="row2"><input type="text" class="post" size="50" name="regex" value="{FIELD_REGEX}" /></td> </tr> <!-- ENDIF --> <!-- IF ORDER --> <tr> <td width="50%" class="row1">{L_FIELD_ORDER}</td> <td class="row2"><input type="text" class="post" size="6" name="field_order" value="{FIELD_ORDER}" /></td> </tr> <!-- ENDIF --> <tr> <td align="center" class="cat" colspan="2"> {S_HIDDEN_FIELDS}<input class="liteoption" type="submit" value="{L_FIELD_TITLE}" name="submit"> </td> </tr> </table> </form> Index: kb_config_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/admin/kb_config_body.tpl,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** kb_config_body.tpl 26 Mar 2005 22:52:37 -0000 1.9 --- kb_config_body.tpl 28 Mar 2005 20:22:48 -0000 1.10 *************** *** 13,34 **** <td class="row2" width="50%"><input type="radio" name="allow_new" value="1" {S_NEW_YES} /> {L_YES} <input type="radio" name="allow_new" value="0" {S_NEW_NO} /> {L_NO}</td> </tr> - <!-- - <tr> - <td class="row1" width="50%">{L_APPROVE_NEW_NAME}<br /><span class="gensmall">{L_APPROVE_NEW_EXPLAIN}</span></td> - <td class="row2" width="50%"><input type="radio" name="approve_new" value="1" {S_APPROVE_NEW_YES} /> {L_YES} <input type="radio" name="approve_new" value="0" {S_APPROVE_NEW_NO} /> {L_NO}</td> - </tr> - <tr> - <td class="row1" width="50%">{L_EDIT_NAME}<br /><span class="gensmall">{L_EDIT_EXPLAIN}</span></td> - <td class="row2" width="50%"><input type="radio" name="allow_edit" value="1" {S_EDIT_YES} /> {L_YES} <input type="radio" name="allow_edit" value="0" {S_EDIT_NO} /> {L_NO}</td> - </tr> - <tr> - <td class="row1" width="50%">{L_APPROVE_EDIT_NAME}<br /><span class="gensmall">{L_APPROVE_EDIT_EXPLAIN}</span></td> - <td class="row2" width="50%"><input type="radio" name="approve_edit" value="1" {S_APPROVE_EDIT_YES} /> {L_YES} <input type="radio" name="approve_edit" value="0" {S_APPROVE_EDIT_NO} /> {L_NO}</td> - </tr> - <tr> - <td class="row1" width="50%">{L_ANON_NAME}<br /><span class="gensmall">{L_ANON_EXPLAIN}</span></td> - <td class="row2" width="50%"><input type="radio" name="allow_anon" value="1" {S_ANON_YES} /> {L_YES} <input type="radio" name="allow_anon" value="0" {S_ANON_NO} /> {L_NO}</td> - </tr> - --> <tr> <td class="row1" width="50%">{L_NOTIFY_NAME}<br /><span class="gensmall">{L_NOTIFY_EXPLAIN}</span></td> --- 13,16 ---- *************** *** 39,48 **** <td class="row2" width="50%"><input class="post" type="text" name="admin_id" value="{ADMIN_ID}" size="5" maxlength="4" /></td> </tr> - <!-- - <tr> - <td class="row1" width="50%">{L_MOD_GROUP}<br /><span class="gensmall">{L_MOD_GROUP_EXPLAIN}</span></td> - <td class="row2" width="50%">{MOD_GROUP}</td> - </tr> - --> <tr> <td class="row1" width="50%">{L_HEADER_BANNER}<br /><span class="gensmall">{L_HEADER_BANNER_EXPLAIN}</span></td> --- 21,24 ---- *************** *** 62,70 **** </tr> <tr> ! <td class="row1" width="50%"><span class="gen">{L_NEWS_SORT}</span></td> <td class="row2" width="50%">{NEWS_SORT} </td> </tr> <tr> ! <td class="row1" width="50%"><span class="gen">{L_NEWS_SORT_PAR}</span></td> <td class="row2" width="50%">{NEWS_SORT_PAR} </td> </tr> --- 38,46 ---- </tr> <tr> ! <td class="row1" width="50%">{L_NEWS_SORT}</td> <td class="row2" width="50%">{NEWS_SORT} </td> </tr> <tr> ! <td class="row1" width="50%">{L_NEWS_SORT_PAR}</td> <td class="row2" width="50%">{NEWS_SORT_PAR} </td> </tr> *************** *** 79,83 **** <tr> <td class="row1" width="50%">{L_ALLOW_HTML}<br /><span class="gensmall">{L_ALLOW_HTML_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input class="post" type="radio" name="allow_html" value="1" {S_ALLOW_HTML_YES} /> {L_YES} <input type="radio" name="allow_html" value="0" {S_ALLOW_HTML_NO} /> {L_NO}</td> </tr> <tr> --- 55,59 ---- <tr> <td class="row1" width="50%">{L_ALLOW_HTML}<br /><span class="gensmall">{L_ALLOW_HTML_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input class="radio" type="radio" name="allow_html" value="1" {S_ALLOW_HTML_YES} /> {L_YES} <input type="radio" name="allow_html" value="0" {S_ALLOW_HTML_NO} /> {L_NO}</td> </tr> <tr> *************** *** 114,123 **** <td class="row2" width="50%"><input type="radio" name="bump_post" value="1" {S_BUMP_POST_YES} /> {L_YES} <input type="radio" name="bump_post" value="0" {S_BUMP_POST_NO} /> {L_NO}</td> </tr> - <!-- - <tr> - <td class="row1" width="50%">{L_FORUM_ID}<br /><span class="gensmall">{L_FORUM_ID_EXPLAIN}</span></td> - <td class="row2" width="50%">{FORUMS}</td> - </tr> - --> <tr> <td class="row1" width="50%">{L_DEL_TOPIC}<br /><span class="gensmall">{L_DEL_TOPIC_EXPLAIN}</span></td> --- 90,93 ---- *************** *** 132,141 **** <td class="row2" width="50%"><input type="radio" name="use_ratings" value="1" {S_USE_RATINGS_YES} /> {L_YES} <input type="radio" name="use_ratings" value="0" {S_USE_RATINGS_NO} /> {L_NO}</td> </tr> - <!-- - <tr> - <td class="row1" width="50%">{L_ALLOW_ANONYMOS_RATING}<br /><span class="gensmall">{L_ALLOW_ANONYMOS_RATING_EXPLAIN}</span></td> - <td class="row2" width="50%"><input type="radio" name="allow_anonymos_rating" value="1" {S_ALLOW_ANONYMOS_RATING_YES} /> {L_YES} <input type="radio" name="allow_anonymos_rating" value="0" {S_ALLOW_ANONYMOS_RATING_NO} /> {L_NO}</td> - </tr> - --> <tr> <td class="row1" width="50%">{L_VOTES_CHECK_IP}<br /><span class="gensmall">{L_VOTES_CHECK_IP_EXPLAIN}</span></td> --- 102,105 ---- --- NEW FILE: kb_select_field_edit.tpl --- <h1>{L_FIELD_TITLE}</h1> <p>{L_FIELD_EXPLAIN}</p> <form action="{S_FIELD_ACTION}" method="post"> <table width="100%" cellpadding="3" cellspacing="1" class="forumline"> <tr> <th colspan="2" class="thHead">{L_FIELD_TITLE}</th> </tr> <!-- BEGIN field_row --> <tr> <td width="3%" class="row1" align="center" valign="middle"><input type="radio" name="field_id" value="{field_row.FIELD_ID}" /></td> <td width="97%" class="row1"><b>{field_row.FIELD_NAME}</b><br /><span class="gensmall">{field_row.FIELD_DESC}</span></td></tr> <!-- END field_row --> <td align="center" class="cat" colspan="2"> {S_HIDDEN_FIELDS}<input class="liteoption" type="submit" value="{L_FIELD_TITLE}" name="submit"> </td> </tr> </table> </form> --- NEW FILE: kb_select.tpl --- <h1>{L_FIELD_TITLE}</h1> <p>{L_FIELD_EXPLAIN}</p> <form action="{S_FIELD_ACTION}" method="post"> <table width="100%" cellpadding="3" cellspacing="1" class="forumline"> <tr> <th class="thHead">{L_SELECT_TITLE}</b></th> </tr> <tr> <td align="center" class="row1" > <input class="liteoption" type="submit" value="add" name="mode"> <input class="liteoption" type="submit" value="edit" name="mode"> <input class="liteoption" type="submit" value="delete" name="mode"></td> </tr> <tr> <th class="thHead">{L_FIELD_TITLE}</b></th> </tr> <!-- BEGIN field_row --> <tr> <td width="97%" class="row1" align="center"><b>{field_row.FIELD_NAME}</b><br><span class="gensmall">{field_row.FIELD_DESC}</span></td> </tr> <!-- END field_row --> </table> </form> --- NEW FILE: kb_select_field_delete.tpl --- <h1>{L_FIELD_TITLE}</h1> <p>{L_FIELD_EXPLAIN}</p> <form action="{S_FIELD_ACTION}" method="post"> <table width="100%" cellpadding="3" cellspacing="1" class="forumline"> <tr> <th colspan="2" class="thHead">{L_FIELD_TITLE}</b></th> </tr> <!-- BEGIN field_row --> <tr> <td width="3%" class="row1" align="center" valign="middle"><input type="checkbox" name="field_ids[{field_row.FIELD_ID}]" value="yes"></td> <td width="97%" class="row1"><b>{field_row.FIELD_NAME}</b><br><span class="gensmall">{field_row.FIELD_DESC}</span></td> </tr> <!-- END field_row --> <tr> <td align="center" class="cat" colspan="2">{S_HIDDEN_FIELDS}<input class="liteoption" type="submit" value="{L_FIELD_TITLE}" name="submit"></td> </tr> </table> </form> --- NEW FILE: kb_select_field_type.tpl --- <h1>{L_FIELD_TITLE}</h1> <p>{L_FIELD_EXPLAIN}</p> <form action="{S_FIELD_ACTION}" method="post"> <table width="100%" cellpadding="3" cellspacing="1" class="forumline"> <tr> <th colspan="2" class="thHead">{L_FIELD_TITLE}</th> </tr> <tr> <td class="row1" align="center"> {S_SELECT_FIELD_TYPE} </td> </tr> <tr> <td align="center" class="cat" colspan="2"> {S_HIDDEN_FIELDS}<input class="liteoption" type="submit" value="{L_FIELD_TITLE}" name="submit"> </td> </tr> </table> </form> --- NEW FILE: kb_type_edit_body.tpl --- <h1>{L_EDIT_TITLE}</h1> <p>{L_EDIT_DESCRIPTION}</p> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <form action="{S_ACTION}" method="post"> <tr> <th class="thHead" colspan="2">{L_CAT_SETTINGS}</th> </tr> <tr> <td class="row1">{L_CATEGORY}</td> <td class="row2"><input class="post" type="text" size="25" name="catname" value="{CAT_NAME}" class="post" /></td> </tr> <!-- BEGIN switch_cat --> <tr> <td class="row1">{L_DESCRIPTION}</td> <td class="row2"><textarea rows="5" cols="45" wrap="virtual" name="catdesc" class="post">{CAT_DESCRIPTION}</textarea></td> </tr> <tr> <td class="row1">{L_PARENT}</td> <td class="row2"> <select name="parent"> <option value="0">{L_NONE}</otpion> {PARENT_LIST} </select> </tr> <tr> <td class="row1" width="50%">{L_FORUM_ID}<br /><span class="gensmall">{L_FORUM_ID_EXPLAIN}</span></td> <td class="row2" width="50%">{FORUM_LIST}</td> </tr> <!-- BEGIN switch_edit_category --> <tr> <td class="row1">{L_NUMBER_ARTICLES}</td> <td class="row2"><input class="post" type="text" size="4" maxlength="3" name="number_articles" value="{NUMBER_ARTICLES}" class="post" /></td> </tr> <!-- END switch_edit_category --> <!-- END switch_cat --> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN}<input type="submit" name="submit" value="{L_CREATE}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> |