<div class="panel">
    <div class="user_operation_line" style="height:4px;font-size:0px;">
		{*<div class="uol_item" onclick="ShowBlock('show_block','attaches/change.php?ajax=1&id=0');">
            <div class="uol_in_item">{$lang.newsletter.button.upload}</div>
        </div>        *}
    </div>
	<div class="cr"></div>
{*    <div class="cr" id="cr">&nbsp;</div>
    <div id="num_news">
            <input type="hidden" name="sel" value="change_num_news"/>
            <div >
                {$lang.settings.num_news_index}: <input style="margin-left: 10px;" type="text" id="num_news_index" name="num_news_index" size="1" value="{$num_news}" />
                 <a href="#" style="margin-left: 30px;" class="admin_button_major" onclick="Change_news(); return false;">{$lang.button.save}<span>&nbsp;</span></a>
            </div>
    </div>*}
<script type="text/javascript">
{literal}
function Change_news(){
    var num = $("#num_news_index").val();
    //ajaxIndicator(1, 'num_news');
    $.post("admin_settings.php", 'sel=change_num_news&num_news_index='+num, function(data){
                //ajaxIndicator(0, 'num_news');
                //$('#num_news').html(data);
            });
}

{/literal}
</script>
    <div class="cr" id="cr">&nbsp;
		<form id="settings_form" name="settings_form" class="settings_form" action="{$site_url}{$site_root}/admin/admin_news.php?sel=save" method="POST">
		<table border=0 cellspacing=0 cellpadding=5>
			<tr bgcolor="#FFFFFF">
				<td align="left" nowrap class="main_header_text" width="auto" style="margin-right:10px;">{$lang.settings.use_horoscope_feature}:&nbsp;</td>
				<td class="main_content_text" align="center"><input type="checkbox" name="use_horoscope_feature" id="use_horoscope_feature" value="1" {if $data.use_horoscope_feature}checked{/if}></td>
				<td align="left">
					<div id="error_box" class="error_box_blue"></div>
				</td>
			</tr>
		</table>
		</form>
		<script language="JavaScript" type="text/javascript">
		{literal}
			var options = { 
				success: function(data){
					ShowAjaxError(data);
					return false;
				},
				beforeSubmit: function() { 
					ajaxIndicator(1, 'error_box');
				}
			};
			$(document).ready(function(){
				$("#use_horoscope_feature").change(function (){
					$('.settings_form').ajaxSubmit(options);
			return false;
				});
			});
		{/literal}
		</script>
	</div>
    <div class="user_status_line">
        <div id="tab_news" class="user_status_elem" onclick="ShowEditor('news','admin_news.php?ajax=1');form_undisp();">
            <a>{$lang.news.list}</a>
        </div>
        <div id="tab_feeds" class="user_status_elem" onclick="ShowEditor('feeds','admin_news.php?par=feeds&ajax=1');form_undisp();">
            <a>{$lang.news.rss_list}</a>
        </div>
        <div id="tab_horoscope" class="user_status_elem_active" onclick="ShowEditor('horoscope','admin_news.php?sel=horoscope&ajax=1');form_disp();">
            {$lang.news.rss_horoscope}
        </div>
		<script type="text/javascript">
			{literal}
				function form_disp(){
					$('#settings_form').css('display', '');
				}
				function form_undisp(){
					$('#settings_form').css('display', 'none');
				}
			{/literal}
		</script>

        <div class="cr"></div>
<div id="tooltip" onclick="hideToolTip()" style="text-align:center; background-color: #FFFFFF; border: 1px dotted; text-align: {$default_left}; position:absolute; display:none; padding:5px;"></div>
{literal}
<script type="text/javascript">
$(function() {
$('#tool_tip_4 *').tooltip();
});
</script>
{/literal}
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tbody>
		<tr class="table_header">
			<td width="60%" align="left">
				{$lang.news.rss_horoscope_link}
			</td>
			<td align="center">
				{$lang.news.rss_horoscope_lang}
			</td>
			<td width="30%" align="right">{$lang.button.action}
			</td>
		</tr>
		{section name=spr loop=$link_rss}
		<tr {if $smarty.section.spr.index mod 2 eq 1}class="table_row even"{else}class="table_row odd"{/if}>
			<td align="left" style="padding-left: 5px;">
				{$link_rss[spr].link}
			</td>
			<td align="center">
				{$link_rss[spr].code}
			</td>
			<td align="center">
{*				<a class="admin_button_major" onclick="ShowBlock('show_block','{$link_rss[spr].edit_link}');return false;">{$lang.button.edit}<span>&nbsp;</span></a>
				&nbsp;&nbsp;
				<a class="admin_button" onclick="ShowBlock('show_block','{$link_rss[spr].del_link}');return false;">{$lang.button.delete}<span>&nbsp;</span></a>*}
				<div class="block_action fr" style="display: none;">
					<div class="action_del" style="display: block;">
						<img width="16" alt="" src="{$site_root}{$template_root}/images/photo_delete.png" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.delete}');return false" onclick="ShowBlock('show_block','{$link_rss[spr].del_link}');return false;">
					</div>
				</div>			
				<div style="width:10px;float:right;" class="fl">&nbsp;</div>
				<div class="block_action fr" style="display: none;">
					<div class="action_del" style="display: block;">
						<img width="16" alt="" src="{$site_root}{$template_root}/images/edit.png" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.edit}');return false" onclick="ShowBlock('show_block','{$link_rss[spr].edit_link}');return false;">
					</div>
				</div>										
			</td>
		</tr>
		{sectionelse}

		<tr height="40">
			<td class="main_error_text" align="left" colspan="3" bgcolor="#FFFFFF">{$lang.interests_spr.empty}</td>
		</tr>
		{/section}
		<tr class="table_header">
			<td colspan="3">&nbsp;</td>
		</tr>
	</tbody>
</table>
<script type="text/javascript">
{literal}
		function showToolTip(e,text){
			if(document.all)e = event;
			var obj = document.getElementById('tooltip');
			obj.innerHTML = text;
			obj.style.display = 'block';
			var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
			if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0;
			var leftPos = e.clientX - $('#tooltip').width()-10;
			if(leftPos<0)leftPos = 0;
			obj.style.left = leftPos + 'px';
			obj.style.top = e.clientY - obj.offsetHeight -10 + st + 'px';
		}
		function hideToolTip(){
			document.getElementById('tooltip').style.display = 'none';
		}
{/literal}		
</script>

<script type="text/javascript">
	tab_link = 'admin_news.php?ajax=1&sel=horoscope';
</script>
	</div>
</div>
			