Файл: billing/_rootbill/_orders.inc.php
Строк: 621
<?
if (($sub == "dogovor" or $sub == "dodatok") and ($host_id or $domain_id)) {
$host_id = intval($host_id);
$domain_id = intval($domain_id);
if (GetSetting("dogovor_enable")) {
if ($sub == "dogovor") {
$kvtpl = GetTpl("tpl_dogovor",$_SESSION["userLang"]);
$kvtpl = $kvtpl[template];
}
if ($sub == "dodatok") {
$kvtpl = GetTpl("tpl_dogovor_dodatok",$_SESSION["userLang"]);
$kvtpl = $kvtpl[template];
}
$dogovor_gorod=GetSetting("dogovor_gorod");
$dogovor_prodavec=htmlEncode(GetSetting("dogovor_prodavec"));
$dogovor_svidetelstvo=GetSetting("dogovor_svidetelstvo");
$dogovor_terms=GetSetting("dogovor_terms");
$dogovor_rekviziti=GetSetting("dogovor_rekviziti"); $dogovor_rekviziti = preg_replace("/n/ui","<BR>",$dogovor_rekviziti);
$dogovor_email=GetSetting("dogovor_email");
$dogovor_logo=GetSetting("dogovor_logo"); if ($dogovor_logo) {$dogovor_logo = "<img src="./_rootimages/".$dogovor_logo."">";}
$dogovor_shtamp=GetSetting("dogovor_shtamp"); if ($dogovor_shtamp) {$dogovor_shtamp = "<img src="./_rootimages/".$dogovor_shtamp."">";}
if ($host_id) {
$order=GetOrderById($host_id);
$tarif=GetTarifById($order->tarif);
$dogovor_tarif = $tarif->name;
if ($order->todate != "0000-00-00") {
$orderToDate=$order->todate; $orderToDate=split("-",$orderToDate);
$dogovor_hosttodate = $orderToDate[2].".".$orderToDate[1].".".$orderToDate[0];
} else {
$dogovor_hosttodate = "__________";
}
if ($order->domain_reg == 1) {
$dogovor_domain = $order->domain;
$orderdDomain = GetDomainByDomain($order->domain);
if ($orderdDomain->todate != "0000-00-00") {
$orderToDate=$orderdDomain->todate; $orderToDate=split("-",$orderToDate);
$dogovor_domaintodate = $orderToDate[2].".".$orderToDate[1].".".$orderToDate[0];
} else {
$dogovor_domaintodate = "__________";
}
} else {
$dogovor_domain = "__________";
$dogovor_domaintodate = "__________";
}
}
else if ($domain_id) {
$order=GetDomainById($domain_id);
$dogovor_tarif = "__________";
$dogovor_hosttodate = "__________";
$dogovor_domain = $order->domain;
if ($order->todate != "0000-00-00") {
$orderToDate=$order->todate; $orderToDate=split("-",$orderToDate);
$dogovor_domaintodate = $orderToDate[2].".".$orderToDate[1].".".$orderToDate[0];
} else {
$dogovor_domaintodate = "__________";
}
}
if ($order->todate == "0000-00-00") { $dogovor_shtamp = ""; }
$user=GetUserById($order->uid);
$profile=GetUserProfileByUserId($order->uid);
$orderDate=$order->orderdate; $orderDate=split("-",$orderDate);
if ($profile->org == "3") {
$dogovor_name = $profile->firma;
$dogovor_zakazchik = $dogovor_name." в лице ".$profile->surname." ".$profile->name." ".$profile->otchestvo;
$address=$profile->address_org;
if ($profile->bank and $profile->bank_schet and $profile->bank_bik) {
if ($profile->country == "RU") {$bik="БИК";}
else {$bik="МФО";}
$bankrekviziti = "Р/с ".$profile->bank_schet."<BR>";
$bankrekviziti = $bankrekviziti.$profile->bank."<BR>";
$bankrekviziti = $bankrekviziti."$bik ".$profile->bank_bik;
if ($profile->edrpou) { $bankrekviziti = $bankrekviziti." ".$_lang[ProfileEdrpou]." ".$profile->edrpou; }
if ($profile->inn) { $bankrekviziti = $bankrekviziti." ".$_lang[ProfileInn]." ".$profile->inn; }
}
} else {
$dogovor_name = $profile->surname." ".$profile->name." ".$profile->otchestvo;
$dogovor_zakazchik = $dogovor_name;
$address=$profile->post.", ".$profile->city.", ".$profile->street;
}
$dogovor_clientrekviziti = $dogovor_clientrekviziti.$dogovor_name."<BR>";
$dogovor_clientrekviziti = $dogovor_clientrekviziti."Тел. ".$profile->phone."<BR>";
$dogovor_clientrekviziti = $dogovor_clientrekviziti.$address."<BR>";
if ($bankrekviziti) { $dogovor_clientrekviziti = $dogovor_clientrekviziti.$bankrekviziti."<BR>"; }
$dogovor_clientrekviziti = $dogovor_clientrekviziti."<B>email:</b> ".$user->email."<BR>";
$dogovor_number = $order->id;
$dogovor_dd = $orderDate[2];
$dogovor_mm = $orderDate[1];
$dogovor_yyyy = $orderDate[0];
$dogovor_site=GetSetting('company_url');
$dogovor_billing=GetSetting('billing_url');
$kvtpl = str_replace("{logo}",$dogovor_logo,$kvtpl);
$kvtpl = str_replace("{number}",$dogovor_number,$kvtpl);
$kvtpl = str_replace("{gorod}",$dogovor_gorod,$kvtpl);
$kvtpl = str_replace("{dd}",$dogovor_dd,$kvtpl);
$kvtpl = str_replace("{mm}",$dogovor_mm,$kvtpl);
$kvtpl = str_replace("{yyyy}",$dogovor_yyyy,$kvtpl);
$kvtpl = str_replace("{prodavec}",$dogovor_prodavec,$kvtpl);
$kvtpl = str_replace("{svidetelstvo}",$dogovor_svidetelstvo,$kvtpl);
$kvtpl = str_replace("{zakazchik}",$dogovor_zakazchik,$kvtpl);
$kvtpl = str_replace("{site}",$dogovor_site,$kvtpl);
$kvtpl = str_replace("{billing}",$dogovor_billing,$kvtpl);
$kvtpl = str_replace("{terms}",$dogovor_terms,$kvtpl);
$kvtpl = str_replace("{p_rekviziti}",$dogovor_rekviziti,$kvtpl);
$kvtpl = str_replace("{email}",$dogovor_email,$kvtpl);
$kvtpl = str_replace("{z_rekviziti}",$dogovor_clientrekviziti,$kvtpl);
$kvtpl = str_replace("{shtamp}",$dogovor_shtamp,$kvtpl);
$kvtpl = str_replace("{tarif}",$dogovor_tarif,$kvtpl);
$kvtpl = str_replace("{hosttodate}",$dogovor_hosttodate,$kvtpl);
$kvtpl = str_replace("{domain}",$dogovor_domain,$kvtpl);
$kvtpl = str_replace("{domaintodate}",$dogovor_domaintodate,$kvtpl);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<?
print $kvtpl;
?>
</body>
</html>
<?
}
mclose();
exit;
}
if ($sub == "orderaddons" and $id and is_array($selectedAddons)) {
$order = @mysql_query("select *,TO_DAYS(todate)-TO_DAYS(NOW()) as leftdays from orders where id='$id' and uid='".$_SESSION["userId"]."'") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
if (mysql_num_rows($order) > 0) {
$order = mysql_fetch_object($order);
$tarif = GetTarifById($order->tarif);
$hostmonths=ceil($order->leftdays / 31);
$addonsCost=0;
$addonsToSave="";
$addonsToSaveText="";
while (list($k,$v) = @each($selectedAddons)) {
if ($v) {
$selectedAddon = GetAddonById($v);
if ($selectedAddon->id) {
if ($addonsToSaveText) {
$addonsToSaveText = $addonsToSaveText.", ".$selectedAddon->name;
} else {
$addonsToSaveText = $selectedAddon->name;
}
$addonsToSave = $addonsToSave.":x:$selectedAddon->id";
#Устанавливаем спец. цену, если она указана для данной доп. услуги и данного пользователя
#
$addonSpecCost = GetSpecialCost($_SESSION['userId'],"addon",$selectedAddon->id);
if ($addonSpecCost) {
$addonsCost += $addonSpecCost["cost1"];
$addonsCost += $addonSpecCost["cost2"]*$hostmonths;
} else {
$addonsCost += $selectedAddon->cost_start;
$addonsCost += $selectedAddon->cost_monthly*$hostmonths;
}
}
}
}
$addonsCost=round($addonsCost,2);
@mysql_query("insert into bills (uid,host_id,money_addons,created,newaddons) values('".$_SESSION['userId']."','$order->id','$addonsCost',NOW(),'$addonsToSave')") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
$bill_id=mysql_insert_id();
$sid=sprintf("%04d", $bill_id);
$orderTxt = "order: #$order->id, $tarif->name";
if ($order->domain) {$orderTxt = $orderTxt.", $order->domain";}
addUserLog($_SESSION['userId'],'orderAddons',"$addonsToSaveText [$orderTxt]");
$tpl=GetTpl('email_touser_addons_order', $_SESSION["userLang"]);
$subject = $tpl[subject]; $template = $tpl[template];
if ($subject and $template) {
$attachPDFtoBill = GetSetting("attachPDFtoBill");
if (($attachPDFtoBill and $_SESSION["userAttachPDFtoBill"] != "2") or (!$attachPDFtoBill and $_SESSION["userAttachPDFtoBill"] == "1")) {
$profile=GetUserProfileByUserId($_SESSION['userId']);
if ($profile->org == "3" and $profile->firma and $profile->phone) {
$attachFile = createFaktura('', $bill_id, 2);
} else if ($profile->org == "2" and $profile->name and $profile->surname and $profile->phone) {
$attachFile = createFaktura('', $bill_id, 2);
} else if ($profile->org == "1") {
$attachFile = createKvitanciya('', $bill_id, 2);
}
if (!$attachFile) {$attachFile="";}
}
$company_name=GetSetting('company_name');
$company_url=GetSetting('company_url');
$billing_url=GetSetting('billing_url');
$support_url=GetSetting('support_url');
$manager_email=GetSetting('manager_email');
$tl=$_SESSION["userLogin"]; $tp='******';
$template = str_replace('{company_name}',$company_name,$template);
$template = str_replace('{company_url}',$company_url,$template);
$template = str_replace('{billing_url}',$billing_url,$template);
$template = str_replace('{support_url}',$support_url,$template);
$template = str_replace('{tarif}',$tarif->name,$template);
$template = str_replace('{domain}',$order->domain,$template);
$template = str_replace('{addons}',$addonsToSaveText,$template);
$template = str_replace('{login}',$tl,$template);
$template = str_replace('{password}',$tp,$template);
$template = str_replace('{schet}',$sid,$template);
$template = str_replace('{addonscost}',round($addonsCost*CURK,2)." ".CURS,$template);
$template = str_replace('{cost}',round($addonsCost*CURK,2)." ".CURS,$template);
$template = str_replace('{userid}',$_SESSION['userId'],$template);
WriteMailLog($subject,$template,$_SESSION["userId"]);
sendmail($_SESSION["userEmail"],$company_name,$manager_email,$subject,$template,$attachFile);
sendmail($_SESSION["userEmail2"],$company_name,$manager_email,$subject,$template,$attachFile);
$admEmails=GetAdminEmailsWhereTrueParam("sendneworder");
if (count($admEmail) > 0) {
WriteMailLog("Duplicate: ".$subject,$template);
}
sendmail($manager_email,'',$manager_email,"Duplicate: ".$subject,$template,$attachFile);
@unlink($attachFile);
}
Header("Location: billing.php?do=pay&fromreg=1&id=$bill_id");
exit;
}
}
_head('utf-8',$_lang[OrdersTitle]);
$r=@mysql_query("select * from bills where status = '0' and uid='".$_SESSION["userId"]."'") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
if (mysql_num_rows($r) > 0) {
print "<font color=red>".$_lang[BillsNeOplachenoSchetov].": ".mysql_num_rows($r).". ".$_lang[BillsGoto]." <A class=rootlink href=?do=bills>".$_lang[BillsTitle]."</a> ".$_lang[BillGotoFor].".</font><BR><BR>";
}
if ($sub == 'delete' and $id) {
$order = GetOrderById($id);
if ($order->startdate == "0000-00-00" and $order->uid == $_SESSION["userId"] and (!$order->testPeriod or ($order->testPeriod and !$order->serverlogin))) {
@mysql_query("delete from orders where id='$id' and uid='".$_SESSION["userId"]."'") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
@mysql_query("delete from orders_domains where host_id='$id' and uid='".$_SESSION["userId"]."'") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
@mysql_query("delete from bills where host_id='$id' and uid='".$_SESSION["userId"]."'") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
print $_lang[OrdersDeleteSuccess]."<BR><BR>";
} else {
print "<font color=red>".$_lang[OrdersErrorCantDelete]."</font><BR><BR>";
}
}
if ($sub == "addons" and $id) {
$order = GetOrderById($id);
if ($order->id and $order->uid == $_SESSION["userId"]) {
$tarif = GetTarifById($order->tarif);
$orderTxt = "$tarif->name";
if ($order->domain) {$orderTxt = $orderTxt.", $order->domain";}
print "<form action=billing.php method=post>";
print "<input type=hidden name=do value=$do>";
print "<input type=hidden name=sub value=orderaddons>";
print "<input type=hidden name=id value=$id>";
print "<table class='rpTable' cellpadding=3 border=1 align=center>";
print "<tr><th colspan=2 align=center><B>".$_lang[OrdersAddonsForOrder]." ID #$order->id ($orderTxt)</b></th></tr>";
print "<tr><Td>";
$orderAddons = GetAddonsIdsForOrderId($order->id);
if (is_array($orderAddons)) {
while (list($k,$v) = each($orderAddons)) {
if ($v) {
$oneAddon=GetAddonById($v);
if ($oneAddon->id) {
print "<input class=input type=checkbox value=$oneAddon->id checked disabled> $oneAddon->name<BR>";
}
}
}
} else {
print "<center>".$_lang[OrdersNoAddons]."</center>";
}
print "</td></tr>";
print "<tr><th colspan=2 align=center><B>".$_lang[OrdersAddonsOrder]."</b></th></tr>";
print "<tr><Td>";
$orderAddonsAdd = GetAccessibleAddonsIdsForOrderId($order->id);
if (is_array($orderAddonsAdd)) {
while (list($k,$v) = each($orderAddonsAdd)) {
if ($v) {
$oneAddon=GetAddonById($v);
if ($oneAddon->active and !$oneAddon->isOs and !$oneAddon->isPanel) {
$addonMoney = "";
if ($oneAddon->cost_start) {
$addonMoney=round($oneAddon->cost_start*CURK,2)." ".CURS." ".$_lang[OrderRazovo];
if ($oneAddon->cost_monthly) {$addonMoney = $addonMoney." + ";}
}
if ($oneAddon->cost_monthly) {$addonMoney=$addonMoney.round($oneAddon->cost_monthly*CURK,2)." ".CURS."/".$_lang[OrderSokraschenieMonth];}
if (!$addonMoney) { $addonMoney = $_lang[OrderFree]; }
print "<input class=input type=checkbox name=selectedAddons[] value=$oneAddon->id> $oneAddon->name ($addonMoney)<BR>";
}
}
}
} else {
print "<center>".$_lang[OrdersNoAvailAddons]."</center>";
}
print "</td></tr>";
print "<tr><td colspan=2 align=center><input class=button type=submit value='".$_lang[Order]."'></td></tr>";
print "</table>";
print "</form>";
} else { print $_lang[OrdersErrorNoOrder]."<BR><BR>"; }
}
getfont();
$r=@mysql_query("select * from orders WHERE uid='".$_SESSION["userId"]."' order by id desc") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
$rows = mysql_num_rows($r);
list($start, $perPage, $txt) = MakePages($page, $rows);
?>
<table class='rpTable' cellpadding=3 width=95% align=center border=1>
<tr align=center>
<th><?=$_lang[OrdersDate]?></th>
<th><?=$_lang[OrdersDomain]?></th>
<th><?=$_lang[OrdersTarif]?></th>
<th><?=$_lang[OrdersEnd]?></th>
<th><?=$_lang[OrdersLeftDays]?></th>
<th><?=$_lang[Option]?></th>
</tr>
<?
$r=@mysql_query("select *,TO_DAYS(todate)-TO_DAYS(NOW()) as leftdays from orders where uid='".$_SESSION["userId"]."' order by id desc LIMIT $start,$perPage") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
$cnt=0;
getfont();
while ($rr = mysql_fetch_object($r)) {
getfont();
$t=mysql_query("select * from tarifs where id = '$rr->tarif'");
$t=mysql_fetch_object($t);
$b=mysql_query("select * from bills where host_id = '$rr->id' and uid='".$_SESSION["userId"]."'") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
$bills=mysql_num_rows($b);
$b=mysql_fetch_object($b);
$bp=mysql_query("select * from bills where host_id = '$rr->id' and uid='".$_SESSION["userId"]."' and !(status='0')") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
$billspayed=mysql_num_rows($bp);
$billsNonPayed = $bills-$billspayed;
$tVid = $t->vid;
if ($rr->testPeriod) {
$tVid = $_lang[OrderTestPeriod];
} else {
$tVid = $_lang[OrderType][$tVid];
}
if ($rr->leftdays != "") {
if ($rr->leftdays <= 10 and $rr->startdate != "0000-00-00") {
$leftDays = "<font color=red>".$rr->leftdays."</font>";
} else {
$leftDays = $rr->leftdays;
}
$leftDays="<img src=./_rootimages/hosting.gif border=0 alt='".$tVid."'> ".$leftDays;
}
else { $leftDays = "-"; }
if ($rr->startdate != "0000-00-00" or $rr->testPeriod) { $todate="<img src=./_rootimages/hosting.gif border=0 alt='".$tVid."'> ".mydate($rr->todate); }
else { $todate = "-"; }
if ($rr->domain_reg == "1") {
$d=@mysql_query("select *,TO_DAYS(todate)-TO_DAYS(NOW()) as leftdays from orders_domains where host_id='$rr->id' and uid='".$_SESSION["userId"]."'") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
$d=mysql_fetch_object($d);
if ($d->leftdays == "") { $d->leftdays = "-"; }
else if ($d->leftdays <= 30 and $d->startdate != "0000-00-00") { $d->leftdays = "<font color=red>".$d->leftdays."</font>"; }
if ($d->leftdays != "-") { $leftDays .= " <img src=./_rootimages/domain.gif border=0 alt='".$_lang[Domain]."'> ".$d->leftdays; }
if ($d->startdate != "0000-00-00") { $todate .= "<BR><img src=./_rootimages/domain.gif border=0 alt='".$_lang[Domain]."'> ".mydate($d->todate); }
}
if ($billspayed > 0 or $rr->startdate != "0000-00-00" or ($rr->testPeriod and $rr->serverlogin)) {
$delete='';
} else {
$delete="<A class=rootlink href=?do=$do&sub=delete&id=$rr->id onclick="javascript: return confirm('".$_lang[OrdersDeleteAlert]."');"><img src=./_rootimages/del.gif style='padding-right: 5px' border=0 alt='".$_lang[OrdersDeleteOrder]."'>$_lang[OrdersDeleteOrder]</a><BR>";
}
if ($billsNonPayed == 0 and $rr->todate != "0000-00-00") {
$renew="<a class=rootlink href=?do=renew&host_id=$rr->id><img src=./_rootimages/renew.gif style='padding-right: 5px' border=0 alt='".$_lang[OrdersRenewOrder]."'>$_lang[OrdersRenewOrder]</a><BR>";
} else {
$renew='';
}
if ($rr->filename) {
$download="<a class=rootlink href=?do=download&id=$rr->id><img src=./_rootimages/download.gif style='padding-right: 5px' border=0 alt='".$_lang[OrdersDownloadFile]."'>$_lang[OrdersDownloadFile]</a><BR>";
} else {
$download='';
}
if (GetSetting("dogovor_enable")) {
$dogovor="<a class=rootlink href='' onClick="popupWin = window.open('billing.php?do=$do&host_id=$rr->id&sub=dogovor', 'dogovor', 'location,width=650,height=600,top=0,scrollbars=yes'); popupWin2 = window.open('billing.php?do=$do&host_id=$rr->id&sub=dodatok', 'dodatok', 'location,width=650,height=600,top=20,left=20,scrollbars=yes'); popupWin.focus(); return false;"><img src=./_rootimages/dogovor.gif style='padding-right: 5px' border=0 alt='".$_lang[OrdersPrintDogovor]."'>$_lang[OrdersPrintDogovor]</a><BR>";
} else {
$dogovor="";
}
if ($rr->remarkUser) {
$rr->remarkUser = preg_replace("/n/ui","<BR>",$rr->remarkUser);
$remark="<span title='<B>".$_lang[OrderRemark].":</b><BR>$rr->remarkUser'><img src=./_rootimages/question2.gif style='padding-right: 5px' border=0>$_lang[OrderRemark]</span><BR>";
} else {
$remark="";
}
$orderAddons = split(":x:", $rr->addons);
sort($orderAddons);
$lastaddon='';
$orderAddonsTxt='';
while (list($k,$v) = @each($orderAddons)) {
if ($v) {
$oneAddon=GetAddonById($v);
if ($oneAddon->id) {
if ($lastaddon) {$orderAddonsTxt .= "<BR>";}
$orderAddonsTxt .= "- $oneAddon->name";
$lastaddon=$oneAddon->textid;
}
}
}
if ($rr->leftdays >= 0 and $rr->startdate != "0000-00-00") {
if (!$orderAddonsTxt) {$orderAddonsTxt=$_lang[OrdersAddonOrder];}
$addons="<a class=rootlink href=?do=orders&sub=addons&id=$rr->id title='<B>".$_lang[OrderAddons].":</b><BR>$orderAddonsTxt'><img src=./_rootimages/addons2.gif style='padding-right: 5px' border=0>$_lang[OrderAddons]</a><BR>";
} else if ($orderAddonsTxt) {
$addons="<span title='<B>".$_lang[OrderAddons].":</b><BR>$orderAddonsTxt'><img src=./_rootimages/addons2.gif border=0> $_lang[OrderAddons]</span><BR>";
} else {
$addons="";
}
if ($billsNonPayed == 0 and GetAccessibleChangeTarifsForHostingOrder($rr->id)) { $changetarif = "<br>[<A class=rootlink href=?do=changetarif&host_id=$rr->id>".$_lang[OrdersChangeTarif]."</a>]"; } else { $changetarif=""; }
if ($rr->domain) {$domainTxt = "<B>$rr->domain</b><BR>";}
else { $domainTxt = ""; }
print "
<tr bgcolor=$font_row height=30>
<td align=center>".mydate($rr->orderdate)."</td>
<td>".$domainTxt."[".$_newregmin[$rr->domain_reg]."]</td>
<td align=center><b>$t->name</b>$changetarif</td>
<td align=center>$todate</td>
<td align=center nowrap>$leftDays</td>
<td align=left valign=middle>$remark$dogovor$download$addons<A class=rootlink href=?do=bills¶m=host_id&search=$rr->id><img src=./_rootimages/bills.gif style='padding-right: 5px' border=0 alt='".$_lang[BillsTitle].": $bills'>$_lang[BillsTitle]: $bills</a><BR>$renew$delete</td>
</tr>
";
$cnt++;
}
?>
<tr><th colspan=7><?=$_lang[OrdersTotalOrders]?>: <?=$rows?>, <?=$_lang[OrdersOrdersOnPage]?>: <?=$cnt?></th></tr>
<tr><th colspan=7 align=right><?=$txt?></th></tr>
</table>
<?
_foot('utf-8');
?>