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


PHP reformat函数代码示例

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


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

示例1: setHtml

 public function setHtml()
 {
     global $session;
     $html = array();
     if ($result = $this->getRecords()) {
         foreach ($result as $key => $value) {
             $pfx = $value['from_id'] == $this->_engine->uid ? 't_' : 'f_';
             list($msg_text, $login, $uname, $usurname) = $this->mark(array((string) $value['msg_text'], (string) $value[$pfx . 'login'], (string) $value[$pfx . 'uname'], (string) $value[$pfx . 'usurname']));
             $msg_text = preg_replace('~(https?:/){[^}]+}/~', '$1/', $msg_text);
             $html[$key] = '<table cellpadding="0" cellspacing="0">';
             $html[$key] .= '<tr>';
             $html[$key] .= '<td style="vertical-align: top; padding-right: 8px;">';
             $html[$key] .= '<div class="upic">' . view_avatar($value[$pfx . 'login'], $value[$pfx . 'photo']) . '</div>';
             $html[$key] .= '</td>';
             $html[$key] .= '<td style="vertical-align: top;">';
             $html[$key] .= view_mark_user($value, $pfx);
             $html[$key] .= $session->view_online_status($value[$pfx . 'login']);
             //if ($value[$pfx . 'is_pro'] == 't') $html[$key] .= (is_emp($value[$pfx . 'role']) ? view_pro_emp() : view_pro2($value[$pfx . 'is_pro_test']=='t'));
             $cls = is_emp($value[$pfx . 'role']) ? 'class="empname11"' : 'class="frlname11"';
             $html[$key] .= '&nbsp;<font ' . $cls . '><a href="/users/' . $value[$pfx . 'login'] . '" title="' . $value[$pfx . 'uname'] . ' ' . $value[$pfx . 'usurname'] . '" ' . $cls . ' >' . $uname . ' ' . $usurname . '</a> [<a href="/users/' . $value[$pfx . 'login'] . '/" title="' . $value[$pfx . 'login'] . '" ' . $cls . '>' . $login . '</a>]</font>';
             if ($msg_text != '') {
                 $html[$key] .= '<div style="margin-top: 4px;"><a href="/contacts/?from=' . $value[$pfx . 'login'] . '">' . reformat($msg_text, 80, 0, 1) . '</a></div>';
             }
             $html[$key] .= '</td>';
             $html[$key] .= '</tr>';
             $html[$key] .= '</table>';
         }
     }
     $this->html = $html;
 }
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:30,代码来源:search_element_messages.php

示例2: setHtml

 /**
  */
 public function setHtml()
 {
     $html = array();
     if ($result = $this->getRecords()) {
         foreach ($result as $key => $value) {
             $value['msgtext'] = preg_replace('~(https?:/){[^}]+}/~', '$1/', $value['msgtext']);
             list($title, $message, $login) = $this->mark(array((string) $value['title'], (string) $value['msgtext'], (string) $value['login']));
             if ($title == '') {
                 $title = '<Без темы>';
             }
             if (empty($value['reply_to']) || is_null($value['reply_to'])) {
                 $link = '/blogs/view.php?tr=' . $value['thread_id'] . '&ord=new';
             } else {
                 $link = '/blogs/view.php?tr=' . $value['thread_id'] . '&ord=new&openlevel=' . $value['id'] . '&ord=new#o' . $value['id'];
             }
             $html[$key] = '<a href="' . $link . '" style="font-weight: bold;" class="blue">' . $title . '</a>';
             $html[$key] .= '<div style="margin-top: 4px;">' . reformat($message, 80, 0, 1) . '</div>';
             $html[$key] .= '<div class="little" style="margin-top: 4px;"><span class="topic">Закладка:</span> <a href="/blogs/viewgroup.php?gr=' . $value['id_gr'] . '&ord=new">' . $value['group_name'] . '</a> - комментарий - ';
             if ($value['fromuser_id'] > 0) {
                 $html[$key] .= '[<a href="/users/' . $value['login'] . '/" title="' . $value['uname'] . ' ' . $value['usurname'] . '" class="black">' . $login . '</a>]';
             } else {
                 $html[$key] .= '[' . $login . ']';
             }
             //$html[$key] .= '- [' . dateFormat("dd.mm YYYY | H:M", $value['post_time']) . ']</div>';
             $html[$key] .= '- [' . strftime('%d.%m.%Y | %H:%M', make_timestamp($value['post_time'])) . ']</div>';
         }
     }
     $this->html = $html;
 }
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:search_element_blogs.php

