当前位置: 首页>>代码示例>>PHP>>正文


PHP add_msg_if_any函数代码示例

本文整理汇总了PHP中add_msg_if_any函数的典型用法代码示例。如果您正苦于以下问题:PHP add_msg_if_any函数的具体用法?PHP add_msg_if_any怎么用?PHP add_msg_if_any使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了add_msg_if_any函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dashboard

 function dashboard()
 {
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     #Get the paginated list of the news items
     $data = add_msg_if_any($this, $data);
     $current_financial_year = date('m') > 5 ? date('Y') . '-' . (date('Y') + 1) : date('Y') - 1 . '-' . date('Y');
     $search_str = ' PP.financial_year = "' . $current_financial_year . '" ';
     if ($this->session->userdata('isadmin') == 'N') {
         $userdetails = $this->db->get_where('users', array('userid' => $this->session->userdata('userid')))->result_array();
         $search_str .= ' AND PP.pde_id ="' . $userdetails[0]['pde'] . '"';
     }
     /*
     		#Get the paginated list of bid invitations
     		$data = paginate_list($this, $data, 'procurement_plan_details_advanced', array('orderby'=>'bid_dateadded DESC', 'orderby'=>' procurement_plan_entries.dateadded ', 'searchstring'=>$app_select_str)); */
     $data['current_financial_year'] = $current_financial_year;
     $data['num_of_pdes'] = count($this->db->get_where('pdes', array('status' => 'IN', 'isactive' => 'Y'))->result_array());
     $data['total_procurement_records'] = end($this->Query_reader->get_row_as_array('count_procurement_records', array('searchstring' => $search_str)));
     $data['plans_submitted'] = end($this->Query_reader->get_row_as_array('count_plans_submitted', array('searchstring' => $search_str)));
     $data['ifbs_submitted'] = end($this->Query_reader->get_row_as_array('count_ifbs_published', array('searchstring' => $search_str)));
     $data['bebs_published'] = end($this->Query_reader->get_row_as_array('count_bebs_published', array('searchstring' => $search_str)));
     $data['contracts_awarded'] = end($this->Query_reader->get_row_as_array('count_contracts_awarded', array('searchstring' => $search_str)));
     $data['financial_years'] = array(array('fy' => '2016-2017', 'label' => '2016 - 2017'), array('fy' => '2015-2016', 'label' => '2015 - 2016'), array('fy' => '2014-2015', 'label' => '2014 - 2015'), array('fy' => '2013-2014', 'label' => '2013 - 2014'), array('fy' => '2012-2013', 'label' => '2012 - 2013'));
     #exit($this->db->last_query());
     $data['page_title'] = 'Dashboard';
     $data['current_menu'] = 'dashboard';
     $data['incl_to_load'] = 'dashboard';
     $data['view_to_load'] = 'admin/overview2';
     $this->load->view('dashboard_v', $data);
 }
开发者ID:newwavetechug,项目名称:gpp,代码行数:32,代码来源:user.php

示例2: manage_school_info

 function manage_school_info()
 {
     access_control($this);
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     $data = add_msg_if_any($this, $data);
     #get school info
     $data['schooldetails'] = $this->Query_reader->get_row_as_array('search_schools_list', array('limittext' => '', 'searchstring' => ' AND id = ' . $this->myschool['id']));
     $this->load->view('schoolinfo/school_info_view', $data);
 }
开发者ID:nwtug,项目名称:academia,代码行数:12,代码来源:schoolinfo.php

示例3: manage_settings

 function manage_settings()
 {
     access_control($this);
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     $data = add_msg_if_any($this, $data);
     #default to curriculum settings
     $data = paginate_list($this, $data, 'search_subjects', array('isactive' => 'Y', 'searchstring' => ' AND school = ' . $this->myschool['id']));
     $this->load->view('settings/manage_settings_view', $data);
 }
开发者ID:nwtug,项目名称:academia,代码行数:12,代码来源:schoolsettings.php

