当前位置: 首页>>代码示例>>PHP>>正文


PHP strtotimeEx函数代码示例

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


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

示例1: reformat

        echo $host;
        ?>
/about/corporative/post/<?php 
        echo $theme['id'];
        ?>
/</link> 
		<description><![CDATA[<?php 
        echo reformat($theme['msg'], 96, 1);
        ?>
]]></description>
		<guid><?php 
        echo $host;
        ?>
/about/corporative/</guid>
		<pubDate><?php 
        echo gmdate("D, d M Y H:i:s", strtotimeEx($theme['date_create']));
        ?>
</pubDate>
		<comments><?php 
        echo $host;
        ?>
/about/corporative/post/<?php 
        echo $theme['id'];
        ?>
/</comments>
	</item>
<?php 
    }
}
?>
</channel>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:corporative.php

示例2: freelancer

 }
 $frl = new freelancer();
 if (($datey = trim($_POST['datey'])) && ($dated = trim($_POST['dated']))) {
     if (!is_numeric($datey) || !is_numeric($dated) || !checkdate(intval(trim($_POST['datem'])), intval($dated), intval($datey))) {
         $error_flag = 1;
         $alert[1] = "Поле заполнено некорректно";
     } else {
         $frl->birthday = dateFormat("Y-m-d", $datey . "-" . trim($_POST['datem']) . "-" . $dated);
     }
 } else {
     //$frl->birthday = "1910-01-01";
     $error_flag = 1;
     $alert[1] = "Поле заполнено некорректно";
 }
 //www.x.ru" onclick="alert(12345)
 if (!$alert[1] && $frl->birthday && date("Y", strtotimeEx($frl->birthday)) >= date("Y")) {
     $error_flag = 1;
     $alert[1] = "Поле заполнено некорректно";
 }
 $frl->country = intval(trim($_POST['country']));
 $frl->city = intval(trim($_POST['pf_city']));
 if ($frl->country <= 0) {
     $error_flag = 1;
     $alert['country'] = 'Выберите страну';
 }
 if ($frl->city <= 0) {
     $error_flag = 1;
     $alert['city'] = 'Выберите город';
 }
 $frl->site = change_q(substr(trimhttp(trim($_POST['site'])), 0, 96), true);
 $frl->icq = change_q(substr(trim($_POST['icq']), 0, 96), true);
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php

示例3: getFriendlyUrl

</title> 
	<link><?php 
        echo $host;
        echo getFriendlyUrl('blog', $theme['thread_id']);
        ?>
</link> 
    	<description><![CDATA[<?php 
        echo xmloutofrangechars(reformat($theme['msgtext'], 96, 1));
        ?>
]]></description>
    	<guid><?php 
        echo md5($theme['post_time'] . '-' . $theme['id']);
        ?>
</guid>
    	<pubDate><?php 
        echo date("D, d M Y H:i:s", strtotimeEx($theme['post_time'])) . " GMT+3";
        ?>
</pubDate>
    	<comments><?php 
        echo $host;
        echo getFriendlyUrl('blog', $theme['thread_id']);
        ?>
</comments>
    	</item>
<?php 
    }
}
?>
</channel>
</rss>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:30,代码来源:blogs.php

示例4: getFriendlyURL

    ?>
<a href="<?php 
    echo getFriendlyURL("project", $prj['id']);
    ?>
"><?php 
    echo YellowLine($prj['name']);
    ?>
</a></h4> 
									<div class="project-preview-desc"> 
                                        <?php 
    echo reformat($prj['descr'], 60);
    ?>
									</div> 
									<ul class="project-info"> 
										<li><?php 
    echo ago_pub_x(strtotimeEx($prj['post_date']));
    ?>
</li> 
										<li>Автор: <?php 
    echo $prj['is_pro'] == 't' ? ' ' . view_pro_emp(false, 8) : '';
    ?>
 <a href="/users/<?php 
    echo $prj['login'];
    ?>
