DHTML Calendar is not part of e107 anymore, but there are old plugin that use it.
1. delete old code (example, could be used different way):
require_once(e_HANDLER."calendar/calendar_class.php");
$cal = new DHTML_Calendar(true);
global $cal;
$cal->load_files();
2. replace old code :
$text .= $cal->make_input_field($cal_options, $cal_attrib);
with
$text .= e107::getForm()->datepicker($cal_attrib['name'], $cal_attrib['value']);
or
$eclassf_desc = $eclassf_cal->make_input_field($eclassf_cal_options, $eclassf_cal_attrib);
with
$eclassf_desc = e107::getForm()->datepicker($eclassf_cal_attrib['name'], $eclassf_cal_attrib['value']);
It's all.