示例4: manage_contracts

 function manage_contracts()
 {
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));
     $data = assign_to_data($urldata);
     $data = add_msg_if_any($this, $data);
     $data = handle_redirected_msgs($this, $data);
     $data['manage_bes'] = $this->disposal->manage_disposal_contracts(0, $data);
     #print_r($data['manage_bes']);
     $data['page_title'] = 'Manage Disposal Contracts ';
     $data['current_menu'] = 'view_bid_responses';
     $data['view_to_load'] = 'disposal/manage_contracts';
     $data['view_data']['form_title'] = $data['page_title'];
     $this->load->view('dashboard_v', $data);
 }
开发者ID:newwavetechug,项目名称:gpp,代码行数:14,代码来源:disposal.php

示例5: manage_incidents

 function manage_incidents()
 {
     access_control($this);
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     $student_id = !empty($data['i']) ? decryptValue($data['i']) : '';
     #get the student info
     $data['student_details'] = $this->Query_reader->get_row_as_array('get_students_list', array('isactive' => 'Y', 'searchstring' => ' AND id=\'' . $student_id . '\'', 'limittext' => ''));
     #Get the paginated list of incidents
     $data = paginate_list($this, $data, 'search_discipline', array('isactive' => 'Y', 'searchstring' => (!empty($student_id) ? ' students.id=\'' . $student_id . '\'' : '1=1') . '  ORDER BY incidentdate DESC', 'school' => '\'' . $this->myschool['id'] . '\''));
     $data = add_msg_if_any($this, $data);
     $this->load->view('discipline/manage_incidents_view', $data);
 }
开发者ID:nwtug,项目名称:academia,代码行数:15,代码来源:discipline.php

