Exemplo n.º 1
0
function moni($inp)
{
    $inp = (int) $inp;
    $out = $inp < 0 ? '(' : '';
    $out .= monize(abs($inp));
    $out .= $inp < 0 ? ')' : '';
    return $out;
}
Exemplo n.º 2
0
function loadMablagh($id)
{
    $id = (int) $id;
    $tick = new ticket_class($id);
    $out = $tick->mablagh * (1 - $tick->poorsant / 100);
    return monize($out);
}
Exemplo n.º 3
0
		</tr>
		<tr style="height:0.7cm;" >
		<td colspan="12">
			<table style="text-align: center;font-size: 6px;width:100%;" >
				<tr>
					<td style="direction:rtl;text-align:right" >
		مبلغ قابل پرداخت :
					</td>
					<td style="direction:ltr;text-align:left" >
						&nbsp;
					</td>
				</tr>
				<tr>
					<td colspan='2' style="text-align:center;font-weight:bold;font-size: 12px;width:100%;" >
					<?php 
    echo monize($ticket->mablagh * (1 - $ticket->poorsant / 100));
    ?>
						
					</td>
				</tr>
			</table>
		</td>
		</tr>
		</tbody>
		</table>
		
<?php 
}
?>
</div>
	<?php 
Exemplo n.º 4
0
function loadGhimat($inp)
{
    return perToEnNums(monize($inp));
}
Exemplo n.º 5
0
    public function get()
    {
        $conf = new conf();
        $out = '';
        if (!$this->ticket_ok) {
            exit;
        }
        $customer = new customer_class($this->customer_id);
        $parvaz = new parvaz_det_class($this->parvaz_det_id[0]);
        $par = new parvaz_class($parvaz->parvaz_id);
        $this->fare .= '<span style="font-size:6px;" >' . monize($par->ghimat_ticket) . 'ریال </span>';
        $allow0 = $this->allow[0];
        $allow1 = $this->isCopon ? $this->allow[1] : '';
        $ok = '';
        $saat = '';
        $par2_dates = "";
        $fl2 = '';
        $flight_class0 = $this->flight_class[0];
        $flight_class1 = $this->flight_class[1];
        $city0 = $this->loadCity($parvaz->mabda_id);
        $city1 = $this->loadCity($parvaz->maghsad_id);
        $parvaz_back = isset($this->parvaz_det_id[1]) ? new parvaz_det_class($this->parvaz_det_id[1]) : null;
        $sherkat0 = $this->loadSherkat($parvaz->sherkat_id);
        $b = new barcode_class(ticket_class::rahgiriToCode($this->serial, $conf->rahgiri));
        $barcode = '<img src="../img/barcodes/' . ticket_class::rahgiriToCode($this->serial, $conf->rahgiri) . '.png" alt="' . ticket_class::rahgiriToCode($this->serial, $conf->rahgiri) . '" />';
        if ($parvaz_back != null && $this->isCopon) {
            $sherkat1 = $this->loadSherkat($parvaz_back->sherkat_id);
            $city2 = $this->loadCity($parvaz_back->maghsad_id);
            $ok = 'OK';
            $saat = $parvaz_back->saat;
            $perdate1 = perToEnNums(jdate("m/d", strtotime($parvaz_back->tarikh)));
            $endate1 = date("d M", strtotime($parvaz_back->tarikh));
            $par2_dates = "\n                                <table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n                                        <tr>\n                                                <td  style=\"font-size:12px;\" >\n                                                        <b>{$perdate1}</b>\n                                                </td>\n                                                <td style=\"border-right-style:solid;font-size:10px;\">\n                                                        <b>{$endate1}</b>\n                                                </td>\n                                        </tr>\n                                </table>";
            $fl2 = "\n                                <table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n                                        <tr>\n                                                <td>\n                                                        <b>{$flight_class1}</b>\n                                                </td>\n                                                <td style=\"border-right-style:solid;font-size:10px;\">\n                                                        <b>{$parvaz_back->shomare}</b>\n                                                </td>\n                                        </tr>\n                                </table>";
        } else {
            $sherkat1 = '';
            $city2 = 'VOID';
        }
        $user = new user_class($this->user_id);
        $perdate = perToEnNums(jdate("m/d", strtotime($parvaz->tarikh)));
        $endate = date("d M", strtotime($parvaz->tarikh));
        $this->serialText = $this->isAdmin ? '<input type="text" style="border-style:none;font-weight:bold;width:100%;text-align:center;" value="' . $this->serial . '" />' : $this->serial;
        $this->refrenceText = $this->isAdmin ? '<input type="text" style="border-style:none;font-weight:bold;width:100%;text-align:center;" value="' . $this->refrence . '" />' : $this->refrence;
        $out = <<<et
\t\t<span>Serial(Voucher/ Passenger No):{$this->serial}</span>
\t\t<table style="border-style: solid;border-collapse: collapse; font-size: 9px; direction: rtl; width:90%; height: 7cm;" border="2" >
\t\t<tbody>
\t\t<tr>
\t\t\t<td align="center" valign="top" rowspan="2" colspan="4" style="width:4cm;" >
\t\t\t\t<table width="100%">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="font-size:7px;text-align:center;vertical-align:top;">
\t\t\t\t\t\t\tتاریخ و محل صدور :
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t&nbsp;
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="font-size:7px;text-align:left;vertical-align:top;">
\t\t\t\t\t\t\tDATE AND PLACE OF ISSUE
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan="3" style="direction:ltr;font-size:10px;">
\t\t\t\t\t\t\t{$this->regTime}
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan="3" style="font-size:12px;" >
\t\t\t\t\t\t\t<b>{$customer->name}</b>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan="3" style="font-size:8px;" >
\t\t\t\t\t\t\t{$user->fname} {$user->lname}
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="font-size:7px;text-align:right;vertical-align:bottom;">
\t\t\t\t\t\t\tصادر کننده 
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t&nbsp;
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="font-size:7px;text-align:left;vertical-align:bottom;">
\t\t\t\t\t\t\tAGENT 
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</td>
\t\t\t<td colspan="3" style="height:0.8cm;font-size:7px;"  >
\t\t\t<b>
\t\t\t\t{$this->route}
\t\t\t</b>
\t\t\t</td>
\t\t\t<td style="font-size: 6px;width:10%;text-align:left;vertical-align:top;">
\t\t\t\tORIGIN/DESTINATION
\t\t\t</td>
\t\t\t<td style="text-align: left;height:0.8cm;" colspan="6">
\t\t\t\t<table style="font-size: 6px;width:100%;">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t{$this->our_logo}
\t\t\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t\t{$this->our_logo_text}
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t{$this->customer_logo}
\t\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t\t{$this->customerlogotext}
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="font-size: 6px;width:10%;text-align:left;vertical-align:top;">
\t\t\t\t\t\t\tISSUED BY
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="font-size: 5px;width:30%;text-align:left;" >
\t\t\t\t\t\t\tPASSENGER<br/>AIR/GROUND<br/>SERVICES<br/>VOUCHER AND<br/>BAGGAGE CHECK
\t\t\t\t\t\t</td>\t\t\t\t\t
\t\t\t\t\t</tr>
\t\t\t\t</table>\t\t\t
\t\t\t</td>
\t\t</tr>
<!--
\t\t<tr>
\t\t\t<td colspan="10" style="height:0.2cm;">
\t\t\t\t&nbsp;
\t\t\t</td>
\t\t</tr>
-->
\t\t<tr>\t\t
\t\t\t<td style="text-align: center;font-size:13px;" colspan="10">
\t\t\t\t<table width="100%" cellspacing="0" cellpadding="0" >
\t\t\t\t\t<tr style="height:100%" >
\t\t\t\t\t\t<td style="text-align: right;font-size:7px;vertical-align:top;">
\t\t\t\t\t\t\tنام مسافر(غیر قابل انتقال) :
\t\t\t\t\t\t</td>\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t<td style="text-align:left;direction:ltr;font-size:7px;vertical-align:top;">
\t\t\t\t\t\t\tNAME OF PASSENGER :
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr style="height:0.7cm;">
\t\t\t\t\t\t<td colspan="2" style="font-size:13px;vertical-align:top;" >
\t\t\t\t\t\t\t<b>{$this->ticket_fname} {$this->ticket_lname}</b>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t
\t\t\t\t</table>
\t\t\t</td>
\t\t</tr>
\t\t<tr valign="top" style="height:0.5cm;" >
\t\t\t<td >
\t\t\t<span style="font-size: 7px;">بار کنترل شده  ‌BAGGAEG<br/>بار کنترل نشده CK/UNCK
</span>
\t\t\t</td>
\t\t\t<td>
\t\t\t<span style="font-size: 7px;">ALLOW<br/>بارمجاز</span>
\t\t\t</td>
\t\t\t<td>
\t\t\t<span style="font-size: 7px;">NOT VALID<br/>AFTER<br/>
‫فاقد اعتبار بعد از
</span>
\t\t\t</td>
\t\t\t<td >
\t\t\t\t<span style="font-size: 7px;">NOT VALID<br/>BEFORE<br/>‫فاقد اعتبار قبل از‬</span>
\t\t\t</td>
\t\t\t<td>
\t\t\t\t<span style="font-size: 7px;">FARE BASIS<br/>مبنای نرخ‬‫</span>
\t\t\t</td>
\t\t\t<td>
\t\t\t\t<span style="font-size: 7px;">STATUS<br/>وضعیت‬‫</span>
\t\t\t</td>
\t\t\t<td>
\t\t\t\t<span style="font-size: 7px;">TIME<br/>زمان‬‫</span>
\t\t\t</td>
\t\t\t<td colspan="2">
\t\t\t\t<span style="font-size: 7px;">DATE<br/>تاریخ</span>
\t\t\t</td>
\t\t\t<td colspan="2">
\t\t\t\t<span style="font-size: 7px;">FLIGHT/CLASS<br/>پرواز/کلاس</span>
\t\t\t</td>
\t\t\t<td>
\t\t\t\t<span style="font-size: 7px;">CARRIER<br/>حمل کننده</span>
\t\t\t</td>
\t\t\t<td>
\t\t\t\t<table width="100%" cellspacing="0" cellpadding="0" style="font-size: 7px;" >
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="text-align: right;font-size:7px;vertical-align:top;">
\t\t\t\t\t\tبرای مسافرت معتبر نیست
\t\t\t\t\t\t</td>\t\t
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t&nbsp;
\t\t\t\t\t\t</td>\t\t
\t\t\t\t\t\t<td style="text-align:left;direction:ltr;font-size:7px;vertical-align:top;">
\t\t\t\t\t\t\tNOT GOOD FOR PASSAGE
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</td>
\t\t\t<td>
\t\t\t\t<p style="text-align: center;"><span style="font-size: 7px;">
\t\t\t\t\tX/O
\t\t\t\t</p>
\t\t\t</td>

\t\t</tr>
\t\t<tr style="height:0.8cm;" >
\t\t\t<td>
\t\t\t\t<table width="100%" cellspacing="0" cellpadding="0">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="text-align: left;font-size: 6px;">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="text-align: left;font-size: 6px;">
\t\t\t\t\t\tPCS
\t\t\t\t\t\t<br/>
\t\t\t\t\t\tتعداد
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="text-align: right;font-size: 6px;">
\t\t\t\t\t\tوزن
\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\tWT
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="text-align: left;font-size: 6px;">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</td>
\t\t\t<td style="text-align: center;"><b>{$allow0}</b></td>
\t\t\t<td>&nbsp;</td>
\t\t\t<td>&nbsp;</td>
\t\t\t<td>&nbsp;</td>
\t\t\t<td><b>OK</b></td>
\t\t\t<td><b>{$parvaz->saat}</b></td>
\t\t\t<td colspan="2">
\t\t\t\t<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<b>{$perdate}</b>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="border-right-style:solid;">
\t\t\t\t\t\t\t<b>{$endate}</b>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</td>
\t\t\t<td colspan="2">
\t\t\t\t<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<b>{$flight_class0}</b>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="border-right-style:solid;">
\t\t\t\t\t\t\t<b>{$parvaz->shomare}</b>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</td>
\t\t\t<td>
\t\t\t\t<b>{$sherkat0}</b>
\t\t\t</td>
\t\t\t<td >
\t\t\t\t<table style="text-align: center;width:100%;" >
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="direction:rtl;text-align:right;font-size: 6px;" >
\t\t\tاز:
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="direction:ltr;text-align:left;font-size: 6px;" >
\t\t\tfrom:
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan='2'>
\t\t\t\t\t\t\t<b>{$city0}</b>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>\t
\t\t\t</td>
\t\t\t<td>&nbsp;</td>
\t\t</tr>
\t\t<tr align="center" style="height:0.7cm;" >
\t\t\t<td>
\t\t\t\t<table width="100%" cellspacing="0" cellpadding="0">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="text-align: left;font-size: 6px;">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="text-align: left;font-size: 6px;">
\t\t\t\t\t\tPCS
\t\t\t\t\t\t<br/>
\t\t\t\t\t\tتعداد
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="text-align: right;font-size: 6px;">
\t\t\t\t\t\tوزن
\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\tWT
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="text-align: left;font-size: 6px;">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</td>
\t\t\t<td style="text-align: center;"><b>{$allow1}</b></td>
\t\t\t<td>&nbsp;</td>
\t\t\t<td>&nbsp;</td>
\t\t\t<td>&nbsp;</td>
\t\t\t<td><b>{$ok}</b></td>
\t\t\t<td><b>{$saat}</b></td>
\t\t\t<td colspan="2">
{$par2_dates}
\t\t\t</td>
\t\t\t<td colspan="2">
{$fl2}
\t\t\t</td>
\t\t\t<td><b>{$sherkat1}</b></td>
\t\t\t<td >
\t\t\t\t<table style="text-align: center;width:100%;" >
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="direction:rtl;text-align:right;font-size: 6px;" >
\t\t\tبه:
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="direction:ltr;text-align:left;font-size: 6px;" >
\t\t\tto:
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan='2'>
\t\t\t\t\t\t\t<b>{$city1}</b>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>\t
\t\t\t</td>
\t\t\t<td>&nbsp;</td>
\t\t</tr>
\t\t<tr style="height:0.8cm;" >
\t\t\t<td style="text-align: center;" colspan="8" rowspan="3">
\t\t\t\t{$barcode}
\t\t\t\t<?php
\t\t\t\t?>
\t\t\t</td>
\t\t\t<td colspan="4">
\t\t\t\t<table style="text-align: center;font-size: 6px;width:100%;height:100%;" >
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="direction:rtl;text-align:right;vertical-align:top;" >
\t\t\tکد گروه:
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="direction:ltr;text-align:left;vertical-align:top;" >
\t\t\tTOUR CODE:
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</td>
\t\t\t<td>
\t\t\t\t<table style="text-align: center;width:100%;" >
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="direction:rtl;text-align:right;font-size: 6px;" >
\t\t\tبه:
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="direction:ltr;text-align:left;font-size: 6px;" >
\t\t\tto:
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan='2'>
\t\t\t\t\t\t\t<b>{$city2}</b>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>\t
\t\t\t</td>
\t\t\t<td>
\t\t\t&nbsp;
\t\t\t</td>
\t\t</tr>
\t\t<tr>
\t\t\t<td colspan="4">
\t\t\t\t<table style="text-align: center;width:100%;height:100%;" >
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td style="direction:rtl;text-align:right;vertical-align:top;font-size: 5px;" >
\t\t\tطرز پرداخت:
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style="direction:ltr;text-align:left;vertical-align:top;font-size: 5px;" >
\t\t\tFORM OF PAYMENT:
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan="2" align="center">
\t\t\t\t\t\t\t<b>{$this->payment}</b>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</td>
\t\t\t<td>
\t\t\t\t{$this->fare}
\t\t\t</td>
\t\t\t<td>
\t\t\t&nbsp;
\t\t\t</td>
\t\t</tr>
\t\t<tr style="height:0.7cm;" >
\t\t<td colspan="5">
\t\t\t<table style="text-align: center;width:100%;" >
\t\t\t\t<tr>
\t\t\t\t\t<td style="direction:rtl;text-align:right;font-size: 5px;" >
\t\tرفرنس
\t\t\t\t\t</td>
\t\t\t\t\t<td style="direction:ltr;text-align:left;font-size: 5px;" >
\t\tSerial
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td width="50%">
\t\t\t\t\t{$this->refrenceText}
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t{$this->serialText}
                                        </td>
\t\t\t\t</tr>
\t\t\t</table>
\t\t</td>
\t\t<td>
\t\t\t&nbsp;
\t\t</td>
\t\t</tr>
\t\t</tbody>
\t\t</table>
et;
        return $out;
    }
