Exemplo n.º 1
0
 public static function format5($id = '', $i = 0, $url = '')
 {
     $widgetsModel = new Default_Model_Widgets();
     $format5 = $widgetsModel->format5($id);
     $size = sizeof($format5);
     if ($id == 140) {
         $config_arr = self::titleArr($id, 'empTabConfigurations');
         $title_arr = self::titleArr($id, 'empTabTitle');
         $title = $title_arr['title'];
         $btnText = $title_arr['btnText'];
         $format5 = array();
         foreach (array_rand($config_arr, 5) as $k) {
             $format5[] = $config_arr[$k];
         }
         $size = sizeof($config_arr);
     } else {
         $title = self::titleArr($id, 'title');
         $btnText = self::titleArr($id, 'btnText');
         $emptyText = self::titleArr($id, 'emptyText');
     }
     $total = 0;
     if (!empty($url)) {
         $url = substr($url, 1);
     }
     $htmlContent = '<div class="dashboard_bottom_box" >';
     if ($id == 21) {
         if (!empty($format5)) {
             $total = (int) $format5['backgroundagency'] + (int) $format5['users'] + (int) $format5['vendors'] + (int) $format5['staffing'];
             $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $total . '</div><div class="dashboard_bottom_div" ><ul>';
             foreach ($format5 as $k => $v) {
                 $shrt_key = strlen($k) > 30 ? substr($k, 0, 30) : $k;
                 $htmlContent .= '<li title="' . $k . '">' . $shrt_key . " " . "(" . $v . ")" . "</li>";
             }
             $htmlContent .= "</ul>";
             if (!empty($url)) {
                 $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
             }
             $htmlContent .= '</div>';
         } else {
             $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">0</div><div class="dashboard_bottom_div" >';
             $htmlContent .= "<span class='no_text no_data'>{$emptyText}</span>";
             if (!empty($url)) {
                 $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
             }
             $htmlContent .= '</div>';
         }
     } else {
         if ($id == 159 || $id == 174) {
             if (!empty($format5)) {
                 $total = (int) $format5['ratings']['pending_employee_ratings'] + (int) $format5['ratings']['completed'] + (int) $format5['ratings']['pending_manager_ratings'];
                 $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $total . '</div><div class="dashboard_bottom_div" >';
                 $htmlContent .= '<span class="businessunit_title" title="BusinessUnit">Business Unit : ' . $format5['businessUnit'] . "</span>";
                 if (isset($format5['department'])) {
                     $htmlContent .= '<span class="department_txt" title="Department">Department : ' . $format5['department'] . "</span>";
                 }
                 $htmlContent .= "<span class='department_txt' title='Appraisal Mode'>" . $format5['appraisal_period'] . " Appraisal (" . $format5['from_year'] . " - " . $format5['to_year'] . ")" . "</span><ul> ";
                 $htmlContent .= '<li title="Pending employee ratings">Pending employee ratings' . " (" . $format5['ratings']['pending_employee_ratings'] . ")" . "</li>";
                 $htmlContent .= '<li title="Pending manager ratings">Pending manager ratings' . " (" . $format5['ratings']['pending_manager_ratings'] . ")" . "</li>";
                 $htmlContent .= '<li title="Completed">Completed' . " (" . $format5['ratings']['completed'] . ")" . "</li></ul>";
                 if (!empty($url)) {
                     $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                 }
                 $htmlContent .= '</div>';
             } else {
                 $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">0</div><div class="dashboard_bottom_div" >';
                 $htmlContent .= "<span class='no_text no_data'>{$emptyText}</span>";
                 if (!empty($url)) {
                     $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                 }
                 $htmlContent .= '</div>';
             }
         } else {
             if ($id == 172) {
                 if (!empty($format5)) {
                     $total = (int) $format5['ratings']['pending_employee_ratings'] + (int) $format5['ratings']['completed'];
                     $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $total . '</div><div class="dashboard_bottom_div" >';
                     $htmlContent .= '<span class="businessunit_title" title="BusinessUnit">Business Unit : ' . $format5['businessUnit'] . "</span>";
                     if (isset($format5['department'])) {
                         $htmlContent .= '<span class="department_txt" title="Department">Department : ' . $format5['department'] . "</span>";
                     }
                     $htmlContent .= "<span  class='department_txt' title='Appraisal Mode'>" . $format5['ff_period'] . " Feedforward (" . $format5['ff_from_year'] . " - " . $format5['ff_to_year'] . ")" . "</span><ul> ";
                     $htmlContent .= '<li title="Pending employee ratings">Pending employee ratings' . " (" . $format5['ratings']['pending_employee_ratings'] . ")" . "</li>";
                     $htmlContent .= '<li title="Completed">Completed' . " (" . $format5['ratings']['completed'] . ")" . "</li></ul>";
                     if (!empty($url)) {
                         $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                     }
                     $htmlContent .= '</div>';
                 } else {
                     $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">0</div><div class="dashboard_bottom_div" >';
                     $htmlContent .= "<span class='no_text no_data'>{$emptyText}</span>";
                     if (!empty($url)) {
                         $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                     }
                     $htmlContent .= '</div>';
                 }
             } else {
                 if ($id == 158) {
                     if (!empty($format5)) {
                         $completedMngrCnt = isset($format5['compltedmgrIdArr']) ? $format5['compltedmgrIdArr'] : 0;
                         $notCompletedMngrCnt = isset($format5['notCompltedmgrIdArr']) ? $format5['notCompltedmgrIdArr'] : 0;
                         $total = (int) $completedMngrCnt + (int) $notCompletedMngrCnt;
                         $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $total . '</div><div class="dashboard_bottom_div" >';
                         $htmlContent .= '<span class="businessunit_title" title="BusinessUnit">Business Unit : ' . $format5['businessUnit'] . "</span>";
                         if (isset($format5['department'])) {
                             $htmlContent .= '<span class="department_txt" title="Department">Department : ' . $format5['department'] . "</span>";
                         }
                         $htmlContent .= "<span  class='department_txt' title='Appraisal Mode'>" . $format5['appraisal_period'] . " Appraisal (" . $format5['from_year'] . " - " . $format5['to_year'] . ")" . "</span><ul>";
                         $htmlContent .= '<li title="Pending manager ratings">Pending manager ratings' . " (" . $notCompletedMngrCnt . ")" . "</li>";
                         $htmlContent .= '<li title="Completed manager ratings">Completed manager ratings' . " (" . $completedMngrCnt . ")" . "</li></ul>";
                         if (!empty($url)) {
                             $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                         }
                         $htmlContent .= '</div>';
                     } else {
                         $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">0</div><div class="dashboard_bottom_div" >';
                         $htmlContent .= "<span class='no_text no_data'>{$emptyText}</span>";
                         if (!empty($url)) {
                             $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                         }
                         $htmlContent .= '</div>';
                     }
                 } else {
                     if ($id == 131) {
                         if (!empty($format5)) {
                             $time_ex = strlen($format5['timezone']) > 27 ? substr($format5['timezone'], 0, 25) . '..' : $format5['timezone'];
                             $currency_ex = strlen($format5['currency']) > 27 ? substr($format5['currency'], 0, 25) . '..' : $format5['currency'];
                             $passwordtype = strlen($format5['passwordtype']) > 27 ? substr($format5['passwordtype'], 0, 25) . '..' : $format5['passwordtype'];
                             $htmlContent = '<div class="dashboard_bottom_box my_details_box" ><h4 >' . $title . '</h4><div class="dashboard_bottom_div" ><ul class="leave_mana">';
                             $htmlContent .= '<li><span>Date</span>:<span class="ul_span_2" title = "' . $format5['date_example'] . '">' . $format5['date_example'] . "</span></li>";
                             $htmlContent .= '<li><span>Time</span>:<span class="ul_span_2" title = "' . $format5['time_example'] . '">' . $format5['time_example'] . "</span></li>";
                             $htmlContent .= '<li><span>Currency</span>:<span  class="ul_span_2" title = "' . $format5['currency'] . '">' . $currency_ex . "</span></li>";
                             $htmlContent .= '<li><span>Timezone</span>:<span class="ul_span_2" title = "' . $format5['timezone'] . '">' . $time_ex . "</span></li>";
                             $htmlContent .= '<li><span>Password</span>:<span class="ul_span_2"  title = "' . $format5['passwordtype'] . '">' . $passwordtype . "</span></li></ul>";
                             if (!empty($url)) {
                                 $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                             }
                             $htmlContent .= '</div>';
                         }
                     } else {
                         if ($id == 140) {
                             if (!empty($format5)) {
                                 $htmlContent = '<div class="dashboard_bottom_box" ><h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $size . '</div><div class="dashboard_bottom_div" >';
                                 $htmlContent .= "<ul>";
                                 foreach ($format5 as $val) {
                                     $htmlContent .= "<li title ='" . $val . "' >" . $val . "</li>";
                                 }
                                 $htmlContent .= "</ul>";
                                 if (!empty($url)) {
                                     $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                                 }
                                 $htmlContent .= '</div>';
                             }
                         } else {
                             if ($id == 55) {
                                 $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $format5['count']['cnt'] . '</div><div class="dashboard_bottom_div" >';
                                 $htmlContent .= "<ul>";
                                 $htmlContent .= '<li title="Scheduled">Scheduled' . " (" . $format5['scheduled'] . ")" . "</li>";
                                 $htmlContent .= '<li title="Not Scheduled">Not Scheduled' . " (" . $format5['not_scheduled'] . ")" . "</li>";
                                 $htmlContent .= '<li title="On Hold">On Hold' . " (" . $format5['on_hold'] . ")" . "</li>";
                                 $htmlContent .= '<li title="Shortlisted">Shortlisted' . " (" . $format5['shortlisted'] . ")" . "</li>";
                                 $htmlContent .= '<li title="Selected">Selected' . " (" . $format5['selected'] . ")" . "</li></ul>";
                                 if (!empty($url)) {
                                     $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                                 }
                                 $htmlContent .= '</div>';
                             } else {
                                 if ($id = 182) {
                                     if ($format5['count']['count'] > 0) {
                                         $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $format5['count']['count'] . '</div><div class="dashboard_bottom_div mana_mod_box" >';
                                         unset($format5['count']);
                                         $htmlContent .= "<ul>";
                                         $a = 0;
                                         foreach ($format5 as $val) {
                                             if (isset($val['param2'])) {
                                                 $shrt_key = strlen($val['param1']) > 30 ? substr($val['param1'], 0, 30) : $val['param1'];
                                                 if ($id != 111) {
                                                     $htmlContent .= '<li title="' . $val['param1'] . '">' . $shrt_key . " " . "(" . $val['param2'] . ")" . "</li>";
                                                 } else {
                                                     $htmlContent .= '<li title="' . $val['param1'] . '">' . $shrt_key . " to " . $val['param2'] . "</li>";
                                                 }
                                             } else {
                                                 $shrt_key = strlen($val['param1']) > 30 ? substr($val['param1'], 0, 30) : $val['param1'];
                                                 $htmlContent .= '<li title="' . $val['param1'] . '">' . $shrt_key . "</li>";
                                             }
                                             $a++;
                                             if ($a >= 5) {
                                                 break;
                                             }
                                         }
                                         $htmlContent .= "</ul>";
                                         if (!empty($url)) {
                                             $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                                         }
                                         $htmlContent .= '</div>';
                                     } else {
                                         $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">0</div><div class="dashboard_bottom_div" >';
                                         $htmlContent .= "<span class='no_text no_data'>{$emptyText}</span>";
                                         if (!empty($url)) {
                                             $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                                         }
                                         $htmlContent .= '</div>';
                                     }
                                 } else {
                                     if ($format5['count']['count'] > 0) {
                                         $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $format5['count']['count'] . '</div><div class="dashboard_bottom_div mana_mod_box" >';
                                         unset($format5['count']);
                                         $htmlContent .= "<ul>";
                                         foreach ($format5 as $val) {
                                             if (isset($val['param2'])) {
                                                 $shrt_key = strlen($val['param1']) > 30 ? substr($val['param1'], 0, 30) : $val['param1'];
                                                 if ($id != 111) {
                                                     $htmlContent .= '<li title="' . $val['param1'] . '">' . $shrt_key . " " . "(" . $val['param2'] . ")" . "</li>";
                                                 } else {
                                                     $htmlContent .= '<li title="' . $val['param1'] . '">' . $shrt_key . " to " . $val['param2'] . "</li>";
                                                 }
                                             } else {
                                                 $shrt_key = strlen($val['param1']) > 30 ? substr($val['param1'], 0, 30) : $val['param1'];
                                                 $htmlContent .= '<li title="' . $val['param1'] . '">' . $shrt_key . "</li>";
                                             }
                                         }
                                         $htmlContent .= "</ul>";
                                         if (!empty($url)) {
                                             $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                                         }
                                         $htmlContent .= '</div>';
                                     } else {
                                         $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">0</div><div class="dashboard_bottom_div" >';
                                         $htmlContent .= "<span class='no_text no_data'>{$emptyText}</span>";
                                         if (!empty($url)) {
                                             $htmlContent .= '<a href="' . BASE_URL . $url . '"class="box_link view_link">' . $btnText . '</a>';
                                         }
                                         $htmlContent .= '</div>';
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     return $htmlContent .= '</div>';
 }
Exemplo n.º 2
0
 public static function format5($id = '', $i = 0, $url = '')
 {
     $widgetsModel = new Default_Model_Widgets();
     $format5 = $widgetsModel->format5($id);
     $size = sizeof($format5);
     $title = self::titleArr($id, 'title');
     $btnText = self::titleArr($id, 'btnText');
     $emptyText = self::titleArr($id, 'emptyText');
     $total = 0;
     if (!empty($url)) {
         $url = substr($url, 1);
     }
     $htmlContent = '<div class="dashboard_bottom_box" >';
     if ($id == 21) {
         if (!empty($format5)) {
             $total = (int) $format5['backgroundagency'] + (int) $format5['users'] + (int) $format5['vendors'] + (int) $format5['staffing'];
             $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $total . '</div><div class="dashboard_bottom_div" ><ul>';
             foreach ($format5 as $k => $v) {
                 $shrt_key = strlen($k) > 30 ? substr($k, 0, 30) : $k;
                 $htmlContent .= '<li title="' . $k . '">' . $shrt_key . " " . "(" . $v . ")" . "</li>";
             }
             $htmlContent .= "</ul>";
             if (!empty($url)) {
                 $htmlContent .= '<a href="' . DOMAIN . $url . '"class="box_link view_link">' . $btnText . '</a>';
             }
             $htmlContent .= '</div>';
         } else {
             $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">0</div><div class="dashboard_bottom_div" >';
             $htmlContent .= "<span class='no_text no_data'>{$emptyText}</span>";
             if (!empty($url)) {
                 $htmlContent .= '<a href="' . DOMAIN . $url . '"class="box_link view_link">' . $btnText . '</a>';
             }
             $htmlContent .= '</div>';
         }
     } else {
         if ($id == 159 || $id == 174) {
             if (!empty($format5)) {
                 $total = (int) $format5['ratings']['pending_employee_ratings'] + (int) $format5['ratings']['completed'] + (int) $format5['ratings']['pending_manager_ratings'];
                 $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $total . '</div><div class="dashboard_bottom_div" >';
                 $htmlContent .= '<span class="businessunit_title" title="BusinessUnit">Business Unit : ' . $format5['businessUnit'] . "</span>";
                 if (isset($format5['department'])) {
                     $htmlContent .= '<span class="department_txt" title="Department">Department : ' . $format5['department'] . "</span>";
                 }
                 $htmlContent .= "<span class='department_txt' title='Appraisal Mode'>" . $format5['appraisal_period'] . " Appraisal (" . $format5['from_year'] . " - " . $format5['to_year'] . ")" . "</span><ul> ";
                 $htmlContent .= '<li title="Pending employee ratings">Pending employee ratings' . " (" . $format5['ratings']['pending_employee_ratings'] . ")" . "</li>";
                 $htmlContent .= '<li title="Pending manager ratings">Pending manager ratings' . " (" . $format5['ratings']['pending_manager_ratings'] . ")" . "</li>";
                 $htmlContent .= '<li title="Completed">Completed' . " (" . $format5['ratings']['completed'] . ")" . "</li></ul>";
                 if (!empty($url)) {
                     $htmlContent .= '<a href="' . DOMAIN . $url . '"class="box_link view_link">' . $btnText . '</a>';
                 }
                 $htmlContent .= '</div>';
             } else {
                 $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">0</div><div class="dashboard_bottom_div" >';
                 $htmlContent .= "<span class='no_text no_data'>{$emptyText}</span>";
                 if (!empty($url)) {
                     $htmlContent .= '<a href="' . DOMAIN . $url . '"class="box_link view_link">' . $btnText . '</a>';
                 }
                 $htmlContent .= '</div>';
             }
         } else {
             if ($id == 172) {
                 if (!empty($format5)) {
                     $total = (int) $format5['ratings']['pending_employee_ratings'] + (int) $format5['ratings']['completed'];
                     $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $total . '</div><div class="dashboard_bottom_div" >';
                     $htmlContent .= '<span class="businessunit_title" title="BusinessUnit">Business Unit : ' . $format5['businessUnit'] . "</span>";
                     if (isset($format5['department'])) {
                         $htmlContent .= '<span class="department_txt" title="Department">Department : ' . $format5['department'] . "</span>";
                     }
                     $htmlContent .= "<span  class='department_txt' title='Appraisal Mode'>" . $format5['ff_period'] . " Feedforward (" . $format5['ff_from_year'] . " - " . $format5['ff_to_year'] . ")" . "</span><ul> ";
                     $htmlContent .= '<li title="Pending employee ratings">Pending employee ratings' . " (" . $format5['ratings']['pending_employee_ratings'] . ")" . "</li>";
                     $htmlContent .= '<li title="Completed">Completed' . " (" . $format5['ratings']['completed'] . ")" . "</li></ul>";
                     if (!empty($url)) {
                         $htmlContent .= '<a href="' . DOMAIN . $url . '"class="box_link view_link">' . $btnText . '</a>';
                     }
                     $htmlContent .= '</div>';
                 } else {
                     $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">0</div><div class="dashboard_bottom_div" >';
                     $htmlContent .= "<span class='no_text no_data'>{$emptyText}</span>";
                     if (!empty($url)) {
                         $htmlContent .= '<a href="' . DOMAIN . $url . '"class="box_link view_link">' . $btnText . '</a>';
                     }
                     $htmlContent .= '</div>';
                 }
             } else {
                 if ($id == 158) {
                     if (!empty($format5)) {
                         $completedMngrCnt = isset($format5['compltedmgrIdArr']) ? $format5['compltedmgrIdArr'] : 0;
                         $notCompletedMngrCnt = isset($format5['notCompltedmgrIdArr']) ? $format5['notCompltedmgrIdArr'] : 0;
                         $total = (int) $completedMngrCnt + (int) $notCompletedMngrCnt;
                         $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $total . '</div><div class="dashboard_bottom_div" >';
                         $htmlContent .= '<span class="businessunit_title" title="BusinessUnit">Business Unit : ' . $format5['businessUnit'] . "</span>";
                         if (isset($format5['department'])) {
                             $htmlContent .= '<span class="department_txt" title="Department">Department : ' . $format5['department'] . "</span>";
                         }
                         $htmlContent .= "<span  class='department_txt' title='Appraisal Mode'>" . $format5['appraisal_period'] . " Appraisal (" . $format5['from_year'] . " - " . $format5['to_year'] . ")" . "</span><ul>";
                         $htmlContent .= '<li title="Pending manager ratings">Pending manager ratings' . " (" . $notCompletedMngrCnt . ")" . "</li>";
                         $htmlContent .= '<li title="Completed manager ratings">Completed manager ratings' . " (" . $completedMngrCnt . ")" . "</li></ul>";
                         if (!empty($url)) {
                             $htmlContent .= '<a href="' . DOMAIN . $url . '"class="box_link view_link">' . $btnText . '</a>';
                         }
                         $htmlContent .= '</div>';
                     } else {
                         $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">0</div><div class="dashboard_bottom_div" >';
                         $htmlContent .= "<span class='no_text no_data'>{$emptyText}</span>";
                         if (!empty($url)) {
                             $htmlContent .= '<a href="' . DOMAIN . $url . '"class="box_link view_link">' . $btnText . '</a>';
                         }
                         $htmlContent .= '</div>';
                     }
                 } else {
                     if ($format5['count']['count'] > 0) {
                         $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">' . $format5['count']['count'] . '</div><div class="dashboard_bottom_div" >';
                         unset($format5['count']);
                         $htmlContent .= "<ul>";
                         foreach ($format5 as $val) {
                             if (isset($val['param2'])) {
                                 $shrt_key = strlen($val['param1']) > 30 ? substr($val['param1'], 0, 30) : $val['param1'];
                                 if ($id != 111) {
                                     $htmlContent .= '<li title="' . $val['param1'] . '">' . $shrt_key . " " . "(" . $val['param2'] . ")" . "</li>";
                                 } else {
                                     $htmlContent .= '<li title="' . $val['param1'] . '">' . $shrt_key . " to " . $val['param2'] . "</li>";
                                 }
                             } else {
                                 $shrt_key = strlen($val['param1']) > 30 ? substr($val['param1'], 0, 30) : $val['param1'];
                                 $htmlContent .= '<li title="' . $val['param1'] . '">' . $shrt_key . "</li>";
                             }
                         }
                         $htmlContent .= "</ul>";
                         if (!empty($url)) {
                             $htmlContent .= '<a href="' . DOMAIN . $url . '"class="box_link view_link">' . $btnText . '</a>';
                         }
                         $htmlContent .= '</div>';
                     } else {
                         $htmlContent .= '<h4 >' . $title . '</h4><div id="cnt_div" class ="tot_cnt num_color_' . $i . '">0</div><div class="dashboard_bottom_div" >';
                         $htmlContent .= "<span class='no_text no_data'>{$emptyText}</span>";
                         if (!empty($url)) {
                             $htmlContent .= '<a href="' . DOMAIN . $url . '"class="box_link view_link">' . $btnText . '</a>';
                         }
                         $htmlContent .= '</div>';
                     }
                 }
             }
         }
     }
     return $htmlContent .= '</div>';
 }