示例6: notifyrop

 function notifyrop($bidinvitation)
 {
     $bidinvitation = $bidinvitation;
     #################################################
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(2, array('m', 'p'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     $data = add_msg_if_any($this, $data);
     #print_r($data); exit();
     $data = handle_redirected_msgs($this, $data);
     $search_str = '';
     $level = $status = $this->uri->segment(3);
     $data['level'] = $level;
     $search_str = ' AND bidinvitations.id="' . $bidinvitation . '"';
     $records = paginate_list($this, $data, 'bid_invitation_details', array('orderby' => 'bid_dateadded DESC', 'searchstring' => 'bidinvitations.isactive = "Y"  AND bidinvitations.id not in (SELECT bid_id FROM receipts INNER JOIN bidinvitations ON receipts.bid_id =  bidinvitations.id  INNER JOIN bestevaluatedbidder
   ON receipts.receiptid = bestevaluatedbidder.pid  WHERE receipts.beb="Y" ) ' . $search_str), 10);
     #bid invitation details
     $recorded_data = $records['page_list'][0];
     #procurement type::
     $procurementType = $recorded_data['procurement_type'];
     if ($procurementType == 'Non consultancy services' || $procurementType == 'Consultancy Services') {
         $procurementType = "Services";
     }
     #connect to ROP to fetch providers with that procurement method.
     $this->load->model('Remoteapi_m');
     $emaillist = $this->Remoteapi_m->emaillist_providers($procurementType);
     #  print_r($recorded_data);
     $str = '<table>' . '<tr> <th colspan="2"><h2> RE: BID INVITATION </h2> </th> </tr>' . '<tr> <th> PROCUREMENT AND DISPOSING ENTITY </th> <td>' . $recorded_data['pdename'] . '<td> </tr>' . '<tr> <th> FINANCIAL YEAR </th> <td>' . $recorded_data['financial_year'] . '<td> </tr>' . '<tr> <th> PROCUREMENT REFERENCE NUMBER </th> <td>' . $recorded_data['procurement_ref_no'] . '<td> </tr>' . '<tr> <th> SUBJECT OF PROCUREMENT </th> <td>' . $recorded_data['subject_of_procurement'] . '<td> </tr>' . '<tr> <th> PROCUREMENT TYPE </th> <td>' . $recorded_data['procurement_type'] . '<td> </tr>' . '<tr> <th> PROCUREMENT METHOD </th> <td>' . $recorded_data['procurement_method'] . '<td> </tr>' . '<tr> <th> SOURCE OF FUNDING </th> <td>' . $recorded_data['funding_source'] . '<td> </tr>' . '<tr> <th>BID SUBMISSION DEADLINE </th> <td>' . date('m -d,Y', strtotime($recorded_data['bid_submission_deadline'])) . '<td> </tr>' . '</table>' . ' NOTE : <BR/>' . ' FOR MORE INFORMATION : ';
     $strbody = html_entity_decode($str);
     #  $this->load->library('email');
     echo "sending starts <br/> <br/>";
     echo "<ul>";
     while ($row = mysqli_fetch_array($emaillist)) {
         $this->email->from('noreply@tenderportal.ppda.go.ug', 'Tender Portal Notifications');
         $this->email->to('' . $row['email'] . '');
         //   $this->email->cc('rmuyinda@newwavetech.co.ug');
         #$this->email->bcc('rmuyinda@newwavetech.co.ug');
         $this->email->subject('RE: BID INVITATION');
         $this->email->message('' . $strbody . '');
         $this->email->send();
         echo "<li>" . $row['email'] . "</li>";
     }
     echo "</ul><br/><br/>Sending Finished";
     #fetch data about these guys
     ## fetch records ###
     # print_r($records['page_list'][0]);
     ##################################################
     # end
 }
开发者ID:newwavetechug,项目名称:gpp,代码行数:50,代码来源:notification_m.php

示例7: manage_gradebook

 function manage_gradebook()
 {
     access_control($this);
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     #Get subjects assigned to the teacher
     #Get the school terms
     $data['terms'] = $this->terms->get_terms('', ' AND startdate<"' . date("Y-m-d") . '"', 'DESC');
     #print_r($data['terms']);
     //Concatenate years to the terms for the user
     foreach ($data['terms'] as $key => $termdetails) {
         $data['terms'][$key]['term'] = $data['terms'][$key]['term'] . ' [' . $termdetails['year'] . ']';
     }
     //get the subjects assigned to the teacher
     $data['subjects'] = $this->db->query($this->Query_reader->get_query_by_code('get_teacher_subjects', array('teacher' => $this->session->userdata('userid'))))->result_array();
     //get the current term info
     $data['current_term'] = current_term($this, $this->myschool['id']);
     $data = add_msg_if_any($this, $data);
     $this->load->view('gradebook/manage_gradebook_view', $data);
 }
开发者ID:nwtug,项目名称:academia,代码行数:22,代码来源:gradebook.php

示例8: preview_photo

 function preview_photo()
 {
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('i'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     //echo decryptValue($data['i']);
     #Get disease details
     if (!empty($data['i'])) {
         $data['formdata'] = $this->Query_reader->get_row_as_array('get_image_by_id', array('id' => decryptValue($data['i'])));
     } else {
         $this->session->set_userdata('fmsg', "WARNING: The photo details could not be obtained.");
         redirect(base_url() . "photo/album/m/fmsg");
     }
     $data = add_msg_if_any($this, $data);
     $this->load->view('photo/preview_photo', $data);
 }
开发者ID:nwtug,项目名称:academia,代码行数:17,代码来源:photo.php

示例9: report_list

 function report_list()
 {
     access_control($this);
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i', 'up'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     $isactive = !empty($data['t']) && decryptValue($data['t']) == 'archive' ? 'N' : 'Y';
     #Get the paginated list of the reports
     $data = paginate_list($this, $data, 'get_user_report_list', array('userid' => $this->session->userdata('userid'), 'isactive' => $isactive, 'searchstring' => ''));
     $data = add_msg_if_any($this, $data);
     $this->load->view('reports/user_report_list_view', $data);
 }
开发者ID:nwtug,项目名称:academia,代码行数:13,代码来源:reports.php

示例10: view_video

 function view_video()
 {
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 's'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     $data['area'] = "view_video";
     $data = add_msg_if_any($this, $data);
     $this->load->view('incl/addons', $data);
 }
开发者ID:nwtug,项目名称:academia,代码行数:10,代码来源:page.php

示例11: manage_student_sponsors

 function manage_student_sponsors()
 {
     access_control($this);
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     $data['student_info'] = get_db_object_details($this, 'students', decryptValue($data['i']));
     #Get the paginated list of the students
     $data = paginate_list($this, $data, 'student_sponsors', array('searchstring' => ' AND students.id=' . decryptValue($data['i']), 'orderby' => 'fromdate DESC', 'student' => decryptValue($data['i'])));
     $data = add_msg_if_any($this, $data);
     $this->load->view('students/manage_student_sponsors_view', $data);
 }
开发者ID:nwtug,项目名称:academia,代码行数:13,代码来源:sponsors.php

示例12: show_nav_details

 function show_nav_details()
 {
     access_control($this);
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     if (!empty($data['fundedamount']) && !empty($data['commitmentamount'])) {
         $fundedamount = removeCommas(restore_bad_chars($data['fundedamount']));
         $commitmentamount = removeCommas(restore_bad_chars($data['commitmentamount']));
         $fundedamt = !empty($fundedamount) ? $fundedamount : 0;
         $commitmentamt = !empty($commitmentamount) ? $commitmentamount : 0;
     }
     if (!empty($fundedamt) && !empty($commitmentamt)) {
         $data['unfunded'] = $commitmentamt - $fundedamt;
     }
     $data['area'] = "nav_amt_details";
     $data = add_msg_if_any($this, $data);
     $this->load->view('incl/addons', $data);
 }
开发者ID:nwtug,项目名称:academia,代码行数:20,代码来源:deal.php

示例13: populatelots

 function populatelots()
 {
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     $data = add_msg_if_any($this, $data);
     $data = handle_redirected_msgs($this, $data);
     $result = $this->Receipts_m->findlottedproviders($_POST);
     // # fetch receipts Id ::
     // $post = $_POST;
     // $lotid = $post['lotid'];
     // #$query = $this->db->query("SELECT * FROM ");
     print_r($result);
 }
开发者ID:newwavetechug,项目名称:gpp,代码行数:15,代码来源:receipts.php

示例14: manage_receipts

 function manage_receipts()
 {
     $urldata = $this->uri->uri_to_assoc(3, array('m'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     $data = add_msg_if_any($this, $data);
     $data = handle_redirected_msgs($this, $data);
     $data['page_title'] = 'Manage Receipts';
     $data['current_menu'] = 'manage_bid_receipts';
     $data['view_to_load'] = 'receipts/manage_receipts_v';
     $data['view_data']['form_title'] = $data['page_title'];
     $this->load->view('dashboard_v', $data);
 }
开发者ID:newwavetechug,项目名称:gpp,代码行数:13,代码来源:bids.php

示例15: manage_contracts

 function manage_contracts()
 {
     # Get the passed details into the url data array if any
     $urldata = $this->uri->uri_to_assoc(3, array('m', 'p'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     $data = add_msg_if_any($this, $data);
     $data = handle_redirected_msgs($this, $data);
     $search_str = '';
     if ($this->session->userdata('isadmin') == 'N') {
         $userdata = $this->db->get_where('users', array('userid' => $this->session->userdata('userid')))->result_array();
         $search_str = ' AND PP.pde_id="' . $userdata[0]['pde'] . '"';
     }
     #Get the paginated list of users
     $data = paginate_list($this, $data, 'get_published_contracts', array('orderby' => 'C.date_signed DESC', 'searchstring' => ' AND C.isactive="Y"' . $search_str));
     #exit($this->db->last_query());
     $data = handle_redirected_msgs($this, $data);
     $data = add_msg_if_any($this, $data);
     $data['page_title'] = 'Manage contracts';
     $data['current_menu'] = 'view_contracts';
     $data['view_to_load'] = 'contracts/manage_contracts';
     $data['search_url'] = 'contracts/search_contracts';
     $data['form_title'] = $data['page_title'];
     $this->load->view('dashboard_v', $data);
 }
开发者ID:newwavetechug,项目名称:gpp,代码行数:25,代码来源:contracts.php


注:本文中的add_msg_if_any函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。