function parvaz_detail($inp) { $inp = (int) $inp; mysql_class::ex_sql("select `id` from `ticket` where `en`='1' and `adult`<>'2' and parvaz_det_id={$inp}", $q); $out = mysql_num_rows($q); if ($out == 0) { $out = '0'; } $out .= " <u><span style=\"color:firebrick;cursor:pointer;\" onclick=\"wopen('parvaz_forookhte.php?parvaz_det_id={$inp}&','',600,120);\"> جزئیات</span></u>"; $out .= '<br />' . esterdad($inp) . '<br />'; $out .= " <u><span style=\"color:blue;cursor:pointer;\" onclick=\"wopen('manifest.php?parvaz_det_id={$inp}&','',800,600);\"> فهرست</span></u>"; return $out; }
function parvaz_detail($inp) { $inp = (int) $inp; $toz = loadTozih($inp); if ($toz == '') { $toz = "«»"; } $movaghat = 0; $mysql = new mysql_class(); $mysql->ex_sql("select SUM(`tedad`) as `jam` from `reserve_tmp` where `parvaz_det_id`={$inp} ", $qq); if (isset($q[0])) { $movaghat = (int) $q[0]['jam']; } $mysql->ex_sql("select `id` from `ticket` where `en`='1' and `adult`<>'2' and parvaz_det_id={$inp}", $q); $out = count($q); if ($out == 0) { $out = '0'; } $out .= " <span style=\"color:firebrick;cursor:pointer;\" onclick=\"wopen('parvaz_forookhte.php?parvaz_det_id={$inp}&','',600,120);\"> جزئیات</span> {$movaghat}"; $out .= '<br />' . esterdad($inp) . '<br />'; $out .= " <span style=\"color:blue;cursor:pointer;\" onclick=\"wopen('manifest.php?parvaz_det_id={$inp}&','',800,600);\"> فهرست</span>"; if ($conf->tozihatEnabled) { $out .= "<br/><span style=\"color:blue;cursor:pointer;\" onclick=\"wopen('tozih.php?parvaz_det_id={$inp}&','',800,600);\">{$toz}" . "</span>"; } return $out; }