/** * log contract activity/updates */ function getContractEndDate($contractStartDate,$contractTerm) { switch(strtolower($contractTerm)) { case "6 months": return addToDate($contractStartDate,180); break; case "1 year": return addToDate($contractStartDate,365); break; case "2 years": return addToDate($contractStartDate,730); break; case "3 years": return addToDate($contractStartDate,1095); break; case "4 years": return addToDate($contractStartDate,1460); break; case "indefinite": return ""; break; } }
<td valign="bottom" height="31px" style="color:#fff; font-size:14px; border:1px solid #ff6633; background-color:#f7962b;padding-bottom: 6px; padding-left: 10px " class="text2" colspan=6><strong><?php echo DateTimeFormat($_datumCnt, "d") . " " . dic_("Reports." . $meseci[intval(DateTimeFormat($_datumCnt, "m")) - 1] . "") . " " . DateTimeFormat($_datumCnt, "Y"); ?> <span class="text2" style="font-style:italic; color:#153B75; font-size:12px"><?php echo dic_("Reports.NoDataDay"); ?> </span></strong></td> </tr> <?php } ?> </table> <?php $_datumCnt = addToDate($_datumCnt, 1, "days"); } closedb(); ?> <br /><br /> </div><br> <div id="footer-rights-new" class="textFooter" style="padding:10px 10px 10px 10px"> <?php echo $CopyrightString; ?> | <?php echo session("company"); ?> | <?php echo session("user_fullname"); ?>
} else { //vikend if ($dayType == 9) { if (DateTimeFormat($f, 'w') == 6 or DateTimeFormat($f, 'w') == 0) { $ret = query("select cachereportsparams('" . DateTimeFormat($f, 'Y-m-d') . " " . $from . "', '" . DateTimeFormat($f, 'Y-m-d') . " " . $to . "', ' clientid = " . $cid . "')"); if ($clienttypeid == 2) { $ret = query("select cachetaxiparams1('" . DateTimeFormat($f, 'Y-m-d') . " " . $from . "', '" . DateTimeFormat($f, 'Y-m-d') . " " . $to . "', ' clientid = " . $cid . "')"); $ret = query("select cachetaxiparams2('" . DateTimeFormat($f, 'Y-m-d') . " " . $from . "', '" . DateTimeFormat($f, 'Y-m-d') . " " . $to . "', ' clientid = " . $cid . "')"); } } } else { //delnik if ($dayType == 10) { if (DateTimeFormat($f, 'w') >= 1 and DateTimeFormat($f, 'w') <= 5) { $ret = query("select cachereportsparams('" . DateTimeFormat($f, 'Y-m-d') . " " . $from . "', '" . DateTimeFormat($f, 'Y-m-d') . " " . $to . "', ' clientid = " . $cid . "')"); if ($clienttypeid == 2) { $ret = query("select cachetaxiparams1('" . DateTimeFormat($f, 'Y-m-d') . " " . $from . "', '" . DateTimeFormat($f, 'Y-m-d') . " " . $to . "', ' clientid = " . $cid . "')"); $ret = query("select cachetaxiparams2('" . DateTimeFormat($f, 'Y-m-d') . " " . $from . "', '" . DateTimeFormat($f, 'Y-m-d') . " " . $to . "', ' clientid = " . $cid . "')"); } } } } } $f = addToDate($f, 1, "days"); } } } closedb(); ?>