{include file="$admingentemplates/admin_top.tpl"}
{strip}
<div class="back">
    <a href="{$form.back}">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<div class="red_header">{$header.songs_edit}</div>
<div class="cr">&nbsp;</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.cards_songs_edit}
    </div>
</div>

<div class="panel_section">
<div class="panel_content">
<form name="form" method="POST" action="{$form.action}" enctype="multipart/form-data">
{if $form.par eq 'edit'}
<input type="hidden" name="id" value="{$data.id}">
{/if}
<table border="0" cellspacing=3 cellpadding=0 width="100%">
	<tr >
		<td width="200" class="main_header_text" align="left">{$header.song_name} <font class="main_error_text">*</font>:&nbsp;</td>
		<td><input name="song_name" value="{$data.song_name}" style="width: 195px;"></td>
	</tr>
	<tr >
		<td class="main_header_text" valign="top" align="left">{$header.song_status}:&nbsp;</td>
		<td>
			<input type="checkbox" name="song_status" {if $data.song_status eq 1}checked{/if} value="1">
		</td>
	</tr>
	<tr >
		<td class="main_header_text" valign="top" align="left">{$header.song_file}:&nbsp;</td>
		<td>
			<div>{if $data.song_file}
{*			<embed id="sound_{$key}" src="{$data.song_file}" loop=false autostart=false height="30" width="300" pluginspage="http://www.apple.com/ru/quicktime/download/">*}
			<!--span id="player0" align=absmiddle>
				<script type="text/javascript">
					var fv = "file={$data.song_file}&autostart="+false+"&title={$data.song_name|escape}&lightcolor=0xD12627";
					{literal}var FO = {{/literal}
						movie:"{$site_root}/include/mp3player/mp3player.swf",width:"300",height:"20",majorversion:"7",build:"0",bgcolor:"#FFFFFF", flashvars:fv
					{literal}};{/literal}
					UFO.create(FO, "player0");
				</script>
			</span-->
            <embed src="{$data.song_file}" controls="console" autostart="false" loop=true height=16 width=200>
			{else}{$header.no_file}{/if}</div>
			<div style="padding-top: 5px;">                
                <input type="file" name="song_file"/>
            </div>
		</td>
	</tr>
</table>
</form>
</div>
</div>
<table>
	<tr >
		<td align="left">
			{if $form.par eq 'edit'}
                <a onclick="javascript: document.form.submit();" class="admin_button_major" >{$button.save}<span>&nbsp;</span></a>&nbsp;&nbsp;
            {else}
                <a onclick="javascript: document.form.submit();" class="admin_button_major" >{$button.add}<span>&nbsp;</span></a>&nbsp;&nbsp;
            {/if}
            {*<a onclick="document.location.href='{$form.back}'" class="admin_button btn_upload" >{$button.back}<span>&nbsp;</span></a>&nbsp;&nbsp;&nbsp;*}
        </td>
	</tr>
</table>
{/strip}
{include file="$admingentemplates/admin_bottom.tpl"}