Exemplo n.º 6
0
function loadMandeh($inp)
{
    $out = (int) $inp;
    if ($out == 0) {
        $out = "۰";
    }
    if ($out < 0) {
        $out = "بدهکار <br/>" . enToPerNums(monize(abs($out)));
    } else {
        if ($out > 0) {
            $out = "بستانکار <br/>" . enToPerNums(monize(abs($out)));
        }
    }
    return $out;
}
Exemplo n.º 7
0
                                        <td class="showgrid_row_td_reserve" readonly="readonly">{$poorsant}</td>
                                        <td class="showgrid_row_td_reserve" readonly="readonly">{$khal}</td>
                                </tr>
tmp1;
                }
                $radif = enToPerNums(perToEnNums($radif) + 1);
            }
        }
        if ($inf > 0) {
            $infants = <<<infa
\t\t\t\t<tr class="showgrid_row_even" >
\t\t\t\t\t<th colspan='8' class="showgrid_row_td_reserve_reserve" >نوزاد</th>
\t\t\t\t</tr>
infa;
            for ($i = 0; $i < $inf; $i++) {
                $khal = enToPerNums(monize(perToEnNums(umonize($inf_ghimat)) - perToEnNums(umonize($poorsant))));
                if ($ticket_type == 1) {
                    $infants .= <<<tmp2
\t\t\t\t<tr class="showgrid_row_odd">
\t\t\t\t\t<td class="showgrid_row_td_reserve" >{$radif}</td>
\t\t\t\t\t<td >نام و نام‌خانوادگی:</td>
\t\t\t\t\t<td  colspan='2'  class="showgrid_row_td_reserve" style='width:autp;text-align:right;' ><input type='text' name='inf_lname_{$i}' id='inf_lname_{$i}' class='inp'  style="width:400px;"/></td>
\t\t\t\t\t<td><select class='inp' name='inf_gender_{$i}' ><option value='1' >مذکر</option><option value='0' >مؤنث</option></select></td>
\t\t\t\t\t<td>جنسیت</td>
\t\t\t\t\t<td class="showgrid_row_td_reserve" >شماره تیکت</td>
                                        <td class="showgrid_row_td_reserve" ><input type='text' name='inf_shomare_{$i}' id='inf_shomare_{$i}' class='inp'  /></td>
\t\t\t\t\t<td class="showgrid_row_td_reserve" readonly="readonly">{$inf_ghimat}</td>
                                        <td class="showgrid_row_td_reserve" readonly="readonly">{$poorsant}</td>
                                        <td class="showgrid_row_td_reserve" readonly="readonly">{$khal}</td>
\t\t\t\t</tr>
tmp2;
Exemplo n.º 8
0
                <script type="text/javascript" src="../js/jalali.js"></script>
                <script type="text/javascript" src="../js/calendar.js"></script>
                <script type="text/javascript" src="../js/calendar-setup.js"></script>
                <script type="text/javascript" src="../js/lang/calendar-fa.js"></script>
                <title>
              سامانه مدیریت آژانس مسافرتی 
                </title>
        </head>
        <body>
                <div align="center">
                        <br/>
			<?php 
echo $combo;
echo "<br/>";
echo $outgrid;
?>
			<br/>
			<h2> جمع کل: <?php 
echo monize($jamkol);
?>
</h2>
			<script type="text/javascript">
				var jam=parseInt(document.getElementById('sum_mablagh').innerHTML,10);
				var sump=document.getElementById('sum_poorsant').innerHTML;
				document.getElementById('jam_m').innerHTML=FixNums(monize2(jam));
			//	document.getElementById('jam_p').innerHTML=sump;
			</script>
		</div>
	</body>
</html>
Exemplo n.º 9
0
function poorsant($inp)
{
    $conf = new conf();
    $par = new parvaz_det_class((int) $inp);
    $customer_id = $_SESSION[$conf->app . "_customer_id"];
    $cust = new customer_class($customer_id);
    $out = $cust->getPoorsant($inp) * $par->ghimat / 100;
    return enToPerNums(monize($out));
}
Exemplo n.º 10
0
function loadSale($inp)
{
    $inp = (int) $inp;
    $ticket = new ticket_class($inp);
    $parvaz_det = new parvaz_det_class($ticket->parvaz_det_id);
    $customer = new customer_class($parvaz_det->customer_id);
    $out = "مبلغ خرید " . monize($parvaz_det->mablagh_kharid) . " از " . ($customer->name == '' ? 'Unknown' : $customer->name);
    return $out;
}
Exemplo n.º 11
0
    	$grid->columnJavaScript[6] = "onkeyup=\"findOthers(this);\"";
    	$grid->canAdd = FALSE;
    	$grid->canEdit = TRUE;
    	$grid->pageCount = 200;
    	$grid->index_width = "30px";
    	$grid->echoQuery = FALSE;
    	$grid->editFunction="edit_item";
    	$grid->intial();
    	$grid->executeQuery();
    	$out = $grid->getGrid();
    */
    $out = '';
    $tm = new user_class($_SESSION[$conf->app . "_user_id"]);
    $tm = new customer_class($tm->customer_id);
    $c_typ = $tm->typ;
    $customer_info = (int) $c_typ == 3 ? '' : " اعتبار مالی : " . enToPerNums(monize($customer->max_amount)) . " ریال<br/> مهلت پرداخت : نامحدود";
    ?>
<!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>
    <title><?php 
    echo lang_fa_class::title;
    ?>
</title>
    <link type="text/css" href="../js/jquery/themes/trontastic/jquery-ui.css" rel="stylesheet" />
	<link type="text/css" href="../js/jquery/window/css/jquery.window.css" rel="stylesheet" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<link type="text/css" href="../css/style.css" rel="stylesheet" />