Exemplo n.º 1
0
 public static function getBracode_Id_BySanad_record_id($sanad_record_id)
 {
     $out = '---';
     $mysql = new mysql_class();
     $mysql->ex_sql("select id from pardakht where sanad_record_id=" . $sanad_record_id, $q);
     if (isset($q[0])) {
         $out = pardakht_class::getBarcode($q[0]['id']);
     }
     return $out . ' - ' . $q[0]['id'];
 }
Exemplo n.º 2
0
            //-------------- shenavar sanad------------
            $sanad_record_id = sanad_class::getLastSanad_record_id();
            $user_id = isset($_SESSION[conf::app . '_user_id']) ? (int) $_SESSION[conf::app . '_user_id'] : -1;
            foreach ($shenavar as $par) {
                parvaz_det_class::sanad_shenavar_kharid($par, $tedad, $sanad_record_id, $user_id);
            }
            //Sabte sanade pardakht parvaz.------------
            $sanad_record_id = sanad_class::getLastSanad_record_id();
            $tozihat = ' بابت خرید نقدی بلیت به شماره سند ' . $sanad_record_id_ticket;
            customer_class::pardakht($sanad_record_id, $info[0]->customer_id, $pardakht->mablagh, $tozihat, $user_id);
        }
        foreach ($res_tmp as $tmpid) {
            mysql_class::ex_sqlx("delete from `reserve_tmp` where `id` = " . $tmpid);
        }
        $rev = pay_class::settle($SaleOrderId, $SaleReferenceId);
        $rahgiri = pardakht_class::getBarcode($pardakht->id);
        $out = '<script langauge="javascript" >window.location = "finalticket2.php?ticket_type=0&sanad_record_id=' . $sanad_record_id_ticket . '&rahgiri=' . $rahgiri . '"</script>';
    } else {
        $out = ' پرداخت انجام نشد مجدد سعی نمایید درصورت پرداخت وجه ، مبلغ از حساب شما کم نشده است
					<br/>
					<input class="inp" type="button" value="بازگشت" onclick="window.location=\'index.php\';" />';
    }
} else {
    $out = 'در تراکنش مالی مشکلی پیش آمده است پرداخت انجام نشد مجدد سعی نمایید درصورت پرداخت وجه ، مبلغ از حساب شما کم نشده است
			<br/>
			<input class="inp" type="button" value="بازگشت" onclick="window.location=\'index.php\';" />';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Exemplo n.º 3
0
 for ($k = 0; $k < count($tmp_id); $k++) {
 }
 if ($kharid_typ == 'naghdi') {
     $bool = TRUE;
     $tarikh_now = date("Y-m-d H:i:s");
     /*
     			for($k=0;$k<count($tmp_id);$k++)
     				if(!ticket_class::updateTmp($tmp_id[$k],$info_ticket))
     					$bool = FALSE;
     * 
     */
     if ($bool) {
         $mysql = new mysql_class();
         $pardakht_id = pardakht_class::add(implode(',', $tmp_id), $tarikh_now, $jam_ghimat1, toJSON(array('ticket' => $info_ticket, 'parvaz' => $log_text_info, 'netlog' => $netlog, 'rwaitlog' => $rwaitlog)));
         $pardakht = new pardakht_class($pardakht_id);
         $rahgiri = $pardakht->getBarcode();
         if ($conf->ps === TRUE) {
             $pay_code = pay_class::ps_pay($pardakht_id, $jam_ghimat1);
         } else {
             if ($conf->payline === TRUE) {
                 $pay_code = pay_class::pl_pay($pardakht_id, $jam_ghimat1);
                 $mysql->ex_sqlx("update `pardakht` set `bank_out` = '{$pay_code}' where `id` = {$pardakht_id}");
             } else {
                 $pay_code = pay_class::pay($pardakht_id, $jam_ghimat1);
             }
         }
         //var_dump($pay_code);
         $tmpo = explode(',', $pay_code);
         if (count($tmpo) == 2 && $tmpo[0] == 0 && $conf->ps !== 'TRUE') {
             $redirect = "<script language=\"javascript\">alert(\"کد رهگیری خود را یادداشت نمایید \\n {$rahgiri} \\n سپس به بانک هدایت می شوید\");postRefId('" . $tmpo[1] . "');</script>";
         } else {