first commit

This commit is contained in:
2024-12-12 15:33:18 +01:00
commit 2c8998663e
3360 changed files with 777573 additions and 0 deletions

View File

@@ -0,0 +1,138 @@
<div class="panel panel-info panel-border top">
<div class="panel-heading">
<span class="panel-title">Edycja strony: <u><?= $this -> site['name'];?></u></span>
</div>
<div class="panel-heading p5" style="height: auto;">
<div class="row mb10 pl5">
<div class="col col-xs-12">
<?= \Html::button(
array(
'class' => 'btn btn-sm btn-success',
'text' => 'Zatwierdź',
'js' => 'checkForm( "formularz" );',
'icon' => 'fa-check-circle mr5'
)
);?>
<?= \Html::button(
array(
'class' => 'btn btn-sm btn-danger',
'text' => 'Anuluj',
'url' => '/ranker/main_view/id=' . $this -> site['id'],
'icon' => 'fa-times mr5'
)
);?>
</div>
</div>
</div>
<div class="panel-body">
<form method='POST' action='/ranker/site_save/' id="formularz" class="form-horizontal">
<input type="hidden" name="id" value="<?= $this -> site['id'];?>" />
<div class="row">
<div class="col col-md-6">
<?= \Html::input(
array(
'name' => 'name',
'value' => $this -> site['name'],
'class' => 'require',
'label' => 'Nazwa'
)
);?>
<?= \Html::input(
array(
'name' => 'url',
'value' => $this -> site['url'],
'class' => 'require',
'label' => 'Url (bez http://)'
)
)?>
<?= \Html::input(
array(
'name' => 'subscription',
'class' => 'number-format',
'value' => $this -> site['subscription'] != '0.00' ? $this -> site['subscription'] : null,
'label' => 'Abonament miesięczny'
)
);?>
<?= \Html::input(
array(
'name' => 'date_start',
'class' => 'date',
'value' => $this -> site['date_start'] != '0000-00-00' ? $this -> site['date_start'] : null,
'label' => 'Data rozpoczęcia'
)
);?>
<?= \Html::input(
array(
'name' => 'date_end',
'class' => 'date',
'value' => $this -> site['date_end'] != '0000-00-00' ? $this -> site['date_end'] : null,
'label' => 'Data zakończenia'
)
);?>
<?= \Html::input(
array(
'name' => 'discount',
'class' => 'number-format',
'value' => $this -> site['discount'] != '0.00' ? $this -> site['discount'] : null,
'label' => 'Rabat w %'
)
);?>
<?= \Html::textarea(
array(
'name' => 'comments',
'id' => 'comment',
'value' => $this -> site['comments'],
"label" => 'Komentarz'
)
);?>
<?= \Html::input_switch(
array(
'name' => 'majestic',
'label' => 'Sprawdzaj parametry Majestic',
'checked' => $this -> site['majestic'] ? 1 : 0,
'values' => [
'1' => 'tak',
'0' => 'nie'
]
)
);?>
<?= \Html::input_switch(
array(
'name' => 'semstorm',
'label' => 'Sprawdzaj parametry Semstorm',
'checked' => $this -> site['semstorm'] ? 1 : 0,
'values' => [
'1' => 'tak',
'0' => 'nie'
]
)
);?>
<?= \Html::input_switch(
array(
'name' => 'need_confirm',
'label' => 'Wymagaj potwierdzenia',
'checked' => $this -> site['need_confirm'] ? 1 : 0,
'values' => [
'1' => 'tak',
'0' => 'nie'
]
)
);?>
</div>
</div>
</form>
</div>
</div>
<script type="text/javascript" src="/libraries/framework/vendor/plugins/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/libraries/framework/vendor/plugins/ckeditor/adapters/jquery.js"></script>
<script type="text/javascript">
$( document ).ready( function ()
{
$( 'textarea#comment' ).ckeditor(
{
toolbar : 'Basic',
language: 'pl',
height:'100'
});
});
</script>