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

PHP jdate函数代码示例

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

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



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

示例1: file_get_contents

            $fname = $r['fname'];
            $lname = $r['lname'];
            $airline = $r['airline'];
            $flight_id = $r['flight_id'];
            $class = $r['class'];
            $from_str = $r['name'];
            $to_str = $r['name'];
            $iata_from = $r['from_city'];
            $iata_to = $r['to_city'];
            $tik = file_get_contents("ticket_template.html");
            $tik = str_replace("#voucher_id#", $voucher_id, $tik);
            $tik = str_replace("#ticket_number#", $ticket_number, $tik);
            $tik = str_replace("#PRICE#", $total_price, $tik);
            $tik = str_replace("#BASE_PRICE#", $base_price, $tik);
            $tik = str_replace("#TAX#", $tax, $tik);
            $tik = str_replace("#SYSTEM_NAME#", 'رزواسیون سفر', $tik);
            $tik = str_replace("#TICKET_DATE#", jdate('Y-m-d'), $tik);
            $tik = str_replace("#FNAME#", $lname, $tik);
            $tik = str_replace("#LNAME#", $lname, $tik);
            $tik = str_replace("#FROM_STR#", $from_str, $tik);
            $tik = str_replace("#TO_STR#", $to_str, $tik);
            $tik = str_replace("#GENDER#", $tickets[0]['gender'] == 1 ? 'Mr' : 'Ms', $tik);
        }
        $tik = str_replace("#flight_detail#", $qq, $tik);
        echo $tik . "<hr><span class='break'>";
    } else {
        echo "no data";
    }
} else {
    echo "db error";
}
开发者ID:jnaroogheh,项目名称:darvishi,代码行数:31,代码来源:system_ticket.php


示例2: persianDate

function persianDate($date)
{
    require_once LIB_DIR . DS . 'jdf.php';
    $timestamp = strtotime($date);
    $persianDate = jdate('Y/n/j', $timestamp);
    return $persianDate;
}
开发者ID:mshahmalaki,项目名称:tahlildadeh-shop,代码行数:7,代码来源:persianDate.php


示例3: loadParvazDets

function loadParvazDets()
{
    $out = array();
    $no = date("Y-m-d H:i:s");
    $my = new mysql_class();
    if (!isset($_REQUEST['parvaz_det_id'])) {
        return $out;
    }
    $parvaz_det_id = (int) $_REQUEST['parvaz_det_id'];
    $parvaz_det = new parvaz_det_class((int) $parvaz_det_id);
    $parvaz = new parvaz_class($parvaz_det->parvaz_id);
    $maghsad_id = $parvaz->maghsad_id;
    $mabda_id = $parvaz->mabda_id;
    $my->ex_sql("select `id` from `parvaz` where `mabda_id`='{$maghsad_id}' and `maghsad_id`='{$mabda_id}' group by `id`", $q);
    $ids = array();
    foreach ($q as $r) {
        $ids[] = $r['id'];
    }
    if (count($ids) > 0) {
        $q = array();
        $ids = implode(',', $ids);
        $my->ex_sql("select `id`,`parvaz_id`,`tarikh` from `parvaz_det` where `parvaz_id` in ({$ids}) and `tarikh`>='{$no}' order by `tarikh` ", $q);
        foreach ($q as $r) {
            $par = new parvaz_class((int) $r['parvaz_id']);
            $tarikh = jdate('j / n / Y', strtotime($r['tarikh']));
            $out[$r['id']] = 'پرواز شماره ' . $par->shomare . ' تاریخ ' . $tarikh;
        }
    }
    return $out;
}
开发者ID:hscomp2002,项目名称:superp,代码行数:30,代码来源:parvaz_detail.php


示例4: visiting

