Skip to content
Permalink
Browse files

显示高亮面试官时忽略已删除委员会

  • Loading branch information...
fengkaijia committed Jun 29, 2019
1 parent ed7facd commit 9bb0a93b94639b5267824ec7a1ef121280f19523
Showing with 15 additions and 9 deletions.
  1. +15 −9 application/controllers/Delegate.php
@@ -3111,22 +3111,28 @@ function _sidebar_admission($delegate)
$choice_option = option('profile_special_committee_choice');
if($choice_option)
{
$choice_committee = $this->delegate_model->get_profile_by_name($delegate['id'], $choice_option);
if(!empty($choice_committee))
$committee_choice = $this->delegate_model->get_profile_by_name($delegate['id'], $choice_option);
if(!empty($committee_choice))
{
foreach($choice_committee as $committee_id)
$choice_committees = $this->committee_model->get_committees($committee_choice);
if($choice_committees)
{
$primary['committee'][] = $committee_id;
if(isset($select[$committee_id]))
foreach($choice_committees as $committee)
{
foreach($select[$committee_id] as $one)
$committee_id = $committee['id'];
$primary['committee'][] = $committee_id;
if(isset($select[$committee_id]) && $committee_id > 0)
{
$primary['interviewer'][] = $one['id'];
foreach($select[$committee_id] as $one)
{
$primary['interviewer'][] = $one['id'];
}
}
}
$vars['choice_committee'] = array_column($choice_committees, 'abbr');
}
$vars['choice_committee'] = array_column($this->committee_model->get_committees($choice_committee), 'abbr');
}
}
$vars['primary'] = $primary;

0 comments on commit 9bb0a93

Please sign in to comment.
You can’t perform that action at this time.