private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_CABINET_MUNICIPAL_SERVICE_HOLDER_INCOME_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report'] = $this->cabinet_report_model->get_cabinet_municipal_service_holder_income($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date); $this->load->view('default/report/cabinet/cabinet_municipal_service_holder_income_report', $data); } else { $data['title'] = $this->lang->line("REPORT_CABINET_MUNICIPAL_SERVICE_HOLDER_INCOME_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report'] = $this->cabinet_report_model->get_cabinet_municipal_service_holder_income($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date); $html = $this->load->view('default/report/cabinet/cabinet_municipal_service_holder_income_report', $data, true); //echo $html; System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_MUNICIPAL_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report'] = $this->upload_report_model->get_municipal_report_upload_status($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date); $this->load->view('default/report/upload/upload_report_municipal_report', $data); } else { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_MUNICIPAL_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report'] = $this->upload_report_model->get_municipal_report_upload_status($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date); $html = $this->load->view('default/report/upload/upload_report_municipal_report', $data, true); //echo $html; System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_MUNICIPAL_ACTIVITIES_LOGIN_STATUS_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $month = $this->input->get('month'); $year = $this->input->get('year'); $data['month'] = $month; $data['year'] = $year; $data['report'] = $this->uno_activities_login_status_model->get_municipal_user_activities_login_status($division, $zilla, $municipal, $municipal_ward, $month, $year); $this->load->view('default/report/activities_municipal_login_status_report', $data); } else { $data['title'] = $this->lang->line("REPORT_MUNICIPAL_ACTIVITIES_LOGIN_STATUS_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $month = $this->input->get('month'); $year = $this->input->get('year'); $data['month'] = $month; $data['year'] = $year; $data['report'] = $this->uno_activities_login_status_model->get_municipal_user_activities_login_status($division, $zilla, $municipal, $municipal_ward, $month, $year); $html = $this->load->view('default/report/activities_municipal_login_status_report', $data, true); //echo $html; System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_CITY_CORPORATION_ACTIVITIES_LOGIN_STATUS_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $month = $this->input->get('month'); $year = $this->input->get('year'); $data['month'] = $month; $data['year'] = $year; $data['report'] = $this->uno_activities_login_status_model->get_uisc_registration_city_corporation_info($division, $zilla, $city_corporation, $city_corporation_ward, $month, $year); $this->load->view('default/report/activities_city_corporation_login_status_report', $data); } else { $data['title'] = $this->lang->line("REPORT_CITY_CORPORATION_ACTIVITIES_LOGIN_STATUS_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $month = $this->input->get('month'); $year = $this->input->get('year'); $data['month'] = $month; $data['year'] = $year; $data['report'] = $this->uno_activities_login_status_model->get_uisc_registration_city_corporation_info($division, $zilla, $city_corporation, $city_corporation_ward, $month, $year); $html = $this->load->view('default/report/uno_activities_login_status_report', $data, true); //echo $html; System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_CABINET_UNION_INCOME_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report'] = $this->cabinet_report_model->get_cabinet_union_income($division, $zilla, $upazila, $union, $from_date, $to_date); $this->load->view('default/report/cabinet/cabinet_union_income_report', $data); } else { $data['title'] = $this->lang->line("REPORT_CABINET_UNION_INCOME_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report'] = $this->cabinet_report_model->get_cabinet_union_income($division, $zilla, $upazila, $union, $from_date, $to_date); $html = $this->load->view('default/report/cabinet/cabinet_union_income_report', $data, true); //echo $html; System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_UPLOAD_INCOME_REPORT_CITY_CORPORATION_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report'] = $this->upload_report_model->get_city_corporation_report_upload_income($division, $zilla, $city_corporation, $city_corporation_ward, $from_date, $to_date); $this->load->view('default/report/upload_income/upload_income_report_city_corporation_report', $data); } else { $data['title'] = $this->lang->line("REPORT_UPLOAD_INCOME_REPORT_CITY_CORPORATION_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report'] = $this->upload_report_model->get_city_corporation_report_upload_income($division, $zilla, $city_corporation, $city_corporation_ward, $from_date, $to_date); $html = $this->load->view('default/report/upload_income/upload_income_report_city_corporation_report', $data, true); //echo $html; System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); $status = $this->input->get('status'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report_status'] = $status; if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_UPLOAD_INCOME_REPORT_UNION_TITLE"); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['report'] = $this->upload_report_model->get_union_report_upload_income($division, $zilla, $upazila, $union, $from_date, $to_date, $status); $this->load->view('default/report/upload_income/upload_income_report_union_report', $data); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_UPLOAD_INCOME_REPORT_CITY_CORPORATION_TITLE"); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['report'] = $this->upload_report_model->get_city_corporation_report_upload_income($division, $zilla, $city_corporation, $city_corporation_ward, $from_date, $to_date, $status); $this->load->view('default/report/upload_income/upload_income_report_city_corporation_report', $data); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_UPLOAD_INCOME_REPORT_MUNICIPAL_TITLE"); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $data['report'] = $this->upload_report_model->get_municipal_report_upload_income($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date, $status); $this->load->view('default/report/upload_income/upload_income_report_municipal_report', $data); } else { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_TITLE"); $data['report'] = ''; $this->load->view('default/report/upload_income/upload_income_report_view', $data); } } } } else { $this->load->model("report/upload_report_model"); $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_UNION_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report'] = $this->upload_report_model->get_union_report_upload_status($division, $zilla, $upazila, $union, $from_date, $to_date); $html = $this->load->view('default/report/upload_income/upload_report_view', $data, true); //echo $html; System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("PRODUCT_CURRENT_STATUS_REPORTS"); $inputs = $this->input->get(); $data['data'] = $this->Current_stock_model->get_product_list($inputs); $this->load->view('default/reports/current_stock/report_format', $data); } else { $data['title'] = $this->lang->line("TITLE"); $inputs = $this->input->post(); $data['data'] = $this->Current_stock_model->get_product_list($inputs); $html = $this->load->view('default/reports/current_stock/report_format', $data); System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("PRODUCT_RETURN_REPORTS"); $inputs = $this->input->get(); $data['products'] = $this->Product_return_model->get_product_list($inputs); $this->load->view('default/reports/product_return_reports/report_format', $data); } else { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_INFO_TITLE"); $inputs = $this->input->get(); $data['products'] = $this->Product_reports_model->get_product_list($inputs); $html = $this->load->view('default/reports/product_reports/report_format', $data, true); System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("TICKET_RELATED_REPORT"); $inputs = $this->input->get(); $data['tickets'] = $this->ticket_reports_model->get_ticket_list($inputs); $this->load->view('default/reports/ticket_reports/report_format', $data); } else { $data['title'] = $this->lang->line("Title"); $inputs = $this->input->get(); $data['tickets'] = $this->ticket_reports_model->get_ticket_list($inputs); $html = $this->load->view('default/reports/ticket_reports/report_format', $data); System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("PRODUCT_ASSIGN_RELATED_REPORT"); $inputs = $this->input->get(); $data['products'] = $this->Product_assign_report_model->get_product_list($inputs); $this->load->view('default/reports/product_assign_report/report_format', $data); } else { $data['title'] = $this->lang->line("REPORT_TITLE"); $inputs = $this->input->get(); $data['products'] = $this->Product_assign_report_model->get_product_list($inputs); $html = $this->load->view('default/reports/product_assign_report/report_format', $data, true); System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_INVESTED_MONEY_MUNICIPAL_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $data['getUiscInfos'] = $this->invested_money_model->get_invested_money_municipal_info($division, $zilla, $municipal, $municipal_ward); $this->load->view('default/report/invested_money_municipal_report', $data); } else { $data['title'] = $this->lang->line("REPORT_INVESTED_MONEY_MUNICIPAL_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $data['getUiscInfos'] = $this->invested_money_model->get_invested_money_municipal_info($division, $zilla, $municipal, $municipal_ward); $html = $this->load->view('default/report/invested_money_municipal_report', $data, true); System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_INVESTED_MONEY_CITY_CORPORATION_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['getUiscInfos'] = $this->invested_money_model->get_invested_money_city_corporation_info($division, $zilla, $city_corporation, $city_corporation_ward); $this->load->view('default/report/invested_money_city_corporation_report', $data); } else { $data['title'] = $this->lang->line("REPORT_INVESTED_MONEY_CITY_CORPORATION_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['getUiscInfos'] = $this->invested_money_model->get_invested_money_city_corporation_info($division, $zilla, $city_corporation, $city_corporation_ward); $html = $this->load->view('default/report/invested_money_city_corporation_report', $data, true); System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_UISC_REGISTRATION_CITY_CORPORATION_USER_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['getUiscInfos'] = $this->uisc_registration_model->get_uisc_registration_city_corporation_user_info($division, $zilla, $city_corporation, $city_corporation_ward); $this->load->view('default/report/registered_city_corporation_user_report', $data); } else { $data['title'] = $this->lang->line("REPORT_UISC_REGISTRATION_CITY_CORPORATION_USER_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['getUiscInfos'] = $this->uisc_registration_model->get_uisc_registration_city_corporation_user_info($division, $zilla, $city_corporation, $city_corporation_ward); $html = $this->load->view('default/report/registered_city_corporation_user_report', $data, true); System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_INVESTED_MONEY_UNION_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['getUiscInfos'] = $this->invested_money_model->get_invested_money_union_info($division, $zilla, $upazila, $union); $this->load->view('default/report/invested_money_union_report', $data); } else { $data['title'] = $this->lang->line("REPORT_UISC_REGISTRATION_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['getUiscInfos'] = $this->invested_money_model->get_invested_money_union_info($division, $zilla, $upazila, $union); $html = $this->load->view('default/report/invested_money_union_report', $data, true); System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_UNO_ACTIVITIES_LOGIN_STATUS_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['getUiscInfos'] = $this->uno_activities_login_status_model->get_uno_user_activities_login_status($division, $zilla, $upazila, $union); $this->load->view('default/report/uno_activities_login_status_report', $data); } else { $data['title'] = $this->lang->line("REPORT_UNO_ACTIVITIES_LOGIN_STATUS_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $uisc_status = $this->input->get('status'); $data['getUiscInfos'] = $this->uno_activities_login_status_model->get_uno_user_activities_login_status($division, $zilla, $upazila, $union, $uisc_status); $html = $this->load->view('default/report/uno_activities_login_status_report', $data, true); //echo $html; System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_UISC_REGISTRATION_MUNICIPAL_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $uisc_status = $this->input->get('status'); $data['getUiscInfos'] = $this->uisc_registration_model->get_uisc_registration_municipal_info($division, $zilla, $municipal, $municipal_ward, $uisc_status); $this->load->view('default/report/registered_municipal_report', $data); } else { $data['title'] = $this->lang->line("REPORT_UISC_REGISTRATION_MUNICIPAL_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $uisc_status = $this->input->get('status'); $data['getUiscInfos'] = $this->uisc_registration_model->get_uisc_registration_municipal_info($division, $zilla, $municipal, $municipal_ward, $uisc_status); $html = $this->load->view('default/report/registered_municipal_report', $data, true); System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['title'] = $this->lang->line("REPORT_UISC_REGISTRATION_UNION_USER_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['getUiscInfos'] = $this->uisc_registration_model->get_uisc_registration_union_user_info($division, $zilla, $upazila, $union); $this->load->view('default/report/registered_union_user_report', $data); } else { $data['title'] = $this->lang->line("REPORT_UISC_REGISTRATION_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $uisc_status = $this->input->get('status'); $data['getUiscInfos'] = $this->uisc_registration_model->get_uisc_registration_union_user_info($division, $zilla, $upazila, $union, $uisc_status); $html = $this->load->view('default/report/registered_union_user_report', $data, true); //echo $html; System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); if ($this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_BLOG_MEMBER_INFO_UNION_TITLE"); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['report'] = $this->blog_member_info_report_model->get_blog_member_info_union($division, $zilla, $upazila, $union); $this->load->view('default/report/blog_member/blog_member_info_union_report', $data); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_BLOG_MEMBER_INFO_CITY_CORPORATION_TITLE"); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['report'] = $this->blog_member_info_report_model->get_blog_member_info_city_corporation($division, $zilla, $city_corporation, $city_corporation_ward); $this->load->view('default/report/blog_member/blog_member_info_city_corporation_report', $data); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_BLOG_MEMBER_INFO_MUNICIPAL_TITLE"); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $data['report'] = $this->blog_member_info_report_model->get_blog_member_info_municipal($division, $zilla, $municipal, $municipal_ward); $this->load->view('default/report/blog_member/blog_member_info_municipal_report', $data); } else { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_INFO_TITLE"); $data['report'] = ''; $this->load->view('default/report/blog_member/blog_member_info_report_view', $data); } } } } else { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); if ($this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_BLOG_MEMBER_INFO_UNION_TITLE"); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['report'] = $this->blog_member_info_report_model->get_blog_member_info_union($division, $zilla, $upazila, $union); $html = $this->load->view('default/report/blog_member/blog_member_info_union_report', $data, true); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_BLOG_MEMBER_INFO_CITY_CORPORATION_TITLE"); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['report'] = $this->blog_member_info_report_model->get_blog_member_info_city_corporation($division, $zilla, $city_corporation, $city_corporation_ward); $html = $this->load->view('default/report/blog_member/blog_member_info_city_corporation_report', $data, true); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_BLOG_MEMBER_INFO_MUNICIPAL_TITLE"); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $data['report'] = $this->blog_member_info_report_model->get_blog_member_info_municipal($division, $zilla, $municipal, $municipal_ward); $html = $this->load->view('default/report/blog_member/blog_member_info_municipal_report', $data, true); } else { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_INFO_TITLE"); $data['report'] = ''; $html = $this->load->view('default/report/blog_member/blog_member_info_report_view', $data, true); } } } System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); $data['service_id'] = $service_id = $this->input->get('service_id'); $data['month'] = $month = $this->input->get('month'); $data['year'] = $year = $this->input->get('year'); $from_date = $year . '-' . $month . '-01'; $to_date = date('Y-m-t', strtotime($from_date)); /* echo "<pre>"; print_r($data); echo "</pre>"; die;*/ if (!empty($service_id) && $this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("SERVICE_BASED_REPORT"); // $upazila=$this->input->get('upazila'); // $union=$this->input->get('union'); $data['reports'] = $this->services_report_view_model->get_services_based_report_union($division, $zilla, $service_id, $from_date, $to_date); $this->load->view('default/report/services/services_report_union', $data); } else { if (!empty($service_id) && $this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("SERVICE_BASED_REPORT"); // $city_corporation=$this->input->get('city_corporation'); // $city_corporation_ward=$this->input->get('city_corporation_ward'); $data['reports'] = $this->services_report_view_model->get_services_based_report_city_corporation($division, $zilla, $service_id, $from_date, $to_date); $this->load->view('default/report/services/services_report_city_corporation', $data); } else { if (!empty($service_id) && $this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_MUNICIPAL_TITLE"); // $municipal=$this->input->get('municipal'); // $municipal_ward=$this->input->get('municipal_ward'); $data['reports'] = $this->services_report_view_model->get_services_based_report_municipal($division, $zilla, $service_id, $from_date, $to_date); $this->load->view('default/report/services/services_report_municipal', $data); } else { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_TITLE"); $data['report'] = ''; $this->load->view('default/report/services/services_info_report_view', $data); } } } } else { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); $status = $this->input->get('status'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report_status'] = $status; if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_UNION_TITLE"); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['report'] = $this->services_info_report_model->get_services_info_union($division, $zilla, $upazila, $union, $from_date, $to_date); $html = $this->load->view('default/report/services/services_info_union_report', $data, true); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_CITY_CORPORATION_TITLE"); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['report'] = $this->services_info_report_model->get_services_info_city_corporation($division, $zilla, $city_corporation, $city_corporation_ward, $from_date, $to_date); $html = $this->load->view('default/report/services/services_info_city_corporation_report', $data, true); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_MUNICIPAL_TITLE"); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $data['report'] = $this->services_info_report_model->get_services_info_municipal($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date); $html = $this->load->view('default/report/services/services_info_municipal_report', $data, true); } else { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_TITLE"); $data['report'] = ''; $html = $this->load->view('default/report/services/services_info_report_view', $data, true); } } } System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $data['report_type'] = $report_type = $this->input->get('report_type'); $month = $this->input->get('month'); $year = $this->input->get('year'); $data['from_date'] = $from_date = $year . '-' . $month . '-01'; $data['to_date'] = $to_date = date('Y-m-t', strtotime($from_date)); if ($report_type == 1) { $data['title'] = $this->lang->line("REPORT_CABINET_UNION_INCOME_TITLE"); $data['report'] = $this->cabinet_report_model->get_cabinet_union_income($from_date, $to_date); $this->load->view('default/report/cabinet/cabinet_union_income_report', $data); } elseif ($report_type == 2) { $data['title'] = $this->lang->line("REPORT_CABINET_CITY_CORPORATION_INCOME_TITLE"); $data['report'] = $this->cabinet_report_model->get_cabinet_city_corporation_income($from_date, $to_date); $this->load->view('default/report/cabinet/cabinet_city_corporation_income_report', $data); } elseif ($report_type == 3) { $data['title'] = $this->lang->line("REPORT_CABINET_CITY_CORPORATION_INCOME_TITLE"); $data['report'] = $this->cabinet_report_model->get_cabinet_municipal_income($from_date, $to_date); $this->load->view('default/report/cabinet/cabinet_municipal_income_report', $data); } //$division=$this->input->get('division'); //$zilla=$this->input->get('zilla'); //$data['report_type']=$this->input->get('report_type'); //$status=$this->input->get('status'); // $from_date=$this->input->get('from_date'); // $to_date=$this->input->get('to_date'); // $data['from_date']=$from_date; // $data['to_date']=$to_date; // $data['report_status']=$status; // if($this->input->get('report_type')==$this->config->item('ONLINE_UNION_GROUP_ID')) // { // // $data['title']=$this->lang->line("REPORT_CABINET_INCOME_TITLE"); // //$upazila=$this->input->get('upazila'); // //$union=$this->input->get('union'); // $data['report']=$this->cabinet_report_model->get_cabinet_union_income(); // $this->load->view('default/report/cabinet/cabinet_union_income_report',$data); // } // else if($this->input->get('report_type')==$this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) // { // $data['title']=$this->lang->line("REPORT_UPLOAD_REPORT_CITY_CORPORATION_TITLE"); // $city_corporation=$this->input->get('city_corporation'); // $city_corporation_ward=$this->input->get('city_corporation_ward'); // $data['report']=$this->cabinet_report_model->get_cabinet_city_corporation_income($division, $zilla, $city_corporation, $city_corporation_ward, $from_date, $to_date); // $this->load->view('default/report/cabinet/cabinet_city_corporation_income_report',$data); // } // else if($this->input->get('report_type')==$this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) // { // $data['title']=$this->lang->line("REPORT_UPLOAD_REPORT_MUNICIPAL_TITLE"); // $municipal=$this->input->get('municipal'); // $municipal_ward=$this->input->get('municipal_ward'); // $data['report']=$this->cabinet_report_model->get_cabinet_municipal_income($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date); // $this->load->view('default/report/cabinet/cabinet_municipal_income_report',$data); // } // else // { // $data['title']=$this->lang->line("REPORT_UPLOAD_REPORT_TITLE"); // $data['report']=''; // $this->load->view('default/report/cabinet/cabinet_income_report_view',$data); // } } else { $this->load->model("report/cabinet_report_model"); $data['title'] = $this->lang->line("REPORT_CABINET_INCOME_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['report'] = $this->cabinet_report_model->get_cabinet_union_income($division, $zilla, $upazila, $union); $html = $this->load->view('default/report/cabinet/cabinet_union_income_report', $data, true); //echo $html; System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); //$status=$this->input->get('status'); // $from_date=$this->input->get('from_date'); // $to_date=$this->input->get('to_date'); // $data['from_date']=$from_date; // $data['to_date']=$to_date; //$data['report_status']=$status; if ($this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_INFO_TITLE"); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); if (!empty($division)) { $data['element_caption'] = $this->lang->line('ZILLA_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_zilla_level($division); if (!empty($zilla)) { $data['element_caption'] = $this->lang->line('UPAZILLA_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_upazilla_level($division, $zilla); if (!empty($upazila)) { $data['element_caption'] = $this->lang->line('UNION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_union_level($division, $zilla, $upazila); if (!empty($union)) { $data['element_caption'] = $this->lang->line('UNION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_union_level($division, $zilla, $upazila, $union); } } } } else { $data['element_caption'] = $this->lang->line('DIVISION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_division_level(); } $this->load->view('default/report/entrepreneur_info/education_info_union_report', $data); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_INFO_TITLE"); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); //$data['report']=$this->entrepreneur_info_report_model->get_entrepreneur_info_city_corporation($division, $zilla, $city_corporation, $city_corporation_ward); //$this->load->view('default/report/entrepreneur_info/education_info_city_corporation_report',$data); if (!empty($division)) { $data['element_caption'] = $this->lang->line('ZILLA_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_city_corporation_zilla_level($division); if (!empty($zilla)) { $data['element_caption'] = $this->lang->line('CITY_CORPORATION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_city_corporation_level($division, $zilla); if (!empty($city_corporation)) { $data['element_caption'] = $this->lang->line('CITY_CORPORATION_WARD_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_city_corporation_ward_level($division, $zilla, $city_corporation); if (!empty($city_corporation_ward)) { $data['element_caption'] = $this->lang->line('CITY_CORPORATION_WARD_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_city_corporation_ward_level($division, $zilla, $city_corporation, $city_corporation_ward); } } } } else { $data['element_caption'] = $this->lang->line('DIVISION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_city_corporation_division_level(); } $this->load->view('default/report/entrepreneur_info/education_info_union_report', $data); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_INFO_TITLE"); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); //$data['report']=$this->entrepreneur_info_report_model->get_entrepreneur_info_municipal($division, $zilla, $municipal, $municipal_ward); //$this->load->view('default/report/entrepreneur_info/education_info_municipal_report',$data); if (!empty($division)) { $data['element_caption'] = $this->lang->line('ZILLA_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_municipal_zilla_level($division); if (!empty($zilla)) { $data['element_caption'] = $this->lang->line('MUNICIPAL_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_municipal_level($division, $zilla); if (!empty($municipal)) { $data['element_caption'] = $this->lang->line('MUNICIPAL_WARD_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_municipal_ward_level($division, $zilla, $municipal); if (!empty($municipal_ward)) { $data['element_caption'] = $this->lang->line('MUNICIPAL_WARD_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_municipal_ward_level($division, $zilla, $municipal, $municipal_ward); } } } } else { $data['element_caption'] = $this->lang->line('DIVISION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_municipal_division_level(); } $this->load->view('default/report/entrepreneur_info/education_info_union_report', $data); } else { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_INFO_TITLE"); $data['report'] = ''; } } } } else { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); //$status=$this->input->get('status'); // $from_date=$this->input->get('from_date'); // $to_date=$this->input->get('to_date'); // $data['from_date']=$from_date; // $data['to_date']=$to_date; //$data['report_status']=$status; if ($this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_INFO_TITLE"); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); if (!empty($division)) { $data['element_caption'] = $this->lang->line('ZILLA_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_zilla_level($division); if (!empty($zilla)) { $data['element_caption'] = $this->lang->line('UPAZILLA_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_upazilla_level($division, $zilla); if (!empty($upazila)) { $data['element_caption'] = $this->lang->line('UNION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_union_level($division, $zilla, $upazila); if (!empty($union)) { $data['element_caption'] = $this->lang->line('UNION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_union_level($division, $zilla, $upazila, $union); } } } } else { $data['element_caption'] = $this->lang->line('DIVISION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_division_level(); } $html = $this->load->view('default/report/entrepreneur_info/education_info_union_report', $data, true); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_INFO_TITLE"); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); //$data['report']=$this->entrepreneur_info_report_model->get_entrepreneur_info_city_corporation($division, $zilla, $city_corporation, $city_corporation_ward); //$this->load->view('default/report/entrepreneur_info/education_info_city_corporation_report',$data); if (!empty($division)) { $data['element_caption'] = $this->lang->line('ZILLA_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_city_corporation_zilla_level($division); if (!empty($zilla)) { $data['element_caption'] = $this->lang->line('CITY_CORPORATION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_city_corporation_level($division, $zilla); if (!empty($city_corporation)) { $data['element_caption'] = $this->lang->line('CITY_CORPORATION_WARD_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_city_corporation_ward_level($division, $zilla, $city_corporation); if (!empty($city_corporation_ward)) { $data['element_caption'] = $this->lang->line('CITY_CORPORATION_WARD_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_city_corporation_ward_level($division, $zilla, $city_corporation, $city_corporation_ward); } } } } else { $data['element_caption'] = $this->lang->line('DIVISION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_city_corporation_division_level(); } $html = $this->load->view('default/report/entrepreneur_info/education_info_union_report', $data, true); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_INFO_TITLE"); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); //$data['report']=$this->entrepreneur_info_report_model->get_entrepreneur_info_municipal($division, $zilla, $municipal, $municipal_ward); //$this->load->view('default/report/entrepreneur_info/education_info_municipal_report',$data); if (!empty($division)) { $data['element_caption'] = $this->lang->line('ZILLA_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_municipal_zilla_level($division); if (!empty($zilla)) { $data['element_caption'] = $this->lang->line('MUNICIPAL_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_municipal_level($division, $zilla); if (!empty($municipal)) { $data['element_caption'] = $this->lang->line('MUNICIPAL_WARD_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_municipal_ward_level($division, $zilla, $municipal); if (!empty($municipal_ward)) { $data['element_caption'] = $this->lang->line('MUNICIPAL_WARD_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_municipal_ward_level($division, $zilla, $municipal, $municipal_ward); } } } } else { $data['element_caption'] = $this->lang->line('DIVISION_NAME'); $data['report'] = $this->entrepreneur_info_report_model->get_education_info_municipal_division_level(); } $html = $this->load->view('default/report/entrepreneur_info/education_info_union_report', $data, true); } else { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_INFO_TITLE"); $data['report'] = ''; } } } System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $report_type = $this->input->get('report_type'); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $status = $this->input->get('status'); $data['month'] = $month = $this->input->get('month'); $data['year'] = $year = $this->input->get('year'); $from_date = $data['from_date'] = $year . '-' . $month . '-01'; $to_date = $data['to_date'] = date('Y-m-t', strtotime($year . '-' . $month)); if ($report_type == 1) { $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); if ($status == 1) { $data['title'] = "আয়ের ভিত্তিতে উদ্যোক্তা বৃন্দের পারফরম্যান্স সংক্রান্ত প্রতিবেদন"; } elseif ($status == 2) { $data['title'] = "ই-সেবা সংখ্যার ভিত্তিতে উদ্যোক্তা বৃন্দের পারফরম্যান্স সংক্রান্ত প্রতিবেদন"; } elseif ($status == 3) { $data['title'] = "রিপোর্ট আপলোড সংখ্যার ভিত্তিতে উদ্যোক্তা বৃন্দের পারফরম্যান্স সংক্রান্ত প্রতিবেদন"; } $data['reports'] = $this->performance_report_model->get_union_performance_report($division, $zilla, $upazila, $union, $status, $from_date, $to_date); $this->load->view('default/report/performance/performance_union_report', $data); } elseif ($report_type == 2) { $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); if ($status == 1) { $data['title'] = "আয়ের ভিত্তিতে উদ্যোক্তা বৃন্দের পারফরম্যান্স সংক্রান্ত প্রতিবেদন"; } elseif ($status == 2) { $data['title'] = "ই-সেবা সংখ্যার ভিত্তিতে উদ্যোক্তা বৃন্দের পারফরম্যান্স সংক্রান্ত প্রতিবেদন"; } elseif ($status == 3) { $data['title'] = "রিপোর্ট আপলোড সংখ্যার ভিত্তিতে উদ্যোক্তা বৃন্দের পারফরম্যান্স সংক্রান্ত প্রতিবেদন"; } $data['reports'] = $this->performance_report_model->get_city_corporation_performance_report($division, $zilla, $city_corporation, $city_corporation_ward, $status, $from_date, $to_date); $this->load->view('default/report/performance/performance_city_corporation_report', $data); } elseif ($report_type == 3) { $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); if ($status == 1) { $data['title'] = "আয়ের ভিত্তিতে উদ্যোক্তা বৃন্দের পারফরম্যান্স সংক্রান্ত প্রতিবেদন"; } elseif ($status == 2) { $data['title'] = "ই-সেবা সংখ্যার ভিত্তিতে উদ্যোক্তা বৃন্দের পারফরম্যান্স সংক্রান্ত প্রতিবেদন"; } elseif ($status == 3) { $data['title'] = "রিপোর্ট আপলোড সংখ্যার ভিত্তিতে উদ্যোক্তা বৃন্দের পারফরম্যান্স সংক্রান্ত প্রতিবেদন"; } $data['reports'] = $this->performance_report_model->get_municipal_performance_report($division, $zilla, $municipal, $municipal_ward, $status, $from_date, $to_date); $this->load->view('default/report/performance/performance_municipal_report', $data); } } else { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_UNION_TITLE"); $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report'] = $this->upload_report_model->get_union_report_upload_status($division, $zilla, $upazila, $union, $from_date, $to_date); $html = $this->load->view('default/report/upload/upload_report_union_report', $data, true); //echo $html; System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $division = $this->input->get('division'); $data['zilla'] = $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); $status = $this->input->get('status'); $data['month'] = $month = $this->input->get('month'); $data['year'] = $year = $this->input->get('year'); $from_date = $data['from_date'] = $year . '-' . $month . '-01'; $to_date = $data['to_date'] = date('Y-m-t', strtotime($year . '-' . $month)); $data['report_status'] = $status; if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_UNION_TITLE"); $data['upazila'] = $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['uisc_data'] = $this->upload_report_model->get_uisc($division, $zilla, $upazila, $union); $data['report'] = $this->upload_report_model->get_union_report_upload_status($division, $zilla, $upazila, $union, $from_date, $to_date); $this->load->view('default/report/upload/upload_report_union_report', $data); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_CITY_CORPORATION_TITLE"); $data['city_corporation'] = $city_corporation = $this->input->get('city_corporation'); $ward = $this->input->get('union'); $data['uisc_data'] = $this->upload_report_model->get_uisc_for_cdc($division, $zilla, $city_corporation, $ward); $data['report'] = $this->upload_report_model->get_city_corporation_report_upload_status($division, $zilla, $city_corporation, $ward, $from_date, $to_date); $this->load->view('default/report/upload/upload_report_city_corporation_report', $data); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_MUNICIPAL_TITLE"); $data['zilla'] = $zilla; $data['municipal'] = $municipal = $city_corporation = $this->input->get('municipal'); $ward = $this->input->get('municipal_ward'); $data['uisc_data'] = $this->upload_report_model->get_uisc_for_pdc($division, $zilla, $municipal, $ward); $data['report'] = $this->upload_report_model->get_municipal_report_upload_status($division, $zilla, $municipal, $ward, $from_date, $to_date); $this->load->view('default/report/upload/upload_report_municipal_report', $data); } else { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_TITLE"); $data['report'] = ''; $this->load->view('default/report/upload/upload_report_view', $data); } } } } else { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); $status = $this->input->get('status'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report_status'] = $status; if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_UNION_TITLE"); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['report'] = $this->upload_report_model->get_union_report_upload_status($division, $zilla, $upazila, $union, $from_date, $to_date); $html = $this->load->view('default/report/upload/upload_report_union_report', $data, true); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_CITY_CORPORATION_TITLE"); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['report'] = $this->upload_report_model->get_city_corporation_report_upload_status($division, $zilla, $city_corporation, $city_corporation_ward, $from_date, $to_date); $html = $this->load->view('default/report/upload/upload_report_city_corporation_report', $data, true); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_MUNICIPAL_TITLE"); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $data['report'] = $this->upload_report_model->get_municipal_report_upload_status($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date); $html = $this->load->view('default/report/upload/upload_report_municipal_report', $data, true); } else { $data['title'] = $this->lang->line("REPORT_UPLOAD_REPORT_TITLE"); $data['report'] = ''; $html = $this->load->view('default/report/upload/upload_report_view', $data, true); } } } System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); $status = $this->input->get('status'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report_status'] = $status; if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_UNION_TITLE"); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['report'] = $this->services_info_report_model->get_services_info_union($division, $zilla, $upazila, $union, $from_date, $to_date); $this->load->view('default/report/services/services_info_union_report', $data); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_CITY_CORPORATION_TITLE"); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['report'] = $this->services_info_report_model->get_services_info_city_corporation($division, $zilla, $city_corporation, $city_corporation_ward, $from_date, $to_date); $this->load->view('default/report/services/services_info_city_corporation_report', $data); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_MUNICIPAL_TITLE"); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $data['report'] = $this->services_info_report_model->get_services_info_municipal($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date); $this->load->view('default/report/services/services_info_municipal_report', $data); } else { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_TITLE"); $data['report'] = ''; $this->load->view('default/report/services/services_info_report_view', $data); } } } } else { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); $status = $this->input->get('status'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; $data['report_status'] = $status; if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_UNION_TITLE"); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['report'] = $this->services_info_report_model->get_services_info_union($division, $zilla, $upazila, $union, $from_date, $to_date); $html = $this->load->view('default/report/services/services_info_union_report', $data, true); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_CITY_CORPORATION_TITLE"); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['report'] = $this->services_info_report_model->get_services_info_city_corporation($division, $zilla, $city_corporation, $city_corporation_ward, $from_date, $to_date); $html = $this->load->view('default/report/services/services_info_city_corporation_report', $data, true); } else { if (!empty($status) && $this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_MUNICIPAL_TITLE"); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $data['report'] = $this->services_info_report_model->get_services_info_municipal($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date); $html = $this->load->view('default/report/services/services_info_municipal_report', $data, true); } else { $data['title'] = $this->lang->line("REPORT_DIGITAL_CENTER_SERVICES_INFO_TITLE"); $data['report'] = ''; $html = $this->load->view('default/report/services/services_info_report_view', $data, true); } } } System_helper::get_pdf($html); } }
private function report_list($format = "") { if ($format != "pdf") { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); //$status=$this->input->get('status'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; //$data['report_status']=$status; if ($this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_TRAINING_INFO_UNION_TITLE"); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['report'] = $this->entrepreneur_training_info_report_model->get_entrepreneur_training_info_union($division, $zilla, $upazila, $union); $this->load->view('default/report/training/entrepreneur_training_info_union_report', $data); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_TRAINING_INFO_CITY_CORPORATION_TITLE"); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['report'] = $this->entrepreneur_training_info_report_model->get_entrepreneur_training_info_city_corporation($division, $zilla, $city_corporation, $city_corporation_ward, $from_date, $to_date); $this->load->view('default/report/training/entrepreneur_training_info_city_corporation_report', $data); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_TRAINING_INFO_MUNICIPAL_TITLE"); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $data['report'] = $this->entrepreneur_training_info_report_model->get_entrepreneur_training_info_municipal($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date); $this->load->view('default/report/training/entrepreneur_training_info_municipal_report', $data); } else { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_TRAINING_INFO_TITLE"); $data['report'] = ''; $this->load->view('default/report/training/entrepreneur_training_info_report_view', $data); } } } } else { $division = $this->input->get('division'); $zilla = $this->input->get('zilla'); $data['report_type'] = $this->input->get('report_type'); //$status=$this->input->get('status'); $from_date = $this->input->get('from_date'); $to_date = $this->input->get('to_date'); $data['from_date'] = $from_date; $data['to_date'] = $to_date; //$data['report_status']=$status; if ($this->input->get('report_type') == $this->config->item('ONLINE_UNION_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_TRAINING_INFO_UNION_TITLE"); $upazila = $this->input->get('upazila'); $union = $this->input->get('union'); $data['report'] = $this->entrepreneur_training_info_report_model->get_entrepreneur_training_info_union($division, $zilla, $upazila, $union); $html = $this->load->view('default/report/training/entrepreneur_training_info_union_report', $data, true); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_CITY_CORPORATION_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_TRAINING_INFO_CITY_CORPORATION_TITLE"); $city_corporation = $this->input->get('city_corporation'); $city_corporation_ward = $this->input->get('city_corporation_ward'); $data['report'] = $this->entrepreneur_training_info_report_model->get_entrepreneur_training_info_city_corporation($division, $zilla, $city_corporation, $city_corporation_ward, $from_date, $to_date); $html = $this->load->view('default/report/training/entrepreneur_training_info_city_corporation_report', $data, true); } else { if ($this->input->get('report_type') == $this->config->item('ONLINE_MUNICIPAL_WORD_GROUP_ID')) { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_TRAINING_INFO_MUNICIPAL_TITLE"); $municipal = $this->input->get('municipal'); $municipal_ward = $this->input->get('municipal_ward'); $data['report'] = $this->entrepreneur_training_info_report_model->get_entrepreneur_training_info_municipal($division, $zilla, $municipal, $municipal_ward, $from_date, $to_date); $html = $this->load->view('default/report/training/entrepreneur_training_info_municipal_report', $data, true); } else { $data['title'] = $this->lang->line("REPORT_ENTREPRENEUR_TRAINING_INFO_TITLE"); $data['report'] = ''; $html = $this->load->view('default/report/training/entrepreneur_training_info_report_view', $data, true); } } } System_helper::get_pdf($html); } }
private function report_list($format = "") { $inputs = $this->input->get(); $results = $this->Profile_update_status_report_model->get_all_user_info($inputs); $user_info = []; foreach ($results as $result) { if (!empty($result['entrepreneur_id'])) { if (empty($result['entrepreneur_type']) && empty($result['entrepreneur_name']) && empty($result['entrepreneur_father_name']) && empty($result['entrepreneur_mother_name']) && empty($result['entrepreneur_mobile']) && empty($result['entrepreneur_email']) && empty($result['entrepreneur_sex']) && empty($result['entrepreneur_address']) && empty($result['entrepreneur_nid'])) { array_push($user_info, $result); continue; } } else { array_push($user_info, $result); continue; } if (!empty($result['education_id'])) { if (empty($result['latest_education']) && empty($result['passing_year'])) { array_push($user_info, $result); continue; } } else { array_push($user_info, $result); continue; } if (!empty($result['training_id'])) { if (empty($result['course_name']) && empty($result['institute_name']) && empty($result['timespan'])) { array_push($user_info, $result); continue; } } else { array_push($user_info, $result); continue; } if (!empty($result['investment_id'])) { if (empty($result['self_investment']) && empty($result['invest_debt']) && empty($result['invested_money']) && $result['invest_sector'] == '') { array_push($user_info, $result); continue; } } else { array_push($user_info, $result); continue; } if (!empty($result['center_location_id'])) { if (empty($result['center_type'])) { array_push($user_info, $result); continue; } } else { array_push($user_info, $result); continue; } if (empty($result['uisc_resources_id'])) { array_push($user_info, $result); continue; } if (!empty($result['device_info_id'])) { if (empty($result['connection_type']) && empty($result['modem']) && empty($result['ip_address'])) { array_push($user_info, $result); continue; } } else { array_push($user_info, $result); continue; } if (!empty($result['electricity_id'])) { if ($result['electricity'] == "" && $result['solar'] == "" && $result['ips'] == "") { array_push($user_info, $result); continue; } } else { array_push($user_info, $result); continue; } } $data['user_info'] = $user_info; /*echo "<pre>"; print_r($data); echo "</pre>"; die;*/ if ($format != "pdf") { if ($inputs['report_type'] == 1) { $data['title'] = $this->lang->line("REPORT_UNION_USER_PROFILE_UPDATE_STATUS"); $this->load->view('default/report/profile_update_status/report_union', $data); } elseif ($inputs['report_type'] == 2) { $data['title'] = $this->lang->line("REPORT_CITYCORPORATION_USER_PROFILE_UPDATE_STATUS"); $this->load->view('default/report/profile_update_status/report_citycorporation', $data); } elseif ($inputs['report_type'] == 3) { $data['title'] = $this->lang->line("REPORT_MUNICIPAL_USER_PROFILE_UPDATE_STATUS"); $this->load->view('default/report/profile_update_status/report_municipal', $data); } } else { $html = ""; if ($inputs['report_type'] == 1) { $data['title'] = $this->lang->line("REPORT_UNION_USER_PROFILE_UPDATE_STATUS"); $html = $this->load->view('default/report/profile_update_status/report_union', $data, true); } elseif ($inputs['report_type'] == 2) { $data['title'] = $this->lang->line("REPORT_CITYCORPORATION_USER_PROFILE_UPDATE_STATUS"); $html = $this->load->view('default/report/profile_update_status/report_citycorporation', $data, true); } elseif ($inputs['report_type'] == 3) { $data['title'] = $this->lang->line("REPORT_MUNICIPAL_USER_PROFILE_UPDATE_STATUS"); $html = $this->load->view('default/report/profile_update_status/report_municipal', $data, true); } echo $html; System_helper::get_pdf($html); } }