_event_variable = 'ev'; $this->corp = $corp; $this->info = $_REQUEST; $this->info[career] = $career; } function _initarg(&$arg){ $arg[qchar]='?'; $arg[random]=time(); } function main(){ $get = $this->info; $get[visit_time] = 'now()'; if(!$get[visit_flg]){ $get[visit_flg] = '0'; $this->corp->setdata_apply(&$arg,$get); }else{ $this->corp->setdata_basic(&$arg,$get); } $this->show_corp($arg); } function show_corp($arg=NULL){ $this->corp->setdata_form(&$arg,$_GET); $this->_show_page($this->corp->t_corp_pr,$arg); exit; } function OnPush_corp(){ $post = $this->info; $this->corp->setdata_apply(&$arg,$post,'On'); } } ?> query_record('*',$info[cid],'cid'); } function setdata_apply(&$arg,$info,$status=NULL){ $this->basic_cid(&$bs,$info); if($bs[connect_type] == '1' && $status == 'On'){ $this->setdata_reply($info); $status = 'Link'; }elseif($bs[connect_type] == '2' && $status == 'On'){ $this->setdata_basic(&$arg,$info,$bs); $status = 'Link'; }elseif($bs[connect_type] == '3' && $status == 'On'){ $this->setdata_reply($info); $status = 'Link'; }elseif($bs[connect_type] == '4' && $status == 'On'){ $this->setdata_basic(&$arg,$info,$bs); $status = 'Link'; }else{ $this->setdata_basic(&$arg,$info,$bs); } // if($info[career]=='4' && $bs[aff_link_tag]){ // header("Location: $bs[aff_link_tag]"); // }elseif($status != 'Link' && $bs[aff_mob_link_tag]){ // header("Location: $bs[aff_mob_link_tag]"); // }elseif($status == 'Link'){ // header("Location: $bs[link_url]"); // } } function setdata_reply($info){ $t_r = new JasminTable_reply_info; $t_a = new JasminTable_apply_info; $option = "and cid=$info[cid]"; $tmp[visit_flg] = $info[visit_flg]; $tmp[state_flg] = '4'; $rp = $t_r->query_records('*', array('mm_no'=>$info[mm_no],'cid'=>$info[cid])); if($rp[0][state_flg] == 4) return; $t_a->update_record($tmp,$info[mm_no],'mm_no'); $tmp[reply_time] = 'now()'; $tmp[visit_time] = $info[visit_time]; if(!$tmp[visit_time]){ unset($tmp[visit_time]); } $t_r->update_record($tmp,$info[mm_no],'mm_no',$option); } function setdata_basic(&$arg,$info){ $this->basic_cid(&$bs,$info); $arg = $info; $arg[basic] = $bs; $t_r = new JasminTable_reply_info; $t_a = new JasminTable_apply_info; $option = "and cid=$info[cid]"; $tmp[visit_flg] = $info[visit_flg]; $tmp[state_flg] = '3'; $rp = $t_r->query_records('*', array('mm_no'=>$info[mm_no],'cid'=>$info[cid])); if($rp[0][state_flg] == 4 || $rp[0][state_flg] == 3) return; $ap = $t_a->query_record('*',$info[mm_no],'mm_no'); if($ap[state_flg] == 4 || $ap[state_flg] == 3){ unset($tmp[state_flg]); } $t_a->update_record($tmp,$info[mm_no],'mm_no'); $tmp[visit_time] = $info[visit_time]; $t_r->update_record($tmp,$info[mm_no],'mm_no',$option); } /** *formページのargをセットする関数。 */ function setdata_form(&$arg,$info) { $this->r = $_POST[r]; if (!is_array($this->r)) return; foreach ($this->r as $k=>$v){ $arg[r][$k] = $this->r[$k]; $arg[check][$k][$this->r[$k]]='checked'; $arg[select][$k][$this->r[$k]]='selected'; } } /** *入力データのチェックをする関数。 *@return エラーがある場合はメッセージの配列。無い場合はNULL */ function check_form($info) { $this->r = $_POST[r]; //input check $ic = new $this->InputCheck($info[career]=='4'); $a = $ic->check($this->r,'','empty_chk'); return $a; return array("err1","err2","err3"); //when error return NULL;//when OK; } } Fatal error: Class 'Corp' not found in /var/www/vhosts/seibyo-doctor.com/httpdocs/pc/corp2.php on line 22