<?php /* Smarty version Smarty-3.1.10, created on 2013-11-16 22:44:02
         compiled from "E:\APMServ5.2.6\www\htdocs\themes\member\website.html" */ ?>
<?php /*%%SmartyHeaderCode:144785287771e50d0e9-45213135%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5320c4690bde925ce40f0e2805946c38dcd91c84' => 
    array (
      0 => 'E:\\APMServ5.2.6\\www\\htdocs\\themes\\member\\website.html',
      1 => 1384609984,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '144785287771e50d0e9-45213135',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.10',
  'unifunc' => 'content_5287771e889c78_65164508',
  'variables' => 
  array (
    'pagename' => 0,
    'action' => 0,
    'websites' => 0,
    'web' => 0,
    'showpage' => 0,
    'cfg' => 0,
    'category_option' => 0,
    'do' => 0,
    'site_root' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5287771e889c78_65164508')) {function content_5287771e889c78_65164508($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<script type="text/javascript">
function check_sl(x,y){
		$("#sl_"+y).load("/module/baidu.php",{url:x});
}</script>
<div class="myDialog" id="myDialog" style="background:#DADAFF;display:none;"><p id="Dialogmsg" style="text-align:center;padding-top:10px;color:#0D7726;font-size:16px;">数据更新中，请稍等...</p></div>
            <div class="content">
            	<div class="title"><?php echo $_smarty_tpl->tpl_vars['pagename']->value;?>
</div>
                <div class="body">
            		<?php if ($_smarty_tpl->tpl_vars['action']->value=='list'){?>
                	<div id="listbox">
						<table width="100%" border="0" cellspacing="1" cellpadding="0">
							<tr>
								<th>ID</th>
								
								<th>网站地址</th>
								<th>所属分类</th>
								<th>网站状态</th>
								<th>更新时间</th>
								<th>操作选项</th>
								<th>百度收录</th>
							</tr>
							<?php  $_smarty_tpl->tpl_vars['web'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['web']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['websites']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['web']->key => $_smarty_tpl->tpl_vars['web']->value){
$_smarty_tpl->tpl_vars['web']->_loop = true;
?>
							<tr >
								<td><?php echo $_smarty_tpl->tpl_vars['web']->value['web_id'];?>
</td>
								<td class="textleft">
								<?php if ($_smarty_tpl->tpl_vars['web']->value['web_ispay']){?>
								<img border="0" src="/public/images/attr/audit.gif">
								<?php }?>
								<?php if ($_smarty_tpl->tpl_vars['web']->value['web_istop']){?>
								<font color="red">(荐)</font>
								<?php }?>
								<?php echo $_smarty_tpl->tpl_vars['web']->value['web_url'];?>

								</td>
								<td><?php echo $_smarty_tpl->tpl_vars['web']->value['cate_name'];?>
</td>
								<td style="color:<?php if ($_smarty_tpl->tpl_vars['web']->value['web_statuscode']==1){?>#78797C<?php }elseif($_smarty_tpl->tpl_vars['web']->value['web_statuscode']==3){?>#65BC0B<?php }else{ ?>#FF0000<?php }?>;"><?php echo $_smarty_tpl->tpl_vars['web']->value['web_status'];?>
</td>
								<td><?php echo $_smarty_tpl->tpl_vars['web']->value['web_utime'];?>
</td>
								<td>
								<?php if (!$_smarty_tpl->tpl_vars['web']->value['web_islink']&&$_smarty_tpl->tpl_vars['web']->value['web_statuscode']<3){?>
								<a href="javascript:;"  title="查看验证方法" onclick="alert ('自助审核方法：1.在贵站做上本站友链，2.点击友链转到本站，3.自动审核通过');">自助审核</a>
								 | 
								<?php }?>
								<?php if ($_smarty_tpl->tpl_vars['web']->value['web_statuscode']==3){?>
								<a href="javascript:;" onclick="webupdate(<?php echo $_smarty_tpl->tpl_vars['web']->value['web_id'];?>
);" >更新</a>
								 | 
								<?php }?>
								<?php if (!$_smarty_tpl->tpl_vars['web']->value['web_ispay']){?>
								<a target="_blank" href="https://me.alipay.com/hurq"  alt="仅需5元，无需认证，无需等待，快速收录" onclick="return confirm('VIP站点每天自动更新数据~让您的网站前排显示！仅需1元！点击确定转跳到支付宝支付页面');">VIP</a>
								 | 
								<?php }?>
								<a href="?mod=website&act=edit&wid=<?php echo $_smarty_tpl->tpl_vars['web']->value['web_id'];?>
" onclick="return confirm('警告，“非VIP站点”修改网站信息要重新审核，确定要修改网站数据吗？请三思');">修改</a>
								<?php if ($_smarty_tpl->tpl_vars['web']->value['web_statuscode']==1){?>
								 | <a href="?mod=website&act=del&wid=<?php echo $_smarty_tpl->tpl_vars['web']->value['web_id'];?>
" onclick="return confirm('确定要删除吗？删除后不可恢复，请三思');">删除</a>
								<?php }?>
								</td>
								<td><div id="sl_<?php echo $_smarty_tpl->tpl_vars['web']->value['web_id'];?>
"><a href="javascript:check_sl('www.btxkj.com<?php echo $_smarty_tpl->tpl_vars['web']->value['web_link'];?>
',<?php echo $_smarty_tpl->tpl_vars['web']->value['web_id'];?>
)">点击检测</a></div></td>
							</tr>
							<?php }
if (!$_smarty_tpl->tpl_vars['web']->_loop) {
?>
							<tr><td colspan="7">您还未提交任何站点！</td></tr>
							<?php } ?>
						</table>
					</div>
        			<div id="showpage" class="clearfix"><?php echo $_smarty_tpl->tpl_vars['showpage']->value;?>
</div>
        			<?php }?>
        
        			<?php if ($_smarty_tpl->tpl_vars['action']->value=='add'||$_smarty_tpl->tpl_vars['action']->value=='edit'){?>
        			<?php if ($_smarty_tpl->tpl_vars['cfg']->value['is_enabled_submit']=='yes'){?>
        			
        			  <div style="color: #439404; line-height: 23px; padding: 10px;">感谢您对站长啦网站目录的关注和支持！我们将在15个工作日内进行审核！本站支持自动审核，只要你做上本站链接后点击进入本站就自动收录！链接名称（任选一个关键字）：网站收录　网站目录　分类目录 链接地址：http://www.cnzzla.com/ </div>
                     <div style="background: #ffc; border: dashed 1px #f60; color: #f30; margin-top: 6px; margin-bottom:5px; padding: 8px;">
		本站提供网站快速收录服务，无需添加友情链接代码，无需等待漫长审核，1元/站。<strong><a target="_blank" href="https://me.alipay.com/hurq"  alt="仅需5元，无需认证，无需等待，快速收录"</strong>支付宝付款</a>！支付后联系快速审核<a target="_blank" href=http://sighttp.qq.com/authd?IDKEY=b60176fbcfcaf3d4c3c34a877e5f1fdf0359ab979aec29ed rel="nofollow"><img border="0" src="http://wpa.qq.com/imgd?IDKEY=b60176fbcfcaf3d4c3c34a877e5f1fdf0359ab979aec29ed&pic=41 &r=0.8989331065677106" alt="合作,意见,链接请Q我！" title="合作,意见,链接请Q我！"></a></div>
        			<div id="formbox">
						<form name="myfrom" id="myfrom" method="post" action="?mod=website">
        				<ul>
        					<li><strong>选择分类：</strong><select name="cate_id"><?php echo $_smarty_tpl->tpl_vars['category_option']->value;?>
</select></li>
        					<li><strong>网站域名：</strong><input type="text" name="web_url" id="web_url" class="ipt" size="50" maxlength="100" value="<?php echo $_smarty_tpl->tpl_vars['web']->value['web_url'];?>
" onblur="checkurl(this.value)" />  <input type="button" class="btn" id="meta_btn" value="点击自动获取信息" onclick="getmeta()"></li>
							<li><strong>网站名称：</strong><input type="text" name="web_name" id="web_name" class="ipt" size="50" maxlength="50" value="<?php echo $_smarty_tpl->tpl_vars['web']->value['web_name'];?>
" />    请只填写贵站名称 20字以内</li>
            				<li><strong>TAG标签：</strong><input type="text" name="web_tags" id="web_tags" class="ipt" size="50" maxlength="50" value="<?php echo $_smarty_tpl->tpl_vars['web']->value['web_tags'];?>
" onBlur="javascript:this.value=this.value.replace(/，/ig,',');" />   多个关键字请以小 , 隔开</li>
            				<li><strong>网站简介：</strong><textarea name="web_intro" id="web_intro" cols="50" rows="6" class="ipt"><?php echo $_smarty_tpl->tpl_vars['web']->value['web_intro'];?>
</textarea></li>
            			
							<li><strong>服务器IP：</strong><input name="web_ip" type="text" class="ipt" id="web_ip" size="30" maxlength="30" value="<?php echo $_smarty_tpl->tpl_vars['web']->value['web_ip'];?>
" readonly />  <input type="button" class="btn" id="data_btn" value="点击自动获取以下数据" onclick="getdata()"></li>
							<li><strong>PageRank：</strong><input name="web_grank" type="text" class="ipt" id="web_grank" size="10" maxlength="2" value="<?php echo !$_smarty_tpl->tpl_vars['web']->value['web_grank'] ? '0' : $_smarty_tpl->tpl_vars['web']->value['web_grank'];?>
" readonly /></li>
                            <li><strong>BaiduRank：</strong><input name="web_brank" type="text" class="ipt" id="web_brank" size="10" maxlength="2" value="<?php echo !$_smarty_tpl->tpl_vars['web']->value['web_brank'] ? '0' : $_smarty_tpl->tpl_vars['web']->value['web_brank'];?>
" readonly /></li>
                			<li><strong>SogouRank：</strong><input name="web_srank" type="text" class="ipt" id="web_srank" size="10" maxlength="2" value="<?php echo !$_smarty_tpl->tpl_vars['web']->value['web_srank'] ? '0' : $_smarty_tpl->tpl_vars['web']->value['web_srank'];?>
" readonly /></li>
							<li><strong>AlexaRank：</strong><input name="web_arank" type="text" class="ipt" id="web_arank" size="10" maxlength="10" value="<?php echo !$_smarty_tpl->tpl_vars['web']->value['web_arank'] ? '0' : $_smarty_tpl->tpl_vars['web']->value['web_arank'];?>
" readonly /></li>
            				<li><strong>&nbsp;</strong><input type="hidden" name="web_id" id="web_id" value="<?php echo $_smarty_tpl->tpl_vars['web']->value['web_id'];?>
"><input type="hidden" name="do" id="do" value="<?php echo $_smarty_tpl->tpl_vars['do']->value;?>
"><input type="submit" class="btn" value="提 交"> <input type="reset" class="btn" value="重 填"></li>
        				</ul>
        				</form>
    				</div>
        			<?php }else{ ?>
        			<div style="background: #ffc; border: dashed 1px #f30; color: #f00; padding: 20px; text-align: center;"><?php echo $_smarty_tpl->tpl_vars['cfg']->value['submit_close_reason'];?>
</div>
        			<?php }?>
					<?php }?>
                </div>
            </div>
            
            <script type="text/javascript">
			$(function() {
				$('#myDialog').dialog({
					width: 300,
					height:140,
					title:'更新数据',
					autoOpen: false,
					resizable:false,
					draggable:false,
					modal: true,
					zIndex:99999
				});
			});    
			</script>
			<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['site_root']->value;?>
public/scripts/members.js"></script>
<?php echo $_smarty_tpl->getSubTemplate ("footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php }} ?>