Example #1
0
    mysql_class::ex_sql('select `id` from `ticket` where `shomare`=' . (int) $rr['shomare'], $qs);
    $ticket_ids = array();
    while ($r = mysql_fetch_array($qs)) {
        $ticket_ids[] = (int) $r['id'];
    }
    $out .= "<div align='center' style='width:21cm;height:31cm;' >";
    for ($i = 0; $i < count($ticket_ids); $i++) {
        $et = new eticket_class($ticket_ids[$i]);
        if ($i > 0) {
            $et->route = 'ROUTE 2<br/>' . 'مسیر۲';
        }
        $et->user_id = $user_id;
        $et->customer_logo_text = conf::app_fa;
        $out .= $et->get() . '---------------------------------------------------------------------------------<br />';
    }
    $et = new eticket_class($ticket_ids[0]);
    $et->isCopon = TRUE;
    $et->user_id = $user_id;
    $et->customer_logo_text = conf::app_fa;
    $et->route = 'Passengar Coupon <br />کوپن مسافر';
    $out .= $et->get() . conf::eticket_footer;
    $out .= '</div>';
}
?>
<!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">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<link type="text/css" href="css/style.css" rel="stylesheet" />
		<link type="text/css" href="css/hamed.css" rel="stylesheet" />
Example #2
0
    //$mysql->ex_sql('select `id` from `ticket` where `shomare`='.(int)$_REQUEST["shomare"],$qs);
    $mysql->ex_sql('select `ticket`.`id` from `ticket` left join `parvaz_det` on (`parvaz_det_id` = `parvaz_det`.`id`) where `ticket`.`shomare`=' . (int) $_REQUEST["shomare"] . ' order by `parvaz_det`.`tarikh`', $qs);
    foreach ($qs as $r) {
        $ticket_ids[] = (int) $r['id'];
    }
}
for ($i = 0; $i < count($ticket_ids); $i++) {
    $et = new eticket_class($ticket_ids[$i]);
    if ($i > 0) {
        $et->route = 'ROUTE 2<br/>' . 'مسیر۲';
    }
    $et->user_id = $user_id;
    $et->customer_logo_text = $conf->app_fa;
    $out .= $et->get() . '---------------------------------------------------------------------------------<br />';
}
$et = new eticket_class($ticket_ids[0]);
$et->isCopon = TRUE;
$et->isAdmin = $se->detailAuth('all');
$et->user_id = $user_id;
$et->customer_logo_text = $conf->app_fa;
$et->route = 'Passengar Coupon <br />کوپن مسافر';
$out .= $et->get();
?>
	<!--<img src='../img/barcodes/123.png' />-->
<!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">
	<head>
		<script src="../js/jquery.js"></script>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<link type="text/css" href="css/style.css" rel="stylesheet" />
Example #3
0
    $mysql->ex_sql('select `id` from `ticket` where `shomare`=' . (int) $rr['shomare'], $qs);
    $ticket_ids = array();
    foreach ($qs as $r) {
        $ticket_ids[] = (int) $r['id'];
    }
    $out .= "<div align='center' style='width:21cm;height:31cm;' >";
    for ($i = 0; $i < count($ticket_ids); $i++) {
        $et = new eticket_class($ticket_ids[$i]);
        if ($i > 0) {
            $et->route = 'ROUTE 2<br/>' . 'مسیر۲';
        }
        $et->user_id = $user_id;
        $et->customer_logo_text = $conf->app_fa;
        $out .= $et->get() . '---------------------------------------------------------------------------------<br />';
    }
    $et = new eticket_class($ticket_ids[0]);
    $et->isAdmin = $se->detailAuth('all');
    $et->isCopon = TRUE;
    $et->user_id = $user_id;
    $et->customer_logo_text = $conf->app_fa;
    $et->route = 'Passengar Coupon <br />کوپن مسافر';
    $out .= $et->get() . $conf->eticket_footer;
    $out .= '</div>';
}
?>
<!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">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<link type="text/css" href="css/style.css" rel="stylesheet" />