fix 教师导出时间表中添加中国时间
This commit is contained in:
parent
5fb1362d81
commit
e77e8b2ac0
@ -80,6 +80,7 @@ class TeacherScheduleTimeController extends BaseController
|
||||
'week' => $this->getWeek(strtotime($v['date'])),
|
||||
'date' => $v['date'],
|
||||
'time_on' => $v['time'],
|
||||
'time_en' => $v['en_time'],
|
||||
'subject' => $v['english_name'],
|
||||
'teacher_name' => $v['teacher_name'],
|
||||
'student_name' => implode(',', array_unique(array_filter($student))),
|
||||
@ -109,9 +110,9 @@ class TeacherScheduleTimeController extends BaseController
|
||||
'filed_id_width' => 60,//序号列的宽度
|
||||
'filed_name_width' => 120,//玩家名称的宽度
|
||||
'filed_data_width' => 220,//数据列的宽度
|
||||
'table_header' => ['', 'Week', 'Date', 'Time', 'Subject', 'Teacher', 'Student', 'Duration'],//表头文字
|
||||
'column_text_offset_arr' => [100, 70, 120, 140, 110, 120, 120, 120],//表头文字左偏移量
|
||||
'row_text_offset_arr' => [50, 100, 140, 160, 140, 140, 140, 140],//数据列文字左偏移量
|
||||
'table_header' => ['', 'Week', 'Date', 'China Time', 'Local Time', 'Subject', 'Teacher', 'Student', 'Duration'],//表头文字
|
||||
'column_text_offset_arr' => [100, 70, 120, 140,140, 120, 120, 120, 180],//表头文字左偏移量
|
||||
'row_text_offset_arr' => [50, 100, 140, 160, 140, 140, 140, 140, 140],//数据列文字左偏移量
|
||||
];
|
||||
$base['img_width'] = $base['filed_id_width'] + $base['filed_name_width'] + $base['filed_data_width'] * 5 + $base['border'] * 2;//图片宽度
|
||||
$base['img_height'] = $params['row'] * $base['row_hight'] + $base['border'] * 2 + $base['title_height'];//图片高度
|
||||
@ -126,6 +127,7 @@ class TeacherScheduleTimeController extends BaseController
|
||||
$base['border'] + $base['filed_id_width'] + $base['filed_name_width'] + $base['filed_data_width'] * 4,//第五列边框线x轴像素
|
||||
$base['border'] + $base['filed_id_width'] + $base['filed_name_width'] + $base['filed_data_width'] * 5,//第五列边框线x轴像素
|
||||
$base['border'] + $base['filed_id_width'] + $base['filed_name_width'] + $base['filed_data_width'] * 6,//第五列边框线x轴像素
|
||||
$base['border'] + $base['filed_id_width'] + $base['filed_name_width'] + $base['filed_data_width'] * 7,//第五列边框线x轴像素
|
||||
];
|
||||
$img = imagecreatetruecolor($base['img_width'], $base['img_height']);//创建指定尺寸图片
|
||||
$bg_color = imagecolorallocate($img, 255, 255, 255);//设定图片背景色
|
||||
|
Loading…
x
Reference in New Issue
Block a user