<?php
$channelPageTag = 'footDoc';

require_once('./setting.php');
require_once(SYSTEM_ROOT.'include/smarty_setting.php');
require_once(SYSTEM_ROOT.'include/public.php');

if ($user_tag->is_tj) {
    $smarty->display('tjNew/index.tpl');
    exit();
}

$foot_id = $_REQUEST['foot_id']?(int)$_REQUEST['foot_id']:0;
if(!$foot_id){
	echo '<script language="javascript">location.href="/vip_'.$user_name.'.html;</script>';
}
$sql = "select * from ev_user_foot_doc
	   where is_del=0 && id=".$foot_id." and userid=".$user_id;
$doc_info = $DB_Ev123->get_row($sql);
if(!$doc_info){
	header("Location: /404.php");
	exit();
}

$sql = "select * from ev_user_ad where userid=".$user_id." and type=1 order by id desc limit 1 " ;
$ad_type1 = $DB_Ev123->get_row($sql);


$floder_head = $dec[$model_id].'head.tpl';
$floder_foot = $dec[$model_id].'foot.tpl';

$css_arr = $css_info_arr[$model_id];

$smarty->assign('floder_head',$floder_head);
$smarty->assign('floder_foot',$floder_foot);
$smarty->assign('css_arr',$css_arr);
$smarty->assign('system_arr',$system_arr);
$smarty->assign('channel_info_arr',$channel_info);
$smarty->assign('channel_info_arr2',$channel_info11);
//$smarty->assign('channel_id',10000);
$smarty->assign('model_id',$model_id);
$smarty->assign('user_name',$user_name);
$smarty->assign('doc_info',$doc_info);
$smarty->assign('ad_type1',$ad_type1);
$smarty->assign('bottom_info_arr',$bottom_info_arr);
$smarty->assign('bottom_item_arr',$bottom_item_arr);
$smarty->assign('line_jobs',$line_jobs);
//$smarty->display($dec[$model_id]."foot_doc.tpl");

if($model_css){
	$smarty->display('public/foot_newdoc.tpl');
}else{
	if($model_id>41 && $model_id!=119 && $model_id!=69 && $model_id!=271 && $model_id!=285 && $model_id!=300){
		$smarty->display('public/foot_doc.tpl');
	}else{
		$smarty->display($dec[$model_id].'foot_doc.tpl');
	}
}
?>
