本文整理汇总了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');
}
}
示例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);
}
示例3: delete
function delete($id = false)
{
$info = new Executive_info($id);
$info->delete();
set_notify('success', lang('save_data_complete'));
redirect($_SERVER['HTTP_REFERER']);
}
示例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');
}
示例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']);
}
示例6: delete
function delete($id)
{
$agency = new Agency($id);
$agency->delete();
set_notify('success', lang('delete_data_complete'));
redirect('agenies/admin/agenies');
}
示例7: delete
function delete($id = FALSE)
{
$user = new User($id);
$user->delete();
set_notify('success', 'ลบข้อมูลเรียบร้อยแล้วค่ะ');
redirect($_SERVER['HTTP_REFERER']);
}
示例8: delete
function delete($id)
{
$page = new Page($id);
$page->delete();
set_notify('success', lang('delete_data_complete'));
redirect('pages/admin/pages');
}
示例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/');
}
示例10: delete
function delete($id)
{
if ($id) {
$pm = new Pm($id);
$pm->delete();
set_notify('success', 'ลบข้อความส่วนตัวเรียบร้อย');
}
redirect('pms/inbox');
}
示例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']);
}
示例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');
}
示例13: delete
function delete($id = NULL)
{
if ($id) {
$question = new Question($id);
$question->delete();
set_notify('success', lang('delete_data_complete'));
}
redirect('questions');
}
示例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');
}
示例15: delete
function delete($id)
{
if ($id) {
$rs = new Contact($id);
$rs->delete();
set_notify('success', lang('delete_data_complete'));
}
redirect($_SERVER['HTTP_REFERER']);
}