Changeset 2426214
- Timestamp:
- 11/26/2020 03:28:57 AM (5 years ago)
- Location:
- prosolution-wp-client/trunk
- Files:
-
- 31 edited
-
README.txt (modified) (2 diffs)
-
admin/class-prosolwpclient-admin.php (modified) (2 diffs)
-
admin/css/prosolwpclient-setting.css (modified) (1 diff)
-
admin/js/prosolwpclient-setting.js (modified) (4 diffs)
-
includes/class-prosolwpclient-activator.php (modified) (2 diffs)
-
includes/class-prosolwpclient-helper.php (modified) (2 diffs)
-
includes/class-prosolwpclient-table-helper.php (modified) (1 diff)
-
includes/class-prosolwpclient-uninstall.php (modified) (2 diffs)
-
includes/class-prosolwpclient.php (modified) (1 diff)
-
includes/class-setting.php (modified) (8 diffs)
-
languages/prosolwpclient-de_DE.mo (modified) (previous)
-
languages/prosolwpclient-de_DE.po (modified) (1 diff)
-
languages/prosolwpclient-es_ES.po (modified) (1 diff)
-
languages/prosolwpclient.pot (modified) (1 diff)
-
prosolwpclient.php (modified) (2 diffs)
-
public/class-prosolwpclient-public.php (modified) (10 diffs)
-
public/css/prosolwpclientcustombootstrap.css (modified) (1 diff)
-
public/js/combobox_skill.js (modified) (2 diffs)
-
public/js/jquery.formtowizard.js (modified) (2 diffs)
-
public/js/prosolwpclientpublic.js (modified) (2 diffs)
-
public/templates/prosolwpclientjobapply.php (modified) (6 diffs)
-
public/templates/prosolwpclientjobdetails.php (modified) (1 diff)
-
public/templates/prosolwpclientjobsearchform.php (modified) (2 diffs)
-
public/templates/prosolwpclientjobsearchresult.php (modified) (7 diffs)
-
public/templates/singlefieldset/modals/prosolwpclientjobapplicationactivitymodal.php (modified) (1 diff)
-
public/templates/singlefieldset/modals/prosolwpclientjobapplicationattachmentmodal.php (modified) (1 diff)
-
public/templates/singlefieldset/modals/prosolwpclientjobapplicationbusinessmodal.php (modified) (1 diff)
-
public/templates/singlefieldset/modals/prosolwpclientjobapplicationjobmodal.php (modified) (1 diff)
-
public/templates/singlefieldset/prosolwpclientjobapplicationeducationinfo.php (modified) (1 diff)
-
public/templates/singlefieldset/prosolwpclientjobapplicationexpertiseinfo.php (modified) (5 diffs)
-
public/templates/singlefieldset/prosolwpclientjobapplicationpersonalinfo.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
prosolution-wp-client/trunk/README.txt
r2386986 r2426214 6 6 Tested up to: 4.9.5 7 7 Requires PHP: 5.6 8 Stable tag: 1. 5.218 Stable tag: 1.6.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 67 67 == Changelog == 68 68 69 = 1.6.0 = 70 * New feature only for recruitment, "design template" 71 * Add new tab in admin site called 'design template', with sub-settings 'select template' 72 - tab will be hidden when recruitment is not enabled 73 * In sub-settings 'select template', choose between no template or ProSolution template: 74 - no template use default template from wordpress 75 - ProSolution template enable user to have custom template) 76 * When option ProSouliton template selected, it will show more sub-settings: 77 - font: change all font belongs to plugin 78 - Main color: change all colors of button, bullets (radio or checkbox type) and input box when focused 79 - FrontendSearch, heading: change label heading in page type="search" 80 - FrontendSearch, job title: change label placeholder of input box keyword job in page type="search" 81 - FrontendSearch, place: change label placeholder of input box keyword place in page type="search" 82 - FrontendSearch, search button: change label search button (show list of job) in page type="search" 83 - FrontendSearch, jobid=0 button: change label jobid button (direct link to apply form with no jobid selected) in page type="search" 84 (there is checkbox to show / hide jobid=0 button) 85 - FrontendResult, Fields zipcode: show / hide of zipcode in list of job at page type="search" 86 - FrontendResult, Fields place of work: show / hide of place of work in list of job at page type="search" 87 - FrontendResult, Fields work time: show / hide of work time in list of job at page type="search" 88 - FrontendResult, to job button: change label to job button (direct link to job details) in page type="search" 89 (there is checkbox to show / hide jobid=0 button) 90 - FrontendDetails, Fields zipcode: show / hide of zipcode header at page type="details" 91 - FrontendDetails, Fields place of work: show / hide of place of work header at page type="details" 92 - FrontendDetails, Fields work time: show / hide of work time header at page type="details" 93 - FrontendDetails, Fields salary: show / hide of salary header at page type="details" 94 - FrontendDetails, Fields profession: show / hide of profession header at page type="details" 95 - FrontendDetails, Fields qualification: show / hide of qualification header at page type="details" 96 - FrontendDetails, back button: change label to back button (direct link to list of job search) in page type="details" 97 - FrontendDetails, apply button: change label to job button (direct link to apply form with jobid selected) in page type="details" 98 - ApplyForm, button to details: change label button to details (direct link to selected job details) in page type="apply" 99 - ApplyForm, button to search: change label button to search (direct link to job search) in page type="apply" 100 - ApplyForm, button to home: change label button to home (direct link to homepage) in page type="apply" 101 - ApplyForm, button next step: change label button next step in page type="apply" 102 - ApplyForm, button back: change label to button back step in page type="apply" 103 69 104 = 1.5.21 = 70 105 * Increase timeout of send application form with upload files -
prosolution-wp-client/trunk/admin/class-prosolwpclient-admin.php
r2364772 r2426214 449 449 'id' => 'prosolwpclient_privacypolicy', 450 450 'title' => esc_html__( 'Privacy Policy', 'prosolwpclient' ) 451 ) 451 ), 452 array( 453 'id' => 'prosolwpclient_designtemplate', 454 'title' => esc_html__( 'Design Template', 'prosolwpclient' ) 455 ) 456 //array( 457 // 'id' => 'prosolwpclient_joblist', 458 // 'title' => esc_html__( 'Job List', 'prosolwpclient' ) 459 // ) 452 460 ); 453 461 … … 883 891 ), 884 892 'policy6_act' => array('name'=>'policy6_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 893 ) , 894 'prosolwpclient_designtemplate' => array( 895 'destemplate' => array( 896 'name' => 'destemplate', 897 'label' => esc_html__( 'Select template', 'prosolwpclient' ), 898 'type' => 'select', 899 'default' => '1', 900 'options' => array( 901 '1' => esc_html__( 'No Template', 'prosolwpclient' ), 902 '0' => esc_html__( 'ProSolution Template', 'prosolwpclient' ) 903 ) 904 ), 905 906 'desfont' => array( 907 'name' => 'desfont', 908 'label' => esc_html__( 'Font', 'prosolwpclient' ), 909 'type' => 'select', 910 'default' => '0', 911 'options' => array( 912 '0' => esc_html__( 'default Font', 'prosolwpclient' ), 913 '1' => esc_html__( 'Georgia', 'prosolwpclient' ), 914 '2' => esc_html__( 'Palatino', 'prosolwpclient' ), 915 '3' => esc_html__( 'Times New Roman', 'prosolwpclient' ), 916 '4' => esc_html__( 'Arial', 'prosolwpclient' ), 917 '5' => esc_html__( 'Arial Black', 'prosolwpclient' ), 918 '6' => esc_html__( 'Comic Sans MS', 'prosolwpclient' ), 919 '7' => esc_html__( 'Impact', 'prosolwpclient' ), 920 '8' => esc_html__( 'Lucida Sans Unicode', 'prosolwpclient' ), 921 '9' => esc_html__( 'Tahoma', 'prosolwpclient' ), 922 '10' => esc_html__( 'Trebuchet', 'prosolwpclient' ), 923 '11' => esc_html__( 'Verdana', 'prosolwpclient' ), 924 '12' => esc_html__( 'Courier New', 'prosolwpclient' ), 925 '13' => esc_html__( 'Lucida Console', 'prosolwpclient' ) 926 ) 927 ), 928 929 'desmaincolor' => array( 930 'name' => 'desmaincolor', 931 'label' => esc_html__( 'Main color', 'prosolwpclient' ), 932 'type' => 'color' 933 ), 934 935 'dessearchfrontend' => array( 936 'name' => 'dessearchfrontend', 937 'label' => esc_html__( 'Frontend jobsearch', 'prosolwpclient' ), 938 'type' => 'html' 939 ), 940 941 'dessearchheading' => array( 942 'name' => 'dessearchheading', 943 'label' => esc_html__( 'Heading', 'prosolwpclient' ), 944 'type' => 'text', 945 'default' => esc_html__( 'JOBBORSE', 'prosolwpclient' ) 946 ), 947 948 'dessearchjobtitle' => array( 949 'name' => 'dessearchjobtitle', 950 'label' => esc_html__( 'JobTitle', 'prosolwpclient' ), 951 'type' => 'text', 952 'default' => esc_html__( 'What?', 'prosolwpclient' ) 953 ), 954 955 'dessearchplace' => array( 956 'name' => 'dessearchplace', 957 'label' => esc_html__( 'Place', 'prosolwpclient' ), 958 'type' => 'text', 959 'default' => esc_html__( 'Where?', 'prosolwpclient' ) 960 ), 961 962 'dessearchsearchbtn' => array( 963 'name' => 'dessearchsearchbtn', 964 'label' => esc_html__( 'Search button', 'prosolwpclient' ), 965 'type' => 'text', 966 'default' => esc_html__( 'Search', 'prosolwpclient' ) 967 ), 968 969 'dessearchjobidbtn' => array( 970 'name' => 'dessearchjobidbtn', 971 'label' => esc_html__( 'Unsolicited application', 'prosolwpclient' ), 972 'type' => 'text_des_template', 973 'default' => esc_html__( 'Unsolicited application', 'prosolwpclient' ) 974 ), 975 'dessearchjobidbtn_act' => array('name'=>'dessearchjobidbtn_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 976 977 'desresultfrontend' => array( 978 'name' => 'desresultfrontend', 979 'label' => esc_html__( 'Frontend joblist', 'prosolwpclient' ), 980 'type' => 'text_des_template' 981 ), 982 'desresultzipcode_act' => array('name'=>'desresultzipcode_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 983 'desresultplaceofwork_act' => array('name'=>'desresultplaceofwork_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 984 'desresultworktime_act' => array('name'=>'desresultworktime_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 985 986 'desbtnresulttojob' => array( 987 'name' => 'desbtnfrontendback', 988 'label' => esc_html__( 'To job button', 'prosolwpclient' ), 989 'type' => 'text', 990 'default' => esc_html__( 'to job', 'prosolwpclient' ) 991 ), 992 993 'FrontendDetails' => array( 994 'name' => 'desdetailsfrontend', 995 'label' => esc_html__( 'Frontend jobdetails', 'prosolwpclient' ), 996 'type' => 'html' 997 ), 998 999 'desbtndetailsback' => array( 1000 'name' => 'desbtndetailsback', 1001 'label' => esc_html__( 'back button', 'prosolwpclient' ), 1002 'type' => 'text', 1003 'default' => esc_html__( 'back to search', 'prosolwpclient' ) 1004 ), 1005 1006 'desbtndetailsapply' => array( 1007 'name' => 'desbtndetailsapply', 1008 'label' => esc_html__( 'apply button', 'prosolwpclient' ), 1009 'type' => 'text', 1010 'default' => esc_html__( 'apply !', 'prosolwpclient' ) 1011 ), 1012 1013 'desdetailsfrontend' => array( 1014 'name' => 'desdetailsfrontend', 1015 'label' => esc_html__( 'Frontend jobdetails', 'prosolwpclient' ), 1016 'type' => 'text_des_template' 1017 ), 1018 1019 'desdetailszipcode_act' => array('name'=>'desdetailszipcode_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 1020 'desdetailsplaceofwork_act' => array('name'=>'desdetailsplaceofwork_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 1021 'desdetailsworktime_act' => array('name'=>'desdetailsworktime_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 1022 'desdetailssalary_act' => array('name'=>'desdetailssalary_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 1023 'desdetailsqualification_act' => array('name'=>'desdetailsqualification_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 1024 'desdetailsprofession_act' => array('name'=>'desdetailsprofession_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 1025 1026 'ApplyFrom' => array( 1027 'name' => 'ApplyFrom', 1028 'label' => esc_html__( 'Frontend apply form', 'prosolwpclient' ), 1029 'type' => 'html' 1030 ), 1031 1032 'desbtnappformtodetails' => array( 1033 'name' => 'desbtnappformtodetails', 1034 'label' => esc_html__( 'Button to details', 'prosolwpclient' ), 1035 'type' => 'text', 1036 'default' => esc_html__( 'back to details', 'prosolwpclient' ) 1037 ), 1038 1039 'desbtnappformtosearch' => array( 1040 'name' => 'desbtnappformtosearch', 1041 'label' => esc_html__( 'Button to search', 'prosolwpclient' ), 1042 'type' => 'text', 1043 'default' => esc_html__( 'back to search', 'prosolwpclient' ) 1044 ), 1045 1046 'desbtnappformtohome' => array( 1047 'name' => 'desbtnappformtohome', 1048 'label' => esc_html__( 'Button to home', 'prosolwpclient' ), 1049 'type' => 'text', 1050 'default' => esc_html__( 'back to home', 'prosolwpclient' ) 1051 ), 1052 1053 'desbtnappformnext' => array( 1054 'name' => 'desbtnappformnext', 1055 'label' => esc_html__( 'Button next step', 'prosolwpclient' ), 1056 'type' => 'text', 1057 'default' => esc_html__( 'next', 'prosolwpclient' ) 1058 ), 1059 1060 'desbtnappformback' => array( 1061 'name' => 'desbtnappformback', 1062 'label' => esc_html__( 'Button back', 'prosolwpclient' ), 1063 'type' => 'text', 1064 'default' => esc_html__( 'back', 'prosolwpclient' ) 1065 ) 1066 ), 1067 1068 /*, 1069 'prosolwpclient_joblist' => array( 1070 'jobname' => array( 1071 'name' => 'jobname', 1072 'label' => esc_html__( 'Jobname', 'prosolwpclient' ), 1073 'type' => 'text_check', 1074 'default' => esc_html__( 'Jobname', 'prosolwpclient' ) 1075 ), 1076 1077 'location' => array( 1078 'name' => 'location', 1079 'label' => esc_html__( 'Location', 'prosolwpclient' ), 1080 'type' => 'text_check', 1081 'default' => esc_html__( 'Location', 'prosolwpclient' ) 1082 ), 1083 'location_act' => array('name'=>'location_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 1084 1085 'job_startdate' => array( 1086 'name' => 'job_startdate', 1087 'label' => esc_html__( 'Job start date', 'prosolwpclient' ), 1088 'type' => 'text_check', 1089 'default' => esc_html__( 'Job start date', 'prosolwpclient' ) 1090 ), 1091 'job_startdate_act' => array('name'=>'job_startdate_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 1092 1093 'job_worktime' => array( 1094 'name' => 'job_worktime', 1095 'label' => esc_html__( 'Job work time', 'prosolwpclient' ), 1096 'type' => 'text_check', 1097 'default' => esc_html__( 'Job work time', 'prosolwpclient' ) 1098 ), 1099 'job_worktime_act' => array('name'=>'job_worktime_act','type'=>'hidden','default' =>'1','class'=>'hidden'), 1100 1101 'prof_group' => array( 1102 'name' => 'prof_group', 1103 'label' => esc_html__( 'Profession Group', 'prosolwpclient' ), 1104 'type' => 'text_check', 1105 'default' => esc_html__( 'Profession Group', 'prosolwpclient' ) 1106 ), 1107 'prof_group_act' => array('name'=>'prof_group_act','type'=>'hidden','default' =>'1','class'=>'hidden') 1108 885 1109 ) 886 1110 */ 887 1111 ); 888 1112 -
prosolution-wp-client/trunk/admin/css/prosolwpclient-setting.css
r2183660 r2426214 68 68 text-shadow: 0 -1px 1px #e74f4f,1px 0 1px #e74f4f,0 1px 1px #e74f4f,-1px 0 1px #e74f4f; 69 69 } 70 71 tr.dessearchfrontend th label, tr.desresultfrontend th label, tr.desdetailsfrontend th label{ 72 padding: 4px; 73 font-size: larger; 74 background-color: #f1f1f1; 75 } -
prosolution-wp-client/trunk/admin/js/prosolwpclient-setting.js
r2351523 r2426214 171 171 if($('input#wpuf-prosolwpclient_frontend\\[enable_recruitment\\]').is(':checked')){ 172 172 $('.client_list').show(); 173 $('#prosolwpclient_designtemplate-tab').show(); 173 174 }else{ 174 175 $('.client_list').hide(); 176 $('#prosolwpclient_designtemplate-tab').hide(); 175 177 } 176 178 … … 178 180 if($(this).is(':checked')){ 179 181 $('.client_list').show(); 182 $('#prosolwpclient_designtemplate-tab').show(); 180 183 }else{ 181 184 $('.client_list').hide(); 185 $('#prosolwpclient_designtemplate-tab').hide(); 182 186 } 183 187 }); … … 196 200 fields_section.workexperience=['job','beginning','end','description','gendesc','company','postcode','country','federal','experience','contract','employment']; 197 201 fields_section.others=['source','apply','message']; 198 202 199 203 list_app_form.forEach(function(item){ 200 204 $(idAppForm+'\\['+item+'_view\\]').on('click',function() { … … 272 276 }); 273 277 278 var idDesTemplate='#prosolwpclient_designtemplate'; 279 var list_destempchk=['dessearchjobidbtn','desresultzipcode','desresultplaceofwork','desresultworkplacename','desresultworktime', 280 ,'desdetailszipcode','desdetailsplaceofwork','desdetailsworktime','desdetailssalary','desdetailsprofession','desdetailsqualification' 281 ]; 282 283 list_destempchk.forEach(function(item){ 284 $(idDesTemplate+'\\['+item+'_view\\]').on('click',function() { 285 if($(this).is(':checked')) { 286 $(idDesTemplate+'\\['+item+'_act\\]').val('1'); 287 } else { 288 $(idDesTemplate+'\\['+item+'_act\\]').val('0'); 289 } 290 }); 291 }); 292 293 var list_destemp=[ 294 'desfont','desmaincolor','dessearchfrontend','dessearchheading','dessearchjobtitle','dessearchplace','dessearchsearchbtn','dessearchjobidbtn' 295 ,'desresultfrontend','desbtnfrontendback','desbtndetailsback','desbtndetailsapply','desdetailsfrontend' 296 ,'desbtnappformtohome','desbtnappformtodetails','desbtnappformtosearch','desbtnappformnext','desbtnappformback' 297 ]; 298 299 //add option for font 300 var fontlist={}; 301 //fontlist={option1:{value:1,text:1},option2:{value:2,text:2}}; 302 //console.log(fontlist); 303 // for(const [key, field] in fontlist){ 304 // $(idDesTemplate+'\\[desfont\\]').append($('<option>', { 305 // value: fontlist(fontopt).value, 306 // text : fontlist(fontopt).text 307 // })); 308 // } 309 310 //default value show / hide 311 if($(idDesTemplate+'\\[destemplate\\]').val()==1){ 312 list_destemp.forEach(function(item){ 313 $('tr.'+item).hide(); 314 }); 315 } 316 $(idDesTemplate+'\\[destemplate\\]').on("change",function(){ 317 if($(this).val()==0){ 318 list_destemp.forEach(function(item){ 319 $('tr.'+item).show(); 320 }); 321 }else{ 322 list_destemp.forEach(function(item){ 323 $('tr.'+item).hide(); 324 }); 325 } 326 }); 327 274 328 var idjoblist='#prosolwpclient_joblist'; 275 var list_job=["job name","location","job_startdate","prof_group"];276 // if(!$('input#wpuf-prosolwpclient_joblist\\[enable_recruitment\\]').is(':checked')){277 // $('.policy6').addClass('hidden');278 // $(idPolicy+'\\[policy6_act\\]').val('0');279 //}329 var list_job=["job_worktime","location","job_startdate","prof_group"]; 330 if(!$('input#wpuf-prosolwpclient_frontend\\[enable_recruitment\\]').is(':checked')){ 331 $('.prof_group').addClass('hidden'); 332 $(idPolicy+'\\[prof_group_act\\]').val('0'); 333 } 280 334 list_job.forEach(function(item){ 281 335 $(idjoblist+'\\['+item+'_view\\]').on('click',function() { -
prosolution-wp-client/trunk/includes/class-prosolwpclient-activator.php
r2364772 r2426214 90 90 $table_ps_isced = $wpdb->prefix . 'isced'; 91 91 $table_ps_customfields = $wpdb->prefix . 'customfields'; 92 $table_ps_worktime = $wpdb->prefix . 'worktime'; 92 93 93 94 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); … … 388 389 389 390 dbDelta($table_ps_customfields_sql); 391 392 //create table for prosolution worktime 393 $table_ps_worktime_sql = "CREATE TABLE $table_ps_worktime ( 394 worktimeId varchar(10) NOT NULL, 395 name varchar(50) NOT NULL, 396 PRIMARY KEY (worktimeId) 397 ) $charset_collate; "; 398 399 dbDelta($table_ps_worktime_sql); 390 400 391 401 } -
prosolution-wp-client/trunk/includes/class-prosolwpclient-helper.php
r2238205 r2426214 173 173 'nace' => 'Nace', 174 174 'isced' => 'Isced', 175 'customfields' => 'Customfields' 175 'customfields' => 'Customfields', 176 'worktime' => 'Work Time' 176 177 ); 177 178 … … 252 253 } 253 254 255 /** 256 * handle font name from setting 257 * @return string 258 */ 259 public static function proSol_getFontName() { 260 $prosoldes = get_option('prosolwpclient_designtemplate'); 261 $prosoldesfont=$prosoldes['desfont']; 262 switch ($prosoldesfont) { 263 case "0": 264 return ""; 265 case "1": 266 return "Georgia, serif"; 267 case "2": 268 return "'Palatino Linotype', 'Book Antiqua', Palatino, serif"; 269 case "3": 270 return "'Times New Roman', Times, serif"; 271 case "4": 272 return "Arial, Helvetica, sans-serif"; 273 case "5": 274 return "'Arial Black', Gadget, sans-serif"; 275 case "6": 276 return "'Comic Sans MS', cursive, sans-serif"; 277 case "7": 278 return "Impact, Charcoal, sans-serif"; 279 case "8": 280 return "'Lucida Sans Unicode', 'Lucida Grande', sans-serif"; 281 case "9": 282 return "Tahoma, Geneva, sans-serif"; 283 case "10": 284 return "'Trebuchet MS', Helvetica, sans-serif"; 285 case "11": 286 return "Verdana, Geneva, sans-serif"; 287 case "12": 288 return "'Courier New', Courier, monospace"; 289 case "13": 290 return "'Lucida Console', Monaco, monospace"; 291 } 292 } 293 294 /** 295 * handle color shade 296 * @param $color 297 * @param $percent 298 * @return string 299 */ 300 public static function shadeColor($color, $percent) { 301 $num = base_convert(substr($color, 1), 16, 10); 302 $amt = round(1.5 * $percent); 303 $r = ($num >> 16) + $amt; 304 $b = ($num >> 8 & 0x00ff) + $amt; 305 $g = ($num & 0x0000ff) + $amt; 306 307 return '#'.substr(base_convert(0x1000000 + ($r<255?$r<1?0:$r:255)*0x10000 + ($b<255?$b<1?0:$b:255)*0x100 + ($g<255?$g<1?0:$g:255), 10, 16), 1); 308 } 309 254 310 } -
prosolution-wp-client/trunk/includes/class-prosolwpclient-table-helper.php
r2364772 r2426214 722 722 ); 723 723 } 724 } 725 726 if ( $table_name == 'worktime' ) { 727 $id_arr = $response_data->id; 728 $name_arr = $response_data->name; 729 foreach ( $id_arr as $index => $worktime_id ) { 730 $wpdb->insert( 731 $ps_table_name, 732 array( 733 'worktimeId' => $worktime_id, 734 'name' => isset( $name_arr[ $index ] ) ? $name_arr[ $index ] : '' 735 ), 736 array( 737 '%s', 738 '%s' 739 ) 740 ); 741 $tes=$wpdb->last_query; 742 } 743 744 724 745 } 725 746 -
prosolution-wp-client/trunk/includes/class-prosolwpclient-uninstall.php
r2238205 r2426214 47 47 48 48 $delete_global_config = $settings->proSol_get_option( 'delete_global_config', 'prosolwpclient_tools', 'yes' ); 49 if ( $delete_global_config == 'yes' ) 49 50 if ( $delete_global_config == 'yes' ) 50 51 { 51 52 //delete plugin global options … … 89 90 $sql = "DROP TABLE IF EXISTS " . implode(', ', $table_name); 90 91 $val = $wpdb->query($sql); 91 92 92 93 } 93 94 -
prosolution-wp-client/trunk/includes/class-prosolwpclient.php
r2238205 r2426214 155 155 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/single-table-list/class-prosolwpclient-isced-list.php'; 156 156 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/single-table-list/class-prosolwpclient-customfields-list.php'; 157 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/single-table-list/class-prosolwpclient-worktime-list.php'; 157 158 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-prosolwpclient-functions.php'; 158 159 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-prosolwpclient-helper.php'; -
prosolution-wp-client/trunk/includes/class-setting.php
r2364772 r2426214 108 108 109 109 function proSol_admin_init() { 110 //delete_option('prosolwpclient_ joblist'); //for remove option manually110 //delete_option('prosolwpclient_designtemplate'); //for remove option manually, uncomment when create new 111 111 //register settings sections 112 112 foreach ( $this->settings_sections as $section ) { … … 152 152 $callback = null; 153 153 } 154 155 154 add_settings_section( $section['id'], $section['title'], $callback, $section['id'] ); 156 155 } … … 269 268 $min = ( isset( $args['min'] ) && ( $args['min'] != '' ) ) ? intval( $args['min'] ) : 0; 270 269 $max = ( isset( $args['max'] ) && ( $args['max'] != '' ) ) ? intval( $args['max'] ) : 0; 271 270 272 271 $minlength_html = $maxlength_html = ''; 273 272 if ( $min > 0 ) { … … 294 293 */ 295 294 function proSol_callback_text_check( $args ) { 296 297 $value = esc_attr( $this->proSol_get_option( $args['id'], $args['section'], $args['default'] ) );295 $array_value = $this->proSol_get_option( $args['id'], $args['section'], $args['default'] ); 296 $value = $array_value['label']; 298 297 $size = isset( $args['size'] ) && ! is_null( $args['size'] ) ? $args['size'] : 'regular'; 299 298 $type = 'text'; 300 $required = $args['required'] ? 'required' : '';301 299 $min = ( isset( $args['min'] ) && ( $args['min'] != '' ) ) ? intval( $args['min'] ) : 0; 302 300 $max = ( isset( $args['max'] ) && ( $args['max'] != '' ) ) ? intval( $args['max'] ) : 0; … … 309 307 $maxlength_html = 'data-rule-maxlength="' . $max . '"'; 310 308 } 309 $checked = $array_value['activated'] == '1' ? ' checked ' : ''; 310 $value_checked = $array_value['activated']; 311 311 312 312 $html = sprintf( ' 313 <input type="%1$s" class="%2$s-text" id="%3$s[%4$s]" name="%3$s[%4$s]" value="%5$s" %6$s %7$s %8$s/> 314 <input type="checkbox" style="margin-bottom:4px" id="%3$s[%4$s_view]" name="%3$s[%4$_view]" value="%5$s" %6$s %7$s %8$s/>'.esc_html__('Show / Hide','prosolwpclient'). 315 '<input type="hidden" id="%3$s[%4$s_act]" name="%1$s[%2$s_%3$s_act]" value="%6$s" /> 316 ', $type, $size, $args['section'], $args['id'], $value, $required, $minlength_html, $maxlength_html ); 313 <input type="%1$s" class="%2$s-text" id="%3$s[%4$s]" name="%3$s[%4$s]" value="%5$s" %7$s %8$s/> 314 ', $type, $size, $args['section'], $args['id'], $value, $value_checked, $minlength_html, $maxlength_html, $checked); 315 if ($args['id'] != 'jobname'){ 316 $html .= sprintf( ' 317 <input type="checkbox" style="margin-bottom:4px" id="%3$s[%4$s_view]" name="%3$s[%4$s_view]" %7$s %8$s %9$s />'.esc_html__('Show / Hide','prosolwpclient'). 318 '<input type="hidden" id="%3$s[%4$s_act]" name="%3$s[%4$s_act]" value="%6$s" /> 319 ', $type, $size, $args['section'], $args['id'], $value, $value_checked, $minlength_html, $maxlength_html, $checked); 317 320 //$html .= $this->proSol_get_field_description( $args ); 318 321 322 } 323 319 324 echo $html; 320 325 } … … 465 470 466 471 /** 472 * Displays a text field for a settings field in tab application form 473 * 474 * @param array $args settings field args 475 */ 476 function proSol_callback_text_des_template( $args ) { 477 478 $array_value = $this->proSol_get_option( $args['id'], $args['section'], $args['default']); 479 $value = esc_attr($array_value['label']); 480 $size = isset( $args['size'] ) && ! is_null( $args['size'] ) ? $args['size'] : 'regular'; 481 $required = $args['required'] ? 'required' : ''; 482 $checked = $array_value['activated'] == '1' ? 'checked ' : ''; 483 $min = ( isset( $args['min'] ) && ( $args['min'] != '' ) ) ? intval( $args['min'] ) : 0; 484 $max = ( isset( $args['max'] ) && ( $args['max'] != '' ) ) ? intval( $args['max'] ) : 0; 485 486 $minlength_html = $maxlength_html = ''; 487 if ( $min > 0 ) { 488 $minlength_html = 'data-rule-minlength="' . $min . '"'; 489 } 490 if ( $max > 0 ) { 491 $maxlength_html = 'data-rule-maxlength="' . $max . '"'; 492 } 493 //kev 494 495 if($args['id']=='dessearchjobidbtn'){ 496 $html = sprintf( ' 497 <input type="text" class="%2$s-text" id="%3$s[%4$s]" name="%3$s[%4$s]" value="%5$s" %6$s %7$s %8$s/> 498 <input type="checkbox" id="%3$s[%4$s_view]" name="%3$s[%4$s_view]" %1$s/> 499 <input type="hidden" id="%3$s[%4$s_act]" name="%3$s[%4$s_act]" value="%9$s"/>'.esc_html__('Show / dont show unsolicited application button','prosolwpclient') 500 , $checked, $size, $args['section'], $args['id'], $value, $required, $minlength_html, $maxlength_html, $array_value['activated']); 501 } else{ 502 $html = sprintf( '<p><i>'.esc_html__('Set Following fields:','prosolwpclient').'</i></p> 503 <table><tr><th>'.esc_html__('Fields','prosolwpclient').'</th><th>'.esc_html__('Show / Hide','prosolwpclient').'</th></tr>' 504 ); 505 foreach($array_value['field_list'] as $fieldcol) { 506 //default value checkbox 507 $checkedcol1 = ''; 508 if($array_value[$fieldcol] == '1') { 509 $checkedcol1 = 'checked'; 510 } 511 if($args['id']=='desresultfrontend'){ 512 $idfield='desresult'; 513 }else{ 514 $idfield='desdetails'; 515 } 516 517 if($fieldcol == 'placeofwork'){ 518 $label='City '; 519 }else if($fieldcol == 'worktime'){ 520 $label='Worktime'; 521 }else{ 522 $label=$fieldcol; 523 } 524 $html .= sprintf( '<tr> 525 <td style="padding:0 0 10px">'.esc_html__($label,'prosolwpclient').'</td> 526 <td style="padding:0 0 10px"><input type="checkbox" id="%1$s[%2$s%3$s_view]" name="%1$s[%2$s%3$s_view]" %4$s /></td> 527 <input type="hidden" id="%1$s[%2$s%3$s_act]" name="%1$s[%2$s%3$s_act]" value="%5$s" /> 528 ', $args['section'], $idfield, $fieldcol, $checkedcol1, $array_value[$fieldcol]); 529 $html .= sprintf( '</tr>' ); 530 } 531 $html .= sprintf( '</table>' ); 532 } 533 534 $html .= $this->proSol_get_field_description( $args ); 535 536 echo $html; 537 } 538 539 /** 540 * Displays a url field for a settings field 541 * 542 * @param array $args settings field args 543 */ 544 function proSol_callback_html_des_template( $args ) { 545 $this->proSol_callback_text_des_template( $args ); 546 } 547 548 /** 467 549 * Displays a url field for a settings field 468 550 * … … 899 981 900 982 $options = get_option( $section ); 901 983 902 984 if ( isset( $options[ $option ] ) ) { 903 985 … … 931 1013 932 1014 } 933 } else if( $section == 'prosolwpclient_privacypolicy' ){1015 } else if( $section == 'prosolwpclient_privacypolicy' || $section == 'prosolwpclient_joblist' ){ 934 1016 $output=array(); 935 1017 $output['label']=$options[ $option ]; 936 $output[ 'activated' ]=$options[ $option.'_act' ]; 1018 $output[ 'activated' ]=$options[ $option.'_act' ]; 1019 } else if( $section == 'prosolwpclient_designtemplate' ){ 1020 $fields_section['desresultfrontend']=array('zipcode','placeofwork','worktime'); 1021 $fields_section['desdetailsfrontend']=array('zipcode','placeofwork','worktime','salary','profession','qualification'); 1022 if($option =='desresultfrontend' || $option=='desdetailsfrontend'){ 1023 $output=array(); 1024 $output['field_list']=$fields_section[$option]; 1025 foreach($fields_section[$option] as $field_des_template){ 1026 if($option =='desresultfrontend'){ 1027 $output[$field_des_template]=$options['desresult'.$field_des_template.'_act' ]; 1028 }else{ 1029 $output[$field_des_template]=$options['desdetails'.$field_des_template.'_act' ]; 1030 } 1031 } 1032 } else if($option=='dessearchjobidbtn') { 1033 $output=array(); 1034 $output['label']=$options[ $option ]; 1035 $output[ 'activated' ]=$options[ $option.'_act' ]; 1036 } else{ 1037 $output = $options[ $option ]; 1038 } 937 1039 } else{ 938 1040 $output = $options[ $option ]; -
prosolution-wp-client/trunk/languages/prosolwpclient-de_DE.po
r2364772 r2426214 13 13 "Content-Type: text/plain; charset=UTF-8\n" 14 14 "Content-Transfer-Encoding: 8bit\n" 15 16 17 #: 18 msgid "Select Color" 19 msgstr "Zurückefffefefefef" 20 21 #: admin\class-prosolwpclient-admin.php:1064 22 msgid "back" 23 msgstr "Zurück" 24 25 #: admin\class-prosolwpclient-admin.php:1062 26 msgid "Button back" 27 msgstr "Button \"Zurück\"" 28 29 #: admin\class-prosolwpclient-admin.php:1057 30 msgid "next" 31 msgstr "Nächster" 32 33 #: admin\class-prosolwpclient-admin.php:1055 34 msgid "Button next step" 35 msgstr "Button \"Nächster Schritt\"" 36 37 #: admin\class-prosolwpclient-admin.php:1050 38 msgid "back to home" 39 msgstr "zur Suchübersicht" 40 41 #: admin\class-prosolwpclient-admin.php:1048 42 msgid "Button to home" 43 msgstr "Button \"zur Suchübersicht\"" 44 45 #: admin\class-prosolwpclient-admin.php:1041 46 msgid "Button to search" 47 msgstr "Button \"Zur Suche\"" 48 49 #: admin\class-prosolwpclient-admin.php:1036 50 msgid "back to details" 51 msgstr "zu den Jobdetails" 52 53 #: admin\class-prosolwpclient-admin.php:1034 54 msgid "Button to details" 55 msgstr "Button \"Zurück zu Jobdetails\"" 56 57 #: admin\class-prosolwpclient-admin.php:1028 58 msgid "Frontend apply form" 59 msgstr "Bewerbungsformular" 60 61 #: admin\class-prosolwpclient-admin.php:1010 62 msgid "apply !" 63 msgstr "Bewerben!" 64 65 #: admin\class-prosolwpclient-admin.php:1008 66 msgid "apply button" 67 msgstr "Button \"Bewerben\"" 68 69 #: admin\class-prosolwpclient-admin.php:1003 70 msgid "back to search" 71 msgstr "Zurück zur Suche" 72 73 #: admin\class-prosolwpclient-admin.php:1001 74 msgid "back button" 75 msgstr "Button \"Zurück\"" 76 77 #: includes\class-setting.php:523 78 msgid "qualification" 79 msgstr "Qualifikation" 80 81 #: includes\class-setting.php:523 82 msgid "profession" 83 msgstr "Beruf/e" 84 85 #: includes\class-setting.php:523 86 msgid "salary" 87 msgstr "Lohn / Gehalt" 88 89 #: admin\class-prosolwpclient-admin.php:995 90 msgid "Frontend jobdetails" 91 msgstr "Frontend Jobdetails" 92 93 #: admin\class-prosolwpclient-admin.php:990 94 msgid "to job" 95 msgstr "zum Job" 96 97 #: admin\class-prosolwpclient-admin.php:988 98 msgid "To job button" 99 msgstr "Button \"Zu den Jobdetails\"" 100 101 #: includes\class-setting.php:523 102 msgid "Worktime" 103 msgstr "Arbeitszeitmodell" 104 105 #: includes\class-setting.php:523 106 msgid "City " 107 msgstr "Ort" 108 109 #: includes\class-setting.php:523 110 msgid "zipcode" 111 msgstr "Postleitzahl" 112 113 #: admin\class-prosolwpclient-admin.php:979 114 msgid "Frontend joblist" 115 msgstr "Frontend Jobliste" 116 117 #: includes\class-setting.php:499 118 msgid "Show / dont show unsolicited application button" 119 msgstr "Initiativbewerbungsbutton ein-/ausblenden" 120 121 #: admin\class-prosolwpclient-admin.php:971 122 msgid "Unsolicited application" 123 msgstr "Initiativbewerbung" 124 125 #: admin\class-prosolwpclient-admin.php:964 126 msgid "Search button" 127 msgstr "Suchen-Button" 128 129 #: admin\class-prosolwpclient-admin.php:959 130 msgid "Where?" 131 msgstr "Wo?" 132 133 #: admin\class-prosolwpclient-admin.php:957 134 msgid "Place" 135 msgstr "Ort" 136 137 #: admin\class-prosolwpclient-admin.php:952 138 msgid "What?" 139 msgstr "Was?" 140 141 #: admin\class-prosolwpclient-admin.php:950 142 msgid "Jobtitle" 143 msgstr "Jobtitel" 144 145 #: admin\class-prosolwpclient-admin.php:943 146 msgid "Heading" 147 msgstr "Überschrift" 148 149 #: admin\class-prosolwpclient-admin.php:937 150 msgid "Frontend jobsearch" 151 msgstr "Frontend Jobsuche" 152 153 #: admin\class-prosolwpclient-admin.php:931 154 msgid "Main color" 155 msgstr "Hauptfarbe" 156 157 #: admin\class-prosolwpclient-admin.php:908 158 msgid "Font" 159 msgstr "Schriftart" 160 161 #: admin\class-prosolwpclient-admin.php:902 162 msgid "ProSolution Template" 163 msgstr "ProSolution Vorlage" 164 165 #: admin\class-prosolwpclient-admin.php:901 166 msgid "No Template" 167 msgstr "Keine Vorlage" 168 169 #: admin\class-prosolwpclient-admin.php:897 170 msgid "Select template" 171 msgstr "Vorlage wählen" 172 173 #: admin\class-prosolwpclient-admin.php:454 174 msgid "Design Template" 175 msgstr "Designvorlage" 15 176 16 177 #: includes\class-setting.php:398 -
prosolution-wp-client/trunk/languages/prosolwpclient-es_ES.po
r2364772 r2426214 13 13 "Content-Type: text/plain; charset=UTF-8\n" 14 14 "Content-Transfer-Encoding: 8bit\n" 15 16 17 #: admin\class-prosolwpclient-admin.php:1064 18 msgid "back" 19 msgstr "" 20 21 #: admin\class-prosolwpclient-admin.php:1062 22 msgid "Button back" 23 msgstr "" 24 25 #: admin\class-prosolwpclient-admin.php:1057 26 msgid "next" 27 msgstr "" 28 29 #: admin\class-prosolwpclient-admin.php:1055 30 msgid "Button next step" 31 msgstr "" 32 33 #: admin\class-prosolwpclient-admin.php:1050 34 msgid "back to home" 35 msgstr "" 36 37 #: admin\class-prosolwpclient-admin.php:1048 38 msgid "Button to home" 39 msgstr "" 40 41 #: admin\class-prosolwpclient-admin.php:1043 42 msgid "back to search" 43 msgstr "" 44 45 #: admin\class-prosolwpclient-admin.php:1041 46 msgid "Button to search" 47 msgstr "" 48 49 #: admin\class-prosolwpclient-admin.php:1036 50 msgid "back to details" 51 msgstr "" 52 53 #: admin\class-prosolwpclient-admin.php:1034 54 msgid "Button to details" 55 msgstr "" 56 57 #: admin\class-prosolwpclient-admin.php:1028 58 msgid "Frontend apply form" 59 msgstr "" 60 61 #: admin\class-prosolwpclient-admin.php:1010 62 msgid "apply !" 63 msgstr "" 64 65 #: admin\class-prosolwpclient-admin.php:1008 66 msgid "apply button" 67 msgstr "" 68 69 #: admin\class-prosolwpclient-admin.php:1003 70 msgid "back to search" 71 msgstr "" 72 73 #: admin\class-prosolwpclient-admin.php:1001 74 msgid "back button" 75 msgstr "" 76 77 #: includes\class-setting.php:523 78 msgid "qualification" 79 msgstr "" 80 81 #: includes\class-setting.php:523 82 msgid "profession" 83 msgstr "" 84 85 #: includes\class-setting.php:523 86 msgid "salary" 87 msgstr "" 88 89 #: admin\class-prosolwpclient-admin.php:995 90 msgid "Frontend jobdetails" 91 msgstr "" 92 93 #: admin\class-prosolwpclient-admin.php:990 94 msgid "to job" 95 msgstr "" 96 97 #: admin\class-prosolwpclient-admin.php:988 98 msgid "To job button" 99 msgstr "" 100 101 #: includes\class-setting.php:523 102 msgid "Worktime" 103 msgstr "" 104 105 #: includes\class-setting.php:523 106 msgid "City " 107 msgstr "" 108 109 #: includes\class-setting.php:523 110 msgid "zipcode" 111 msgstr "" 112 113 #: admin\class-prosolwpclient-admin.php:979 114 msgid "Frontend joblist" 115 msgstr "" 116 117 #: includes\class-setting.php:499 118 msgid "Show / dont show unsolicited application button" 119 msgstr "" 120 121 #: admin\class-prosolwpclient-admin.php:971 122 msgid "Unsolicited application" 123 msgstr "" 124 125 #: admin\class-prosolwpclient-admin.php:964 126 msgid "Search button" 127 msgstr "" 128 129 #: admin\class-prosolwpclient-admin.php:959 130 msgid "Where?" 131 msgstr "" 132 133 #: admin\class-prosolwpclient-admin.php:957 134 msgid "Place" 135 msgstr "" 136 137 #: admin\class-prosolwpclient-admin.php:952 138 msgid "What?" 139 msgstr "" 140 141 #: admin\class-prosolwpclient-admin.php:950 142 msgid "Jobtitle" 143 msgstr "" 144 145 #: admin\class-prosolwpclient-admin.php:943 146 msgid "Heading" 147 msgstr "" 148 149 #: admin\class-prosolwpclient-admin.php:937 150 msgid "Frontend jobsearch" 151 msgstr "" 152 153 #: admin\class-prosolwpclient-admin.php:931 154 msgid "Main color" 155 msgstr "" 156 157 #: admin\class-prosolwpclient-admin.php:908 158 msgid "Font" 159 msgstr "" 160 161 #: admin\class-prosolwpclient-admin.php:902 162 msgid "ProSolution Template" 163 msgstr "" 164 165 #: admin\class-prosolwpclient-admin.php:901 166 msgid "No Template" 167 msgstr "" 168 169 #: admin\class-prosolwpclient-admin.php:897 170 msgid "Select template" 171 msgstr "" 172 173 #: admin\class-prosolwpclient-admin.php:454 174 msgid "Design Template" 175 msgstr "" 15 176 16 177 #: includes\class-setting.php:398 -
prosolution-wp-client/trunk/languages/prosolwpclient.pot
r2364772 r2426214 12 12 "Content-Type: text/plain; charset=ISO-8859-1\n" 13 13 "Content-Transfer-Encoding: 8bit\n" 14 15 #: admin\class-prosolwpclient-admin.php:1064 16 msgid "back" 17 msgstr "" 18 19 #: admin\class-prosolwpclient-admin.php:1062 20 msgid "Button back" 21 msgstr "" 22 23 #: admin\class-prosolwpclient-admin.php:1057 24 msgid "next" 25 msgstr "" 26 27 #: admin\class-prosolwpclient-admin.php:1055 28 msgid "Button next step" 29 msgstr "" 30 31 #: admin\class-prosolwpclient-admin.php:1050 32 msgid "back to home" 33 msgstr "" 34 35 #: admin\class-prosolwpclient-admin.php:1048 36 msgid "Button to home" 37 msgstr "" 38 39 #: admin\class-prosolwpclient-admin.php:1043 40 msgid "back to search" 41 msgstr "" 42 43 #: admin\class-prosolwpclient-admin.php:1041 44 msgid "Button to search" 45 msgstr "" 46 47 #: admin\class-prosolwpclient-admin.php:1036 48 msgid "back to details" 49 msgstr "" 50 51 #: admin\class-prosolwpclient-admin.php:1034 52 msgid "Button to details" 53 msgstr "" 54 55 #: admin\class-prosolwpclient-admin.php:1028 56 msgid "Frontend apply form" 57 msgstr "" 58 59 #: admin\class-prosolwpclient-admin.php:1010 60 msgid "apply !" 61 msgstr "" 62 63 #: admin\class-prosolwpclient-admin.php:1008 64 msgid "apply button" 65 msgstr "" 66 67 #: admin\class-prosolwpclient-admin.php:1003 68 msgid "back to search" 69 msgstr "" 70 71 #: admin\class-prosolwpclient-admin.php:1001 72 msgid "back button" 73 msgstr "" 74 75 #: includes\class-setting.php:523 76 msgid "qualification" 77 msgstr "" 78 79 #: includes\class-setting.php:523 80 msgid "profession" 81 msgstr "" 82 83 #: includes\class-setting.php:523 84 msgid "salary" 85 msgstr "" 86 87 #: admin\class-prosolwpclient-admin.php:995 88 msgid "Frontend jobdetails" 89 msgstr "" 90 91 #: admin\class-prosolwpclient-admin.php:990 92 msgid "to job" 93 msgstr "" 94 95 #: admin\class-prosolwpclient-admin.php:988 96 msgid "To job button" 97 msgstr "" 98 99 #: includes\class-setting.php:523 100 msgid "Worktime" 101 msgstr "" 102 103 #: includes\class-setting.php:523 104 msgid "City " 105 msgstr "" 106 107 #: includes\class-setting.php:523 108 msgid "zipcode" 109 msgstr "" 110 111 #: admin\class-prosolwpclient-admin.php:979 112 msgid "Frontend joblist" 113 msgstr "" 114 115 #: includes\class-setting.php:499 116 msgid "Show / dont show unsolicited application button" 117 msgstr "" 118 119 #: admin\class-prosolwpclient-admin.php:971 120 msgid "Unsolicited application" 121 msgstr "" 122 123 #: admin\class-prosolwpclient-admin.php:964 124 msgid "Search button" 125 msgstr "" 126 127 #: admin\class-prosolwpclient-admin.php:959 128 msgid "Where?" 129 msgstr "" 130 131 #: admin\class-prosolwpclient-admin.php:957 132 msgid "Place" 133 msgstr "" 134 135 #: admin\class-prosolwpclient-admin.php:952 136 msgid "What?" 137 msgstr "" 138 139 #: admin\class-prosolwpclient-admin.php:950 140 msgid "Jobtitle" 141 msgstr "" 142 143 #: admin\class-prosolwpclient-admin.php:943 144 msgid "Heading" 145 msgstr "" 146 147 #: admin\class-prosolwpclient-admin.php:937 148 msgid "Frontend jobsearch" 149 msgstr "" 150 151 #: admin\class-prosolwpclient-admin.php:931 152 msgid "Main color" 153 msgstr "" 154 155 #: admin\class-prosolwpclient-admin.php:908 156 msgid "Font" 157 msgstr "" 158 159 #: admin\class-prosolwpclient-admin.php:902 160 msgid "ProSolution Template" 161 msgstr "" 162 163 #: admin\class-prosolwpclient-admin.php:901 164 msgid "No Template" 165 msgstr "" 166 167 #: admin\class-prosolwpclient-admin.php:897 168 msgid "Select template" 169 msgstr "" 170 171 #: admin\class-prosolwpclient-admin.php:454 172 msgid "Design Template" 173 msgstr "" 14 174 15 175 #: includes\class-setting.php:398 -
prosolution-wp-client/trunk/prosolwpclient.php
r2386986 r2426214 17 17 * Plugin URI: https://prosolution.com/produkte-und-services/workexpert.html 18 18 * Description: WordPress client for ProSolution 19 * Version: 1. 5.2119 * Version: 1.6.0 20 20 * Author: ProSolution 21 21 * Author URI: https://www.prosolution.com … … 39 39 40 40 defined('PROSOLWPCLIENT_PLUGIN_NAME') or define('PROSOLWPCLIENT_PLUGIN_NAME', 'prosolwpclient'); 41 defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1. 5.21');41 defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.6.0'); 42 42 defined('PROSOLWPCLIENT_BASE_NAME') or define('PROSOLWPCLIENT_BASE_NAME', plugin_basename(__FILE__)); 43 43 defined('PROSOLWPCLIENT_ROOT_PATH') or define('PROSOLWPCLIENT_ROOT_PATH', plugin_dir_path(__FILE__)); -
prosolution-wp-client/trunk/public/class-prosolwpclient-public.php
r2386986 r2426214 167 167 } else if ( $param_type == '' && $template_type == 'result' ) { 168 168 $param_type = 'result'; 169 $called_from=' asDefault';170 } 171 169 $called_from=''; 170 } 171 172 172 if ( $param_type == 'result' ) { 173 173 174 $job_search_result = array(); 174 175 //var_dump(sizeof( $_SESSION ) > 0 && isset( $_SESSION['job_search_result'] ) && $called_from == '' ); … … 213 214 $jobid = $_REQUEST['jobid']; 214 215 //$uuid='EAC87A80-9262-4C49-851F7C5FD02FBE64'; 216 215 217 if ( $param_type == 'details' ) { 216 218 … … 278 280 session_start(); 279 281 } 280 282 283 $destemp = get_option('prosolwpclient_designtemplate'); 284 $useprosoltemplate=$destemp['destemplate']; 285 //work project 515, for prosolution template, always submit form either searchbtn or jobidbtn 286 //jobidbtn redirect to ?type=apply 287 if($useprosoltemplate==0){ 288 if($_POST['submit']==$destemp['dessearchjobidbtn']){ 289 290 wp_safe_redirect( add_query_arg( 'type', 'apply', $page_url ) ); 291 exit; 292 } 293 } 294 281 295 //job search submit and redirect to job result page 282 296 if ( ( isset( $_POST['prosolwpclient_frontend_formsubmit'] ) && intval( $_POST['prosolwpclient_frontend_formsubmit'] ) == 1 ) && … … 371 385 //var_dump($response); 372 386 373 wp_safe_redirect( add_query_arg( 'type', 'result', $page_url ) ); 374 exit; 387 if($useprosoltemplate==1){ 388 wp_safe_redirect( add_query_arg( 'type', 'result', $page_url ) ); 389 exit; 390 } 391 375 392 } 376 393 … … 499 516 data-knowledge="<?php echo $knowledge_name; ?>" 500 517 data-knowledge_type="<?php echo $rate_name; ?>" onchange="showdeletebutton(this)"> 518 <span class="radiomarksidedish"></span> 501 519 </label> 502 520 </td> … … 1481 1499 add_filter('http_request_args', 'sar_custom_http_request_args', 9999, 1); 1482 1500 } 1501 //var_dump($files_location); 1483 1502 } 1484 1503 } 1485 1504 //var_dump($local_files); 1486 1505 1487 1506 // Upload the file … … 1503 1522 } 1504 1523 $payload .= '--' . $boundary . '--'; 1505 1524 1506 1525 if($genset['enable_recruitment']=='on'){ 1507 1526 $api_location = 'recruitment/'; … … 1517 1536 ) 1518 1537 ); 1519 1538 //var_dump($response); 1539 //var_dump(is_wp_error($response)); 1520 1540 $msg = ''; 1521 1541 if ( ! is_wp_error( $response ) ) { … … 1711 1731 //45760, change step label 1712 1732 $step_label = get_option('prosolwpclient_applicationform'); 1733 $prosoldes = get_option('prosolwpclient_designtemplate'); 1713 1734 1714 1735 $translation_array = array( … … 1732 1753 'training_practice_ph' => esc_html__( 'Please Select Training / Practice', 'prosolwpclient' ), 1733 1754 'federal_ph' => esc_html__( 'Please Select Federal State', 'prosolwpclient' ), 1734 'next' => esc_html__( 'Next', 'prosolwpclient' ),1735 'prev' => esc_html__( 'Prev', 'prosolwpclient' ),1736 'stepstr' => esc_html__( $step_label['step_label'], 'prosolwpclient'),1755 'next' => esc_html__( $prosoldes['desbtnappformnext'], 'prosolwpclient' ), 1756 'prev' => esc_html__( $prosoldes['desbtnappformback'], 'prosolwpclient' ), 1757 'stepstr' => esc_html__( $step_label['step_label'], 'prosolwpclient'), 1737 1758 'file_ext' => esc_html__( 'pdf, doc, docx, xls, xlsx, txt, odt, ods, odp, rtf, pps, ppt, pptx, ppsx, vcf, msg, eml, ogg, mp3, wav, wma, asf, mov, avi, mpg, mpeg, mp4, wmf, 3g2, 3gp, png, jpg, jpeg, gif, bmp, tif, tiff, key, numbers, pages', 'prosolwpclient' ), 1738 1759 'photo_ext' => esc_html__( 'gif, jpg, jpeg, png', 'prosolwpclient' ), -
prosolution-wp-client/trunk/public/css/prosolwpclientcustombootstrap.css
r2247990 r2426214 3519 3519 position: absolute; 3520 3520 margin-left: -20px; 3521 margin-top: 4px \9;3521 margin-top: 4px\9; 3522 3522 } 3523 3523 -
prosolution-wp-client/trunk/public/js/combobox_skill.js
r1950679 r2426214 3 3 4 4 $(document).ready(function () { 5 function getSelectedValue(){ 5 function getSelectedValue(skillgr,skillid,skillval){ 6 6 7 var index = $('#knowledge_data :selected').val(); 7 8 $.ajax({ … … 17 18 success:function(data){ 18 19 19 $('#expertiseModal .modal-dialog .modal-content .modal-body .form-group .table-responsive .table-fixheader div .pswp-expertise-table tbody').html(data); 20 $('#expertiseModal .modal-dialog .modal-content .modal-body .form-group .table-responsive .table-fixheader div .pswp-expertise-table tbody').html(data); 21 20 22 } 21 23 }); -
prosolution-wp-client/trunk/public/js/jquery.formtowizard.js
r2351523 r2426214 149 149 150 150 // hard code content 151 var $btn_content = '<' + options.buttonTag + ' href="#" id="' + stepName + 'Next" class="' + options.nextBtnClass + '"> ' +151 var $btn_content = '<' + options.buttonTag + ' href="#" id="' + stepName + 'Next" class="' + options.nextBtnClass + '"><span>' + 152 152 options.nextBtnName + 153 '</ ' + options.buttonTag + '>';153 '</span></' + options.buttonTag + '>'; 154 154 155 155 if (i == 0) { … … 158 158 def_disabled = ''; 159 159 $btn_content = '<' + options.buttonTag + ' href="#" id="' + stepName + 'Next" class="' + options.nextBtnClass + '" ' + 160 def_disabled + ' > ' +160 def_disabled + ' ><span>' + 161 161 options.nextBtnName + 162 '</ ' + options.buttonTag + '>';162 '</span></' + options.buttonTag + '>'; 163 163 } 164 164 -
prosolution-wp-client/trunk/public/js/prosolwpclientpublic.js
r2357146 r2426214 14 14 } 15 15 16 $(document).ready(function () { 17 16 $(document).ready(function () { 17 18 function isAlphaNumeric(str) { 19 //regrex ([A-z0-9À-ž\s]){2,} 20 var code, i, len; 21 22 for (i = 0, len = str.length; i < len; i++) { 23 code = str.charCodeAt(i); 24 if ( 25 !(code == 32) && //space 26 !(code > 47 && code < 58) && // numeric (0-9) 27 !(code > 64 && code < 91) && // upper alpha (A-Z) 28 !(code > 96 && code < 123) && // lower alpha (a-z) 29 !(code > 127 && code < 383)// diacritics char 30 ) { 31 return false; 32 } 33 } 34 return true; 35 }; 36 37 //job search 38 $("#jobnamesearch").on("change",function() { 39 if(!isAlphaNumeric($(this).val())){ 40 alert('Please input alpha or numeric only'); 41 $(this).val(''); 42 } 43 }); 44 $("#searchplacesearch").on("change",function() { 45 if(!isAlphaNumeric($(this).val())){ 46 alert('Please input alpha or numeric only'); 47 $(this).val(''); 48 } 49 }); 50 $("#searchbtn").on("click", function(){ 51 $('table.jobsearch-resultcontainer').html(''); 52 }); 53 54 55 56 'use strict'; 57 58 class Color { 59 constructor(r, g, b) { 60 this.set(r, g, b); 61 } 62 63 toString() { 64 return `rgb(${Math.round(this.r)}, ${Math.round(this.g)}, ${Math.round(this.b)})`; 65 } 66 67 set(r, g, b) { 68 this.r = this.clamp(r); 69 this.g = this.clamp(g); 70 this.b = this.clamp(b); 71 } 72 73 hueRotate(angle = 0) { 74 angle = angle / 180 * Math.PI; 75 const sin = Math.sin(angle); 76 const cos = Math.cos(angle); 77 78 this.multiply([ 79 0.213 + cos * 0.787 - sin * 0.213, 80 0.715 - cos * 0.715 - sin * 0.715, 81 0.072 - cos * 0.072 + sin * 0.928, 82 0.213 - cos * 0.213 + sin * 0.143, 83 0.715 + cos * 0.285 + sin * 0.140, 84 0.072 - cos * 0.072 - sin * 0.283, 85 0.213 - cos * 0.213 - sin * 0.787, 86 0.715 - cos * 0.715 + sin * 0.715, 87 0.072 + cos * 0.928 + sin * 0.072, 88 ]); 89 } 90 91 grayscale(value = 1) { 92 this.multiply([ 93 0.2126 + 0.7874 * (1 - value), 94 0.7152 - 0.7152 * (1 - value), 95 0.0722 - 0.0722 * (1 - value), 96 0.2126 - 0.2126 * (1 - value), 97 0.7152 + 0.2848 * (1 - value), 98 0.0722 - 0.0722 * (1 - value), 99 0.2126 - 0.2126 * (1 - value), 100 0.7152 - 0.7152 * (1 - value), 101 0.0722 + 0.9278 * (1 - value), 102 ]); 103 } 104 105 sepia(value = 1) { 106 this.multiply([ 107 0.393 + 0.607 * (1 - value), 108 0.769 - 0.769 * (1 - value), 109 0.189 - 0.189 * (1 - value), 110 0.349 - 0.349 * (1 - value), 111 0.686 + 0.314 * (1 - value), 112 0.168 - 0.168 * (1 - value), 113 0.272 - 0.272 * (1 - value), 114 0.534 - 0.534 * (1 - value), 115 0.131 + 0.869 * (1 - value), 116 ]); 117 } 118 119 saturate(value = 1) { 120 this.multiply([ 121 0.213 + 0.787 * value, 122 0.715 - 0.715 * value, 123 0.072 - 0.072 * value, 124 0.213 - 0.213 * value, 125 0.715 + 0.285 * value, 126 0.072 - 0.072 * value, 127 0.213 - 0.213 * value, 128 0.715 - 0.715 * value, 129 0.072 + 0.928 * value, 130 ]); 131 } 132 133 multiply(matrix) { 134 const newR = this.clamp(this.r * matrix[0] + this.g * matrix[1] + this.b * matrix[2]); 135 const newG = this.clamp(this.r * matrix[3] + this.g * matrix[4] + this.b * matrix[5]); 136 const newB = this.clamp(this.r * matrix[6] + this.g * matrix[7] + this.b * matrix[8]); 137 this.r = newR; 138 this.g = newG; 139 this.b = newB; 140 } 141 142 brightness(value = 1) { 143 this.linear(value); 144 } 145 contrast(value = 1) { 146 this.linear(value, -(0.5 * value) + 0.5); 147 } 148 149 linear(slope = 1, intercept = 0) { 150 this.r = this.clamp(this.r * slope + intercept * 255); 151 this.g = this.clamp(this.g * slope + intercept * 255); 152 this.b = this.clamp(this.b * slope + intercept * 255); 153 } 154 155 invert(value = 1) { 156 this.r = this.clamp((value + this.r / 255 * (1 - 2 * value)) * 255); 157 this.g = this.clamp((value + this.g / 255 * (1 - 2 * value)) * 255); 158 this.b = this.clamp((value + this.b / 255 * (1 - 2 * value)) * 255); 159 } 160 161 hsl() { 162 // Code taken from https://stackoverflow.com/a/9493060/2688027, licensed under CC BY-SA. 163 const r = this.r / 255; 164 const g = this.g / 255; 165 const b = this.b / 255; 166 const max = Math.max(r, g, b); 167 const min = Math.min(r, g, b); 168 let h, s, l = (max + min) / 2; 169 170 if (max === min) { 171 h = s = 0; 172 } else { 173 const d = max - min; 174 s = l > 0.5 ? d / (2 - max - min) : d / (max + min); 175 switch (max) { 176 case r: 177 h = (g - b) / d + (g < b ? 6 : 0); 178 break; 179 180 case g: 181 h = (b - r) / d + 2; 182 break; 183 184 case b: 185 h = (r - g) / d + 4; 186 break; 187 } 188 h /= 6; 189 } 190 191 return { 192 h: h * 100, 193 s: s * 100, 194 l: l * 100, 195 }; 196 } 197 198 clamp(value) { 199 if (value > 255) { 200 value = 255; 201 } else if (value < 0) { 202 value = 0; 203 } 204 return value; 205 } 206 } 207 208 class Solver { 209 constructor(target, baseColor) { 210 this.target = target; 211 this.targetHSL = target.hsl(); 212 this.reusedColor = new Color(0, 0, 0); 213 } 214 215 solve() { 216 const result = this.solveNarrow(this.solveWide()); 217 return { 218 values: result.values, 219 loss: result.loss, 220 filter: this.css(result.values), 221 }; 222 } 223 224 solveWide() { 225 const A = 5; 226 const c = 15; 227 const a = [60, 180, 18000, 600, 1.2, 1.2]; 228 229 let best = { loss: Infinity }; 230 for (let i = 0; best.loss > 25 && i < 3; i++) { 231 const initial = [50, 20, 3750, 50, 100, 100]; 232 const result = this.spsa(A, a, c, initial, 1000); 233 if (result.loss < best.loss) { 234 best = result; 235 } 236 } 237 return best; 238 } 239 240 solveNarrow(wide) { 241 const A = wide.loss; 242 const c = 2; 243 const A1 = A + 1; 244 const a = [0.25 * A1, 0.25 * A1, A1, 0.25 * A1, 0.2 * A1, 0.2 * A1]; 245 return this.spsa(A, a, c, wide.values, 500); 246 } 247 248 spsa(A, a, c, values, iters) { 249 const alpha = 1; 250 const gamma = 0.16666666666666666; 251 252 let best = null; 253 let bestLoss = Infinity; 254 const deltas = new Array(6); 255 const highArgs = new Array(6); 256 const lowArgs = new Array(6); 257 258 for (let k = 0; k < iters; k++) { 259 const ck = c / Math.pow(k + 1, gamma); 260 for (let i = 0; i < 6; i++) { 261 deltas[i] = Math.random() > 0.5 ? 1 : -1; 262 highArgs[i] = values[i] + ck * deltas[i]; 263 lowArgs[i] = values[i] - ck * deltas[i]; 264 } 265 266 const lossDiff = this.loss(highArgs) - this.loss(lowArgs); 267 for (let i = 0; i < 6; i++) { 268 const g = lossDiff / (2 * ck) * deltas[i]; 269 const ak = a[i] / Math.pow(A + k + 1, alpha); 270 values[i] = fix(values[i] - ak * g, i); 271 } 272 273 const loss = this.loss(values); 274 if (loss < bestLoss) { 275 best = values.slice(0); 276 bestLoss = loss; 277 } 278 } 279 return { values: best, loss: bestLoss }; 280 281 function fix(value, idx) { 282 let max = 100; 283 if (idx === 2 /* saturate */) { 284 max = 7500; 285 } else if (idx === 4 /* brightness */ || idx === 5 /* contrast */) { 286 max = 200; 287 } 288 289 if (idx === 3 /* hue-rotate */) { 290 if (value > max) { 291 value %= max; 292 } else if (value < 0) { 293 value = max + value % max; 294 } 295 } else if (value < 0) { 296 value = 0; 297 } else if (value > max) { 298 value = max; 299 } 300 return value; 301 } 302 } 303 304 loss(filters) { 305 // Argument is array of percentages. 306 const color = this.reusedColor; 307 color.set(0, 0, 0); 308 309 color.invert(filters[0] / 100); 310 color.sepia(filters[1] / 100); 311 color.saturate(filters[2] / 100); 312 color.hueRotate(filters[3] * 3.6); 313 color.brightness(filters[4] / 100); 314 color.contrast(filters[5] / 100); 315 316 const colorHSL = color.hsl(); 317 return ( 318 Math.abs(color.r - this.target.r) + 319 Math.abs(color.g - this.target.g) + 320 Math.abs(color.b - this.target.b) + 321 Math.abs(colorHSL.h - this.targetHSL.h) + 322 Math.abs(colorHSL.s - this.targetHSL.s) + 323 Math.abs(colorHSL.l - this.targetHSL.l) 324 ); 325 } 326 327 css(filters) { 328 function fmt(idx, multiplier = 1) { 329 return Math.round(filters[idx] * multiplier); 330 } 331 return `filter: invert(${fmt(0)}%) sepia(${fmt(1)}%) saturate(${fmt(2)}%) hue-rotate(${fmt(3, 3.6)}deg) brightness(${fmt(4)}%) contrast(${fmt(5)}%);`; 332 } 333 } 334 335 function hexToRgb(hex) { 336 // Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF") 337 const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; 338 hex = hex.replace(shorthandRegex, (m, r, g, b) => { 339 return r + r + g + g + b + b; 340 }); 341 342 const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); 343 return result 344 ? [ 345 parseInt(result[1], 16), 346 parseInt(result[2], 16), 347 parseInt(result[3], 16), 348 ] 349 : null; 350 } 351 352 $(document).ready(() => { 353 $('button.execute').click(() => { 354 const rgb = hexToRgb($('input.target').val()); 355 if (rgb.length !== 3) { 356 alert('Invalid format!'); 357 return; 358 } 359 360 const color = new Color(rgb[0], rgb[1], rgb[2]); 361 const solver = new Solver(color); 362 const result = solver.solve(); 363 364 let lossMsg; 365 if (result.loss < 1) { 366 lossMsg = 'This is a perfect result.'; 367 } else if (result.loss < 5) { 368 lossMsg = 'The is close enough.'; 369 } else if (result.loss < 15) { 370 lossMsg = 'The color is somewhat off. Consider running it again.'; 371 } else { 372 lossMsg = 'The color is extremely off. Run it again!'; 373 } 374 375 $('.realPixel').css('background-color', color.toString()); 376 $('.filterPixel').attr('style', result.filter); 377 $('.filterDetail').text(result.filter); 378 $('.lossDetail').html(`Loss: ${result.loss.toFixed(1)}. <b>${lossMsg}</b>`); 379 }); 380 381 382 }); 383 384 18 385 setInterval(function(){ 19 386 $('#conclud_active_ofbutton').on('click', function(){ … … 2336 2703 prevBtnName : '<< ' + prosolObj.prev, 2337 2704 stepStr : prosolObj.stepstr, 2338 nextBtnClass : 'btn btn-primary next wizard-next-btn',2339 prevBtnClass : 'btn btn-default prev wizard-prev-btn',2705 nextBtnClass : 'btn btn-primary btnprosoldes-step next wizard-next-btn', 2706 prevBtnClass : 'btn btn-default btnprosoldes-step prev wizard-prev-btn', 2340 2707 buttonTag : 'button', 2341 2708 showProgress : true, -
prosolution-wp-client/trunk/public/templates/prosolwpclientjobapply.php
r2357146 r2426214 62 62 $list_opt_appform = get_option('prosolwpclient_applicationform'); 63 63 $isrec= $frontend_setting['enable_recruitment']; 64 65 $prosoldes = get_option('prosolwpclient_designtemplate'); 66 $pstemplate = $prosoldes['destemplate']; 67 $prosoldescolor=$prosoldes['desmaincolor']; 68 69 if($pstemplate!=1){ 70 $lightercolor= CBXProSolWpClient_Helper::shadeColor($prosoldescolor,60); 71 $prosoldesfont= CBXProSolWpClient_Helper::proSol_getFontName(); 72 ?> 73 <style> 74 div.prosolwpclientcustombootstrap, div.prosolwpclientcustombootstrap ::placeholder 75 {font-family:<?php echo $prosoldesfont ?> !important;} 76 77 .prosolwpclientcustombootstrap input:focus { 78 border-color: <?php echo $prosoldescolor ?> !important; 79 box-shadow: 0 0 1px <?php echo $prosoldescolor ?> inset !important; 80 } 81 82 .prosolwpclientcustombootstrap .dashicons, 83 .prosolwpclientcustombootstrap .dashicons:hover { 84 color: <?php echo $prosoldescolor ?> !important; 85 } 86 87 .prosolwpclientcustombootstrap .alert-info { 88 color: <?php echo $lightercolor ?> !important; 89 background-color: <?php echo $lightercolor ?> !important; 90 border-color: <?php echo $lightercolor ?> !important; 91 } 92 93 .prosolwpclientcustombootstrap .btnprosoldes, 94 .prosolwpclientcustombootstrap a.btnprosoldes { 95 color:#ffffff !important; 96 background-color: <?php echo $prosoldescolor ?> !important; 97 border-radius: 8px !important; 98 box-shadow: 1px 2px 2px 2px #c4c3c3 !important; 99 display: inline-block !important; 100 border: 8px solid <?php echo $prosoldescolor ?> !important; 101 margin-right:1rem !important; 102 } 103 104 .prosolwpclientcustombootstrap .btnprosoldes:hover, 105 .prosolwpclientcustombootstrap a.btnprosoldes:hover { 106 color: <?php echo $prosoldescolor ?> !important; 107 background-color: #ffffff !important; 108 border-color: #ffffff !important; 109 border-radius: 8px !important; 110 box-shadow: 1px 2px 2px 2px #c4c3c3 !important; 111 display: inline-block !important; 112 margin-right:1rem !important; 113 } 114 115 .prosolwpclientcustombootstrap .btnprosoldes-step, 116 .prosolwpclientcustombootstrap a.btnprosoldes-step { 117 color:#ffffff !important; 118 background-color: <?php echo $prosoldescolor ?> !important; 119 border-radius: 8px !important; 120 box-shadow: 1px 2px 2px 2px #c4c3c3 !important; 121 display: inline-block !important; 122 border: 2px solid <?php echo $prosoldescolor ?> !important; 123 } 124 125 .prosolwpclientcustombootstrap .btnprosoldes-step:hover, 126 .prosolwpclientcustombootstrap a.btnprosoldes-step:hover, 127 .prosolwpclientcustombootstrap button[disabled].btnprosoldes-step:hover { 128 color: <?php echo $prosoldescolor ?> !important; 129 background-color: #ffffff !important; 130 border-color: #ffffff !important; 131 border-radius: 8px !important; 132 box-shadow: 1px 2px 2px 2px #c4c3c3 !important; 133 display: inline-block !important; 134 box-sizing: border-box !important; 135 } 136 137 .prosolwpclientcustombootstrap button[disabled].btnprosoldes-step { 138 height:2.6em; 139 } 140 141 .prosolwpclientcustombootstrap button[disabled].btnprosoldes-step:hover, 142 .prosolwpclientcustombootstrap button[disabled]:hover, 143 .prosolwpclientcustombootstrap button[disabled].btnprosoldes-step:hover span{ 144 display: inline !important; 145 text-transform: none !important; 146 text-decoration: none !important; 147 font-weight:none !important; 148 font-family:inherit !important; 149 text-shadow: 0.1px 0px 0px <?php echo $prosoldescolor ?> !important; 150 min-width:41.75px; 151 font-size:14px; 152 padding-top:0.79em !important; 153 padding-bottom:1.59em !important; 154 letter-spacing: revert !important; 155 padding-right: clamp(5px,1.6%,12px) !important; 156 font-size: clamp(13px, 1vw, 18px); 157 } 158 159 .prosolwpclientcustombootstrap .commands { 160 overflow: inherit !important; 161 } 162 /* Base for label.checkbox-inline styling */ 163 /* The container */ 164 .prosolwpclientcustombootstrap .checkbox-inline { 165 display: block; 166 position: relative; 167 padding-left: 35px; 168 margin-bottom: 12px; 169 cursor: pointer; 170 -webkit-user-select: none; 171 -moz-user-select: none; 172 -ms-user-select: none; 173 user-select: none; 174 } 175 176 /* Hide the browser's default checkbox */ 177 .prosolwpclientcustombootstrap .checkbox-inline input { 178 position: absolute; 179 opacity: 0; 180 cursor: pointer; 181 height: 0; 182 width: 0; 183 } 184 185 /* Create a custom checkbox */ 186 .prosolwpclientcustombootstrap .checkmark { 187 position: absolute; 188 top: 8px; 189 left: 2px; 190 height: 16px; 191 width: 16px; 192 background-color: #eee; 193 } 194 195 .prosolwpclientcustombootstrap .checkmark-layer { 196 position: absolute; 197 top: 3px; 198 left: 2px; 199 height: 16px; 200 width: 16px; 201 background-color: #eee; 202 } 203 204 /* On mouse-over, add a grey background color */ 205 .prosolwpclientcustombootstrap .checkbox-inline:hover input ~ .checkmark, 206 .prosolwpclientcustombootstrap .checkbox-inline:hover input ~ .checkmark-layer { 207 background-color: #ccc; 208 } 209 210 /* When the checkbox is checked, add a custom prosoldef background */ 211 .prosolwpclientcustombootstrap .checkbox-inline input:checked ~ .checkmark, 212 .prosolwpclientcustombootstrap .checkbox-inline input:checked ~ .checkmark-layer { 213 background-color: <?php echo $prosoldescolor ?>; 214 } 215 216 /* Create the checkmark/indicator (hidden when not checked) */ 217 .prosolwpclientcustombootstrap .checkmark:after, 218 .prosolwpclientcustombootstrap .checkmark-layer:after { 219 content: ""; 220 position: absolute; 221 display: none; 222 } 223 224 /* Show the checkmark when checked */ 225 .prosolwpclientcustombootstrap .checkbox-inline input:checked ~ .checkmark:after, 226 .prosolwpclientcustombootstrap .checkbox-inline input:checked ~ .checkmark-layer:after { 227 display: block; 228 } 229 230 /* Style the checkmark/indicator */ 231 .prosolwpclientcustombootstrap .checkbox-inline .checkmark:after, 232 .prosolwpclientcustombootstrap .checkbox-inline .checkmark-layer:after { 233 left: 5px; 234 top: 2px; 235 width: 6px; /*7 12 */ 236 height: 10px; 237 border: solid white; 238 border-width: 0 2px 2px 0; /* 0 3 3 0*/ 239 -webkit-transform: rotate(43deg); 240 -ms-transform: rotate(43deg); 241 transform: rotate(30deg); /*45 */ 242 } 243 244 /* Base for label.radio-inline styling */ 245 /* The container */ 246 .prosolwpclientcustombootstrap .radio-inline, 247 .prosolwpclientcustombootstrap .radio-inline-unused { 248 display: block; 249 position: relative; 250 padding-left: 35px; 251 margin-bottom: 12px; 252 cursor: pointer; 253 -webkit-user-select: none; 254 -moz-user-select: none; 255 -ms-user-select: none; 256 user-select: none; 257 } 258 259 /* Hide the browser's default checkbox */ 260 .prosolwpclientcustombootstrap .radio-inline input, 261 .prosolwpclientcustombootstrap .radio-inline-unused input { 262 position: absolute; 263 opacity: 0; 264 cursor: pointer; 265 height: 0; 266 width: 0; 267 } 268 269 /* Create a custom checkbox */ 270 .prosolwpclientcustombootstrap .radiomark { 271 position: absolute; 272 top: 12px; 273 left: 3px; 274 height: 12px; 275 width: 12px; 276 box-shadow: 0 0 0 1pt <?php echo $prosoldescolor ?>; 277 border-radius:8px; 278 } 279 280 .prosolwpclientcustombootstrap .radiomarksidedish { 281 position: absolute; 282 left: 3px; 283 height: 12px; 284 width: 12px; 285 box-shadow: 0 0 0 1pt <?php echo $prosoldescolor ?>; 286 border-radius:8px; 287 } 288 289 .prosolwpclientcustombootstrap .radiomark-layer, 290 .prosolwpclientcustombootstrap .radiomarksidedish-layer { 291 position: absolute; 292 top: 3px; 293 left: 2px; 294 height: 16px; 295 width: 16px; 296 background-color: #eee; 297 } 298 299 /* On mouse-over, add a grey background color */ 300 .prosolwpclientcustombootstrap .radio-inline:hover input ~ .radiomark, 301 .prosolwpclientcustombootstrap .radio-inline:hover input ~ .radiomark-layer { 302 303 } 304 305 /* When the checkbox is checked, add a custom prosoldef background */ 306 .prosolwpclientcustombootstrap .radio-inline input:checked ~ .radiomark, 307 .prosolwpclientcustombootstrap .radio-inline input:checked ~ .radiomark-layer { 308 309 } 310 311 /* Create the checkmark/indicator (hidden when not checked) */ 312 .prosolwpclientcustombootstrap .radiomark:after, 313 .prosolwpclientcustombootstrap .radiomark-layer:after, 314 .prosolwpclientcustombootstrap .radiomarksidedish:after, 315 .prosolwpclientcustombootstrap .radiomarksidedish-layer:after { 316 content: ""; 317 position: absolute; 318 display: none; 319 } 320 321 /* Show the checkmark when checked */ 322 .prosolwpclientcustombootstrap .radio-inline input:checked ~ .radiomark:after, 323 .prosolwpclientcustombootstrap .radio-inline input:checked ~ .radiomark-layer:after, 324 .prosolwpclientcustombootstrap .radio-inline-unused input:checked ~ .radiomark:after, 325 .prosolwpclientcustombootstrap .radio-inline-unused input:checked ~ .radiomark-layer:after, 326 .prosolwpclientcustombootstrap .radio-inline input:checked ~ .radiomarksidedish:after, 327 .prosolwpclientcustombootstrap .radio-inline input:checked ~ .radiomarksidedish-layer:after, 328 .prosolwpclientcustombootstrap .radio-inline-unused input:checked ~ .radiomarksidedish:after, 329 .prosolwpclientcustombootstrap .radio-inline-unused input:checked ~ .radiomarksidedish-layer:after { 330 display: block; 331 } 332 333 /* Style the checkmark/indicator */ 334 .prosolwpclientcustombootstrap .radio-inline .radiomark:after, 335 .prosolwpclientcustombootstrap .radio-inline .radiomark-layer:after, 336 .prosolwpclientcustombootstrap .radio-inline-unused .radiomark:after, 337 .prosolwpclientcustombootstrap .radio-inline-unused .radiomark-layer:after, 338 .prosolwpclientcustombootstrap .radio-inline .radiomarksidedish:after, 339 .prosolwpclientcustombootstrap .radio-inline .radiomarksidedish-layer:after, 340 .prosolwpclientcustombootstrap .radio-inline-unused .radiomarksidedish:after, 341 .prosolwpclientcustombootstrap .radio-inline-unused .radiomarksidedish-layer:after { 342 left: 1px; 343 top: 1px; 344 border: solid <?php echo $prosoldescolor ?>; 345 border-width: 5px; 346 border-radius: 8px; 347 } 348 349 </style> 350 <?php 351 } 64 352 ?> 65 353 … … 67 355 <p> 68 356 <?php if($jobid){ ?> 69 <a class="btn btn-primary" 70 href="<?php echo add_query_arg( array( 71 'type' => 'details', 72 'jobid' => $jobid 73 ), esc_url( get_permalink() ) ) ?>" 74 role="button"><?php esc_html_e( 'Back to Job Details', 'prosolwpclient' ); ?></a> 75 <a class="btn btn-primary" 76 href="<?php echo add_query_arg( array( 'type' => 'result' ), esc_url( get_permalink() ) ) ?>" 77 role="button"><?php esc_html_e( 'Back to Job Listing', 'prosolwpclient' ); ?></a> 78 357 <?php if($pstemplate==1){ ?> 358 <a class="btn btn-primary" href="<?php echo add_query_arg( array( 359 'type' => 'details', 360 'jobid' => $jobid 361 ), esc_url( get_permalink() ) ) ?>" 362 role="button"><?php esc_html_e( 'Back to Job Details', 'prosolwpclient' ); ?></a> 363 <a class="btn btn-primary" href="<?php echo add_query_arg( array( 'type' => 'result' ), esc_url( get_permalink() ) ) ?>" 364 role="button"><?php esc_html_e( 'Back to Job Listing', 'prosolwpclient' ); ?></a> 365 <?php }else{ ?> 366 <a class="btn btnprosoldes" href="<?php echo add_query_arg( array( 367 'type' => 'details', 368 'jobid' => $jobid, 369 'searchlist' => strval($_GET['searchlist']) 370 ), esc_url( get_permalink() ) ) ?>" 371 role="button"><?php echo $prosoldes['desbtnappformtodetails'] ?></a> 372 <a class="btn btnprosoldes" href="<?php echo add_query_arg( array( 'type' => 'search','searchlist' => strval($_GET['searchlist']) ), esc_url( get_permalink() ) ) ?>" 373 role="button"><?php echo $prosoldes['desbtnappformtosearch'] ?></a> 374 <?php } ?> 79 375 <?php 80 376 if($isrec=="on"){ … … 100 396 //for profession 101 397 $response = wp_remote_get( $api_config['api_url'] . 'recruitment/jobprofession/' . $jobid, array( 'headers' => $header_info ) ); 102 398 //var_dump($response); 103 399 if ( ! is_wp_error( $response ) ) { 104 400 $response_data = json_decode( $response['body'] )->data; … … 163 459 164 460 } 165 461 166 462 } else{ 167 463 $response_data = sprintf( __( 'Api response failed. Message: %s', 'prosolwpclient' ), $response['body'] ); … … 206 502 <?php } 207 503 } ?> 208 <?php if($removebtn != 1){ ?> 209 <a class="btn btn-primary" 210 href="<?php echo add_query_arg( array( 'type' => 'search' ), esc_url( get_permalink() ) ) ?>" 211 role="button"><?php esc_html_e( 'Back to Job Search', 'prosolwpclient' ); ?></a> 212 <?php } ?> 504 <?php if($pstemplate==1){ 505 if($removebtn != 1){ ?> 506 <a class="btn btn-primary" 507 href="<?php echo add_query_arg( array( 'type' => 'search' ), esc_url( get_permalink() ) ) ?>" 508 role="button"><?php esc_html_e( 'Back to Job Search', 'prosolwpclient' ); ?></a> 509 <?php } 510 } else{ 511 if($removebtn != 1){ 512 if($postcontent!='apply'){?> 513 <a class="btn btnprosoldes" 514 href="<?php echo esc_url( get_permalink() ) ?>" 515 role="button"><?php echo $prosoldes['desbtnappformtohome'] ?></a> 516 <?php }else if (!isset($_GET['jobid'])){ ?> 517 <a class="btn btnprosoldes" href="<?php echo add_query_arg( array( 'type' => 'search', 'searchlist' => strval($_GET['searchlist']) ), esc_url( get_permalink() ) ) ?>" 518 role="button"><?php echo $prosoldes['desbtnappformtosearch'] ?></a> 519 <?php } ?> 520 <?php }else{ ?> 521 <a class="btn btnprosoldes" href="<?php echo add_query_arg( array( 'type' => 'search', 'searchlist' => strval($_GET['searchlist']) ), esc_url( get_permalink() ) ) ?>" 522 role="button"><?php echo $prosoldes['desbtnappformtosearch'] ?></a> 523 <?php } ?> 524 <?php } ?> 213 525 </p> 214 526 … … 253 565 <input type="hidden" name="pswp-application-submit" value="1" /> 254 566 255 <button id="applicationSubmitBtn" type="submit" 256 class="btn btn-primary submit application-submit-btn"><?php esc_html_e( 'Send', 'prosolwpclient' ); ?></button> 567 <?php if($pstemplate==1){ ?> 568 <button id="applicationSubmitBtn" type="submit" 569 class="btn btn-primary submit application-submit-btn"><?php esc_html_e( 'Send', 'prosolwpclient' ); ?></button> 570 <?php }else{ ?> 571 <button id="applicationSubmitBtn" type="submit" 572 class="btn btn-primary btnprosoldes-step submit application-submit-btn"><?php esc_html_e( 'Send', 'prosolwpclient' ); ?></button> 573 <?php } ?> 257 574 </form> 258 575 -
prosolution-wp-client/trunk/public/templates/prosolwpclientjobdetails.php
r2329064 r2426214 20 20 */ 21 21 22 23 ?> 22 if(is_object($job_details_result)){ 23 $prosoldes = get_option('prosolwpclient_designtemplate'); 24 $pstemplate = $prosoldes['destemplate']; 25 $prosoldescolor=$prosoldes['desmaincolor']; 26 27 global $wpdb; 28 $table_ps_profession = $wpdb->prefix . 'profession'; 29 $table_ps_professiongroup = $wpdb->prefix . 'professiongroup'; 30 $table_ps_qualification = $wpdb->prefix . 'qualification'; 31 32 $workingplace = isset( $job_details_result->workingplace ) ? $job_details_result->workingplace[0] : ''; 33 $zipcode = isset( $job_details_result->zipcode ) ? $job_details_result->zipcode[0] : ''; 34 $jobrefid = isset( $job_details_result->jobrefid ) ? $job_details_result->jobrefid[0] : ''; 35 $norecprofgroupid = isset( $job_details_result->professiongroupid ) ? $job_details_result->professiongroupid[0] : ''; 36 $jobname = isset( $job_details_result->jobname ) ? $job_details_result->jobname[0] : ''; 37 $profcustomname = isset( $job_details_result->profcustomname ) ? $job_details_result->profcustomname[0] : ''; 38 $professionid = isset( $job_details_result->professionid ) ? $job_details_result->professionid[0] : ''; 39 $qualificationid = isset( $job_details_result->qualificationid ) ? $job_details_result->qualificationid[0] : ''; 40 $worktimename = isset( $job_details_result->worktimename ) ? $job_details_result->worktimename[0] : ''; 41 $jobstart = isset( $job_details_result->jobstartdate ) ? $job_details_result->jobstartdate[0] : ''; 42 $salary = isset( $job_details_result->salarytext ) ? $job_details_result->salarytext[0] : ''; 43 44 $qualificationname = ''; 45 if ( $qualificationid != '' ) { 46 $qualificationname = $wpdb->get_var( $wpdb->prepare( "SELECT name FROM $table_ps_qualification WHERE qualificationId = %s", $qualificationid ) ); 47 } 48 49 $opt = get_option('prosolwpclient_frontend'); 50 $isrec= $opt['enable_recruitment']; 51 52 if($isrec == 'on'){ 53 //47690~176944, point 2 54 $professionname_arr = $job_details_result->profession; 55 if(is_array($professionname_arr[0])){ 56 $profgroupid_haystack=array(); 57 for ($x = 0; $x < count($professionname_arr[0]); $x++) { 58 if($x==0){ 59 $profcustomname=$professionname_arr[0][$x]->PROFESSIONNAME; 60 }else{ 61 $profcustomname.=', '.$professionname_arr[0][$x]->PROFESSIONNAME; 62 } 63 $profgroupid_needle=$professionname_arr[0][$x]->PROFESSIONGROUPID; 64 if(!in_array($profgroupid_needle,$profgroupid_haystack)){ 65 if($x==0){ 66 $professiongroupname=$professionname_arr[0][$x]->PROFESSIONGROUPNAME; 67 }else{ 68 $professiongroupname.=', '.$professionname_arr[0][$x]->PROFESSIONGROUPNAME; 69 } 70 } 71 $profgroupid_haystack[$x]=$professionname_arr[0][$x]->PROFESSIONGROUPID; 72 } 73 } else{ 74 $profcustomname=$professionname_arr[0][0]->PROFESSIONNAME; 75 $professiongroupname=$professionname_arr[0][0]->PROFESSIONGROUPNAME; 76 } 77 } else{ 78 if ( $profcustomname == '' ) { 79 $profcustomname = $wpdb->get_var( $wpdb->prepare( "SELECT name FROM $table_ps_profession WHERE professionId = %s", $professionid ) ); 80 } 81 82 $professiongroupname = ''; 83 if ( $norecprofgroupid != '' ) { 84 $professiongroupname = $wpdb->get_var( $wpdb->prepare( "SELECT name FROM $table_ps_professiongroup WHERE professiongroupId = %s", $norecprofgroupid ) ); 85 } 86 } 87 }?> 24 88 25 89 <div class="container-fluid"> 26 <a class="btn btn-primary" 27 href="<?php echo add_query_arg( array( 'type' => 'result' ), esc_url( get_permalink() ) ) ?>" 28 role="button"><?php esc_html_e( 'Back to Job Listing', 'prosolwpclient' ); ?></a><br/><br/> 29 30 <?php 31 if(!is_object($job_details_result)){ 32 echo '<div class="alert alert-info text-center" role="alert">'.$job_details_result.'</div>'; 33 } 34 else{ 35 $opt = get_option('prosolwpclient_frontend'); 36 $isrec= $opt['enable_recruitment']; 37 38 global $wpdb; 39 $table_ps_profession = $wpdb->prefix . 'profession'; 40 $table_ps_professiongroup = $wpdb->prefix . 'professiongroup'; 41 $table_ps_qualification = $wpdb->prefix . 'qualification'; 42 $workingplace = isset( $job_details_result->workingplace ) ? $job_details_result->workingplace[0] : ''; 43 $zipcode = isset( $job_details_result->zipcode ) ? $job_details_result->zipcode[0] : ''; 44 $jobrefid = isset( $job_details_result->jobrefid ) ? $job_details_result->jobrefid[0] : ''; 45 $norecprofgroupid = isset( $job_details_result->professiongroupid ) ? $job_details_result->professiongroupid[0] : ''; 46 $jobname = isset( $job_details_result->jobname ) ? $job_details_result->jobname[0] : ''; 47 $profcustomname = isset( $job_details_result->profcustomname ) ? $job_details_result->profcustomname[0] : ''; 48 $professionid = isset( $job_details_result->professionid ) ? $job_details_result->professionid[0] : ''; 49 $qualificationid = isset( $job_details_result->qualificationid ) ? $job_details_result->qualificationid[0] : ''; 50 $worktimename = isset( $job_details_result->worktimename ) ? $job_details_result->worktimename[0] : ''; 51 $jobstart = isset( $job_details_result->jobstartdate ) ? $job_details_result->jobstartdate[0] : ''; 52 $salary = isset( $job_details_result->salarytext ) ? $job_details_result->salarytext[0] : ''; 53 54 if($isrec == 'on'){ 55 //47690~176944, point 2 56 $professionname_arr = $job_details_result->profession; 57 if(is_array($professionname_arr[0])){ 58 $profgroupid_haystack=array(); 59 for ($x = 0; $x < count($professionname_arr[0]); $x++) { 60 if($x==0){ 61 $profcustomname=$professionname_arr[0][$x]->PROFESSIONNAME; 62 }else{ 63 $profcustomname.=', '.$professionname_arr[0][$x]->PROFESSIONNAME; 64 } 65 $profgroupid_needle=$professionname_arr[0][$x]->PROFESSIONGROUPID; 66 if(!in_array($profgroupid_needle,$profgroupid_haystack)){ 67 if($x==0){ 68 $professiongroupname=$professionname_arr[0][$x]->PROFESSIONGROUPNAME; 69 }else{ 70 $professiongroupname.=', '.$professionname_arr[0][$x]->PROFESSIONGROUPNAME; 71 } 72 } 73 $profgroupid_haystack[$x]=$professionname_arr[0][$x]->PROFESSIONGROUPID; 74 } 75 } else{ 76 $profcustomname=$professionname_arr[0][0]->PROFESSIONNAME; 77 $professiongroupname=$professionname_arr[0][0]->PROFESSIONGROUPNAME; 78 } 79 } else{ 80 if ( $profcustomname == '' ) { 81 $profcustomname = $wpdb->get_var( $wpdb->prepare( "SELECT name FROM $table_ps_profession WHERE professionId = %s", $professionid ) ); 82 } 83 84 $professiongroupname = ''; 85 if ( $norecprofgroupid != '' ) { 86 $professiongroupname = $wpdb->get_var( $wpdb->prepare( "SELECT name FROM $table_ps_professiongroup WHERE professiongroupId = %s", $norecprofgroupid ) ); 87 } 88 } 89 90 $qualificationname = ''; 91 if ( $qualificationid != '' ) { 92 $qualificationname = $wpdb->get_var( $wpdb->prepare( "SELECT name FROM $table_ps_qualification WHERE qualificationId = %s", $qualificationid ) ); 93 } 94 ?> 95 <div class="alert alert-info text-center" role="alert"><h3><?php esc_html_e( 'Job Details', 'prosolwpclient' ); ?></h3></div> 96 97 <table class="table"> 98 <tbody> 99 <?php if($isrec == 'on'){ ?> 100 <tr> 101 <th><?php esc_html_e( 'Jobname', 'prosolwpclient' ) ?></th> 102 <td><?php esc_html_e( stripslashes( $jobname ), 'prosolwpclient' ) ?></td> 103 </tr> 104 <tr> 105 <th><?php esc_html_e( 'Profession', 'prosolwpclient' ) ?></th> 106 <td><?php esc_html_e( stripslashes( $profcustomname ), 'prosolwpclient' ) ?></td> 107 </tr> 108 <?php } else{ ?> 109 <tr> 110 <th><?php esc_html_e( 'Job', 'prosolwpclient' ) ?></th> 111 <td><?php esc_html_e( stripslashes( $profcustomname ), 'prosolwpclient' ) ?></td> 112 </tr> 113 <tr> 114 <th><?php esc_html_e( 'Reference Number', 'prosolwpclient' ) ?></th> 115 <td><?php esc_html_e( stripslashes( $jobrefid ), 'prosolwpclient' ) ?></td> 116 </tr> 117 <?php } ?> 118 <tr> 119 <th><?php esc_html_e( 'Occupational Group', 'prosolwpclient' ) ?></th> 120 <td><?php esc_html_e( stripslashes( $professiongroupname ), 'prosolwpclient' ) ?></td> 121 </tr> 122 <tr> 123 <th><?php esc_html_e( 'Qualification', 'prosolwpclient' ) ?></th> 124 <td><?php esc_html_e( stripslashes( $qualificationname ), 'prosolwpclient' ) ?></td> 125 </tr> 126 <tr> 127 <th><?php esc_html_e( 'Working Time', 'prosolwpclient' ) ?></th> 128 <td><?php esc_html_e( stripslashes( $worktimename ), 'prosolwpclient' ) ?></td> 129 </tr> 130 <tr> 131 <th><?php esc_html_e( 'Location', 'prosolwpclient' ) ?></th> 132 <td><?php esc_html_e( $zipcode.' ' ); esc_html_e( stripslashes( $workingplace ), 'prosolwpclient' ) ?></td> 133 </tr> 134 <tr> 135 <th><?php esc_html_e( 'Job Start Date', 'prosolwpclient' ) ?></th> 136 <td> 137 <?php if ($jobstart == ''){ 138 esc_html_e( 'Immediately', 'prosolwpclient' ); 139 } else{ 140 esc_html_e( stripslashes( $jobstart ), 'prosolwpclient' ); 141 } 142 ?> 143 </td> 144 </tr> 145 <?php if ($isrec == 'on'){ ?> 146 <tr> 147 <th><?php esc_html_e( 'Salary', 'prosolwpclient' ) ?></th> 90 <?php if($pstemplate==1){ ?> 91 <a class="btn btn-primary" 92 href="<?php echo add_query_arg( array( 'type' => 'result' ), esc_url( get_permalink() ) ) ?>" 93 role="button"><?php esc_html_e( 'Back to Job Listing', 'prosolwpclient' ); ?></a><br/><br/> 94 95 <?php 96 if(!is_object($job_details_result)){ 97 echo '<div class="alert alert-info text-center" role="alert">'.$job_details_result.'</div>'; 98 }else{ 99 100 ?> 101 <div class="alert alert-info text-center" role="alert"><h3><?php esc_html_e( 'Job Details', 'prosolwpclient' ); ?></h3></div> 102 103 <table class="table"> 104 <tbody> 105 <?php if($isrec == 'on'){ ?> 106 <tr> 107 <th><?php esc_html_e( 'Jobname', 'prosolwpclient' ) ?></th> 108 <td><?php esc_html_e( stripslashes( $jobname ), 'prosolwpclient' ) ?></td> 109 </tr> 110 <tr> 111 <th><?php esc_html_e( 'Profession', 'prosolwpclient' ) ?></th> 112 <td><?php esc_html_e( stripslashes( $profcustomname ), 'prosolwpclient' ) ?></td> 113 </tr> 114 <?php } else{ ?> 115 <tr> 116 <th><?php esc_html_e( 'Job', 'prosolwpclient' ) ?></th> 117 <td><?php esc_html_e( stripslashes( $profcustomname ), 'prosolwpclient' ) ?></td> 118 </tr> 119 <tr> 120 <th><?php esc_html_e( 'Reference Number', 'prosolwpclient' ) ?></th> 121 <td><?php esc_html_e( stripslashes( $jobrefid ), 'prosolwpclient' ) ?></td> 122 </tr> 123 <?php } ?> 124 <tr> 125 <th><?php esc_html_e( 'Occupational Group', 'prosolwpclient' ) ?></th> 126 <td><?php esc_html_e( stripslashes( $professiongroupname ), 'prosolwpclient' ) ?></td> 127 </tr> 128 <tr> 129 <th><?php esc_html_e( 'Qualification', 'prosolwpclient' ) ?></th> 130 <td><?php esc_html_e( stripslashes( $qualificationname ), 'prosolwpclient' ) ?></td> 131 </tr> 132 <tr> 133 <th><?php esc_html_e( 'Working Time', 'prosolwpclient' ) ?></th> 134 <td><?php esc_html_e( stripslashes( $worktimename ), 'prosolwpclient' ) ?></td> 135 </tr> 136 <tr> 137 <th><?php esc_html_e( 'Location', 'prosolwpclient' ) ?></th> 138 <td><?php esc_html_e( $zipcode.' ' ); esc_html_e( stripslashes( $workingplace ), 'prosolwpclient' ) ?></td> 139 </tr> 140 <tr> 141 <th><?php esc_html_e( 'Job Start Date', 'prosolwpclient' ) ?></th> 148 142 <td> 149 <?php if ($ salary== ''){150 esc_html_e( ' ', 'prosolwpclient' );143 <?php if ($jobstart == ''){ 144 esc_html_e( 'Immediately', 'prosolwpclient' ); 151 145 } else{ 152 esc_html_e( stripslashes( $ salary), 'prosolwpclient' );146 esc_html_e( stripslashes( $jobstart ), 'prosolwpclient' ); 153 147 } 154 148 ?> 155 149 </td> 156 150 </tr> 157 <?php } ?> 158 159 <?php foreach ( CBXProSolWpClient_Helper::proSol_fifteenCustomFieldsArr() as $field_key => $field_name ) { 160 $textfield = 'textfield_' . $field_key; 161 $textfieldlbl = 'textfieldlabel_' . $field_key; 162 $field_value = isset( $job_details_result->{$textfield} ) ? $job_details_result->{$textfield}[0] : ''; 163 $field_label = isset( $job_details_result->{$textfieldlbl} ) ? $job_details_result->{$textfieldlbl}[0] : $field_name; 164 165 if ( $field_value != '' ) : ?> 166 <tr> 167 <th><?php esc_html_e( $field_label, 'prosolwpclient' ) ?></th> 168 <td><?php echo $field_value ?></td> 151 <?php if ($isrec == 'on'){ ?> 152 <tr> 153 <th><?php esc_html_e( 'Salary', 'prosolwpclient' ) ?></th> 154 <td> 155 <?php if ($salary == ''){ 156 esc_html_e( '', 'prosolwpclient' ); 157 } else{ 158 esc_html_e( stripslashes( $salary ), 'prosolwpclient' ); 159 } 160 ?> 161 </td> 169 162 </tr> 170 <?php endif; 171 } ?> 172 </tbody> 173 </table> 174 175 <a class="btn btn-primary" 176 href="<?php echo add_query_arg( array( 'type' => 'search' ), esc_url( get_permalink() ) ) ?>" 177 role="button"><?php esc_html_e( 'Back to Job Search', 'prosolwpclient' ); ?></a> 178 <a class="btn btn-success pull-right" 179 href="<?php echo add_query_arg( array( 'type' => 'apply', 'jobid' => $jobid ), esc_url( get_permalink() ) ) ?>" 180 role="button"><?php esc_html_e( 'Apply', 'prosolwpclient' ); ?></a> 181 <?php 182 } 183 163 <?php } ?> 164 165 <?php foreach ( CBXProSolWpClient_Helper::proSol_fifteenCustomFieldsArr() as $field_key => $field_name ) { 166 $textfield = 'textfield_' . $field_key; 167 $textfieldlbl = 'textfieldlabel_' . $field_key; 168 $field_value = isset( $job_details_result->{$textfield} ) ? $job_details_result->{$textfield}[0] : ''; 169 $field_label = isset( $job_details_result->{$textfieldlbl} ) ? $job_details_result->{$textfieldlbl}[0] : $field_name; 170 171 if ( $field_value != '' ) : ?> 172 <tr> 173 <th><?php esc_html_e( $field_label, 'prosolwpclient' ) ?></th> 174 <td><?php echo $field_value ?></td> 175 </tr> 176 <?php endif; 177 } ?> 178 </tbody> 179 </table> 180 181 <a class="btn btn-primary" 182 href="<?php echo add_query_arg( array( 'type' => 'search' ), esc_url( get_permalink() ) ) ?>" 183 role="button"><?php esc_html_e( 'Back to Job Search', 'prosolwpclient' ); ?></a> 184 <a class="btn btn-success pull-right" 185 href="<?php echo add_query_arg( array( 'type' => 'apply', 'jobid' => $jobid ), esc_url( get_permalink() ) ) ?>" 186 role="button"><?php esc_html_e( 'Apply', 'prosolwpclient' ); ?></a> 187 <?php } 188 } else{ //pstemplate == 0 189 if(is_object($job_details_result)){ 190 $icolc=plugins_url( 'img/location.png', dirname( __FILE__ ) ); 184 191 ?> 185 192 <style> 193 div.prosolwpclientcustombootstrap, div.prosolwpclientcustombootstrap ::placeholder 194 {font-family:<?php echo CBXProSolWpClient_Helper::proSol_getFontName() ?> !important;} 195 196 .prosolwpclientcustombootstrap b.header-details { 197 color:<?php echo $prosoldescolor ?>; 198 font-size: 56px; 199 margin-bottom:1.5rem; 200 display: inline-block; 201 width:100%; 202 } 203 204 .prosolwpclientcustombootstrap span.header-details { 205 display: inline-block; 206 margin-right: 1em; 207 margin-bottom: 0.6em; 208 } 209 210 .prosolwpclientcustombootstrap .icon-prosoldes{ 211 fill: <?php echo $prosoldescolor ?>; 212 width:1.5rem; 213 height:1.5rem; 214 position:relative; 215 top:6px; 216 margin-right:0.4em; 217 } 218 219 .prosolwpclientcustombootstrap .resjobdetail-header>span { 220 margin-right: 1.4em; 221 margin-bottom: 2rem; 222 display: block; 223 } 224 225 .prosolwpclientcustombootstrap .resjobdcontent { 226 margin-top: 1rem; 227 } 228 229 .prosolwpclientcustombootstrap .resjobdcontent b { 230 color:<?php echo $prosoldescolor ?>; 231 } 232 233 .prosolwpclientcustombootstrap .resjobdcontent>div { 234 margin-bottom: 1em; 235 } 236 237 .prosolwpclientcustombootstrap li::marker { 238 content: "\2022"; /* Add content: \2022 is the CSS Code/unicode for a bullet */ 239 color: <?php echo $prosoldescolor ?>; 240 display: inline-block; 241 } 242 243 .prosolwpclientcustombootstrap li span { 244 margin-left: 6px; 245 } 246 247 .prosolwpclientcustombootstrap .btnprosoldes, 248 .prosolwpclientcustombootstrap a.btnprosoldes { 249 color:#ffffff; 250 background-color: <?php echo $prosoldescolor ?>; 251 border-radius: 8px; 252 font-weight:bold; 253 box-shadow: 1px 2px 2px 2px #c4c3c3 !important; 254 display: inline-block; 255 border: 8px solid <?php echo $prosoldescolor ?>; 256 } 257 258 .prosolwpclientcustombootstrap .btnprosoldes:hover, 259 .prosolwpclientcustombootstrap a.btnprosoldes:hover { 260 color: <?php echo $prosoldescolor ?>; 261 background-color: #ffffff; 262 border-color: #ffffff; 263 border-radius: 8px; 264 font-weight:bold; 265 box-shadow: 1px 2px 2px 2px #c4c3c3 !important; 266 display: inline-block; 267 } 268 269 .prosolwpclientcustombootstrap a.btnprosoldes span{ 270 display: inline-block; 271 width:inherit - 6px; 272 height:inherit; 273 text-align: center; 274 } 275 </style> 276 <?php 277 278 $show_icon_ziploc = ($prosoldes['desdetailszipcode_act']==1 || $prosoldes['desdetailsplaceofwork_act']==1) ? "" : "hidden"; 279 $show_icon_worktime = $prosoldes['desdetailsworktime_act']==1 ? "" : "hidden"; 280 $show_icon_salary = $prosoldes['desdetailssalary_act']==1 ? "" : "hidden"; 281 $show_icon_qualif = $prosoldes['desdetailsqualification_act']==1 ? "" : "hidden"; 282 $show_icon_profess = $prosoldes['desdetailsprofession_act']==1 ? "" : "hidden"; 283 284 if( ($zipcode=="" && $workingplace=="") || (is_null($zipcode) && is_null($workingplace)) )$show_icon_ziploc = "hidden"; 285 if( $salary=="" || is_null($salary) )$show_icon_salary = "hidden"; 286 if( $worktimename=="" || is_null($worktimename) )$show_icon_worktime = "hidden"; 287 if( $qualificationname=="" || is_null($qualificationname) )$show_icon_qualif = "hidden"; 288 if( $profcustomname=="" || is_null($profcustomname) )$show_icon_profess = "hidden"; 289 290 $header = sprintf( '<span> 291 <p class="resjobdetail-header" ><b class="header-details">%1$s</b> 292 <span> 293 <span class="header-details %7$s"><svg class="icon-prosoldes" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 217.1 217.1"> 294 <path d="M108.6 0C62.4 0 24.9 37.5 24.9 83.7c0 33 13.8 66.3 39.9 96.4 19.5 22.5 38.8 35.2 39.6 35.8 1.2 0.8 2.7 1.2 4.1 1.2 1.4 0 2.9-0.4 4.1-1.2 0.8-0.5 20.1-13.3 39.6-35.8 26.1-30.1 39.9-63.5 39.9-96.4C192.2 37.5 154.7 0 108.6 0zM108.6 200.4C93.2 188.9 39.9 144.8 39.9 83.7 39.9 45.8 70.7 15 108.6 15c37.9 0 68.7 30.8 68.7 68.7C177.2 144.8 123.9 188.9 108.6 200.4z"/><path d="M108.6 50.4c-18.3 0-33.2 14.9-33.2 33.2 0 18.3 14.9 33.2 33.2 33.2 18.3 0 33.2-14.9 33.2-33.2C141.8 65.3 126.9 50.4 108.6 50.4zM108.6 101.9c-10 0-18.2-8.2-18.2-18.2 0-10 8.2-18.2 18.2-18.2 10 0 18.2 8.2 18.2 18.2C126.8 93.7 118.6 101.9 108.6 101.9z"/> 295 </svg>%2$s %3$s</span> 296 <span class="header-details %10$s"><svg class="icon-prosoldes" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 477.9 477.9"><path d="M238.9 0C107 0 0 107 0 238.9s107 238.9 238.9 238.9 238.9-107 238.9-238.9C477.7 107 370.8 0.1 238.9 0zM256 238.9c0 9.4-7.6 17.1-17.1 17.1H102.4c-9.4 0-17.1-7.6-17.1-17.1s7.6-17.1 17.1-17.1h119.5V102.4c0-9.4 7.6-17.1 17.1-17.1S256 93 256 102.4V238.9z"/> 297 </svg>%4$s</span> 298 <span class="header-details %11$s"><svg class="icon-prosoldes" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><path d="M150 0C67.2 0 0 67.2 0 150S67.2 300 150 300c82.8 0 150-67.2 150-150S232.8 0 150 0zM126.8 48.7h39.1c7.2 0 13 5.8 13 13l-12.2 28.3h-40.7l-12.2-28.3C113.8 54.5 119.6 48.7 126.8 48.7zM147.4 243.5c-33.1 0-62.7-5.5-75.9-8.4 4.3-17.8 14.4-61.4 16.3-79.2 2.9-28 18.7-49.3 40.7-57.1l-14.6 18 12.1 9.8 20.7-25.6 20.7 25.6 12.1-9.8 -15.3-18.8c23.1 7.1 40 29 43 58 1.8 17.7 12 61.4 16.3 79.2C210 238 180.2 243.5 147.4 243.5z"/><path d="M148.6 167.4c-7.5-0.9-13.3-1.9-13.3-6.5 0-6.3 8.9-7 12.8-7 5.7 0 11.8 2.7 13.8 6.1l0.6 1 11.8-5.5 -0.6-1.2c-4.4-9-12.3-11.6-18.3-12.6v-7.9h-13.8v7.9c-12.9 1.9-20.5 9-20.5 19.3 0 16.7 15.1 18.4 26.2 19.6 9.8 1.2 14.4 3.6 14.4 7.6 0 7.7-10.7 8.3-14 8.3 -7.3 0-14.4-3.6-16.4-8.5l-0.5-1.2 -12.8 5.4 0.5 1.2c3.8 8.9 12 14.5 23.1 15.8v8.5h13.8v-9c10.6-1.2 20.9-7.9 20.9-20.6C176.4 170.8 160.4 168.8 148.6 167.4z"/> 299 </svg>%5$s</span> 300 <span class="header-details %12$s"><svg class="icon-prosoldes" xmlns="http://www.w3.org/2000/svg" width="65" height="65" viewBox="0 0 65.4 65.4"><path d="M32.7 0C14.6 0 0 14.6 0 32.7c0 18.1 14.6 32.7 32.7 32.7 18.1 0 32.7-14.6 32.7-32.7C65.4 14.6 50.8 0 32.7 0zM15.3 48.3c-1 0-1.8-0.8-1.8-1.8 0-0.7 0.4-1.2 0.9-1.5V28.7h1.8v16.3c0.5 0.3 0.9 0.9 0.9 1.5C17.1 47.5 16.3 48.3 15.3 48.3zM48 41.9c0 2.1-6.8 5.3-15.3 5.3 -8.4 0-15.3-3.2-15.3-5.3V31.4l15.3 5.5 15.3-5.5V41.9zM32.7 34.9l-15.6-5.6 14.2-2.2c0.3 0.4 0.8 0.7 1.4 0.7 1 0 1.9-0.8 1.9-1.9 0-1-0.8-1.9-1.9-1.9 -0.8 0-1.5 0.5-1.7 1.2l-17.4 2.7 -5.8-2.1 24.9-8.9 24.9 8.9L32.7 34.9z"/> 301 </svg>%8$s</span> <br> 302 <span class="header-details %13$s"><svg class="icon-prosoldes" xmlns="http://www.w3.org/2000/svg" width="350" height="350" viewBox="0 0 350.1 350.1"><path d="M304.8 72.4c6.5 0 12.5-2.5 17.1-7.1 1.2-1.2 2.3-2.5 3.3-4.1l23.8-30.6c1.7-2.1 1.5-5.2-0.4-7.1L329.5 4.5c-1.9-1.9-5-2.1-7.1-0.4L291.8 27.9c-1.6 1-2.9 2.1-4.1 3.3 -4.6 4.6-7.1 10.6-7.1 17.1 0 4.6 1.3 9 3.7 12.8l-94 94 -24.7-24.7c-0.8-0.8-1.8-1.2-2.9-1.4l-31.9-31.9c8-24 1.8-50.9-16.1-68.8C102 15.6 85.2 8.6 67.2 8.6c-8.8 0-17.3 1.7-25.4 5 -1.7 0.7-2.9 2.1-3.2 3.9 -0.4 1.8 0.2 3.6 1.5 4.9l31 31 -1.3 24.9 -24.9 1.3L13.8 48.6c-1.3-1.3-3.1-1.8-4.9-1.5 -1.8 0.4-3.2 1.6-3.9 3.2 -10.3 25.1-4.5 53.8 14.7 72.9 12.6 12.6 29.5 19.6 47.4 19.6l0 0c7.3 0 14.4-1.2 21.3-3.5l30.3 30.3L33 255.5c-8.6 8.6-13.4 20.1-13.4 32.3 0 12.2 4.8 23.7 13.4 32.3 8.6 8.6 20.1 13.4 32.3 13.4 12.2 0 23.7-4.7 32.3-13.4l85.8-85.8 25.2 25.2c-7.6 23.8-1.3 50.3 16.4 68 12.7 12.7 29.6 19.7 47.5 19.7l0 0c8.8 0 17.3-1.7 25.4-5 1.7-0.7 2.9-2.1 3.2-3.9 0.4-1.8-0.2-3.6-1.5-4.9l-31-31 1.3-24.9 24.9-1.3 31 31c1.3 1.3 3.1 1.8 4.9 1.5 1.8-0.4 3.2-1.6 3.9-3.2 10.3-25.1 4.5-53.8-14.7-72.9 -12.6-12.7-29.5-19.6-47.4-19.6 -7.6 0-15 1.3-22.2 3.8 -0.1-0.2-0.2-0.3-0.4-0.5l-25.9-25.9c-0.2-1.1-0.6-2.1-1.4-2.9l-24.7-24.7 94-94C295.8 71.1 300.2 72.4 304.8 72.4zM51 278.9c-1.4 0-2.8-0.5-3.8-1.6 -2.1-2.1-2.1-5.5 0-7.6l75.2-75.1c2.1-2.1 5.5-2.1 7.6 0 2.1 2.1 2.1 5.5 0 7.6l-75.2 75.2C53.8 278.4 52.4 278.9 51 278.9zM66.2 294.1c-1.4 0-2.8-0.5-3.8-1.6 -2.1-2.1-2.1-5.5 0-7.6l75.1-75.1c2.1-2.1 5.5-2.1 7.6 0 2.1 2.1 2.1 5.5 0 7.6l-75.1 75.1C69 293.6 67.6 294.1 66.2 294.1zM158.5 230.7l-75.1 75.1c-1 1.1-2.4 1.6-3.8 1.6 -1.4 0-2.7-0.5-3.8-1.6 -2.1-2.1-2.1-5.5 0-7.6l75.1-75.1c2.1-2.1 5.5-2.1 7.6 0C160.6 225.2 160.6 228.6 158.5 230.7z"/> 303 </svg>%9$s</span> 304 </svg> 305 </span>', $jobname, $zipcode, $workingplace, $worktimename, 306 $salary,"",$show_icon_ziploc, 307 $qualificationname,$profcustomname, 308 $show_icon_worktime, $show_icon_salary, $show_icon_qualif, $show_icon_profess); 309 echo $header; 310 ?> 311 <div class="resjobdcontent"> 312 <?php foreach ( CBXProSolWpClient_Helper::proSol_fifteenCustomFieldsArr() as $field_key => $field_name ) { 313 $textfield = 'textfield_' . $field_key; 314 $textfieldlbl = 'textfieldlabel_' . $field_key; 315 $field_value = isset( $job_details_result->{$textfield} ) ? $job_details_result->{$textfield}[0] : ''; 316 $field_label = isset( $job_details_result->{$textfieldlbl} ) ? $job_details_result->{$textfieldlbl}[0] : $field_name; 317 if ( $field_value != '' ) : ?> 318 <div> 319 <b><?php esc_html_e( $field_label, 'prosolwpclient' ) ?></b><br> 320 <span><?php echo $field_value ?></span> 321 </div> 322 <?php endif; 323 } ?> 324 </div> 325 326 <br> 327 328 <a class="btn btnprosoldes" 329 href="<?php echo add_query_arg( array( 'type' => 'apply', 'jobid' => $jobid, 'searchlist' => strval($_GET['searchlist']) ), esc_url( get_permalink() ) ) ?>" 330 role="button"><span><?php echo $prosoldes['desbtndetailsapply'] ?></span></a> 331 <a class="btn btnprosoldes" style="display:inline-block;margin-left:1rem" 332 href="<?php echo add_query_arg( array( 333 'type' => 'search', 334 'searchlist' => strval($_GET['searchlist']), 335 ), esc_url( get_permalink() ) ) ?>" 336 role="button"><?php echo $prosoldes['desbtndetailsback'] ?></a> 337 <?php } 338 } ?> 186 339 187 340 </div> -
prosolution-wp-client/trunk/public/templates/prosolwpclientjobsearchform.php
r2357146 r2426214 22 22 die; 23 23 } 24 25 $opt = get_option('prosolwpclient_frontend');26 $isrec= $opt['enable_recruitment'];27 24 28 $apiinvalid = 0; 29 if($isrec == 'on'){ 30 $header_info = CBXProSolWpClient_TableHelper::proSol_apiConfig(); 31 $is_api_setup = CBXProSolWpClient_Helper::proSol_isApiSetup(); 32 $api_config = CBXProSolWpClient_Helper::proSol_getApiConfig(); 33 34 if ( is_array( $header_info ) && sizeof( $header_info ) > 0 && $is_api_setup ) { 35 $clientlist = $opt['client_list']; 36 $response = wp_remote_get( $api_config['api_url'] . 'system/list/professiongroupwithjob/' . $clientlist, array( 'headers' => $header_info ) ); 37 38 /*$api_user = 'apiuser'; 39 $api_pass = '478052290F5E77D85BBB7105568D4839D62081096A8685816C15E14604427F82'; 40 $api_url = 'https://adeccotest.workexpert.online'; 41 42 //$stamp = gmDate( "Y-m-d H:i:s O" ); 43 // SHA-Hash erstellen aus Zeitstempel und dem Access-Key 44 $signature = hash( 'sha256', $stamp . '::' . $api_pass ); 45 $header_info = array( 46 'prosol-date' => $stamp, 47 'Authorization' => 'WorkExpertAPI ' . $api_user . ':' . $signature, 48 ); 49 50 $pro=array( 51 'projectname' => 'Abtl. FRÄSEN', 52 'time_start' => '07:10', 53 'time_end' => '17:00' 54 ); 55 56 $att=array( 57 'lease_custid' => '1407951', 58 'date' => '04.07.2020', 59 'time_start' => '07:10', 60 'time_end' => '17:00', 61 'break1_start' => '11:35', 62 'break1_end' => '12:35', 63 'project' => array($pro) 64 ); 65 66 $safe_data = array( 67 'pers_name' => 'Thomas Atzesberger', 68 'month' => '7', 69 'year' => '2020', 70 'attendance' => array($att) 71 ); 72 73 $safe_data = array($safe_data); 74 75 $safe_data = json_encode( $safe_data ); 76 77 $api_body = array( 78 'data' => $safe_data, 79 'testmode' => true 80 ); 81 //var_dump($api_body); 82 83 $responses = wp_remote_post( $api_url . '' . '/go/api/adapter/timerec/', array( 84 'headers' => $header_info, 85 'body' => $api_body 86 ) ); 87 */ 88 //var_dump($responses); 89 if ( ! is_wp_error( $response ) ) { 90 $response_data = json_decode( $response['body'] )->data; 91 $profgroup_id = $response_data -> id; 92 $profgroup_name = $response_data -> name; 25 26 $prosoldes = get_option('prosolwpclient_designtemplate'); 27 $pstemplate = $prosoldes['destemplate']; 28 29 $ressearch=0; 30 if (isset($_POST['action'])) { 31 if($_POST['submit']==$prosoldes['dessearchjobidbtn']){ 32 unset($_POST); 33 $appformlink= add_query_arg( array('type' => 'apply' ), esc_url( get_permalink() ) ); 34 header("Location: $appformlink"); 35 }else{ 36 $keywordjob='/'.$_POST['jobname'].'/i'; 37 $keywordplace='/'.$_POST['searchplace'].'/i'; 38 $ressearch=1; 39 } 40 } 41 42 if($pstemplate == '1'){ 43 $opt = get_option('prosolwpclient_frontend'); 44 $isrec= $opt['enable_recruitment']; 45 46 $apiinvalid = 0; 47 if($isrec == 'on'){ 48 $header_info = CBXProSolWpClient_TableHelper::proSol_apiConfig(); 49 $is_api_setup = CBXProSolWpClient_Helper::proSol_isApiSetup(); 50 $api_config = CBXProSolWpClient_Helper::proSol_getApiConfig(); 51 52 if ( is_array( $header_info ) && sizeof( $header_info ) > 0 && $is_api_setup ) { 53 $clientlist = $opt['client_list']; 54 $response = wp_remote_get( $api_config['api_url'] . 'system/list/professiongroupwithjob/' . $clientlist, array( 'headers' => $header_info ) ); 93 55 94 //var_dump($profgroup_id); 95 //var_dump($profgroup_name); 56 if ( ! is_wp_error( $response ) ) { 57 $response_data = json_decode( $response['body'] )->data; 58 $profgroup_id = $response_data -> id; 59 $profgroup_name = $response_data -> name; 60 61 62 } else { 63 $response_data = sprintf( __( 'Api response failed. Message: %s', 'prosolwpclient' ), $response->get_error_message() ); 64 $apiinvalid = 1; 65 } 66 67 if($profgroup_id == null){ 68 $response_data = esc_html__( 'Api return empty', 'prosolwpclient' ); 69 $apiinvalid = 1; 70 } 71 96 72 } else { 97 $response_data = sprintf( __( 'Api response failed. Message: %s', 'prosolwpclient' ), $response->get_error_message());73 $response_data = esc_html__( 'Api config invalid', 'prosolwpclient' ); 98 74 $apiinvalid = 1; 99 } 100 101 if($profgroup_id == null){ 102 $response_data = esc_html__( 'Api return empty', 'prosolwpclient' ); 103 $apiinvalid = 1; 104 } 105 106 } else { 107 $response_data = esc_html__( 'Api config invalid', 'prosolwpclient' ); 108 $apiinvalid = 1; 75 } 109 76 } 110 } 111 112 global $wpdb; 113 $table_ps_professiongroup = $wpdb->prefix . 'professiongroup'; 114 $profession_groups = $wpdb->get_results( "SELECT * FROM $table_ps_professiongroup ", ARRAY_A ); 115 77 78 global $wpdb; 79 $table_ps_professiongroup = $wpdb->prefix . 'professiongroup'; 80 $profession_groups = $wpdb->get_results( "SELECT * FROM $table_ps_professiongroup ", ARRAY_A ); 81 } else { 82 echo sprintf(" 83 <form class='form-horizontal' method='POST'> 84 <input type='hidden' name='prosolwpclient_frontend_formsubmit' value=1> 85 "); 86 wp_nonce_field( 'prosolwpclient_formsubmit', 'prosolwpclient_token' ); 87 } 88 89 if($ressearch==1 || ( $ressearch==0 && isset($_GET['searchlist']) ) || isset($_GET['fromjoblist']) ){ 90 $job_search_result=$_SESSION['job_search_result']; 91 $workingplace_arr = isset( $job_search_result->workingplace ) ? $job_search_result->workingplace : array(); 92 $jobname_arr = isset( $job_search_result->jobname ) ? $job_search_result->jobname : array(); 93 $zipcode_arr = isset( $job_search_result->zipcode ) ? $job_search_result->zipcode : array(); 94 $worktimename_arr = isset( $job_search_result->worktimename ) ? $job_search_result->worktimename : array(); 95 $jobid_arr = isset( $job_search_result->jobid ) ? $job_search_result->jobid : array(); 96 } 116 97 ?> 117 98 … … 119 100 <div class="row"> 120 101 <div class="col-md-12 job-search-form"> 121 <form class="form-horizontal" method="post"> 122 <div class="alert alert-info text-center" 123 role="alert"><h3><?php esc_html_e( 'Job Search', 'prosolwpclient' ); ?></h3></div> 124 <div class="form-group"> 125 <label for="filter_group" 126 class="col-md-3 control-label"><?php esc_html_e( 'Filter available Occupational groups', 'prosolwpclient' ); ?></label> 127 <div class="col-md-9"> 128 <input type="text" name="filter_group" class="form-control" id="filter_group" 129 placeholder="<?php esc_html_e( 'Filter Groups', 'prosolwpclient' ); ?>"> 102 103 <?php 104 if($pstemplate == '1'){ ?> 105 <form class="form-horizontal" method="post"> 106 <div class="alert alert-info text-center" role="alert"><h3><?php esc_html_e( 'Job Search', 'prosolwpclient' ); ?></h3></div> 107 <div class="form-group"> 108 <label for="filter_group" 109 class="col-md-3 control-label"><?php esc_html_e( 'Filter available Occupational groups', 'prosolwpclient' ); ?></label> 110 <div class="col-md-9"> 111 <input type="text" name="filter_group" class="form-control" id="filter_group" 112 placeholder="<?php esc_html_e( 'Filter Groups', 'prosolwpclient' ); ?>"> 113 </div> 130 114 </div> 131 </div> 132 133 <input type="hidden" name="group_checked" value="0"> 134 <div class="form-group"> 135 <label for="group_checked" 136 class="col-md-3 control-label"><?php esc_html_e( 'Profession-Group', 'prosolwpclient' ); ?> 137 </label> 138 <div class="col-lg-9 error-msg-show"> 139 <ul class="list-unstyled profession-groups"> 140 <?php 141 if( ($isrec == 'on') && ($apiinvalid == 0) ){ 142 for($ij=0;$ij<(count($profgroup_id));$ij++){ 143 echo '<li> 144 <label class="checkbox-inline"> 145 <input id="1" class="" name="group_checked[]" type="checkbox" value="' . $profgroup_id[$ij] . '">' . $profgroup_name[$ij] . ' 146 </label> 147 </li>'; 115 116 <input type="hidden" name="group_checked" value="0"> 117 <div class="form-group"> 118 <label for="group_checked" 119 class="col-md-3 control-label"><?php esc_html_e( 'Profession-Group', 'prosolwpclient' ); ?> 120 </label> 121 <div class="col-lg-9 error-msg-show"> 122 <ul class="list-unstyled profession-groups"> 123 <?php 124 if( ($isrec == 'on') && ($apiinvalid == 0) ){ 125 for($ij=0;$ij<(count($profgroup_id));$ij++){ 126 echo '<li> 127 <label class="checkbox-inline"> 128 <input id="1" class="" name="group_checked[]" type="checkbox" value="' . $profgroup_id[$ij] . '">' . $profgroup_name[$ij] . ' 129 </label> 130 </li>'; 131 } 132 } else{ 133 foreach ( $profession_groups as $index => $single_profession_group ) { 134 echo '<li> 135 <label class="checkbox-inline"> 136 <input id="1" class="" name="group_checked[]" type="checkbox" value="' . $single_profession_group['professiongroupId'] . '">' . $single_profession_group['name'] . ' 137 </label> 138 </li>'; 139 } 148 140 } 149 } else{ 150 foreach ( $profession_groups as $index => $single_profession_group ) { 151 echo '<li> 152 <label class="checkbox-inline"> 153 <input id="1" class="" name="group_checked[]" type="checkbox" value="' . $single_profession_group['professiongroupId'] . '">' . $single_profession_group['name'] . ' 154 </label> 155 </li>'; 156 } 141 ?> 142 </ul> 143 </div> 144 </div> 145 146 <input type="hidden" name="prosolwpclient_frontend_formsubmit" value="1" /> 147 <input type="hidden" name="prosolwpclient_frontend_url" 148 value="<?php echo esc_url( get_permalink() ); ?>" /> 149 <?php wp_nonce_field( 'prosolwpclient_formsubmit', 'prosolwpclient_token' );?> 150 151 <div class="form-group"> 152 <div class="col-md-offset-3 col-md-9"> 153 <button type="submit" 154 class="btn btn-default btn-primary"><?php esc_html_e( 'Search', 'prosolwpclient' ); ?></button> 155 156 157 </div> 158 </div> 159 160 <div class="form-group"> 161 <div class="col-md-offset-3 col-md-9"> 162 <a href="<?php echo add_query_arg( array('type' => 'apply' ), esc_url( get_permalink() ) )?>" class="btn btn-default btn-primary" ><?php esc_html_e( "Didn't find the job that you were searching for?", "prosolwpclient" ); ?></a> 163 </div> 164 </div> 165 166 <!-- if $pstemplate == '0' --> 167 <?php } else{ 168 $prosoldescolor=$prosoldes['desmaincolor']; 169 $showjobidbtn=$prosoldes['dessearchjobidbtn_act'] == 1 ? "" : "hidden"; 170 ?> 171 <style> 172 div.prosolwpclientcustombootstrap, div.prosolwpclientcustombootstrap ::placeholder 173 {font-family:<?php echo CBXProSolWpClient_Helper::proSol_getFontName() ?> !important;} 174 175 .prosolwpclientcustombootstrap div.dessearch { 176 flex-grow:1; 177 padding-right:1rem; 178 } 179 180 .prosolwpclientcustombootstrap div.dessearchlast { 181 flex-grow:1; 182 } 183 184 .prosolwpclientcustombootstrap div.fluid { 185 flex-grow:2; 186 } 187 188 .prosolwpclientcustombootstrap div.dessearch-container{ 189 width:100%; 190 height:20%; 191 display:flex; 192 justify-content: space-between; 193 margin-bottom:1rem; 194 } 195 196 .prosolwpclientcustombootstrap input.textprosoldes, 197 .prosolwpclientcustombootstrap input.textprosoldes:focus { 198 border: 2px solid <?php echo $prosoldescolor ?>; 199 border-radius: 8px; 200 } 201 202 .prosolwpclientcustombootstrap input.textprosoldes::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ 203 opacity: 0.6; 204 } 205 206 .prosolwpclientcustombootstrap .btnprosoldes, 207 .prosolwpclientcustombootstrap input[type="submit"].btnprosoldes { 208 color:#ffffff; 209 background-color: <?php echo $prosoldescolor ?>; 210 border-color: <?php echo $prosoldescolor ?>; 211 border-radius: 8px; 212 font-weight:bold; 213 box-shadow: 2px 2px 2px #c4c3c3; 214 display: inline-block; 215 width:100%; 216 height:95%; 217 } 218 219 .prosolwpclientcustombootstrap .btnprosoldes:hover, 220 .prosolwpclientcustombootstrap input[type="submit"].btnprosoldes:hover { 221 color: <?php echo $prosoldescolor ?>; 222 background-color: #ffffff; 223 border-color: #ffffff; 224 border-radius: 8px; 225 font-weight:bold; 226 box-shadow: 1px 2px 2px 2px #c4c3c3; 227 display: inline-block; 228 width:100%; 229 height:95%; 230 } 231 232 .prosolwpclientcustombootstrap div.jobsearch-perid { 233 width:100%; 234 border-color: <?php echo $prosoldescolor ?>; 235 box-shadow: 0.5px 0.5px 6px 6px #f1f1f1; 236 margin-bottom: 1.5em; 237 text-align: left; 238 padding-top: 2.6rem ; 239 padding-bottom: 2.6rem ; 240 padding-left: 1rem ; 241 padding-right: 2rem ; 242 display:flex; 243 justify-content: space-between ; 244 } 245 246 .prosolwpclientcustombootstrap .jobsearch-perid img, 247 .prosolwpclientcustombootstrap .jobsearch-perid b 248 { 249 margin-left: 1em; 250 margin-right: 5px; 251 } 252 253 .prosolwpclientcustombootstrap p.resjoblist{ 254 width:80%; 255 margin-bottom: -10px; 256 } 257 258 .prosolwpclientcustombootstrap p.resjoblist > b{ 259 font-size:24px; 260 } 261 262 .prosolwpclientcustombootstrap a.txt-prosoldes{ 263 text-align:right; 264 color: #000000; 265 font-weight:bold; 266 text-decoration: none; 267 width:20%; 268 } 269 270 .prosolwpclientcustombootstrap a.txt-prosoldes:hover { 271 color: <?php echo $prosoldescolor ?>; 272 text-decoration: none; 273 } 274 275 .prosolwpclientcustombootstrap .icon-prosoldes{ 276 fill: <?php echo $prosoldescolor ?>; 277 width:1.5rem; 278 height:1.5rem; 279 margin-left:1em; 280 margin-right:0.4em; 281 } 282 283 .prosolwpclientcustombootstrap .icon-prosoldes-arrow{ 284 width:2rem; 285 height:2rem; 286 position:relative; 287 top:10px; 288 } 289 290 .prosolwpclientcustombootstrap .icon-prosoldes-arrow:hover{ 291 fill: <?php echo $prosoldescolor ?>; 292 } 293 294 .prosolwpclientcustombootstrap .text-left{ 295 font-size:32px; 296 font-weight:bold; 297 } 298 299 </style> 300 <div class="text-left" role="alert"><?php echo $prosoldes['dessearchheading'] ?></div> 301 <div class="form-group"> 302 303 <div class="dessearch-container"> 304 <div class="dessearch fluid"> 305 <input type="text" name="jobname" id="jobnamesearch" class="textprosoldes" placeholder="<?php echo $prosoldes['dessearchjobtitle']; ?>" 306 value="<?php if(isset($_POST['jobname']))echo $_POST['jobname'] ?>" /> 307 </div><div class="dessearch fluid"> 308 <input type="text" name="searchplace" id="searchplacesearch" class="textprosoldes" placeholder="<?php echo $prosoldes['dessearchplace']; ?>" 309 value="<?php if(isset($_POST['searchplace']))echo $_POST['searchplace'] ?>" /> 310 </div><div class="dessearch"> 311 <input type="submit" name="submit" id="searchbtn" class="btnprosoldes" value="<?php echo $prosoldes['dessearchsearchbtn']; ?>" /> 312 </div><div class="dessearchlast <?php echo $showjobidbtn ?> "> 313 <input type="submit" name="submit" id="jobidbtn" class="btnprosoldes" value="<?php echo $prosoldes['dessearchjobidbtn']; ?>" /> 314 </div> 315 </div> 316 <input type="hidden" name="action" value="submit" /> 317 318 <!-- section result search --> 319 <div class="jobsearch-resultcontainer"> 320 <?php 321 $indexshowlist_arr=array(); 322 $indexshowlist=""; 323 if($ressearch==1 || isset($_GET['fromjoblist'])){ //click button search 324 foreach ( $jobname_arr as $index => $jobname ) { 325 $show=0; 326 if( $_POST['jobname'] <> "" && $_POST['searchplace'] == "" ){ 327 if(preg_match($keywordjob,$jobname)==1 )$show=1; 328 } else if( $_POST['jobname'] == "" && $_POST['searchplace'] <> "" ){ 329 if(preg_match($keywordplace,$workingplace_arr[$index])==1 )$show=1; 330 } else if( $_POST['jobname'] <> "" && $_POST['searchplace'] <> "" ){ 331 if( preg_match($keywordjob,$jobname)==1 && preg_match($keywordplace,$workingplace_arr[$index])==1 )$show=1; 332 } else if( $_POST['jobname'] == "" && $_POST['searchplace'] == "" )$show=1; 333 334 if($show==1){ 335 if($indexshowlist==""){ 336 $indexshowlist=strval($index); 337 } else{ 338 $indexshowlist.=",".strval($index); 339 } 340 array_push($indexshowlist_arr,$index); 341 } 157 342 } 158 ?> 159 </ul> 160 </div> 161 </div> 162 163 <input type="hidden" name="prosolwpclient_frontend_formsubmit" value="1" /> 164 <input type="hidden" name="prosolwpclient_frontend_url" 165 value="<?php echo esc_url( get_permalink() ); ?>" /> 166 <?php wp_nonce_field( 'prosolwpclient_formsubmit', 'prosolwpclient_token' );?> 167 168 <div class="form-group"> 169 <div class="col-md-offset-3 col-md-9"> 170 <button type="submit" 171 class="btn btn-default btn-primary"><?php esc_html_e( 'Search', 'prosolwpclient' ); ?></button> 172 173 174 </div> 175 </div> 176 177 <div class="form-group"> 178 <div class="col-md-offset-3 col-md-9"> 179 <a href="<?php echo add_query_arg( array('type' => 'apply' ), esc_url( get_permalink() ) )?>" class="btn btn-default btn-primary" ><?php esc_html_e( "Didn't find the job that you were searching for?", "prosolwpclient" ); ?></a> 180 </div> 181 </div> 182 </form> 343 } else if( $ressearch==0 && isset($_GET['searchlist']) ){ //back from jobdetails 344 $indexshowlist_arr=explode(",", $_GET['searchlist']); 345 $indexshowlist=$_GET['searchlist']; 346 347 } ?> 348 349 <!-- show list --> 350 <?php 351 if($indexshowlist != ""){ 352 for($x=0;$x<count($indexshowlist_arr);$x++){ 353 ?> <div class="jobsearch-perid"> 354 <?php 355 $linktodetail=add_query_arg( array( 356 'type' => 'details', 357 'jobid' => $jobid_arr[$indexshowlist_arr[$x]], 358 'searchlist' => strval($indexshowlist) 359 ), esc_url( get_permalink() ) ); 360 361 $show_icon_ziploc = ($prosoldes['desresultzipcode_act']==1 || $prosoldes['desresultplaceofwork_act']==1) ? "" : "hidden"; 362 $show_icon_worktime = $prosoldes['desresultworktime_act']==1 ? "" : "hidden"; 363 364 $joblist = sprintf( ' 365 <p class="resjoblist"><b>%1$s</b><br> 366 <span class="%8$s" style="white-space:normal"><svg class="icon-prosoldes" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 217.1 217.1"> 367 <path d="M108.6 0C62.4 0 24.9 37.5 24.9 83.7c0 33 13.8 66.3 39.9 96.4 19.5 22.5 38.8 35.2 39.6 35.8 1.2 0.8 2.7 1.2 4.1 1.2 1.4 0 2.9-0.4 4.1-1.2 0.8-0.5 20.1-13.3 39.6-35.8 26.1-30.1 39.9-63.5 39.9-96.4C192.2 37.5 154.7 0 108.6 0zM108.6 200.4C93.2 188.9 39.9 144.8 39.9 83.7 39.9 45.8 70.7 15 108.6 15c37.9 0 68.7 30.8 68.7 68.7C177.2 144.8 123.9 188.9 108.6 200.4z"/><path d="M108.6 50.4c-18.3 0-33.2 14.9-33.2 33.2 0 18.3 14.9 33.2 33.2 33.2 18.3 0 33.2-14.9 33.2-33.2C141.8 65.3 126.9 50.4 108.6 50.4zM108.6 101.9c-10 0-18.2-8.2-18.2-18.2 0-10 8.2-18.2 18.2-18.2 10 0 18.2 8.2 18.2 18.2C126.8 93.7 118.6 101.9 108.6 101.9z"/> 368 </svg>%2$s %3$s</span> 369 <span class="%9$s" style="white-space:normal"><svg class="icon-prosoldes" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 477.9 477.9"><path d="M238.9 0C107 0 0 107 0 238.9s107 238.9 238.9 238.9 238.9-107 238.9-238.9C477.7 107 370.8 0.1 238.9 0zM256 238.9c0 9.4-7.6 17.1-17.1 17.1H102.4c-9.4 0-17.1-7.6-17.1-17.1s7.6-17.1 17.1-17.1h119.5V102.4c0-9.4 7.6-17.1 17.1-17.1S256 93 256 102.4V238.9z"/> 370 </svg>%4$s</span> 371 </p> 372 <a href="%7$s" class="txt-prosoldes icon-prosoldes-arrow" title="%6$s"><span>%6$s</span> 373 <svg class="icon-prosoldes-arrow" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 492 492"><path d="M484.1 226.9L306.5 49.2c-5.1-5.1-11.8-7.9-19-7.9 -7.2 0-14 2.8-19 7.9l-16.1 16.1c-5.1 5.1-7.9 11.8-7.9 19 0 7.2 2.8 14.2 7.9 19.3L355.9 207.5H26.6C11.7 207.5 0 219.2 0 234v22.8c0 14.9 11.7 27.6 26.6 27.6h330.5L252.2 388.9c-5.1 5.1-7.9 11.7-7.9 18.9 0 7.2 2.8 13.9 7.9 18.9l16.1 16.1c5.1 5.1 11.8 7.8 19 7.8 7.2 0 14-2.8 19-7.9l177.7-177.7c5.1-5.1 7.9-11.9 7.9-19.1C492 238.8 489.2 232 484.1 226.9z"/></svg> 374 </a>', $jobname_arr[$indexshowlist_arr[$x]], $zipcode_arr[$indexshowlist_arr[$x]], $workingplace_arr[$indexshowlist_arr[$x]], $worktimename_arr[$indexshowlist_arr[$x]], "",$prosoldes['desbtnfrontendback'],$linktodetail 375 , $show_icon_ziploc, $show_icon_worktime); 376 echo $joblist; 377 ?> 378 </div> 379 <?php 380 } 381 } 382 unset($_POST); ?> 383 </div> 384 </div> 385 <?php } ?> <!--- end of $pstemplate ---> 386 387 </form> <!--- start tag of form inside each of condition pstemplate ---> 183 388 </div> 184 389 </div> 185 </div> 390 </div> -
prosolution-wp-client/trunk/public/templates/prosolwpclientjobsearchresult.php
r2352282 r2426214 26 26 $title = 'Job List'; 27 27 } 28 29 $prosoldes = get_option('prosolwpclient_designtemplate'); 30 $pstemplate = $prosoldes['destemplate']; 31 if($pstemplate==0){ 32 $gotopagesearch= add_query_arg( array('type' => 'search', 'fromjoblist' => 1), esc_url( get_permalink() ) ); 33 header("Location: $gotopagesearch"); 34 } 35 28 36 ?> 29 37 30 38 <div class="container-fluid"> 31 <div class="alert alert-info text-center"32 role="alert"><h3><?php esc_html_e( $title, 'prosolwpclient' ); ?></h3></div>39 <div class="alert alert-info text-center" 40 role="alert"><h3><?php esc_html_e( $title, 'prosolwpclient' ); ?></h3></div> 33 41 34 42 <?php … … 39 47 $opt = get_option('prosolwpclient_frontend'); 40 48 $isrec= $opt['enable_recruitment']; 49 $optjoblist = get_option('prosolwpclient_joblist'); 41 50 //var_dump($job_search_result); 42 51 global $wpdb; 43 52 $table_ps_profession = $wpdb->prefix . 'profession'; 53 $table_ps_professiongr = $wpdb->prefix . 'professiongroup'; 54 $table_ps_worktime = $wpdb->prefix . 'worktime'; 44 55 $jobid_arr = isset( $job_search_result->jobid ) ? $job_search_result->jobid : array(); 45 56 $workingplace_arr = isset( $job_search_result->workingplace ) ? $job_search_result->workingplace : array(); … … 48 59 49 60 $professionid_arr = isset( $job_search_result->professionid ) ? $job_search_result->professionid : array(); 50 61 $worktimeid_arr = isset( $job_search_result->worktimeid ) ? $job_search_result->worktimeid : array(); 62 $publishdate_arr = isset( $job_search_result->publishdate ) ? $job_search_result->publishdate : array(); 63 51 64 ?> 52 65 <div class="table-responsive"> … … 54 67 <thead> 55 68 <tr> 56 <th><?php esc_html_e( 'Job', 'prosolwpclient' ); ?></th> 57 <th><?php esc_html_e( 'Location', 'prosolwpclient' ); ?></th> 58 <th><?php esc_html_e( 'Action', 'prosolwpclient' ); ?></th> 69 <?php if($optjoblist['jobname_act'] == '1'){ ?> <th> <?php esc_html_e( $optjoblist['jobname'], 'prosolwpclient' ); ?></th> <?php } ?> 70 <?php if($optjoblist['location_act'] == '1'){ ?> <th> <?php esc_html_e( $optjoblist['location'], 'prosolwpclient' ); ?></th> <?php } ?> 71 <?php if($optjoblist['job_startdate_act'] == '1'){ ?> <th> <?php esc_html_e( $optjoblist['job_startdate'], 'prosolwpclient' ); ?></th> <?php } ?> 72 <?php if($optjoblist['job_worktime_act'] == '1'){ ?> <th> <?php esc_html_e( $optjoblist['job_worktime'], 'prosolwpclient' ); ?></th> <?php } ?> 73 <?php if($optjoblist['prof_group_act'] == '1' && $isrec == 'on'){ ?> <th> <?php esc_html_e( $optjoblist['prof_group'], 'prosolwpclient' ); ?></th> <?php } ?> 74 <th><?php esc_html_e( 'Action', 'prosolwpclient' ); ?> </th> 59 75 </tr> 60 76 </thead> … … 62 78 <?php 63 79 foreach ( $jobid_arr as $index => $jobid ) { 80 $where_sql = ''; 81 64 82 if($isrec == 'on'){ 65 83 //47690~0176944 point 1, use jobname 66 84 $jobname = $jobname_arr[ $index ]; 67 85 68 global $wpdb; 69 $table_ps_profession = $wpdb->prefix . 'profession'; 70 $where_sql = ''; 71 if(is_array( $group_checked )){ 72 foreach($group_checked as $index => $profgroup){ 73 if($index==0 && (count($group_checked) > 1) ){ 74 $where_sql = $wpdb->prepare( " WHERE professiongroupId IN (%d", $profgroup ); 75 } elseif ($index==0 && (count($group_checked) == 1) ){ 76 $where_sql = $wpdb->prepare( " WHERE professiongroupId = %d", $profgroup ); 77 } elseif ($index== (count($group_checked) - 1) ){ 78 $where_sql .= $wpdb->prepare( ",%d)", $profgroup ); 79 } else { 80 $where_sql .= $wpdb->prepare( ",%d", $profgroup ); 81 } 82 } 86 $profid_list = $professionid_arr[ $index ]; 87 $profid_arr = explode(',',$profid_list); 88 foreach($profid_arr as $idx => $profid){ 89 if($idx==0 && (count($profid_arr) > 1) ){ 90 $where_sql = $wpdb->prepare( " WHERE prof.professionId IN (%d", $profid ); 91 } elseif ($idx==0 && (count($profid_arr) == 1) ){ 92 $where_sql = $wpdb->prepare( " WHERE prof.professionId = %d", $profid ); 93 } elseif ($idx== (count($profid_arr) - 1) ){ 94 $where_sql .= $wpdb->prepare( ",%d)", $profid ); 95 } else { 96 $where_sql .= $wpdb->prepare( ",%d", $profid ); 97 } 83 98 } 84 $profid_query = $wpdb->get_results( "SELECT DISTINCT professionId FROM $table_ps_profession $where_sql", ARRAY_A ); 85 99 100 $profgroupid_query = $wpdb->get_results( "SELECT profgroup.name, profgroup.professiongroupid FROM $table_ps_profession prof 101 INNER JOIN $table_ps_professiongr profgroup ON profgroup.professiongroupid = prof.professiongroupid 102 $where_sql", ARRAY_A ); 86 103 }else{ 87 104 $profcustomname = $profcustomname_arr[ $index ]; … … 120 137 $jobname = $profcustomname; 121 138 } 122 139 $where_sql= $wpdb->prepare( " WHERE worktimeid = %d", $worktimeid_arr[ $index ] ); 140 $worktime_query = $wpdb->get_results( "SELECT name FROM $table_ps_worktime $where_sql", ARRAY_A ); 141 $worktimename = $worktime_query[0]['name']; 123 142 ?> 124 143 <tr> 125 <td><a href="<?php echo add_query_arg( array( 126 'type' => 'details', 127 'jobid' => $jobid 128 ), esc_url( get_permalink() ) )?>" title="<?php esc_html_e( 'View Job Details', 'prosolwpclient' ) ?>"><?php echo $jobname; ?></a></td> 129 <td><?php echo $workingplace_arr[ $index ]; ?> </td> 144 <?php if($optjoblist['jobname_act'] == '1'){ ?> 145 <td><a href="<?php echo add_query_arg( array( 146 'type' => 'details', 147 'jobid' => $jobid 148 ), esc_url( get_permalink() ) )?>" title="<?php esc_html_e( 'View Job Details', 'prosolwpclient' ) ?>"><?php echo $jobname; ?></a></td> 149 <?php } ?> 150 <?php if($optjoblist['location_act'] == '1'){ ?> 151 <td><?php echo $workingplace_arr[ $index ]; ?> </td> 152 <?php } ?> 153 <?php if($optjoblist['job_startdate_act'] == '1'){ ?> 154 <td> <?php echo $publishdate_arr[ $index ]; ?> </td> 155 <?php } ?> 156 <?php if($optjoblist['job_worktime_act'] == '1'){ ?> 157 <td> <?php echo $worktimename ?> </td> 158 <?php } ?> 159 160 <?php 161 if($optjoblist['prof_group_act'] == '1' && $isrec == 'on'){ ?> 162 <td> 163 <?php if(count($profgroupid_query) > 1){ 164 for($i=0; $i < count($profgroupid_query); $i++){ 165 if($i == 0) { 166 echo $profgroupid_query[$i]['name']; 167 } else { 168 ?> <br> <?php 169 echo $profgroupid_query[$i]['name']; 170 } 171 } 172 } else { 173 echo $profgroupid_query['name']; 174 } ?> 175 </td> 176 <?php } ?> 130 177 <td><a href="<?php echo add_query_arg( array( 131 178 'type' => 'apply', 132 179 'jobid' => $jobid 133 180 ), esc_url( get_permalink() ) )?>" class="btn btn-success" title="<?php esc_html_e( 'Apply', 'prosolwpclient' );?>"><?php esc_html_e( 'Apply', 'prosolwpclient' ); ?></a></td> 181 134 182 </tr> 135 183 <?php … … 145 193 <a class="btn btn-primary" 146 194 href="<?php echo add_query_arg( array( 'type' => 'search' ), esc_url( get_permalink() ) ) ?>" 147 role="button"><?php esc_html_e( $btn_text_JobSearch, 'prosolwpclient' ); ?></a> 195 role="button"><?php esc_html_e( $btn_text_JobSearch, 'prosolwpclient' ); ?></a> 148 196 </div> -
prosolution-wp-client/trunk/public/templates/singlefieldset/modals/prosolwpclientjobapplicationactivitymodal.php
r2188438 r2426214 47 47 foreach ( $all_operationarea as $index => $area_info ) { 48 48 echo '<li> 49 <label class="checkbox-inline"> 50 <input type="checkbox" name="operationareacheckbox" value="' . $area_info['operationareaId'] . '">' . $area_info['name'] . '</label> 49 <label class="checkbox-inline"><span style="margin-left:0.2em">'. $area_info["name"] . '</span> 50 <input type="checkbox" name="operationareacheckbox" value="' . $area_info["operationareaId"] . '"> 51 <span class="checkmark-layer"></span> 52 </label> 51 53 </li>'; 52 54 } 53 55 ?> 54 55 56 56 </script> -
prosolution-wp-client/trunk/public/templates/singlefieldset/modals/prosolwpclientjobapplicationattachmentmodal.php
r1950679 r2426214 28 28 29 29 <div class="col-lg-10 error-msg-show"> 30 <label class="radio-inline pswp-attach-radio-docu"> 30 <label class="radio-inline pswp-attach-radio-docu"><span><?php esc_html_e( 'This is an application document', 'prosolwpclient' ) ?></span> 31 31 <input name="attachtype" type="radio" value="docu" class="pswp-attach-type" 32 32 id="attachtype" required checked 33 > <?php esc_html_e( 'This is an application document', 'prosolwpclient' ) ?>33 ><span class="radiomark" ></span> 34 34 </label> 35 <label class="radio-inline pswp-attach-radio-photo"> 35 <label class="radio-inline pswp-attach-radio-photo"><span><?php esc_html_e( 'This is my photo', 'prosolwpclient' ) ?></span> 36 36 <input name="attachtype" type="radio" value="photo" class="pswp-attach-type" 37 37 id="attachtype" 38 required> < ?php esc_html_e( 'This is my photo', 'prosolwpclient' ) ?>38 required> <span class="radiomark" ></span> 39 39 </label> 40 40 </div> -
prosolution-wp-client/trunk/public/templates/singlefieldset/modals/prosolwpclientjobapplicationbusinessmodal.php
r1950679 r2426214 47 47 foreach ( $all_nace as $index => $nace_info ) { 48 48 echo '<li> 49 <label class="checkbox-inline"> 50 <input type="checkbox" name="nacecheckbox" value="' . $nace_info['naceId'] . '">' . $nace_info['name'] . '</label> 49 <label class="checkbox-inline"><span style="margin-left:0.2em">' . $nace_info['name'] . '</span> 50 <input type="checkbox" name="nacecheckbox" value="' . $nace_info['naceId'] . '"> 51 <span class="checkmark"></span> 52 </label> 53 51 54 </li>'; 52 55 } -
prosolution-wp-client/trunk/public/templates/singlefieldset/modals/prosolwpclientjobapplicationjobmodal.php
r1950679 r2426214 33 33 foreach ( $all_profession as $index => $profession_info ) { 34 34 echo '<li> 35 <label class="checkbox-inline"> 36 <input type="checkbox" name="professioncheckbox" value="' . $profession_info['professionId'] . '">' . $profession_info['name'] . '</label> 35 <label class="checkbox-inline"><span style="margin-left:0.2em">' . $profession_info['name'] . '</span> 36 <input type="checkbox" name="professioncheckbox" value="' . $profession_info['professionId'] . '"> 37 <span class="checkmark-layer"></span> 38 </label> 37 39 </li>'; 38 40 } -
prosolution-wp-client/trunk/public/templates/singlefieldset/prosolwpclientjobapplicationeducationinfo.php
r2188438 r2426214 48 48 <div class="col-sm-9 error-msg-show"> 49 49 <select autocomplete="off" class="form-control group-selection prosolwpclient-chosen-select edu-0 education-0-typeID" name="education[0][typeID]" id="pswp-group-0" onchange="getvalue(this.value)" data-track="0" 50 data-required="required">50 data-rule-required="required"> 51 51 <option value=""><?php esc_html_e( 'Please Select Group', 'prosolwpclient' ) ?></option> 52 52 <?php -
prosolution-wp-client/trunk/public/templates/singlefieldset/prosolwpclientjobapplicationexpertiseinfo.php
r2364772 r2426214 9 9 <?php 10 10 $step_label = get_option('prosolwpclient_applicationform'); 11 $prosoldes = get_option('prosolwpclient_designtemplate'); 12 $pstemplate = $prosoldes['destemplate']; 11 13 12 14 ?> … … 35 37 <legend><?php esc_html_e( $step_label['expertise']) ?></legend> 36 38 37 <?php if($skill_id_mustache != '' ){ ?>39 <?php if($skill_id_mustache != '' && !is_null($pres_rate_arr)){ ?> 38 40 <div class="preskill"> 39 41 <table class="table table-striped table-hover"> … … 47 49 <td ><?php echo $skillgroup_name_arr[$i]; ?></td> 48 50 <td ><?php echo $skill_name_arr[$i]; ?></td> 49 <td ><?php 51 <td ><?php 50 52 $html = sprintf('<select name="vskill%2$s" id="vskill%2$s" class="form-control vskill prosolwpclient-chosen-select" data-sgrid="%1$s" data-sid="%2$s" 51 53 data-sgrname="%3$s" data-sname="%4$s"><option value="x">'.esc_html__('No Value', 'prosolwpclient').'</option> … … 65 67 <?php } ?> 66 68 67 <div class="alert alert-info" role="alert">69 <div role="alert" style="margin-bottom:1rem"> 68 70 69 71 <select autocomplete="off" name="knowledge_data" id="knowledge_data" class="form-control knowledge_data prosolwpclient-chosen-select " onchange="getSelectedValue()"> … … 91 93 </div> 92 94 <!-- <p> <?php //esc_html_e( 'Knowledge', 'prosolwpclient' ) ?> --> 95 <?php if($pstemplate!=1){ ?> 96 <button type="button" class="btn btn-primary btnprosoldes-step btn-md pull-right expertise-btn-modal" data-toggle="modal" 97 title="<?php esc_html_e( 'Add new Expertise', 'prosolwpclient' ) ?>" 98 data-target="#expertiseModal" style="margin-top:5px"> 99 <?php esc_html_e( 'Add', 'prosolwpclient' ) ?> 100 </button> 101 <?php } else{ ?> 93 102 <button type="button" class="btn btn-primary btn-md pull-right expertise-btn-modal" data-toggle="modal" 94 103 title="<?php esc_html_e( 'Add new Expertise', 'prosolwpclient' ) ?>" 95 104 data-target="#expertiseModal"> 96 105 <?php esc_html_e( 'Add', 'prosolwpclient' ) ?> 97 </button> 106 </button> 107 <?php } ?> 98 108 <span class="clearfix"></span> 99 109 </p> -
prosolution-wp-client/trunk/public/templates/singlefieldset/prosolwpclientjobapplicationpersonalinfo.php
r2380709 r2426214 250 250 </label> 251 251 <div class="col-lg-9 error-msg-show"> 252 <label class="radio-inline"> 252 <label class="radio-inline"><span style="margin-left:0.2em"> <?php esc_html_e( 'Female', 'prosolwpclient' ) ?></span> 253 253 <input name="gender" type="radio" value="0" <?php echo $field_opt['gender'][3] ?> 254 data-rule-required="true" id="gender"> <?php esc_html_e( 'Female', 'prosolwpclient' ) ?>254 data-rule-required="true" id="gender"><span class="radiomark"></span> 255 255 </label> 256 <label class="radio-inline"> 256 <label class="radio-inline"><span style="margin-left:0.2em"> <?php esc_html_e( 'Male', 'prosolwpclient' ) ?></span> 257 257 <input name="gender" type="radio" value="1" <?php echo $field_opt['gender'][3] ?> 258 data-rule-required="true" id="gender"> < ?php esc_html_e( 'Male', 'prosolwpclient' ) ?>258 data-rule-required="true" id="gender"> <span class="radiomark"></span> 259 259 </label> 260 <label class="radio-inline <?php echo $field_opt['diverse'][1] ?>" > 260 <label class="radio-inline <?php echo $field_opt['diverse'][1] ?>" ><span style="margin-left:0.2em"> <?php esc_html_e( 'Diverse', 'prosolwpclient' ) ?></span> 261 261 <input name="gender" type="radio" value="2" <?php echo $field_opt['gender'][3] ?> 262 data-rule-required="true" id="gender"> < ?php esc_html_e( 'Diverse', 'prosolwpclient' ) ?>262 data-rule-required="true" id="gender"> <span class="radiomark"></span> 263 263 </label> 264 264 </div> … … 384 384 <div class="form-group"> 385 385 <div class="col-lg-offset-3 col-lg-9"> 386 <label class="checkbox-inline"> 387 <input name="%1$s" type="checkbox" value="0" 388 id="%1$s">%2$s 389 %3$s 386 <label class="checkbox-inline"><span style="margin-left:0.2em">%2$s %3$s</span> 387 <input name="%1$s" type="checkbox" value="0" id="%1$s"> 388 <span class="checkmark"></span> 390 389 </label> 391 390 </div>
Note: See TracChangeset
for help on using the changeset viewer.