{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
    <a href="{$site_url}{$site_root}/admin/admin_settings.php">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<div class="red_header">{if $service eq 'lift_up'}{$lang.pays.service.lift_up}{elseif $service eq 'carousel'}{$lang.pays.service.carousel}{elseif $service eq 'refer_friend'}{$lang.pays.service.refer_friend}{/if}</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>{$lang.admin_help.service.$service}
    </div>
</div>

<div class="cr">&nbsp;</div>
<ul class="tabs">
    <li>
        <a {if $service eq 'lift_up'}class="current"{else}href="admin_pays.php?sel=service&service=lift_up"{/if}>{$lang.pays.service.lift_up}</a>
    </li>
    <li>
        <a {if $service eq 'carousel'}class="current"{else}href="admin_pays.php?sel=service&service=carousel"{/if}>{$lang.pays.service.carousel}</a>
    </li>
    <li>
        <a {if $service eq 'refer_friend'}class="current"{else}href="admin_pays.php?sel=service&service=refer_friend"{/if}>{$lang.pays.service.refer_friend}</a>
    </li>
</ul>
{if $service eq 'carousel'}
<form method="POST" action="admin_pays.php" style="margin: 0px; padding: 0px;" name="form_service">
<div class="panel">
	<div class="panel_section">
		<div class="panel_content" style="width:95%">					
			<input type="hidden" name="sel" value="service">
			<input type="hidden" name="service" value="{$service}">
			<input type="hidden" name="par" value="save">
			<table cellpadding="5" cellspacing="1" border="0">	
				<tr>
					<td class="main_header_text">
						{$lang.carousel.use_carousel}
					</td>
					<td>
						<input type="checkbox" name="use_carousel" id="use_carousel" {if $use_carousel}checked{/if}>
					</td>
				</tr>
				<tr>
					<td class="main_header_text">
						{$lang.carousel.dir_carousel}
					</td>
					<td>
						<input type="radio" name="dir_carousel" id="dir_carousel_0" value="0" {if !$carousel_vertical_dir}checked{/if}>{$lang.carousel.gor_direction}
						<input type="radio" name="dir_carousel" id="dir_carousel_1" value="1" {if $carousel_vertical_dir}checked{/if}>{$lang.carousel.ver_direction}
					</td>
				</tr>	
				<tr>
					<td class="main_header_text">
						{$lang.carousel.count_photos}
					</td>
					<td style="padding-left:10px;">
						<input type="text" name="count_photos" value="{$carousel_count_photos}" size="10"/>
					</td>
				</tr>	
				<tr>
					<td class="main_header_text">
						{$lang.carousel.during_days}
					</td>
					<td style="padding-left:10px;">
						<input type="text" name="during_days" value="{$carousel_during_days}" size="10"/>
					</td>
				</tr>
				{foreach item=item from=$sevice_settings}
				<tr>
					<td class="main_header_text">{$item.title}</td>
					<td style="padding-left:10px;"><input type="text" value="{$item.value}" name="settings[{$item.name}]" size="10"></td>
				</tr>
				{/foreach}
			</table>
		</div>
	</div>
</div>
<div>
	<a class="admin_button_major" onclick="javascript:document.form_service.submit();">{$lang.button.save}<span>&nbsp;</span></a>
</div>
</form>		
{/if}
{if $service eq 'lift_up'}
<form method="POST" action="admin_pays.php" style="margin: 0px; padding: 0px;" name="form_service">
<div class="panel">
	<div class="panel_section">
		<div class="panel_content" style="width:95%">				
			<input type="hidden" name="sel" value="service">
			<input type="hidden" name="service" value="{$service}">
			<input type="hidden" name="par" value="save">
			<table cellpadding="5" cellspacing="1" border="0">
				<tr>
					<td align="left" class="main_header_text">{$lang.settings.use_lift_up_in_search_service}:&nbsp;</td>
					<td class="main_content_text" align="left"><input type="checkbox" name="use_lift_up_in_search_service" value="1" {if $data.use_lift_up_in_search_service}checked{/if}></td>
				</tr>	
				{foreach item=item from=$sevice_settings}
				<tr>
					<td class="main_header_text">{$item.title}</td>
					<td align="left" style="padding-left:15px;"><input type="text" value="{$item.value}" name="settings[{$item.name}]" size="10"></td>
				</tr>
				{/foreach}
			</table>
		</div>
	</div>
</div>
<div>
	<a class="admin_button_major" onclick="javascript:document.form_service.submit();">{$lang.button.save}<span>&nbsp;</span></a>
</div>
</form>
{/if}
{if $service eq 'refer_friend'}
<form method="POST" action="admin_pays.php" style="margin: 0px; padding: 0px;" name="form_service">
<div class="panel">
	<div class="panel_section">
		<div class="panel_content" style="width:95%">				
			<input type="hidden" name="sel" value="service">
			<input type="hidden" name="service" value="{$service}">
			<input type="hidden" name="par" value="save">
			<table cellpadding="5" cellspacing="1" border="0">
				<tr>
					<td align="left" class="main_header_text">{$lang.settings.use_refer_friend}</td>
					<td>
						<input id="use_refer_friend_feature_id" type="checkbox" name="use_refer_friend_feature" value="1" {if $sevice_settings.use_refer_friend_feature}checked{/if} onclick="changeReferFriendPriceIdStatus(this.checked);">&nbsp;
						<script type="text/javascript">
						{literal}
						function changeReferFriendPriceIdStatus(checked){
							if(checked)
								document.getElementById('refer_friend_price_id').disabled=false;
							else
								document.getElementById('refer_friend_price_id').disabled=true;
						}
						{/literal}
						</script>
					</td>
				</tr>
				<tr>
					<td align="left" class="main_header_text">
						{$lang.refer_friend.foreach},&nbsp;{$site_unit_costunit}
					</td>
					<td style="padding-left:10px;">
						<input id="refer_friend_price_id" type="text" name="refer_friend_price" value="{$sevice_settings.refer_friend_price}" size="3" {if !$sevice_settings.use_refer_friend_feature}disabled{/if} />
					</td>
				</tr>
			</table>
		</div>
	</div>
</div>
<div>
	<a class="admin_button_major" onclick="javascript:document.form_service.submit();">{$lang.button.save}<span>&nbsp;</span></a>
</div>
</form>
{/if}
{include file="$admingentemplates/admin_bottom.tpl"}