예제 #1
0
파일: index.php 프로젝트: Makeyko/galaxysss
function drawItem($d)
{
    $html = [];
    $html[] = Html::img(\Yii::$app->assetManager->getBundle('app\\assets\\Maya\\Asset')->baseUrl . "/images/stamp/{$d['stamp']}.jpg", ['height' => 40, 'alt' => \cs\models\Calendar\Maya::$stampRows[$d['stamp'] - 1][0], 'title' => \cs\models\Calendar\Maya::$stampRows[$d['stamp'] - 1][0], 'class' => 'js-stamp']);
    $html[] = Html::tag('span', $d['day'] . '.' . $d['month'], ['class' => 'js-stamp', 'title' => GsssHtml::dateString($d['date'])]);
    $html[] = Html::tag('br');
    $html[] = 'kin: ' . $d['kin'];
    $html[] = $d['nearPortal'] == 0 ? 'п' : '';
    return join('', $html);
}
예제 #2
0
파일: index.php 프로젝트: Makeyko/galaxysss
                    <div class="col-lg-3">
                        <?php 
    if ($item['image'] . '' != '') {
        ?>
                            <img src="<?php 
        echo $item['image'];
        ?>
" class="thumbnail" width="80">
                        <?php 
    }
    ?>
                    </div>

                    <div class="col-lg-9">
                        <?php 
    echo Html::tag('span', GsssHtml::dateString($item['date_insert']), ['style' => 'font-size: 80%; margin-bottom:10px; color: #c0c0c0;']);
    ?>
                        <br>
                        <?php 
    echo $item['description'];
    ?>
                        <br>
                        <br>
                        <button class="btn btn-danger btn-xs buttonDelete" data-id="<?php 
    echo $item['id'];
    ?>
">Удалить</button>
                        <?php 
    if (\yii\helpers\ArrayHelper::getValue($item, 'is_added_site_update', 0) == 0) {
        ?>
                            <button class="btn btn-success btn-xs buttonAddSiteUpdate" data-id="<?php 
예제 #3
0
            <td align="center" bgcolor="" height="30" width="40">
            </td>
            <?php 
    foreach ($row as $day) {
        ?>
                <td align="center"
                    bgcolor="<?php 
        echo $day['isPortal'] ? 'green' : (($day['kin'] > 120 and $day['kin'] <= 140) ? '#dcdcdc' : colorStamp($day['stamp']));
        ?>
"
                    height="30"
                    width="40"
                    >
                    <span
                        title="<?php 
        echo GsssHtml::dateString($day['date']);
        ?>
"
                        class="js-stamp"
                        ><?php 
        echo $day['day'];
        ?>
.<?php 
        echo $day['month'];
        ?>
</span>
                </td>
            <?php 
    }
    ?>
        </tr>
예제 #4
0
use cs\services\Url as csUrl;
$date = $item->getField('date');
$year = substr($date, 0, 4);
$month = substr($date, 5, 2);
$day = substr($date, 8, 2);
?>

<div class="col-lg-4 blogItem">
    <div class="header">
        <h4><?php 
echo Html::encode($item->getName());
?>
</h4>
    </div>
    <p style="font-size: 70%; color: #808080;"><?php 
echo \app\services\GsssHtml::dateString($date);
?>
</p>
    <p style="margin-bottom: 0px;padding-bottom: 0px;">
        <a href="<?php 
echo $item->getLink();
?>
">
            <img src="<?php 
echo $item->getImage();
?>
" width="100%" alt="" class="thumbnail">
        </a>
    </p>
    <p><?php 
echo Html::encode($item->getField('description'));