예제 #1
0
<a  name="new_form"> </a>
<h3 class="post-form"><?php _e("Add New Topic","gf");?></h3>
<form name="new_topic_form" action="" class="standard-form postform" method="post">
	<p id="post-form-title-container">
		<label for="topic"><?php _e('Title'); ?>
			<input type="text" name="topic_title" id="topic" size="50" maxlength="80" tabindex="1" />
		</label>
	</p>

<p id="post-form-post-container">
	<label for="post_content"><?php _e('Post',"gf"); ?>
	<textarea name="topic_text" col="48" rows="10" tabindex="2" id="topic_text"></textarea>
	</label>
</p>
<p id="post-form-tags-container">
	<label for="tags-input"><?php printf(__('Tags (comma seperated)','gf'), bb_get_tag_page_link()) ?>
		<input type="text" tabindex="3" value="" maxlength="100" size="50" name="topic_tags" id="tags-input" gtbfieldid="44">
	</label>
</p>
<p id="post-form-forum-container">
	<label for="forum-id"><?php _e('Forum','gf'); ?>
	<?php echo gf_get_forum_dropdown(gf_get_root_forum_id());?>
</label>
</p>	

<?php wp_nonce_field("gf_create_topic");?>
<input type="submit" name="submit_topic" value="<?php _e('Create new topic','gf');?> "/>
</form>
예제 #2
0
<?php
$forum_options=gf_forum_prepare_fields(gf_get_current_forum_id());
$deleted_forum = bb_get_forum( gf_get_current_forum_id() );
?>
<form class="delete-forum standard-form" method="post" id="delete-forums" action="">
	<fieldset>
		<legend><?php _e('Delete Forum','gf'); ?></legend>
                    <p><?php _e('This forum contains:','gf'); ?></p>
		<ul>
			<li><?php printf(__('%d topic','gf'), $deleted_forum->topics); ?></li>
			<li><?php printf(__('%d post','gf'), $deleted_forum->posts); ?></li>
		</ul>
		<div id="option-forum-delete-contents">
			<div class="label"><?php _e( 'Action','gf' ); ?></div>
			<div class="inputs">
				<label class="radios">
					<input type="radio" name="move_topics" id="move-topics-delete" value="delete" /> <?php _e('Delete all topics and posts in this forum. <em>This can never be undone.</em>','gf'); ?>
				</label>
				<label class="radios">
					<input type="radio" name="move_topics" id="move-topics-move" value="move" checked="checked" /> <?php _e('Move topics from this forum into the replacement forum below.','gf'); ?>
				</label>
			</div>
		</div>
		<div id="option-forum-delete-contents">
			<label for="move-topics-forum"><?php _e( 'Replacement forum','gf' ); ?></label>
			<div class="inputs">
				<?php echo gf_get_forum_dropdown( array('id' => 'move_topics_forum', 'callback' => 'strcmp', 'callback_args' => array($deleted_forum->forum_id), 'selected' => $deleted_forum->forum_parent) ); ?>
			</div>
		</div>
	</fieldset>