Location: PHPKode > projects > PBBoard > PBBoard_v2.1.4/Upload/look/styles/admin/main/templates/forum_add.tpl
<script src="includes/js/jquery.js"></script>
<script language="javascript">

function OrderChange()
{
	value = $("#order_type_id").val();

	if (value == 'manual')
	{
		$("#sort_id").show();
	}
	else
	{
		$("#sort_id").hide();
	}
}

function Ready()
{
	value = $("#order_type_id").val();

	if (value == 'manual')
	{
		$("#sort_id").show();
	}
	else
	{
		$("#sort_id").hide();
	}

	$("#order_type_id").change(OrderChange);
}

$(document).ready(Ready);

-->
</script>
	<script type="text/javascript" src="look/jscolor/jscolor.js"></script>

<br />

<div class="address_bar">{$lang['Control_Panel']} &raquo;
<a href="admin.php?page=forums&amp;control=1&amp;main=1">{$lang['Forums']}</a> &raquo;
<a href="admin.php?page=forums&amp;add=1&amp;main=1"> {$lang['Add_new_Forum']}</a></div>
<br />

<form action="admin.php?page=forums&amp;add=1&amp;start=1" method="post">
	<table width="90%" class="t_style_b" border="0" cellspacing="1" align="center">
		<tr align="center">
			<td class="main1" colspan="2">
			{$lang['Basic_information']}
			</td>
		</tr>
		<tr>
			<td class="row1">
			{$lang['Forum_Name']}
			</td>
			<td class="row1">
				<input type="text" name="name" id="input_name" value="" size="30" />
				<label for="forum_title_color">{$lang['forum_title_color']}:</label>
              <input class="colors" name="forum_title_color" type="text" size="10" />
			</td>
		</tr>
		<tr>
			<td class="row2">
			{$lang['Forum_Order']}
			</td>
			<td class="row2">
				<select name="order_type" id="order_type_id">
					<option value="auto" selected="selected">{$lang['auto_order']}</option>
					<option value="manual">{$lang['manual_order']}</option>
				</select>
				<input type="text" name="sort" id="sort_id" value="" size="5" />
			</td>
		</tr>
		<tr align="center">
			<td class="row2">
			{$lang['Forum_Follow_to']}
			</td>
			<td class="row2">
					{$DoJumpList}
			</td>
		</tr>
	</table>

	<br />
	<table width="90%" class="t_style_b" border="0" cellspacing="1" align="center">
		<tr align="center">
			<td class="main1" colspan="2">
			{$lang['Forum_describe']}
			</td>
		</tr>
		<tr align="center">
			<td class="row1" colspan="2">
				<textarea name="describe" id="textarea_describe" rows="3" cols="40" wrap="virtual" dir="{$_CONF['info_row']['content_dir']}"></textarea>
				<br /><span class="smallfont"> {$lang['varcharForum_describe']}</span>
			</td>
		</tr>
	</table>

	<br />

	<table width="90%" class="t_style_b" border="0" cellspacing="1" align="center">
		<tr align="center">
			<td class="main1" colspan="5">
			{$lang['Powers_short']}
			</td>
		</tr>
		<tr align="center">
			<td class="main2">
			{$lang['Group']}
			</td>
			<td class="main2">
			{$lang['View_forums']}
			</td>
			<td class="main2">
			{$lang['ViewSubject']}
			</td>
			<td class="main2">
			{$lang['Write_subjects']}
			</td>
			<td class="main2">
			{$lang['write_reply']}
			</td>
		</tr>
		{Des::while}{groups}
		<tr align="center">
			<td class="row1">
				{$groups['title']}
			</td>
			<td class="row2">
			<label for="groups[{$groups['id']}][view_section]">
			{if {$groups['id']} == '6'}
			<input name="groups[{$groups['id']}][view_section]" id="input_view_section" value="1" tabindex="1" type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][view_section]" id="input_view_section" value="0" tabindex="1" checked type="radio">{$lang['no']}
			{else}
			<input name="groups[{$groups['id']}][view_section]" id="input_view_section" value="1" tabindex="1" checked type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][view_section]" id="input_view_section" value="0" tabindex="1" type="radio">{$lang['no']}
			{/if}
            </label>
			</td>
			<td class="row2">
			<label for="groups[{$groups['id']}][view_subject]">
			{if {$groups['id']} == '6'}
			<input name="groups[{$groups['id']}][view_subject]" id="input_view_subject" value="1" tabindex="1" type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][view_subject]" id="input_view_subject" value="0" tabindex="1" checked type="radio">{$lang['no']}
			{else}
			<input name="groups[{$groups['id']}][view_subject]" id="input_view_subject" value="1" tabindex="1" checked type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][view_subject]" id="input_view_subject" value="0" tabindex="1" type="radio">{$lang['no']}
			{/if}
            </label>
			</td>
			<td class="row1">
			<label for="groups[{$groups['id']}][write_subject]">
			{if {$groups['id']} == '6'}
			<input name="groups[{$groups['id']}][write_subject]" id="input_write_subject" value="1" tabindex="1" type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][write_subject]" id="input_write_subject" value="0" tabindex="1" checked type="radio">{$lang['no']}
		{elseif {$groups['id']} == '7'}
			<input name="groups[{$groups['id']}][write_subject]" id="input_write_subject" value="1" tabindex="1" type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][write_subject]" id="input_write_subject" value="0" tabindex="1" checked type="radio">{$lang['no']}
		{elseif {$groups['id']} == '5'}
			<input name="groups[{$groups['id']}][write_subject]" id="input_write_subject" value="1" tabindex="1" type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][write_subject]" id="input_write_subject" value="0" tabindex="1" checked type="radio">{$lang['no']}
		{else}
			<input name="groups[{$groups['id']}][write_subject]" id="input_write_subject" value="1" tabindex="1" checked type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][write_subject]" id="input_write_subject" value="0" tabindex="1" type="radio">{$lang['no']}
			{/if}
            </label>
			</td>
			<td class="row2">
			<label for="groups[{$groups['id']}][write_reply]">
			{if {$groups['id']} == '6'}
			<input name="groups[{$groups['id']}][write_reply]" id="input_write_reply" value="1" tabindex="1" type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][write_reply]" id="input_write_reply" value="0" tabindex="1" checked type="radio">{$lang['no']}
		{elseif {$groups['id']} == '7'}
			<input name="groups[{$groups['id']}][write_reply]" id="input_write_reply" value="1" tabindex="1" type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][write_reply]" id="input_write_reply" value="0" tabindex="1" checked type="radio">{$lang['no']}
		{elseif {$groups['id']} == '5'}
			<input name="groups[{$groups['id']}][write_reply]" id="input_write_reply" value="1" tabindex="1" type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][write_reply]" id="input_write_reply" value="0" tabindex="1" checked type="radio">{$lang['no']}
		{else}
			<input name="groups[{$groups['id']}][write_reply]" id="input_write_reply" value="1" tabindex="1" checked type="radio">{$lang['yes']}
			<input name="groups[{$groups['id']}][write_reply]" id="input_write_reply" value="0" tabindex="1" type="radio">{$lang['no']}
			{/if}
            </label>
			</td>
		</tr>
		{/Des::while}
	</table>

	<br />
{template}forums_am{/template}
	<div align="center">
		<input type="submit" value="{$lang['acceptable']}" name="submit" />
	</div>
</form>
Return current item: PBBoard