<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title>{$sitetitle}</title>
<LINK href="./templates/{$style}/css/style.css" rel=stylesheet type=text/css>
<SCRIPT language=JavaScript>
function check(theform)
{
   if(theform.title.value == "")
   {
   		alert("请输入标题!");
		theform.title.focus();
		return false ;
   }
     if(theform.intime.value == "")
   {
   		alert("请输入开始时间");
		theform.intime.focus();
		return false ;
   } 
   return true ;
  }
</SCRIPT>
<script language='JavaScript'>   
function get(outtime){
	window.open('index.php?filename=schedule&typeid={$typeid}&action=s&selecttime='+outtime,'sch','height=400, width=600, top=50, left=50, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');
}	
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr> 
    <td width="100%"  height="24" valign="top"> 
    	<TABLE width="100%" border=0 align=center cellPadding=2 cellSpacing=1 class=tableborder>
        <!--DWLayoutTable-->
        <TBODY>
          <TR> 
      <TD class=tablerow><!--DWLayoutEmptyCell--><B>管理选项：</B> <A 
      href="?filename=schedule&typeid={$typeid}&action=d">今日工作</A>     | <A 
      href="?filename=schedule&typeid={$typeid}&action=w">本周安排</A>     | <A 
      href="?filename=schedule&typeid={$typeid}&action=m">日程安排查询</A> | <a 
    	href="?filename=schedule&typeid={$typeid}&action=t">待办提醒</a> | <a 
    	href="?filename=schedule&typeid={$typeid}&action=a">添加事务</a></td>
          </TR>
        </TBODY>
      </TABLE></td>
  </tr>
  {if $action=='a'}
  <tr> 
    <td  height="24"><strong>当前位置 >> {$now_typename} >> 添加事务 </strong> </td>
  </tr>
  <tr> 
    <td  height="309" valign="top"> 
    	<TABLE cellPadding=2 cellSpacing=1 class=tableborder width="100%" >
        <!--DWLayoutTable--> 
          <form id=form1 name="form1" method="post" action="?filename=deal&action=addschedule" OnSubmit="return check(this)" onReset="return ResetForm();">
    
        <TBODY>
          <TR> 
            <TH colSpan=2 class=main_title>添加事务</TH>
          </TR>
               <TR> 
              <TD class=tdrow nowrap>事务类型</TD>
              <TD class=tdrow>
              	<select name="stypeid">
                 <option value="0">工作事务</option>
                 <option value="1">个人事务</option>                
                </select> <FONT color=#ff0000>*</FONT></TD>
            </TR>    
          <TR> 
            <TD class=tdrow>标 题</TD>
            <TD class=tdrow>
            	 <input type=text name="title" size=40> <FONT color=#ff0000>*</FONT>
            	</TD>
          </TR>                
          <TR> 
            <TD class=tdrow>内容</TD>
            <TD class=tdrow>
            	 <textarea name="content" cols="60" rows="4"></textarea> <FONT color=#ff0000>*</FONT>
            	</TD>
          </TR> 
            <TR> 
              <TD class=tdrow>开始日期</TD>
              <TD class=tdrow>
              	<input type=text name=intime size=15 >
              	<img onclick="window.open('index.php?filename=calendar&inputname=intime','new','height=150, width=200, top=200, left=100, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')" style="cursor:hand" src="./templates/{$style}/images/menu/calendar.gif" border=0>
              	(日期格式为2007-4-23)<FONT color=#ff0000>*</FONT></TD>
            </TR>                       
            <TR> 
              <TD class=tdrow>提醒日期</TD>
              <TD class=tdrow nowrap>
              	 <input type=text name=pretime size=15 >
              	<img onclick="window.open('index.php?filename=calendar&inputname=pretime','new','height=150, width=200, top=200, left=100, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')" style="cursor:hand" src="./templates/{$style}/images/menu/calendar.gif" border=0>
              	(日期格式为2007-4-23) *如果没有则不提醒,提醒日期要早于开始日期*</FONT></TD>
            </TR>
  
          <TBODY>
            <TR> 
              <TD class=tdrow>&nbsp; </TD>
              <TD class=tdrow>
              	<input type="hidden" name=do value=1>
              	<input type=hidden name=typeid value={$typeid}>
                <input type="submit" name="Submit" value=" 发 表 " > 
                &nbsp; <input type="reset" name="Submit1" value=" 清 除 "> </TD>
            </TR>
          </TBODY>
        </FORM>
      </TABLE></td>
  </tr>
  {elseif $action=='d'}
    <tr> 
 <td  height="24" ><strong>当前位置 >> {$now_typename} >> 今日工作</strong> </td>
  </tr>
  <tr>
  <tr>
    <td  height="85" valign="top"> 
    <TABLE cellPadding=2 cellSpacing=1  width="100%" >
        <!--DWLayoutTable-->
    <tr>
    <td width="100%" >
    	{foreach key=keyid item=cont from=$content}
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class=tableborder>
  <!--DWLayoutTable-->
  <tr>
    <td width="43"  valign="top" height=46>
	  <table width="100%" border="0" cellpadding="1" cellspacing="0" background="./templates/{$style}/images/date-bg.gif">
      <!--DWLayoutTable-->
      <tr>
        <td width="43" height="14" valign="top" align=center>
         {$cont.date_m}月</td>
      </tr>
      <tr>
        <td height="32" valign="middle" align=center>
        <p style="font-size: 16px ;color=red;"><b>{$cont.date_d}</b></p>
        </td>
      </tr>
    </table>
    </td>
      <td  valign="middle">
      	<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
           <td  width="100%" height="26" valign="middle" nowrap><font color=#249624><b>
    <b>【{$cont.title}】</b></font></td></tr>
      <tr>
      <td height="1" valign="niddle" bgcolor="#A1C34D" >
    </td>
    </tr>
    <tr>
    <td height="19" valign="middle">
    「内容」<a href="?filename=show&action=s&id={$cont.id}" target="=_blank">{$cont.content}</a>
    </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="10" valign="middle" align=center>
        </td>
      </tr>
    </table>
    {foreachelse} 
    今日没有事物
    {/foreach}
    </td>
    </tr>
    <tr align="center" valign="middle">
    <td  class=tablerowhighlight>{$pagenav}</td>
    </tr>
    </TABLE>
    </td>
  </tr>
  {elseif $action=='w'}
  <tr> 
 <td  height="24" ><strong>当前位置 >> {$now_typename} >> 本周安排</strong> </td>
  </tr>
  <tr>
    <td  height="85" valign="top"> 
    <TABLE cellPadding=2 cellSpacing=1  width="100%" >
        <!--DWLayoutTable-->
    <tr>
    <td width="100%" >
       <table width="100%" border="0" cellpadding="1" cellspacing="1" class=table1>
       {foreach key=keyid item=cont from=$content}   
          <tr>
      <td  valign="top" class=td1 height=100% width=60>
      <table width="100%" border="0" cellpadding="1" cellspacing="0" height=100%>
      <!--DWLayoutTable-->
      <tr>
      	<td nowrap align=center valign=middle class=tr_head3 >{$cont.nowweek}</td>
      </tr>
      </table>
    </td>
    <td width="43" class=td1 valign="top" height=46 align=center>
	  <table width="100%" border="0" cellpadding="1" cellspacing="0" background="./templates/{$style}/images/date-bg.gif" align=center>
      <!--DWLayoutTable-->
      <tr>
        <td width="43" height="14" valign="top" align=center>
         {$cont.daten}月</td>
      </tr>
      <tr>
        <td height="32" valign="middle" align=center>
        <p style="font-size: 16px;color=red;"><b>{$cont.dated}</b></p>
        </td>
      </tr>
    </table>
    </td>
        <td  valign="middle" >
      <table width="100%" height=100% border="0" cellpadding="1" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
      <td class=td1 valign=top>
        {$cont.todayschlist}
        </td>
        </tr>
      </table>
    </td>
   </tr>
   {/foreach}
        </table>
    </td>
    </tr>
    <tr align="center" valign="middle">
    <td  class=tablerowhighlight>{$pagenav}</td>
    </tr>
    </TABLE>
    </td>
  </tr>
  {elseif $action=='t'}
   <tr> 
 <td  height="24" ><strong>当前位置 >> {$now_typename} >> 待办提醒</strong> </td>
  </tr>
  <tr>
    <td  height="85" valign="top"> 
    <TABLE cellPadding=2 cellSpacing=1  width="100%" >
        <!--DWLayoutTable-->
    <tr>
    <td width="100%" >
    	{foreach key=keyid item=cont from=$content}
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class=tableborder>
  <!--DWLayoutTable-->
  <tr>
    <td width="43"  valign="top" height=46>
	  <table width="100%" border="0" cellpadding="1" cellspacing="0" background="./templates/{$style}/images/date-bg.gif">
      <!--DWLayoutTable-->
      <tr>
        <td width="43" height="14" valign="top" align=center>
         {$cont.date_m}月</td>
      </tr>
      <tr>
        <td height="32" valign="middle" align=center>
        <p style="font-size: 16px ;color=red;"><b>{$cont.date_d}</b></p>
        </td>
      </tr>
    </table>
    </td>
      <td  valign="middle">
      	<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
           <td  width="100%" height="26" valign="middle" nowrap><font color=#249624><b>
    <b>【{$cont.title}】</b></font></td></tr>
      <tr>
      <td height="1" valign="niddle" bgcolor="#A1C34D" >
    </td>
    </tr>
    <tr>
    <td height="19" valign="middle">
    「内容」<a href="?filename=show&action=s&id={$cont.id}" target="=_blank">{$cont.content}</a>
    </td>
      </tr>
    </table>
  
    </td>
  </tr>