/"><?php 
    echo YellowLine($prj['uname']);
    ?>
 <?php 
    echo YellowLine($prj['usurname']);
    ?>
</a> [<a href="/users/<?php 
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:content.php

示例5: yandexGenerateRss

 /**
  * Создает xml файл для Яндек.Работа
  * 
  * @param   $filename   string  полный путь к файлу куда webdav должен сохранить получившийся xml
  * @param   $kind       array   типы проектов для выгрузки (поле kind в таблице projects)
  * @return text $filename полный путь к файлу куда webdav должен сохранить получившийся xml
  */
 function yandexGenerateRss($filename, $kind)
 {
     global $DB;
     $rXml = iconv('CP1251', 'UTF-8', '<?xml version="1.0" encoding="utf-8"?>' . "\n" . '<!DOCTYPE source>' . "\n");
     $rXml .= iconv('CP1251', 'UTF-8', '<source creation-time="' . date('Y-m-d H:i:s') . ' GMT+3" host="' . $host . '">' . "\n");
     $rXml .= iconv('CP1251', 'UTF-8', '   <vacancies>' . "\n");
     $sql = "SELECT \n                p.id, p.post_date, p.name AS project_name, NULL AS cat_name, NULL AS subcat_name,\n                co.country_name, ci.city_name, p.descr, p.moderator_status, p.create_date\n            FROM projects p\n            INNER JOIN employer e ON e.uid = p.user_id \n            LEFT JOIN country co ON co.id = p.country \n            LEFT JOIN city ci ON ci.id = p.city \n            LEFT JOIN projects_blocked pb ON pb.project_id = p.id \n            WHERE \n                p.kind IN (?l) \n                AND p.pro_only = false \n                AND pb.project_id IS NULL\n                AND p.closed = false \n                AND e.is_banned < 1::bit\n                AND p.post_date > DATE_TRUNC('hour', now() - interval '1 week')\n                /*AND (p.moderator_status <> 0 OR p.moderator_status IS NULL)*/\n            ORDER BY p.kind ASC, p.post_date DESC";
     $host = str_replace(HTTP_PREFIX, '', $GLOBALS['host']);
     $HTTP_PREFIX = 'https://';
     $res = $DB->query($sql, $kind);
     while ($row = pg_fetch_assoc($res)) {
         /*if ( $row['moderator_status'] == '0' ) {
               continue;
           }*/
         $xml = '';
         $row['categories'] = self::getProjectCategories($row['id']);
         // Yandex не пропускает вакансии с пустыми категориями
         if (empty($row['categories'])) {
             continue;
         }
         $city = $row['city_name'] ? $row['city_name'] : 'Москва';
         $location = $row['country_name'] ? $row['country_name'] : 'Россия';
         $location .= $location ? ', ' . $city : $city;
         $location = html_entity_decode($location, ENT_QUOTES, 'cp1251');
         $name = html_entity_decode($row['project_name'], ENT_QUOTES, 'cp1251');
         $cat = html_entity_decode($row['cat_name'], ENT_QUOTES, 'cp1251');
         $descr = html_entity_decode($row['descr'], ENT_QUOTES, 'cp1251');
         $func = create_function('$matches', 'ucwords($matches[0]);');
         $name = preg_replace_callback('/([A-ZА-ЯЁ]+[\\!\\?\\.\\,\\;\\:\\"\\\'0-9\\s]+){2,}/', $func, $name);
         $descr = preg_replace_callback('/([A-ZА-ЯЁ]+[\\!\\?\\.\\,\\;\\:\\"\\\'0-9\\s]+){2,}/', $func, $descr);
         $xml .= '        <vacancy>
         <url>' . $HTTP_PREFIX . $host . getFriendlyUrl('project', $row['id']) . '</url>
         <creation-date>' . date('Y-m-d H:i:s', strtotimeEx($row['create_date'])) . ' GMT+3</creation-date>
         ';
         if ($row['create_date'] != $row['post_date']) {
             $xml .= '<update-date>' . date('Y-m-d H:i:s', strtotimeEx($row['post_date'])) . "</update-date>\r\n";
         }
         if (!empty($row['categories'])) {
             $name_case = false;
             foreach ($row['categories'] as $cat) {
                 $xml .= '<category>
             <industry>' . htmlspecialchars($cat['category_name'], ENT_QUOTES) . "</industry>\n";
                 if ($cat['subcategory_name']) {
                     $xml .= '<specialization>' . htmlspecialchars($cat['subcategory_name'], ENT_QUOTES) . "</specialization>\n";
                     if ($cat['name_case']) {
                         $name_case[] = $cat['name_case'];
                     }
                 }
                 $xml .= "           </category>\n";
             }
             if ($name_case) {
                 $name_case = implode(". ", $name_case) . ". ";
             }
         }
         $xml .= '           <job-name>' . htmlspecialchars($name_case . $name, ENT_QUOTES) . '</job-name>';
         $xml .= '<description>' . htmlspecialchars($descr, ENT_QUOTES) . '</description>
         <addresses>
             <address>
                 <location>' . htmlspecialchars($location, ENT_QUOTES) . "</location>\n                </address>\n            </addresses>\n            <anonymous-company>\n                <description />\n            </anonymous-company>\n        </vacancy>\n";
         unset($name_case);
         $rXml .= iconv('CP1251', 'UTF-8//TRANSLIT', $xml);
     }
     $rXml .= iconv('CP1251', 'UTF-8', "</vacancies>\n</source>");
     $file = new CFile();
     return $file->putContent($filename, $rXml);
 }
开发者ID:amage,项目名称:fl-ru-damp,代码行数:73,代码来源:projects.php

示例6: view_online_status_new

 /**
  * Отображает значек активности юзера на сайте (новая версия view_online_status)
  *
  * @param string $login		логин юзера
  * @param boolean $full		отображать ли строковую информацию ("Нет на сайте")
  * @return string			HTML-код значка активности
  */
 function view_online_status_new($login, $full = false, $nbsp = '&nbsp;', &$activity = NULL)
 {
     if ($login) {
         $last_ref = $this->getActivityByLogin($login);
     }
     $activity = $last_ref;
     $last_ref_unixtime = strtotime($last_ref);
     if ($last_ref && time() - $last_ref_unixtime <= 30 * 60) {
         $ago = ago_pub(strtotimeEx($last_ref));
         if (intval($ago) == 0) {
             $ago = "менее минуты";
         }
         /*  return  ($full ? "<span class='u-act' title=\"Последняя активность была ".$ago." назад\">На сайте</span>" : "{$nbsp}<img src=\"/images/dot_active.png\" class=\"u-act\" alt=\"Последняя активность была ".$ago." назад\" title=\"Последняя активность была ".$ago." назад\" />$nbsp");*/
         return "<span class='b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_color_6db335 b-layouyt__txt_weight_normal'>На сайте.</span>";
     }
     /*return  ($full ? "<span class='u-inact'>Нет на сайте</span>" : "{$nbsp}<img src=\"/images/dot_inactive.png\" width=\"8\" height=\"9\" alt=\"Нет сайте\" class=\"u-inact\" title=\"Нет на сайте\" />$nbsp");*/
     return "<span class='b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_color_808080 b-layouyt__txt_weight_normal'>Нет на сайте.</span>";
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:25,代码来源:session_Memcached.php

示例7: header

if (!$_in_setup) {
    header("HTTP/1.0 403 Forbidden");
    exit;
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/commune.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/country.php";
$countries = country::GetCountries();
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/city.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/teams.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/notes.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
$recoms = new teams();
if ($user->birthday && !$error_flag) {
    $mnth = strftime("%m", strtotimeEx($user->birthday));
    $day = strftime("%d", strtotimeEx($user->birthday));
    $year = strftime("%Y", strtotimeEx($user->birthday));
} elseif ($error_flag) {
    $mnth = trim($_POST['datem']);
    $day = trim($_POST['dated']);
    $year = trim($_POST['datey']);
    $frl->login = $user->login;
    $user = $frl;
}
if ($user->birthday == "1910-01-01") {
    $mnth = 01;
    $day = "";
    $year = "";
}
if ($_SESSION['uid']) {
    $note = notes::GetNotes($_SESSION['uid'], null, $error);
    if (count($note) > 0) {
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:inform_inner.php

示例8: getLetters

/**
 * Возвращает диалог при чтении переписки в потоке лички
 * 
 * @param  string $stream_id идентификатор потока
 * @param  int $nFromId uid отправиля (то есть одного)
 * @param  int $nToId uid получателя (то есть другого)
 * @param  int $nMsgId id сообщения из которого смотрят переписку
 * @param  int $nCurpage номер страницы
 * @return object xajaxResponse
 */
function getLetters($stream_id = '', $nFromId = 0, $nToId = 0, $nMsgId = 0, $nCurpage = 1)
{
    global $user_content, $stop_words, $sTeam;
    $objResponse = new xajaxResponse();
    $objResponse->script('user_content.spinner.hide(true);');
    if ($user_content->hasContentPermissions(1)) {
        $aStream = array();
        $checkStream = $user_content->checkStream(1, $stream_id, $_SESSION['uid'], $aStream);
        if ($checkStream) {
            require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/users.php';
            $aDialog = array();
            $sDialog = '';
            $oFromUser = new users();
            $oFromUser->GetUserByUID($nFromId);
            $oToUser = new users();
            $oToUser->GetUserByUID($nToId);
            if ($oFromUser->login && $oToUser->login) {
                require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/messages.php';
                $oMsgs = new messages();
                $aDialog = $oMsgs->GetMessagesForModers($nFromId, $oToUser->login, $nCurpage, 20);
                if ($aDialog) {
                    $sProF = $oFromUser->is_pro == 't' ? (is_emp($oFromUser->role) ? view_pro_emp() : view_pro2($oFromUser->is_pro_test == 't' ? true : false)) . '&nbsp;' : '';
                    $sProT = $oToUser->is_pro == 't' ? (is_emp($oToUser->role) ? view_pro_emp() : view_pro2($oToUser->is_pro_test == 't' ? true : false)) . '&nbsp;' : '';
                    $sProF = $oFromUser->is_team == 't' ? $sTeam : $sProF;
                    $sProT = $oToUser->is_team == 't' ? $sTeam : $sProT;
                    foreach ($aDialog as $aOne) {
                        $sClass = $aOne['from_id'] == $nFromId ? 'b-post__txt_color_a7a7a6' : '';
                        $sLogin = $aOne['from_id'] == $nFromId ? $oFromUser->login : $oToUser->login;
                        $sName = $aOne['from_id'] == $nFromId ? $oFromUser->uname : $oToUser->uname;
                        $sSurname = $aOne['from_id'] == $nFromId ? $oFromUser->usurname : $oToUser->usurname;
                        $sIsChuck = $aOne['from_id'] == $nFromId ? $oFromUser->is_chuck : $oToUser->is_chuck;
                        $sPro = $aOne['from_id'] == $nFromId ? $sProF : $sProT;
                        $sAttach = '';
                        //$sClickD  = 'user_content.delLetter('. $aOne['from_id'] .', \''. $aOne['id'] .'_'. ($aOne['id'] == $nMsgId ? '1' : '2') .'\')';
                        $sJSParams = "{'content_id': 1, 'stream_id': '{$stream_id}'}";
                        $sClickD = 'parent.banned.delReason(\'' . 1 . '_' . $aOne['id'] . '_0\', ' . $aOne['from_id'] . ', \'delLetter\', ' . $sJSParams . ')';
                        if ($aOne['files']) {
                            $nn = 1;
                            foreach ($aOne['files'] as $attach) {
                                $aData = getAttachDisplayData($sLogin, $attach['fname'], 'contacts', 1000, 300, 307200, 0);
                                if ($aData && $aData['success']) {
                                    if ($aData['file_mode'] || $aData['virus_flag'] || $att_ext == "swf") {
                                        $sAttach .= _parseAttach($aData);
                                    } else {
                                        $sAttach .= "<div class=\"b-fon__body b-fon__body_pad_5 b-fon__body_bg_ffebbf b-fon__body_margbot_1\"><img src=\"" . WDCPREFIX . '/users/' . $sLogin . '/contacts/' . $aData['file_name'] . "\" alt=\"{$aData['file_name']}\" title=\"{$aData['file_name']}\" width=\"{$aData['img_width']}\" height=\"{$aData['img_height']}\" /></div>";
                                    }
                                    $nn++;
                                }
                            }
                            $sAttach = _wrapAttach($sAttach);
                        }
                        $msg_text = $aOne['moderator_status'] === '0' ? $stop_words->replace($aOne['msg_text']) : $aOne['msg_text'];
                        $msg_text = reformat($msg_text, 50, 0, -($sIsChuck == 't'), 1);
                        $sDeleted = $aOne['deleted'] ? ' [Сообщение удалено модератором]' : '';
                        $sDialog .= '
<div class="b-post b-post_bordtop_dfe3e4 b-post_padtop_15 b-post_marg_20_10" id="my_div_content_' . $aOne['id'] . '_' . ($aOne['id'] == $nMsgId ? '1' : '2') . '">
    ' . (!$aOne['deleted'] && ($aOne['moderator_status'] !== '0' || $aOne['moderator_status'] === '0' && $aOne['id'] == $nMsgId) ? '<a id="my_del_link_' . $aOne['id'] . '" onclick="' . $sClickD . '" class="b-button b-button_float_right b-button_mini" href="javascript:void(0);"><span class="b-button__icon b-button__icon_del"></span></a>' : '') . '

    <div class="b-post__txt ' . $sClass . ' b-post__txt_fontsize_15">' . $sPro . '<span class="b-post__txt b-post__txt_bold ' . $sClass . '">' . $sName . ' ' . $sSurname . ' [' . $sLogin . ']</span> ' . date("d.m.y в H:i", strtotimeEx($aOne['post_time'])) . '<span id="my_deleted_' . $aOne['id'] . '" style="color:red;">' . $sDeleted . '</span>' . ':</div>
    <div class="b-post__txt ' . $sClass . ' b-post__txt_fontsize_15">
       ' . $msg_text . '
    </div>

    ' . $sAttach . '
</div>
';
                    }
                    $objResponse->append('my_div_contents', 'innerHTML', $sDialog);
                    $objResponse->script("user_content.afterScroll();");
                    $objResponse->script("user_content.getLettersPage++;");
                }
            }
            $objResponse->script('$("my_div_wait").destroy();');
        } else {
            _loseStream($objResponse, $stream_id);
        }
    } else {
        _parsePermissionsDenied($objResponse);
    }
    $objResponse->script('user_content.spinner.resize();');
    return $objResponse;
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:92,代码来源:user_content.server.php

示例9: ago_pub_x

        ?>
<br /><br />
<?php 
    } else {
        ?>
            <br /><?php 
        echo !$row["offers_count"] || $row["offers_count"] % 10 == 0 || $row["offers_count"] % 10 > 4 || $row["offers_count"] > 4 && $row["offers_count"] < 21 ? '<a class="public_blue" href="' . $blink . '">' . $row["offers_count"] . ' предложений</a>' : ($row["offers_count"] % 10 == 1 || $row["comm_count"] == 1 ? '<a class="public_blue" href="' . $blink . '">' . $row["offers_count"] . ' предложение</a>' : '<a class="public_blue" href="' . $blink . '">' . $row["offers_count"] . ' предложения</a>');
        ?>
<br /><br />
<?php 
    }
    ?>
            <br />
            <div class="fl2_offer_meta">Прошло времени с момента публикации: 
                <?php 
    echo ago_pub_x(strtotimeEx($row['create_date']));
    ?>
<br />
                Автор: <a href="/users/<?php 
    echo $user->login;
    ?>
"><?php 
    print $user->uname . " ";
    print $user->usurname;
    ?>
 [<?php 
    echo $user->login;
    ?>
]</a><br />
                Раздел: <?php 
    echo projects::getSpecsStr($row['id'], ' / ', ', ');
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.employer-project-item.php

示例10: date

             // Я ему никогда не писал.
             ?>
       Вы не ответили
       <?php 
         }
     } else {
         // Он никогда мне не писал, а я писал.
         $i_am_last = 1;
     }
     if ($i_am_last) {
         if (strtotimeEx($contact['he_last_read']) > strtotimeEx($ihim)) {
             // Он читал сообщения после того как я ему написал. То есть, он прочел.
             ?>
       <img src="/images/ico_envelop_op.gif" alt="" width="10" height="12" style="border:0;" />&nbsp;Ваше сообщение прочитано
       <?php 
             echo date("d.m в H:i", strtotimeEx($contact['he_last_read']));
             ?>
       <?php 
         } else {
             ?>
       Ваше сообщение не прочитано
       <?php 
         }
     }
 }
 ?>
     </div>
     <div class="vfolders">
       <?php 
 if ($folders) {
     foreach ($folders as $folder) {
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:content.php

示例11: view_online_status

function view_online_status($login, $full = false)
{
    if ($login) {
        $last_ref = getActivityByLogin($login);
    }
    if ($last_ref) {
        $ago = ago_pub(strtotimeEx($last_ref));
        if (intval($ago) == 0) {
            $ago = "менее минуты";
        }
        return "<img src=\"" . $GLOBALS["host"] . "/images/dot_active.gif\" style=\"width:10px;height:10px;padding-right:3px;vertical-align:middle;\" alt=\"Последняя активность была " . $ago . " назад\" title=\"Последняя активность была " . $ago . " назад\" border=\"0\">" . ($full ? "<span class='u_active'>На сайте</span>" : "");
    }
    return "<img src=\"" . $GLOBALS["host"] . "/images/dot_inactive.gif\" style=\"width:8px;height:9px;padding-right:3px;vertical-align:middle;\" alt=\"Нет на сайте\" title=\"Нет на сайте\" border=\"0\">" . ($full ? "<span class='u_inactive'>Нет на сайте</span>" : "");
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:14,代码来源:stdf.php

示例12: foreach

?>
" style="margin-left:10px;<?php 
if ($kind == 4) {
    print " text-decoration: underline;";
}
?>
">В офис</a>
	<td class="qph">&nbsp;</td>
</tr>
<?php 
if ($prjs) {
    foreach ($prjs as $ikey => $prj) {
        ?>
<tr class="qpr">
	<td align="center" class="qp"><?php 
        echo date("d.m", strtotimeEx($prj['post_date']));
        ?>
</td>
	<td class="qp">
	<?php 
        if ($prj['closed'] != "t") {
            ?>
<a name="prj<?php 
            echo $prj['id'];
            ?>
" id="prj<?php 
            echo $prj['id'];
            ?>
" href="/users/<?php 
            echo $prj['login'];
            ?>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:inner_index.php

示例13: strtotime

        $comments = $hist['comments'];
        if (in_array($hist['op_code'], array(sbr::OP_RESERVE, sbr::OP_DEBIT, sbr::OP_CREDIT))) {
            $scheme = strtotime($hist['op_date']) > mktime(0, 0, 0, 11, 1, 2012) ? sbr::SCHEME_LC : sbr::SCHEME_AGNT;
            $comments = sbr_meta::parseOpComment($comments, $user->login, is_emp($user->role), $scheme);
        }
        ?>
<tr class="small" valign="baseline">
	<td><a name="<?php 
        echo $hist['id'];
        ?>
"></a><?php 
        echo $hist['id'];
        ?>
</td>
	<td><?php 
        echo date('d.m.Y | H:i', strtotimeEx($hist['op_date']));
        ?>
</td>
    <td><?php 
        echo view_cost_format($hist['balance'], false);
        ?>
</td>
	<td><?php 
        echo ($hist['ammount'] > 0 ? '+' : '') . round($hist['ammount'], 2);
        ?>
</td>
	<td><?php 
        echo str_replace('%username%', $user->login, $hist['op_name']);
        ?>
<br><br>
	<?php 
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:inner_index.php

示例14: users

     $frl = new users();
     $error .= $frl->UpdateSubscr2(get_uid(), array($newmsgs, $vacan, $comments, $opin, __paramInit('bool', NULL, 'prj_comments'), $commune_subscr, $commune_top_subscr, __paramInit('bool', NULL, 'adm_subscr'), __paramInit('bool', NULL, 'contest'), __paramInit('bool', NULL, 'team'), 0, $articlescomments, __paramInit('bool', NULL, 'spm'), 0, $paid_advice, __paramInit('bool', NULL, 'payment')));
     if (!$error) {
         $info_msg = "Изменения внесены";
     }
     break;
 case "inform_change":
     foreach ($_POST as $key => $value) {
         if (!is_array($value)) {
             $_POST[$key] = stripslashes($value);
         }
     }
     $frl = new employer();
     if (trim($_POST['datey']) && trim($_POST['dated'])) {
         if (checkdate(intval(trim($_POST['datem'])), intval(trim($_POST['dated'])), intval(trim($_POST['datey'])))) {
             $frl->birthday = date("Y-m-d", strtotimeEx(trim($_POST['datey']) . "-" . trim($_POST['datem']) . "-" . trim($_POST['dated'])));
         } else {
             $error_flag = 1;
             $alert[1] = "Поле заполнено некорректно";
         }
     } else {
         //$frl->birthday = "1910-01-01";
         $error_flag = 1;
         $alert[1] = "Поле заполнено некорректно";
     }
     if (!$alert[1] && $frl->birthday && date("Y", strtotime($frl->birthday)) >= date("Y")) {
         $error_flag = 1;
         $alert[1] = "Поле заполнено некорректно";
     }
     $frl->country = intval(trim($_POST['country']));
     $frl->city = intval(trim($_POST['pf_city']));
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php

示例15: strtotime

        $comments = $hist['comments'];
        if (in_array($hist['op_code'], array(sbr::OP_RESERVE, sbr::OP_DEBIT, sbr::OP_CREDIT))) {
            $scheme = strtotime($hist['op_date']) > mktime(0, 0, 0, 11, 1, 2012) ? sbr::SCHEME_LC : sbr::SCHEME_AGNT;
            $comments = sbr_meta::parseOpComment($comments, $user->login, is_emp($user->role), $scheme);
        }
        ?>
<tr class="small" valign="baseline">
	<td><a name="<?php 
        echo $hist['id'];
        ?>
"></a><?php 
        echo $hist['id'];
        ?>
</td>
	<td><?php 
        echo date("d.m.Y | H:i", strtotimeEx($hist['op_date']));
        ?>
</td>
    <td><?php 
        echo view_cost_format($hist['balance'], false);
        ?>
</td>
	<td><?php 
        echo ($hist['ammount'] > 0 ? "+" : "") . round($hist['ammount'], 2);
        ?>
</td>
	<td><?php 
        echo str_replace('%username%', $user->login, $hist['op_name']);
        ?>
<br><br>
	<?php 
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:inner_index.php


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