• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP flashMsg函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: output_errors

	/**
	 * Output Validation Errors
	 *
	 * Using the Status class move all errors into an error
	 * message
	 *
	 * @access public
	 */
        
	function output_errors()
	{
		// Make sure the status module is
               $this->CI->load->library('status/status/status');
               $error = $this->error_string(' ',' ');
		flashMsg('warning',$error);
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:16,代码来源:NIW_Form_validation.php


示例2: __construct

	function __construct()
	{
		parent::__construct();
		// Set base crumb
		$this->bep_site->set_crumb($this->lang->line('backendpro_control_panel'),'admin');
		// Set container variable
		$this->_container = $this->config->item('backendpro_template_admin') . "container.php";
		$this->_phpinfocontainer = $this->config->item('backendpro_template_admin') . "phpinfocontainer.php";
		// Set Pop container variable
		$this->_popup_container = $this->config->item('backendpro_template_admin') . "popup.php";
		// Make sure user is logged in
		check('Control Panel');
		// Check to see if the install path still exists
		if( is_dir('install'))
		{
			flashMsg('warning',$this->lang->line('backendpro_remove_install'));
		}                
		// Set private meta tags
		//$this->bep_site->set_metatag('name','content',TRUE/FALSE);
		$this->bep_site->set_metatag('robots','nofollow, noindex');
		$this->bep_site->set_metatag('pragma','nocache',TRUE);
		// Load the ADMIN asset group
		$this->bep_assets->load_asset_group('ADMIN');
		// Loading module model for menu on the left
		$this->load->model('category/MCats');
		$this->load->model('currency/MCurrency');
		$this->lang->load('shop');
		$this->load->language('kaimonokago/kaimonokagoadmin');
		$this->load->language('welcome/webshop');
		log_message('debug','BackendPro : Admin_Controller class loaded');
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:Admin_Controller.php


示例3: add_schedule

 function add_schedule($object)
 {
     $group_id = $object['group_name'];
     $where['group_id'] = $group_id;
     $this->CI->schedule_model->delete_schedule($where);
     $days = array('sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday');
     $index = 0;
     $day_number = 0;
     /* 0 for sunday, 1 for monday and so on */
     foreach ($days as $day) {
         $index = 0;
         $data = array();
         foreach ($object[$day] as $item) {
             $hr = explode(':', $item, 2);
             $hr = $hr[0];
             $data['group_id'] = $group_id;
             $data['day'] = $day;
             $data['start_time'] = $item;
             $data['duration'] = $object[$day][$index++];
             $data['order'] = $index;
             $data['slot'] = $day_number * 24 + $hr;
             $this->CI->schedule_model->add_schedule($data);
         }
         $day_number++;
     }
     flashMsg('success', 'Schedule added successfully');
     return;
 }
开发者ID:hackjatra,项目名称:twischedule,代码行数:28,代码来源:schedule_library.php


示例4: Admin_Controller

 function Admin_Controller()
 {
     parent::Site_Controller();
     // Set base crumb
     $this->bep_site->set_crumb($this->lang->line('backendpro_control_panel'), 'admin');
     // Set container variable
     $this->_container = $this->config->item('backendpro_template_admin') . "container.php";
     // Set Pop container variable
     $this->_popup_container = $this->config->item('backendpro_template_admin') . "popup.php";
     // Make sure user is logged in
     check('Control Panel');
     // Check to see if the install path still exists
     if (is_dir('install')) {
         flashMsg('warning', $this->lang->line('backendpro_remove_install'));
     }
     // Set private meta tags
     //$this->bep_site->set_metatag('name','content',TRUE/FALSE);
     $this->bep_site->set_metatag('robots', 'nofollow, noindex');
     $this->bep_site->set_metatag('pragma', 'nocache', TRUE);
     // Load the ADMIN asset group
     $this->bep_assets->load_asset_group('ADMIN');
     // Loading language file here rather than Shop_admin_controller.php.
     // Otherwise menu items will not be displayed
     $this->lang->load('shop');
     $this->load->module_language('kaimonokago', 'kaimonokagoadmin');
     $this->load->module_language('welcome', 'webshop');
     log_message('debug', 'BackendPro : Admin_Controller class loaded');
 }
开发者ID:nithindavid,项目名称:Kaimonokago,代码行数:28,代码来源:Admin_controller.php


示例5: delete

 function delete()
 {
     $this->MKaimonokago->deleteitem($this->table, $this->id);
     $this->session->set_flashdata('message', $this->lang->line('kago_deleted'));
     flashMsg('success', $this->lang->line('kago_deleted'));
     redirect($this->module . "/admin/index/", "refresh");
 }
开发者ID:nithindavid,项目名称:Kaimonokago,代码行数:7,代码来源:admin.php


示例6: update

	function update($id)
	{
		$this->form_validation->set_rules('ten','"Tên"','required');
		$this->form_validation->set_rules('diachi','"Địa chỉ"','required');
		$this->form_validation->set_rules('dienthoai','"Điện thoại"','required');
		$this->form_validation->set_rules('email','"Email"','required');
		$this->form_validation->set_rules('website','"Website"','required');
		
		if($this->form_validation->run())
		{
			$this->MContact->updateContact($id);
			$data['title']="Quản lý địa chỉ liên hệ";
			$data['module'] = $this->module;
			$data['header'] = $this->lang->line('backendpro_access_control');
			$data['page'] = $this->config->item('backendpro_template_admin')."view";
			$data['contact'] = $this->MContact->getListContact();	    
	   	 	flashMsg('success','Thông tin liên hệ được cập nhật thành công');	
			$this->load->view($this->_container,$data);
		}
		else 
		{
			$data['title']="Quản lý địa chỉ liên hệ";
			$data['module'] = $this->module;
			$data['header'] = $this->lang->line('backendpro_access_control');
			$data['page'] = $this->config->item('backendpro_template_admin')."view";
			$data['contact'] = $this->MContact->getListContact();	    
	   	 	flashMsg('error','Bạn phải nhập đầy đủ thông tin');	
			$this->load->view($this->_container,$data);
		}
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:30,代码来源:admin.php


示例7: index

 function index()
 {
     //security check
     $this->freakauth_light->check('admin');
     //load necessary models and libraries
     $this->load->model('postplanmodel');
     $this->load->library('validation');
     //set rules for falidation
     $rules['packet'] = 'required';
     $rules['time'] = 'required';
     $rules['idletimeout'] = 'required';
     $this->validation->set_rules($rules);
     //get price for /byte and /minute
     $data['packet'] = $this->postplanmodel->getPerByte();
     $data['time'] = $this->postplanmodel->getPerMinute();
     $data['idletimeout'] = $this->postplanmodel->getIdleTimeout();
     $data['bw_download'] = $this->postplanmodel->getDownloadRate();
     $data['bw_upload'] = $this->postplanmodel->getUploadRate();
     //set page information
     $data['title'] = 'Postpaid Setting';
     $data['action'] = 'Postpaid Setting';
     $data['notice'] = '';
     $this->load->vars($data);
     if ($this->validation->run() == FALSE) {
         $this->load->view('admin/postplan/postplan_view');
     } else {
         $this->postplanmodel->save();
         // $data['notice'] = 'Postpaid Settings Saved !';
         flashMsg('Postpaid Settings Saved !');
         redirect('/admin/postplan');
     }
 }
开发者ID:wrtcoder,项目名称:EasyHotspot,代码行数:32,代码来源:postplan.php


示例8: output_errors

 /**
  * Output Validation Errors
  *
  * Using the Status class move all errors into an error
  * message
  *
  * @access public
  */
 function output_errors()
 {
     // Make sure the status module is
     $this->CI->load->module_library('status', 'status');
     foreach ($this->_error_array as $error) {
         flashMsg('warning', $error);
     }
 }
开发者ID:nithindavid,项目名称:Kaimonokago,代码行数:16,代码来源:MY_Validation.php


示例9: delete_group

 function delete_group($where)
 {
     $status = $this->CI->group_model->delete_group($where);
     if ($status) {
         flashMsg('success', "Group Deleted Successfully");
     } else {
         flashMsg('warning', "Sorry Group Can't be deleted");
     }
     return;
 }
开发者ID:hackjatra,项目名称:twischedule,代码行数:10,代码来源:group_library.php


示例10: create

 function create()
 {
     $this->freakauth_light->check('user');
     if ($this->invoicemodel->insert($this->uri->segment(3))) {
         $this->print_invoice();
         flashMsg('Invoice Created');
         $this->load->view('invoice/invoice_view.php');
     } else {
         flashMsg('Cannot Create Invoice, this account has never been used');
         redirect('postpaid', 'location');
     }
 }
开发者ID:wrtcoder,项目名称:EasyHotspot,代码行数:12,代码来源:invoice.php


示例11: view

		function view($id=0)
		{
			$this->bep_assets->load_asset_group('TINYMCE');
	    	$data['title']='Hỏi đáp';
			$data['module'] = $this->module;
	        $data['hoidap']=$this->Mhoidap->getView($id);
			$data['header'] = $this->lang->line('backendpro_access_control');
	        $data['page'] = $this->config->item('backendpro_template_admin') . "admin_hoidap_view";
			$this->bep_site->set_crumb($this->lang->line('kogo_edit_hoidap'));
			flashMsg('succes','Hiển thị câu hỏi số '.$id.' thành công');
	        $this->load->view($this->_container,$data);
	    }
开发者ID:hungnv0789,项目名称:vhtm,代码行数:12,代码来源:admin.php


示例12: update

		function update()
		{
			$this->bep_assets->load_asset_group('TINYMCE');
	        $data['hjx'] = $this->Mslide->getIDs();
	        $x = $data['hjx'];
	        foreach($x as $key => $list )
	        {
	         	$data = $this->_fields($list['id']);	
	        	$this->Mslide->updateSlide($data);		
	        }
			
	        $this->index();
	        flashMsg('success','Cập nhật thành công!!!');
		}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:14,代码来源:admin.php


示例13: delete

 function delete($id)
 {
     if (IS_AJAX) {
         $this->MMessages->delete($id);
     } else {
         if ($id) {
             $this->MMessages->delete($id);
             flashMsg('success', 'Task deleted');
             redirect('messages/admin/', 'refresh');
         }
         flashMsg('warning', 'Task not deleted');
         redirect('messages/admin/', 'refresh');
     }
 }
开发者ID:nithindavid,项目名称:Kaimonokago,代码行数:14,代码来源:admin.php


示例14: upload

		function upload()
		{
			$config['upload_path'] = './assets/upload/';
			$config['allowed_types'] = '*';
			$config['max_size']	= '0';
			$config['max_width']  = '0';
			$config['max_height']  = '0';
			
			$this->load->library('upload', $config);
			if ( ! $this->upload->do_upload())
			{
				$data['module'] = $this->module;
				$error = array('error' => $this->upload->display_errors());
				$data['title']="Cập nhật lịch học";
				$data['header'] = $this->lang->line('backendpro_access_control');
				$data['page'] = $this->config->item('backendpro_template_admin') . "admin_lichhoc_home";
				$data['query']=$this->Mlichhoc->get_lichhoc();
				flashMsg('error','Bạn chưa chọn file upload hoặc định dạng file không phù hợp');
				$this->load->view($this->_container,$data);
			}
			else
			{
				$upload=$this->upload->data();
				
				if($this->Mlichhoc->delete_lichhoc()==true)
				{
					$pathToFile = 'assets/upload/'.$upload['file_name'];
					$dulieu = new Spreadsheet_Excel_Reader($pathToFile,false,"UTF-8");
					
					for ($i = 2; $i <= $dulieu->sheets[0]['numRows']; $i++) 
						    {
						    	$khoa		=	$dulieu->sheets[0]['cells'][$i][1];
								$thoigian	=	$dulieu->sheets[0]['cells'][$i][2];
								$diadiem	=	$dulieu->sheets[0]['cells'][$i][3];
								$giangvien	=	$dulieu->sheets[0]['cells'][$i][4];
								
						      	$this->Mlichhoc->insert_lichhoc($khoa,$thoigian,$diadiem,$giangvien);
						    }
					 
					if(file_exists($pathToFile))
						unlink($pathToFile);
					
					redirect(base_url().'index.php/lichhoc/admin','refresh');
				}			
			}


		}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:48,代码来源:admin.php


示例15: edit

 function edit()
 {
     if ($this->input->post('langname')) {
         $data = $this->_fields();
         $this->MKaimonokago->updateItem($this->module, $data);
         flashMsg('success', $this->lang->line('kago_updated'));
         redirect($this->module . '/admin/index', 'refresh');
     } else {
         $id = $this->uri->segment(4);
         $data['title'] = $this->lang->line('kago_edit');
         $data['info'] = $this->MKaimonokago->getInfo($this->module, $id);
         $data['header'] = $this->lang->line('backendpro_access_control');
         $data['page'] = $this->config->item('backendpro_template_admin') . "admin_edit";
         $data['module'] = $this->module;
         $this->load->view($this->_container, $data);
     }
 }
开发者ID:nithindavid,项目名称:Kaimonokago,代码行数:17,代码来源:admin.php


示例16: addContact

 function addContact()
 {
     $this->CI->load->plugin('gmail_contacts');
     if (strstr($_SERVER['REQUEST_URI'], '?')) {
         $tokens = array();
         $responce = $_SERVER['REQUEST_URI'];
         $responcearr = explode('?', $responce);
         if (!empty($responcearr)) {
             $gets = explode('&', $responcearr[1]);
             if (!empty($gets)) {
                 foreach ($gets as $value) {
                     $array = explode('=', $value);
                     if (!empty($array)) {
                         $tokens[$array[0]] = $array[1];
                     }
                 }
             }
         }
         $contacts = getContacts($tokens, $this->CI->config->item('SMS_google_ckey'), $this->CI->config->item('SMS_google_csecretkey'), $this->CI->config->item('SMS_google_callbackurl'));
         $data['contacts'] = $contacts;
         return $this->CI->load->view($this->CI->config->item('SMS_gcontacts_list_view'), $data, TRUE);
         die;
     }
     $fields['mobileno'] = $this->CI->lang->line('SMS_mobileno_label');
     $fields['full_name'] = $this->CI->lang->line('SMS_fullname_label');
     $rules['mobileno'] = $this->CI->config->item('SMS_mobileno_field_validation_smssend');
     $rules['full_name'] = $this->CI->config->item('SMS_fullname_field_validation_smssend');
     $this->CI->fal_validation->set_fields($fields);
     $this->CI->fal_validation->set_rules($rules);
     $data['ss'] = '';
     if ($this->CI->fal_validation->run()) {
         $user_id = $this->user_id;
         $mobileno = $this->CI->input->post('mobileno');
         $fullname = $this->CI->input->post('full_name');
         $values = array('user_id' => $user_id, 'name' => $fullname, 'mobileno' => $mobileno, 'createdon' => date("Y-m-d H:i:s"));
         $this->CI->contactsmodel->insert($values);
         flashMsg('Contact added Successfully');
         redirect('contacts/show');
     } else {
         $data['gconnect'] = getGoogleConnectLink($this->CI->config->item('SMS_google_ckey'), $this->CI->config->item('SMS_google_csecretkey'), $this->CI->config->item('SMS_google_callbackurl'));
         return $this->CI->load->view($this->CI->config->item('SMS_contacts_form_view'), $data, TRUE);
     }
 }
开发者ID:behzad900,项目名称:rspsms,代码行数:43,代码来源:Contacts_lib.php


示例17: index

 function index()
 {
     $this->load->library('validation');
     $data['action'] = "FreeRadius captive portal management";
     $data['chilli_configuration'] = $this->easyhotspot_chillispot->get_configuration();
     $rules['radiusserver1'] = 'required';
     $rules['radiusserver2'] = 'required';
     $rules['radiussecret'] = 'required';
     $rules['dhcpif'] = 'required';
     $rules['uamserver'] = 'required';
     $rules['uamhomepage'] = 'required';
     $rules['uamsecret'] = 'required';
     $rules['uamallowed'] = 'required';
     $this->validation->set_rules($rules);
     if ($this->validation->run() == FALSE) {
         $this->load->vars($data);
         $this->load->view('admin/freeradius/freeradius_view');
     } else {
         $this->easyhotspot_chillispot->set_configuration($_POST);
         flashMsg('Configuration Saved');
         redirect('admin/freeradius', 'location');
     }
 }
开发者ID:wrtcoder,项目名称:EasyHotspot,代码行数:23,代码来源:freeradius.php


示例18: edit

    function edit($id=0)
    {
    	$this->bep_assets->load_asset_group('TINYMCE');
    	$this->form_validation->set_rules('noidung','Nội dung','required|trim');
		$this->form_validation->set_rules('tieude','Tiêu đề','required|trim');
		$this->form_validation->set_rules('alias','Alias','required|trim');
		$this->form_validation->set_message('required','Mục %s không được để trống');
		
		if ($this->form_validation->run())
		{
			$input=$this->_field();
			$this->Mtintuc->updateNews($id,$input);
			flashMsg('success','Cập nhật tin thành công');
	        redirect($this->module.'/admin/index','refresh');
		}
		else 
		{
			$data['tintuc']=$this->Mtintuc->getDetailByID($id);
	    	$data['page'] = $this->config->item('backendpro_template_admin') . "admin_tintuc_edit";
	    	$data['title']='Sửa tin';
	    	$data['cancel_link']= $this->module."/admin/index/";
	        $this->load->view($this->_container,$data);
		}
    }
开发者ID:hungnv0789,项目名称:vhtm,代码行数:24,代码来源:admin.php


示例19: delete

 function delete()
 {
     $this->MKaimonokago->deleteitem($this->table, $this->id);
     $this->session->set_flashdata('message',$this->lang->line('kago_deleted'));
     flashMsg('success',$this->lang->line('kago_deleted'));
     if(!empty($this->sub_controller))
     {// for cecilieokada.com products/manage/
         redirect($this->module."/".$this->sub_controller."/index/".$this->category_id,"refresh");
     }
     elseif($this->module=='email')
     {
         $this->module='subscribers';
         redirect($this->module."/admin/email_home/","refresh");
     }
     elseif($this->module=='emailtemplate')
     {
         $this->module='subscribers';
         redirect($this->module."/admin/template_home/","refresh");
     }
     else
     {
         redirect($this->module."/admin/index/","refresh");
     }
 }
开发者ID:hungnv0789,项目名称:vhtm,代码行数:24,代码来源:admin.php


示例20: delete

 function delete($id = 0)
 {
     $this->MCalendar->deleteEvent($id);
     $this->session->set_flashdata('message', 'Event deleted successfully.');
     flashMsg('success', 'Event deleted successfully.');
     redirect('calendar/admin/index');
 }
开发者ID:nithindavid,项目名称:Kaimonokago,代码行数:7,代码来源:admin.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP flash_error函数代码示例发布时间:2022-05-15
下一篇:
PHP flashMessage函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap