model('user'); $_W['page']['title'] = '添加副创始人 - 副创始人管理'; if (checksubmit()) { $user_founder = array( 'username' => safe_gpc_string($_GPC['username']), 'password' => $_GPC['password'], 'repassword' => $_GPC['repassword'], 'remark' => safe_gpc_string($_GPC['remark']), 'groupid' => intval($_GPC['groupid']), 'starttime' => TIMESTAMP, 'endtime' => intval($_GPC['timelimit']), 'founder_groupid' => ACCOUNT_MANAGE_GROUP_VICE_FOUNDER ); $user_add = user_info_save($user_founder, true); if (is_error($user_add)) { itoast($user_add['message'], '', ''); } itoast($user_add['message'], url('founder/edit', array('uid' => $user_add['uid'])), 'success'); } $groups = user_founder_group(); template('founder/create');