<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" content="ie=edge" />
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>Dream项目管理系统 - <?php echo C('CFG_NAME') ?></title>
 <link  id="easySty" rel="stylesheet" type="text/css" href="__ITEM__/__UI__/themes/default/easyui.css">
 <link type="text/css" rel="stylesheet" href="__ITEM__/__ADMIN.CSS__/index.css">
 <link id="adminSty" type="text/css" rel="stylesheet" href="__ITEM__/__ADMIN.CSS__/default/style.css">
 <link rel="stylesheet" type="text/css" href="__ITEM__/__UI__/themes/icon.css">
 <link rel="stylesheet" href="__ITEM__/__JS__/kindeditor/themes/default/default.css" />
 <link rel="stylesheet"  href="__ITEM__/__JS__/datepicker/skin/default/datepicker.css">  
 
 <script type="text/javascript" src="__ITEM__/__JS__/datepicker/WdatePicker.js"></script>
 <script charset="utf-8" src="__ITEM__/__JS__/kindeditor/kindeditor-min.js"></script>
 <script charset="utf-8" src="__ITEM__/__JS__/kindeditor/lang/zh_CN.js"></script>
 <script type="text/javascript" src="__ITEM__/__UI__/jquery.js"></script>
 <script type="text/javascript" src="__ITEM__/__JS__/jquery.cookie.js"></script>
 <script type="text/javascript" src="__ITEM__/__UI__/jquery.easyui.min.js"></script>
 <script type="text/javascript" src="__ITEM__/__UI__/locale/easyui-lang-zh_CN.js"></script> 
 <script type="text/javascript" src="__ITEM__/__UI__/plugins/jquery.kindeditor.js"></script>
 <script type="text/javascript" src="__ITEM__/__UI__/plugins/jquery.datepicker.js"></script>
 <script type="text/javascript" src="__ITEM__/__UI__/view/datagrid-scrollview.js"></script>
 <script type="text/javascript" src="__ITEM__/__UI__/view/datagrid-bufferview.js"></script>

 <script type="text/javascript" src="__ITEM__/__JS__/objFunc.js"></script> 
 <script type="text/javascript" src="__ITEM__/__JS__/getPinYin.js"></script> 
 <script type="text/javascript" src="__ITEM__/__JS__/objClass.js"></script>
 <script type="text/javascript" src="__ITEM__/__JS__/acrossClass.js"></script> 
 <script charset="utf-8" src="__ITEM__/__JS__/kindeditor/plugins/image/image.js"></script>
 
 <script language="javascript">
 var cancel = new Array();
 
 function toRepwd(){
	 $(function(){
		var idd = <?php echo $_SESSION['login']['se_id'] ?>;
		$("#repwd").dialog({
			title:'修改密码',
			resizable:true,
			width:400,
			height:225,
			href:'__APP__?g=<?php echo GROUP_NAME; ?>&m=User&a=repwd&id='+idd,
			onOpen:function(){
				cancel['Repwd'] = $(this);
			},
		});	 
	 });
 }
 
 function toShowSms(){
	 $(function(){
		$("#setpwd").dialog({
			title:'我的信息',
			resizable:true,
			width:580,
			height:353,
			href:'__APP__?g=<?php echo GROUP_NAME; ?>&m=User&a=showsms&act=1',
			onOpen:function(){
				cancel['Sendsms'] = $(this);
			},
			onClose:function(){
				cancel['SmsDetail'].dialog('destroy');
				cancel['SmsDetail'].dialog('close');
				cancel['SmsDetail'] = null;
				cancel['Sendmail'] = null;
			}
		});	 
	 });
 }
 
 function toSetpwd(){
	 $(function(){
		var idd = <?php echo $_SESSION['login']['se_id'] ?>;
		$("#setpwd").dialog({
			title:'邮箱设置',
			resizable:true,
			width:450,
			height:250,
			href:'__APP__?g=<?php echo GROUP_NAME; ?>&m=User&a=setpwd&id='+idd,
			onOpen:function(){
				cancel['Setpwd'] = $(this);
			},
		});	 
	 });
 }
 
 function toSendMail(){
	var idd = <?php echo $_SESSION['login']['se_id'] ?>;
	$("<div />").dialog({
		title:'发邮件',
		resizable:true,
		width:900,
		height:435,
		href:'__APP__?g=Public&m=Mail&a=index&mode=1&id='+idd,
		onOpen:function(){
			cancel['Sendmail'] = $(this);
		},
		onClose:function(){
			cancel['Sendmail'].dialog('destroy');
			cancel['Sendmail'] = null;
		}
	});
 }
 
 function toClearCache(){
	 $(function(){
		$.get('__APP__?g=<?php echo GROUP_NAME; ?>&m=Index&a=cache', function(data){
			$.messager.alert('提示','所有临时、JSON等缓存文件已被清除！','info');
		}); 
		
	 });
 }
 
 
 
 $(function(){
	$.ajaxSetup({  
		async : false  
	});
	
	var browser_cache = Boolean(Number('{$TC.config.BROWSER_CACHE}'));
	jQuery.ajaxSetup ({cache:browser_cache});
	
	$(window).bind('load',function(){
		$.get('__GROUP__/index/clear', function(data){});
	});
	var isskin = $.cookie('easyui');
	if(isskin){
		$("#adminSty").attr("href","__ITEM__/__ADMIN.CSS__/"+isskin+"/style.css");
		$("#logoImg").attr("src","__ITEM__/__ADMIN.CSS__/"+isskin+"/logo.png");
		$("#easySty").attr("href","__ITEM__/__UI__/themes/"+isskin+"/easyui.css");
	}
	$.ajaxSetup({  
		async : true  
	});
 });
 </script>
</head>
<body class="easyui-layout">
 <div class="top" id="topBg" data-options="region:'north',border:false">
  <include file="top" />
 </div>
 <div data-options="region:'west',split:true,title:'菜单'" style="width:165px;">
  <include file="left" />
 </div>
 <div data-options="region:'center',split:true">
  <div id="rightTabs" class="easyui-tabs" data-options="fit:true,border:false">
   <if condition="$type==1">
    <div title="最新跟进" data-options="closable:false,id:-3,href:'__APP__?g=<?php echo GROUP_NAME; ?>&m=<?php echo MODULE_NAME; ?>&a=myview'"></div>   
   <else />
    <div title="控制台" data-options="closable:false,id:-1,href:'__APP__?g=<?php echo GROUP_NAME; ?>&m=<?php echo MODULE_NAME; ?>&a=main'"></div>
   </if>
  </div>
 </div>
 <div id="repwd"></div>
 <div id="setpwd"></div>
</body>
</html>