[Rt-commit] rt branch, 3.999-trunk, updated. d02175b20084c9b51252d03ea08da334352c10d8

clkao at bestpractical.com clkao at bestpractical.com
Tue Nov 17 04:47:30 EST 2009


The branch, 3.999-trunk has been updated
       via  d02175b20084c9b51252d03ea08da334352c10d8 (commit)
      from  51163546594db4d4688631e50d9a7bd7164d3202 (commit)

Summary of changes:
 share/html/CalPopup.html         |  131 --------------------------------------
 share/html/Helpers/CalPopup.html |  131 --------------------------------------
 2 files changed, 0 insertions(+), 262 deletions(-)
 delete mode 100644 share/html/CalPopup.html
 delete mode 100644 share/html/Helpers/CalPopup.html

- Log -----------------------------------------------------------------
commit d02175b20084c9b51252d03ea08da334352c10d8
Author: Chia-liang Kao <clkao at bestpractical.com>
Date:   Tue Nov 17 16:42:49 2009 +0800

    CalPopup is no longer in use.

diff --git a/share/html/CalPopup.html b/share/html/CalPopup.html
deleted file mode 100644
index 1de1b47..0000000
--- a/share/html/CalPopup.html
+++ /dev/null
@@ -1,131 +0,0 @@
-%# BEGIN BPS TAGGED BLOCK {{{
-%# 
-%# COPYRIGHT:
-%# 
-%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC
-%#                                          <jesse at bestpractical.com>
-%# 
-%# (Except where explicitly superseded by other copyright notices)
-%# 
-%# 
-%# LICENSE:
-%# 
-%# This work is made available to you under the terms of Version 2 of
-%# the GNU General Public License. A copy of that license should have
-%# been provided with this software, but in any event can be snarfed
-%# from www.gnu.org.
-%# 
-%# This work is distributed in the hope that it will be useful, but
-%# WITHOUT ANY WARRANTY; without even the implied warranty of
-%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-%# General Public License for more details.
-%# 
-%# You should have received a copy of the GNU General Public License
-%# along with this program; if not, write to the Free Software
-%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-%# 02110-1301 or visit their web page on the internet at
-%# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
-%# 
-%# 
-%# CONTRIBUTION SUBMISSION POLICY:
-%# 
-%# (The following paragraph is not intended to limit the rights granted
-%# to you to modify and distribute this software under the terms of
-%# the GNU General Public License and is only of importance to you if
-%# you choose to contribute your changes and enhancements to the
-%# community by submitting them to Best Practical Solutions, LLC.)
-%# 
-%# By intentionally submitting any modifications, corrections or
-%# derivatives to this work, or any other work intended for use with
-%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
-%# you are the copyright holder for those contributions and you grant
-%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
-%# royalty-free, perpetual, license to use, copy, create derivative
-%# works based on those contributions, and sublicense and distribute
-%# those contributions and any derivatives thereof.
-%# 
-%# END BPS TAGGED BLOCK }}}
-<&| /_elements/wrapper &>
-<script>
-function updateParent(strItem) {
-    window.opener.document.getElementById('<%$field%>').value = strItem;
-    window.close();
-}
-</script>
-<a href="javascript: window.close();">close window</a>
-<br /><br />
-<div align="center">
-<div class="table-wrapper">
-<table>
-  <caption><%$months[$displayed_month]%> <%$displayed_year%></caption>
-  <tr>
-% foreach my $wday (@weekdays) {
-    <th><%$wday%></th>
-% }
-  </tr>
-% foreach my $week (@cal) {
-  <tr>
-%     foreach my $day (@{$week}) {
-    <td>
-%         if ($day) {
-%             my $datestr = sprintf('%04d-%02d-%02d', $displayed_year, $displayed_month+1, $day);
-      <dt><a href="javascript: updateParent('<%$datestr%>')"><%$day%></a></dt>
-%         }
-    </td>
-%     } #foreach $day
-  </tr>
-% } # foreach $week
-  <tr>
-  <td colspan="2"><a href="CalPopup.html?DisplayedMonth=<%$prev_month%>&DisplayedYear=<%$prev_year%>&field=<%$field%>">Previous</a></td>
-    <td colspan="3">&nbsp;</td>
-    <td colspan="2"><a href="CalPopup.html?DisplayedMonth=<%$next_month%>&DisplayedYear=<%$next_year%>&field=<%$field%>">next</a></td>
-</table>
-</div>
-</div>
-
-</&>
-<%init>
-use Calendar::Simple;
-my @today = localtime(time());
-
-my @weekdays = (_('Sun'), _('Mon'), _('Tue'), _('Wed'), _('Thu'), 
-		_('Fri'), _('Sat'));
-my @months = (_('January'), _('February'), _('March'), _('April'), 
-	      _('May'), _('June'), _('July'), _('August'), 
-	      _('September'), _('October'), _('November'), 
-              _('December'));
-
-unless ($displayed_year) {
-              $displayed_month = $today[4];
-              $displayed_year = ($today[5] + 1900);
-}              
-
-my ($prev_year, $next_year, $prev_month, $next_month);
-$prev_month = $next_month = $displayed_month;
-$prev_year = $next_year = $displayed_year;
-
-$next_month++;
-$prev_month--;
-
-if ($displayed_month == 11) {
-    $next_year++;
-    $next_month = 0;
-    } 
-elsif ($displayed_month == 0) {
-        $prev_month = 11;
-        $prev_year--;
-
-
-    }
-
-
-
-
-my @cal = calendar($displayed_month+1, $displayed_year);
-
-</%init>
-<%args>
-$field => 'none'
-$displayed_month => undef
-$displayed_year => undef
-</%args>
diff --git a/share/html/Helpers/CalPopup.html b/share/html/Helpers/CalPopup.html
deleted file mode 100644
index 91770a7..0000000
--- a/share/html/Helpers/CalPopup.html
+++ /dev/null
@@ -1,131 +0,0 @@
-%# BEGIN BPS TAGGED BLOCK {{{
-%# 
-%# COPYRIGHT:
-%# 
-%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC
-%#                                          <jesse at bestpractical.com>
-%# 
-%# (Except where explicitly superseded by other copyright notices)
-%# 
-%# 
-%# LICENSE:
-%# 
-%# This work is made available to you under the terms of Version 2 of
-%# the GNU General Public License. A copy of that license should have
-%# been provided with this software, but in any event can be snarfed
-%# from www.gnu.org.
-%# 
-%# This work is distributed in the hope that it will be useful, but
-%# WITHOUT ANY WARRANTY; without even the implied warranty of
-%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-%# General Public License for more details.
-%# 
-%# You should have received a copy of the GNU General Public License
-%# along with this program; if not, write to the Free Software
-%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-%# 02110-1301 or visit their web page on the internet at
-%# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
-%# 
-%# 
-%# CONTRIBUTION SUBMISSION POLICY:
-%# 
-%# (The following paragraph is not intended to limit the rights granted
-%# to you to modify and distribute this software under the terms of
-%# the GNU General Public License and is only of importance to you if
-%# you choose to contribute your changes and enhancements to the
-%# community by submitting them to Best Practical Solutions, LLC.)
-%# 
-%# By intentionally submitting any modifications, corrections or
-%# derivatives to this work, or any other work intended for use with
-%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
-%# you are the copyright holder for those contributions and you grant
-%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
-%# royalty-free, perpetual, license to use, copy, create derivative
-%# works based on those contributions, and sublicense and distribute
-%# those contributions and any derivatives thereof.
-%# 
-%# END BPS TAGGED BLOCK }}}
-<& /Elements/Header, show_bar => 0 &>
-%# From /Elements/Header
-</div>
-<div id="body" class="calpopup">
-
-<a href="#" onclick="window.close(); return false;"><&|/l&>Close window</&></a>
-
-<div class="calendar">
-  <table>
-    <caption>
-      <a class="prev"
-      href="CalPopup.html?displayed_month=<%$prev_month%>&displayed_year=<%$prev_year%>&field=<%$field%>"><&|/l&>Prev</&></a>
-      <span class="month"><% $months[$displayed_month-1] %> <% $displayed_year %></span>
-      <a class="next"
-      href="CalPopup.html?displayed_month=<%$next_month%>&displayed_year=<%$next_year%>&field=<%$field%>"><&|/l&>next</&></a>
-    </caption>
-    <tr>
-% foreach my $wday (@weekdays) {
-      <th><%$wday%></th>
-% }
-    </tr>
-% foreach my $week (@cal) {
-    <tr>
-%     foreach my $day (@{$week}) {
-      <td>
-%         if ($day) {
-%             my $datestr = sprintf('%04d-%02d-%02d', $displayed_year, $displayed_month, $day);
-        <a href="#" onclick="updateParentField('<% $field %>','<% $datestr %>'); return false;"><% $day %></a>
-%         } else {
-        &nbsp;
-%         }
-      </td>
-%     } #foreach $day
-    </tr>
-% } # foreach $week
-  </table>
-</div>
-</div>
-</body>
-</html>
-% $m->abort();
-
-<%init>
-use Calendar::Simple;
-my @today = localtime(time());
-
-my @weekdays;
-push @weekdays, _($_)
-  for qw(Sun Mon Tue Wed Thu Fri Sat);
-
-my @months;
-push @months, _($_)
-  for qw(January February March April May June July August
-         September October November December);
-
-unless ($displayed_year) {
-    $displayed_month = $today[4] + 1;
-    $displayed_year  = ($today[5] + 1900);
-}
-
-my ($prev_year, $next_year, $prev_month, $next_month);
-$prev_month = $next_month = $displayed_month;
-$prev_year  = $next_year  = $displayed_year;
-
-$next_month++;
-$prev_month--;
-
-if ($displayed_month == 12) {
-    $next_year++;
-    $next_month = 1;
-}
-elsif ($displayed_month == 1) {
-    $prev_month = 12;
-    $prev_year--;
-}
-
-my @cal = calendar($displayed_month, $displayed_year);
-</%init>
-
-<%args>
-$field => 'none'
-$displayed_month => undef
-$displayed_year => undef
-</%args>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list