<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="InfoPath.Inside.Home" %>

<%@ Register src="quickdirect.ascx" tagname="quickdirect" tagprefix="uc1" %>

<%@ Register src="Useful.ascx" tagname="Useful" tagprefix="uc2" %>

<%@ Register src="CheckCard.ascx" tagname="CheckCard" tagprefix="uc3" %>

<%@ Register src="../WorkFlow/FlowForStart.ascx" tagname="FlowForStart" tagprefix="uc4" %>
<%@ Register src="../WorkFlow/WfToDo.ascx" tagname="WfToDo" tagprefix="uc5" %>

<%@ Register src="../WorkFlow/OpenedWF.ascx" tagname="OpenedWF" tagprefix="uc6" %>

<%@ Register src="../Include/Css.ascx" tagname="Css" tagprefix="uc7" %>

<!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" >
<head runat="server">
    <title></title>

</head>
<body >
    <form id="form1" runat="server">
    <div>
        
        <uc7:Css ID="Css1" runat="server" />

  <TABLE width=98%>
  <TR>
	<TD valign=top width=50%>
	<fieldset class="WsdnOrgInfo1">
	<legend>
	<img src="../Icon/ip/go.png" width=20/>
	<asp:Label ID="Label1" runat="server"
        Text="快速跳转"></asp:Label>
	</legend>
	<uc1:quickdirect ID="quickdirect1" runat="server" />
	</fieldset>
	
	<fieldset class="WsdnOrgInfo1">
	<legend>
	<img src="../Icon/ip/note2.png" width=20/>
	<asp:Label ID="Label3" runat="server"
        Text="公告通知"></asp:Label>
	</legend>
<asp:datagrid id="DataGrid2" runat="server" AutoGenerateColumns="False" 
                    Width="100%" AllowPaging="False"  ShowHeader=false
							PageSize="8" GridLines="None">
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <HeaderStyle CssClass="" Font-Bold="True" HorizontalAlign="Left" />
							<Columns>
								<asp:HyperLinkColumn DataNavigateUrlField="自动编号" DataNavigateUrlFormatString="../Include/WelRedi.aspx?Tname=DontDelete_Notes&ctype=6&name=公告通知"
									DataTextField="c1" HeaderText="标题"></asp:HyperLinkColumn>
							</Columns>
						</asp:datagrid>
	</fieldset>
	

         
         	<fieldset class="WsdnOrgInfo1">
	<legend>
	<img src="../Icon/ip/phone2.png" width=20/>
	<A HREF="../Message/BoxFrame.htm"><asp:Label ID="Label6" runat="server"
        Text="在线通讯"></asp:Label></A>
	</legend><asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False" 
                    Width="100%" AllowPaging="False" ShowHeader=false
							PageSize="8" GridLines="None">
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <HeaderStyle CssClass="" Font-Bold="True" HorizontalAlign="Left" />
							<Columns>
								<asp:TemplateColumn HeaderImageUrl="../image/upload.GIF" HeaderText="状态">
									<HeaderTemplate>
										读
									</HeaderTemplate>
									<ItemTemplate>
										<asp:Image id="Image1" runat="server" ImageUrl='<%# String.Format("../image/{0}.gif", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_IsChecked"))%>'>
										</asp:Image>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:HyperLinkColumn DataNavigateUrlField="Wsdn_StarCRM_Id" DataNavigateUrlFormatString="../Message/Info.aspx?id={0}"
									DataTextField="Wsdn_StarCRM_Title" HeaderText="标题"></asp:HyperLinkColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_From" HeaderText=""></asp:BoundColumn>
							</Columns>
						</asp:datagrid>
	</fieldset>
	
        <asp:Panel ID="plFlow" runat="server">
       <fieldset class="WsdnOrgInfo1">
	<legend>
	<img src="../Icon/ip/save.png" width=20/>
	<asp:Label ID="Label8" runat="server"
        Text="发起流程"></asp:Label>
	</legend>

	    <uc4:FlowForStart ID="FlowForStart1" runat="server" />

	</fieldset>
	
	
	<fieldset class="WsdnOrgInfo1">
	<legend>
	<img src="../Icon/ip/post.png" width=20/>
	<asp:Label ID="Label9" runat="server"
        Text="待办事宜"></asp:Label>
	</legend>

	    <uc5:WfToDo ID="WfToDo1" runat="server" />

	</fieldset>
	
	
	<fieldset class="WsdnOrgInfo1">
	<legend>
	<img src="../Icon/ip/help.png" width=20/>
	<asp:Label ID="Label10" runat="server"
        Text="已办事宜"></asp:Label>
	</legend>
	    <uc6:OpenedWF ID="OpenedWF1" runat="server" />
	</fieldset>
	 </asp:Panel>
    
         </TD>
	<%--<TD valign=top>
	<fieldset>
	<legend>
	<img src="../Icon/ip/Clock2.png" width=20/>
	<asp:Label ID="Label2" runat="server"
        Text="系统时间"></asp:Label>
	</legend>
