}
                //ImageString($image, $labelfont, 50,$inc,"$start_date", $border);
                $inc = $inc + 15;
            }
        }
        $inc = 50;
        for ($i = 0; $i < count($fulfilled_array) - 1; $i++) {
            $ful = $fulfilled_array[$i];
            $dt_val = $dt_array[$i + 1];
            $x2 = $startx_val + $interval * $dt_val;
            //cal using No of Days
            $div = $ful / 25;
            $y1 = $starty_val - 19.5 * $div;
            $ful2 = $fulfilled_array[$i + 1];
            $div2 = $ful2 / 25;
            $y2 = $starty_val - 19.5 * $div2;
            ImageLine($image, $x1, $y1, $x2, $y2, $accomplish_color);
            $x1 = $x2;
            //$y1 = $y2;
            $d_array = "";
            //ImageString($image, $labelfont1,80,$inc,"$x1 : $y1 : $x2 : $y2",$border);
            $inc = $inc + 10;
        }
        header("Content-type: image/png");
        Imagepng($image);
        ImageDestroy($image);
    }
}
$obj = new graph_results();
$obj->display($db_object, $common, $user_id, $default, $error_msg, $learning, $_GET);
include "footer.php";
        $feedcount = $dFeedcount[0];
        $total_div = $learning->changedate_timestamp($last_date) - $learning->changedate_timestamp($from_date);
        $div = 200 / $total_div;
        $x1 = 110;
        $y1 = 90;
        for ($i = 0; $i < $feedcount; $i++) {
            $rated_date = $dFeedback[$i]['rated_date'];
            $value = $dFeedback[$i]['value'];
            $r_date = $learning->changedate_timestamp($rated_date) - $learning->changedate_timestamp($from_date);
            $x2 = 200 / $total_div * $r_date + 110;
            $yval = "yvalue_" . $value;
            $y2 = ${$yval};
            ImageLine($image, $x1, $y1, $x2, $y2, $border1);
            $x1 = $x2;
            $y1 = $y2;
        }
        $fdate = $learning->changedate_display($from_date);
        $tdate = $learning->changedate_datetime($last_date);
        $days = $error_msg['cDays'] . " {$fdate} " . $error_msg['cTo'] . " {$tdate} ";
        ImageString($image, $labeltitlefont, 110, 170, "{$days}", $border);
        ImageString($image, $labeltitlefont, 120, 200, $error_msg['cObservedImprovement'], $border);
        header("Content-type: image/png");
        // or "Content-type: image/png"
        ImageJPEG($image);
        // or imagepng($image)
        ImageDestroy($image);
    }
}
$obj = new graph_results();
$obj->display($db_object, $common, $user_id, $default, $error_msg, $learning, $post_var, $gbl_result);
include "footer.php";