function visiting($pname, $db, $sitelang = 'fa')
{
    $date = jdate('F Y');
    $do = "p" . $pname;
    $query = mysql_query("SELECT date FROM visitbykk_" . $sitelang . " WHERE date='{$date}' ;", $db);
    if ($row = mysql_fetch_row($query)) {
        $query = mysql_query("SELECT " . $do . " FROM visitbykk_" . $sitelang . " WHERE date='{$date}' ;", $db);
        $row = mysql_fetch_row($query);
        $add = $row[0] + 1;
        $query = mysql_query("UPDATE visitbykk_" . $sitelang . " SET " . $do . " = '{$add}'  WHERE date='{$date}' ;", $db);
    } else {
        $query = mysql_query("SELECT id FROM visitbykk_" . $sitelang . " ORDER BY id DESC ;", $db);
        if ($rows = mysql_fetch_row($query)) {
            $vid = $rows[0] + 1;
        } else {
            $vid = 1000;
        }
        $sql = "INSERT INTO visitbykk_" . $sitelang . " ( id , date ) VALUES ('{$vid}' , '{$date}' );";
        $result = mysql_query($sql);
        $query = mysql_query("UPDATE visitbykk_" . $sitelang . " SET " . $do . " = '1'  WHERE date='{$date}' ", $db);
        //echo "bigh";
        if (!$query) {
            echo mysql_error();
        }
    }
}
开发者ID:kanbang,项目名称:kk-biomedical-website-template,代码行数:26,代码来源:pagenavigator.php


示例5: get

 public function get()
 {
     //        sleep(2);
     $this->load->library('jdf');
     $year = jdate("Y", time(), "", "Asia/Tehran", "en");
     $month = jdate("m", time(), "", "Asia/Tehran", "en");
     $day = jdate("d", time(), "", "Asia/Tehran", "en");
     $this->showItems($year, $month, $day);
 }
开发者ID:rezachess,项目名称:Planning,代码行数:9,代码来源:Item_controller.php


示例6: loadPDate

function loadPDate($dt)
{
    if ($dt != '0000-00-00 00:00:00') {
        $out = jdate("d / m / Y", strtotime($dt));
    } else {
        $out = '';
    }
    return $out;
}
开发者ID:hscomp2002,项目名称:superp,代码行数:9,代码来源:sales_moshtari_ticket.php


示例7: format

 public function format($str = 'Y-m-d H:i:s', $farsi = false)
 {
     global $_JDF_USE_PERSIANNUM;
     if ($farsi) {
         $_JDF_USE_PERSIANNUM = 1;
     }
     $str = jdate($str, $this->time);
     $_JDF_USE_PERSIANNUM = 0;
     return $str;
 }
开发者ID:redknight,项目名称:frot,代码行数:10,代码来源:Date.php


示例8: updateNotes

 public function updateNotes($note_id, $note_content)
 {
     include_once "jdf.php";
     $note_date = jdate('Y/n/j');
     $note_content = mysql_real_escape_string($note_content);
     $note_subject = $this->createSubject($note_content, 0, 15);
     $note_subject = mysql_real_escape_string($note_subject);
     $result = mysql_query("UPDATE `tbl_notes` SET `note_subject`='{$note_subject}', `note_date`='{$note_date}', `note_content`='{$note_content}' WHERE `id` = '{$note_id}'") or die(mysql_error());
     error_log("updateNotes >> result : " . $result . " >> at : " . $date_now . "\r\n", 3, "Log.log");
     return $result;
 }
开发者ID:rezakhn,项目名称:Nightly,代码行数:11,代码来源:db_functions.php