<script language="JavaScript">
    today = new Date();
    function initArray() {
        this.length = initArray.arguments.length
        for (var i = 0; i < this.length; i++)
            this[i + 1] = initArray.arguments[i]
    }
    var d = new initArray(
     "星期日",
     "星期一",
     "星期二",
     "星期三",
     "星期四",
     "星期五",
     "星期六");
    document.write(
     "<font color=##000000 style='font-size:11pt;'> ",
     today.getYear(), "年",
     today.getMonth() + 1, "月",
     today.getDate(), "日   ",
     d[today.getDay() + 1],
     "</font>"); 
						</script>
						&nbsp;&nbsp; <span id="liveclock"></span>
						<SCRIPT language="javascript">

						    function show5() {
						        if (!document.layers && !document.all)
						            return
						        var Digital = new Date()
						        var hours = Digital.getHours()
						        var minutes = Digital.getMinutes()
						        var seconds = Digital.getSeconds()
						        var dn = "AM"
						        if (hours > 12) {
						            dn = "PM"
						            hours = hours - 12
						        } if (hours == 0)
						            hours = 12
						        if (minutes <= 9)
						            minutes = "0" + minutes
						        if (seconds <= 9)
						            seconds = "0" + seconds
						        myclock = "<font size='3'>" + hours + ":" + minutes + ":"
+ seconds + " " + dn + "</font>"
						        if (document.layers) {
						            document.layers.liveclock.document.write(myclock)
						            document.layers.liveclock.document.close()
						        } else if (document.all)
						            liveclock.innerHTML = myclock
						        setTimeout("show5()", 1000)
						    }
						</SCRIPT>
						&nbsp;&nbsp;
						<script>
						    var CalendarData = new Array(20);
						    var madd = new Array(12);
						    var TheDate = new Date();
						    var tgString = "甲乙丙丁戊己庚辛壬癸";
						    var dzString = "子丑寅卯辰巳午未申酉戌亥";
						    var numString = "一二三四五六七八九十";
						    var monString = "正二三四五六七八九十冬腊";
						    var weekString = "日一二三四五六";
						    var sx = "鼠牛虎兔龙蛇马羊猴鸡狗猪";
						    var cYear;
						    var cMonth;
						    var cDay;
						    var cHour;
						    var cDateString;
						    var DateString;
						    var Browser = navigator.appName;

						    function init() {
						        CalendarData[0] = 0x41A95;
						        CalendarData[1] = 0xD4A;
						        CalendarData[2] = 0xDA5;
						        CalendarData[3] = 0x20B55;
						        CalendarData[4] = 0x56A;
						        CalendarData[5] = 0x7155B;
						        CalendarData[6] = 0x25D;
						        CalendarData[7] = 0x92D;
						        CalendarData[8] = 0x5192B;
						        CalendarData[9] = 0xA95;
						        CalendarData[10] = 0xB4A;
						        CalendarData[11] = 0x416AA;
						        CalendarData[12] = 0xAD5;
						        CalendarData[13] = 0x90AB5;
						        CalendarData[14] = 0x4BA;
						        CalendarData[15] = 0xA5B;
						        CalendarData[16] = 0x60A57;
						        CalendarData[17] = 0x52B;
						        CalendarData[18] = 0xA93;
						        CalendarData[19] = 0x40E95;
						        madd[0] = 0;
						        madd[1] = 31;
						        madd[2] = 59;
						        madd[3] = 90;
						        madd[4] = 120;
						        madd[5] = 151;
						        madd[6] = 181;
						        madd[7] = 212;
						        madd[8] = 243;
						        madd[9] = 273;
						        madd[10] = 304;
						        madd[11] = 334;
						    }

						    function GetBit(m, n) {
						        return (m >> n) & 1;
						    }

						    function e2c() {
						        var total, m, n, k;
						        var isEnd = false;
						        var tmp = TheDate.getYear();
						        if (tmp < 1900) tmp += 1900;
						        total = (tmp - 2001) * 365
+ Math.floor((tmp - 2001) / 4)
+ madd[TheDate.getMonth()]
+ TheDate.getDate()
- 23;
						        if (TheDate.getYear() % 4 == 0 && TheDate.getMonth() > 1)
						            total++;
						        for (m = 0; ; m++) {
						            k = (CalendarData[m] < 0xfff) ? 11 : 12;
						            for (n = k; n >= 0; n--) {
						                if (total <= 29 + GetBit(CalendarData[m], n)) {
						                    isEnd = true;
						                    break;
						                }
						                total = total - 29 - GetBit(CalendarData[m], n);
						            }
						            if (isEnd) break;
						        }
						        cYear = 2001 + m;
						        cMonth = k - n + 1;
						        cDay = total;
						        if (k == 12) {
						            if (cMonth == Math.floor(CalendarData[m] / 0x10000) + 1)
						                cMonth = 1 - cMonth;
						            if (cMonth > Math.floor(CalendarData[m] / 0x10000) + 1)
						                cMonth--;
						        }
						        cHour = Math.floor((TheDate.getHours() + 3) / 2);
						    }

						    function GetcDateString() {
						        var tmp = "";
						        tmp += tgString.charAt((cYear - 4) % 10);   //年干 
						        tmp += dzString.charAt((cYear - 4) % 12);   //年支 
						        tmp += "年(";
						        tmp += sx.charAt((cYear - 4) % 12);
						        tmp += ")";
						        if (cMonth < 1) {
						            tmp += "闰";
						            tmp += monString.charAt(-cMonth - 1);
						        }
						        else
						            tmp += monString.charAt(cMonth - 1);
						        tmp += "月";
						        tmp += (cDay < 11) ? "初" : ((cDay < 20) ? "十" : ((cDay < 30) ? "廿" : "卅"));
						        if (cDay % 10 != 0 || cDay == 10)
						            tmp += numString.charAt((cDay - 1) % 10);
						        if (cHour == 13) tmp += "夜";
						        tmp += dzString.charAt((cHour - 1) % 12);
						        tmp += "时";
						        cDateString = tmp;
						        return tmp;
						    }



						    init();
						    e2c();
						    GetcDateString();
						    document.write(cDateString); 
						</script>
						<div id="altlayer" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; FONT-SIZE: 12px; VISIBILITY: hidden; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; POSITION: absolute; BACKGROUND-COLOR: #66ffcc"></div>
						<script>
						    document.body.onmousemove = quickalt;
						    function quickalt() {
						        if (event.srcElement.hint && event.srcElement.hint != '') {
						            altlayer.style.visibility = 'visible';
						            altlayer.style.left = event.x + 10;
						            altlayer.style.top = event.y + 10;
						            altlayer.innerHTML = event.srcElement.hint
						        }
						        else altlayer.style.visibility = 'hidden';
						    }
						</script>
	</fieldset>
	
	--%><TD valign=top>
	<fieldset class="WsdnOrgInfo1">
	<legend>
	<img src="../Icon/ip/Calendar.png" width=20/>
	<asp:Label ID="Label7" runat="server"
        Text="考勤打卡"></asp:Label>
	</legend>
	    <uc3:CheckCard ID="CheckCard1" runat="server" />
	</fieldset>
	
	
	<fieldset class="WsdnOrgInfo1">
	<legend>
	<img src="../Icon/ip/service3.png" width=20/>
	<asp:Label ID="Label5" runat="server"
        Text="常用服务"></asp:Label>
	</legend>
