コード例 #1
0
 public function edit($list_id)
 {
     $ObjQuery = new queryModel();
     $ObjContacts = new contactsModel();
     $loggin_user = $ObjContacts->get_loggin_user_info();
     $data = $ObjQuery->array_to_data(array(), $loggin_user);
     if ($loggin_user == FALSE) {
         return Redirect::to('login');
     }
     if ($list_id) {
         $ObjQuery = new queryModel();
         $ObjList = new listingsModel();
         $ObjListClassify = new listingsClassificationsModel();
         $ObjListImage = new listingsImagesModel();
         $ObjClassify = new classificationsModel();
         $ObjTrades = new tradesModel();
         $ObjPreQualify = new preQualifyModel();
         $details_list = $ObjList->get_record_join(array('`j`.`' . $ObjList->tblid . '`=' => $list_id));
         $data = $ObjQuery->array_to_data($data, $details_list);
         $data['listclassify_rows'] = $ObjClassify->get_records();
         $records_listclassify = $ObjListClassify->get_records_join(array('`j`.`' . $ObjList->tblid . '`=' => $list_id));
         $data['records_listclassify'] = $ObjQuery->array_to_data_select_key('classify_id', $records_listclassify);
         $data['classifications_array'] = $details_list->list_classifications ? unserialize($details_list->list_classifications) : array();
         //$data['records_listvend'] = $ObjListVend->get_records( array('`'.$ObjList->tblid.'`='=>$list_id) );
         $data['show_uploaded_image_slider'] = $ObjListImage->show_uploaded_image_slider($list_id);
         $data['trades_rows'] = $ObjTrades->get_records();
         $data['trades_array'] = $details_list->list_trades ? unserialize($details_list->list_trades) : array();
         $prequalify = $ObjPreQualify->get_record(array('`list_id`=' => $list_id), array('ASC' => '`lpq_id`'));
         $data['lpq_id'] = $prequalify->lpq_id;
         return View::make('listings_edit', $data);
     } else {
         return Redirect::to('listings');
     }
 }
コード例 #2
0
 public function edit($list_id, $lpq_id = '')
 {
     $ObjQuery = new queryModel();
     $ObjPreQualify = new preQualifyModel();
     $data = array('list_id' => $list_id);
     $details = array('lpq_id' => '', 'list_id' => $list_id, $ObjPreQualify->tblpref . 'organization_date' => '', $ObjPreQualify->tblpref . 'business_type' => '', $ObjPreQualify->tblpref . 'fed_tax_id' => '', $ObjPreQualify->tblpref . 'disadvantaged_status' => '', $ObjPreQualify->tblpref . 'financial_company_secure_bond' => '', $ObjPreQualify->tblpref . 'financial_surety_company' => '', $ObjPreQualify->tblpref . 'financial_agents_fullname' => '', $ObjPreQualify->tblpref . 'financial_agents_email' => '', $ObjPreQualify->tblpref . 'financial_available_bonding_capacity' => '', $ObjPreQualify->tblpref . 'financial_available_bonding_rate' => '', $ObjPreQualify->tblpref . 'bank' => '', $ObjPreQualify->tblpref . 'bank_agents_fullname' => '', $ObjPreQualify->tblpref . 'bank_agents_email' => '', $ObjPreQualify->tblpref . 'insurance_com' => '', $ObjPreQualify->tblpref . 'insurance_com_agents_fullname' => '', $ObjPreQualify->tblpref . 'insurance_com_agents_email' => '', $ObjPreQualify->tblpref . 'insurance_com_gen_liability_limit' => '', $ObjPreQualify->tblpref . 'insurance_com_workers_comp_limit' => '', $ObjPreQualify->tblpref . 'safety_drug_free_workplace' => '', $ObjPreQualify->tblpref . 'safety_workers_comp_experience' => '', $ObjPreQualify->tblpref . 'ref_vendors_company_name1' => '', $ObjPreQualify->tblpref . 'ref_vendors_contact_name1' => '', $ObjPreQualify->tblpref . 'ref_vendors_email1' => '', $ObjPreQualify->tblpref . 'ref_vendors_company_name2' => '', $ObjPreQualify->tblpref . 'ref_vendors_contact_name2' => '', $ObjPreQualify->tblpref . 'ref_vendors_email2' => '', $ObjPreQualify->tblpref . 'ref_vendors_company_name3' => '', $ObjPreQualify->tblpref . 'ref_vendors_contact_name3' => '', $ObjPreQualify->tblpref . 'ref_vendors_email3' => '', $ObjPreQualify->tblpref . 'ref_contractors_company_name1' => '', $ObjPreQualify->tblpref . 'ref_contractors_contact_name1' => '', $ObjPreQualify->tblpref . 'ref_contractors_email1' => '', $ObjPreQualify->tblpref . 'ref_contractors_company_name2' => '', $ObjPreQualify->tblpref . 'ref_contractors_contact_name2' => '', $ObjPreQualify->tblpref . 'ref_contractors_email2' => '', $ObjPreQualify->tblpref . 'ref_contractors_company_name3' => '', $ObjPreQualify->tblpref . 'ref_contractors_contact_name3' => '', $ObjPreQualify->tblpref . 'ref_contractors_email3' => '');
     if ($lpq_id) {
         $details = $ObjPreQualify->get_record_join(array('`j`.`lpq_id`=' => $lpq_id));
     }
     $data = $ObjQuery->array_to_data($data, $details);
     $year = FDateTime::fdate($details->lpq_organization_date, 'Y');
     $month = FDateTime::fdate($details->lpq_organization_date, 'm');
     $day = FDateTime::fdate($details->lpq_organization_date, 'd');
     $data['select_year'] = $ObjPreQualify->select_year($year);
     $data['select_month'] = $ObjPreQualify->select_month($month);
     $data['select_day'] = $ObjPreQualify->select_day($day);
     return View::make('pre_qualify_form', $data);
 }
コード例 #3
0
 public function upload_image_crop($list_id, $listimg_id)
 {
     $ObjQuery = new queryModel();
     $ObjListImage = new listingsImagesModel();
     $details = $ObjListImage->get_image_by_listimg_id($listimg_id);
     $data = array();
     $data = $ObjQuery->array_to_data($data, $details);
     //echo '<pre>';
     //print_r($data);
     //echo '</pre>';
     return View::make('listings_upload_image_crop', $data);
 }