Issues (213)

src/views/order/index.php (1 issue)

Labels
Severity
1
<?php
2
3
use hipanel\modules\server\assets\ServerAsset;
4
use yii\helpers\Html;
5
6
$this->title = Yii::t('hipanel:server:order', 'Order server');
7
$this->params['breadcrumbs'][] = $this->title;
8
9
ServerAsset::register($this);
10
11
$this->registerJs("
12
function eq() {
13
    var openvz = $('#openvz .order-body'), xenssd = $('#xenssd .order-body');
14
    openvz.height(xenssd.height());
15
}
16
$( window ).on('resize', function() { eq(); });
17
$('a.sidebar-toggle').click(function() { setTimeout(function(){ eq(); }, 500); });
18
eq();
19
", \yii\web\View::POS_LOAD);
20
21
?>
22
<style>
23
    .order-box {
24
        padding: 10px;
25
        background: #fff;
26
        border-radius: 3px;
27
    }
28
29
    .order-header {
30
        border-bottom: 1px solid #f4f4f4;
31
        padding-bottom: 10px;
32
    }
33
34
    .order-title {
35
        font-size: 18px;
36
        margin: 10px;
37
        line-height: 1;
38
    }
39
40
    .order-body {
41
        padding: 1em;
42
        height: auto;
43
    }
44
</style>
45
46
47
<div class="row">
48
    <div class="col-sm-6">
49
        <div id="openvz" class="order-box">
50
            <div class="order-header text-center">
51
                <h3 class="order-title">
52
                    <?= Html::img(Yii::$app->assetManager->getPublishedUrl('@vendor/hiqdev/hipanel-module-server/src/assets') . '/img/openvz-logo.png', ['style' => 'height: 15px; line-height: 1;']) ?>
0 ignored issues
show
Are you sure Yii::app->assetManager->...ule-server/src/assets') of type false|string can be used in concatenation? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

52
                    <?= Html::img(/** @scrutinizer ignore-type */ Yii::$app->assetManager->getPublishedUrl('@vendor/hiqdev/hipanel-module-server/src/assets') . '/img/openvz-logo.png', ['style' => 'height: 15px; line-height: 1;']) ?>
Loading history...
53
                    &nbsp;
54
                    <?= Yii::t('hipanel:server:order', 'OpenVZ') ?>
55
                </h3>
56
            </div>
57
            <div class="order-body">
58
                <p class="text-muted text-justify">
59
                    <?= Yii::t('hipanel:server:order', 'VDS based on OpenVZ - is an inexpensive and reliable solution for small projects that do not require many resources (HTML web-sites, landing pages, small blogs, personal websites, business cards, etc.). An additional advantage of our VDS based on OpenVZ is utilization of SSD cache system that improves performance of the disk subsystem during frequently accessed data readings.') ?>
60
                </p>
61
            </div>
62
            <?= Html::a(Yii::t('hipanel:server:order', 'ORDER SERVER'), ['open-vz'], ['class' => 'btn bg-orange btn-lg btn-block']) ?>
63
        </div>
64
    </div>
65
    <div id="xenssd" class="col-sm-6">
66
        <div class="order-box">
67
            <div class="order-header text-center">
68
                <h3 class="order-title">
69
                    <?= Html::img(Yii::$app->assetManager->getPublishedUrl('@vendor/hiqdev/hipanel-module-server/src/assets') . '/img/xen-logo.png', ['style' => 'height: 15px; line-height: 1;']) ?>
70
                    &nbsp;
71
                    <?= Yii::t('hipanel:server:order', 'XEN SSD') ?>
72
                </h3>
73
            </div>
74
            <div class="order-body">
75
                <p class="text-muted text-justify">
76
                    <?= Yii::t('hipanel:server:order', 'The main advantage of a VDS based on XEN with SSD is speed. It is more than 250 times faster than a conventional HDD. Due to Xen virtualization type, all resources are assigned to user and the operation of your VDS does not depend on the main server\'s load.') ?>
77
                    <?= Yii::t('hipanel:server:order', 'Virtual dedicated server based on Xen is a perfect solution for most medium and large projects because of its performance that is highly competitive with the performance of a dedicated server.') ?>
78
                </p>
79
            </div>
80
            <?= Html::a(Yii::t('hipanel:server:order', 'ORDER SERVER'), ['xen-ssd'], ['class' => 'btn bg-purple btn-lg btn-block']) ?>
81
        </div>
82
    </div>
83
</div>
84
85