﻿<?xml version="1.0" encoding="UTF-8"?>
<!--RSS generated by Windows SharePoint Services V3 RSS Generator on 27/06/2026 12:17:08 CH-->
<?xml-stylesheet type="text/xsl" href="/_layouts/RssXslt.aspx?List=d3eefa72-e3b6-4909-8cfb-e26b40978bd2" version="1.0"?>
<rss version="2.0">
  <channel>
    <title>UBND QUẬN 8: XslDungChung</title>
    <link>http://quan8.hochiminhcity.gov.vn/Lists/XslDungChung/AllItems.aspx</link>
    <description>Liên kết nạp tin tự động RSS cho XslDungChung danh sách.</description>
    <lastBuildDate>Sat, 27 Jun 2026 05:17:07 GMT</lastBuildDate>
    <generator>Windows SharePoint Services V3 RSS Generator</generator>
    <ttl>60</ttl>
    <image>
      <title>UBND QUẬN 8: XslDungChung</title>
      <url>/_layouts/images/homepage.gif</url>
      <link>http://quan8.hochiminhcity.gov.vn/Lists/XslDungChung/AllItems.aspx</link>
    </image>
    <item>
      <title>Lịch sự kiện - Trang chủ</title>
      <link>http://quan8.hochiminhcity.gov.vn/Lists/XslDungChung/DispForm.aspx?ID=1</link>
      <description><![CDATA[&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;xsl:stylesheet
  version=&quot;1.0&quot;
  xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;
  xmlns:msxsl=&quot;urn:schemas-microsoft-com:xslt&quot;
  xmlns:rs=&#39;urn:schemas-microsoft-com:rowset&#39;
  xmlns:z=&#39;#RowsetSchema&#39;
  xmlns:js=&quot;urn:custom-javascript&quot;
  exclude-result-prefixes=&quot;msxsl js&quot;
  xmlns:cs=&quot;urn:my-scripts&quot;
  &gt;
  &lt;xsl:output method=&quot;xml&quot; indent=&quot;yes&quot;/&gt;

  &lt;xsl:template match=&quot;rs:data&quot;&gt;

    &lt;xsl:variable name=&quot;Page&quot;&gt;/pages/su-kien-noi-bat.aspx&lt;/xsl:variable&gt;

    &lt;xsl:variable name=&quot;ItemCount&quot; select=&quot;@ItemCount&quot;/&gt;

    &lt;!--&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/_CONTROLTEMPLATES/LacViet.CMS.TopNews/css/eventcalendar.css&quot;&gt;&lt;/link&gt;--&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;/SiteAssets/js/jquery/1.4.4/jquery.min.js&quot;&gt;a = 0;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; &gt;
      &lt;xsl:text disable-output-escaping=&quot;yes&quot;&gt;
          &lt;![CDATA[
          function padleft(val, ch, num) {
            var re = new RegExp(&quot;.{&quot; + num + &quot;}$&quot;);
            var pad = &quot;&quot;;
            if (!ch) ch = &quot; &quot;;
            do {
                pad += ch;
            } while (pad.length &lt; num);
            return re.exec(pad + val)[0];
          }
           function countdown_clock(year, month, day, hour, minute, format,begin,end) {

               countdown(year, month, day, hour, minute, format);
               changeevent(begin, end);
           }
           function changeevent(begin, end) {

               if (begin == end)
                   begin = 0;

               $(&quot;.ecline&quot;).hide();
               $(&quot;.event&quot; + begin).show();

               begin = begin + 1;

               setTimeout(&#39;changeevent(&#39; + begin + &#39;,&#39; + end +&#39;);&#39;, 10000);
           }

           function countdown(year, month, day, hour, minute, format, classname) {
            
               Today = new Date();
               Todays_Year = Today.getFullYear() - 2000;
             
               Todays_Month = Today.getMonth();

               //Convert both today&#39;s date and the target date into miliseconds.                           
               Todays_Date = (new Date(Todays_Year, Todays_Month, Today.getDate(),
                                   Today.getHours(), Today.getMinutes(), Today.getSeconds())).getTime();
               Target_Date = (new Date(year, month - 1, day, hour, minute, 00)).getTime();

               //Find their difference, and convert that into seconds.                  
               Time_Left = Math.round((Target_Date - Todays_Date) / 1000);

               if (Time_Left &lt; 0)
                   Time_Left = 0;

               var innerHTML = &#39;&#39;;

               switch (format) {
                   case 0:
                       //The simplest way to display the time left.
                       innerHTML = Time_Left + &#39; giây&#39;;
                       break;
                   case 1:
                       //More datailed.
                       days = Math.floor(Time_Left / (60 * 60 * 24));
                       Time_Left %= (60 * 60 * 24);
                       hours = Math.floor(Time_Left / (60 * 60));
                       Time_Left %= (60 * 60);
                       minutes = Math.floor(Time_Left / 60);
                       Time_Left %= 60;
                       seconds = Time_Left;

                       dps = &#39;&#39;; hps = &#39;&#39;; mps = &#39;&#39;; sps = &#39;&#39;;
                       //ps is short for plural suffix.
                       if (days == 1) dps = &#39;&#39;;
                       if (hours == 1) hps = &#39;&#39;;
                       if (minutes == 1) mps = &#39;&#39;;
                       if (seconds == 1) sps = &#39;&#39;;

                       innerHTML = &quot;Còn &quot; + days + &#39; ngày &#39; + dps + &#39; &#39;;
                       innerHTML += padleft(hours, &#39;0&#39;, &#39;2&#39;) + &#39;:&#39; + hps;
                       innerHTML += padleft(minutes, &#39;0&#39;, &#39;2&#39;) + &#39;:&#39; + mps;
                       innerHTML += padleft(seconds, &#39;0&#39;, &#39;2&#39;);
                       break;
                   default:
                       innerHTML = &quot;Còn&quot; + Time_Left + &#39; giây&#39;;
               }

                $(&quot;.&quot; + classname).html(innerHTML);
                if (days == 0 &amp;&amp; hours == 0 &amp;&amp; minutes == 0)
                {
                    $(&quot;.&quot; + classname).html(&quot;Sự kiện đang diễn ra&quot;);
                }
                else
                {
                   setTimeout(&#39;countdown(&#39; + year + &#39;,&#39; + month + &#39;,&#39; + day + &#39;,&#39; + hour + &#39;,&#39; + minute + &#39;,&#39; + format + &#39;,&quot;&#39;+ classname  +&#39;&quot;);&#39;, 1000);
                }
                
                
                
           }

              $(document).ready(function () {
               
                 $(&quot;.ectimercountdown&quot;).each(function () {

                    var year = $(this).attr(&quot;year&quot;);
                    var month = $(this).attr(&quot;month&quot;);
                    var day = $(this).attr(&quot;day&quot;);
                    var hour = $(this).attr(&quot;hour&quot;);
                    var minute = $(this).attr(&quot;minute&quot;);
                    var classname = $(this).attr(&quot;classname&quot;);
                    var indexelement =  $(this).attr(&quot;index&quot;);
                    var urlpopup = $(this).attr(&quot;UrlPopup&quot;);
                    var status = $(this).attr(&quot;status&quot;);
                      
                    var titlepopup = &quot;EventInformation&quot; + indexelement;
                    if (status == &quot;1&quot;)                     
                    {
                      $(&quot;.&quot; + classname).html(&quot;Sự kiện đang diễn ra&quot;);
                      var distance = (200 - (indexelement*50));
                      var configpopup = &quot;menubar=1,resizable=1,left=&quot; + distance + &quot;,top=&quot; + distance;
                      window.open (urlpopup,titlepopup,configpopup);
                      //window.location = urlpopup;
                    }
                    if (status == &quot;2&quot; || status == &quot;&quot; || status == null)
                    {
                      $(&quot;.&quot; + classname).html(&quot; &quot;);
                    }
                    if (status == &quot;0&quot;)
                    {
                        countdown(year,month,day,hour,minute,1,classname);
                    }

                    
                     changeevent(0, ]]&gt;
      &lt;/xsl:text&gt;
      &lt;xsl:value-of select=&quot;$ItemCount&quot;/&gt;
      &lt;xsl:text disable-output-escaping=&quot;yes&quot;&gt;&lt;![CDATA[ );
                 });
             });

          ]]&gt;
      &lt;/xsl:text&gt;
    &lt;/script&gt;

    &lt;div class=&quot;eventcalender&quot;&gt;
      &lt;!--&lt;a href=&quot;{$Page}&quot;&gt;--&gt;
      &lt;a href=&quot;/pages/truyen-hinh-truc-tiep.aspx&quot;&gt;
        &lt;div class=&quot;ectitle&quot;&gt;
          Sự kiện
        &lt;/div&gt;
      &lt;/a&gt;
      &lt;xsl:for-each select=&quot;z:row&quot;&gt;

        &lt;xsl:variable name=&quot;levelCount&quot; select=&quot;position() - 1&quot;/&gt;
        &lt;xsl:variable name=&quot;year&quot; select=&quot;cs:year(@ows_StartDate)&quot;/&gt;
        &lt;xsl:variable name=&quot;month&quot; select=&quot;cs:month(@ows_StartDate)&quot;/&gt;
        &lt;xsl:variable name=&quot;day&quot; select=&quot;cs:day(@ows_StartDate)&quot;/&gt;
        &lt;xsl:variable name=&quot;hour&quot; select=&quot;cs:hour(@ows_StartDate)&quot;/&gt;
        &lt;xsl:variable name=&quot;minute&quot; select=&quot;cs:minute(@ows_StartDate)&quot;/&gt;
        &lt;xsl:variable name=&quot;status&quot; select=&quot;cs:status(@ows_StartDate,@ows_EndDate)&quot;/&gt;

        &lt;xsl:variable name=&quot;UrlLink&quot;&gt;
          &lt;xsl:if test=&quot;cs:CheckEmptyText(@ows_UrlLink) = &#39;1&#39;&quot;&gt;#&lt;/xsl:if&gt;
          &lt;xsl:if test=&quot;cs:CheckEmptyText(@ows_UrlLink) = &#39;0&#39;&quot;&gt;
            &lt;xsl:value-of select=&quot;@ows_UrlLink&quot;/&gt;
          &lt;/xsl:if&gt;
        &lt;/xsl:variable&gt;

        &lt;xsl:variable name=&quot;Target&quot;&gt;
          &lt;xsl:if test=&quot;$UrlLink = &#39;#&#39;&quot;&gt;_self&lt;/xsl:if&gt;
          &lt;xsl:if test=&quot;$UrlLink != &#39;#&#39;&quot;&gt;_blank&lt;/xsl:if&gt;
        &lt;/xsl:variable&gt;

        &lt;xsl:variable name=&quot;UrlDetail&quot;&gt;
          &lt;xsl:value-of select=&quot;$Page&quot;/&gt;?ItemID=&lt;xsl:value-of select=&quot;@ows_ID&quot;/&gt;
        &lt;/xsl:variable&gt;

        &lt;div class=&quot;ecline event{$levelCount}&quot;&gt;

          &lt;div class=&quot;eczone1&quot;&gt;
            &lt;a href=&quot;{$UrlLink}&quot; target=&quot;{$Target}&quot; title=&quot;{@ows_Description}&quot;&gt;
            &lt;!--&lt;a href=&quot;{$UrlDetail}&quot; title=&quot;{@ows_Description}&quot;&gt;--&gt;
              &lt;div class=&quot;ecimg&quot;&gt;
                &lt;img alt=&quot;@ows_Description&quot; src=&quot;{@ows_ImageThumbnail}&quot; class=&quot;ecimgsrc&quot; /&gt;
              &lt;/div&gt;
              &lt;div class=&quot;ectimercountdown ectimer{$levelCount}&quot; index=&quot;{$levelCount}&quot; year=&quot;{$year}&quot; month=&quot;{$month}&quot; day=&quot;{$day}&quot; hour=&quot;{$hour}&quot; minute=&quot;{$minute}&quot; classname=&quot;ectimer{$levelCount}&quot; StartDate=&quot;{@ows_StartDate}&quot; EndDate=&quot;{@ows_EndDate}&quot; urlpopup=&quot;{@ows_UrlPopup}&quot; status=&quot;{$status}&quot; &gt;
                .
              &lt;/div&gt;
            &lt;/a&gt;
          &lt;/div&gt;

          &lt;div class=&quot;eczone2&quot;&gt;
            &lt;div class=&quot;eczone2title&quot;&gt;
              &lt;a href=&quot;{$UrlDetail}&quot; title=&quot;{@ows_Description}&quot;&gt;
                &lt;xsl:value-of select=&quot;@ows_Title&quot;/&gt;
              &lt;/a&gt;
            &lt;/div&gt;
            &lt;div class=&quot;eczone2description&quot;&gt;
              &lt;div class=&quot;ecstartdate&quot;&gt;
                &lt;span class=&quot;ecstartdate-title&quot;&gt;
                  Ngày bắt đầu:
                &lt;/span&gt;
                &lt;span class=&quot;ecstartdate-value&quot;&gt;
                  &lt;xsl:value-of select=&quot;substring(@ows_StartDate, 9, 2)&quot;/&gt;/&lt;xsl:value-of select=&quot;substring(@ows_StartDate, 6, 2)&quot;/&gt;/&lt;xsl:value-of select=&quot;substring(@ows_StartDate, 1, 4)&quot;/&gt;&lt;xsl:text disable-output-escaping=&quot;yes&quot;&gt;,&lt;![CDATA[&amp;nbsp;]]&gt;&lt;/xsl:text&gt;&lt;xsl:value-of select=&quot;substring(@ows_StartDate, 12, 2)&quot;/&gt;:&lt;xsl:value-of select=&quot;substring(@ows_StartDate, 15, 2)&quot;/&gt;
                &lt;/span&gt;

              &lt;/div&gt;
              &lt;div class=&quot;eclocation&quot;&gt;
                &lt;div class=&quot;eclocation-title&quot;&gt;
                  Địa điểm diễn ra sự kiện:
                &lt;/div&gt;
                &lt;div class=&quot;eclocation-value&quot;&gt;
                  &lt;xsl:value-of select=&quot;@ows_Location&quot;/&gt;
                &lt;/div&gt;

              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/xsl:for-each&gt;

    &lt;/div&gt;
  &lt;/xsl:template&gt;

  &lt;msxsl:script language=&quot;C#&quot; implements-prefix=&quot;cs&quot;&gt;
    &lt;![CDATA[
    
    
     public string status(string startdate,string enddate)
    {
        try
        {

            DateTime Today= DateTime.Now;
            DateTime StartDate = Convert.ToDateTime(startdate);
            DateTime EndDate = Convert.ToDateTime(enddate);
            if (StartDate &lt;= Today &amp;&amp; Today &lt;= EndDate)
                return &quot;1&quot;;
            if ( Today &gt; EndDate)
                return &quot;2&quot;;
            if (Today &lt; StartDate)
                return &quot;0&quot;;
            return &quot;0&quot;;
        }
        catch
        {

            return &quot;&quot;;
        }
    }
    
        public string CheckEmptyText(string text)
        {
          return string.IsNullOrEmpty(text) ? &quot;1&quot; : &quot;0&quot;;
        }
      
        public string year(string datetime)
        {
            try
            {
                DateTime startDate = Convert.ToDateTime(datetime);
                int currentYear = startDate.Year - 2000;
                return currentYear + &quot;&quot;;
            }
            catch
            {
                return &quot;&quot;;
            }
        }
        
          public string month(string datetime)
          {
              try
              {
                  DateTime startDate = Convert.ToDateTime(datetime);
                  int currentMonth = startDate.Month;
                  return currentMonth + &quot;&quot;;
              }
              catch
              {
                  return &quot;&quot;;
              }
          }

          public string day(string datetime)
          {
              try
              {
                  DateTime startDate = Convert.ToDateTime(datetime);
                  int currentDay = startDate.Day;
                  return currentDay + &quot;&quot;;
              }
              catch
              {

                  return &quot;&quot;;
              }
          }

          public string hour(string datetime)
          {
              try
              {
                  DateTime startDate = Convert.ToDateTime(datetime);
                  int currentHour = startDate.Hour;
                  return currentHour + &quot;&quot;;
              }
              catch
              {
                  return &quot;&quot;;
              }
          }

          public string minute(string datetime)
          {
              try
              {
                  DateTime startDate = Convert.ToDateTime(datetime);
                  int currentMinute = startDate.Minute;
                  return currentMinute + &quot;&quot;;
              }
              catch
              {
                  return &quot;&quot;;
              }
          }
        
    ]]&gt;
  &lt;/msxsl:script&gt;

&lt;/xsl:stylesheet&gt;]]></description>
      <author>System Account</author>
      <pubDate>Thu, 09 Apr 2015 08:12:25 GMT</pubDate>
      <guid isPermaLink="true">http://quan8.hochiminhcity.gov.vn/Lists/XslDungChung/DispForm.aspx?ID=1</guid>
    </item>
  </channel>
</rss>