示例9: render

 /**
  * Render the Date field
  */
 public function render()
 {
     global $icmsConfigPersona;
     $ele_name = $this->getName();
     $ele_value = $this->getValue(false);
     $jstime = formatTimestamp($ele_value, _SHORTDATESTRING);
     include_once ICMS_ROOT_PATH . '/include/calendar' . ($icmsConfigPersona['use_jsjalali'] == true ? 'jalali' : '') . 'js.php';
     $result = "<input type='text' name='" . $ele_name . "' id='" . $ele_name . "' size='" . $this->getSize() . "' maxlength='" . $this->getMaxlength() . "' value='" . date(_SHORTDATESTRING, $ele_value) . "'" . $this->getExtra() . " />&nbsp;&nbsp;<img src='" . ICMS_URL . "/images/calendar.png' alt='" . _CALENDAR . "' title='" . _CALENDAR . "' onclick='return showCalendar(\"" . $ele_name . "\");'>";
     if ($icmsConfigPersona['use_jsjalali']) {
         include_once ICMS_ROOT_PATH . '/include/jalali.php';
         $result = "<input id='tmp_" . $ele_name . "' readonly='readonly' size='" . $this->getSize() . "' maxlength='" . $this->getMaxlength() . "' value='" . (_CALENDAR_TYPE == 'jalali' ? icms_conv_nr2local(jdate(_SHORTDATESTRING, $ele_value)) : date(_SHORTDATESTRING, $ele_value)) . "' /><input type='hidden' name='" . $ele_name . "' id='" . $ele_name . "' value='" . date(_SHORTDATESTRING, $ele_value) . "' " . $this->getExtra() . " />&nbsp;&nbsp;<img src='" . ICMS_URL . "/images/calendar.png' alt='" . _CALENDAR . "' title='" . _CALENDAR . "' id='btn_" . $ele_name . "'><script type='text/javascript'>\n\t\t\t\tCalendar.setup({\n\t\t\t\t\tinputField  : 'tmp_" . $ele_name . "',\n\t\t       \t\tifFormat    : '%Y-%m-%d',\n\t\t       \t\tbutton      : 'btn_" . $ele_name . "',\n        \t\t\tlangNumbers : true,\n        \t\t\tdateType\t: '" . _CALENDAR_TYPE . "',\n\t\t\t\t\tonUpdate\t: function(cal){document.getElementById('" . $ele_name . "').value = cal.date.print('%Y-%m-%d');}\n\t\t\t\t});\n\t\t\t</script>";
     }
     return $result;
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:17,代码来源:Date.php


示例10: __construct

 public function __construct($id = -1)
 {
     if ((int) $id > 0) {
         $mysql = new mysql_class();
         $mysql->ex_sql("select * from `user` where `id` = {$id}", $q);
         if (isset($q[0])) {
             $r = $q[0];
             foreach ($r as $k => $v) {
                 $this->{$k} = $v;
                 if ($k == "tarikh_tavalod") {
                     $ptarikh = $this->inc_model->perToEnNums(jdate("Y-m-d", strtotime($v)));
                     $tmp = explode("-", $ptarikh);
                     $this->sal = (int) $tmp[0];
                     $this->mah = (int) $tmp[1];
                     $this->rooz = (int) $tmp[2];
                 }
             }
         }
     }
 }
开发者ID:jnaroogheh,项目名称:darvishi,代码行数:20,代码来源:user_class.php


示例11: request_pay

 public function request_pay($total, $invoice_id)
 {
     $total = (int) $total;
     $invoice_id = (int) $invoice_id;
     if (!$total || !$invoice_id) {
         return array("error" => 'خطای فاکتور و مبلغ');
     }
     $orderId = $invoice_id;
     $amount = $total;
     $callBackUrl = get_pay_result_link("melat", $orderId);
     $parameters = array('terminalId' => $this->terminalId, 'userName' => $this->userName, 'userPassword' => $this->userPassword, 'orderId' => $orderId, 'amount' => $amount, 'localDate' => jdate('Ymd'), 'localTime' => jdate('His'), 'additionalData' => '', 'callBackUrl' => $callBackUrl, 'payerId' => 0);
     $client = new NuSOAP_Client('https://bpm.shaparak.ir/pgwchannel/services/pgw?wsdl');
     if ($err = $client->getError() || $client->fault) {
         $json = array();
         $json['error'] = "متاسفانه سامانه بانک ملت در حال به روزرسانی است. " . $err;
         return $json;
     }
     $res = $client->call('bpPayRequest', $parameters, $this->namespace);
     if (!$res) {
         $json = array();
         $json['error'] = "متاسفانه سامانه بانک ملت در حال به روزرسانی است. ";
         $json['error2'] = $client->getError();
         return $json;
     }
     $res = explode(",", $res);
     if (sizeof($res) == 1 || $res[0] != 0) {
         $json = array();
         $json['error'] = "خطا شماره " . $res[0];
         return $json;
     }
     $json = array();
     $json['success'] = 1;
     $json['RefId'] = $res[1];
     $this->session->set_userdata(array("melat_refId" => $res[1]));
     return $json;
 }
开发者ID:NaszvadiG,项目名称:BurgeCMF,代码行数:36,代码来源:Melat_model.php


示例12: formatTimestamp


//.........这里部分代码省略.........
            $datestring = 'h';
            break;
        case 'H':
            $datestring = 'H';
            break;
        case 'gg':
            $datestring = 'g';
            break;
        case 'G':
            $datestring = 'G';
            break;
        case 'i':
            $datestring = 'i';
            break;
        case 'j':
            $datestring = 'j';
            break;
        case 'l':
            $datestring = _DATESTRING;
            break;
        case 'm':
            $datestring = _MEDIUMDATESTRING;
            break;
        case 'monthnr':
            $datestring = 'm';
            break;
        case 'mysql':
            $datestring = 'Y-m-d H:i:s';
            break;
        case 'month':
            $datestring = 'M';
            break;
        case 'n':
            $datestring = 'n';
            break;
        case 's':
            $datestring = _SHORTDATESTRING;
            break;
        case 'seconds':
            $datestring = 's';
            break;
        case 'suffix':
            $datestring = 'S';
            break;
        case 't':
            $datestring = 't';
            break;
        case 'w':
            $datestring = 'w';
            break;
        case 'shortyear':
            $datestring = 'y';
            break;
        case 'Y':
            $datestring = 'Y';
            break;
        case 'c':
        case 'custom':
            static $current_timestamp, $today_timestamp, $monthy_timestamp;
            if (!isset($current_timestamp)) {
                $current_timestamp = xoops_getUserTimestamp(time(), $timeoffset);
            }
            if (!isset($today_timestamp)) {
                $today_timestamp = mktime(0, 0, 0, date("m", $current_timestamp), date("d", $current_timestamp), date("Y", $current_timestamp));
            }
            if (abs($elapse_today = $usertimestamp - $today_timestamp) < 24 * 60 * 60) {
                $datestring = $elapse_today > 0 ? _TODAY : _YESTERDAY;
            } else {
                if (!isset($monthy_timestamp)) {
                    $monthy_timestamp[0] = mktime(0, 0, 0, 0, 0, date("Y", $current_timestamp));
                    $monthy_timestamp[1] = mktime(0, 0, 0, 0, 0, date("Y", $current_timestamp) + 1);
                }
                if ($usertimestamp >= $monthy_timestamp[0] && $usertimestamp < $monthy_timestamp[1]) {
                    $datestring = _MONTHDAY;
                } else {
                    $datestring = _YEARMONTHDAY;
                }
            }
            break;
        default:
            if ($format != '') {
                $datestring = $format_copy;
            } else {
                $datestring = _DATESTRING;
            }
            break;
    }
    $basecheck = $icmsConfig['use_ext_date'] == true && defined('_CALENDAR_TYPE') && $format != 'mysql';
    if ($basecheck && file_exists(ICMS_ROOT_PATH . '/language/' . $icmsConfig['language'] . '/local.date.php')) {
        include_once ICMS_ROOT_PATH . '/language/' . $icmsConfig['language'] . '/local.date.php';
        return ucfirst(local_date($datestring, $usertimestamp));
    } elseif ($basecheck && _CALENDAR_TYPE != "jalali" && $icmsConfig['language'] != 'english') {
        return ucfirst(icms_conv_nr2local(ext_date(date($datestring, $usertimestamp))));
    } elseif ($basecheck && _CALENDAR_TYPE == "jalali") {
        include_once 'jalali.php';
        return ucfirst(icms_conv_nr2local(jdate($datestring, $usertimestamp)));
    } else {
        return ucfirst(date($datestring, $usertimestamp));
    }
}
开发者ID:nao-pon,项目名称:impresscms,代码行数:101,代码来源:functions.php


