本文整理汇总了PHP中monthtostr函数的典型用法代码示例。如果您正苦于以下问题:PHP monthtostr函数的具体用法?PHP monthtostr怎么用?PHP monthtostr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了monthtostr函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
/**
* Инициализация тизера.
*
* @global array $js_file
*
* @param array $options [kind, uid]
*/
public function init($options = array())
{
global $js_file;
$js_file[] = 'tservices/tservices_binds.js';
if ($options) {
$this->kind = (int) $options['kind'];
$this->uid = (int) $options['uid'];
}
$time_to = time() + 7 * 86400;
$use_bind_popup = false;
$tu_bind_teaser = array('date' => date('j', $time_to) . ' ' . monthtostr(date('n', $time_to), true), 'href' => 'javascript:void(0);');
$tservices_binds = new tservices_binds($this->kind);
$tservices_class = new tservices($this->uid);
$profs = array();
if ($this->kind == tservices_binds::KIND_SPEC) {
$profs[] = $this->prof_id;
} elseif ($this->kind == tservices_binds::KIND_GROUP) {
$tservices_categories = new tservices_categories();
$categories = $tservices_categories->getCategoriesByParent($this->prof_id);
foreach ($categories as $category) {
$profs[] = $category['id'];
}
}
if ($countBindedTu = $tservices_binds->countBindedTu($this->uid, (int) $this->prof_id)) {
$binded_text = ending($countBindedTu, 'ваша услуга', 'ваши услуги', 'ваших услуг');
$tu_bind_teaser['subtitle'] = $countBindedTu . ' ' . $binded_text . ' уже <br>закреплен' . ($countBindedTu > 1 ? 'ы' : 'а') . ' в этом разделе';
if ($tservices_class->hasUnbindedTservices($this->kind, $this->uid, $profs)) {
$use_bind_popup = true;
$tu_bind_teaser['title'] = 'Закрепите еще одну услугу';
$tu_bind_teaser['btn_text'] = 'Закрепить';
} else {
$tu_bind_teaser['title'] = 'Добавьте еще одну услугу<br>и закрепите ее здесь';
$tu_bind_teaser['href'] = '/users/' . $_SESSION['login'] . '/tu/new/';
$tu_bind_teaser['btn_text'] = 'Добавить';
}
} else {
if ($tservices_class->hasUserTservice(true, $profs)) {
$use_bind_popup = true;
$tu_bind_teaser['title'] = 'Закрепите здесь услугу';
$tu_bind_teaser['btn_text'] = 'Закрепить';
} else {
$tu_bind_teaser['title'] = 'Добавьте свою услугу<br>и закрепите ее здесь';
$tu_bind_teaser['href'] = '/users/' . $_SESSION['login'] . '/tu/new/';
$tu_bind_teaser['btn_text'] = 'Добавить';
}
}
if ($use_bind_popup) {
quickPaymentPopupTservicebind::getInstance()->init(array('uid' => $this->uid, 'kind' => $this->kind, 'prof_id' => $this->prof_id));
$tu_bind_teaser['popup_id'] = quickPaymentPopupTservicebind::getInstance()->getPopupId(0);
$tu_bind_teaser['popup'] = quickPaymentPopupTservicebind::getInstance()->render();
}
$this->data = $tu_bind_teaser;
$this->data['price'] = $tservices_binds->getPrice(false, $this->uid, $this->prof_id);
$this->data['main_div_class'] = $this->kind == tservices_binds::KIND_LANDING ? 'b-layout__tu-cols b-layout__tu-cols_height_330' : 'i-pic i-pic_port i-pic_width_225 i-pic_margbot_30';
}
示例2: init
/**
* Инициализация тизера.
*
* @global array $js_file
*
* @param array $options [kind, uid]
*/
public function init($options = array())
{
if ($options) {
$this->kind = (int) $options['kind'];
$this->uid = (int) $options['uid'];
}
$this->data = array();
$tservices_binds = new tservices_binds($this->kind);
$this->data['bind_up_price'] = $tservices_binds->getPrice(true, $this->uid);
$this->data['date_stop'] = dateFormat('j', $this->date_stop) . ' ' . monthtostr(dateFormat('m', $this->date_stop), true);
$this->data['allow_up'] = $this->allow_up;
$this->data['tservice_id'] = $this->tservice_id;
}
示例3: isset
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stdf.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/num_to_word.php';
//require_once($_SERVER['DOCUMENT_ROOT'] . '/classes/odt2pdf.php');
require_once 'ActOdt2Pdf.php';
if (!empty($issues)) {
$total_hours = isset($_GET['h']) ? intval($_GET['h']) : DEFAULT_TOTAL_HOURS;
$per_hour = isset($_GET['p']) ? intval($_GET['p']) : DEFAULT_PER_HOUR;
$total_price = $per_hour * $total_hours;
$total_price_format = number_format($total_price, 2, ',', '');
$total_price_parts = explode(',', $total_price_format);
$act_date = '«' . date('j', $date_to_time) . '» ' . monthtostr(date('n', $date_to_time), true) . ' ' . date('Y', $date_to_time);
$affix_date_time = $date_from_time;
//strtotime('+ 1 day', $date_to_time);
$affix_date = '«' . date('j', $affix_date_time) . '» ' . monthtostr(date('n', $affix_date_time), true) . ' ' . date('Y', $affix_date_time);
$date_dog_time = strtotime(DATE_DOG);
$date_dog = date('j', $date_dog_time) . ' ' . monthtostr(date('n', $date_dog_time), true) . ' ' . date('Y', $date_dog_time);
//Подстановка для акта
$act_val = array('$date_dog' => $date_dog, '$date_dog2' => DATE_DOG, '$worker_addr' => WORKER_ADDR_TXT, '$worker_fio' => WORKER_FIO_TXT, '$worker_bank' => WORKER_BANK_TXT, '$worker_sign' => WORKER_SIGN_TXT, '$num' => ACT_NUM, '$act_date' => $act_date, '$affix_num' => AFX_NUM, '$date_from' => $date_from, '$date_to' => $date_to, '$per_hour' => $per_hour . ' руб. 00 коп', '$total_hours' => $total_hours, '$total_price' => $total_price_format, '$total_price2' => $total_price_parts[0], '$total_price3' => $total_price_parts[1], '$total_price_txt' => trim(str_replace(array('рублей', 'рубля', ' Российской Федерации', '00 копеек'), array('', '', '', ''), num2str($total_price_parts[0]))));
//Подстановка для приложения
$act_affix = array('$num' => AFX_NUM, '$date_dog' => $date_dog, '$date_from' => $date_from, '$date_to' => $date_to, '$act_date' => $affix_date, '$worker_addr' => WORKER_ADDR_TXT, '$worker_fio' => WORKER_FIO_TXT, '$worker_bank' => WORKER_BANK_TXT, '$worker_sign' => WORKER_SIGN_TXT, '$services' => '');
$cnt = count($issues);
$h = $total_hours / $cnt;
$ah = round($h);
$lh = $total_hours - $ah * ($cnt - 1);
foreach ($issues as $key => $issue) {
$idx = $key + 1;
$summary = iconv('UTF-8', 'WINDOWS-1251', $issue->summary);
$act_val['$service' . $idx] = "#{$issue->id} {$summary}";
$act_affix['$services'] .= $act_val['$service' . $idx] . ($idx < $cnt ? PHP_EOL . PHP_EOL : '');
$hours = $key < $cnt - 1 ? $ah : $lh;
$act_val['$hours' . $idx] = $hours;
示例4: str_ago_pub
if ($pn > $pj + 1) {
?>
<div style="height:1px; background:#d7d7d7; width:920px; margin:5px 0;"></div><?php
}
} else {
?>
<table cellpadding="4" cellspacing="0" border="0"><tr valign="top"><td style="padding-left: 10px;" width="510px">
<div class="fl2_date">
<div class="fl2_date_day">
<?php
echo str_ago_pub(strtotimeEx($prj['post_date']));
?>
</div>
<div class="fl2_date_date">
<?php
echo strftime("%d ", strtotimeEx($prj['post_date'])) . monthtostr(strftime("%m", strtotimeEx($prj['post_date']))) . strftime(", %A", strtotimeEx($prj['post_date']));
?>
</div>
<div class="clear"></div>
</div>
<div class="fl2_offer"><?php
if ($prj['cost']) {
?>
<div class="fl2_offer_budget">Бюджет: <?php
echo CurToChar($prj['cost'], $prj['currency']);
?>
</div><?php
}
?>
<div class="fl2_offer_header"> <?php
if ($prj['ico_closed'] == 't') {
示例5: LocalDateTime
</div>
<?php
}
?>
<?php
if ($stage->status == sbr_stages::STATUS_COMPLETED && !$stage->data['frl_feedback_id'] && $stage->sbr->scheme_type == sbr::SCHEME_LC) {
// $completed_time -- время завершения сделки берется из файла tpl.stage-history-event.php -- чтобы лишний раз не выбирать его
$cdate = new LocalDateTime($completed_time);
$cdate->getWorkForDay(pskb::PERIOD_FRL_EXEC);
$pskb_created = $cdate->getTimestamp();
$overtime_completed = strtotime($completed_time . ' + ' . pskb::PERIOD_FRL_EXEC . 'day');
?>
<div class="b-fon b-fon_width_full">
<div class="b-fon__body b-fon__body_pad_10 b-fon__body_padleft_30 b-fon__body_fontsize_13 b-fon__body_bg_f0ffdf">
<span class="b-icon b-icon_sbr_gattent b-icon_margleft_-20"></span>
Чтобы получить заработанные деньги, вам необходимо нажать кнопку «Завершить этап» до <?php
echo date('d', $overtime_completed);
?>
<?php
echo monthtostr(date('n', $overtime_completed), true);
?>
<?php
echo date('Y', $overtime_completed);
?>
.
</div>
</div>
<?php
}
//if
示例6: date
<TD><BR>40702810787880000803</TD></TR>
<TR>
<TD rowSpan=2>Банк получателя<BR>в Московский филиал ОАО АКБ «РОСБАНК» г. Москва
</TD>
<TD align=middle>БИК</TD>
<TD rowSpan=2>044583272<BR>30101810000000000272</TD></TR>
<TR>
<TD align=middle>Сч. №</TD></TR></TBODY></TABLE><BR
xmlns:str="http://exslt.org/strings" xmlns:math="http://exslt.org/math"><BR
xmlns:str="http://exslt.org/strings" xmlns:math="http://exslt.org/math">
<DIV style="FONT-SIZE: 12pt" align=center xmlns:str="http://exslt.org/strings"
xmlns:math="http://exslt.org/math"><B>СЧЕТ № <?php
echo $billCode;
?>
от <?php
echo date("d ", strtotime($reqv->op_date)) . strtolower(monthtostr(date("m", strtotime($reqv->op_date)))) . date(" Y г.", strtotime($reqv->op_date));
?>
</B></DIV><BR xmlns:str="http://exslt.org/strings"
xmlns:math="http://exslt.org/math">
<TABLE width="90%" border=0 xmlns:str="http://exslt.org/strings"
xmlns:math="http://exslt.org/math">
<TBODY>
<TR>
<TD width="50%">
<DIV style="FONT-SIZE: 10pt">Заказчик: <?php
echo reformat($reqv->full_name, 28);
?>
</DIV></TD>
<TD width="50%">
<DIV style="FONT-SIZE: 10pt">Телефоны: <?php
echo $reqv->phone;
示例7: strtotime
?>
<div class="b-post__txt b-post__txt_padbot_5 b-post__txt_color_a0763b">Сожалеем, что пришлось обращаться в арбитраж. Надеемся, следующая ваша сделка будет удачнее.</div>
<?php
if ($sbr->isEmp() && $event['estatus'] != 't') {
$update_event[$event['abbr']] = $event['abbr'];
}
break;
case 'sbr_stages.OVERTIME':
// $cdate = new LocalDateTime($event['xtime']);
// $cdate->getWorkForDay(pskb::PERIOD_EXP);
// $overtime = strtotime($event['xtime'] . " + " . $cdate->getCountDays(). "day");
$overtime = strtotime("-2 day", strtotime($sbr->data['dateEndLC']));
while (date('w', $overtime) == 0 || date('w', $overtime) == 6) {
$overtime = strtotime("-1 day", $overtime);
}
$str_overtime = date('d', $overtime) . " " . monthtostr(date('n', $overtime), true) . " " . date('Y', $overtime);
if ($sbr->isEmp()) {
?>
<div class="b-post__txt b-post__txt_padbot_5 b-post__txt_padleft_10 b-post__txt_indent_-10 b-post__txt_color_a0763b">• Если вы довольны выполненной работой, примите ее, нажав «Принять работу» наверху страницы.</div>
<div class="b-post__txt b-post__txt_padbot_5 b-post__txt_padleft_10 b-post__txt_indent_-10 b-post__txt_color_a0763b">• Если исполнитель еще не закончил, добавьте время на работу.</div>
<?php
if (time() <= $overtime) {
?>
<div class="b-post__txt b-post__txt_padbot_5 b-post__txt_padleft_10 b-post__txt_indent_-10 b-post__txt_color_a0763b">• Если вы не довольны работой с исполнителем и нет возможности увеличить время на работу, <a class="b-layout__link" href="javascript:void(0)" onclick="toggle_arb();" >обратитесь в арбитраж</a>.</div>
<?php
}
//if
?>
<div class="b-post__txt b-post__txt_padbot_5 b-post__txt_padleft_10 b-post__txt_indent_-10 b-post__txt_color_a0763b">Если до <?php
echo $str_overtime;
?>
示例8: getStrOvertimeArbitrage
function getStrOvertimeArbitrage()
{
if (!$this->arbitrage) {
return false;
}
return date('d', $this->arbitrage['overtime_arbitrage']) . ' ' . monthtostr(date('n', $this->arbitrage['overtime_arbitrage']), true) . ' ' . date('Y', $this->arbitrage['overtime_arbitrage']);
}
示例9: datereqv
public function datereqv(ReservesModel $reserveInstance)
{
$time = $reserveInstance->getLastCompleteDate(true);
return date('j', $time) . ' ' . monthtostr(date('n', $time), true) . ' ' . date('Y', $time);
}
示例10: elseif
</div>
</div>
<?php
} elseif ($sbr->status == sbr::STATUS_PROCESS && !$sbr->data['reserved_id'] && $sbr->state == 'new') {
$cdate = new LocalDateTime($sbr->pskb_created);
$cdate->getWorkForDay(pskb::PERIOD_RESERVED);
$pskb_created = $cdate->getTimestamp();
?>
<div class="b-fon b-fon_width_full">
<div class="b-fon__body b-fon__body_pad_10 b-fon__body_padleft_30 b-fon__body_fontsize_13 b-fon__body_bg_f0ffdf">
<span class="b-icon b-icon_sbr_gattent b-icon_margleft_-20"></span>
Вам необходимо зарезервировать деньги на сделку до <?php
echo date('d', $pskb_created);
?>
<?php
echo monthtostr(date('n', $pskb_created), true);
?>
<?php
echo date('Y', $pskb_created);
?>
. В противном случае сделка будет отменена (согласно пунктам 4.3 и 15.8 <a class="b-layout__link" href="<?php
echo $sbr->getDocumentLink('contract');
?>
">Договора</a>).
</div>
</div>
<?php
}
//elseif
?>
示例11: str_ago_pub
<?php
}
} else {
?>
<tr style="vertical-align:top"><td style="padding-left: 10px; padding-right: 10px;">
<div class="fl2_date">
<div class="fl2_date_day">
<?php
echo str_ago_pub(strtotimeEx($row['create_date']));
?>
</div>
<div class="fl2_date_date">
<?php
echo strftime("%d ", strtotimeEx($row['create_date'])) . monthtostr(strftime("%m", strtotimeEx($row['create_date']))) . ", " . $daysOfWeek[date("N", strtotimeEx($row['create_date']))];
?>
</div>
<div class="clear"></div>
</div>
<div class="fl2_offer">
<?php
if ($row['logo_name']) {
?>
<div class="fl2_offer_logo">
<a href="http://<?php
echo formatLink($row['link']);
?>
" target="_blank" nofollow ><img src="<?php
echo WDCPREFIX . '/' . $row['logo_path'] . $row['logo_name'];
?>
示例12: date
<div class="norisk-admin c">
<div class="norisk-in">
<form action="." method="get" id="adminFrm">
<div>
<h1 class="b-layout__title"><?php
echo date('j') . ' ' . monthtostr(date('m'), true) . ' ' . date('H:i');
?>
</h1>
<table class="nr-a-tbl nr-a-tbl_adm" cellspacing="5" style="table-layout:fixed">
<colgroup>
<col style="width:40px">
<col style="width:90px">
<col>
<col style="width:150px">
<col style="width:110px">
<col style="width:80px">
<col style="width:130px">
</colgroup>
<thead>
<tr>
<th><a href="javascript:SBR.changeFormDir(0,'DESC')"><img width="11" height="11" alt="v" src="/images/arrow-bottom<?php
echo $dir_col == 0 && $dir == 'DESC' ? '-a' : '';
?>
.png"></a> <a href="javascript:SBR.changeFormDir(0,'ASC')"><img width="11" height="11" alt="v" src="/images/arrow-top<?php
echo $dir_col == 0 && $dir == 'ASC' ? '-a' : '';
?>
.png"></a> </th>
<th> Договор <a href="javascript:SBR.changeFormDir(1,'DESC')"><img width="11" height="11" alt="v" src="/images/arrow-bottom<?php
echo $dir_col == 1 && $dir == 'DESC' ? '-a' : '';
?>
示例13: ago_project_created
/**
* Вывод даты для проектов
*
* @param type $from_date
* @return type
*/
function ago_project_created($from_date)
{
// Менее суток назад
if ($from_date > strtotime('-1day')) {
return ago_pub_x($from_date, "ynjGi", 0, true);
} else {
if ($from_date > strtotime('-6month')) {
// меннее полугода назад
return date('j', $from_date) . ' ' . monthtostr(date('n', $from_date), true) . ", " . date('H:i', $from_date);
} else {
//более полугода назад.
return date('j', $from_date) . ' ' . monthtostr(date('n', $from_date), true) . " " . date('Y, H:i', $from_date);
}
}
}
示例14: date
<TD><BR>40702810787880000803</TD></TR>
<TR>
<TD rowSpan=2>Банк получателя<BR>в Московский филиал ОАО АКБ «РОСБАНК» г. Москва
</TD>
<TD align=middle>БИК</TD>
<TD rowSpan=2>044583272<BR>30101810000000000272</TD></TR>
<TR>
<TD align=middle>Сч. №</TD></TR></TBODY></TABLE><BR
xmlns:str="http://exslt.org/strings"><BR
xmlns:str="http://exslt.org/strings">
<DIV style="FONT-SIZE: 12pt" align=center
xmlns:str="http://exslt.org/strings"><B>Счет № <?php
echo $billCode;
?>
от <?php
echo date("d ") . strtolower(monthtostr(date("m"))) . date(" Y г.");
?>
</B></DIV><BR xmlns:str="http://exslt.org/strings">
<TABLE width="100%" border=0 xmlns:str="http://exslt.org/strings">
<TBODY>
<TR>
<TD width="50%">
<DIV style="FONT-SIZE: 10pt">Заказчик: <?php
echo reformat($reqv->full_name, 28);
?>
</DIV></TD>
<TD width="50%">
<DIV style="FONT-SIZE: 10pt">Телефоны: <?php
echo $reqv->phone;
?>
</DIV></TD></TR>
示例15: dateFormat
echo $user->uid;
?>
" style="display: <?php
echo $user->is_banned || $user->ban_where ? 'block' : 'none';
?>
;">
<table><tbody>
<tr>
<th colspan="3"><strong id="banreasonblock-text-<?php
echo $user->uid;
?>
">Блокировка <?php
echo $ban['where'] ? 'в блогах' : 'везде';
?>
<?php
echo $ban['to'] ? 'до ' . dateFormat("j", $ban['to']) . ' ' . monthtostr(dateFormat("n", $ban['to']), true) . ' ' . dateFormat("Y", $ban['to']) : 'навсегда';
?>
</strong></th>
</tr>
<tr>
<td>
[<a onclick="banned.userBan(<?php
echo $user->uid;
?>
, '<?php
echo $user->uid;
?>
',0); return false;" href="javascript: void(0);" style="font-weight: bold">X</a>]
</td>
<td><span class="admn-line" id="banreasonblock-comment-<?php
echo $user->uid;