-
Notifications
You must be signed in to change notification settings - Fork 4
/
attendance.mobile.php
46 lines (41 loc) · 1.51 KB
/
attendance.mobile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @class attendanceMobile
* @author BJRambo ([email protected])
* @brief attendance module mobile class
**/
require_once(_XE_PATH_ . 'modules/attendance/attendance.view.php');
class attendanceMobile extends attendanceView
{
function init()
{
$template_path = sprintf("%sm.skins/%s/", $this->module_path, $this->module_info->mskin);
if (!is_dir($template_path) || !$this->module_info->mskin)
{
$this->module_info->mskin = 'default';
$template_path = sprintf("%sm.skins/%s/", $this->module_path, $this->module_info->mskin);
}
$this->setTemplatePath($template_path);
$this->setTemplateFile('index');
}
function dispAttendanceMobileModifyAttendance()
{
$oModuleModel = getModel('module');
$module_info = $oModuleModel->getModuleInfoByMid('attendance');
$oModuleModel->syncSkinInfoToModuleInfo($module_info);
$attendance_srl = Context::get('attendance_srl');
$oAttendanceModel = getModel('attendance');
$oMemberModel = getModel('member');
$oAttendance = $oAttendanceModel->getAttendanceDataSrl($attendance_srl);
Context::set('oAttendance', $oAttendance);
Context::set('oAttendanceModel', $oAttendanceModel);
Context::set('oMemberModel', $oMemberModel);
$template_path = sprintf("%sm.skins/%s/", $this->module_path, $this->module_info->mskin);
if (!is_dir($template_path) || !$this->module_info->mskin)
{
$template_path = sprintf("%sm.skins/%s/", $this->module_path, $this->module_info->mskin);
}
$this->setTemplatePath($template_path);
$this->setTemplateFile('modify');
}
}