<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div class="datec" id="showdate" style="position:relative;z-index:1000;">
<div class="left imgd"><img src="<%=ViewData["webd"]%>Content/themes/basic/images/date.gif" id="showdateimg" width="16" height="14" alt="按日期搜索" /></div>
<div class="left dateso">按日期搜索</div><%--日期控件--%>
<%DateTime idate=Fun.Totime(ViewData["issuedate"].ToString());
  int yyyy = idate.Year;
  int mm = idate.Month;
  int dd = idate.Day;
%>
<script type="text/javascript" src="<%=ViewData["webd"]%>Comja/calendarshow.js"></script>
<script type="text/javascript" src="<%=ViewData["webd"]%>Comja/calendarstart.js"></script>
<%if (1 == 0)
  { %>
<script type="text/javascript" src="../../../Comja/calendarshow.js"></script>
<script type="text/javascript" src="../../../Comja/calendarstart.js"></script>
<%} %><script  type="text/javascript">
var nowdate=new Date(Date.parse("<%=ViewData["issuedate"].ToString()%>".replace(/-/g,"/")));
var mindate=new Date(Date.parse("<%=ViewData["minissuedate"].ToString()%>".replace(/-/g,"/")));
var maxdate=new Date(Date.parse("<%=ViewData["maxissuedate"].ToString()%>".replace(/-/g,"/")));
var calendarurl="<%=ViewData["webd"].ToString()%>jquery/dayslist";
var days="<%=ViewData["days"].ToString()%>";
var starty=<%=yyyy %>;
var startm=<%=mm %>;
var startd=<%=dd %>;
var webd="<%=ViewData["webd"].ToString()%>";
$(document).ready(function(){
    calend_initialize();
});
</script>
<div class="Calendar" id="calendarqi">    
   <div class="calbktop">
       <div class="calbktop1">
             <%--此行设为不显示--%><div class="calbkdate"><span id="idCalendarMonth">12</span>  <span id="idCalendarYear">2011</span>年</div>
            <div id="idCalendarPre"><span id="premonth" class="premonth">3</span></div> 
            <div id="idCalendarNext"><span id="nextmonth" class="nextmonth">4</span></div> 
            <div class="calbkselectleft">                 
                    <script type="text/javascript">
                        startyear(mindate, maxdate);
                    </script>
                              
            </div>
            <div class="calbkselectright">                 
                    <script type="text/javascript">
                        startmonth();
		            </script>
             </div>  
        </div>
     </div>
     <div id="idCalendar"><h2><%=Data.Bkname %></h2></div>    
     <div class="calclose"><span id="calclose"></span></div>
</div>
<%--日期控件完--%>
</div>
