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

PHP set_notify函数代码示例

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

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



在下文中一共展示了set_notify函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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('[email protected]');
            $this->email->bcc('[email protected]');
            $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('[email protected]', '[email protected]');
         $email = '[email protected]';
         //$email = '[email protected]';
         $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('[email protected]', '[email protected]');
         //$email = '[email protected],[email protected]';
         //$email = '[email protected],[email protected],[email protected],[email protected]';
         $email = '[email protected],[email protected],[email protected]';
         $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


示例16: delete

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


示例17: delete

 function delete($id = FALSE)
 {
     if ($id) {
         $level = new Level($id);
         $level->delete();
         set_notify('success', 'ลบข้อมูลเรียบร้อยแล้วค่ะ');
         redirect('users/admin/users');
     }
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:9,代码来源:levels.php


示例18: delete

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


示例19: delete

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


示例20: delete

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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP set_option函数代码示例发布时间:2022-05-15
下一篇:
PHP set_notification函数代码示例发布时间: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