<?php

//Autore: Alex Vezzelli - Alex Soluzioni Web
//url: http://www.alexsoluzioniweb.it/
$traduzioneController = new TraduzioneController();
?>

<h1>Gestione Traduzioni</h1>


<?php 
//pagina inserisci cv
foreach ($_POST as $key => $value) {
    $traduzione = new Traduzione();
    $traduzione->setCod($key);
    if (strpos($key, 'ita') == true) {
        //italiano
        $traduzione->setLan('ita');
    } else {
        if (strpos($key, 'eng')) {
            //inglese
            $traduzione->setLan('eng');
        }
    }
    $traduzione->setText($value);
    //salvo
    $traduzioneController->salvaTraduzione($traduzione);
}
?>

<form action="<?php 
function getLanEN()
{
    $tradController = new TraduzioneController();
    $lan = array();
    $lan['sendCvTitle'] = 'Send us your Curriculum!';
    $lan['name'] = 'Name';
    $lan['surname'] = 'Surname';
    $lan['email'] = 'Email';
    $lan['category'] = 'Occupational Category';
    $lan['add-role'] = 'Add your role';
    $lan['occupation'] = 'Where are you looking for employment?';
    $lan['upload-cv'] = 'Upload your Curriculum';
    $lan['upload-button'] = 'Upload';
    $lan['accept-privacy'] = 'I accept <a target="_blank" href="http://www.theworknote.com/privacy/">the Privacy Policy</a>';
    $lan['region'] = 'Region';
    $lan['province'] = "Province";
    $lan['send-cv'] = 'Send your Curriculum';
    $lan['select-role'] = 'Select Role';
    $lan['no-role'] = 'No role found.';
    $lan['search'] = 'Search';
    $lan['role'] = 'Role';
    //confirmation-email
    $lan['email-save-title-user'] = '******';
    $lan['email-save-title-admin'] = 'New Curriculum uploaded';
    $lan['msg-save-email-user'] = '******';
    $lan['msg-save-email-admin'] = 'A new curriculum has been loaded into the system';
    $lan['msg-save-email-admin-cv-to-approve'] = 'A new curriculum has been loaded into the system and needs to be approved';
    //update email
    $lan['msg-approved-email-title'] = 'Curriculum approved!';
    $lan['msg-approved-email-msg'] = 'Your curriculum has been approved and is now visible to the companies registered in the site.<br><br>Best Regards<br>The Work Note';
    //testo aggiunto pre-form caricamento cv
    //$lan['pre-form-upload-title'] = 'Welcome to the "The WorkNote CV require work"';
    $lan['pre-form-upload-title'] = $tradController->getTraduzione('inserisci-cv-title-eng');
    //$lan['pre-form-upload-text'] = 'Post your CV on web for free has never been as easy as on The WorkNote. If you already have one compiled and updated you can simply load it and be viewed by the companies attending will be looking on The WorkNote The professional profiles with your characteristics.';
    $lan['pre-form-upload-text'] = $tradController->getTraduzione('inserisci-cv-text-1-eng');
    //testo post-form
    //$lan['post-form-link-cv'] = 'Here the DOWNLOAD for the empty european CV';
    $lan['post-form-link-cv'] = $tradController->getTraduzione('inserisci-cv-link-eng');
    //$lan['post-form-text'] = '<p>A good curriculum should be:</p> <ul><li>layout clear and edited;</li><li>neatly written;</li><li>highlighting detached paragraphs;</li><li>precise in the information provided (periods of work, company names, titles, training);</li><li>include results achieved;</li><li>correct, without spelling errors;<li>easy, succinct style but not too concise;</li><li>encourage reading, sliding, direct, with use of the first person;</li><li>customized to the business.</li></ul><p>Note: The CV must be regularly updated.</p>';
    $lan['post-form-text'] = '<p>' . $tradController->getTraduzione('inserisci-cv-text-2-eng') . '</p>';
    //scopri cv
    //$lan['find-cv-title'] = 'Welcome to the "The WorkNote CV offer work"';
    $lan['find-cv-title'] = $tradController->getTraduzione('scopri-cv-title-eng');
    //$lan['find-cv-text'] = 'Welcome dear customer in the WorkNote section that offers guests a free customizable search of job profiles for each field and business requirement.On this page you will find all the European CV format uploaded by anyone looking for a job or want to change the actual and it can be viewed online or downloaded.';
    $lan['find-cv-text'] = $tradController->getTraduzione('scopri-cv-text-1-eng');
    //$lan['how-it-works-title'] = 'How does it work:';
    $lan['how-it-works-title'] = $tradController->getTraduzione('scopri-cv-how-title-eng');
    //$lan['how-it-works-text'] = 'The database splits the CV and show only those belonging at your business category, you only have to split by region, province and / or role.';
    $lan['how-it-works-text'] = $tradController->getTraduzione('scopri-cv-text-2-eng');
    //other messages
    $lan['no-curriculum-to-show'] = 'No curriculum to display';
    $lan['no-identification-province'] = 'The system failed to identify your province. <br> We ask that you update it using our suggestions.';
    $lan['select-region-province'] = 'Select region and province.';
    $lan['update-province'] = 'Update province';
    $lan['profile-not-complete'] = 'Your profile is not complete. To take advantage of this feature we ask that you complete the profiling by adding the address of your business.<br>';
    $lan['complete-address'] = 'Complete address';
    $lan['user-not-registered'] = 'Unregistered user!';
    return $lan;
}