Plugin Directory

Changeset 2708599


Ignore:
Timestamp:
04/12/2022 12:46:01 PM (4 years ago)
Author:
joanv
Message:

2.2.0 Push applications to Tamago-DB

Add : save API id in application
Add : add JSON form data to application list
Fix : storing 2nd lvl form data in database
Fix : previous migration check now being handled correctly

Location:
jobsearch
Files:
4 added
24 edited

Legend:

Unmodified
Added
Removed
  • jobsearch/admin/adminListOption.php

    r2084303 r2708599  
    99namespace Jobsearch\Admin;
    1010
     11use Jobsearch\Apply\ApplyHelper;
    1112use Jobsearch\Helper;
    1213use Jobsearch\Helper\Translation;
    1314
    14 class AdminList{
    15 
    16 // Show all the apply list
    17     function tdb_jb_get_list_option(){
     15class AdminList {
     16
     17    // Show the application list
     18    function tdb_jb_get_list_applications(){
    1819        $helper = new Helper();
    1920        $adminHelper = new AdminHelper();
     
    2728            $offset = $helper->tdb_jb_sanitize($_GET["offset"],'text');
    2829        }
    29         $applyArray = $adminHelper->tdb_jb_get_apply($nbApplyToShow,$offset);
    30         $attachmentArray = $adminHelper->tdb_jb_get_attachment();
     30        $applyArray = $adminHelper->tdb_jb_get_applications($nbApplyToShow,$offset);
     31        $attachmentArray = $adminHelper->tdb_jb_get_attachments();
    3132
    3233        $totalRow = $adminHelper->tdb_jb_total_row(TDB_TABLE_APPLY);
     
    3435        foreach($applyArray as $content){
    3536            $id = "";
     37            $idApi = "";
    3638            $idJob = "";
    3739            $name = "";
     
    4143            $timezone = "";
    4244            $link = "";
    43             // Get the applycation data
     45            // Get the application data
    4446            foreach($content as $key => $value) {
    4547                switch ($key){
    4648                    case "id":
    4749                        $id = $value;
     50                        break;
     51                    case "idApi":
     52                        $idApi = $value;
    4853                        break;
    4954                    case "idJob":
     
    99104            $adminBodyArray = array(
    100105                "langId" => TDB_LANG_WORDPRESSID,
     106                "langIdApi" =>  TDB_LANG_IDAPI,
    101107                "langIdJob" =>  TDB_LANG_IDJOB,
    102108                "langName" =>  TDB_LANG_NAME,
     
    106112                "langFile" =>  TDB_LANG_FILE,
    107113                "id" => $id,
     114                "idApi" => $idApi,
    108115                "idJob" => $idJob,
    109116                "name" => $name,
     
    111118                "json" => $json,
    112119                "detail" => $detail,
    113                 "link" => $link
     120                "link" => $link,
     121                "langPushApplication" => TDB_LANG_PUSH_APPLICATION,
     122                "langPushConfirm" => TDB_LANG_PUSH_CONFIRM
    114123            );
    115124            $helper->tdb_jb_show_template(TDB_ADMIN_LIST_TPL, $adminBodyArray);
     
    118127        $helper->tdb_jb_show_template(TDB_ADMIN_LIST_FOOT_TPL, $adminFooterArray);
    119128    }
     129
     130    // Push application to Tamago-DB
     131    function tdb_jb_push_application($id)
     132    {
     133        $helper = new Helper();
     134        $adminHelper = new AdminHelper();
     135        $applyArray = $adminHelper->tdb_jb_get_application($id);
     136        $attachmentArray = $adminHelper->tdb_jb_get_attachment_for_application($id);
     137
     138        $json = $applyArray[$id]['json'];
     139        $api = $applyArray[$id]['idApi'];
     140        $linkApi  = $helper->tdb_jb_get_api_link('LinkCreate', $api);
     141        $linkFile  = $helper->tdb_jb_get_api_link('LinkFile', $api);
     142
     143        $applyHelper = new ApplyHelper();
     144
     145        $requests_response = $applyHelper->tdb_jb_wp_post_apply($linkApi, $json, $api);
     146        $jsonResponse = json_decode($requests_response["body"], true);
     147
     148        if (isset($jsonResponse["status"])) {
     149            $status = $jsonResponse["status"];
     150        }
     151        if (isset($jsonResponse["message"])) {
     152            $message = $jsonResponse["message"];
     153        }
     154        // get the result
     155        if (!empty($status)) {
     156            switch ($status) {
     157                // error
     158                case "400":
     159                    $bError = true;
     160                    foreach ($jsonResponse["data"] as $key => $value) {
     161                        if (is_array($value)) {
     162                            foreach ($value as $errorMessage) {
     163                                if (is_array($errorMessage)) {
     164                                    foreach ($errorMessage as $errorMessage2) {
     165                                        if (is_array($errorMessage2)) {
     166                                            foreach ($errorMessage2 as $errorMessage3) {
     167                                                $errorField[$key] = $errorMessage3;
     168                                            }
     169                                        } else {
     170                                            $errorField[$key] = $errorMessage2;
     171                                        }
     172                                    }
     173                                } else {
     174                                    $errorField[$key] = $errorMessage;
     175                                }
     176                            }
     177                        } else {
     178                            $errorField[$key] = $value;
     179                        }
     180                    }
     181                    break;
     182                // success
     183                case "201":
     184                    if (isset($jsonResponse["data"]["id"])) {
     185                        $id = $jsonResponse["data"]["id"];
     186                    }
     187                    $message = TDB_LANG_PUSH_APPLICATION_SUCCESS;
     188                    //attachment part
     189                    $messageAttachment = "";
     190                    // in case the application is successful and an ID is sent back
     191                    if ($id > 0) {
     192                        $linkFile .= "/" . $id . "/attachment";
     193
     194                        //Get attachment data
     195                        if (!empty($attachmentArray)) {
     196                            $attachmentsUrlArray = [];
     197                            foreach ($attachmentArray as $att) {
     198                                $nameAttachment = $att['name'];
     199                                $file = $att['file'];
     200                                if ($nameAttachment <> "" && $file <> "") {
     201                                    $fileDir = content_url() . "/uploads/jobsearch/" . $file;
     202                                    $fileData = base64_encode(file_get_contents($fileDir));
     203                                    $attachmentsUrlArray[$id] = array('name' => $nameAttachment, 'file' => $fileData);
     204                                }
     205                            }
     206
     207                            // Send attachments
     208                            $fileUrlArray = array('attachments' => $attachmentsUrlArray);
     209                            $responseAttachement = $applyHelper->tdb_jb_curl_send_attachement($linkFile, $fileUrlArray, $api);
     210                            $jsonResponseAttachment = json_decode($responseAttachement, true);
     211                            $attachmentStatus = $jsonResponseAttachment['status'];
     212                            switch ($attachmentStatus) {
     213                                // Case sent
     214                                case "201":
     215                                    //$messageAttachment = TDB_LANG_THANKATTACHMENT;
     216                                    break;
     217                                // Case error
     218                                default:
     219                                    $bError = true;
     220                                    if (isset ($jsonResponseAttachment['message'])) {
     221                                        $messageAttachment = $jsonResponseAttachment['message'];
     222                                    } else {
     223                                        $messageAttachment = TDB_LANG_ANERRORATTACHMENT;
     224                                    }
     225                            }
     226                        }
     227                    }
     228                    break;
     229                default:
     230                    if (isset($jsonResponse["message"]) && $jsonResponse["message"] != '') {
     231                        $message = $jsonResponse['message'];
     232                    } else {
     233                        $message = TDB_LANG_ANERROROCCURED;
     234                    }
     235                    break;
     236
     237            }
     238        }
     239
     240        return [$message, $messageAttachment];
     241    }
    120242}
  • jobsearch/admin/helper/adminHelper.php

    r2510468 r2708599  
    77use Jobsearch\SQL;
    88
    9 class AdminHelper{
     9class AdminHelper {
     10
    1011    // Update param who have to be shown on list page
    1112    function tdb_jb_updt_param($array) {
     
    1718        }
    1819    }
     20
    1921    // Update param who have to be shown on list page
    2022    function tdb_jb_updt_tpl($array, $type) {
     
    5961    }
    6062
    61 // Clear required param, mandatory param or apply param or Filter
     63    // Clear required param, mandatory param or apply param or Filter
    6264    function tdb_jb_clear_param_sql($valueToEmpty) {
    6365        global $wpdb;
     
    6668    }
    6769
    68 // Get all the language id used in database
     70    // Get all the language id used in database
    6971    function tdb_jb_get_table_language_value ($table, $columnName1, $columnName2 ) {
    7072        global $wpdb;
     
    8385    }
    8486
    85 // Update translation on database
     87    // Update translation on database
    8688    function tdb_jb_updt_database() {
    8789        global $gTypes;
     
    106108
    107109        if(is_array($glanguageUsedId) && !empty($glanguageUsedId)){
    108             // Get the correspondance between old language id and new one before update
     110            // Get the correspondence between old language id and new one before update
    109111            foreach ($glanguageUsedId as $keyNew => $valueNew) {
    110112                $val = $valueNew;
     
    144146    }
    145147
    146 //update id language on all table if something changed
     148    //update id language on all table if something changed
    147149    function tdb_jb_updt_id_language_all_table($array, $tableName, $column1, $column2) {
    148150        global $wpdb;
     
    177179    }
    178180
    179 // Update the language table with new id and value
     181    // Update the language table with new id and value
    180182    function tdb_jb_updt_table_language($array, $tableName, $column1, $column2) {
    181183        global $wpdb;
     
    196198    }
    197199
    198 // Update table with api value(type, category, industry, language)
     200    // Update table with api value(type, category, industry, language)
    199201    function tdb_jb_updt_table_api_val($array, $tableName, $column1, $column2, $column3) {
    200202        global $wpdb;
     
    222224    }
    223225
    224 // Set up language on (type,category,location, language)
     226    // Set up language on (type,category,location, language)
    225227    function tdb_jb_set_new_id_language($array, $idLanguage) {
    226228        global $glanguageUsedId;
     
    306308        return $html ;
    307309    }
    308 // Return html with all required field in checkbox
     310
     311    // Return html with all required field in checkbox
    309312    function tdb_jb_get_colsized_field($array) {
    310313        $translation = new Translation();
     
    385388    }
    386389
    387 //Return html with all field have to be shown in detail page in checkbox
     390    //Return html with all field have to be shown in detail page in checkbox
    388391    function tdb_jb_get_show_field($array, $paramEndName ='Param') {
    389392        $translation = new Translation();
     
    397400        $label["currency"] = TDB_LANG_WAGECURRENCY;
    398401        $label["maxAmount"] = TDB_LANG_MAXWAGEAMOUNT;
    399         $label["video"] = TDB_LANG_VIDEO;
    400         $label["summary"] = TDB_LANG_SUMMARY;
    401402        $label["maxCurrency"] = TDB_LANG_MAXWAGECURRENCY;
    402403        $label["negotiable"] = TDB_LANG_WAGENEGOTIABLE;
     
    415416        $label["holidays"] = TDB_LANG_HOLIDAY;
    416417        $label["conditions"] = TDB_LANG_CONDITION;
    417         $label["selling_points"] = TDB_LANG_SELLINGPOINT;
     418        $label["selling_points"] = TDB_LANG_SELLINGPOINTS;
    418419        $label["established_year"] = TDB_LANG_ESTABLISHEDYEARS;
    419420        $label["working_hours"] = TDB_LANG_WORKINGHOURS;
     
    446447    }
    447448
    448 //Return html with all field have to be shown in detail page in checkbox
     449    //Return html with all field have to be shown in detail page in checkbox
    449450    function tdb_jb_get_sort_by_field($array) {
    450451        $translation = new Translation();
     
    474475    }
    475476
    476 //Return html field with all field have to be shown in apply form in checkbox
     477    //Return html field with all field have to be shown in apply form in checkbox
    477478    function tdb_jb_get_apply_field($array) {
    478479        $translation = new Translation();
     
    529530    }
    530531
    531 // Return the number of apply done
    532     function tdb_jb_total_row($table){
     532    // Return the number of apply done
     533    function tdb_jb_total_row($table) {
    533534        global $wpdb;
    534535        $rowcount = $wpdb->get_var("SELECT COUNT(*) FROM $table");
     
    536537    }
    537538
    538 // Get applications from database
    539     function tdb_jb_get_apply($nbRow = 10,$offset = 0){
     539    // Get applications from database
     540    function tdb_jb_get_applications($nbRow = 10,$offset = 0) {
    540541        global $wpdb;
    541542        $applyAr = [];
    542543
    543         $request = "SELECT nId, nIdJob, sName, sDate, sTimezone, sJson FROM ".TDB_TABLE_APPLY
     544        $request = "SELECT nId, nIdApi, nIdJob, sName, sDate, sTimezone, sJson FROM ".TDB_TABLE_APPLY
    544545            . " ORDER BY nId DESC LIMIT $nbRow OFFSET $offset;";
    545546
     
    548549        foreach ($exec as $result) {
    549550            $applyAr[$result->nId]["id"] = $result->nId;
     551            $applyAr[$result->nId]["idApi"] = $result->nIdApi;
    550552            $applyAr[$result->nId]["idJob"] = $result->nIdJob;
    551553            $applyAr[$result->nId]["name"] = $result->sName;
     
    557559    }
    558560
    559 // Get attachment from database
    560     function tdb_jb_get_attachment(){
     561    // Get single application from the database
     562    function tdb_jb_get_application($id) {
     563        global $wpdb;
     564        $applyAr = [];
     565
     566        $request = "SELECT nId, nIdApi, nIdJob, sName, sDate, sTimezone, sJson FROM ".TDB_TABLE_APPLY . " WHERE nId = $id;";
     567
     568        $exec = $wpdb->get_results($request);
     569
     570        foreach ($exec as $result) {
     571            $applyAr[$result->nId]["id"] = $result->nId;
     572            $applyAr[$result->nId]["idApi"] = $result->nIdApi;
     573            $applyAr[$result->nId]["idJob"] = $result->nIdJob;
     574            $applyAr[$result->nId]["name"] = $result->sName;
     575            $applyAr[$result->nId]["date"] = $result->sDate;
     576            $applyAr[$result->nId]["timezone"] = $result->sTimezone;
     577            $applyAr[$result->nId]["json"] = $result->sJson;
     578        }
     579        return $applyAr;
     580    }
     581
     582    // Get attachments from database
     583    function tdb_jb_get_attachments() {
    561584        global $wpdb;
    562585        $applyAAr = [];
     
    579602    }
    580603
    581 //Set up pagination in the apply history page
     604    // Get the attachments for an application
     605    function tdb_jb_get_attachment_for_application($id) {
     606        global $wpdb;
     607        $applyAAr = [];
     608        $countAAr = [];
     609
     610        $request = "SELECT nId, nIdApply, sName, sFile FROM ".TDB_TABLE_APPLY_ATTACHMENT. " WHERE nIdApply = $id;";
     611
     612        $exec = $wpdb->get_results($request);
     613
     614        foreach ($exec as $result) {
     615            if(isset($countAAr[$result->nIdApply])){
     616                $countAAr[$result->nIdApply] ++;
     617            } else {
     618                $countAAr[$result->nIdApply] = 1;
     619            }
     620            $applyAAr[] = [
     621                "name" => $result->sName,
     622                "file" => $result->sFile
     623            ];
     624        }
     625
     626        return $applyAAr;
     627    }
     628
     629    //Set up pagination in the application history page
    582630    function tdb_jb_get_pagination_admin($totalApply,$offset,$NbJobToShow,$urlStart) {
    583631        $translation = new Translation();
     
    705753
    706754
    707 // Format all content for the apply history page
     755    // Format all content for the application history page
    708756    function tdb_jb_format_content($id){
    709757        global $wpdb;
     
    719767        $translatArray["nationality"] = TDB_LANG_NATIONALITY;
    720768        $translatArray["nearestStation"] = TDB_LANG_NEARESTSTATION;
     769        $translatArray["employments"] = TDB_LANG_EMPLOYEMENT;
    721770        $translatArray["languages"] = TDB_LANG_LANGUAGES;
    722771        $translatArray["languageCertifications"] = TDB_LANG_LANGUAGECERTIF;
     
    727776        $translatArray["desiredJobCategory"] = TDB_LANG_DESIREDCATEGORY;
    728777        $translatArray["desiredIndustry"] = TDB_LANG_DESIREDINDUSTRY;
     778        $translatArray["desiredIndustries"] = TDB_LANG_DESIREDINDUSTRY;
     779        $translatArray["desiredLocation"] = TDB_LANG_DESIREDLOCATION;
     780        $translatArray["desiredLocations"] = TDB_LANG_DESIREDLOCATION;
    729781        $translatArray["referrer"] = TDB_LANG_REFFERER;
    730782        $translatArray["noticePeriod"] = TDB_LANG_NOTICED_PERIOD;
    731         $translatArray["desiredLocation"] = TDB_LANG_DESIREDLOCATION;
    732783        $translatArray["url"] = TDB_LANG_URL;
    733784        $translatArray["facebook"] = TDB_LANG_FACEBOOK;
     
    742793        $translatArray["privacyPolicy"] = TDB_LANG_PRIVACYPOLICY;
    743794        $translatArray["recaptchaKey"] = TDB_LANG_RECAPTCHAKEY;
    744         $translatArray["recaptchaKey"] = TDB_LANG_RECAPTCHASECRET;
     795        $translatArray["recaptchaSecret"] = TDB_LANG_RECAPTCHASECRET;
     796
    745797        $translatTitle["socialMedia"] = TDB_LANG_SOCIALMEDIA;
    746         $translatTitle["employement"] = TDB_LANG_EMPLOYEMENT;
     798        $translatTitle["employment"] = TDB_LANG_EMPLOYEMENT;
    747799        $translatTitle["salary"] = TDB_LANG_SALARY;
    748800        $translatTitle["visa"] = TDB_LANG_VISA;
     
    757809
    758810        $contentArray["socialMedia"] = "";
    759         $contentArray["employement"] = "";
     811        $contentArray["employment"] = "";
    760812        $contentArray["salary"] = "";
    761813        $contentArray["visa"] = "";
     
    768820        $bResult = false;
    769821
    770         $request = "SELECT 1stlvl, 2ndlvl, 3ndlvl1, 3ndlvl2, val, val1, val2 FROM ".TDB_TABLE_APPLY_DETAIL.
    771             " WHERE nIdApply = $id";
     822        $request = "SELECT 1stlvl, 2ndlvl, 3ndlvl1, 3ndlvl2, val, val1, val2 FROM ".TDB_TABLE_APPLY_DETAIL." WHERE nIdApply = $id";
    772823
    773824        $exec = $wpdb->get_results($request);
     
    777828            $val = $translatArray[$result->{'1stlvl'}] . " : ";
    778829            switch ($result->{'1stlvl'}) {
     830                case 'employments':
     831                    $val .= $result->val1 . "<br/>".$result->{'3ndlvl2'}. ": ".$result->val2;
     832                    break;
    779833                case 'emails':
    780834                case 'phoneNumbers':
     
    813867                    $contentArray["visa"]  .= "<br/>".$val;
    814868                    break;
     869                case 'employment' :
     870                case 'employments' :
    815871                case 'desiredEmploymentTypes':
    816872                case 'desiredJobCategory':
    817873                case 'desiredIndustry':
    818                 case 'referrer':
     874                case 'desiredIndustries':
    819875                case 'noticePeriod':
    820876                case 'desiredLocation':
    821                     $contentArray["employement"] .= "<br/>".$val;
     877                case 'desiredLocations':
     878                    $contentArray["employment"] .= "<br/>".$val;
    822879                    break;
    823880                case 'url':
     
    826883                    $contentArray["socialMedia"] .= "<br/>".$val;
    827884                    break;
     885                case 'referrer':
    828886                case 'sourceType':
    829887                case 'privacyPolicy':
     
    833891            }
    834892        }
     893
     894        $request = "SELECT sjson FROM ".TDB_TABLE_APPLY." WHERE nId = $id";
     895        $exec = $wpdb->get_results($request);
     896        $json = $exec[0]->sjson;
    835897
    836898        $html = "";
     
    857919                }
    858920            }
     921            $html .= '<div class="tdb-jd-col-12"><h4>JSON</h4>'.$json.'</div>';
    859922            $html .= "</div>";
    860923        }
     
    887950    }
    888951
    889     function tdb_jb_upload_image($fileName){
     952    function tdb_jb_upload_image($fileName) {
    890953        $socialLogo = '';
    891954        /*Update file logo if it has*/
     
    934997    }
    935998
    936     function tdb_jb_update_param($helper, $paramName, $sanitizeType = '', $dataType =''){
     999    function tdb_jb_update_param($helper, $paramName, $sanitizeType = '', $dataType ='') {
    9371000        if(isset($_POST[$paramName])){
    9381001            if($helper->tdb_jb_validate_data($_POST[$paramName], $dataType)){
     
    9441007    }
    9451008
    946     function tdb_jb_update_css_param($helper, $paramName, $sanitizeType = '', $dataType =''){
     1009    function tdb_jb_update_css_param($helper, $paramName, $sanitizeType = '', $dataType ='') {
    9471010        if(isset($_POST[$paramName])){
    9481011            if($helper->tdb_jb_validate_data($_POST[$paramName], $dataType)){
     
    9541017    }
    9551018
    956     function tdb_jb_update_clean_param($helper, $paramName, $sanitizeType = '', $dataType =''){
     1019    function tdb_jb_update_clean_param($helper, $paramName, $sanitizeType = '', $dataType ='') {
    9571020        if(isset($_POST[$paramName])){
    9581021            if($helper->tdb_jb_validate_data($_POST[$paramName], $dataType)){
     
    9651028    }
    9661029
    967     function tdb_jb_update_multiple_textarea_param(Helper $helper, $paramName, $sanitizeType = '', $defaultUpper = true, $dataType =''){
     1030    function tdb_jb_update_multiple_textarea_param(Helper $helper, $paramName, $sanitizeType = '', $defaultUpper = true, $dataType ='') {
    9681031        $paramString = '';
    9691032        if(isset($_POST[$paramName])){
     
    10001063    }
    10011064
    1002     function tdb_jb_update_category_param(Helper $helper, $paramName, $dataType =''){
     1065    function tdb_jb_update_category_param(Helper $helper, $paramName, $dataType ='') {
    10031066        $paramString = '';
    10041067        if(isset($_POST[$paramName])){
     
    11081171    }
    11091172
    1110     function tdb_jb_get_SearchApi(){
     1173    function tdb_jb_get_SearchApi() {
    11111174        global $wpdb;
    11121175
     
    11221185    }
    11231186
    1124     function tdb_jb_get_KeyApi(){
     1187    function tdb_jb_get_KeyApi() {
    11251188        global $wpdb;
    11261189
     
    11361199    }
    11371200
    1138     function tdb_remove_link(){
     1201    function tdb_remove_link() {
    11391202        global $wpdb;
    11401203
     
    11441207    }
    11451208
    1146     function tdb_insert_link($api, $link, $key, $page, $search){
     1209    function tdb_insert_link($api, $link, $key, $page, $search) {
    11471210        $sql = new SQL();
    11481211        $sql->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'Link',"sValue" => $link,'nIdApi' => $api));
     
    11521215    }
    11531216
    1154     function tdb_jd_generate_api_field($count, $apiLinks, $apiKeys, $apiJobPages, $apiJobSearchs){
     1217    function tdb_jd_generate_api_field($count, $apiLinks, $apiKeys, $apiJobPages, $apiJobSearchs) {
    11551218        $helper = new Helper();
    11561219
     
    11671230    }
    11681231
    1169     function tdb_jd_generate_template_field($typeTemplate, $language = 'default', $value='', $valueSubject = ''){
     1232    function tdb_jd_generate_template_field($typeTemplate, $language = 'default', $value='', $valueSubject = '') {
    11701233        $helper = new Helper();
    11711234        $settings  = array('media_buttons' => false,
     
    11931256
    11941257    /* generate the tag button to put shortcode inside the textarea for mailing */
    1195     function tdb_generate_shortcode_tpl_button($elemId){
     1258    function tdb_generate_shortcode_tpl_button($elemId) {
    11961259        $html = "";
    11971260        $html .= '<a id="tag-generator-list" class="tdb-jb-unselectable" unselectable="on">';
     
    12031266    }
    12041267
    1205     function tdb_jd_bc_get_wp_editor($content = '', $editor_id, $options = array() ) {
     1268    function tdb_jd_bc_get_wp_editor($content, $editor_id, $options = array() ) {
    12061269        ob_start();
    12071270
  • jobsearch/frontEnd/apply/applyResult.php

    r2510927 r2708599  
    357357                            //attachment part
    358358                            $messageAttachment = "";
    359                             // in case the application is successful and id are sended back
     359                            // in case the application is successful and an ID is sent back
    360360                            if ($id > 0) {
    361361                                $linkFile .= "/" . $id . "/attachment";
     
    363363                                // if attachment
    364364                                if ($file_count > 0 && $_FILES["attachments"]["name"]["0"] <> "") {
    365                                     //copy file into worpdress and save data in wordpress database
     365                                    //copy file into WordPress and save data in WordPress database
    366366
    367367                                    if ($file_count > 1) {
     
    378378                                    }
    379379
    380                                     // Send attachment
     380                                    // Send attachments
    381381                                    $fileUrlArray = array('attachments' => $attachmentsUrlArray);
    382382                                    $responseAttachement = $applyHelper->tdb_jb_curl_send_attachement($linkFile, $fileUrlArray, $api);
    383383                                    $jsonResponseAttachment = json_decode($responseAttachement, true);
    384                                     if (isset ($jsonResponseAttachment['status'])) {
    385                                         $attachmentStatus = $jsonResponseAttachment['status'];
    386                                     }
    387 
    388                                     $jsonResponseAttachment = json_decode($responseAttachement, true);
    389384                                    $attachmentStatus = $jsonResponseAttachment['status'];
    390385                                    switch ($attachmentStatus) {
    391                                         // Case sended
     386                                        // Case sent
    392387                                        case "201":
    393388                                            $messageAttachment = TDB_LANG_THANKATTACHMENT;
     
    414409                    }
    415410                }
    416                 // if redirect available and apply is success then redirect to thanks page
     411                // if redirect available and apply is success then redirect to the thanks page
    417412                if ($postStatus == "201") {
    418413                    // check if template mail can be use
     
    475470                                $to = $email;
    476471                                $body = $template;
    477                                
     472
    478473                                $applyHelper->tdb_jb_send_email_applicant($body, $subject, $from, $to, $cc, $bcc);
    479474                            }
  • jobsearch/frontEnd/apply/helper/applyHelper.php

    r2684460 r2708599  
    7575                    }
    7676                    if(isset($val2[$i])){
    77                         $tmpVal2 = $val1[$i];
     77                        $tmpVal2 = $val2[$i];
    7878                    }
    7979                    $wpdb->insert(TDB_TABLE_APPLY_DETAIL, array('nIdApply' => $idApply, '1stlvl' => $firstLvl,'2ndlvl' => $secondLvl,
  • jobsearch/helper/migration.php

    r2684460 r2708599  
    77class Migration
    88{
    9    private $version = [];
     9   private $versions = [];
    1010
    11    public function _construct(){
     11   public function __construct(){
    1212       $this->versions = $this->get_migration();
    1313   }
     
    2020
    2121       foreach ($exec as $ligneResult) {
    22            $migration[$ligneResult->sValue] = $ligneResult->sValue;
     22           $migration[$ligneResult->sName] = $ligneResult->sName;
    2323       }
    2424
     
    3131
    3232       // check migration and update
    33        if(!isset($this->version['20191130'])){
     33       if(!isset($this->versions['20191130'])){
    3434           $version->tdb_version_20191130($sql);
    3535       }
    36        if(!isset($this->version['20220224'])){
     36       if(!isset($this->versions['20220224'])){
    3737           $version->tdb_version_20220224($sql);
     38       }
     39
     40       if(!isset($this->versions['20220412'])){
     41           $version->tdb_version_20220412($sql);
    3842       }
    3943   }
  • jobsearch/helper/translation.php

    r2674369 r2708599  
    10271027//I//
    10281028        define('TDB_LANG_ID',__("Id",$translation_name));
    1029         define('TDB_LANG_IDJOB',__("job ID",$translation_name));
     1029        define('TDB_LANG_IDAPI',__("API ID",$translation_name));
     1030        define('TDB_LANG_IDJOB',__("Job ID",$translation_name));
    10301031        define('TDB_LANG_INDUSTRY',__("Industry",$translation_name));
    10311032//J//
     
    11031104        define('TDB_LANG_PROBATIONPERIOD',__("ProbationPeriod",$translation_name));
    11041105        define('TDB_LANG_PUBLISHED',__("Published",$translation_name));
     1106        define('TDB_LANG_PUSH_APPLICATION',__("Push application to Tamago-DB",$translation_name));
     1107        define('TDB_LANG_PUSH_APPLICATION_SUCCESS',__("Application successfully pushed to Tamago-DB",$translation_name));
     1108        define('TDB_LANG_PUSH_CONFIRM',__("Are you sure you want to push this application to Tamago-DB?",$translation_name));
    11051109//R//
    11061110        define('TDB_LANG_RECAPTCHA',__("Recaptcha",$translation_name));
  • jobsearch/helper/version.php

    r2684460 r2708599  
    2424        $sql->tdb_jb_insert_line(TDB_TABLE_MIGRATION, array('sName' => '20220224'),'sName');
    2525    }
     26
     27    function tdb_version_20220412(SQL $sql){
     28
     29        $sql->tdb_jb_update_table(TDB_TABLE_APPLY, [], ['nIdApi'], 1);
     30        $sql->tdb_jb_insert_line(TDB_TABLE_MIGRATION, array('sName' => '20220412'),'sName');
     31    }
    2632}
  • jobsearch/jobsearch.php

    r2684460 r2708599  
    33Plugin Name: Tamago-DB Job Board
    44Description: Job board integrated with the ATS/CRM Tamago-DB
    5 Version: 2.1.0
     5Version: 2.2.0
    66Author: Tamago-DB
    77Text Domain: jobsearch
     
    4343
    4444//every time it need an sql update(new table etc, need to increase the TDB_VERSION
    45 define("TDB_VERSION",3.6);
     45define("TDB_VERSION",3.7);
    4646define('TDB_SQL_PREFIX',$wpdb->prefix . 'js_');
    4747define('TDB_TABLE_LAST_UPDATE',TDB_SQL_PREFIX.'lastUpdt');
     
    379379        wp_enqueue_script('jobsearchScriptAdmin');
    380380        $globalLoader->tdb_jb_get_opt_api();
    381         $adminList->tdb_jb_get_list_option();
     381
     382        if (isset($_POST['pushApplication'])) {
     383            $appId = $_POST['pushApplication'];
     384            $messages = $adminList->tdb_jb_push_application($appId);
     385
     386            $helper = new Helper();
     387            $adminHeaderArray = array("messages" => $messages);
     388            $helper->tdb_jb_show_template(TDB_ADMIN_LIST_HEAD_TPL, $adminHeaderArray);
     389        }
     390
     391        $adminList->tdb_jb_get_list_applications();
    382392    }
    383393}
  • jobsearch/languages/ja/jobsearch-ja.po

    r2614212 r2708599  
    22msgstr ""
    33"Project-Id-Version: \n"
    4 "POT-Creation-Date: 2021-10-14 12:52+0200\n"
    5 "PO-Revision-Date: 2021-10-14 12:52+0200\n"
     4"POT-Creation-Date: 2022-04-12 14:40+0200\n"
     5"PO-Revision-Date: 2022-04-12 14:41+0200\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    5858
    5959#: helper/translation.php:879 helper/translation.php:890
    60 #: helper/translation.php:1224
     60#: helper/translation.php:1228
    6161msgid "Apply"
    6262msgstr "今すぐ応募"
     
    8787
    8888#: helper/translation.php:886
    89 msgid "Api link (domain without http protocol)"
     89#, fuzzy
     90#| msgid "Api link (domain without http protocol)"
     91msgid "Api URL (domain without http protocol)"
    9092msgstr "リンク"
    9193
     
    477479msgstr "求められる学歴"
    478480
    479 #: helper/translation.php:978 helper/translation.php:1227
     481#: helper/translation.php:978 helper/translation.php:1231
    480482msgid "Email"
    481483msgstr "Eメール"
     
    678680
    679681#: helper/translation.php:1029
    680 msgid "job ID"
     682msgid "API ID"
     683msgstr ""
     684
     685#: helper/translation.php:1030
     686#, fuzzy
     687#| msgid "job ID"
     688msgid "Job ID"
    681689msgstr "求人ID"
    682690
    683 #: helper/translation.php:1030
     691#: helper/translation.php:1031
    684692msgid "Industry"
    685693msgstr "業種"
    686694
    687 #: helper/translation.php:1032
     695#: helper/translation.php:1033
    688696msgid "JLPT"
    689697msgstr "JLPT"
    690698
    691 #: helper/translation.php:1033
     699#: helper/translation.php:1034
    692700msgid "job"
    693701msgstr "求人"
    694702
    695 #: helper/translation.php:1034 helper/translation.php:1220
     703#: helper/translation.php:1035 helper/translation.php:1224
    696704msgid "Job"
    697705msgstr "求人"
    698706
    699 #: helper/translation.php:1035
     707#: helper/translation.php:1036
    700708msgid "Job description"
    701709msgstr "求人概要"
    702710
    703 #: helper/translation.php:1036
     711#: helper/translation.php:1037
    704712msgid "Job page"
    705713msgstr ""
    706714
    707 #: helper/translation.php:1037
     715#: helper/translation.php:1038
    708716#, fuzzy
    709717#| msgid "jobsearch"
     
    711719msgstr "求人検索"
    712720
    713 #: helper/translation.php:1038
     721#: helper/translation.php:1039
    714722msgid "Job requirements"
    715723msgstr "応募資格"
    716724
    717 #: helper/translation.php:1039
     725#: helper/translation.php:1040
    718726msgid "Job information visibilty"
    719727msgstr "求人の表示設定"
    720728
    721 #: helper/translation.php:1040
     729#: helper/translation.php:1041
    722730msgid "Video visibility(only for video template)"
    723731msgstr ""
    724732
    725 #: helper/translation.php:1041
     733#: helper/translation.php:1042
    726734#, fuzzy
    727735#| msgid "Number of job to show in the widget"
     
    729737msgstr "ウィジェットに表示する求人の数"
    730738
    731 #: helper/translation.php:1042
     739#: helper/translation.php:1043
    732740msgid "Number of job to show in the widget"
    733741msgstr "ウィジェットに表示する求人の数"
    734742
    735 #: helper/translation.php:1043
     743#: helper/translation.php:1044
    736744msgid "Number of characters to use in the short description"
    737745msgstr "短い説明の文字数"
    738746
    739 #: helper/translation.php:1045
     747#: helper/translation.php:1046
    740748msgid "Keyword"
    741749msgstr "キーワード"
    742750
    743 #: helper/translation.php:1047 helper/translation.php:1048
     751#: helper/translation.php:1048 helper/translation.php:1049
    744752msgid "Language"
    745753msgstr "言語"
    746754
    747 #: helper/translation.php:1049
     755#: helper/translation.php:1050
    748756msgid "Languages"
    749757msgstr "言語"
    750758
    751 #: helper/translation.php:1050
     759#: helper/translation.php:1051
    752760msgid "Language ability"
    753761msgstr "言語スキル"
    754762
    755 #: helper/translation.php:1051
     763#: helper/translation.php:1052
    756764msgid "Language certification"
    757765msgstr "言語資格"
    758766
    759 #: helper/translation.php:1052
     767#: helper/translation.php:1053
    760768msgid "Language certifications"
    761769msgstr "言語資格"
    762770
    763 #: helper/translation.php:1053
     771#: helper/translation.php:1054
    764772#, fuzzy
    765773#| msgid "Language certification"
     
    767775msgstr "言語資格"
    768776
    769 #: helper/translation.php:1054
     777#: helper/translation.php:1055
    770778msgid "Language required"
    771779msgstr "必須言語"
    772780
    773 #: helper/translation.php:1055
     781#: helper/translation.php:1056
    774782msgid "Last"
    775783msgstr "最後へ"
    776784
    777 #: helper/translation.php:1056
    778 msgid "Latest job"
     785#: helper/translation.php:1057
     786#, fuzzy
     787#| msgid "Latest job"
     788msgid "Latest jobs"
    779789msgstr "新着求人"
    780790
    781 #: helper/translation.php:1057
     791#: helper/translation.php:1058
    782792msgid "Level"
    783793msgstr "レベル"
    784794
    785 #: helper/translation.php:1058
     795#: helper/translation.php:1059
    786796msgid "Linkedin"
    787797msgstr "Linkedin"
    788798
    789 #: helper/translation.php:1059 helper/translation.php:1219
     799#: helper/translation.php:1060 helper/translation.php:1223
    790800msgid "Link"
    791801msgstr "リンク"
    792802
    793 #: helper/translation.php:1060
     803#: helper/translation.php:1061
    794804#, fuzzy
    795805#| msgid "link font color"
     
    797807msgstr "フォントの色"
    798808
    799 #: helper/translation.php:1061
     809#: helper/translation.php:1062
    800810msgid "Location"
    801811msgstr "勤務地"
    802812
    803 #: helper/translation.php:1063
     813#: helper/translation.php:1064
    804814msgid "M"
    805815msgstr "男"
    806816
    807 #: helper/translation.php:1064
     817#: helper/translation.php:1065
    808818msgid "Max wage"
    809819msgstr "最高給与"
    810820
    811 #: helper/translation.php:1065
     821#: helper/translation.php:1066
    812822msgid "Message"
    813823msgstr "メッセージ"
    814824
    815 #: helper/translation.php:1066
     825#: helper/translation.php:1067
    816826msgid "Min wage"
    817827msgstr "最小給与"
    818828
    819 #: helper/translation.php:1067
     829#: helper/translation.php:1068
    820830msgid "mobile"
    821831msgstr "携帯"
    822832
    823 #: helper/translation.php:1068
     833#: helper/translation.php:1069
    824834msgid "Month"
    825835msgstr "月"
    826836
    827 #: helper/translation.php:1069
     837#: helper/translation.php:1070
    828838msgid "More information"
    829839msgstr "続きを読む"
    830840
    831 #: helper/translation.php:1071
     841#: helper/translation.php:1072
    832842msgid "Name"
    833843msgstr "名前"
    834844
    835 #: helper/translation.php:1072
     845#: helper/translation.php:1073
    836846msgid "Nationality"
    837847msgstr "国籍"
    838848
    839 #: helper/translation.php:1073
     849#: helper/translation.php:1074
    840850msgid "Nearest station"
    841851msgstr "最寄駅"
    842852
    843 #: helper/translation.php:1074
     853#: helper/translation.php:1075
    844854msgid "negotiable"
    845855msgstr "経験考慮の上、応相談"
    846856
    847 #: helper/translation.php:1075
     857#: helper/translation.php:1076
    848858msgid "Next"
    849859msgstr "次へ"
    850860
    851 #: helper/translation.php:1076
     861#: helper/translation.php:1077
    852862msgid "No job was found for your search"
    853863msgstr "あなたの検索で求人が見つかりませんでした"
    854864
    855 #: helper/translation.php:1077
     865#: helper/translation.php:1078
    856866msgid "Notice period"
    857867msgstr "退職までにかかる期間"
    858868
    859 #: helper/translation.php:1079
     869#: helper/translation.php:1080
    860870msgid "One code per line (iso 639-1, example: \"en\")"
    861871msgstr "一列に1コード(例:en)"
    862872
    863 #: helper/translation.php:1080
     873#: helper/translation.php:1081
    864874msgid "One code per line (iso 639-2, example: \"JP\")"
    865875msgstr "行に1つのコード(iso 639-2、例: \"JP\")"
    866876
    867 #: helper/translation.php:1081
     877#: helper/translation.php:1082
    868878#, fuzzy
    869879#| msgid "Order of favorite language"
     
    871881msgstr "お気に入りの言語の順番"
    872882
    873 #: helper/translation.php:1082
     883#: helper/translation.php:1083
    874884#, fuzzy
    875885#| msgid "Order of favorite nationality"
     
    877887msgstr "好きな国籍の順番"
    878888
    879 #: helper/translation.php:1083
     889#: helper/translation.php:1084
    880890#, fuzzy
    881891#| msgid "Order of favorite country others"
     
    883893msgstr "その他の気なる国を順位つける"
    884894
    885 #: helper/translation.php:1084
     895#: helper/translation.php:1085
    886896msgid "Order of favorite country others"
    887897msgstr "その他の気なる国を順位つける"
    888898
    889 #: helper/translation.php:1085
     899#: helper/translation.php:1086
    890900msgid "Other country"
    891901msgstr "海外"
    892902
    893 #: helper/translation.php:1086
     903#: helper/translation.php:1087
    894904msgid "Other languages"
    895905msgstr "他の言語"
    896906
    897 #: helper/translation.php:1087
     907#: helper/translation.php:1088
    898908msgid "Other"
    899909msgstr "その他"
    900910
    901 #: helper/translation.php:1088
     911#: helper/translation.php:1089
    902912msgid "other"
    903913msgstr "その他"
    904914
    905 #: helper/translation.php:1090
     915#: helper/translation.php:1091
    906916msgid "Parameters"
    907917msgstr "パラメーター"
    908918
    909 #: helper/translation.php:1091
     919#: helper/translation.php:1092
    910920msgid "Personal information"
    911921msgstr "個人情報"
    912922
    913 #: helper/translation.php:1092
     923#: helper/translation.php:1093
    914924msgid "Pick a color"
    915925msgstr "色の選択"
    916926
    917 #: helper/translation.php:1093
     927#: helper/translation.php:1094
    918928msgid "Phone number"
    919929msgstr "電話番号"
    920930
    921 #: helper/translation.php:1094 helper/translation.php:1246
     931#: helper/translation.php:1095 helper/translation.php:1250
    922932msgid "Phone type"
    923933msgstr "種類"
    924934
    925 #: helper/translation.php:1095
     935#: helper/translation.php:1096
    926936msgid "Phone"
    927937msgstr "電話番号"
    928938
    929 #: helper/translation.php:1096
     939#: helper/translation.php:1097
    930940msgid "Postal code"
    931941msgstr "郵便番号"
    932942
    933 #: helper/translation.php:1097
     943#: helper/translation.php:1098
    934944msgid "Previous"
    935945msgstr "前へ"
    936946
    937 #: helper/translation.php:1098
     947#: helper/translation.php:1099
    938948msgid "Privacy policy"
    939949msgstr "プライバシーポリシー"
    940950
    941 #: helper/translation.php:1099
     951#: helper/translation.php:1100
    942952#, fuzzy
    943953#| msgid "Privacy policy "
     
    945955msgstr "プライバシーポリシー "
    946956
    947 #: helper/translation.php:1100
     957#: helper/translation.php:1101
    948958msgid "I have read and agree with the privacy policy"
    949959msgstr "プライバシーポリシーに同意する"
    950960
    951 #: helper/translation.php:1101
     961#: helper/translation.php:1102
    952962msgid "Privacy policy link"
    953963msgstr "プライバシーポリシーのリンク"
    954964
    955 #: helper/translation.php:1102
     965#: helper/translation.php:1103
    956966msgid "Prefered list options"
    957967msgstr "選択のリストの配置"
    958968
    959 #: helper/translation.php:1103
     969#: helper/translation.php:1104
    960970msgid "ProbationPeriod"
    961971msgstr "試用期間"
    962972
    963 #: helper/translation.php:1104
     973#: helper/translation.php:1105
    964974msgid "Published"
    965975msgstr "公開日"
    966976
    967977#: helper/translation.php:1106
     978msgid "Push application to Tamago-DB"
     979msgstr ""
     980
     981#: helper/translation.php:1107
     982msgid "Application successfully pushed to Tamago-DB"
     983msgstr ""
     984
     985#: helper/translation.php:1108
     986msgid "Are you sure you want to push this application to Tamago-DB?"
     987msgstr ""
     988
     989#: helper/translation.php:1110
    968990msgid "Recaptcha"
    969991msgstr ""
    970992
    971 #: helper/translation.php:1107
     993#: helper/translation.php:1111
    972994msgid "Recaptcha key"
    973995msgstr ""
    974996
    975 #: helper/translation.php:1108
     997#: helper/translation.php:1112
    976998msgid "Recaptcha secret"
    977999msgstr ""
    9781000
    979 #: helper/translation.php:1109
     1001#: helper/translation.php:1113
    9801002msgid "please declare your website on the following link to get a key"
    9811003msgstr ""
    9821004
    983 #: helper/translation.php:1110
     1005#: helper/translation.php:1114
    9841006msgid "Read more..."
    9851007msgstr "続きを読む。"
    9861008
    987 #: helper/translation.php:1111
     1009#: helper/translation.php:1115
    9881010msgid "Read privacy policy"
    9891011msgstr "プライバシーポリシーをお読み下さい"
    9901012
    991 #: helper/translation.php:1112
     1013#: helper/translation.php:1116
    9921014msgid "Reason for hiring"
    9931015msgstr "募集背景"
    9941016
    995 #: helper/translation.php:1113
     1017#: helper/translation.php:1117
    9961018msgid "Reason for hiring details"
    9971019msgstr "募集背景"
    9981020
    999 #: helper/translation.php:1114
     1021#: helper/translation.php:1118
    10001022msgid "Referrer"
    10011023msgstr "紹介"
    10021024
    1003 #: helper/translation.php:1115
     1025#: helper/translation.php:1119
    10041026msgid "How did you find us?"
    10051027msgstr "経路(どこで知りましたか)"
    10061028
    1007 #: helper/translation.php:1116
     1029#: helper/translation.php:1120
    10081030msgid "Region"
    10091031msgstr "都道府県"
    10101032
    1011 #: helper/translation.php:1117
     1033#: helper/translation.php:1121
    10121034msgid "Register"
    10131035msgstr "登録"
    10141036
    1015 #: helper/translation.php:1118
     1037#: helper/translation.php:1122
    10161038msgid "Remove"
    10171039msgstr "削除"
    10181040
    1019 #: helper/translation.php:1119
     1041#: helper/translation.php:1123
    10201042msgid "Reset"
    10211043msgstr "リセット"
    10221044
    1023 #: helper/translation.php:1120
     1045#: helper/translation.php:1124
    10241046msgid "results"
    10251047msgstr "件の検索結果が"
    10261048
    1027 #: helper/translation.php:1121
     1049#: helper/translation.php:1125
    10281050msgid "Resume"
    10291051msgstr "履歴書・職務経歴書"
    10301052
    1031 #: helper/translation.php:1122
     1053#: helper/translation.php:1126
    10321054msgid "Required language"
    10331055msgstr "必須言語"
    10341056
    1035 #: helper/translation.php:1124 helper/translation.php:1258
     1057#: helper/translation.php:1128 helper/translation.php:1262
    10361058msgid "Visa"
    10371059msgstr "ビザ"
    10381060
    1039 #: helper/translation.php:1125
     1061#: helper/translation.php:1129
    10401062msgid "Requirements"
    10411063msgstr "応募資格"
    10421064
    1043 #: helper/translation.php:1126
     1065#: helper/translation.php:1130
    10441066msgid "Return to search"
    10451067msgstr "検索に戻る"
    10461068
    1047 #: helper/translation.php:1127
     1069#: helper/translation.php:1131
    10481070msgid "Return to Job Details"
    10491071msgstr "求人詳細に戻る"
    10501072
    1051 #: helper/translation.php:1128
     1073#: helper/translation.php:1132
    10521074msgid "Reverse language skill"
    10531075msgstr "必須言語"
    10541076
    1055 #: helper/translation.php:1129
     1077#: helper/translation.php:1133
    10561078msgid "Rewrite url"
    10571079msgstr ""
    10581080
    1059 #: helper/translation.php:1131
     1081#: helper/translation.php:1135
    10601082msgid "Salary"
    10611083msgstr "給与"
    10621084
    1063 #: helper/translation.php:1132
     1085#: helper/translation.php:1136
    10641086#, fuzzy
    10651087#| msgid "Hide salary"
     
    10671089msgstr "給与検索を非表示にする/(検索フォームの給与フィールドを非表示にする)"
    10681090
    1069 #: helper/translation.php:1133 helper/translation.php:1222
     1091#: helper/translation.php:1137 helper/translation.php:1226
    10701092msgid "Search"
    10711093msgstr "検索"
    10721094
    1073 #: helper/translation.php:1134
     1095#: helper/translation.php:1138
    10741096#, fuzzy
    10751097#| msgid "Languages"
     
    10771099msgstr "言語"
    10781100
    1079 #: helper/translation.php:1135
     1101#: helper/translation.php:1139
    10801102msgid "Search jobs"
    10811103msgstr "求人を検索する"
    10821104
    1083 #: helper/translation.php:1136
     1105#: helper/translation.php:1140
    10841106msgid "Level or score"
    10851107msgstr "レベル又は得点"
    10861108
    1087 #: helper/translation.php:1137
     1109#: helper/translation.php:1141
    10881110msgid "Search results"
    10891111msgstr "検索結果"
    10901112
    1091 #: helper/translation.php:1138
     1113#: helper/translation.php:1142
    10921114msgid "Search field is multiple type"
    10931115msgstr "検索は複数選択可"
    10941116
    1095 #: helper/translation.php:1139
     1117#: helper/translation.php:1143
    10961118msgid "Settings"
    10971119msgstr "設定"
    10981120
    1099 #: helper/translation.php:1140 helper/translation.php:1226
     1121#: helper/translation.php:1144 helper/translation.php:1230
    11001122#, fuzzy
    11011123#| msgid "Postal code"
     
    11031125msgstr "郵便番号"
    11041126
    1105 #: helper/translation.php:1141
     1127#: helper/translation.php:1145
    11061128msgid "Selling points"
    11071129msgstr "セールスポイント"
    11081130
    1109 #: helper/translation.php:1142
     1131#: helper/translation.php:1146
    11101132msgid "Select type"
    11111133msgstr "雇用形態を選ぶ"
    11121134
    1113 #: helper/translation.php:1143
     1135#: helper/translation.php:1147
    11141136msgid "Select industry"
    11151137msgstr "業種を選ぶ"
    11161138
    1117 #: helper/translation.php:1144
     1139#: helper/translation.php:1148
    11181140#, fuzzy
    11191141#| msgid "Select type"
     
    11211143msgstr "雇用形態を選ぶ"
    11221144
    1123 #: helper/translation.php:1145
     1145#: helper/translation.php:1149
    11241146msgid ""
    11251147"To select multiple fields, 'Ctrl+Click' for Windows and 'Command+Click' for "
     
    11291151"リック」"
    11301152
    1131 #: helper/translation.php:1146
     1153#: helper/translation.php:1150
    11321154msgid "Skills and Certification"
    11331155msgstr "スキル及び学歴・資格"
    11341156
    1135 #: helper/translation.php:1147
     1157#: helper/translation.php:1151
    11361158msgid "Skills and Certifications"
    11371159msgstr "スキル及び学歴・資格"
    11381160
    1139 #: helper/translation.php:1148
     1161#: helper/translation.php:1152
    11401162msgid "Social media"
    11411163msgstr "ソーシャルメディア"
    11421164
    1143 #: helper/translation.php:1149
     1165#: helper/translation.php:1153
    11441166msgid "Sort by"
    11451167msgstr "並び替え"
    11461168
    1147 #: helper/translation.php:1150
     1169#: helper/translation.php:1154
    11481170msgid "Source"
    11491171msgstr "媒体・情報源"
    11501172
    1151 #: helper/translation.php:1151
     1173#: helper/translation.php:1155
    11521174msgid "Source type"
    11531175msgstr "媒体・情報源"
    11541176
    1155 #: helper/translation.php:1152
     1177#: helper/translation.php:1156
    11561178#, fuzzy
    11571179#| msgid "Social media"
     
    11591181msgstr "ソーシャルメディア"
    11601182
    1161 #: helper/translation.php:1153
     1183#: helper/translation.php:1157
    11621184msgid "Status"
    11631185msgstr "状況"
    11641186
    1165 #: helper/translation.php:1154
     1187#: helper/translation.php:1158
    11661188msgid "Status of Residence"
    11671189msgstr "在留資格"
    11681190
    1169 #: helper/translation.php:1155
     1191#: helper/translation.php:1159
    11701192msgid "Street"
    11711193msgstr "番地"
    11721194
    1173 #: helper/translation.php:1156
     1195#: helper/translation.php:1160
    11741196msgid "Submit"
    11751197msgstr "応募する"
    11761198
    1177 #: helper/translation.php:1157
     1199#: helper/translation.php:1161
    11781200msgid "Subject"
    11791201msgstr ""
    11801202
    1181 #: helper/translation.php:1158
     1203#: helper/translation.php:1162
    11821204msgid "Summary"
    11831205msgstr ""
    11841206
    1185 #: helper/translation.php:1159
     1207#: helper/translation.php:1163
    11861208#, fuzzy
    11871209#| msgid "Hide salary"
     
    11891211msgstr "給与検索を非表示にする/(検索フォームの給与フィールドを非表示にする)"
    11901212
    1191 #: helper/translation.php:1160
     1213#: helper/translation.php:1164
    11921214#, fuzzy
    11931215#| msgid "Postal code"
     
    11951217msgstr "郵便番号"
    11961218
    1197 #: helper/translation.php:1161
     1219#: helper/translation.php:1165
    11981220msgid "[job-url]<br/>[given-name]<br/>[family-name]"
    11991221msgstr ""
    12001222
    1201 #: helper/translation.php:1162
     1223#: helper/translation.php:1166
    12021224msgid ""
    12031225"<h4>[jobsearch_form] - [tdb_job_board_form] / Include search and list</h4> \n"
     
    13001322msgstr ""
    13011323
    1302 #: helper/translation.php:1221
     1324#: helper/translation.php:1225
    13031325msgid "Design"
    13041326msgstr "デザイン"
    13051327
    1306 #: helper/translation.php:1223
     1328#: helper/translation.php:1227
    13071329msgid "Detail"
    13081330msgstr "詳細"
    13091331
    1310 #: helper/translation.php:1225 helper/translation.php:1273
     1332#: helper/translation.php:1229 helper/translation.php:1277
    13111333msgid "Widget"
    13121334msgstr "ウィジェット"
    13131335
    1314 #: helper/translation.php:1228
     1336#: helper/translation.php:1232
    13151337msgid "Tag group"
    13161338msgstr ""
    13171339
    1318 #: helper/translation.php:1229
     1340#: helper/translation.php:1233
    13191341msgid "Tag job title"
    13201342msgstr ""
    13211343
    1322 #: helper/translation.php:1230
     1344#: helper/translation.php:1234
    13231345msgid "Tags"
    13241346msgstr "タグ"
    13251347
    1326 #: helper/translation.php:1231
     1348#: helper/translation.php:1235
    13271349msgid "TDB"
    13281350msgstr "Tamago-DB"
    13291351
    1330 #: helper/translation.php:1232
     1352#: helper/translation.php:1236
    13311353msgid "TDB Job board"
    13321354msgstr "Tamago-DB求人連携"
    13331355
    1334 #: helper/translation.php:1233
     1356#: helper/translation.php:1237
    13351357msgid "Template"
    13361358msgstr "テンプレート"
    13371359
    1338 #: helper/translation.php:1234
     1360#: helper/translation.php:1238
    13391361msgid "Enable application for confirmation email"
    13401362msgstr ""
    13411363
    1342 #: helper/translation.php:1235
     1364#: helper/translation.php:1239
    13431365#, fuzzy
    13441366#| msgid "Template"
     
    13461368msgstr "テンプレート"
    13471369
    1348 #: helper/translation.php:1236
     1370#: helper/translation.php:1240
    13491371msgid "Template to be used"
    13501372msgstr "使用するテンプレート"
    13511373
    1352 #: helper/translation.php:1237
     1374#: helper/translation.php:1241
    13531375msgid "Thank you for your application. Your application has been sent."
    13541376msgstr "ご応募いただきありがとうございます。応募書類は正常に送信されました。"
    13551377
    1356 #: helper/translation.php:1238
     1378#: helper/translation.php:1242
    13571379msgid "Thank you. Your attachment has been sent."
    13581380msgstr "添付書類は正常に送信されました。"
    13591381
    1360 #: helper/translation.php:1239
     1382#: helper/translation.php:1243
    13611383msgid "TOEIC"
    13621384msgstr "TOEIC"
    13631385
    1364 #: helper/translation.php:1240
     1386#: helper/translation.php:1244
    13651387msgid "TOEFL"
    13661388msgstr "TOEFL"
    13671389
    1368 #: helper/translation.php:1241
     1390#: helper/translation.php:1245
    13691391msgid "Title"
    13701392msgstr "タイトル"
    13711393
    1372 #: helper/translation.php:1242
     1394#: helper/translation.php:1246
    13731395msgid "Type"
    13741396msgstr "雇用形態"
    13751397
    1376 #: helper/translation.php:1243
     1398#: helper/translation.php:1247
    13771399msgid "Type of Source"
    13781400msgstr "媒体・情報源(詳細"
    13791401
    1380 #: helper/translation.php:1244
     1402#: helper/translation.php:1248
    13811403msgid "Employement type detail"
    13821404msgstr "雇用形態(詳細)"
    13831405
    1384 #: helper/translation.php:1245
     1406#: helper/translation.php:1249
    13851407msgid "Email type"
    13861408msgstr "種類"
    13871409
    1388 #: helper/translation.php:1248
     1410#: helper/translation.php:1252
    13891411msgid "Url (personal website)"
    13901412msgstr "URL"
    13911413
    1392 #: helper/translation.php:1249
     1414#: helper/translation.php:1253
    13931415#, fuzzy
    13941416#| msgid "required field to apply"
     
    13961418msgstr "必須項目"
    13971419
    1398 #: helper/translation.php:1250
     1420#: helper/translation.php:1254
    13991421msgid "Update API"
    14001422msgstr "APIを更新"
    14011423
    1402 #: helper/translation.php:1251
     1424#: helper/translation.php:1255
    14031425msgid "Upload image"
    14041426msgstr ""
    14051427
    1406 #: helper/translation.php:1252
     1428#: helper/translation.php:1256
    14071429msgid "Update api"
    14081430msgstr "APIを更新"
    14091431
    1410 #: helper/translation.php:1253
     1432#: helper/translation.php:1257
    14111433msgid "Update translation"
    14121434msgstr "翻訳を更新"
    14131435
    1414 #: helper/translation.php:1254
     1436#: helper/translation.php:1258
    14151437msgid "Use one basis"
    14161438msgstr ""
    14171439"つの基準を使用/(検索フォームでは、1つの基準のみを使用、毎年、毎月、毎日)"
    14181440
    1419 #: helper/translation.php:1255
     1441#: helper/translation.php:1259
    14201442msgid "Use one currency"
    14211443msgstr ""
    14221444"つの通貨を使用/(検索フォームでは、1つの通貨のみを使用、円もしくはユーロ)"
    14231445
    1424 #: helper/translation.php:1256
     1446#: helper/translation.php:1260
    14251447msgid "Upload logo for social sharing"
    14261448msgstr ""
    14271449
    1428 #: helper/translation.php:1259
     1450#: helper/translation.php:1263
    14291451msgid "Visas"
    14301452msgstr "ビザ"
    14311453
    1432 #: helper/translation.php:1260
     1454#: helper/translation.php:1264
    14331455msgid "Country of issue"
    14341456msgstr "ビザ発行国"
    14351457
    1436 #: helper/translation.php:1261
     1458#: helper/translation.php:1265
    14371459msgid "Visa type"
    14381460msgstr "ビザの種類"
    14391461
    1440 #: helper/translation.php:1262
     1462#: helper/translation.php:1266
    14411463msgid "Video"
    14421464msgstr ""
    14431465
    1444 #: helper/translation.php:1263
     1466#: helper/translation.php:1267
    14451467msgid "For templates using video"
    14461468msgstr ""
    14471469
    1448 #: helper/translation.php:1264
     1470#: helper/translation.php:1268
    14491471msgid "Show the video"
    14501472msgstr ""
    14511473
    1452 #: helper/translation.php:1266
     1474#: helper/translation.php:1270
    14531475#, fuzzy
    14541476#| msgid "Wage amount"
     
    14561478msgstr "金額"
    14571479
    1458 #: helper/translation.php:1267
     1480#: helper/translation.php:1271
    14591481msgid "Wage amount"
    14601482msgstr "金額"
    14611483
    1462 #: helper/translation.php:1268
     1484#: helper/translation.php:1272
    14631485msgid "Wage basis"
    14641486msgstr "給与の支給方式"
    14651487
    1466 #: helper/translation.php:1269
     1488#: helper/translation.php:1273
    14671489#, fuzzy
    14681490#| msgid "Wage basis"
     
    14701492msgstr "給与の支給方式"
    14711493
    1472 #: helper/translation.php:1270
     1494#: helper/translation.php:1274
    14731495msgid "Wage currency"
    14741496msgstr "給与の通貨"
    14751497
    1476 #: helper/translation.php:1271
     1498#: helper/translation.php:1275
    14771499#, fuzzy
    14781500#| msgid "Wage currency"
     
    14801502msgstr "給与の通貨"
    14811503
    1482 #: helper/translation.php:1272
     1504#: helper/translation.php:1276
    14831505msgid "Wage detail"
    14841506msgstr "給与(詳細)"
    14851507
    1486 #: helper/translation.php:1274
     1508#: helper/translation.php:1278
    14871509msgid "Widget : Maximum date to show published jobs"
    14881510msgstr "ウィジェット:過去何日間の最新公開求人の表示するか選択"
    14891511
    1490 #: helper/translation.php:1275
     1512#: helper/translation.php:1279
    14911513msgid "Widget : Category to filter"
    14921514msgstr "ウィジェット:カテゴリーのフィルター"
    14931515
    1494 #: helper/translation.php:1276
     1516#: helper/translation.php:1280
    14951517msgid "Wage negotiable"
    14961518msgstr "経験考慮の上、応相談"
    14971519
    1498 #: helper/translation.php:1277
     1520#: helper/translation.php:1281
    14991521msgid "wordpress ID"
    15001522msgstr "ワードプレス ID"
    15011523
    1502 #: helper/translation.php:1278
     1524#: helper/translation.php:1282
    15031525msgid "Working hours"
    15041526msgstr "勤務時間"
    15051527
    1506 #: helper/translation.php:1279
     1528#: helper/translation.php:1283
    15071529msgid "work mobile"
    15081530msgstr "会社携帯"
    15091531
    1510 #: helper/translation.php:1280
     1532#: helper/translation.php:1284
    15111533msgid "work"
    15121534msgstr "会社"
    15131535
    1514 #: helper/translation.php:1281
     1536#: helper/translation.php:1285
    15151537msgid "work other"
    15161538msgstr "会社その他"
    15171539
    1518 #: helper/translation.php:1283
     1540#: helper/translation.php:1287
    15191541msgid "Years"
    15201542msgstr "年"
    15211543
    1522 #: helper/translation.php:1284
     1544#: helper/translation.php:1288
    15231545msgid "Your application has been sent. "
    15241546msgstr "応募書類は正常に送信されました。"
    15251547
    1526 #: helper/translation.php:1285
     1548#: helper/translation.php:1289
    15271549msgid "Error "
    15281550msgstr "エラー "
  • jobsearch/templates/admin/adminListApplyBody1.tpl

    r2510924 r2708599  
    55        </div>
    66        <div class="tdb-jd-col-2">
     7            {$langIdApi}&nbsp;:&nbsp;{$idApi}
     8        </div>
     9        <div class="tdb-jd-col-2">
    710            {$langIdJob}&nbsp;:&nbsp;{$idJob}
    811        </div>
    9         <div class="tdb-jd-col-4">
     12        <div class="tdb-jd-col-3">
    1013            {$langName}&nbsp;:&nbsp;{$name}
    1114        </div>
     
    1619
    1720    {$detail}
    18     <div class="tdb-jd-row tdb-jd-admin-border tdb-jd-admin-header-color">
    19         {if $link != ""}
     21    {if $link != ""}
     22        <div class="tdb-jd-row tdb-jd-admin-border tdb-jd-admin-header-color" style="padding-bottom: 10px;">
    2023            <div class="tdb-jd-col-7 ">
    2124                {$langFile}<br/>{$link}
    2225            </div>
    23         {/if}
     26        </div>
     27    {/if}
     28    <div class="tdb-jd-row tdb-jd-admin-border tdb-jd-admin-header-color" style="padding: 10px 0 10px 0">
     29        <div class="tdb-jd-col-7">
     30            <form action="?page=jobsearchsubmenu" method="post">
     31                <input type="hidden" name="pushApplication" value="{$id}" />
     32                <button type="submit" onclick="return confirm('{$langPushConfirm}');">{$langPushApplication}</button>
     33            </form>
     34        </div>
    2435    </div>
    2536</div>
  • jobsearch/templates/admin/adminListApplyHeader1.tpl

    r2084303 r2708599  
    1 <div class="tdb-jd-container">
    2     <div class="tdb-jd-row tdb-jd-row-header-detail tdb-jd-admin-header-color">
    3         <div class="tdb-jd-col-2 ">
    4             {$langId}
    5         </div>
    6         <div class="tdb-jd-col-2">
    7             {$langIdJob}
    8         </div>
    9         <div class="tdb-jd-col-4">
    10             {$langName}
    11         </div>
    12         <div class="tdb-jd-col-3">
    13             {$langDate}
    14         </div>
    15     </div>
     1<div class="notice notice-success is-dismissible">
     2    {foreach from=$messages item=message}
     3        <p>{$message}</p>
     4    {/foreach}
     5
    166</div>
  • jobsearch/trunk/admin/adminListOption.php

    r2068602 r2708599  
    99namespace Jobsearch\Admin;
    1010
     11use Jobsearch\Apply\ApplyHelper;
    1112use Jobsearch\Helper;
    1213use Jobsearch\Helper\Translation;
    1314
    14 class AdminList{
    15 
    16 // Show all the apply list
    17     function tdb_jb_get_list_option(){
     15class AdminList {
     16
     17    // Show the application list
     18    function tdb_jb_get_list_applications(){
    1819        $helper = new Helper();
    1920        $adminHelper = new AdminHelper();
     
    2728            $offset = $helper->tdb_jb_sanitize($_GET["offset"],'text');
    2829        }
    29         $applyArray = $adminHelper->tdb_jb_get_apply($nbApplyToShow,$offset);
    30         $attachmentArray = $adminHelper->tdb_jb_get_attachment();
     30        $applyArray = $adminHelper->tdb_jb_get_applications($nbApplyToShow,$offset);
     31        $attachmentArray = $adminHelper->tdb_jb_get_attachments();
    3132
    3233        $totalRow = $adminHelper->tdb_jb_total_row(TDB_TABLE_APPLY);
     
    3435        foreach($applyArray as $content){
    3536            $id = "";
     37            $idApi = "";
    3638            $idJob = "";
    3739            $name = "";
     
    4143            $timezone = "";
    4244            $link = "";
    43             // Get the applycation data
     45            // Get the application data
    4446            foreach($content as $key => $value) {
    4547                switch ($key){
    4648                    case "id":
    4749                        $id = $value;
     50                        break;
     51                    case "idApi":
     52                        $idApi = $value;
    4853                        break;
    4954                    case "idJob":
     
    99104            $adminBodyArray = array(
    100105                "langId" => TDB_LANG_WORDPRESSID,
     106                "langIdApi" =>  TDB_LANG_IDAPI,
    101107                "langIdJob" =>  TDB_LANG_IDJOB,
    102108                "langName" =>  TDB_LANG_NAME,
     
    106112                "langFile" =>  TDB_LANG_FILE,
    107113                "id" => $id,
     114                "idApi" => $idApi,
    108115                "idJob" => $idJob,
    109116                "name" => $name,
     
    111118                "json" => $json,
    112119                "detail" => $detail,
    113                 "link" => $link
     120                "link" => $link,
     121                "langPushApplication" => TDB_LANG_PUSH_APPLICATION,
     122                "langPushConfirm" => TDB_LANG_PUSH_CONFIRM
    114123            );
    115124            $helper->tdb_jb_show_template(TDB_ADMIN_LIST_TPL, $adminBodyArray);
     
    118127        $helper->tdb_jb_show_template(TDB_ADMIN_LIST_FOOT_TPL, $adminFooterArray);
    119128    }
     129
     130    // Push application to Tamago-DB
     131    function tdb_jb_push_application($id)
     132    {
     133        $helper = new Helper();
     134        $adminHelper = new AdminHelper();
     135        $applyArray = $adminHelper->tdb_jb_get_application($id);
     136        $attachmentArray = $adminHelper->tdb_jb_get_attachment_for_application($id);
     137
     138        $json = $applyArray[$id]['json'];
     139        $api = $applyArray[$id]['idApi'];
     140        $linkApi  = $helper->tdb_jb_get_api_link('LinkCreate', $api);
     141        $linkFile  = $helper->tdb_jb_get_api_link('LinkFile', $api);
     142
     143        $applyHelper = new ApplyHelper();
     144
     145        $requests_response = $applyHelper->tdb_jb_wp_post_apply($linkApi, $json, $api);
     146        $jsonResponse = json_decode($requests_response["body"], true);
     147
     148        if (isset($jsonResponse["status"])) {
     149            $status = $jsonResponse["status"];
     150        }
     151        if (isset($jsonResponse["message"])) {
     152            $message = $jsonResponse["message"];
     153        }
     154        // get the result
     155        if (!empty($status)) {
     156            switch ($status) {
     157                // error
     158                case "400":
     159                    $bError = true;
     160                    foreach ($jsonResponse["data"] as $key => $value) {
     161                        if (is_array($value)) {
     162                            foreach ($value as $errorMessage) {
     163                                if (is_array($errorMessage)) {
     164                                    foreach ($errorMessage as $errorMessage2) {
     165                                        if (is_array($errorMessage2)) {
     166                                            foreach ($errorMessage2 as $errorMessage3) {
     167                                                $errorField[$key] = $errorMessage3;
     168                                            }
     169                                        } else {
     170                                            $errorField[$key] = $errorMessage2;
     171                                        }
     172                                    }
     173                                } else {
     174                                    $errorField[$key] = $errorMessage;
     175                                }
     176                            }
     177                        } else {
     178                            $errorField[$key] = $value;
     179                        }
     180                    }
     181                    break;
     182                // success
     183                case "201":
     184                    if (isset($jsonResponse["data"]["id"])) {
     185                        $id = $jsonResponse["data"]["id"];
     186                    }
     187                    $message = TDB_LANG_PUSH_APPLICATION_SUCCESS;
     188                    //attachment part
     189                    $messageAttachment = "";
     190                    // in case the application is successful and an ID is sent back
     191                    if ($id > 0) {
     192                        $linkFile .= "/" . $id . "/attachment";
     193
     194                        //Get attachment data
     195                        if (!empty($attachmentArray)) {
     196                            $attachmentsUrlArray = [];
     197                            foreach ($attachmentArray as $att) {
     198                                $nameAttachment = $att['name'];
     199                                $file = $att['file'];
     200                                if ($nameAttachment <> "" && $file <> "") {
     201                                    $fileDir = content_url() . "/uploads/jobsearch/" . $file;
     202                                    $fileData = base64_encode(file_get_contents($fileDir));
     203                                    $attachmentsUrlArray[$id] = array('name' => $nameAttachment, 'file' => $fileData);
     204                                }
     205                            }
     206
     207                            // Send attachments
     208                            $fileUrlArray = array('attachments' => $attachmentsUrlArray);
     209                            $responseAttachement = $applyHelper->tdb_jb_curl_send_attachement($linkFile, $fileUrlArray, $api);
     210                            $jsonResponseAttachment = json_decode($responseAttachement, true);
     211                            $attachmentStatus = $jsonResponseAttachment['status'];
     212                            switch ($attachmentStatus) {
     213                                // Case sent
     214                                case "201":
     215                                    //$messageAttachment = TDB_LANG_THANKATTACHMENT;
     216                                    break;
     217                                // Case error
     218                                default:
     219                                    $bError = true;
     220                                    if (isset ($jsonResponseAttachment['message'])) {
     221                                        $messageAttachment = $jsonResponseAttachment['message'];
     222                                    } else {
     223                                        $messageAttachment = TDB_LANG_ANERRORATTACHMENT;
     224                                    }
     225                            }
     226                        }
     227                    }
     228                    break;
     229                default:
     230                    if (isset($jsonResponse["message"]) && $jsonResponse["message"] != '') {
     231                        $message = $jsonResponse['message'];
     232                    } else {
     233                        $message = TDB_LANG_ANERROROCCURED;
     234                    }
     235                    break;
     236
     237            }
     238        }
     239
     240        return [$message, $messageAttachment];
     241    }
    120242}
  • jobsearch/trunk/admin/helper/adminHelper.php

    r2510468 r2708599  
    77use Jobsearch\SQL;
    88
    9 class AdminHelper{
     9class AdminHelper {
     10
    1011    // Update param who have to be shown on list page
    1112    function tdb_jb_updt_param($array) {
     
    1718        }
    1819    }
     20
    1921    // Update param who have to be shown on list page
    2022    function tdb_jb_updt_tpl($array, $type) {
     
    5961    }
    6062
    61 // Clear required param, mandatory param or apply param or Filter
     63    // Clear required param, mandatory param or apply param or Filter
    6264    function tdb_jb_clear_param_sql($valueToEmpty) {
    6365        global $wpdb;
     
    6668    }
    6769
    68 // Get all the language id used in database
     70    // Get all the language id used in database
    6971    function tdb_jb_get_table_language_value ($table, $columnName1, $columnName2 ) {
    7072        global $wpdb;
     
    8385    }
    8486
    85 // Update translation on database
     87    // Update translation on database
    8688    function tdb_jb_updt_database() {
    8789        global $gTypes;
     
    106108
    107109        if(is_array($glanguageUsedId) && !empty($glanguageUsedId)){
    108             // Get the correspondance between old language id and new one before update
     110            // Get the correspondence between old language id and new one before update
    109111            foreach ($glanguageUsedId as $keyNew => $valueNew) {
    110112                $val = $valueNew;
     
    144146    }
    145147
    146 //update id language on all table if something changed
     148    //update id language on all table if something changed
    147149    function tdb_jb_updt_id_language_all_table($array, $tableName, $column1, $column2) {
    148150        global $wpdb;
     
    177179    }
    178180
    179 // Update the language table with new id and value
     181    // Update the language table with new id and value
    180182    function tdb_jb_updt_table_language($array, $tableName, $column1, $column2) {
    181183        global $wpdb;
     
    196198    }
    197199
    198 // Update table with api value(type, category, industry, language)
     200    // Update table with api value(type, category, industry, language)
    199201    function tdb_jb_updt_table_api_val($array, $tableName, $column1, $column2, $column3) {
    200202        global $wpdb;
     
    222224    }
    223225
    224 // Set up language on (type,category,location, language)
     226    // Set up language on (type,category,location, language)
    225227    function tdb_jb_set_new_id_language($array, $idLanguage) {
    226228        global $glanguageUsedId;
     
    306308        return $html ;
    307309    }
    308 // Return html with all required field in checkbox
     310
     311    // Return html with all required field in checkbox
    309312    function tdb_jb_get_colsized_field($array) {
    310313        $translation = new Translation();
     
    385388    }
    386389
    387 //Return html with all field have to be shown in detail page in checkbox
     390    //Return html with all field have to be shown in detail page in checkbox
    388391    function tdb_jb_get_show_field($array, $paramEndName ='Param') {
    389392        $translation = new Translation();
     
    397400        $label["currency"] = TDB_LANG_WAGECURRENCY;
    398401        $label["maxAmount"] = TDB_LANG_MAXWAGEAMOUNT;
    399         $label["video"] = TDB_LANG_VIDEO;
    400         $label["summary"] = TDB_LANG_SUMMARY;
    401402        $label["maxCurrency"] = TDB_LANG_MAXWAGECURRENCY;
    402403        $label["negotiable"] = TDB_LANG_WAGENEGOTIABLE;
     
    415416        $label["holidays"] = TDB_LANG_HOLIDAY;
    416417        $label["conditions"] = TDB_LANG_CONDITION;
    417         $label["selling_points"] = TDB_LANG_SELLINGPOINT;
     418        $label["selling_points"] = TDB_LANG_SELLINGPOINTS;
    418419        $label["established_year"] = TDB_LANG_ESTABLISHEDYEARS;
    419420        $label["working_hours"] = TDB_LANG_WORKINGHOURS;
     
    446447    }
    447448
    448 //Return html with all field have to be shown in detail page in checkbox
     449    //Return html with all field have to be shown in detail page in checkbox
    449450    function tdb_jb_get_sort_by_field($array) {
    450451        $translation = new Translation();
     
    474475    }
    475476
    476 //Return html field with all field have to be shown in apply form in checkbox
     477    //Return html field with all field have to be shown in apply form in checkbox
    477478    function tdb_jb_get_apply_field($array) {
    478479        $translation = new Translation();
     
    529530    }
    530531
    531 // Return the number of apply done
    532     function tdb_jb_total_row($table){
     532    // Return the number of apply done
     533    function tdb_jb_total_row($table) {
    533534        global $wpdb;
    534535        $rowcount = $wpdb->get_var("SELECT COUNT(*) FROM $table");
     
    536537    }
    537538
    538 // Get applications from database
    539     function tdb_jb_get_apply($nbRow = 10,$offset = 0){
     539    // Get applications from database
     540    function tdb_jb_get_applications($nbRow = 10,$offset = 0) {
    540541        global $wpdb;
    541542        $applyAr = [];
    542543
    543         $request = "SELECT nId, nIdJob, sName, sDate, sTimezone, sJson FROM ".TDB_TABLE_APPLY
     544        $request = "SELECT nId, nIdApi, nIdJob, sName, sDate, sTimezone, sJson FROM ".TDB_TABLE_APPLY
    544545            . " ORDER BY nId DESC LIMIT $nbRow OFFSET $offset;";
    545546
     
    548549        foreach ($exec as $result) {
    549550            $applyAr[$result->nId]["id"] = $result->nId;
     551            $applyAr[$result->nId]["idApi"] = $result->nIdApi;
    550552            $applyAr[$result->nId]["idJob"] = $result->nIdJob;
    551553            $applyAr[$result->nId]["name"] = $result->sName;
     
    557559    }
    558560
    559 // Get attachment from database
    560     function tdb_jb_get_attachment(){
     561    // Get single application from the database
     562    function tdb_jb_get_application($id) {
     563        global $wpdb;
     564        $applyAr = [];
     565
     566        $request = "SELECT nId, nIdApi, nIdJob, sName, sDate, sTimezone, sJson FROM ".TDB_TABLE_APPLY . " WHERE nId = $id;";
     567
     568        $exec = $wpdb->get_results($request);
     569
     570        foreach ($exec as $result) {
     571            $applyAr[$result->nId]["id"] = $result->nId;
     572            $applyAr[$result->nId]["idApi"] = $result->nIdApi;
     573            $applyAr[$result->nId]["idJob"] = $result->nIdJob;
     574            $applyAr[$result->nId]["name"] = $result->sName;
     575            $applyAr[$result->nId]["date"] = $result->sDate;
     576            $applyAr[$result->nId]["timezone"] = $result->sTimezone;
     577            $applyAr[$result->nId]["json"] = $result->sJson;
     578        }
     579        return $applyAr;
     580    }
     581
     582    // Get attachments from database
     583    function tdb_jb_get_attachments() {
    561584        global $wpdb;
    562585        $applyAAr = [];
     
    579602    }
    580603
    581 //Set up pagination in the apply history page
     604    // Get the attachments for an application
     605    function tdb_jb_get_attachment_for_application($id) {
     606        global $wpdb;
     607        $applyAAr = [];
     608        $countAAr = [];
     609
     610        $request = "SELECT nId, nIdApply, sName, sFile FROM ".TDB_TABLE_APPLY_ATTACHMENT. " WHERE nIdApply = $id;";
     611
     612        $exec = $wpdb->get_results($request);
     613
     614        foreach ($exec as $result) {
     615            if(isset($countAAr[$result->nIdApply])){
     616                $countAAr[$result->nIdApply] ++;
     617            } else {
     618                $countAAr[$result->nIdApply] = 1;
     619            }
     620            $applyAAr[] = [
     621                "name" => $result->sName,
     622                "file" => $result->sFile
     623            ];
     624        }
     625
     626        return $applyAAr;
     627    }
     628
     629    //Set up pagination in the application history page
    582630    function tdb_jb_get_pagination_admin($totalApply,$offset,$NbJobToShow,$urlStart) {
    583631        $translation = new Translation();
     
    705753
    706754
    707 // Format all content for the apply history page
     755    // Format all content for the application history page
    708756    function tdb_jb_format_content($id){
    709757        global $wpdb;
     
    719767        $translatArray["nationality"] = TDB_LANG_NATIONALITY;
    720768        $translatArray["nearestStation"] = TDB_LANG_NEARESTSTATION;
     769        $translatArray["employments"] = TDB_LANG_EMPLOYEMENT;
    721770        $translatArray["languages"] = TDB_LANG_LANGUAGES;
    722771        $translatArray["languageCertifications"] = TDB_LANG_LANGUAGECERTIF;
     
    727776        $translatArray["desiredJobCategory"] = TDB_LANG_DESIREDCATEGORY;
    728777        $translatArray["desiredIndustry"] = TDB_LANG_DESIREDINDUSTRY;
     778        $translatArray["desiredIndustries"] = TDB_LANG_DESIREDINDUSTRY;
     779        $translatArray["desiredLocation"] = TDB_LANG_DESIREDLOCATION;
     780        $translatArray["desiredLocations"] = TDB_LANG_DESIREDLOCATION;
    729781        $translatArray["referrer"] = TDB_LANG_REFFERER;
    730782        $translatArray["noticePeriod"] = TDB_LANG_NOTICED_PERIOD;
    731         $translatArray["desiredLocation"] = TDB_LANG_DESIREDLOCATION;
    732783        $translatArray["url"] = TDB_LANG_URL;
    733784        $translatArray["facebook"] = TDB_LANG_FACEBOOK;
     
    742793        $translatArray["privacyPolicy"] = TDB_LANG_PRIVACYPOLICY;
    743794        $translatArray["recaptchaKey"] = TDB_LANG_RECAPTCHAKEY;
    744         $translatArray["recaptchaKey"] = TDB_LANG_RECAPTCHASECRET;
     795        $translatArray["recaptchaSecret"] = TDB_LANG_RECAPTCHASECRET;
     796
    745797        $translatTitle["socialMedia"] = TDB_LANG_SOCIALMEDIA;
    746         $translatTitle["employement"] = TDB_LANG_EMPLOYEMENT;
     798        $translatTitle["employment"] = TDB_LANG_EMPLOYEMENT;
    747799        $translatTitle["salary"] = TDB_LANG_SALARY;
    748800        $translatTitle["visa"] = TDB_LANG_VISA;
     
    757809
    758810        $contentArray["socialMedia"] = "";
    759         $contentArray["employement"] = "";
     811        $contentArray["employment"] = "";
    760812        $contentArray["salary"] = "";
    761813        $contentArray["visa"] = "";
     
    768820        $bResult = false;
    769821
    770         $request = "SELECT 1stlvl, 2ndlvl, 3ndlvl1, 3ndlvl2, val, val1, val2 FROM ".TDB_TABLE_APPLY_DETAIL.
    771             " WHERE nIdApply = $id";
     822        $request = "SELECT 1stlvl, 2ndlvl, 3ndlvl1, 3ndlvl2, val, val1, val2 FROM ".TDB_TABLE_APPLY_DETAIL." WHERE nIdApply = $id";
    772823
    773824        $exec = $wpdb->get_results($request);
     
    777828            $val = $translatArray[$result->{'1stlvl'}] . " : ";
    778829            switch ($result->{'1stlvl'}) {
     830                case 'employments':
     831                    $val .= $result->val1 . "<br/>".$result->{'3ndlvl2'}. ": ".$result->val2;
     832                    break;
    779833                case 'emails':
    780834                case 'phoneNumbers':
     
    813867                    $contentArray["visa"]  .= "<br/>".$val;
    814868                    break;
     869                case 'employment' :
     870                case 'employments' :
    815871                case 'desiredEmploymentTypes':
    816872                case 'desiredJobCategory':
    817873                case 'desiredIndustry':
    818                 case 'referrer':
     874                case 'desiredIndustries':
    819875                case 'noticePeriod':
    820876                case 'desiredLocation':
    821                     $contentArray["employement"] .= "<br/>".$val;
     877                case 'desiredLocations':
     878                    $contentArray["employment"] .= "<br/>".$val;
    822879                    break;
    823880                case 'url':
     
    826883                    $contentArray["socialMedia"] .= "<br/>".$val;
    827884                    break;
     885                case 'referrer':
    828886                case 'sourceType':
    829887                case 'privacyPolicy':
     
    833891            }
    834892        }
     893
     894        $request = "SELECT sjson FROM ".TDB_TABLE_APPLY." WHERE nId = $id";
     895        $exec = $wpdb->get_results($request);
     896        $json = $exec[0]->sjson;
    835897
    836898        $html = "";
     
    857919                }
    858920            }
     921            $html .= '<div class="tdb-jd-col-12"><h4>JSON</h4>'.$json.'</div>';
    859922            $html .= "</div>";
    860923        }
     
    887950    }
    888951
    889     function tdb_jb_upload_image($fileName){
     952    function tdb_jb_upload_image($fileName) {
    890953        $socialLogo = '';
    891954        /*Update file logo if it has*/
     
    934997    }
    935998
    936     function tdb_jb_update_param($helper, $paramName, $sanitizeType = '', $dataType =''){
     999    function tdb_jb_update_param($helper, $paramName, $sanitizeType = '', $dataType ='') {
    9371000        if(isset($_POST[$paramName])){
    9381001            if($helper->tdb_jb_validate_data($_POST[$paramName], $dataType)){
     
    9441007    }
    9451008
    946     function tdb_jb_update_css_param($helper, $paramName, $sanitizeType = '', $dataType =''){
     1009    function tdb_jb_update_css_param($helper, $paramName, $sanitizeType = '', $dataType ='') {
    9471010        if(isset($_POST[$paramName])){
    9481011            if($helper->tdb_jb_validate_data($_POST[$paramName], $dataType)){
     
    9541017    }
    9551018
    956     function tdb_jb_update_clean_param($helper, $paramName, $sanitizeType = '', $dataType =''){
     1019    function tdb_jb_update_clean_param($helper, $paramName, $sanitizeType = '', $dataType ='') {
    9571020        if(isset($_POST[$paramName])){
    9581021            if($helper->tdb_jb_validate_data($_POST[$paramName], $dataType)){
     
    9651028    }
    9661029
    967     function tdb_jb_update_multiple_textarea_param(Helper $helper, $paramName, $sanitizeType = '', $defaultUpper = true, $dataType =''){
     1030    function tdb_jb_update_multiple_textarea_param(Helper $helper, $paramName, $sanitizeType = '', $defaultUpper = true, $dataType ='') {
    9681031        $paramString = '';
    9691032        if(isset($_POST[$paramName])){
     
    10001063    }
    10011064
    1002     function tdb_jb_update_category_param(Helper $helper, $paramName, $dataType =''){
     1065    function tdb_jb_update_category_param(Helper $helper, $paramName, $dataType ='') {
    10031066        $paramString = '';
    10041067        if(isset($_POST[$paramName])){
     
    11081171    }
    11091172
    1110     function tdb_jb_get_SearchApi(){
     1173    function tdb_jb_get_SearchApi() {
    11111174        global $wpdb;
    11121175
     
    11221185    }
    11231186
    1124     function tdb_jb_get_KeyApi(){
     1187    function tdb_jb_get_KeyApi() {
    11251188        global $wpdb;
    11261189
     
    11361199    }
    11371200
    1138     function tdb_remove_link(){
     1201    function tdb_remove_link() {
    11391202        global $wpdb;
    11401203
     
    11441207    }
    11451208
    1146     function tdb_insert_link($api, $link, $key, $page, $search){
     1209    function tdb_insert_link($api, $link, $key, $page, $search) {
    11471210        $sql = new SQL();
    11481211        $sql->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'Link',"sValue" => $link,'nIdApi' => $api));
     
    11521215    }
    11531216
    1154     function tdb_jd_generate_api_field($count, $apiLinks, $apiKeys, $apiJobPages, $apiJobSearchs){
     1217    function tdb_jd_generate_api_field($count, $apiLinks, $apiKeys, $apiJobPages, $apiJobSearchs) {
    11551218        $helper = new Helper();
    11561219
     
    11671230    }
    11681231
    1169     function tdb_jd_generate_template_field($typeTemplate, $language = 'default', $value='', $valueSubject = ''){
     1232    function tdb_jd_generate_template_field($typeTemplate, $language = 'default', $value='', $valueSubject = '') {
    11701233        $helper = new Helper();
    11711234        $settings  = array('media_buttons' => false,
     
    11931256
    11941257    /* generate the tag button to put shortcode inside the textarea for mailing */
    1195     function tdb_generate_shortcode_tpl_button($elemId){
     1258    function tdb_generate_shortcode_tpl_button($elemId) {
    11961259        $html = "";
    11971260        $html .= '<a id="tag-generator-list" class="tdb-jb-unselectable" unselectable="on">';
     
    12031266    }
    12041267
    1205     function tdb_jd_bc_get_wp_editor($content = '', $editor_id, $options = array() ) {
     1268    function tdb_jd_bc_get_wp_editor($content, $editor_id, $options = array() ) {
    12061269        ob_start();
    12071270
  • jobsearch/trunk/frontEnd/apply/applyResult.php

    r2510927 r2708599  
    357357                            //attachment part
    358358                            $messageAttachment = "";
    359                             // in case the application is successful and id are sended back
     359                            // in case the application is successful and an ID is sent back
    360360                            if ($id > 0) {
    361361                                $linkFile .= "/" . $id . "/attachment";
     
    363363                                // if attachment
    364364                                if ($file_count > 0 && $_FILES["attachments"]["name"]["0"] <> "") {
    365                                     //copy file into worpdress and save data in wordpress database
     365                                    //copy file into WordPress and save data in WordPress database
    366366
    367367                                    if ($file_count > 1) {
     
    378378                                    }
    379379
    380                                     // Send attachment
     380                                    // Send attachments
    381381                                    $fileUrlArray = array('attachments' => $attachmentsUrlArray);
    382382                                    $responseAttachement = $applyHelper->tdb_jb_curl_send_attachement($linkFile, $fileUrlArray, $api);
    383383                                    $jsonResponseAttachment = json_decode($responseAttachement, true);
    384                                     if (isset ($jsonResponseAttachment['status'])) {
    385                                         $attachmentStatus = $jsonResponseAttachment['status'];
    386                                     }
    387 
    388                                     $jsonResponseAttachment = json_decode($responseAttachement, true);
    389384                                    $attachmentStatus = $jsonResponseAttachment['status'];
    390385                                    switch ($attachmentStatus) {
    391                                         // Case sended
     386                                        // Case sent
    392387                                        case "201":
    393388                                            $messageAttachment = TDB_LANG_THANKATTACHMENT;
     
    414409                    }
    415410                }
    416                 // if redirect available and apply is success then redirect to thanks page
     411                // if redirect available and apply is success then redirect to the thanks page
    417412                if ($postStatus == "201") {
    418413                    // check if template mail can be use
     
    475470                                $to = $email;
    476471                                $body = $template;
    477                                
     472
    478473                                $applyHelper->tdb_jb_send_email_applicant($body, $subject, $from, $to, $cc, $bcc);
    479474                            }
  • jobsearch/trunk/frontEnd/apply/helper/applyHelper.php

    r2684460 r2708599  
    7575                    }
    7676                    if(isset($val2[$i])){
    77                         $tmpVal2 = $val1[$i];
     77                        $tmpVal2 = $val2[$i];
    7878                    }
    7979                    $wpdb->insert(TDB_TABLE_APPLY_DETAIL, array('nIdApply' => $idApply, '1stlvl' => $firstLvl,'2ndlvl' => $secondLvl,
  • jobsearch/trunk/helper/migration.php

    r2684460 r2708599  
    77class Migration
    88{
    9    private $version = [];
     9   private $versions = [];
    1010
    11    public function _construct(){
     11   public function __construct(){
    1212       $this->versions = $this->get_migration();
    1313   }
     
    2020
    2121       foreach ($exec as $ligneResult) {
    22            $migration[$ligneResult->sValue] = $ligneResult->sValue;
     22           $migration[$ligneResult->sName] = $ligneResult->sName;
    2323       }
    2424
     
    3131
    3232       // check migration and update
    33        if(!isset($this->version['20191130'])){
     33       if(!isset($this->versions['20191130'])){
    3434           $version->tdb_version_20191130($sql);
    3535       }
    36        if(!isset($this->version['20220224'])){
     36       if(!isset($this->versions['20220224'])){
    3737           $version->tdb_version_20220224($sql);
     38       }
     39
     40       if(!isset($this->versions['20220412'])){
     41           $version->tdb_version_20220412($sql);
    3842       }
    3943   }
  • jobsearch/trunk/helper/translation.php

    r2674369 r2708599  
    10271027//I//
    10281028        define('TDB_LANG_ID',__("Id",$translation_name));
    1029         define('TDB_LANG_IDJOB',__("job ID",$translation_name));
     1029        define('TDB_LANG_IDAPI',__("API ID",$translation_name));
     1030        define('TDB_LANG_IDJOB',__("Job ID",$translation_name));
    10301031        define('TDB_LANG_INDUSTRY',__("Industry",$translation_name));
    10311032//J//
     
    11031104        define('TDB_LANG_PROBATIONPERIOD',__("ProbationPeriod",$translation_name));
    11041105        define('TDB_LANG_PUBLISHED',__("Published",$translation_name));
     1106        define('TDB_LANG_PUSH_APPLICATION',__("Push application to Tamago-DB",$translation_name));
     1107        define('TDB_LANG_PUSH_APPLICATION_SUCCESS',__("Application successfully pushed to Tamago-DB",$translation_name));
     1108        define('TDB_LANG_PUSH_CONFIRM',__("Are you sure you want to push this application to Tamago-DB?",$translation_name));
    11051109//R//
    11061110        define('TDB_LANG_RECAPTCHA',__("Recaptcha",$translation_name));
  • jobsearch/trunk/helper/version.php

    r2684460 r2708599  
    2424        $sql->tdb_jb_insert_line(TDB_TABLE_MIGRATION, array('sName' => '20220224'),'sName');
    2525    }
     26
     27    function tdb_version_20220412(SQL $sql){
     28
     29        $sql->tdb_jb_update_table(TDB_TABLE_APPLY, [], ['nIdApi'], 1);
     30        $sql->tdb_jb_insert_line(TDB_TABLE_MIGRATION, array('sName' => '20220412'),'sName');
     31    }
    2632}
  • jobsearch/trunk/jobsearch.php

    r2684460 r2708599  
    33Plugin Name: Tamago-DB Job Board
    44Description: Job board integrated with the ATS/CRM Tamago-DB
    5 Version: 2.1.0
     5Version: 2.2.0
    66Author: Tamago-DB
    77Text Domain: jobsearch
     
    4343
    4444//every time it need an sql update(new table etc, need to increase the TDB_VERSION
    45 define("TDB_VERSION",3.6);
     45define("TDB_VERSION",3.7);
    4646define('TDB_SQL_PREFIX',$wpdb->prefix . 'js_');
    4747define('TDB_TABLE_LAST_UPDATE',TDB_SQL_PREFIX.'lastUpdt');
     
    379379        wp_enqueue_script('jobsearchScriptAdmin');
    380380        $globalLoader->tdb_jb_get_opt_api();
    381         $adminList->tdb_jb_get_list_option();
     381
     382        if (isset($_POST['pushApplication'])) {
     383            $appId = $_POST['pushApplication'];
     384            $messages = $adminList->tdb_jb_push_application($appId);
     385
     386            $helper = new Helper();
     387            $adminHeaderArray = array("messages" => $messages);
     388            $helper->tdb_jb_show_template(TDB_ADMIN_LIST_HEAD_TPL, $adminHeaderArray);
     389        }
     390
     391        $adminList->tdb_jb_get_list_applications();
    382392    }
    383393}
  • jobsearch/trunk/languages/ja/jobsearch-ja.po

    r2614212 r2708599  
    22msgstr ""
    33"Project-Id-Version: \n"
    4 "POT-Creation-Date: 2021-10-14 12:52+0200\n"
    5 "PO-Revision-Date: 2021-10-14 12:52+0200\n"
     4"POT-Creation-Date: 2022-04-12 14:40+0200\n"
     5"PO-Revision-Date: 2022-04-12 14:41+0200\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    5858
    5959#: helper/translation.php:879 helper/translation.php:890
    60 #: helper/translation.php:1224
     60#: helper/translation.php:1228
    6161msgid "Apply"
    6262msgstr "今すぐ応募"
     
    8787
    8888#: helper/translation.php:886
    89 msgid "Api link (domain without http protocol)"
     89#, fuzzy
     90#| msgid "Api link (domain without http protocol)"
     91msgid "Api URL (domain without http protocol)"
    9092msgstr "リンク"
    9193
     
    477479msgstr "求められる学歴"
    478480
    479 #: helper/translation.php:978 helper/translation.php:1227
     481#: helper/translation.php:978 helper/translation.php:1231
    480482msgid "Email"
    481483msgstr "Eメール"
     
    678680
    679681#: helper/translation.php:1029
    680 msgid "job ID"
     682msgid "API ID"
     683msgstr ""
     684
     685#: helper/translation.php:1030
     686#, fuzzy
     687#| msgid "job ID"
     688msgid "Job ID"
    681689msgstr "求人ID"
    682690
    683 #: helper/translation.php:1030
     691#: helper/translation.php:1031
    684692msgid "Industry"
    685693msgstr "業種"
    686694
    687 #: helper/translation.php:1032
     695#: helper/translation.php:1033
    688696msgid "JLPT"
    689697msgstr "JLPT"
    690698
    691 #: helper/translation.php:1033
     699#: helper/translation.php:1034
    692700msgid "job"
    693701msgstr "求人"
    694702
    695 #: helper/translation.php:1034 helper/translation.php:1220
     703#: helper/translation.php:1035 helper/translation.php:1224
    696704msgid "Job"
    697705msgstr "求人"
    698706
    699 #: helper/translation.php:1035
     707#: helper/translation.php:1036
    700708msgid "Job description"
    701709msgstr "求人概要"
    702710
    703 #: helper/translation.php:1036
     711#: helper/translation.php:1037
    704712msgid "Job page"
    705713msgstr ""
    706714
    707 #: helper/translation.php:1037
     715#: helper/translation.php:1038
    708716#, fuzzy
    709717#| msgid "jobsearch"
     
    711719msgstr "求人検索"
    712720
    713 #: helper/translation.php:1038
     721#: helper/translation.php:1039
    714722msgid "Job requirements"
    715723msgstr "応募資格"
    716724
    717 #: helper/translation.php:1039
     725#: helper/translation.php:1040
    718726msgid "Job information visibilty"
    719727msgstr "求人の表示設定"
    720728
    721 #: helper/translation.php:1040
     729#: helper/translation.php:1041
    722730msgid "Video visibility(only for video template)"
    723731msgstr ""
    724732
    725 #: helper/translation.php:1041
     733#: helper/translation.php:1042
    726734#, fuzzy
    727735#| msgid "Number of job to show in the widget"
     
    729737msgstr "ウィジェットに表示する求人の数"
    730738
    731 #: helper/translation.php:1042
     739#: helper/translation.php:1043
    732740msgid "Number of job to show in the widget"
    733741msgstr "ウィジェットに表示する求人の数"
    734742
    735 #: helper/translation.php:1043
     743#: helper/translation.php:1044
    736744msgid "Number of characters to use in the short description"
    737745msgstr "短い説明の文字数"
    738746
    739 #: helper/translation.php:1045
     747#: helper/translation.php:1046
    740748msgid "Keyword"
    741749msgstr "キーワード"
    742750
    743 #: helper/translation.php:1047 helper/translation.php:1048
     751#: helper/translation.php:1048 helper/translation.php:1049
    744752msgid "Language"
    745753msgstr "言語"
    746754
    747 #: helper/translation.php:1049
     755#: helper/translation.php:1050
    748756msgid "Languages"
    749757msgstr "言語"
    750758
    751 #: helper/translation.php:1050
     759#: helper/translation.php:1051
    752760msgid "Language ability"
    753761msgstr "言語スキル"
    754762
    755 #: helper/translation.php:1051
     763#: helper/translation.php:1052
    756764msgid "Language certification"
    757765msgstr "言語資格"
    758766
    759 #: helper/translation.php:1052
     767#: helper/translation.php:1053
    760768msgid "Language certifications"
    761769msgstr "言語資格"
    762770
    763 #: helper/translation.php:1053
     771#: helper/translation.php:1054
    764772#, fuzzy
    765773#| msgid "Language certification"
     
    767775msgstr "言語資格"
    768776
    769 #: helper/translation.php:1054
     777#: helper/translation.php:1055
    770778msgid "Language required"
    771779msgstr "必須言語"
    772780
    773 #: helper/translation.php:1055
     781#: helper/translation.php:1056
    774782msgid "Last"
    775783msgstr "最後へ"
    776784
    777 #: helper/translation.php:1056
    778 msgid "Latest job"
     785#: helper/translation.php:1057
     786#, fuzzy
     787#| msgid "Latest job"
     788msgid "Latest jobs"
    779789msgstr "新着求人"
    780790
    781 #: helper/translation.php:1057
     791#: helper/translation.php:1058
    782792msgid "Level"
    783793msgstr "レベル"
    784794
    785 #: helper/translation.php:1058
     795#: helper/translation.php:1059
    786796msgid "Linkedin"
    787797msgstr "Linkedin"
    788798
    789 #: helper/translation.php:1059 helper/translation.php:1219
     799#: helper/translation.php:1060 helper/translation.php:1223
    790800msgid "Link"
    791801msgstr "リンク"
    792802
    793 #: helper/translation.php:1060
     803#: helper/translation.php:1061
    794804#, fuzzy
    795805#| msgid "link font color"
     
    797807msgstr "フォントの色"
    798808
    799 #: helper/translation.php:1061
     809#: helper/translation.php:1062
    800810msgid "Location"
    801811msgstr "勤務地"
    802812
    803 #: helper/translation.php:1063
     813#: helper/translation.php:1064
    804814msgid "M"
    805815msgstr "男"
    806816
    807 #: helper/translation.php:1064
     817#: helper/translation.php:1065
    808818msgid "Max wage"
    809819msgstr "最高給与"
    810820
    811 #: helper/translation.php:1065
     821#: helper/translation.php:1066
    812822msgid "Message"
    813823msgstr "メッセージ"
    814824
    815 #: helper/translation.php:1066
     825#: helper/translation.php:1067
    816826msgid "Min wage"
    817827msgstr "最小給与"
    818828
    819 #: helper/translation.php:1067
     829#: helper/translation.php:1068
    820830msgid "mobile"
    821831msgstr "携帯"
    822832
    823 #: helper/translation.php:1068
     833#: helper/translation.php:1069
    824834msgid "Month"
    825835msgstr "月"
    826836
    827 #: helper/translation.php:1069
     837#: helper/translation.php:1070
    828838msgid "More information"
    829839msgstr "続きを読む"
    830840
    831 #: helper/translation.php:1071
     841#: helper/translation.php:1072
    832842msgid "Name"
    833843msgstr "名前"
    834844
    835 #: helper/translation.php:1072
     845#: helper/translation.php:1073
    836846msgid "Nationality"
    837847msgstr "国籍"
    838848
    839 #: helper/translation.php:1073
     849#: helper/translation.php:1074
    840850msgid "Nearest station"
    841851msgstr "最寄駅"
    842852
    843 #: helper/translation.php:1074
     853#: helper/translation.php:1075
    844854msgid "negotiable"
    845855msgstr "経験考慮の上、応相談"
    846856
    847 #: helper/translation.php:1075
     857#: helper/translation.php:1076
    848858msgid "Next"
    849859msgstr "次へ"
    850860
    851 #: helper/translation.php:1076
     861#: helper/translation.php:1077
    852862msgid "No job was found for your search"
    853863msgstr "あなたの検索で求人が見つかりませんでした"
    854864
    855 #: helper/translation.php:1077
     865#: helper/translation.php:1078
    856866msgid "Notice period"
    857867msgstr "退職までにかかる期間"
    858868
    859 #: helper/translation.php:1079
     869#: helper/translation.php:1080
    860870msgid "One code per line (iso 639-1, example: \"en\")"
    861871msgstr "一列に1コード(例:en)"
    862872
    863 #: helper/translation.php:1080
     873#: helper/translation.php:1081
    864874msgid "One code per line (iso 639-2, example: \"JP\")"
    865875msgstr "行に1つのコード(iso 639-2、例: \"JP\")"
    866876
    867 #: helper/translation.php:1081
     877#: helper/translation.php:1082
    868878#, fuzzy
    869879#| msgid "Order of favorite language"
     
    871881msgstr "お気に入りの言語の順番"
    872882
    873 #: helper/translation.php:1082
     883#: helper/translation.php:1083
    874884#, fuzzy
    875885#| msgid "Order of favorite nationality"
     
    877887msgstr "好きな国籍の順番"
    878888
    879 #: helper/translation.php:1083
     889#: helper/translation.php:1084
    880890#, fuzzy
    881891#| msgid "Order of favorite country others"
     
    883893msgstr "その他の気なる国を順位つける"
    884894
    885 #: helper/translation.php:1084
     895#: helper/translation.php:1085
    886896msgid "Order of favorite country others"
    887897msgstr "その他の気なる国を順位つける"
    888898
    889 #: helper/translation.php:1085
     899#: helper/translation.php:1086
    890900msgid "Other country"
    891901msgstr "海外"
    892902
    893 #: helper/translation.php:1086
     903#: helper/translation.php:1087
    894904msgid "Other languages"
    895905msgstr "他の言語"
    896906
    897 #: helper/translation.php:1087
     907#: helper/translation.php:1088
    898908msgid "Other"
    899909msgstr "その他"
    900910
    901 #: helper/translation.php:1088
     911#: helper/translation.php:1089
    902912msgid "other"
    903913msgstr "その他"
    904914
    905 #: helper/translation.php:1090
     915#: helper/translation.php:1091
    906916msgid "Parameters"
    907917msgstr "パラメーター"
    908918
    909 #: helper/translation.php:1091
     919#: helper/translation.php:1092
    910920msgid "Personal information"
    911921msgstr "個人情報"
    912922
    913 #: helper/translation.php:1092
     923#: helper/translation.php:1093
    914924msgid "Pick a color"
    915925msgstr "色の選択"
    916926
    917 #: helper/translation.php:1093
     927#: helper/translation.php:1094
    918928msgid "Phone number"
    919929msgstr "電話番号"
    920930
    921 #: helper/translation.php:1094 helper/translation.php:1246
     931#: helper/translation.php:1095 helper/translation.php:1250
    922932msgid "Phone type"
    923933msgstr "種類"
    924934
    925 #: helper/translation.php:1095
     935#: helper/translation.php:1096
    926936msgid "Phone"
    927937msgstr "電話番号"
    928938
    929 #: helper/translation.php:1096
     939#: helper/translation.php:1097
    930940msgid "Postal code"
    931941msgstr "郵便番号"
    932942
    933 #: helper/translation.php:1097
     943#: helper/translation.php:1098
    934944msgid "Previous"
    935945msgstr "前へ"
    936946
    937 #: helper/translation.php:1098
     947#: helper/translation.php:1099
    938948msgid "Privacy policy"
    939949msgstr "プライバシーポリシー"
    940950
    941 #: helper/translation.php:1099
     951#: helper/translation.php:1100
    942952#, fuzzy
    943953#| msgid "Privacy policy "
     
    945955msgstr "プライバシーポリシー "
    946956
    947 #: helper/translation.php:1100
     957#: helper/translation.php:1101
    948958msgid "I have read and agree with the privacy policy"
    949959msgstr "プライバシーポリシーに同意する"
    950960
    951 #: helper/translation.php:1101
     961#: helper/translation.php:1102
    952962msgid "Privacy policy link"
    953963msgstr "プライバシーポリシーのリンク"
    954964
    955 #: helper/translation.php:1102
     965#: helper/translation.php:1103
    956966msgid "Prefered list options"
    957967msgstr "選択のリストの配置"
    958968
    959 #: helper/translation.php:1103
     969#: helper/translation.php:1104
    960970msgid "ProbationPeriod"
    961971msgstr "試用期間"
    962972
    963 #: helper/translation.php:1104
     973#: helper/translation.php:1105
    964974msgid "Published"
    965975msgstr "公開日"
    966976
    967977#: helper/translation.php:1106
     978msgid "Push application to Tamago-DB"
     979msgstr ""
     980
     981#: helper/translation.php:1107
     982msgid "Application successfully pushed to Tamago-DB"
     983msgstr ""
     984
     985#: helper/translation.php:1108
     986msgid "Are you sure you want to push this application to Tamago-DB?"
     987msgstr ""
     988
     989#: helper/translation.php:1110
    968990msgid "Recaptcha"
    969991msgstr ""
    970992
    971 #: helper/translation.php:1107
     993#: helper/translation.php:1111
    972994msgid "Recaptcha key"
    973995msgstr ""
    974996
    975 #: helper/translation.php:1108
     997#: helper/translation.php:1112
    976998msgid "Recaptcha secret"
    977999msgstr ""
    9781000
    979 #: helper/translation.php:1109
     1001#: helper/translation.php:1113
    9801002msgid "please declare your website on the following link to get a key"
    9811003msgstr ""
    9821004
    983 #: helper/translation.php:1110
     1005#: helper/translation.php:1114
    9841006msgid "Read more..."
    9851007msgstr "続きを読む。"
    9861008
    987 #: helper/translation.php:1111
     1009#: helper/translation.php:1115
    9881010msgid "Read privacy policy"
    9891011msgstr "プライバシーポリシーをお読み下さい"
    9901012
    991 #: helper/translation.php:1112
     1013#: helper/translation.php:1116
    9921014msgid "Reason for hiring"
    9931015msgstr "募集背景"
    9941016
    995 #: helper/translation.php:1113
     1017#: helper/translation.php:1117
    9961018msgid "Reason for hiring details"
    9971019msgstr "募集背景"
    9981020
    999 #: helper/translation.php:1114
     1021#: helper/translation.php:1118
    10001022msgid "Referrer"
    10011023msgstr "紹介"
    10021024
    1003 #: helper/translation.php:1115
     1025#: helper/translation.php:1119
    10041026msgid "How did you find us?"
    10051027msgstr "経路(どこで知りましたか)"
    10061028
    1007 #: helper/translation.php:1116
     1029#: helper/translation.php:1120
    10081030msgid "Region"
    10091031msgstr "都道府県"
    10101032
    1011 #: helper/translation.php:1117
     1033#: helper/translation.php:1121
    10121034msgid "Register"
    10131035msgstr "登録"
    10141036
    1015 #: helper/translation.php:1118
     1037#: helper/translation.php:1122
    10161038msgid "Remove"
    10171039msgstr "削除"
    10181040
    1019 #: helper/translation.php:1119
     1041#: helper/translation.php:1123
    10201042msgid "Reset"
    10211043msgstr "リセット"
    10221044
    1023 #: helper/translation.php:1120
     1045#: helper/translation.php:1124
    10241046msgid "results"
    10251047msgstr "件の検索結果が"
    10261048
    1027 #: helper/translation.php:1121
     1049#: helper/translation.php:1125
    10281050msgid "Resume"
    10291051msgstr "履歴書・職務経歴書"
    10301052
    1031 #: helper/translation.php:1122
     1053#: helper/translation.php:1126
    10321054msgid "Required language"
    10331055msgstr "必須言語"
    10341056
    1035 #: helper/translation.php:1124 helper/translation.php:1258
     1057#: helper/translation.php:1128 helper/translation.php:1262
    10361058msgid "Visa"
    10371059msgstr "ビザ"
    10381060
    1039 #: helper/translation.php:1125
     1061#: helper/translation.php:1129
    10401062msgid "Requirements"
    10411063msgstr "応募資格"
    10421064
    1043 #: helper/translation.php:1126
     1065#: helper/translation.php:1130
    10441066msgid "Return to search"
    10451067msgstr "検索に戻る"
    10461068
    1047 #: helper/translation.php:1127
     1069#: helper/translation.php:1131
    10481070msgid "Return to Job Details"
    10491071msgstr "求人詳細に戻る"
    10501072
    1051 #: helper/translation.php:1128
     1073#: helper/translation.php:1132
    10521074msgid "Reverse language skill"
    10531075msgstr "必須言語"
    10541076
    1055 #: helper/translation.php:1129
     1077#: helper/translation.php:1133
    10561078msgid "Rewrite url"
    10571079msgstr ""
    10581080
    1059 #: helper/translation.php:1131
     1081#: helper/translation.php:1135
    10601082msgid "Salary"
    10611083msgstr "給与"
    10621084
    1063 #: helper/translation.php:1132
     1085#: helper/translation.php:1136
    10641086#, fuzzy
    10651087#| msgid "Hide salary"
     
    10671089msgstr "給与検索を非表示にする/(検索フォームの給与フィールドを非表示にする)"
    10681090
    1069 #: helper/translation.php:1133 helper/translation.php:1222
     1091#: helper/translation.php:1137 helper/translation.php:1226
    10701092msgid "Search"
    10711093msgstr "検索"
    10721094
    1073 #: helper/translation.php:1134
     1095#: helper/translation.php:1138
    10741096#, fuzzy
    10751097#| msgid "Languages"
     
    10771099msgstr "言語"
    10781100
    1079 #: helper/translation.php:1135
     1101#: helper/translation.php:1139
    10801102msgid "Search jobs"
    10811103msgstr "求人を検索する"
    10821104
    1083 #: helper/translation.php:1136
     1105#: helper/translation.php:1140
    10841106msgid "Level or score"
    10851107msgstr "レベル又は得点"
    10861108
    1087 #: helper/translation.php:1137
     1109#: helper/translation.php:1141
    10881110msgid "Search results"
    10891111msgstr "検索結果"
    10901112
    1091 #: helper/translation.php:1138
     1113#: helper/translation.php:1142
    10921114msgid "Search field is multiple type"
    10931115msgstr "検索は複数選択可"
    10941116
    1095 #: helper/translation.php:1139
     1117#: helper/translation.php:1143
    10961118msgid "Settings"
    10971119msgstr "設定"
    10981120
    1099 #: helper/translation.php:1140 helper/translation.php:1226
     1121#: helper/translation.php:1144 helper/translation.php:1230
    11001122#, fuzzy
    11011123#| msgid "Postal code"
     
    11031125msgstr "郵便番号"
    11041126
    1105 #: helper/translation.php:1141
     1127#: helper/translation.php:1145
    11061128msgid "Selling points"
    11071129msgstr "セールスポイント"
    11081130
    1109 #: helper/translation.php:1142
     1131#: helper/translation.php:1146
    11101132msgid "Select type"
    11111133msgstr "雇用形態を選ぶ"
    11121134
    1113 #: helper/translation.php:1143
     1135#: helper/translation.php:1147
    11141136msgid "Select industry"
    11151137msgstr "業種を選ぶ"
    11161138
    1117 #: helper/translation.php:1144
     1139#: helper/translation.php:1148
    11181140#, fuzzy
    11191141#| msgid "Select type"
     
    11211143msgstr "雇用形態を選ぶ"
    11221144
    1123 #: helper/translation.php:1145
     1145#: helper/translation.php:1149
    11241146msgid ""
    11251147"To select multiple fields, 'Ctrl+Click' for Windows and 'Command+Click' for "
     
    11291151"リック」"
    11301152
    1131 #: helper/translation.php:1146
     1153#: helper/translation.php:1150
    11321154msgid "Skills and Certification"
    11331155msgstr "スキル及び学歴・資格"
    11341156
    1135 #: helper/translation.php:1147
     1157#: helper/translation.php:1151
    11361158msgid "Skills and Certifications"
    11371159msgstr "スキル及び学歴・資格"
    11381160
    1139 #: helper/translation.php:1148
     1161#: helper/translation.php:1152
    11401162msgid "Social media"
    11411163msgstr "ソーシャルメディア"
    11421164
    1143 #: helper/translation.php:1149
     1165#: helper/translation.php:1153
    11441166msgid "Sort by"
    11451167msgstr "並び替え"
    11461168
    1147 #: helper/translation.php:1150
     1169#: helper/translation.php:1154
    11481170msgid "Source"
    11491171msgstr "媒体・情報源"
    11501172
    1151 #: helper/translation.php:1151
     1173#: helper/translation.php:1155
    11521174msgid "Source type"
    11531175msgstr "媒体・情報源"
    11541176
    1155 #: helper/translation.php:1152
     1177#: helper/translation.php:1156
    11561178#, fuzzy
    11571179#| msgid "Social media"
     
    11591181msgstr "ソーシャルメディア"
    11601182
    1161 #: helper/translation.php:1153
     1183#: helper/translation.php:1157
    11621184msgid "Status"
    11631185msgstr "状況"
    11641186
    1165 #: helper/translation.php:1154
     1187#: helper/translation.php:1158
    11661188msgid "Status of Residence"
    11671189msgstr "在留資格"
    11681190
    1169 #: helper/translation.php:1155
     1191#: helper/translation.php:1159
    11701192msgid "Street"
    11711193msgstr "番地"
    11721194
    1173 #: helper/translation.php:1156
     1195#: helper/translation.php:1160
    11741196msgid "Submit"
    11751197msgstr "応募する"
    11761198
    1177 #: helper/translation.php:1157
     1199#: helper/translation.php:1161
    11781200msgid "Subject"
    11791201msgstr ""
    11801202
    1181 #: helper/translation.php:1158
     1203#: helper/translation.php:1162
    11821204msgid "Summary"
    11831205msgstr ""
    11841206
    1185 #: helper/translation.php:1159
     1207#: helper/translation.php:1163
    11861208#, fuzzy
    11871209#| msgid "Hide salary"
     
    11891211msgstr "給与検索を非表示にする/(検索フォームの給与フィールドを非表示にする)"
    11901212
    1191 #: helper/translation.php:1160
     1213#: helper/translation.php:1164
    11921214#, fuzzy
    11931215#| msgid "Postal code"
     
    11951217msgstr "郵便番号"
    11961218
    1197 #: helper/translation.php:1161
     1219#: helper/translation.php:1165
    11981220msgid "[job-url]<br/>[given-name]<br/>[family-name]"
    11991221msgstr ""
    12001222
    1201 #: helper/translation.php:1162
     1223#: helper/translation.php:1166
    12021224msgid ""
    12031225"<h4>[jobsearch_form] - [tdb_job_board_form] / Include search and list</h4> \n"
     
    13001322msgstr ""
    13011323
    1302 #: helper/translation.php:1221
     1324#: helper/translation.php:1225
    13031325msgid "Design"
    13041326msgstr "デザイン"
    13051327
    1306 #: helper/translation.php:1223
     1328#: helper/translation.php:1227
    13071329msgid "Detail"
    13081330msgstr "詳細"
    13091331
    1310 #: helper/translation.php:1225 helper/translation.php:1273
     1332#: helper/translation.php:1229 helper/translation.php:1277
    13111333msgid "Widget"
    13121334msgstr "ウィジェット"
    13131335
    1314 #: helper/translation.php:1228
     1336#: helper/translation.php:1232
    13151337msgid "Tag group"
    13161338msgstr ""
    13171339
    1318 #: helper/translation.php:1229
     1340#: helper/translation.php:1233
    13191341msgid "Tag job title"
    13201342msgstr ""
    13211343
    1322 #: helper/translation.php:1230
     1344#: helper/translation.php:1234
    13231345msgid "Tags"
    13241346msgstr "タグ"
    13251347
    1326 #: helper/translation.php:1231
     1348#: helper/translation.php:1235
    13271349msgid "TDB"
    13281350msgstr "Tamago-DB"
    13291351
    1330 #: helper/translation.php:1232
     1352#: helper/translation.php:1236
    13311353msgid "TDB Job board"
    13321354msgstr "Tamago-DB求人連携"
    13331355
    1334 #: helper/translation.php:1233
     1356#: helper/translation.php:1237
    13351357msgid "Template"
    13361358msgstr "テンプレート"
    13371359
    1338 #: helper/translation.php:1234
     1360#: helper/translation.php:1238
    13391361msgid "Enable application for confirmation email"
    13401362msgstr ""
    13411363
    1342 #: helper/translation.php:1235
     1364#: helper/translation.php:1239
    13431365#, fuzzy
    13441366#| msgid "Template"
     
    13461368msgstr "テンプレート"
    13471369
    1348 #: helper/translation.php:1236
     1370#: helper/translation.php:1240
    13491371msgid "Template to be used"
    13501372msgstr "使用するテンプレート"
    13511373
    1352 #: helper/translation.php:1237
     1374#: helper/translation.php:1241
    13531375msgid "Thank you for your application. Your application has been sent."
    13541376msgstr "ご応募いただきありがとうございます。応募書類は正常に送信されました。"
    13551377
    1356 #: helper/translation.php:1238
     1378#: helper/translation.php:1242
    13571379msgid "Thank you. Your attachment has been sent."
    13581380msgstr "添付書類は正常に送信されました。"
    13591381
    1360 #: helper/translation.php:1239
     1382#: helper/translation.php:1243
    13611383msgid "TOEIC"
    13621384msgstr "TOEIC"
    13631385
    1364 #: helper/translation.php:1240
     1386#: helper/translation.php:1244
    13651387msgid "TOEFL"
    13661388msgstr "TOEFL"
    13671389
    1368 #: helper/translation.php:1241
     1390#: helper/translation.php:1245
    13691391msgid "Title"
    13701392msgstr "タイトル"
    13711393
    1372 #: helper/translation.php:1242
     1394#: helper/translation.php:1246
    13731395msgid "Type"
    13741396msgstr "雇用形態"
    13751397
    1376 #: helper/translation.php:1243
     1398#: helper/translation.php:1247
    13771399msgid "Type of Source"
    13781400msgstr "媒体・情報源(詳細"
    13791401
    1380 #: helper/translation.php:1244
     1402#: helper/translation.php:1248
    13811403msgid "Employement type detail"
    13821404msgstr "雇用形態(詳細)"
    13831405
    1384 #: helper/translation.php:1245
     1406#: helper/translation.php:1249
    13851407msgid "Email type"
    13861408msgstr "種類"
    13871409
    1388 #: helper/translation.php:1248
     1410#: helper/translation.php:1252
    13891411msgid "Url (personal website)"
    13901412msgstr "URL"
    13911413
    1392 #: helper/translation.php:1249
     1414#: helper/translation.php:1253
    13931415#, fuzzy
    13941416#| msgid "required field to apply"
     
    13961418msgstr "必須項目"
    13971419
    1398 #: helper/translation.php:1250
     1420#: helper/translation.php:1254
    13991421msgid "Update API"
    14001422msgstr "APIを更新"
    14011423
    1402 #: helper/translation.php:1251
     1424#: helper/translation.php:1255
    14031425msgid "Upload image"
    14041426msgstr ""
    14051427
    1406 #: helper/translation.php:1252
     1428#: helper/translation.php:1256
    14071429msgid "Update api"
    14081430msgstr "APIを更新"
    14091431
    1410 #: helper/translation.php:1253
     1432#: helper/translation.php:1257
    14111433msgid "Update translation"
    14121434msgstr "翻訳を更新"
    14131435
    1414 #: helper/translation.php:1254
     1436#: helper/translation.php:1258
    14151437msgid "Use one basis"
    14161438msgstr ""
    14171439"つの基準を使用/(検索フォームでは、1つの基準のみを使用、毎年、毎月、毎日)"
    14181440
    1419 #: helper/translation.php:1255
     1441#: helper/translation.php:1259
    14201442msgid "Use one currency"
    14211443msgstr ""
    14221444"つの通貨を使用/(検索フォームでは、1つの通貨のみを使用、円もしくはユーロ)"
    14231445
    1424 #: helper/translation.php:1256
     1446#: helper/translation.php:1260
    14251447msgid "Upload logo for social sharing"
    14261448msgstr ""
    14271449
    1428 #: helper/translation.php:1259
     1450#: helper/translation.php:1263
    14291451msgid "Visas"
    14301452msgstr "ビザ"
    14311453
    1432 #: helper/translation.php:1260
     1454#: helper/translation.php:1264
    14331455msgid "Country of issue"
    14341456msgstr "ビザ発行国"
    14351457
    1436 #: helper/translation.php:1261
     1458#: helper/translation.php:1265
    14371459msgid "Visa type"
    14381460msgstr "ビザの種類"
    14391461
    1440 #: helper/translation.php:1262
     1462#: helper/translation.php:1266
    14411463msgid "Video"
    14421464msgstr ""
    14431465
    1444 #: helper/translation.php:1263
     1466#: helper/translation.php:1267
    14451467msgid "For templates using video"
    14461468msgstr ""
    14471469
    1448 #: helper/translation.php:1264
     1470#: helper/translation.php:1268
    14491471msgid "Show the video"
    14501472msgstr ""
    14511473
    1452 #: helper/translation.php:1266
     1474#: helper/translation.php:1270
    14531475#, fuzzy
    14541476#| msgid "Wage amount"
     
    14561478msgstr "金額"
    14571479
    1458 #: helper/translation.php:1267
     1480#: helper/translation.php:1271
    14591481msgid "Wage amount"
    14601482msgstr "金額"
    14611483
    1462 #: helper/translation.php:1268
     1484#: helper/translation.php:1272
    14631485msgid "Wage basis"
    14641486msgstr "給与の支給方式"
    14651487
    1466 #: helper/translation.php:1269
     1488#: helper/translation.php:1273
    14671489#, fuzzy
    14681490#| msgid "Wage basis"
     
    14701492msgstr "給与の支給方式"
    14711493
    1472 #: helper/translation.php:1270
     1494#: helper/translation.php:1274
    14731495msgid "Wage currency"
    14741496msgstr "給与の通貨"
    14751497
    1476 #: helper/translation.php:1271
     1498#: helper/translation.php:1275
    14771499#, fuzzy
    14781500#| msgid "Wage currency"
     
    14801502msgstr "給与の通貨"
    14811503
    1482 #: helper/translation.php:1272
     1504#: helper/translation.php:1276
    14831505msgid "Wage detail"
    14841506msgstr "給与(詳細)"
    14851507
    1486 #: helper/translation.php:1274
     1508#: helper/translation.php:1278
    14871509msgid "Widget : Maximum date to show published jobs"
    14881510msgstr "ウィジェット:過去何日間の最新公開求人の表示するか選択"
    14891511
    1490 #: helper/translation.php:1275
     1512#: helper/translation.php:1279
    14911513msgid "Widget : Category to filter"
    14921514msgstr "ウィジェット:カテゴリーのフィルター"
    14931515
    1494 #: helper/translation.php:1276
     1516#: helper/translation.php:1280
    14951517msgid "Wage negotiable"
    14961518msgstr "経験考慮の上、応相談"
    14971519
    1498 #: helper/translation.php:1277
     1520#: helper/translation.php:1281
    14991521msgid "wordpress ID"
    15001522msgstr "ワードプレス ID"
    15011523
    1502 #: helper/translation.php:1278
     1524#: helper/translation.php:1282
    15031525msgid "Working hours"
    15041526msgstr "勤務時間"
    15051527
    1506 #: helper/translation.php:1279
     1528#: helper/translation.php:1283
    15071529msgid "work mobile"
    15081530msgstr "会社携帯"
    15091531
    1510 #: helper/translation.php:1280
     1532#: helper/translation.php:1284
    15111533msgid "work"
    15121534msgstr "会社"
    15131535
    1514 #: helper/translation.php:1281
     1536#: helper/translation.php:1285
    15151537msgid "work other"
    15161538msgstr "会社その他"
    15171539
    1518 #: helper/translation.php:1283
     1540#: helper/translation.php:1287
    15191541msgid "Years"
    15201542msgstr "年"
    15211543
    1522 #: helper/translation.php:1284
     1544#: helper/translation.php:1288
    15231545msgid "Your application has been sent. "
    15241546msgstr "応募書類は正常に送信されました。"
    15251547
    1526 #: helper/translation.php:1285
     1548#: helper/translation.php:1289
    15271549msgid "Error "
    15281550msgstr "エラー "
  • jobsearch/trunk/templates/admin/adminListApplyBody1.tpl

    r2510924 r2708599  
    55        </div>
    66        <div class="tdb-jd-col-2">
     7            {$langIdApi}&nbsp;:&nbsp;{$idApi}
     8        </div>
     9        <div class="tdb-jd-col-2">
    710            {$langIdJob}&nbsp;:&nbsp;{$idJob}
    811        </div>
    9         <div class="tdb-jd-col-4">
     12        <div class="tdb-jd-col-3">
    1013            {$langName}&nbsp;:&nbsp;{$name}
    1114        </div>
     
    1619
    1720    {$detail}
    18     <div class="tdb-jd-row tdb-jd-admin-border tdb-jd-admin-header-color">
    19         {if $link != ""}
     21    {if $link != ""}
     22        <div class="tdb-jd-row tdb-jd-admin-border tdb-jd-admin-header-color" style="padding-bottom: 10px;">
    2023            <div class="tdb-jd-col-7 ">
    2124                {$langFile}<br/>{$link}
    2225            </div>
    23         {/if}
     26        </div>
     27    {/if}
     28    <div class="tdb-jd-row tdb-jd-admin-border tdb-jd-admin-header-color" style="padding: 10px 0 10px 0">
     29        <div class="tdb-jd-col-7">
     30            <form action="?page=jobsearchsubmenu" method="post">
     31                <input type="hidden" name="pushApplication" value="{$id}" />
     32                <button type="submit" onclick="return confirm('{$langPushConfirm}');">{$langPushApplication}</button>
     33            </form>
     34        </div>
    2435    </div>
    2536</div>
  • jobsearch/trunk/templates/admin/adminListApplyHeader1.tpl

    r2026345 r2708599  
    1 <div class="tdb-jd-container">
    2     <div class="tdb-jd-row tdb-jd-row-header-detail tdb-jd-admin-header-color">
    3         <div class="tdb-jd-col-2 ">
    4             {$langId}
    5         </div>
    6         <div class="tdb-jd-col-2">
    7             {$langIdJob}
    8         </div>
    9         <div class="tdb-jd-col-4">
    10             {$langName}
    11         </div>
    12         <div class="tdb-jd-col-3">
    13             {$langDate}
    14         </div>
    15     </div>
     1<div class="notice notice-success is-dismissible">
     2    {foreach from=$messages item=message}
     3        <p>{$message}</p>
     4    {/foreach}
     5
    166</div>
Note: See TracChangeset for help on using the changeset viewer.