From: Joe Hunt Date: Wed, 25 Apr 2007 07:44:07 +0000 (+0000) Subject: Better DatePicker. Better cool theme. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=e43ab7d586bb04a00acce467ed0e9ba871903835;p=textcart.git Better DatePicker. Better cool theme. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 55db2ca..77f2158 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,12 @@ Legend: ! -> Note $ -> Affected files +24-Apr-2007 Joe Hunt + ! New and better Date Picker, better cool theme. + $ /includes/ui/ui_input.inc + /includes/ui/ui_view.inc + /reporting/includes/reports_classes.inc + /themes/cool/default.css -------------------- 1.0.1 Stable Released ---------------------- 23-Apr-2007 Joe Hunt diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index dcd04c4..e1b03b3 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -251,7 +251,7 @@ function date_cells($label, $name, $init=null, $inc_days=0, $inc_months=0, $inc_ $_POST[$name] = $init; } if ($use_date_picker) - $post_label = "" + $post_label = "" . " "._(\n"; else $post_label = ""; diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index ace9a55..f98970e 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -623,177 +623,365 @@ function get_js_png_fix() function get_js_date_picker() { - global $dateseps, $path_to_root; + global $dateseps; + //global $dateseps $path_to_root; - $encoding = $_SESSION['language']->encoding; // character encoding - $dir = $_SESSION['language']->dir; // left to right, right to left - $how = user_date_format(); // 0 = us/ca, 1 = eu, au, nz, 2 = jp, sw - $sep = $dateseps[user_date_sep()]; // date separator - $wstart = ($how != 0); // weekstart (sun = 0, mon = 1) - $width = 250; // datepicker width - $height = 180; // datepicker height - $path = "$path_to_root/themes/default/images/"; // path to images - $tbgcolor = "#4682b4"; // title backgrond - $tcolor = "white"; // title color - $wbgcolor = "#87cefa"; // weekdays background - $wcolor = "white"; // weekdays color - $cbgcolor = "#ffb6c1"; // current day background - $ebgcolor = "#dbeaf5"; // week-end background - $bgcolor = "white"; // normal background - $color = "darkblue"; // month day color - $gcolor = "#aaaaaa"; // prev/next month day color - $family = "tahoma,verdana"; // font-family - - $js = "\n\n"; + //$encoding = "iso-8859-1"; // character encoding + //$encoding = $_SESSION['language']->encoding; // character encoding + //$dir = "ltr"; // left to right, right to left + //$dir = $_SESSION['language']->dir; // left to right, right to left + $how = user_date_format(); // 0 = us/ca, 1 = eu, au, nz, 2 = jp, sw + $sep = $dateseps[user_date_sep()]; // date separator + $wstart = ($how == 0 ? 0 : 1); // weekstart (sun = 0, mon = 1) + + $js = " +"; + $js .= " +"; return $js; } - + function alert($msg) { echo "\n