Skills Assessment
[insert_php]
//print it
//end print instructions
//print it
$relevant=$_GET[’emailid’];
echo “
for $relevant
“;
[/insert_php]
Version 1.0
[insert_php]date_default_timezone_set(‘UK/London’);$date = date(‘m/d/Y h:i:s a’, time());echo $date;[/insert_php]
1.0 Audit configuration
1.1 Participants
[insert_php]
global $wpdb;
$relevant=$_GET[’emailid’];
$fid=$_GET[‘fid’];
echo “This report is for :”.$relevant.PHP_EOL.PHP_EOL;
$current_user = wp_get_current_user();
$fordb=$current_user->user_login;
$uem=$current_user->user_email;
//echo $uem.PHP_EOL;
$experiflaps= $_GET[‘title’];
if (empty($experiflaps)) {
$formid=$current_user->description;}
if (!empty($experiflaps)) {
echo $experiflaps;
$formid= $_GET[‘title’];}
$get_admins = array(
‘role’ => ‘subscriber’,
);
$filterz=’http://’.$fordb;
///experiment begins here
$args = array(
‘search’ => $filterz,
‘search_columns’ => array( ‘user_url’ )
);
$user_query = new WP_User_Query($args);
$users = (array) $user_query->results;
usort( $users, function( $a, $b ) use( $uids ) {
return array_search( $a->ID, $uids) < array_search( $b->ID, $uids ) ? -1 : 1;
} );
// use as usual
foreach ( $users as $user ) {
// echo ‘
‘ . $user->display_name . ‘
‘;
}
//ends here
//$tryout=get_users();
//print_r($tryout);
$current_user = wp_get_current_user();
$fordb=$current_user->user_login;
//$blogusers = get_users($get_admins);
$blogusers=$users;
//echo “So-far, a total of “.count($blogusers).” participants were sent invites to //complete the audit, across a wide set of disciplines, as per the list below: -“;echo PHP_EOL;echo PHP_EOL;
//foreach ($blogusers as $user) {
//echo $user->user_email;echo PHP_EOL;}
$blogusers=$relevant;
[/insert_php]
1.2 Skills questions
[insert_php]
global $wpdb;
$current_user = wp_get_current_user();
$fordb=$current_user->user_login;
$uem=$current_user->user_email;
//echo $uem.PHP_EOL;
$experiflaps= $_GET[‘title’];
if (empty($experiflaps)) {
$formid=$current_user->description;}
if (!empty($experiflaps)) {
echo $experiflaps;
$formid= $_GET[‘title’];}
//begin
if (!empty($fid)) {
$formid=$fid;}
//
//echo “Form number >”.$formid.PHP_EOL;
$sql=”SELECT layout FROM i5513773_wp1.wp_fsq_form WHERE id=$formid”;
$sqll=”SELECT design FROM i5513773_wp1.wp_fsq_form WHERE id=$formid”;
$fname= $wpdb->get_var($sql);
$testing= $wpdb->get_var($sqll);
$sections=((substr_count($fname, ‘”title”‘))-1);
//echo “Number of sections>”.$sections.PHP_EOL;
$finda='”title”‘;
$findb=”subtitle”;
$headings=array();$totalq=array();
for ($x = 2; $x <= $sections; $x++) {
$sectiona=strposx($fname,"timer",$x);
$sectionb=strposx($fname,"timer",$x+1);
$newsection=substr($fname,$sectiona,($sectionb-$sectiona));
$quests=substr_count($newsection,"container");
//echo "Quests>“.$quests;
$totalq[$x-1]=$quests;
$posa=strposx($fname,$finda,$x+1);
$posb=strposx($fname,$findb,$x+1);
$newstring=substr($fname,$posa+10,(($posb-10)-$posa));
$quotestart=strposx($newstring,'”‘,1);
$quoteend=strposx($newstring,'”‘,2);
$newstring=substr($newstring,$quotestart+1,(($quoteend-$quotestart)-1));
//echo $newstring.PHP_EOL;
$headings[$x-1]=$newstring;
}
//print_r($headings);
//print_r($totalq);
//$sql=”SELECT mcq FROM i5513773_wp1.wp_fsq_form WHERE id=’7′”;
//$fname= $wpdb->get_var($sql);
//echo “Number of questions>”.((substr_count($fname, ‘”slider”‘))/2).PHP_EOL;
//$qtot=((substr_count($fname, ‘”slider”‘))/2);
//echo $fname.PHP_EOL.PHP_EOL;
mysqli_close();
function rev ($string, $char)
{
if (false !== strrpos ($string, $char))
{
return strlen ($string) – strrpos ($string, $char) – 1;
}
}
function strposX($haystack, $needle, $number){
if($number == ‘1’){
return strpos($haystack, $needle);
}elseif($number > ‘1’){
return strpos($haystack, $needle, strposX($haystack, $needle, $number – 1) + strlen($needle));
}else{
return error_log(‘Error: Value for parameter $number is out of range’);
}
}
//extract sub questions
$count=0;$qnumber=0;
$subq=array();
foreach($headings as $key => $value) {
for ($x = 1; $x <= $totalq[$key]; $x++)
{$finder="Question P".($x+$qnumber);
//echo $finder.PHP_EOL;
$whereit=strpos($testing,$finder);
$keepers=substr($testing ,0,$whereit);
$whereit2=rev($keepers,"richtext");
$whereit3=strlen($keepers)-$whereit2;
$lengy=$whereit3-$whereit;
//echo "HERE ".$whereit." IS IS ".$whereit3." LENG>“.$lengy.PHP_EOL;
$mememe=substr($testing,$whereit3,($whereit-$whereit3));
$gobegin=strposx($mememe,”:”,4);
$goend=strposx($mememe,”:”,5);
$tada=substr($mememe,$gobegin+2,($goend-$gobegin)-5);
$count=$count+1;$subq[$count]=$tada;
//echo $tada.PHP_EOL;
}
$qnumber=$qnumber+$totalq[$key];
}
$len = count($subq);
//echo “Lengbth>”.$len;
$nsq = array_slice($subq,0,$len/2);
//print_r($nsq);
$resulttable=”wp_fsqm_direct_”.$formid;
$sqll=”SELECT count(id) FROM $resulttable”;
$resulter= $wpdb->get_var($sqll);
//echo “THIS IS IT>”.$resulter.PHP_EOL;
//echo $sqll.PHP_EOL;
$sqll=”SELECT pinfo0 FROM $resulttable”;
$namelist=$wpdb->get_results($sqll);
//print_r($namelist);
$namelistfull=array();
foreach ($namelist as $key => $value) {
$namelistfull[$key]=$value->pinfo0;
}
//print_r($namelistfull);
for ($x = 1; $x <= $resulter; $x++) {
$offer=$x-1;
//PERSONALISATION
$sql="SELECT * FROM $resulttable WHERE pinfo1='$relevant' ORDER BY id LIMIT 1 OFFSET $offer";
//echo $sql;
$resultz= $wpdb->get_row($sql);
//print_r($resultz);
$userinput=array();$count=0;
foreach ($resultz as $key => $value) {
$subs = substr($key, 0, 3);
if ($subs==”mcq”){$count=$count+1;$userinput[$count]=$value;}
}
//print_r($userinput);
$len = count($userinput);
$r[$x]= array_slice($userinput,0, $len / 2);
$p[$x]=array_slice($userinput, $len / 2);
//print_r($r);
//print_r($p);
}
//print_r($r);//print_r($p);
$len = count($headings);
$newheadings= array_slice($headings,0, $len / 2);
//print_r($newheadings);
$totalqc=count($totalq);
$totalqc=$totalqc-1;
$sublooper = array_slice($totalq, 0, $totalqc / 2);
//echo “Total subqs”.$totalqc.PHP_EOL;
//print_r($sublooper);
$cola=array();$colb=array();$colc=array();$cold=array();$cole=array();
$fruit = array (
“0p0” => array(“0”),
“0p1” => array(“0”),
“0p2” => array(“0”),
“0p3” => array(“0”),
“0p4” => array(“0”),
“0p5” => array(“0”),
“0p6” => array(“0”),
“0p7” => array(“0”),
“0p8” => array(“0”),
“0p9” => array(“0”),
“0p10” => array(“0”),
“1p0” => array(“0”),
“1p1” => array(“0”),
“1p2” => array(“0”),
“1p3” => array(“0”),
“1p4” => array(“0”),
“1p5” => array(“0”),
“1p6” => array(“0”),
“1p7” => array(“0”),
“1p8” => array(“0”),
“1p9” => array(“0”),
“1p10” => array(“0”),
“2p0” => array(“0”),
“2p1” => array(“0”),
“2p2” => array(“0”),
“2p3” => array(“0”),
“2p4” => array(“0”),
“2p5” => array(“0”),
“2p6” => array(“0”),
“2p7” => array(“0”),
“2p8” => array(“0”),
“2p9” => array(“0”),
“2p10” => array(“0”),
“3p0” => array(“0”),
“3p1” => array(“0”),
“3p2” => array(“0”),
“3p3” => array(“0”),
“3p4” => array(“0”),
“3p5” => array(“0”),
“3p6” => array(“0”),
“3p7” => array(“0”),
“3p8” => array(“0”),
“3p9” => array(“0”),
“3p10” => array(“0”),
“4p0” => array(“0”),
“4p1” => array(“0”),
“4p2” => array(“0”),
“4p3” => array(“0”),
“4p4” => array(“0”),
“4p5” => array(“0”),
“4p6” => array(“0”),
“4p7” => array(“0”),
“4p8” => array(“0”),
“4p9” => array(“0”),
“4p10” => array(“0”),
“5p0” => array(“0”),
“5p1” => array(“0”),
“5p2” => array(“0”),
“5p3” => array(“0”),
“5p4” => array(“0”),
“5p5” => array(“0”),
“5p6” => array(“0”),
“5p7” => array(“0”),
“5p8” => array(“0”),
“5p9” => array(“0”),
“5p10” => array(“0”),
“6p0” => array(“0”),
“6p1” => array(“0”),
“6p2” => array(“0”),
“6p3” => array(“0”),
“6p4” => array(“0”),
“6p5” => array(“0”),
“6p6” => array(“0”),
“6p7” => array(“0”),
“6p8” => array(“0”),
“6p9” => array(“0”),
“6p10” => array(“0”),
“7p0” => array(“0”),
“7p1” => array(“0”),
“7p2” => array(“0”),
“7p3” => array(“0”),
“7p4” => array(“0”),
“7p5” => array(“0”),
“7p6” => array(“0”),
“7p7” => array(“0”),
“7p8” => array(“0”),
“7p9” => array(“0”),
“7p10” => array(“0”),
“8p0” => array(“0”),
“8p1” => array(“0”),
“8p2” => array(“0”),
“8p3” => array(“0”),
“8p4” => array(“0”),
“8p5” => array(“0”),
“8p6” => array(“0”),
“8p7” => array(“0”),
“8p8” => array(“0”),
“8p9” => array(“0”),
“8p10” => array(“0”),
“9p0” => array(“0”),
“9p1” => array(“0”),
“9p2” => array(“0”),
“9p3” => array(“0”),
“9p4” => array(“0”),
“9p5” => array(“0”),
“9p6” => array(“0”),
“9p7” => array(“0”),
“9p8” => array(“0”),
“9p9” => array(“0”),
“9p10” => array(“0”),
“10p0” => array(“0”),
“10p1” => array(“0”),
“10p2” => array(“0”),
“10p3” => array(“0”),
“10p4” => array(“0”),
“10p5” => array(“0”),
“10p6” => array(“0”),
“10p7” => array(“0”),
“10p8” => array(“0”),
“10p9” => array(“0”),
“10p10” => array(“0”),);
$allin=array();
for ($x = 1; $x <= $resulter; $x++) {
foreach ($p[$x] as $key => $value) {
//echo $key;
$fruitref=$r[$x][$key].”p”.$p[$x][$key];
//echo $fruitref.PHP_EOL;
$fruitnow=$fruit[$fruitref][$x-1];
$fruitnow=$fruitnow+1;
$fruit[$fruitref][$x-1]=$fruitnow;
$datalog=”Null”;$gapo=999;
//relgoeshere
if ($r[$x][$key]>4){
$rscore=$r[$x][$key];
$pscore=$p[$x][$key];
$gapo=(int)($rscore-$pscore);
//echo $rscore.”>”.$pscore.”>”.$gapo.PHP_EOL;
if ($gapo==0){$cola[$key]=$cola[$key]+1;}
if ($gapo==1){$colb[$key]=$colb[$key]+1;}
if ($gapo==2){$colc[$key]=$colc[$key]+1;}
if ($gapo==3){$cold[$key]=$cold[$key]+1;}
if ($gapo>3){$cole[$key]=$cole[$key]+1;}
if ($r[$x][$key]-$p[$x][$key]>1){$datalog=”Medium”;}
if ($r[$x][$key]-$p[$x][$key]>3){$datalog=”Highly”;}
}
$allin[$x][$key]=$r[$x][$key].”,”.$p[$x][$key].”,'”.$datalog.”GAP>”.$gapo.”,”;
}
//print_r($fruit);
}
//print_r($allin);
$googleit=””;
for ($x = 1; $x <= $resulter; $x++) {
foreach ($p[$x] as $key => $value) {
$fruitref=$r[$x][$key].”p”.$p[$x][$key];
$allin[$x][$key]=$allin[$x][$key].”,”.$fruit[$fruitref][$x-1];
$googleit=$googleit.”[‘X’,”.$allin[$x][$key].”],”.”
“;
}
}
//print_r($allin);
$googleit=substr($googleit, 0, -5);
$googlemore=substr($googlemore, 0, -5);
//echo $googleit;
//echo “ColumnA”.PHP_EOL;
//print_r($cola);
//echo “ColumnB”.PHP_EOL;
//print_r($colb);
//echo “ColumnC”.PHP_EOL;
//print_r($colc);
//echo “ColumnD”.PHP_EOL;
//print_r($cold);
//echo “ColumnE”.PHP_EOL;
//print_r($cole);
//echo “Results.”.$resulter.PHP_EOL;
[/insert_php]
[insert_php]
//print_r($nsq);
$totalqq=$totalqc/2;
echo “The audit consisted of “.array_sum($sublooper).” questions arranged in “.$totalqq.” themes. These were as follows:-“;
echo “
“;
$cntr=0;
for ($x = 0; $x <= $totalqq-1; $x++) {
$themenum=$x+1;
echo "
Theme “.$themenum.”: “.$newheadings[$x].”
“;
for ($y = 0; $y <= $sublooper[$x]-1; $y++) {
echo "
“;
$cntr=$cntr+1;
}echo “
“;}
global $ipt_fsqm_info, $wpdb;
$current_user = wp_get_current_user();
$formid=$current_user->description;
$fordb=$current_user->user_login;
$syntax=’blog_id=1&orderby=nicename&role=subscriber’;
$blogusers = get_users($syntax);
$total=0;
foreach ( $blogusers as $user ) {
$ematch=$user->user_email;
$user = get_user_by( ’email’, $ematch );
$checker=$user->description;
if ($fordb==$checker){
//echo $ematch;
$sql=”SELECT mcq FROM i5513773_wp1.wp_fsq_data WHERE (form_id = $formid AND email=’$ematch’)”;
$myrows = $wpdb->get_var($sql);
if (empty($myrows)){echo ‘>’;$total=$total+1;} else {
$real=$real+1;}
}}
//echo $total.” participants failed to complete the survey in time”.PHP_EOL;
//begin print instructions
//echo “
Submissions in the last year
“;
//$construct=”
No data yet.
“;//echo do_shortcode($construct);
//$construct=”
No data yet
“;[/insert_php]
2.0 Breakdown
This section looks at the individual skills and skill themes to determine the overall training priorities for the individual.
[insert_php]
//begin addup
$googlemore=””;
foreach ($fruit as $key => $value) {
$goer=strpos($key,”p”);
$lefter=substr($key,0,$goer);
$righter=substr($key,$goer+1,strlen($key));
//echo “Left”.$lefter.PHP_EOL;
//echo “Right”.$righter.PHP_EOL;
$fruitcount[$key]=array_sum($fruit[$key]);
if ($fruitcount[$key]>0){
$datax=”Irrelevant”;
if ($lefter>4 && $righter<5){$datax="Problem";}
if ($lefter>4 && $righter>=5){$datax=”Comfort”;}
$googlemore=$googlemore.”[‘”.$fruitcount[$key].”‘,”.$lefter.”,”.$righter.”,’$datax’,”.$fruitcount[$key].”],”.”
“;}
}
//echo “Total plots>”.count($fruitcount).PHP_EOL;
$googleit=””;
for ($x = 1; $x <= $resulter; $x++) {
foreach ($p[$x] as $key => $value) {
$fruitref=$r[$x][$key].”p”.$p[$x][$key];
$allin[$x][$key]=$allin[$x][$key].”,”.$fruit[$fruitref][$x-1];
$legend=$fruit[$fruitref][$x-1];
$googleit=$googleit.”[‘$legend’,”.$allin[$x][$key].”],”.”
“;
}
}
//print_r($allin);
//print_r($fruit);
$googleit=substr($googleit, 0, -5);
$googlemore=substr($googlemore, 0, -5);
$totpeople=count($allin);
$totalqs=count($allin[1]);
$grandtot=$totpeople*$totalqs;
//print_r($fruit);
$peoplefre=0;
for ($x = 5; $x <= 10; $x++) {
for ($y = 5; $y <= 10; $y++) {
$refbot=$x."p".$y;
$peoplefre=$peoplefre+array_sum($fruit[$refbot]);
//echo "
“;
//echo $refbot.PHP_EOL;
//echo array_sum($fruit[$refbot]).PHP_EOL;
}}
//echo $peoplefre;
$complianta=”[‘Comfort’,”.$peoplefre.”]”;
$frazzy=$grandtot-$peoplefre;
//echo “Comfort zone where relevance is 5 and above and Proficiency 5 and above”.PHP_EOL;
$noncomp=”[‘Non-compliant’,”.($frazzy).”],”;
//echo “Total number of questions (participants x questions) :”.($frazzy+$peoplefre).PHP_EOL;
//echo $complianta.PHP_EOL;
//echo $noncomp.PHP_EOL;
//echo “
Ratio is: “.round($peoplefre/$frazzy,2).PHP_EOL.”
“;
$mathy=round($peoplefre/($peoplefre+$frazzy),2);
//$mathy=$mathy*100;
$mathy=$peoplefre;
$comfortmath=$mathy;
//echo “
Comfort: “.$mathy.”%”.PHP_EOL.”
“;
//echo “
Of those plots that are relevant…
“.PHP_EOL;
//echo “Peoplefre>”.$peoplefre.PHP_EOL;
$subsa=$peoplefre;
//SECOND CALCULATION
$totpeople=count($allin);
$totalqs=count($allin[1]);
$grandtot=$totpeople*$totalqs;
$peoplefre=0;
//relevant then proficinecy
for ($x = 5; $x <= 10; $x++) {
for ($y = 0; $y <= 4; $y++) {
$refbot=$x."p".$y;
$peoplefre=$peoplefre+array_sum($fruit[$refbot]);
//echo "
“;
//echo $refbot.PHP_EOL;
//echo array_sum($fruit[$refbot]).PHP_EOL;
}}
//echo $peoplefre;
$compliantb=”[‘Problem’,”.$peoplefre.”],”;
$frazzy=$grandtot-$peoplefre;
//echo “Comfort zone where relevance is 5 and above and Proficiency 5 and above”.PHP_EOL;
$noncomp=”[‘Non-compliant’,”.($frazzy).”],”;
//echo $compliantb.PHP_EOL;
//echo $noncomp.PHP_EOL;
//echo “
Ratio is: “.round($peoplefre/$frazzy,2).PHP_EOL.”
“;
$subsb=$peoplefre;
$totman=($subsa+$subsb);
//$mathy=round($peoplefre/($peoplefre+$frazzy),2);
$mathy=round($peoplefre/($totman),2);
$mathy=$mathy*100;
$poormath=$mathy;
//echo “Total>”.$totman.PHP_EOL;
//echo “
Problem: “.$mathy.”%”.PHP_EOL.”
“;
$comfortmath=round($comfortmath/$totman,2);$comfortmath=$comfortmath*100;
//echo “
Comfort: “.$comfortmath.”%”.PHP_EOL.”
“;
$diffy=$comfortmath-$poormath;
//echo “
Average Difference: “.$diffy.”%”.PHP_EOL.”
“;
//echo “The pie chart below shows the proportion of the entire sample which had issues compared to those which did not (for all skills which were //deemed as being relevant). “;
//$mathy=100-($comfortmath+$poormath);
//echo “
Irrelevants “.$mathy.”%”.PHP_EOL.”
“;
//$numbz=($mathy/100)*($peoplefre+$frazzy);
//echo “COMF”.$comfortmath;
$compliantb=”[‘Problem’,”.$mathy.”],”;
$mathy=$mathy+$comfortmath;
$less=(100-$mathy);
if ($less<0){$less=0;}
$complianta="['Comfort',".$less."]";
//echo $compliantb;echo $irrels;echo $complianta;
//PIE
echo "
| Question | Relevance avg | Proficiency avg | Difference”; echo “ | |||||||||||||||
“.$newheadings[$x].” | ||||||||||||||||||
| “.($keystore+1).”.”.$nsq[$keystore].” | “;
$colbar=”style=’background-color: #5fb341′”; $totur=0;$totup=0; | “;
echo $totroundy; | “;
$priority=round(($pct*$pctt)/100); $colbar=”style=’background-color: #5fb341′”; $loopscore=$loopscore+$priority; | |||||||||||||||
“.$loopscore.” | ||||||||||||||||||
| R-P difference | Skill |
|---|---|
| “;echo $result[$key][1];echo “ | “;echo $result[$key][0];echo “ |
“;
//rminusptable
//sort an array
$learn=0;
foreach ($result as $key => $value){
$labelrp=strval($result[$key][0]);
$labelrp=str_replace(“‘”, “”, $labelrp);
$labzrp=”.$labelrp.”;
//echo $result[$key][1].”
“;
if (($result[$key][1]>=1)){$colkey=”color: orange”;$learnit[$learn]=$labzrp;}
if (($result[$key][1]>=2)){$colkey=”color: red”;$learnit[$learn]=$labzrp;}
if (($result[$key][1]<1)){$colkey="color: green";}
$learn=$learn+1;
$rminusp=$rminusp."['$labzrp',".$result[$key][1].",'$colkey'],";
}
$rminusp=substr($rminusp, 0, -1);
//funtion
function aasort (&$array, $key) {
$sorter=array();
$ret=array();
reset($array);
foreach ($array as $ii => $va) {
$sorter[$ii]=$va[$key];
}
asort($sorter);
foreach ($sorter as $ii => $va) {
$ret[$ii]=$array[$ii];
}
$array=$ret;
}
[/insert_php]
The next graph shows the difference between average relevance and average proficiency. The skills are then arranged in descending order of score. Consequently, those skills which appear near the top of the graph (where relevance is greater than proficiency) are most significant in terms of an overarching training need whereas the skills near the bottom (where proficiency is greater than relevance) are least significant in terms of an overarching training need.
Powered by TSBA.mobi GoogleGraph Wordpress plugin
2.2 Summary table : average score breakdown across entire sample per question
[gap size=”20″]
[insert_php]
//echo “
Low to high avg.difference by skill where r>4 and gap>1
“;
echo “
| Gap | Affected | Skill | Avg rel |
|---|---|---|---|
| “;echo $result[$key][1];echo “ | “;echo $result[$key][3];echo “ | “;echo $result[$key][0];echo “ | “;echo $result[$key][2];echo “ |
“;
//print_r($learnit);
[/insert_php]
2.3 Distribution by skills theme
This section contains a number of bubble graphs which show the frequency and distribution results plotted across all participants (anonymised). These can be used as a visual aid to understand if there are underutilised skills as well as monitor trends over time. The size of each circle on the graph is proportional to the frequency at which the particular relevance and proficiency co-ordinate was given across the participants.
[insert_php]
//could break ghere
$totpeople=count($allin);
$totalqs=count($allin[1]);
$grandtot=$totpeople*$totalqs;
//print_r($fruit);
$peoplefre=0;
for ($x = 5; $x <= 10; $x++) {
for ($y = 5; $y <= 10; $y++) {
$refbot=$x."p".$y;
$peoplefre=$peoplefre+array_sum($fruit[$refbot]);
//echo "
“;
//echo $refbot.PHP_EOL;
//echo array_sum($fruit[$refbot]).PHP_EOL;
}}
//echo $peoplefre;
$complianta=”[‘Comfort’,”.$peoplefre.”]”;
$frazzy=$grandtot-$peoplefre;
echo “Comfort zone where relevance is 5 and above and Proficiency 5 and above”.PHP_EOL;
$noncomp=”[‘Non-compliant’,”.($frazzy).”],”;
echo “Total number of answers analysed (participants x questions) :”.($frazzy+$peoplefre).PHP_EOL;
//echo $complianta.PHP_EOL;
//echo $noncomp.PHP_EOL;
//echo “
Ratio is: “.round($peoplefre/$frazzy,2).PHP_EOL.”
“;
$mathy=round($peoplefre/($peoplefre+$frazzy),2);
//$mathy=$mathy*100;
$mathy=$peoplefre;
$comfortmath=$mathy;
//echo “
Comfort: “.$mathy.”%”.PHP_EOL.”
“;
//echo “
Of those plots that are relevant…
“.PHP_EOL;
//echo “Peoplefre>”.$peoplefre.PHP_EOL;
$subsa=$peoplefre;
//SECOND CALCULATION
$totpeople=count($allin);
$totalqs=count($allin[1]);
$grandtot=$totpeople*$totalqs;
$peoplefre=0;
//relevant then proficinecy
for ($x = 5; $x <= 10; $x++) {
for ($y = 0; $y <= 4; $y++) {
$refbot=$x."p".$y;
$peoplefre=$peoplefre+array_sum($fruit[$refbot]);
}}
$compliantb="['Problem',".$peoplefre."],";
$frazzy=$grandtot-$peoplefre;
//echo "Comfort zone where relevance is 5 and above and Proficiency 5 and above".PHP_EOL;
$noncomp="['Non-compliant',".($frazzy)."],";
$subsb=$peoplefre;
$totman=($subsa+$subsb);
//$mathy=round($peoplefre/($peoplefre+$frazzy),2);
$mathy=round($peoplefre/($totman),2);
$mathy=$mathy*100;
$poormath=$mathy;
echo "
| Scatter | Proportions“; echo “ | ||
| “; echo “
|
|||
| Scatter | Proportions“; //echo “ |
| “; echo “ “;echo $headings[$level+1].PHP_EOL;echo ““; Powered by TSBA.mobi GoogleGraph Wordpress plugin //echo “ |
“; //echo “ Of the plots that are relevant..“.PHP_EOL; Problem: “.$mathy.”%”.PHP_EOL.”“; $problemarray[$level]=$mathy; Comfort: “.$comfortmath.”%”.PHP_EOL.”“; echo “ |
“;
[/insert_php]
2.5 Confidence per theme
The following graph is a summary of the previous information whereby cohort confidence percentages have been plotted against each skill theme (confidence = percent comfort minus percent problem)
[insert_php]
$leveltot=count($newheadings);
for ($level = 1; $level <= $leveltot; $level++) { $diffx=$comfortmarray[$level-1]-$problemarray[$level-1]; $headbit=$newheadings[$level-1]; $colkey="color: green"; if ($diffx<=66){$colkey="color: orange";} if ($diffx<=33){$colkey="color: red";} $confgraph=$confgraph."['$headbit',".$diffx.",'$colkey'],"; } $confgraph=substr($confgraph, 0, -1); //print_r($confgraph); asort($confgraph); [/insert_php] [barChart width="1200px" height="500px" stacked="1" fontSize="10" legend="{ position: 'top', maxLines: 2 }" haxis="{title: 'Skill', titleTextStyle: {color: 'blue'}}" haxis="{title: 'Confidence (%) per skill theme', titleTextStyle: {color: 'blue'}}"] ['Skill', 'Comfort % minus Problem %',{ role: 'style' }], [insert_php] $message=$confgraph; echo "$message"; [/insert_php] [/barChart]
3.0 Recommendations
3.1 Personalised Training Report
[insert_php]
if (count($learnit)==0) {echo “Congratulations, you do not need to embark on any training at this time.”.PHP_EOL;}
foreach($learnit as $key => $value) {
echo ““.$learnit[$key].”“.PHP_EOL;
if ($learnit[$key]==”Developing, appraising and shortlisting options in a systematic way”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Preparing and publishing pre-consultation (issue) papers to elicit stakeholder views prior to options development”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Determining the precise scope for a consultation exercise and drafting a suitable mandate”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Calculating and agreeing a realistic budget for a consultation exercise”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Forming and managing multi-disciplinary teams to undertake a consultation”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Creating a pre-consultation business case or case for change”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Familiarity with the relevant legal concepts around public consultation and knowing when to seek specialist legal advice”) {echo “
“.PHP_EOL;}
//NEXT
if ($learnit[$key]==”Stakeholder relationship management”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Conducting a stakeholder mapping exercise for a specific consultation – using approved techniques (e.g. Interest / influence grid)”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Awareness of equalities duties and accessibility requirements for stakeholders with protected characteristics”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Using digital engagement and digital tools to enhance the consultation outreach”) {echo “
“.PHP_EOL;}
//NEXT
if ($learnit[$key]==”Providing advice on the range of dialogue methods to be used in a specific consultation”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Observing Plain English standards in all consultation communications”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Designing a questionnaire that is straightforward to complete with clear and meaningful questions that are relevant to informing decision making”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Designing and organising Focus Groups or similar discussions”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Ability to facilitate small or large groups to consider issues as part of a consultation”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Designing and organising deliberative events”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Preparing and delivering presentations for engagement or consultation meetings (e.g. Seminars or public meetings)”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Drafting a consultation paper”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Developing and publishing appropriate content in support of a consultation, to enable consultees to give a considered response”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Designing and managing a public meeting or equivalent”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Designing and organising co-production exercises”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Using social media in the support of consultation & engagement activity”) {echo “
“.PHP_EOL;}
//FINALE
if ($learnit[$key]==”Preparing a comprehensive analysis plan (e.g. setting research questions and specifying how feedback should be interpreted)”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Statistical analysis of quantitative data obtained via questionnaire or survey”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Analysis of non-structured (qualitative) data”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Creation of coding structure for capturing data”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”The presentation of data – drawing out the main points from the consultation and using graphs and pictures to present results”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Providing summaries of what the consultation output (the sum of the views given) was to participants and others after a consultation”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Providing summaries of the decisions taken with regard to the consultation, including the process of due consideration and implementation timeline.”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Preparing appropriate responses and messages to individual stakeholders or consultees”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Preparation of Comprehensive Impact Assessment and ongoing consideration of equality issues”) {echo “
“.PHP_EOL;}
//TWO MORE
if ($learnit[$key]==”Preparation of consultation output as a submission to decision makers”) {echo “
“.PHP_EOL;}
if ($learnit[$key]==”Implementing changes (theory of change)”) {echo “
“.PHP_EOL;}
echo “
“;
}
[/insert_php]
