• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP enToPerNums函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中enToPerNums函数的典型用法代码示例。如果您正苦于以下问题:PHP enToPerNums函数的具体用法?PHP enToPerNums怎么用?PHP enToPerNums使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了enToPerNums函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: loadTime

function loadTime()
{
    //Server Version
    $ttt = time() + 8 * 60 * 60 + 30 * 60;
    //Local Version
    //$ttt = time();
    return enToPerNums(date("h:i", $tt));
}
开发者ID:hscomp2002,项目名称:superp,代码行数:8,代码来源:inc.php


示例2: loadTozihat

function loadTozihat($sanad_record_id)
{
    $out = '----';
    $mysql = new mysql_class();
    $mysql->ex_sql("select * from `ticket` where `sanad_record_id` = {$sanad_record_id} ", $q);
    foreach ($q as $i => $r) {
        $customer_id = (int) $r["customer_id"];
        $par = new parvaz_det_class($r['parvaz_det_id']);
        if ($i == 0) {
            $out = '<div class=".lessBlock" style="cursor:pointer;" onclick="toggleMore(this);">مسافر: <b>' . $r['fname'] . ' ' . $r['lname'] . '</b> پرواز: <b>' . enToPerNums($par->shomare) . '</b> تاریخ: <b>' . loadPDate($par->tarikh) . '</b></div><div class=".moreBlock" style="display:none;">';
        } else {
            $out .= $r['fname'] . ' ' . $r['lname'] . "<br/>\n";
        }
    }
    if ($out != '----') {
        $out .= "</div>";
    }
    return $out;
}
开发者ID:hscomp2002,项目名称:superp,代码行数:19,代码来源:sales_moshtari_ticket.php


示例3: hamed_pdate

function hamed_pdate($str)
{
    $out = jdate('Y/n/j', strtotime($str));
    return enToPerNums($out);
}
开发者ID:hscomp2002,项目名称:superp,代码行数:5,代码来源:setpoorsant.php


示例4: hamed_pdate

function hamed_pdate($str)
{
    $out = jdate('H:i:s d / m / Y ', strtotime($str));
    $out .= "<br/>" . date('F d', strtotime($str));
    return enToPerNums($out);
}
开发者ID:hscomp2002,项目名称:superp,代码行数:6,代码来源:manifest.php


示例5: loadCustomerZakhire

 function loadCustomerZakhire($inp)
 {
     //$out = "ذخیره $inp";
     $inp = (int) $inp;
     $parvaz_det = new parvaz_det_class($inp);
     $zakhire = enToPerNums($parvaz_det->zarfiat - $parvaz_det->getZarfiat());
     $out = "<u><span style=\"color:blue;cursor:pointer;\" onclick=\"wopen('zakhire.php?parvaz_det_id={$inp}&','',600,400);\">{$zakhire}</span></u>";
     return $out;
 }
开发者ID:hscomp2002,项目名称:superp,代码行数:9,代码来源:index1.php


示例6: hamed_pdate1

function hamed_pdate1($str)
{
    $out = enToPerNums(jdate('d / m / Y', strtotime($str)));
    $out .= "<br/>" . date('F d', strtotime($str));
    return $out;
}
开发者ID:hscomp2002,项目名称:superp,代码行数:6,代码来源:eticket_moghim.php


示例7: loadTozihat

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;
}
开发者ID:hscomp2002,项目名称:superp,代码行数:31,代码来源:report1.old.php


示例8: poorsant

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));
}
开发者ID:hscomp2002,项目名称:superp,代码行数:9,代码来源:checkflight.php


示例9: enToPerNums

\t\t\t\t</tr>
tmp2;
                } else {
                    $infants .= <<<tmp2
                                <tr class="showgrid_row_odd">
                                        <td class="showgrid_row_td_reserve" >{$radif}</td>
                                        <td>نام و نام‌خانوادگی:</td>
                                        <td  colspan='2'  class="showgrid_row_td_reserve" style='width:auto;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 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>
                                </tr>
tmp2;
                }
                $radif = enToPerNums(perToEnNums($radif) + 1);
            }
        }
        $out = <<<OOUT
\t<span style="color:firebrick;font-size:15px;" >
\t\tدقت فرمایید رزرو موقت شما تنها ۵ دقیقه معتبر است
\t</span>
\t\t<input id="tim" style="color:#000000;width:70px;font-size:25px;" readonly="readonly" value="5:0" />
\t\t<script>
\t\t\tvar t = setTimeout("dec();",1000);
\t\t\tfunction dec()
\t\t\t{
\t\t\t\tvar tim = document.getElementById('tim');
\t\t\t\tvar noe = tim.value;
\t\t\t\tvar tmp = noe.split(':');
\t\t\t\tvar m = parseInt(tmp[0],10);
开发者ID:hscomp2002,项目名称:superp,代码行数:31,代码来源:back_checkflight.habibi.php


示例10: saat

function saat($inp)
{
    $inp = enToPerNums(substr($inp, 0, -3));
    return $inp;
}
开发者ID:hscomp2002,项目名称:superp,代码行数:5,代码来源:home.php


示例11: ticket_class

    $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;
}
function loadShomare($inp)
{
    $inp = (int) $inp;
    $ticket = new ticket_class($inp);
    return $ticket->shomare;
}
$today = date("Y-m-d");
$befortomarrow = date("Y-m-d", strtotime($today . " - 1 month"));
$saztarikh = isset($_REQUEST["saztarikh"]) ? hamed_pdateBack(enToPerNums($_REQUEST["saztarikh"])) : $befortomarrow;
$statarikh = isset($_REQUEST["statarikh"]) ? hamed_pdateBack(enToPerNums($_REQUEST["statarikh"])) : $today;
$wer = " `regtime` >= '{$saztarikh} 00:00:00' and `regtime` <='{$statarikh} 23:59:59' ";
$customer_id = isset($_REQUEST['customer_id']) ? $_REQUEST["customer_id"] : -1;
if (isset($_REQUEST['sanad_record_id']) && $_REQUEST['sanad_record_id'] != "") {
    $sanad_record_id = (int) $_REQUEST['sanad_record_id'];
    $wer = " `sanad_record_id`='{$sanad_record_id}'";
}
//if(!($customer_id==2 && $_SESSION[conf::app."_typ"]==0))
if ($customer_id > 0) {
    $wer .= " and `customer_id`='{$customer_id}'";
} else {
    if ($customer_id == -2) {
        $wer .= " and 1=1";
    } else {
        $wer .= " and 1=0";
    }
开发者ID:hscomp2002,项目名称:superp,代码行数:31,代码来源:report2.php


示例12: saat

function saat($inp)
{
    $inp = substr($inp, 0, -3);
    return enToPerNums($inp);
}
开发者ID:hscomp2002,项目名称:superp,代码行数:5,代码来源:home.origin.php


示例13: poorsant1

 function poorsant1($inp)
 {
     $customer_id = $_SESSION["customer_id"];
     $cust = new customer_class($customer_id);
     $out = enToPerNums($cust->getPoorsant($inp));
     return $out . "%";
 }
开发者ID:hscomp2002,项目名称:superp,代码行数:7,代码来源:index_false.php



注:本文中的enToPerNums函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP enableExtension函数代码示例发布时间:2022-05-15
下一篇:
PHP enString函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap