X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_view.inc;h=21bb3f2f27d5bacd25a700d21c97816e60e394d0;hb=ccc6ec0bcb632b559ee068effa0b61f5b1b6276f;hp=03e343c38abbe0454d7452beb01b40be8e39932b;hpb=431531eebf3ba494002cfbf7ea36f9e82d4975c0;p=fa-stable.git
diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc
index 03e343c3..21bb3f2f 100644
--- a/includes/ui/ui_view.inc
+++ b/includes/ui/ui_view.inc
@@ -79,24 +79,34 @@ function get_customer_trans_view_str($type, $trans_no, $label="")
$viewer = "view_credit.php";
elseif ($type == 12)
$viewer = "view_receipt.php";
+ elseif ($type == 13)
+ $viewer = "view_dispatch.php";
elseif ($type == 30)
$viewer = "view_sales_order.php";
else
return null;
+
+ if(!is_array($trans_no)) $trans_no = array($trans_no);
+ $lbl = $label;
+ $preview_str = '';
+ foreach($trans_no as $trans) {
if ($label == "")
- $label = $trans_no;
+ $lbl = $trans;
+
+ if($preview_str!='') $preview_str .= ',';
if ($viewer != "")
{
if ($use_popup_windows)
- $preview_str = "$label";
+ $preview_str .= "$lbl";
else
- $preview_str = "$label";
+ $preview_str .= "$lbl";
}
else
- $preview_str = $label;
-
+ $preview_str .= $lbl;
+ }
+
return $preview_str;
}
@@ -623,177 +633,440 @@ function get_js_png_fix()
function get_js_date_picker()
{
- 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";
+ global $dateseps, $date_system;
+
+ $how = user_date_format(); // 0 = us/ca, 1 = eu, au, nz, 2 = jp, sw
+ $sep = $dateseps[user_date_sep()]; // date separator
+ $wstart = (($date_system == 1 || $date_system == 2) ? 6 : ($how == 0 ? 0 : 1)); // weekstart (sun = 0, mon = 1)
+ $months = array(_("January"),_("February"),_("March"),_("April"),_("May"),_("June"),_("July"),_("August"),_("September"),_("October"),_("November"),_("December"));
+ $wdays = array(_("Su"),_("Mo"),_("Tu"),_("We"),_("Th"),_("Fr"),_("Sa"));
+ $back = _("Back");
+ if ($date_system == 1)
+ list($cyear, $cmon, $cday) = gregorian_to_jalali(date("Y"), date("n"), date("j"));
+ else if ($date_system == 2)
+ list($cyear, $cmon, $cday) = gregorian_to_islamic(date("Y"), date("n"), date("j"));
+
+ $js = "
+";
+ $js .= "
+";
return $js;
}
-
+
function alert($msg)
{
echo "\n