</table>  
<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="10" valign="middle" align=center>
        </td>
      </tr>
    </table>
    {/foreach}
    </td>
    </tr>
    <tr align="center" valign="middle">
    <td  class=tablerowhighlight>{$pagenav}</td>
    </tr>
    </TABLE>
    </td>
  </tr>
  {elseif $action=='s'}
   <tr> 
 <td  height="24" ><strong>当前位置 >> {$now_typename} >> 查询结果</strong> </td>
  </tr>
  <tr>
    <td  height="85" valign="top"> 
    <TABLE cellPadding=2 cellSpacing=1  width="100%" >
        <!--DWLayoutTable-->
    <tr>
    <td width="100%" >
          	{foreach key=keyid item=cont from=$content}
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class=tableborder>
  <!--DWLayoutTable-->
  <tr>
    <td width="43"  valign="top" height=46>
	  <table width="100%" border="0" cellpadding="1" cellspacing="0" background="./templates/{$style}/images/date-bg.gif">
      <!--DWLayoutTable-->
      <tr>
        <td width="43" height="14" valign="top" align=center>
         {$cont.date_m}月</td>
      </tr>
      <tr>
        <td height="32" valign="middle" align=center>
        <p style="font-size: 16px ;color=red;"><b>{$cont.date_d}</b></p>
        </td>
      </tr>
    </table>
    </td>
      <td  valign="middle">
      	<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
           <td  width="380" height="26" valign="middle" nowrap><font color=#249624><b>
    <b>【{$cont.title}】</b></font></td></tr>
      <tr>
      <td height="1" valign="niddle" bgcolor="#A1C34D" >
    </td>
    </tr>
    <tr>
    <td height="19" valign="middle">
    「内容」<a href="?filename=show&action=s&id={$cont.id}" target="=_blank">{$cont.content}</a>
    </td>
      </tr>
    </table>
  
    </td>
  </tr>
