}
$form_container = new FormContainer($lang->general_options); $form_container->output_row($lang->name." <em>*</em>", '', $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title'); $form_container->output_row($lang->short_description." <em>*</em>", '', $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');
$actions = "<script type=\"text/javascript\"> function checkAction(id) { var checked = '';
$('.'+id+'s_check').each(function(e, val) { if($(this).prop('checked') == true) { checked = $(this).val(); } }); $('.'+id+'s').each(function(e) { $(this).hide(); }); if($('#'+id+'_'+checked)) { $('#'+id+'_'+checked).show(); } } </script> <dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\"> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"1\" {$forum_checked[1]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->all_forums}</strong></label></dt> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"2\" {$forum_checked[2]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->select_forums}</strong></label></dt> <dd style=\"margin-top: 4px;\" id=\"forum_2\" class=\"forums\"> <table cellpadding=\"4\"> <tr> <td valign=\"top\"><small>{$lang->forums_colon}</small></td> <td>".$form->generate_forum_select('forum_1_forums[]', $mybb->input['forum_1_forums'], array('multiple' => true, 'size' => 5))."</td> </tr> </table> </dd> </dl> <script type=\"text/javascript\"> checkAction('forum'); </script>"; $form_container->output_row($lang->available_in_forums." <em>*</em>", '', $actions);
$actions = "<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\"> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"group_type\" value=\"1\" {$group_checked[1]} class=\"groups_check\" onclick=\"checkAction('group');\" style=\"vertical-align: middle;\" /> <strong>{$lang->all_groups}</strong></label></dt> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"group_type\" value=\"2\" {$group_checked[2]} class=\"groups_check\" onclick=\"checkAction('group');\" style=\"vertical-align: middle;\" /> <strong>{$lang->select_groups}</strong></label></dt> <dd style=\"margin-top: 4px;\" id=\"group_2\" class=\"groups\"> <table cellpadding=\"4\"> <tr> <td valign=\"top\"><small>{$lang->groups_colon}</small></td> <td>".$form->generate_group_select('group_1_groups[]', $mybb->input['group_1_groups'], array('multiple' => true, 'size' => 5))."</td> </tr> </table> </dd> </dl> <script type=\"text/javascript\"> checkAction('group'); </script>"; $form_container->output_row($lang->available_to_groups." <em>*</em>", '', $actions); $form_container->output_row($lang->show_confirmation." <em>*</em>", '', $form->generate_yes_no_radio('confirmation', $mybb->input['confirmation'], array('style' => 'width: 2em;'))); $form_container->end();
$approve_unapprove = array( '' => $lang->no_change, 'approve' => $lang->approve, 'unapprove' => $lang->unapprove, 'toggle' => $lang->toggle );
$open_close = array( '' => $lang->no_change, 'open' => $lang->open, 'close' => $lang->close, 'toggle' => $lang->toggle );
$stick_unstick = array( '' => $lang->no_change, 'stick' => $lang->stick, 'unstick' => $lang->unstick, 'toggle' => $lang->toggle );
$form_container = new FormContainer($lang->thread_moderation); $form_container->output_row($lang->approve_unapprove." <em>*</em>", '', $form->generate_select_box('approvethread', $approve_unapprove, $mybb->input['approvethread'], array('id' => 'approvethread')), 'approvethread'); $form_container->output_row($lang->open_close_thread." <em>*</em>", '', $form->generate_select_box('openthread', $open_close, $mybb->input['openthread'], array('id' => 'openthread')), 'openthread'); $form_container->output_row($lang->stick_unstick_thread." <em>*</em>", '', $form->generate_select_box('stickthread', $stick_unstick, $mybb->input['stickthread'], array('id' => 'stickthread')), 'stickthread');
$actions = " <dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\"> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"1\" {$move_checked[1]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->do_not_move_thread}</strong></label></dt> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"2\" {$move_checked[2]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->move_thread}</strong></label></dt> <dd style=\"margin-top: 4px;\" id=\"move_2\" class=\"moves\"> <table cellpadding=\"4\"> <tr> <td><small>{$lang->forum_to_move_to}</small></td> <td>".$form->generate_forum_select('move_1_forum', $mybb->input['move_1_forum'])."</td> </tr> <tr> <td><small>{$lang->leave_redirect}</small></td> <td>".$form->generate_yes_no_radio('move_2_redirect', $mybb->input['move_2_redirect'], array('style' => 'width: 2em;'))."</td> </tr> <tr> <td><small>{$lang->delete_redirect_after}</small></td> <td>".$form->generate_text_box('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td> </tr> </table> </dd> </dl> <script type=\"text/javascript\"> checkAction('move'); </script>"; $form_container->output_row($lang->move_thread." <em>*</em>", $lang->move_thread_desc, $actions);
$actions = " <dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\"> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"copy_type\" value=\"1\" {$copy_checked[1]} class=\"copys_check\" onclick=\"checkAction('copy');\" style=\"vertical-align: middle;\" /> <strong>{$lang->do_not_copy_thread}</strong></label></dt> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"copy_type\" value=\"2\" {$copy_checked[2]} class=\"copys_check\" onclick=\"checkAction('copy');\" style=\"vertical-align: middle;\" /> <strong>{$lang->copy_thread}</strong></label></dt> <dd style=\"margin-top: 4px;\" id=\"copy_2\" class=\"copys\"> <table cellpadding=\"4\"> <tr> <td><small>{$lang->forum_to_copy_to}</small></td> <td>".$form->generate_forum_select('copy_1_forum', $mybb->input['copy_1_forum'])."</td> </tr> </table> </dd> </dl> <script type=\"text/javascript\"> checkAction('copy'); </script>"; $form_container->output_row($lang->copy_thread." <em>*</em>", '', $actions);
$softdelete_restore = array( '' => $lang->no_change, 'restore' => $lang->restore, 'softdelete' => $lang->softdelete, 'toggle' => $lang->toggle );
$form_container->output_row($lang->softdelete_restore_thread." <em>*</em>", '', $form->generate_select_box('softdeletethread', $softdelete_restore, $mybb->input['softdeletethread'], array('id' => 'softdeletethread')), 'softdeletethread'); $form_container->output_row($lang->delete_thread." <em>*</em>", '', $form->generate_yes_no_radio('deletethread', $mybb->input['deletethread'], array('style' => 'width: 2em;'))); $form_container->output_row($lang->merge_thread." <em>*</em>", $lang->merge_thread_desc, $form->generate_yes_no_radio('mergethreads', $mybb->input['mergethreads'], array('style' => 'width: 2em;')));
| }
$form_container = new FormContainer($lang->general_options); $form_container->output_row($lang->name." <em>*</em>", '', $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title'); $form_container->output_row($lang->short_description." <em>*</em>", '', $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');
$actions = "<script type=\"text/javascript\"> function checkAction(id) { var checked = '';
$('.'+id+'s_check').each(function(e, val) { if($(this).prop('checked') == true) { checked = $(this).val(); } }); $('.'+id+'s').each(function(e) { $(this).hide(); }); if($('#'+id+'_'+checked)) { $('#'+id+'_'+checked).show(); } } </script> <dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\"> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"1\" {$forum_checked[1]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->all_forums}</strong></label></dt> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"2\" {$forum_checked[2]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->select_forums}</strong></label></dt> <dd style=\"margin-top: 4px;\" id=\"forum_2\" class=\"forums\"> <table cellpadding=\"4\"> <tr> <td valign=\"top\"><small>{$lang->forums_colon}</small></td> <td>".$form->generate_forum_select('forum_1_forums[]', $mybb->input['forum_1_forums'], array('multiple' => true, 'size' => 5))."</td> </tr> </table> </dd> </dl> <script type=\"text/javascript\"> checkAction('forum'); </script>"; $form_container->output_row($lang->available_in_forums." <em>*</em>", '', $actions);
$actions = "<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\"> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"group_type\" value=\"1\" {$group_checked[1]} class=\"groups_check\" onclick=\"checkAction('group');\" style=\"vertical-align: middle;\" /> <strong>{$lang->all_groups}</strong></label></dt> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"group_type\" value=\"2\" {$group_checked[2]} class=\"groups_check\" onclick=\"checkAction('group');\" style=\"vertical-align: middle;\" /> <strong>{$lang->select_groups}</strong></label></dt> <dd style=\"margin-top: 4px;\" id=\"group_2\" class=\"groups\"> <table cellpadding=\"4\"> <tr> <td valign=\"top\"><small>{$lang->groups_colon}</small></td> <td>".$form->generate_group_select('group_1_groups[]', $mybb->input['group_1_groups'], array('multiple' => true, 'size' => 5))."</td> </tr> </table> </dd> </dl> <script type=\"text/javascript\"> checkAction('group'); </script>"; $form_container->output_row($lang->available_to_groups." <em>*</em>", '', $actions); $form_container->output_row($lang->show_confirmation." <em>*</em>", '', $form->generate_yes_no_radio('confirmation', $mybb->input['confirmation'], array('style' => 'width: 2em;'))); $form_container->end();
$approve_unapprove = array( '' => $lang->no_change, 'approve' => $lang->approve, 'unapprove' => $lang->unapprove, 'toggle' => $lang->toggle );
$open_close = array( '' => $lang->no_change, 'open' => $lang->open, 'close' => $lang->close, 'toggle' => $lang->toggle );
$stick_unstick = array( '' => $lang->no_change, 'stick' => $lang->stick, 'unstick' => $lang->unstick, 'toggle' => $lang->toggle );
$form_container = new FormContainer($lang->thread_moderation); $form_container->output_row($lang->approve_unapprove." <em>*</em>", '', $form->generate_select_box('approvethread', $approve_unapprove, $mybb->input['approvethread'], array('id' => 'approvethread')), 'approvethread'); $form_container->output_row($lang->open_close_thread." <em>*</em>", '', $form->generate_select_box('openthread', $open_close, $mybb->input['openthread'], array('id' => 'openthread')), 'openthread'); $form_container->output_row($lang->stick_unstick_thread." <em>*</em>", '', $form->generate_select_box('stickthread', $stick_unstick, $mybb->input['stickthread'], array('id' => 'stickthread')), 'stickthread');
$actions = " <dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\"> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"1\" {$move_checked[1]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->do_not_move_thread}</strong></label></dt> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"2\" {$move_checked[2]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->move_thread}</strong></label></dt> <dd style=\"margin-top: 4px;\" id=\"move_2\" class=\"moves\"> <table cellpadding=\"4\"> <tr> <td><small>{$lang->forum_to_move_to}</small></td> <td>".$form->generate_forum_select('move_1_forum', $mybb->input['move_1_forum'])."</td> </tr> <tr> <td><small>{$lang->leave_redirect}</small></td> <td>".$form->generate_yes_no_radio('move_2_redirect', $mybb->input['move_2_redirect'], array('style' => 'width: 2em;'))."</td> </tr> <tr> <td><small>{$lang->delete_redirect_after}</small></td> <td>".$form->generate_numeric_field('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td> </tr> </table> </dd> </dl> <script type=\"text/javascript\"> checkAction('move'); </script>"; $form_container->output_row($lang->move_thread." <em>*</em>", $lang->move_thread_desc, $actions);
$actions = " <dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\"> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"copy_type\" value=\"1\" {$copy_checked[1]} class=\"copys_check\" onclick=\"checkAction('copy');\" style=\"vertical-align: middle;\" /> <strong>{$lang->do_not_copy_thread}</strong></label></dt> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"copy_type\" value=\"2\" {$copy_checked[2]} class=\"copys_check\" onclick=\"checkAction('copy');\" style=\"vertical-align: middle;\" /> <strong>{$lang->copy_thread}</strong></label></dt> <dd style=\"margin-top: 4px;\" id=\"copy_2\" class=\"copys\"> <table cellpadding=\"4\"> <tr> <td><small>{$lang->forum_to_copy_to}</small></td> <td>".$form->generate_forum_select('copy_1_forum', $mybb->input['copy_1_forum'])."</td> </tr> </table> </dd> </dl> <script type=\"text/javascript\"> checkAction('copy'); </script>"; $form_container->output_row($lang->copy_thread." <em>*</em>", '', $actions);
$softdelete_restore = array( '' => $lang->no_change, 'restore' => $lang->restore, 'softdelete' => $lang->softdelete, 'toggle' => $lang->toggle );
$form_container->output_row($lang->softdelete_restore_thread." <em>*</em>", '', $form->generate_select_box('softdeletethread', $softdelete_restore, $mybb->input['softdeletethread'], array('id' => 'softdeletethread')), 'softdeletethread'); $form_container->output_row($lang->delete_thread." <em>*</em>", '', $form->generate_yes_no_radio('deletethread', $mybb->input['deletethread'], array('style' => 'width: 2em;'))); $form_container->output_row($lang->merge_thread." <em>*</em>", $lang->merge_thread_desc, $form->generate_yes_no_radio('mergethreads', $mybb->input['mergethreads'], array('style' => 'width: 2em;')));
|
$form_container->output_row($lang->delete_poll." <em>*</em>", '', $form->generate_yes_no_radio('deletepoll', $mybb->input['deletepoll'], array('style' => 'width: 2em;'))); $form_container->output_row($lang->delete_redirects." <em>*</em>", '', $form->generate_yes_no_radio('removeredirects', $mybb->input['removeredirects'], array('style' => 'width: 2em;'))); $form_container->output_row($lang->remove_subscriptions." <em>*</em>", '', $form->generate_yes_no_radio('removesubscriptions', $mybb->input['removesubscriptions'], array('style' => 'width: 2em;')));
| $form_container->output_row($lang->delete_poll." <em>*</em>", '', $form->generate_yes_no_radio('deletepoll', $mybb->input['deletepoll'], array('style' => 'width: 2em;'))); $form_container->output_row($lang->delete_redirects." <em>*</em>", '', $form->generate_yes_no_radio('removeredirects', $mybb->input['removeredirects'], array('style' => 'width: 2em;'))); $form_container->output_row($lang->remove_subscriptions." <em>*</em>", '', $form->generate_yes_no_radio('removesubscriptions', $mybb->input['removesubscriptions'], array('style' => 'width: 2em;')));
|