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


PHP set_notify函数代码示例

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


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

示例1: send

    function send($id = FALSE)
    {
        if ($_POST) {
            $this->load->library('email');
            $this->email->from($_POST["email"], $_POST["name"]);
            $user = new User($id);
            $this->email->to($user->email);
            //$this->email->to('unisexx@hotmail.com');
            $this->email->bcc('unisexx@hotmail.com');
            $this->email->subject($_POST["title"]);
            $this->email->message($_POST["detail"]);
            if ($_FILES['attach']['name']) {
                $executives = new Executive();
                $_POST['attach'] = $executives->upload($_FILES['attach'], 'uploads/attachment/');
                $this->email->attach('uploads/attachment/' . $_POST['attach']);
            }
            $this->email->send();
            //echo $this->email->print_debugger();
            set_notify('success', 'ส่งข้อความเรียบร้อย');
            echo '<script type="text/javascript">
					parent.location = unescape(parent.location.pathname);
					</script>
			';
            //$this->load->view('sendmail');
        }
    }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:26,代码来源:executives.php

示例2: view

 function view($id)
 {
     $data['notice'] = new Notice($id);
     if ($_POST) {
         $data['notice_comment'] = new Notice_comment();
         $_POST['notice_id'] = $id;
         $data['notice_comment']->from_array($_POST);
         $data['notice_comment']->save();
         $this->load->library('email');
         $config['mailtype'] = 'html';
         $this->email->initialize($config);
         $this->email->from('system@thaigcd.ddc.moph.go.th', 'system@thaigcd.ddc.moph.go.th');
         $email = 'jakepong@hotmail.com';
         //$email = 'nooampzi@hotmail.com';
         $this->email->to($email);
         $this->email->subject('เสนอแนะวิจารณ์ - ' . lang_decode($data['notice']->title));
         $this->email->message($this->load->view('view', $data, TRUE));
         $this->email->send();
         set_notify('success', 'บันทึกข้อเสนอแนะของคุณเรียบร้อยแล้วค่่ะ');
         redirect($_SERVER['HTTP_REFERER']);
     }
     $data['type'] = array('7' => 'ico_notify_03.png', '8' => 'ico_notify_06.png', '9' => 'ico_notify_08.png', '193' => 'ico_notify_10.png');
     $this->template->set_layout('layout_blank');
     $this->template->build('notice_view', $data);
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:25,代码来源:notices.php

示例3: delete

 function delete($id = false)
 {
     $info = new Executive_info($id);
     $info->delete();
     set_notify('success', lang('save_data_complete'));
     redirect($_SERVER['HTTP_REFERER']);
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:7,代码来源:executive_infos.php

示例4: save

 function save()
 {
     $data['register'] = new Register();
     $data['register']->from_array($_POST);
     $data['register']->save();
     if ($_POST) {
         $this->load->library('email');
         $config['mailtype'] = 'html';
         $this->email->initialize($config);
         $this->email->from('system@thaigcd.ddc.moph.go.th', 'system@thaigcd.ddc.moph.go.th');
         //$email = 'nooampzi@hotmail.com,unisexx@hotmail.com';
         //$email = 'jakepong@hotmail.com,luksana_2708@hotmail.com,un_run@yahoo.com,wutsn@hotmail.com';
         $email = 'luksana_2708@hotmail.com,un_run@yahoo.com,wutsn@hotmail.com';
         $this->email->to($email);
         $this->email->subject('ใบสมัครศูนย์เด็กเล็กปลอดโรค - ' . $data['register']->center);
         $this->email->message($this->load->view('view', $data, TRUE));
         $this->email->send();
         //echo $this->email->print_debugger();
         $this->email->to($_POST['email']);
         $this->email->subject('ยืนยันการสมัครศูนย์เด็กเล็กปลอดโรค - ' . $data['register']->center);
         $this->email->message('ระบบได้รับข้อมูลการสมัครศูนย์เด็กเล็กปลอดโรคเรียบร้อยแล้วค่ะ');
         $this->email->send();
         //echo $this->email->print_debugger();
     }
     set_notify('success', 'ระบบได้ทำการบันทึกข้อมูลเรียบร้อยแล้วค่ะ');
     redirect('registers/success');
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:27,代码来源:registers.php

示例5: document_delete

 function document_delete($id)
 {
     $document = new Meeting_document($id);
     $document->delete();
     set_notify('success', lang('delete_data_complete'));
     redirect($_SERVER['HTTP_REFERER']);
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:7,代码来源:meetings.php

示例6: delete

 function delete($id)
 {
     $agency = new Agency($id);
     $agency->delete();
     set_notify('success', lang('delete_data_complete'));
     redirect('agenies/admin/agenies');
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:7,代码来源:agencies.php

示例7: delete

 function delete($id = FALSE)
 {
     $user = new User($id);
     $user->delete();
     set_notify('success', 'ลบข้อมูลเรียบร้อยแล้วค่ะ');
     redirect($_SERVER['HTTP_REFERER']);
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:7,代码来源:users.php

示例8: delete

 function delete($id)
 {
     $page = new Page($id);
     $page->delete();
     set_notify('success', lang('delete_data_complete'));
     redirect('pages/admin/pages');
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:7,代码来源:pages.php

示例9: remove_image

 function remove_image($id)
 {
     $about = new About($id);
     $about->delete_file($about->id, 'uploads/about_us/', 'image');
     $about->image = NULL;
     $about->save();
     set_notify('success', lang('remove_image_complete'));
     redirect('abouts/admin/address/index/');
 }
开发者ID:unisexx,项目名称:drtooth,代码行数:9,代码来源:addresses.php

示例10: delete

 function delete($id)
 {
     if ($id) {
         $pm = new Pm($id);
         $pm->delete();
         set_notify('success', 'ลบข้อความส่วนตัวเรียบร้อย');
     }
     redirect('pms/inbox');
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:9,代码来源:pms.php

示例11: delete

 public function delete($id)
 {
     if ($id) {
         $user = new User($id);
         $user->delete();
         set_notify('success', lang('delete_data_complete'));
     }
     redirect($_SERVER['HTTP_REFERER']);
 }
开发者ID:unisexx,项目名称:imac,代码行数:9,代码来源:administrators.php

示例12: delete

 function delete($id = FALSE)
 {
     if ($id) {
         $newsletters_email_list = new Newsletters_email_list($id);
         $newsletters_email_list->delete();
         set_notify('success', lang('delete_data_complete'));
     }
     redirect('newsletters/admin/newsletters_email_lists');
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:9,代码来源:newsletters_email_lists.php

示例13: delete

 function delete($id = NULL)
 {
     if ($id) {
         $question = new Question($id);
         $question->delete();
         set_notify('success', lang('delete_data_complete'));
     }
     redirect('questions');
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:9,代码来源:questions.php

示例14: delete

 function delete($id = FALSE)
 {
     if ($id) {
         $group = new Group($id);
         $group->delete();
         set_notify('success', lang('delete_data_complete'));
     }
     redirect('groups/admin/groups');
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:9,代码来源:groups.php

示例15: delete

 function delete($id)
 {
     if ($id) {
         $rs = new Contact($id);
         $rs->delete();
         set_notify('success', lang('delete_data_complete'));
     }
     redirect($_SERVER['HTTP_REFERER']);
 }
开发者ID:unisexx,项目名称:imac,代码行数:9,代码来源:contacts.php


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