示例13: redirect

$adl = (int) $_SESSION['adl'];
$chd = (int) $_SESSION['chd'];
$inf = (int) $_SESSION['inf'];
$price = $_SESSION['price'];
$flight_info2 = NULL;
$rookeshi2 = 0;
$days = '';
$months = '';
$years = '';
for ($i = 1; $i <= 31; $i++) {
    $days .= "<option values='{$i}'>{$i}</option>";
}
for ($i = 1; $i <= 12; $i++) {
    $months .= "<option values='{$i}'>{$i}</option>";
}
$pyear = (int) $this->inc_model->perToEnNums(jdate("Y"));
for ($i = 1300; $i <= $pyear; $i++) {
    $years .= "<option values='{$i}'>{$i}</option>";
}
$flight_info = json_decode($data);
//var_dump($flight_info);exit;
$rookeshi = rookeshi_class::get($flight_info->source_id);
if (isset($_SESSION['data2'])) {
    $data2 = $_SESSION['data2'];
    $flight_info2 = json_decode($data2);
    $rookeshi2 = rookeshi_class::get($flight_info2->source_id);
}
if (!isset($_SESSION['state'])) {
    redirect("");
} else {
    if ((int) $_SESSION['state'] == 2) {
开发者ID:jnaroogheh,项目名称:darvishi,代码行数:31,代码来源:reserve1.php


示例14: formatDate

 /**
  * Format input date string
  * @param  $time int same as returned from PHP time()
  * @return string formatted date according to saved options
  */
 public function formatDate($time)
 {
     // This method gets executed in a loop. Cache some variable to avoid
     // repeated get_option calls to the database
     if (CF7DBPlugin::$checkForCustomDateFormat) {
         if ($this->getOption('UseCustomDateTimeFormat', 'true') == 'true') {
             CF7DBPlugin::$customDateFormat = $this->getOption('SubmitDateTimeFormat', 'Y-m-d H:i:s P');
         } else {
             CF7DBPlugin::$dateFormat = get_option('date_format');
             CF7DBPlugin::$timeFormat = get_option('time_format');
         }
         // Convert time to local timezone
         date_default_timezone_set(get_option('timezone_string'));
         CF7DBPlugin::$checkForCustomDateFormat = false;
     }
     // Support Jalali dates but looking for wp-jalali plugin and
     // using its 'jdate' function
     if (!function_exists('is_plugin_active') && @file_exists(ABSPATH . 'wp-admin/includes/plugin.php')) {
         include_once ABSPATH . 'wp-admin/includes/plugin.php';
     }
     if (function_exists('is_plugin_active') && is_plugin_active('wp-jalali/wp-jalali.php')) {
         $jDateFile = WP_PLUGIN_DIR . '/wp-jalali/inc/jalali-core.php';
         if (@file_exists($jDateFile)) {
             include_once $jDateFile;
             if (function_exists('jdate')) {
                 //return jdate('l, F j, Y');
                 if (CF7DBPlugin::$customDateFormat) {
                     return jdate(CF7DBPlugin::$customDateFormat, $time);
                 } else {
                     return jdate(CF7DBPlugin::$dateFormat . ' ' . CF7DBPlugin::$timeFormat, $time);
                 }
             }
         }
     }
     if (CF7DBPlugin::$customDateFormat) {
         return date(CF7DBPlugin::$customDateFormat, $time);
     } else {
         return date_i18n(CF7DBPlugin::$dateFormat . ' ' . CF7DBPlugin::$timeFormat, $time);
     }
 }
开发者ID:rconnelly,项目名称:vacationware,代码行数:45,代码来源:CF7DBPlugin.php


示例15: jdate

@section('content')

	<div class="row">
		<div class="col-md-8">

			<!-- Shopping History -->
			<div class="panel panel-default table-responsive">
				<div class="panel-heading hidden-xs text-center">وضعیت سفارش ها
					<i class="fa fa-trash pull-left"></i>
				</div>
				<div class="list-group">
					@if( $user->orders->count() > 0 )
						@foreach( $user->orders as $order )
							<?php 
$mydate = jdate()->forge($order->created_at);
?>

							@if( $order->status === 0 )
								<a href="{{ route('order.destroy', ['order' => $order->id]) }}" class="btn btn-default btn-delOrder">
									<i class="fa fa-remove fa-fw"></i>
								</a>
								<a href="{{ route('order.show', ['order' => $order->id]) }}" style="padding-right:30px;" class="list-group-item {{ 'd-' . $order->id }}">
									در حال بررسی. تاریخ ثبت : {{ $mydate->ago() }}
									<span class="badge hidden-xs">{{ number_format($order->sum) . ' ريال' }}</span>
								</a>
							@elseif( $order->status === 1 )
								<a href="{{ route('order.show', ['order' => $order->id]) }}" class="list-group-item list-group-item-success">
									سفارش شما در تاریخ {{ $mydate->format('%d %B %Y') }}، ساعت {{ $mydate->format('time') }} ارسال شد.
									<span class="badge hidden-xs">{{ number_format($order->sum) . ' ريال' }}</span>
								</a>
开发者ID:majid-n,项目名称:printkala,代码行数:30,代码来源:savecart.blade.php


示例16: formatDate

 /**
  * Format input date string
  * @param  $time int same as returned from PHP time()
  * @return string formatted date according to saved options
  */
 public function formatDate($time)
 {
     // This method gets executed in a loop. Cache some variable to avoid
     // repeated get_option calls to the database
     if (CF7DBPlugin::$checkForCustomDateFormat) {
         if ($this->getOption('UseCustomDateTimeFormat', 'true') == 'true') {
             CF7DBPlugin::$customDateFormat = $this->getOption('SubmitDateTimeFormat', 'Y-m-d H:i:s P');
         } else {
             CF7DBPlugin::$dateFormat = get_option('date_format');
             CF7DBPlugin::$timeFormat = get_option('time_format');
         }
         $this->setTimezone();
         CF7DBPlugin::$checkForCustomDateFormat = false;
     }
     // Support Shamsi(Jalali) dates by looking for a plugin that can produce the correct text for the date
     if (!function_exists('is_plugin_active') && @file_exists(ABSPATH . 'wp-admin/includes/plugin.php')) {
         include_once ABSPATH . 'wp-admin/includes/plugin.php';
     }
     if (function_exists('is_plugin_active')) {
         // See if wp-parsidate is active and if so, have it convert the date
         // using its 'parsidate' function
         if (is_plugin_active('wp-parsidate/wp-parsidate.php')) {
             if (function_exists('parsidate')) {
                 if (CF7DBPlugin::$customDateFormat) {
                     return parsidate(CF7DBPlugin::$customDateFormat, $time);
                 } else {
                     return parsidate(CF7DBPlugin::$dateFormat . ' ' . CF7DBPlugin::$timeFormat, $time);
                 }
             }
         } else {
             if (is_plugin_active('wp-jalali/wp-jalali.php')) {
                 $jDateFile = WP_PLUGIN_DIR . '/wp-jalali/inc/jalali-core.php';
                 if (@file_exists($jDateFile)) {
                     include_once $jDateFile;
                     if (function_exists('jdate')) {
                         //return jdate('l, F j, Y');
                         if (CF7DBPlugin::$customDateFormat) {
                             return jdate(CF7DBPlugin::$customDateFormat, $time);
                         } else {
                             return jdate(CF7DBPlugin::$dateFormat . ' ' . CF7DBPlugin::$timeFormat, $time);
                         }
                     }
                 }
             }
         }
     }
     if (CF7DBPlugin::$customDateFormat) {
         return date(CF7DBPlugin::$customDateFormat, $time);
     } else {
         return date_i18n(CF7DBPlugin::$dateFormat . ' ' . CF7DBPlugin::$timeFormat, $time);
     }
 }
开发者ID:xeko,项目名称:changan-techshow,代码行数:57,代码来源:CF7DBPlugin.php


示例17: array

    $newDrill = array("name" => $name, "id" => $name, "data" => array());
    foreach ($drills as $taskName => $studied) {
        $newDrill["data"][] = array($taskName, floatval($studied));
    }
    return $newDrill;
}
for ($i = 0; $i < $numberOfDays; $i++) {
    $index = jdate("m/d", $minStart + 86400 * $i);
    $result[$index]["name"] = $index;
    $result[$index]["y"] = 0;
    if (hasDrilldown($type)) {
        $result[$index]["drilldown"] = $index;
        $result[$index]["drills"] = array();
    }
}
for ($i = 0; $i < count($items); $i++) {
    $result[jdate("m/d", $items[$i]["start"])]["y"] += $items[$i]["length"] / (60 * 60);
    if (hasDrilldown($type)) {
        if (!isset($result[jdate("m/d", $items[$i]["start"])]["drills"][$items[$i]["task_name"]])) {
            $result[jdate("m/d", $items[$i]["start"])]["drills"][$items[$i]["task_name"]] = 0;
        }
        $result[jdate("m/d", $items[$i]["start"])]["drills"][$items[$i]["task_name"]] += $items[$i]["length"] / (60 * 60);
    }
}
if (hasDrilldown($type)) {
    foreach ($result as $key => $value) {
        $newDrill = makeNewDrilldown($key, $value["drills"]);
        $drillDownSeries[] = $newDrill;
    }
}
echo json_encode(array("xAxis" => array("type" => 'category'), "series" => array(array("data" => array_values($result))), "drilldown" => array("series" => $drillDownSeries), "tooltip" => array("pointFormat" => '<span style="color:{point.color}" dir="rtl" class="myFont"><p class="myFont">{point.y:.1f} ساعت</p></span>'), "legend" => array("enabled" => false)));
开发者ID:rezachess,项目名称:Planning,代码行数:31,代码来源:study.php


示例18: explode

                    </div>
                </div>
                <div class="data-row hotel-name two-cols">
                    <div class="title">تاریخ ورود</div>
                    <div class="value text-center first-value">
                        <?php 
    $arr = explode('-', $invoce_data['date_in']);
    echo jdate('l', $invoce_data['date_in']) . '  ';
    echo gregorian_to_jalali($arr[0], $arr[1], $arr[2], '/');
    ?>
                    </div>
                    <div class="title">تاریخ خروج</div>
                    <div class="value text-center">
                        <?php 
    $arr = explode('-', $invoce_data['date_out']);
    echo jdate('l', $invoce_data['date_out']) . '  ';
    echo gregorian_to_jalali($arr[0], $arr[1], $arr[2], '/');
    ?>
                    </div>
                </div>
                <div class="data-row description">
                    <div class="title">توضیحات</div>
                    <div class="value">
                        <?php 
    echo '';
    ?>
                    </div>
                </div>
                <?php 
}
?>
开发者ID:jnaroogheh,项目名称:darvishi,代码行数:31,代码来源:receipt.php


示例19: jdate

@extends('app')

@section('content')
<div class="row">
    &nbsp;
</div>
<div class="col-md-3">
    <?php 
include 'js/date_time.php';
$day_number = jdate('j');
$month_number = jdate('n');
$year_number = jdate('y');
$day_name = jdate('l');
?>
    <div style="margin:0px auto; width:400px;padding:5px;border:1px solid #ccc;background:#FFF9F9;">
        <div style="text-align:center; direction:rtl; font:bold 15px/22px tahoma; direction:rtl; color:#093;"><?php 
echo " امروز {$day_name} ۱۳{$year_number}/{$month_number}/{$day_number}";
?>
</div><br />
    </div>
    <div class="row">
    &nbsp;
    </div>
    @for ($i=0;$i<7;$i++)
<div class="panel panel-default">
    <div class="panel-heading">
        <div class="panel-title">fdsfdsf</div>
        <div class="panel-body">
            fsdfsdfdsf
        </div>
    </div>
开发者ID:alojavad,项目名称:gg,代码行数:31,代码来源:shownews.blade.php


示例20: hamed_pdate

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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP jddayofweek函数代码示例发布时间:2022-05-15
下一篇:
PHP jd_draw_template函数代码示例发布时间: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