</table>  
<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="10" valign="middle" align=center>
        </td>
      </tr>
    </table>
    {/foreach}
    </td>
    </tr>
    <tr align="center" valign="middle">
    <td  class=tablerowhighlight>{$pagenav}</td>
    </tr>
    </TABLE>
    </td>
  </tr>
  {elseif $action=='m'}
   <tr> 
 <td  height="24"><strong>当前位置 >> {$now_typename} >> 日程安排查询</strong> </td>
  </tr>
  <tr>
    <td  height="85" valign="top"> 	
<table width="100%" border="0" cellspacing="0" cellpadding="1" class=table1 style="font-size:18px;" align="center">
<tr align="middle">
	 <td colspan="2" height=36>{$nextyear}</td>
	 <td colspan="3">{$year}年{$month}月</td>
	 <td colspan="2">{$nextm}</td>
</tr>
<tr>
	 <td align=center class=tr_head width=14% height=40><font color="red">日</font></td>
	 <td align=center class=tr_head width=14%>一</td>
	 <td align=center class=tr_head width=14%>二</td>
	 <td align=center class=tr_head width=14%>三</td>
	 <td align=center class=tr_head width=14%>四</td>
	 <td align=center class=tr_head width=14%>五</td>
	 <td align=center class=tr_head width=14%>六</td>
</tr>
<tr>
{$showday}
</tr>
</table></td>
</tr>
  {/if}
</table>	
</body>
</html>