✏️ 正在编辑: StudentFields.php
路径:
/home/eblama1/sms.karnplayinland.com/modules/Students/StudentFields.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * Student Fields * * @since 4.6 Merge Address Fields & Contact Fields programs with Student Fields program * * @package RosarioSIS * @subpackage modules */ require_once 'ProgramFunctions/Fields.fnc.php'; DrawHeader( ProgramTitle() ); $_REQUEST['id'] = issetVal( $_REQUEST['id'], '' ); $_REQUEST['category_id'] = issetVal( $_REQUEST['category_id'], '' ); $_REQUEST['category'] = issetVal( $_REQUEST['category'], '' ); if ( $_REQUEST['category'] === 'address' ) { require_once 'modules/Students/includes/AddressFields.php'; } elseif ( $_REQUEST['category'] === 'contact' ) { require_once 'modules/Students/includes/PeopleFields.php'; } else { require_once 'modules/Students/includes/StudentFields.php'; } /** * Fields Category Menu * * Local function * * @since 4.6 * * @param string $category Category: student|address|contact. * * @return string Select Category input. */ function _fieldsCategoryMenu( $category ) { $link = PreparePHP_SELF( [], [ 'category', 'category_id', 'id', 'table', 'ML_tables' ] ) . '&category='; $menu = SelectInput( $category, 'category', '<span class="a11y-hidden">' . _( 'Category' ) . '</span>', [ 'student' => _( 'Student Fields' ), 'address' => _( 'Address Fields' ), 'contact' => _( 'Contact Fields' ), ], false, 'onchange="' . AttrEscape( 'ajaxLink(' . json_encode( $link ) . ' + this.value);' ) . '" autocomplete="off"', false ); return $menu; }
💾 保存文件
← 返回文件管理器