{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
    <a href="{$site_url}{$site_root}/flash_chat/admin/roomlist.php">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<div class="red_header">{$header.razdel_name}</div>
<div class="cr">&nbsp;</div>
<div class="help_text" style="display:block;">
    <div class="close_help">
        <img src="{$site_root}{$template_root}/images/close_help.png" alt="">
    </div>
    <div class="help_body">
        <span class="help_title">{$lang.help}:</span>{$help.chat_rooms_add}
    </div>
</div>
<div class="cr">&nbsp;</div>

<form name="room" action="room.php" method="post">
	<input type="hidden" name="id" value="{$smarty.request.id}">
	<input type="hidden" name="add">
	<input type="hidden" name="set">
	<input type="hidden" name="del">
	<table class="panel_section" border=0 cellspacing=0 cellpadding=0>
		<tr style="height: 25px;">
			<td class="main_header_text" align="left" style="padding-left: 10px; width: 20%;">{$header.name}:</td>
			<td><input type="text" name="name" value="{$smarty.request.name}"></td>
		</tr>
		<tr style="height: 25px;">
			<td class="main_header_text" align="left" style="padding-left: 10px; width: 20%;">{$header.password}:</td>
			<td><input type="text" name="password" value="{$smarty.request.password}"></td>
		</tr>
		<tr style="height: 25px;">
			<td class="main_header_text" align="left" style="padding-left: 10px; width: 20%;">{$header.public}:</td>
			<td><input type="checkbox" name="ispublic" value="{if $smarty.request.ispublic}{$smarty.request.ispublic}{else}y{/if}" {if $smarty.request.ispublic} checked {/if}></td>
		</tr>
		<tr style="height: 25px;">
			<td class="main_header_text" align="left" style="padding-left: 10px; width: 20%;">{$header.permanent}:</td>
			<td><input type="checkbox" name="ispermanent" value="{if $smarty.request.ispermanent}{$smarty.request.ispermanent}{else}l{/if}" {if $smarty.request.ispublic} checked{/if}></td>
		</tr>
		<!--tr style="height: 25px;">
			<td colspan="2" align="center">
{*				<input type="submit" name="add" value="{$header.add_new_room_btn}">
				<input type="submit" name="set" value="{$header.update_room_btn}" {if (!$smarty.request.id) || ($smarty.request.id=='0')}disabled{/if}>
				<input type="submit" name="del" value="{$header.remove_room_btn}" {if (!$smarty.request.id) || ($smarty.request.id=='0')}disabled{/if}>*}
				<a class="admin_button" href="#" name="add" id="add" onclick='document.room.add.value="1";document.room.submit();'>{$header.add_new_room_btn}<span>&nbsp;</span></a>			
				<a class="admin_button" href="#" name="set" id="set" onclick='document.room.set.value="1";document.room.submit();' {if (!$smarty.request.id) || ($smarty.request.id == '0')}style="display:none;"{/if}>{$header.update_room_btn}<span>&nbsp;</span></a>
				<a class="admin_button" href="#" name="del" id="del" onclick='document.room.del.value="1";document.room.submit();' {if (!$smarty.request.id) || ($smarty.request.id == '0')}style="display:none;"{/if}>{$header.remove_room_btn}<span>&nbsp;</span></a>
			</td>
		</tr-->
	</table>
    <div >
        <a class="admin_button_major" href="#" name="add" id="add" onclick='document.room.add.value="1";document.room.submit();'>{$header.add_new_room_btn}<span>&nbsp;</span></a>			
		<a class="admin_button_major" href="#" name="set" id="set" onclick='document.room.set.value="1";document.room.submit();' {if (!$smarty.request.id) || ($smarty.request.id == '0')}style="display:none;"{/if}>{$header.update_room_btn}<span>&nbsp;</span></a>
		<a class="admin_button_major" href="#" name="del" id="del" onclick='document.room.del.value="1";document.room.submit();' {if (!$smarty.request.id) || ($smarty.request.id == '0')}style="display:none;"{/if}>{$header.remove_room_btn}<span>&nbsp;</span></a>
    </div>
</form>
{include file="$admingentemplates/admin_bottom.tpl"}