cvbuilderValue(String arg1,$arg2) and builderEmpty(String arg1,$arg2) They carry two arguments each.builderEmpty() is boolean used when nothing is returned from DB then enter user defined valuescvbuilderValue() returns user data value from DB to displayn its ranges from 1 - 5, for example institution_infon can be institution_info1, institution_info2, institution_info3, ... till n = 5. Similarly, designation1, designation2, designation3, ... etc till n = 5. The platform only allow for Five (5) institutions and Five (5) working experiences.
arg1 = "address" string data with corresponding address value returned from Database as $result ($arg2). similarly with the rest. You want to get "phone" data (arg1) number from Database returned as $result ($arg2). Use double quotes for the string on this platform"phone","address","email" all are returned with the second $arg2 $result
<p><?php if (builderEmpty("address",$result)){ ?> No. 0 my street, Nigeria <?php }else{ cvbuilderValue("address",$result); } ?></p>
<p><?php if (builderEmpty("phone",$result)){ ?> 0800000000 <?php } else { cvbuilderValue("phone",$result); } ?>, <?php if(builderEmpty("email",$result)){ ?> email@email.com <?php }else{ cvbuilderValue("email",$result); } ?></p>
"names" "dob","language" "state" "nation" "obj" "profile" all are returned with the second $arg2 $result
/* ======= for name ======= */
<p><?php if(builderEmpty("names",$result)){ ?> Uche, Umar Kayode <?php }else{ ?><?php cvbuilderValue("names",$result); } ?></p>
/* ======= for dob,state,language,nation ======= */
<p><b>DATE OF BIRTH:</b><?php if (builderEmpty("dob",$result)){ ?> 00/00/0000 <?php }else{ cvbuilderValue("dob",$result); } ?></p>
<p><b>STATE:</b> <?php if (builderEmpty("state",$result)){ ?> Atlanta <?php }else{ cvbuilderValue("state",$result); } ?></p>
<p><b>NATIONALITY:</b><?php if (builderEmpty("country",$result)){ ?> Nigerian <?php }else{ cvbuilderValue("nation",$result); } ?></p>
<p><b>LANGUAGE(S):</b> <?php if(builderEmpty("language",$result)){ ?> Swahili <?php }else{ cvbuilderValue("language",$result); } ?></p>
/* ======= for profile section ======= */
<?php
if(builderEmpty("profile",$result)){ ?> Brief summary about yourself in terms of capacity, contributions, creativity and skills <?php }else{ cvbuilderValue("profile",$result); }
?>
"work_start_&_end_date1" = (contains the start-date and end-date) "company1""coy_start1" "coy_end1" "role1": there are up to 5 spaces for companies. Meaning you can have space for "company2","coy_start2" "coy_end2" "role2" and "companyn" "coy_startn" "coy_endn" "rolen" n <= 5 . All to be returned with second argument $arg2 $result
<?php
/* ======= Option 1 ======= */
/* ======= for company experience 1 ======= */
if(builderEmpty("designation1",$result)){ ?> DESIGNATION <?php }else{cvbuilderValue("designation1",$result); } ?> <?php if(builderEmpty("company1",$result)){ ?> COMPANY, ADDRESS <?php }else{ cvbuilderValue("company1",$result); } ?><?php if(builderEmpty("coy_date1",$result)){ ?> Start Date - End Date <?php }else{ cvbuilderValue("work_start_&_end_date1",$result); } ?>
<?php if(builderEmpty("role1",$result)){ ?>
<ul>
<li>Python Expert</li>
<li>Java</li>
<li>PHP</li>
<li>HTML5</li>
</ul>
<?php }else{ cvbuilderValue("role1",$result); } ?>
/* ======= for company experience 2 ======= */
<?php cvbuilderValue("designation2",$result); ?> <?php cvbuilderValue("company2",$result); ?>
<?php cvbuilderValue("work_start_&_end_date2",$result); ?>
<?php cvbuilderValue("role2",$result); ?>
/* ======= you can go on and on until company experience 5 ======= */
<?php /* ======= Option 2 ======= */
/* ======= You can decide to use the date individually rather than marged as above, as usual n = 1 to 5 ======= */
cvbuilderValue("coy_start1",$result); cvbuilderValue("coy_end1",$result); ?>
n <= 5. The string arguments here are "institution_infon" = (returns info about the institution:- name, start-date and end-date), "institutionn" "startn" "endn" and n <= 5. Also the args for Primary and Secondary are "sec_sch_info":="returns school name, start and end date" sec_sch"sec_start" "sec_end, pry_sch_info:="returns school name, start and end date" pry_sch"pry_start" "pry_end"
<?php
/* ======= Option 1 ======= */
/* ======= using builderEmpty() to display default value if no message from DB ======= */
if(builderEmpty("higher_inst",$result)){ ?>
<ul>
<li>Award date - Degree awarded, Faculty, university name, State Location</li>
<li>Award date - Degree awarded, Faculty, institution name, State Location</li>
<li>Award date - Degree awarded, Faculty, institution name, State Location</li>
<li>Award date - Degree awarded, Faculty, institution name, State Location</li>
</ul>
<?php }else{ /* ======= else once a message from DB displays the details ======= */
cvbuilderValue("start1",$result); cvbuilderValue("end1",$result); cvbuilderValue("institution1",$result);
} ?>
<?php
/* ======= to display the remaining info on institution incase user has more than one institution attended. However, if only the functions returns nothings ======= */
cvbuilderValue("start2",$result); cvbuilderValue("end2",$result); cvbuilderValue("institution2",$result);
cvbuilderValue("start3",$result); cvbuilderValue("end3",$result); cvbuilderValue("institution3",$result);
cvbuilderValue("start4",$result); cvbuilderValue("end4",$result); cvbuilderValue("institution4",$result);
cvbuilderValue("start5",$result); cvbuilderValue("end5",$result); cvbuilderValue("institution5",$result);
cvbuilderValue("sec_start",$result); cvbuilderValue("sec_end",$result); cvbuilderValue("sec_sch_info",$result);
cvbuilderValue("pry_start",$result); cvbuilderValue("pry_end",$result); cvbuilderValue("pry_sch_info",$result);
?>
<?php
/* ======= Option 2 (simplified-recommended)======= */
if(builderEmpty("higher_inst",$result)){ ?>
<ul>
<li>Award date - Degree awarded, Faculty, university name, State Location</li>
<li>Award date - Degree awarded, Faculty, institution name, State Location</li>
<li>Award date - Degree awarded, Faculty, institution name, State Location</li>
<li>Award date - Degree awarded, Faculty, institution name, State Location</li>
</ul>
<?php }else{ /* ======= else once a message from DB display the details ======= */
cvbuilderValue("institution_info1",$result);
} ?>
<?php
/* ======= to display the remaining info on institution incase user has more than one institution attended. However, if only the functions returns nothings ======= */
cvbuilderValue("institution_info2",$result);
cvbuilderValue("institution_info3",$result);
cvbuilderValue("institution_info4",$result);
cvbuilderValue("institution_info5",$result);
cvbuilderValue("sec_sch_info",$result);
cvbuilderValue("pry_sch_info",$result);
?>
"certification". The field input is textarea and return all values in list (newline) format automatically.
<?php if(builderEmpty("certification",$result)){ ?>
<ul>
<li>Python Expert</li>
<li>Java</li>
<li>PHP</li>
<li>HTML5</li>
</ul>
<?php }else{ cvbuilderValue("certification",$result); } ?>
"skills". The field input is textarea and return all values in list (newline) format automatically.
<?php if(builderEmpty("skills",$result)){ ?>
<ul>
<li>Google Developer</li>
<li>Python Expert</li>
<li>Java</li>
<li>PHP</li>
<li>HTML5</li>
</ul>
<?php }else{ cvbuilderValue("skills",$result); } ?>
<?php if(builderEmpty("hobbies",$result)){ ?>
<ul>
<li>Reading</li>
<li>Playing football games</li>
<li>Travelling</li>
<li>Researching</li>
</ul>
<?php }else{ cvbuilderValue("hobbies",$result); } ?>
"research". The field input is textarea and return all values in list (newline) format automatically.
<?php if(builderEmpty("research",$result)){ ?>
<ul>
<li>Research date - Research topic</li>
<li>Research date - Research topic</li>
<li>Research date - Research topic</li>
<li>Research date - Research topic</li>
</ul>
<?php }else{ cvbuilderValue("research",$result); } ?>
referee1,referee2,referee3
<?php if(builderEmpty("referee",$result)){ /**default value if empty**/ ?>
<ul>
<li style='list-style-type:none'>To be provided on request</li>
</ul>
<?php }else{ cvbuilderValue("referee1",$result); } /**Referee1**/ ?>
<?php if(builderEmpty("referee",$result)){ ?>
<?php }else{ cvbuilderValue("referee2",$result); } /**Referee2**/ ?>
<?php if(builderEmpty("referee",$result)){ ?>
<?php }else{ cvbuilderValue("referee3",$result); } /**Referee3**/ ?>
<style>
#addressBar{
font-size:14px;
line-height:1;
height:40px;
color:black;
}
#addressBar p{
color:black;
}
#nameBar {
font-weight:bold;
}
#nameBar p{
color:#fff;
font-size: 20px;
padding-top:10px;
padding-left:10px;
}
#biodataBar{
}
#biodataBar p{
color:#000;
font-size: 14px;
}
#obj{
color:#000;
font-size: 14px;
}
#profile{
color:#000;
font-size: 14px;
}
#obj_p{
color:#000;
}
li{
list-style-type: square;
width: auto;
}
.removeBullets li{
list-style-type: none;
}
td {
vertical-align:top;
}
.show-border td {
border-top: 2px solid skyblue;
padding: 10px;
}
.removeEmptyDiv:empty {
display: none;
vertical-align: top;
}
</style>
<table>
<tbody>
<!--Header-->
<tr>
<td></td>
<td></td>
<td colspan="2">
<div id ="addressBar">
<p><?php if(builderEmpty("address",$result)){ ?> No. 0 my street, Nigeria <?php } else { cvbuilderValue("address",$result); } ?></p>
<p><?php if(builderEmpty("phone",$result)){ ?> 0800000000 <?php } else { cvbuilderValue("phone",$result); } ?>, <?php if(builderEmpty("email",$result)){ ?> email@email.com <?php }else { cvbuilderValue("email",$result); } ?></p>
</div>
</td>
</tr>
<!--name header-->
<tr>
<td colspan="4" style="background-color: skyblue;">
<div id="nameBar">
<p>
<?php if(builderEmpty("names",$result)){ ?> Uche, Umar Kayode <?php }else{ cvbuilderValue("names",$result); } ?>
</p>
</div>
</td>
</tr>
<!--BioData-->
<tr>
<td></td>
<td colspan="3"><div id="biodataBar">
<p><b>DATE OF BIRTH:</b> <?php if(builderEmpty("dob",$result)){ ?> 00/00/0000 <?php }else{ cvbuilderValue("dob",$result); }?></p>
<p><b>STATE:</b> <?php if(builderEmpty("state",$result)){ ?> Atlanta <?php }else{ cvbuilderValue("state",$result); } ?></p>
<p><b>NATIONALITY:</b><?php if(builderEmpty("country",$result)){ ?> Nigerian <?php }else{ cvbuilderValue("nation",$result); } ?></p>
<p><b>LANGUAGE(S):</b> <?php if(builderEmpty("language",$result)){ ?> Swahili <?php }else{ cvbuilderValue("language",$result); } ?></p>
<p id="obj"><b>OBJECTIVE:</b> <?php if(builderEmpty("obj",$result)){ ?> Result oriented <?php }else{ cvbuilderValue("obj",$result); } ?></p>
</div></td>
</tr>
<!--Personal Summary-->
<tr class="show-border" >
<td><b>PERSONAL<br> SUMMARY</b></td>
<td colspan="3"><p id ="profile"><?php if(builderEmpty("profile",$result)){ ?> Brief summary about yourself in terms of capacity, contributions, creativity and skills <?php }else{ cvbuilderValue("profile",$result); } ?></p></td>
</tr>
<!--Skills-->
<tr class="show-border">
<td><b>SKILLS &<br> ABILITIES</b></td>
<td colspan="3"><?php if(builderEmpty("skills",$result)){ ?>
<ul>
<li>Google Developer</li>
<li>Python Expert</li>
<li>Java</li>
<li>PHP</li>
<li>HTML5</li>
</ul>
<?php }else{ cvbuilderValue("skills",$result); } ?></td>
</tr>
<!--Experience-->
<tr class="show-border">
<td><b>EXPERIENCE</b></td>
<td colspan="3"><div class="removeEmptyDiv"><b><?php if(builderEmpty("designation1",$result)){ ?> DESIGNATION <?php }else{cvbuilderValue("designation1",$result); } ?> <?php if(builderEmpty("company1",$result)){ ?> COMPANY, ADDRESS <?php }else{ cvbuilderValue("company1",$result); } ?></b></div><div><small><?php if(builderEmpty("coy_date1",$result)){ ?> Start Date - End Date <?php }else{ cvbuilderValue("work_start_&_end_date1",$result); } ?></small></div><!--<small><b>Job Roles:</b></small>-->
<?php if(builderEmpty("role1",$result)){ ?>
<ul>
<li>Python Expert</li>
<li>Java</li>
<li>PHP</li>
<li>HTML5</li>
</ul>
<?php }else{ cvbuilderValue("role1",$result); } ?>
</td>
</tr>
<tr>
<td></td>
<td colspan="3"> <div class="removeEmptyDiv"><b><?php cvbuilderValue("designation2",$result); ?> <?php cvbuilderValue("company2",$result); ?></b><br>
<small><?php cvbuilderValue("work_start_&_end_date2",$result); ?></small></div>
<?php cvbuilderValue("role2",$result); ?> </td>
</tr>
<tr>
<td></td>
<td colspan="3"> <div class="removeEmptyDiv"><b><?php cvbuilderValue("designation3",$result); ?> <?php cvbuilderValue("company3",$result); ?></b><br>
<small><?php cvbuilderValue("work_start_&_end_date3",$result); ?></small></div>
<?php cvbuilderValue("role3",$result); ?> </td>
</tr>
<tr>
<td></td>
<td colspan="3"> <div class="removeEmptyDiv"><b><?php cvbuilderValue("designation4",$result); ?> <?php cvbuilderValue("company4",$result); ?></b><br>
<small><?php cvbuilderValue("work_start_&_end_date4",$result); ?></small></div>
<?php cvbuilderValue("role4",$result); ?> </td>
</tr>
<tr>
<td></td>
<td colspan="3"> <div class="removeEmptyDiv"><b><?php cvbuilderValue("designation5",$result); ?> <?php cvbuilderValue("company5",$result); ?></b><br>
<small><?php cvbuilderValue("work_start_&_end_date5",$result); ?></small></div>
<?php cvbuilderValue("role5",$result); ?> </td>
</tr>
<!--Education-->
<tr class="show-border">
<td><b>EDUCATION</b></td>
<td colspan="3"><div>
<?php if(builderEmpty("higher_inst",$result)){ ?>
<ul>
<li>Award date - Degree awarded, Faculty, university name, State Location</li>
<li>Award date - Degree awarded, Faculty, institution name, State Location</li>
<li>Award date - Degree awarded, Faculty, institution name, State Location</li>
<li>Award date - Degree awarded, Faculty, institution name, State Location</li>
</ul>
<?php }else{
cvbuilderValue("institution_info1",$result);
} ?>
<?php cvbuilderValue("institution_info2",$result);
cvbuilderValue("institution_info3",$result);
cvbuilderValue("institution_info4",$result);
cvbuilderValue("institution_info5",$result);
cvbuilderValue("sec_sch_info",$result);
cvbuilderValue("pry_sch_info",$result);
?>
</div></td>
</tr>
<tr>
<td></td>
<td colspan="3">
<b>CERTIFICATIONS/TRAININGS:</b>
<?php if(builderEmpty("certification",$result)){ ?>
<ul>
<li>Python Expert</li>
<li>Java</li>
<li>PHP</li>
<li>HTML5</li>
</ul>
<?php }else{ cvbuilderValue("certification",$result); } ?></td>
</tr>
<!--Research-->
<tr class="show-border">
<td><b>RESEARCH<br> WORKS</b></td>
<td colspan="3"> <div>
<?php if(builderEmpty("research",$result)){ ?>
<ul>
<li>Research date - Research topic</li>
<li>Research date - Research topic</li>
<li>Research date - Research topic</li>
<li>Research date - Research topic</li>
</ul>
<?php }else{ cvbuilderValue("research",$result); } ?>
</div></td>
</tr>
<!--Hobbies-->
<tr class="show-border">
<td><b>HOBBIES</b></td>
<td colspan="3"> <div>
<?php if(builderEmpty("hobbies",$result)){ ?>
<ul>
<li>Reading</li>
<li>Playing football games</li>
<li>Travelling</li>
<li>Researching</li>
</ul>
<?php }else{ cvbuilderValue("hobbies",$result); } ?>
</div></td>
</tr>
<!--References-->
<tr class="show-border">
<td><b>REFERENCES</b></td>
<td><div>
<?php if(builderEmpty("referee",$result)){ ?>
<ul>
<li style='list-style-type:none'>To be provided on request</li>
</ul>
<?php }else{ cvbuilderValue("referee1",$result); } ?>
</div>
</td>
<td><div>
<?php if(builderEmpty("referee",$result)){ ?>
<?php }else{ cvbuilderValue("referee2",$result); } ?>
</div></td>
<td><div>
<?php if(builderEmpty("referee",$result)){ ?>
<?php }else{ cvbuilderValue("referee3",$result); } ?>
</div></td>
</tr>
</tbody>
</table>