<td> <p style="text-align: center;"><span style="font-size: 7px;">وزن <br/>WEIGHT</span></p> </td> <td> <p style="text-align: center;"><span style="font-size: 7px;">تعداد<br>PIECES</span></p> </td> <td colspan="2" ><span style="font-size: 7px;">توشه مجانی <br />FREE BAGGAGE<br /> ALLOW</span></td> </tr> <tr style="height:0.8cm;" > <td><b>OK</b></td> <td style="text-align: center;"><b><?php echo $parvaz->saat; ?> </b></td> <td><b><?php echo hamed_pdate1($parvaz->tarikh); ?> </b></td> <td>Y</td> <td><b><?php echo $parvaz->shomare; ?> </b></td> <td><b><?php echo loadSherkat($parvaz->sherkat_id); ?> </b></td> <td colspan="3" > <table style="text-align: center;font-size: 6px;width:100%;" > <tr> <td style="direction:rtl;text-align:right" >
} $user_id = (int) $_SESSION["user_id"]; if (isset($_REQUEST["cust_id"])) { $_SESSION["customer_id"] = (int) $_REQUEST["cust_id"]; } $today = date("Y-m-d"); $time_now = date("H:i:s", strtotime(date("H:i:s") . " + 1 hour")); $aftertomarrow = date("Y-m-d", strtotime($today . " + 1 month")); $smabda_id = isset($_REQUEST["smabda_id"]) ? $_REQUEST["smabda_id"] : -1; $smaghsad_id = isset($_REQUEST["smaghsad_id"]) ? $_REQUEST["smaghsad_id"] : -1; $domasire = FALSE; $domasire = isset($_REQUEST["domasire"]) && $_REQUEST["domasire"] ? TRUE : FALSE; $saztarikh = isset($_REQUEST["saztarikh"]) ? $_REQUEST["saztarikh"] : hamed_pdate1($today); $statarikh = isset($_REQUEST["statarikh"]) ? $_REQUEST["statarikh"] : hamed_pdate1($aftertomarrow); if ($_SESSION['customer_typ'] != 2 && strtotime(hamed_pdateBack(perToEnNums($saztarikh))) < strtotime($today)) { $saztarikh = hamed_pdate1($today); } $whereClause = " (`tarikh` > '" . hamed_pdateBack(perToEnNums($saztarikh)) . "' and `tarikh` <= '" . hamed_pdateBack(perToEnNums($statarikh)) . "') or (`tarikh`='" . hamed_pdateBack(perToEnNums($saztarikh)) . "' and `saat`>='{$time_now}')"; //and parvaz_id in (select id from `parvaz` where $whereClause1 = ""; if ($smabda_id > 0) { $whereClause1 .= " (`mabda_id` = '{$smabda_id}'"; if ($domasire) { $whereClause1 .= " or `maghsad_id` = '{$smabda_id}'"; } $whereClause1 .= ")"; } if ($smaghsad_id > 0) { $whereClause1 .= " and `en`='1' and (`maghsad_id` = '{$smaghsad_id}'"; if ($domasire) { $whereClause1 .= " or `mabda_id` = '{$smaghsad_id}'";
function loadTozihat($id) { $out = ''; $out1 = ''; $customer_id = -1; $id = (int) $id; $sanad_typ = 0; $tozihat = -1; mysql_class::ex_sql("select `sanad_typ`,`tozihat` from `customer_daryaft` where `id` = {$id}", $qq); if ($r = mysql_fetch_array($qq)) { $sanad_typ = (int) $r["sanad_typ"]; $tozihat = (int) $r["tozihat"]; } if ($sanad_typ != -1) { mysql_class::ex_sql("select * from `ticket` where `sanad_record_id` in (select `sanad_record_id` from `customer_daryaft` where `id` = '{$id}')", $q); if ($r = mysql_fetch_array($q)) { $customer_id = (int) $r["customer_id"]; if ((int) $r["typ"] == 1) { $out = $r["tozihat"]; } else { $par = new parvaz_det_class($r['parvaz_det_id']); $out = 'مسافر: <b>' . $r['lname'] . '</b> پرواز: <b>' . enToPerNums($par->shomare) . '</b> تاریخ: <b>' . hamed_pdate1($par->tarikh) . '</b>'; $out1 = "<u><span onclick=\"wopen('report2.php?customer_id={$customer_id}&sanad_record_id=" . (int) $r["sanad_record_id"] . "&','',700,300);\" style=\"cursor:pointer;color:firebrick;\">{$out}</span></u>"; } } } else { $ticket = new ticket_class($tozihat); return "بابت استرداد بلیت شماره " . $ticket->shomare; } return $out1; }