<uc2:Useful ID="Useful1" runat="server" />
	</fieldset>	
	
	<fieldset class="WsdnOrgInfo1">
	<legend>
	<img src="../Icon/ip/fly.png" width=20/>
	<asp:Label ID="Label4" runat="server"
        Text="计划任务"></asp:Label>
	</legend>
	    <asp:Calendar ID="Calendar1" runat="server" BackColor="White" 
            BorderColor="Black" BorderStyle="Solid" CellSpacing="1" Font-Names="Verdana" 
            Font-Size="9pt" ForeColor="Black" Height="218px" NextPrevFormat="ShortMonth" 
            Width="100%" FirstDayOfWeek="Monday">
                    

            <SelectedDayStyle CssClass="WsdnOrgInfo1" Font-Bold="True" ForeColor="White" />
            <WeekendDayStyle Font-Bold="False" ForeColor="#009933" Wrap="True" />
            <TodayDayStyle BackColor="#999999" ForeColor="White" />
            <OtherMonthDayStyle ForeColor="#999999" />
            <DayStyle CssClass="WsdnOrgInfo" ForeColor="#000000" />
            <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
            <DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" 
                Height="8pt" />
            <TitleStyle CssClass="WsdnOrgTitle" Font-Bold="True" 
                Font-Size="12pt" ForeColor="White" Height="12pt" />
        </asp:Calendar>
	</fieldset>
	
	
	
	</TD>
  </TR>
  <TR>
	<TD valign=top>
	

	
	</TD>
	<TD valign=top>
	

        
      </TD>
  </TR>
  <TR>
	<TD valign=top>&nbsp;</TD>
	<TD valign=top></TD>
  </TR>
  </TABLE>
    </div>
    </form>
</body>
</html>