示例3: setHtml

 /**
  */
 public function setHtml()
 {
     $html = array();
     if ($result = $this->getRecords('is_pro DESC, post_time DESC')) {
         $i = 0;
         foreach ($result as $key => $value) {
             list($name, $descr, $login) = $this->mark(array((string) $value['name'], (string) $value['descr'], (string) $value['login']));
             if ($value['is_text'] == 't') {
                 $html[$key] .= '<div style="width:200px;">';
                 $html[$key] .= '<div style="text-align:left;padding-top:4px;"><a href="/users/' . $value['login'] . '/viewproj.php?prjid=' . $value['id'] . '" target="_blank" class="blue" style="font-weight: bold;">' . $name . '</a></div>';
                 $html[$key] .= '<div style="text-align:left;padding-top:2px;">' . reformat($descr, 36, 0, 1) . '</div>';
                 $html[$key] .= '</div>';
             } else {
                 $html[$key] .= '<div style="width:200px;">';
                 if ($value['prof_show_preview'] == 't' && $value['is_pro'] == 't') {
                     $html[$key] .= '<div style="text-align:left;"><a href="/users/' . $value['login'] . '/viewproj.php?prjid=' . $value['id'] . '" target="_blank">' . view_preview($value['login'], $value['prev_pict'], "upload", $align) . '</a></div>';
                 }
                 $html[$key] .= '<div style="text-align:left;padding-top:4px;"><a href="/users/' . $value['login'] . '/viewproj.php?prjid=' . $value['id'] . '" target="_blank" class="blue" style="font-weight: bold;">' . $name . '</a></div>';
                 $html[$key] .= '<div style="text-align:left;padding-top:4px;">' . reformat($descr, 36, 0, 1) . '</div>';
             }
             $html[$key] .= '<div class="little" style="margin-top: 4px;">Автор: ';
             if ($value['user_id'] > 0) {
                 $html[$key] .= '[<a href="/users/' . $value['login'] . '/" title="' . $value['uname'] . ' ' . $value['usurname'] . '" class="black">' . $login . '</a>]';
             } else {
                 $html[$key] .= '[' . $login . ']';
             }
             $html[$key] .= ' - [' . strftime("%d.%m.%Y | %H:%M", make_timestamp($value['post_time'])) . ']</div>';
             $i++;
         }
     }
     $this->html = $html;
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:34,代码来源:search_element_works.php

示例4: setFlashMessageFromConstWithTitle

 /**
  * Сохранить сообщение из константы
  * 
  * @param type $const
  * @param type $title
  * @return type
  */
 public static function setFlashMessageFromConstWithTitle($const, $title)
 {
     require_once 'tservices_const.php';
     $title = reformat(stripslashes($title), 30, 0, 1);
     $message = sprintf(tservices_const::enum('msg', $const), $title);
     return self::setFlashMessage($message);
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:14,代码来源:tservices_helper.php

示例5: MasssendingSave

function MasssendingSave($id, $txt)
{
    $response = new xajaxResponse();
    if (hasPermissions('masssending')) {
        require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/masssending.php';
        masssending::UpdateText($id, $txt);
        $mass = masssending::Get($id);
        $response->assign('mass_txt_' . $id, 'innerHTML', reformat($mass[0]['msgtext'], 30, 0, 0, 1));
    }
    return $response;
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:11,代码来源:masssending.server.php

示例6: comments

/**
 * Выводит дерево комментариев. Используется здесь и в xajax/contest.server.php
 * @param  integer   $pid            id проекта
 * @param  string    $name           название проекта
 * @param  array     $comments       массив с деревом комментариев (подробнее в classes/contest.php)
 * @param  boolean   $comm_blocked   автор отключил возможность оставлять комментарии?
 * @param  boolean   $project_end    проект закрыт?
 * @param  integer   $s_level        уровень вложенности комментария
 * @return string                    HTML с кнопками управления
 */
function comments($pid, $name, &$comments, $comm_blocked, $project_end, $s_level = 0)
{
    global $stop_words, $contest, $project, $session;
    static $level = 0;
    $level = ($s_level ? $s_level : $level) + 1;
    $html = '';
    $set_branch_as_read = false;
    for ($i = 0, $c = count($comments); $i < $c; $i++) {
        if (($comments[$i]['is_banned'] || $comments[$i]['usr_banned'] || $comments[$i]['user_blocked'] === 't') && !hasPermissions('projects') && !$contest->is_owner) {
            $msg = $msg2 = 'Ответ от заблокированного пользователя';
        } else {
            if (!trim($comments[$i]['deleted'])) {
                $sMsg = $comments[$i]['moderator_status'] === '0' ? $stop_words->replace($comments[$i]['msg']) : $comments[$i]['msg'];
                $msg = reformat($sMsg, 30, 0, 0, 1);
                $msg2 = reformat($comments[$i]['msg'], 30, 0, 0, 1);
            } else {
                $msg2 = $msg = "Комментарий удален модератором";
                if (hasPermissions("comments")) {
                    $moderator = '';
                    $moderatorData = new users();
                    $moderatorData->GetUserByUID($comments[$i]['deluser_id']);
                    if ($moderatorData->login) {
                        $moderator = ' ' . $moderatorData->login . ' (' . $moderatorData->uname . ' ' . $moderatorData->usurname . ') ';
                    }
                    $msg2 = $msg = $msg . " {$moderator}";
                }
                if ($comments[$i]['deluser_id'] == $comments[$i]['user_id']) {
                    $msg2 = $msg = "Комментарий удален автором";
                } else {
                    if (trim($comments[$i]['deleted_reason']) && (hasPermissions("comments") || $comments[$i]['user_id'] == get_uid(false))) {
                        $msg2 = $msg = $msg . "<div style='color:#ff0000'>Причина: " . $comments[$i]['deleted_reason'] . "</div>";
                    }
                }
            }
        }
        $a_is_banned = ($comments[$i]['is_banned'] || $comments[$i]['usr_banned']) && hasPermissions('projects');
        $html .= "\n\t\t\t<li class='thread' id='thread-{$comments[$i]['id']}'" . ($level >= 9 ? " style='margin-left: 0'" : "") . ">\n\t\t\t\t<a name='c-comment-{$comments[$i]['id']}'></a>\n\t\t\t\t<div class='comment-one" . ($comments[$i]['deleted'] || $comments[$i]['hidden'] ? " comment-deleted" : "") . "' id='comment-{$comments[$i]['id']}'>\n\t\t\t\t\t<div class='contest-ea'>" . view_avatar($comments[$i]['login'], $comments[$i]['photo'], 1) . "</div>\n\t\t\t\t\t<div class='comment-body'>\n\t\t\t\t\t\t<h3 class='username'>" . $session->view_online_status($comments[$i]['login']) . "\n\t\t\t\t\t\t\t<a href='/users/{$comments[$i]['login']}' class='" . (is_emp($comments[$i]['role']) ? 'employer-name' : 'freelancer-name') . "'>{$comments[$i]['uname']} {$comments[$i]['usurname']} [{$comments[$i]['login']}]</a>&nbsp;" . view_mark_user($comments[$i]) . "&nbsp;" . ($comments[$i]['completed_cnt'] > 0 ? '<a href="/promo/bezopasnaya-sdelka/" title="Пользователь работал через Безопасную Сделку" target="_blank"><span class="b-icon b-icon__shield b-icon_top_1"></span></a>' : '') . "\n\t\t\t\t\t\t\t<span>[" . dateFormat('d.m.Y | H:i', $comments[$i]['post_date']) . "]</span>\n\t\t\t\t\t\t\t<span id='comment-modified-{$comments[$i]['id']}'>" . ($comments[$i]['modified'] ? "[изменен " . dateFormat('d.m.Y | H:i', $comments[$i]['modified']) . "]" : '&nbsp;') . "</span>\n\t\t\t\t\t\t\t" . ($a_is_banned ? "<b style=\"color:#ff0000\">Пользователь забанен</b>" : "") . "\n\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t" . ($_SESSION['uid'] && $comments[$i]['is_new'] ? "<p><img src='/images/mark-new.png' width='53' height='12' alt='новое' class='mark-new' /></p>" : "") . "\n\t\t\t\t\t\t<div id='comment-change-{$comments[$i]['id']}'>\n\t\t\t\t\t\t<p id='comment-msg-{$comments[$i]['id']}' " . ($a_is_banned ? "style='color:silver'" : "") . ".>" . $msg . "</p>\n\t\t\t\t\t\t<div id='comment-msg-original-{$comments[$i]['id']}' style='display:none'>" . $msg2 . "</div>\n\t\t\t\t\t\t<script type=\"text/javascript\">\n                        banned.addContext( 'p{$pid}c{$comments[$i]['id']}', 3, '" . HTTP_PREFIX . "{$_SERVER['HTTP_HOST']}" . getFriendlyURL("project", $pid) . "?comm={$comments[$i]['id']}#comment-{$comments[$i]['id']}', \"" . htmlspecialchars($name) . "\" );\n                        </script>\n\t\t\t\t\t\t<ul class='thread-options' id='comment-options-{$comments[$i]['id']}'>\n\t\t\t\t\t\t\t" . comment_options($pid, $comments[$i], $comm_blocked, $project_end, $level, $name) . "\n\t\t\t\t\t\t</ul>\n                        <div id='warnreason-" . $comments[$i]['id'] . "-" . $comments[$i]['user_id'] . "' style='display:none; padding: 0 0 5px 0px;'>&nbsp;</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t" . (empty($comments[$i]['comments']) ? '' : '<ul>' . comments($pid, $name, $comments[$i]['comments'], $comm_blocked, $project_end) . '</ul>') . "\n\t\t\t</li>\n\t\t";
        if ($comments[$i]['is_new']) {
            $set_branch_as_read = true;
        }
    }
    if ($set_branch_as_read) {
        $p = new projects();
        $data = array("id" => $pid, "kind" => 7, "user_id" => $project["user_id"]);
        $p->SetRead($data, get_uid(false), true);
    }
    --$level;
    return $html;
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:59,代码来源:contest.php

示例7: SaveStatus

function SaveStatus($text, $statusType, $login = NULL)
{
    session_start();
    $freelancer = new freelancer();
    $text = addslashes(substr(stripslashes(trim($text)), 0, 200));
    close_tags($text, 's');
    $freelancer->status_text = antispam(htmlspecialchars(htmlspecialchars_decode(change_q_x(trim($text), true, false), ENT_QUOTES), ENT_QUOTES));
    $freelancer->status_type = intval($statusType);
    if ($freelancer->statusToStr($statusType)) {
        $stdStatus = "";
        $objResponse = new xajaxResponse();
        $uid = hasPermissions('users') && $login != $_SESSION['login'] ? $freelancer->GetUid($err, $login) : get_uid(false);
        $pro = hasPermissions('users') && $login != $_SESSION['login'] ? is_pro(true, $uid) : is_pro();
        $error = $freelancer->Update($uid, $res);
        if (!$freelancer->status_text) {
            $freelancer->status_text = $stdStatus;
        }
        $freelancer->status_text = stripslashes($freelancer->status_text);
        switch ($freelancer->status_type) {
            case 1:
                $status_cls = 'b-status b-status_busy';
                break;
            case 2:
                $status_cls = 'b-status b-status_abs';
                break;
            case -1:
                $status_cls = 'b-status b-status_no';
                break;
            default:
                $status_cls = 'b-status b-status_free';
        }
        if (!$noassign) {
            require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stop_words.php';
            $stop_words = new stop_words(hasPermissions('users'));
            $sStatusText = $pro ? $freelancer->status_text : $stop_words->replace($freelancer->status_text);
            //$GLOBALS['xajax']->setCharEncoding("windows-1251");
            $jsobj = json_encode(array('data' => iconv('CP1251', 'UTF8', $freelancer->status_text)));
            $objResponse->assign("statusText", "innerHTML", $freelancer->status_text == $stdStatus ? "" : reformat($sStatusText, 40, 0, 1, 25));
            $objResponse->assign("statusTitle", "innerHTML", $freelancer->statusToStr($statusType));
            //            $objResponse->assign("statusTitle", "style.display", $statusType > -1 ? '' : 'none');
            $objResponse->script("statusType = {$statusType};\n\t\t\t                      statusTxt = document.getElementById('statusText').innerHTML;\n\t\t\t                      statusTxtSrc = {$jsobj};");
        }
        $objResponse->script("\$('bstatus').erase('class');\n             \$('bstatus').addClass('{$status_cls}');");
    }
    return $objResponse;
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:46,代码来源:status.server.php

示例8: ChangeTextPrev

function ChangeTextPrev($proj_id, $check)
{
    session_start();
    $objResponse = new xajaxResponse();
    $portf = new portfolio();
    $descr = $portf->GetField($proj_id, 'descr');
    if (!$portf->ChangeTextPrev($_SESSION['uid'], intval($proj_id), intval($check))) {
        $script = "document.getElementById('prev" . $proj_id . "').disabled = false;";
        if ($check != 0) {
            $text = '<div align="left" style="width:200px;vertical-align:top;"><div style="text-align:left;vertical-align:top;">' . trim(viewdescr($user->login, reformat($descr, 32, 0, 1))) . '</div></div>';
        }
        $objResponse->assign('previmg' . intval($proj_id), 'innerHTML', $text);
    } else {
        $script = "document.getElementById('prev" . $proj_id . "').disabled = false;";
    }
    $objResponse->script($script);
    return $objResponse;
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:18,代码来源:portfoliopos.server.php

示例9: projectUpdateFeedback

function projectUpdateFeedback($params)
{
    $uid = get_uid(false);
    $objResponse =& new xajaxResponse();
    $feedback_id = @$params['feedback_id'];
    $feedback_id = intval($feedback_id);
    $feedback = @$params['feedback'];
    $feedbackModel = new projects_feedback();
    $data = $feedbackModel->getFeedback($feedback_id);
    if (!$data) {
        return $objResponse;
    }
    $is_adm = hasPermissions('projects');
    $is_owner = $data['user_id'] == $uid;
    $is_editable = $data['rating'] < 0 || projects_feedback::isAllowFeedback($data['posted_time']);
    if (!($is_owner && $is_editable) && !$is_adm) {
        return $objResponse;
    }
    $is_valid = $feedbackModel->attributes(array('feedback' => $feedback, 'modified_id' => $uid));
    if (!$is_valid) {
        return $objResponse;
    }
    $ret = $feedbackModel->updateFeedback($feedback_id);
    if (!$ret) {
        return $objResponse;
    }
    $data = $feedbackModel->attributes();
    $ele_id = 'form_container_' . $feedback_id . '-3';
    $text_id = 'op_message_' . $feedback_id . '-3';
    $objResponse->script("\$('{$text_id}').setStyle('display', 'block');");
    $objResponse->script("\$('{$ele_id}').setStyle('display', 'none');");
    $objResponse->script("\$\$('.sbrmsgblock').setStyle('display', 'block');");
    $objResponse->assign($text_id, 'innerHTML', '<p>' . reformat($data['feedback'], 30) . '</p>');
    $objResponse->assign($ele_id, 'innerHTML', '');
    return $objResponse;
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:36,代码来源:projects_status.server.php

示例10: reformat

            <?php 
    if ($_SESSION['F']) {
        ?>
Исполнителя<?php 
    } else {
        //if
        ?>
<a href="<?php 
        echo $site_uri ? $site_uri . '&' : '?';
        ?>
access=A&F=<?php 
        echo $sbr->frl_login;
        ?>
" class="b-layout__link">Исполнителя</a><?php 
    }
    //else
    ?>
        </div>
	</div>
</div>
<?php 
}
//if
?>
<h1 class="b-page__title <?php 
echo $css_selector_crumbs ? $css_selector_crumbs : 'b-page__title_padbot_5';
?>
"><?php 
echo reformat($crumbs[count($crumbs) - 1]['name'], 35, 0, 1);
?>
</h1>
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.sbr-crumbs.php

示例11: getProjectComplaints

/**
 * Возвращает список жалоб на проект в админке.
 * 
 * с xajax не работает
 * 
 * @param  int $nProjId Идентификатор проекта на который жалуются
 * @param  string $group группа, в которой находится -> (new, approved, refused)
 * @return string json_encode данные
 */
function getProjectComplaints($nPrjId = 0, $group = 'new')
{
    session_start();
    $res = array();
    if (hasPermissions('projects') && $nPrjId) {
        require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/projects.php';
        $oPrj = new projects();
        $aMsgs = $oPrj->getProjectComplaints($nPrjId, $group);
        $aData = array();
        foreach ($aMsgs as $aOne) {
            $aFiles = array();
            if ($aOne['files']) {
                $files = preg_split("/,/", $aOne['files']);
                foreach ($files as $file) {
                    if ($file && $file != 'false') {
                        $aFiles[] = '<a target="_blank" href="' . WDCPREFIX . '/users/' . $aOne['e_login'] . '/upload/' . $file . '">' . $file . '</a><br/>';
                    }
                }
            }
            $status = 0;
            if ($aOne['is_satisfied'] == 't') {
                $status = 1;
            } elseif ($aOne['is_satisfied'] == 'f') {
                $status = 2;
            }
            $aTmp = array('login' => iconv('CP1251', 'UTF-8', $aOne['login']), 'name' => iconv('CP1251', 'UTF-8', $aOne['uname']), 'surname' => iconv('CP1251', 'UTF-8', $aOne['usurname']), 'date' => date('d.m.Y', strtotime($aOne['date'])), 'text' => $aOne['msg'] ? iconv('CP1251', 'UTF-8', reformat(html_entity_decode($aOne['msg'], ENT_QUOTES), 60)) : '', 'type' => iconv('CP1251', 'UTF-8', projects_complains::GetComplainType($aOne['type'], true)), 'status' => $status, 'pdate' => date('d.m.Y', strtotime($aOne['processed_at'])), 'admin_login' => iconv('CP1251', 'UTF-8', $aOne['admin_login']), 'admin_uname' => iconv('CP1251', 'UTF-8', $aOne['admin_uname']), 'admin_usurname' => iconv('CP1251', 'UTF-8', $aOne['admin_usurname']), 'files' => $aFiles);
            $aData[] = $aTmp;
        }
        $res['success'] = true;
        $res['data'] = $aData;
    } else {
        $res['success'] = false;
    }
    echo json_encode($res);
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:44,代码来源:projects.server.php

示例12: notes

$oNotes = new notes();
$aNote = $oNotes->GetNoteInt($_SESSION['uid'], $user->uid, $error);
?>

<?php 
if ($aNote) {
    ?>
<div class="bBD" id="zametkaBD">
    <div id="zametka" class="b-layout b-layout_pad_10 b-layout_bord_ffeda9 b-layout_bordrad_1 b-fon_bg_fff9bf_hover b-layout_hover ">
      <?php 
    /*<a  href="javascript:void(0);" onclick="if(confirm('Вы действительно хотите удалить заметку?')){xajax_saveHeaderNote('<?=$name?>','');}"><img src="/images/btn-remove2.png" width="11" height="11" alt="" /></a>*/
    ?>
      <a class="b-icon b-icon__edit b-icon_float_right  b-layout_hover_show" href="javascript:void(0);" onclick="headerNoteForm();"></a>
      <div class="b-layout__txt b-layout__txt_bold b-layout__txt_padbot_10">Ваша заметка</div>
      <div class="b-layout__txt b-layout__txt_fontsize_11"><?php 
    echo reformat($aNote['n_text'], 24, 0, 0, 1, 24);
    ?>
</div>
    </div>
</div>
<?php 
} else {
    ?>
    <div id="zametka" class="b-layout__txt b-layout__txt_padtop_5 b-layout__txt_inline-block"><span class="b-icon b-icon__cont b-icon__cont_note" ></span><a class="b-layout__link b-layout__link_bordbot_dot_0f71c8 b-layout__link_fontsize_13" href="javascript:void(0);" onclick="$('zametka_fmr').toggleClass('b-layout_hide');">Оставить заметку</a></div>
<?php 
}
?>
    
    <div id="zametka_fmr" class="b-layout b-layout_pad_15 b-layout_bord_ffeda9 b-layout_bordrad_1 b-layout_hide b-fon_bg_fff9bf b-fon">
          <form action="">
             <input type="hidden" name="rating" id="note_rating" value="<?php 
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:header_note.php

示例13: foreach

                        </tr> 
                    </tfoot>
					<tbody>
                        <?php 
foreach ($sbr->stages as $stg) {
    $t = 0;
    if (!$stg->data['num']) {
        $stg_0 = $stg;
    }
    ?>
						<tr>
                            <td style="text-align:left"><a href="?site=Stage&id=<?php 
    echo $stg->id;
    ?>
"><?php 
    echo reformat($stg->name, 25, 0, 1);
    ?>
</a></td>
                            <td><?php 
    echo sbr_meta::view_cost($stg->cost, $sbr->cost_sys, false);
    ?>
</td>
                            <?php 
    foreach ($sbr->scheme['taxes'][1] as $tax_id => $tax) {
        if ($tax['not_used']) {
            continue;
        }
        $t += $ts = round($stg->calcTax($tax), 2);
        ?>
                               <td><?php 
        echo sbr_meta::view_cost($ts, NULL, false);
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:stage-reserve.php

示例14: preg_replace

        /*if ( $theme['moderator_status'] === '0' ) {
              continue;
          }*/
        ?>
    	<item>
    	<title><?php 
        echo preg_replace(array("/&/", "/</", "/>/"), array("&#x26;", "&#x3C;", "&#x3E;"), html_entity_decode($theme['title'], ENT_QUOTES, 'cp1251'));
        ?>
</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>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:blogs.php

示例15: reformatExtended

                        <span class="b-icon b-icon_sbr_oattent b-icon_margleft_-25"></span>
                        Ваш проект перенесен в раздел Вакансии. Пожалуйста, оплатите его размещение, чтобы видеть отклики фрилансеров и иметь возможность выбрать Исполнителя.
                    </div>
                </div>
            <?php 
            }
            ?>

            <?php 
            $sDescr = $prj['moderator_status'] === '0' && $prj['kind'] != 4 && $user->is_pro != 't' ? $stop_words->replace($prj['descr']) : $prj['descr'];
            if (is_new_prj($prj['post_date'])) {
                $sDescr = reformatExtended($sDescr);
            }
            ?>
            <div class="fl2_offer_content"><?php 
            echo ereg_replace("\r", "", ereg_replace("\n", "", reformat($sDescr, 65)));
            ?>
</div>

<?php 
            //@todo: Список приатаченный файлов для заказчика. Лишняя нагрузка на БД. Пока скрываю.
            /*if(get_uid(false)) include dirname(__FILE__)."/attachlist.tpl.php";*/
            ?>
            <br />
            <div class="fl2_offer_meta">Прошло времени с момента публикации: 
		<?php 
            echo ago_pub_x($project->getCreateDateEx());
            ?>
                <br />
            	Автор: <a href="/users/<?php 
            echo $user->login;
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:projects_inner.php


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