Exemplo n.º 1
0
 function delete($colum = '')
 {
     if ($colum == '') {
         $colum = $this->key;
     }
     $this->db->delete_record($this->table, $colum, $_POST['cid'], $this->pathadm);
     $this->db->delete_record($this->table_image, $colum, $_POST['cid'], $this->path_otheradm);
     security::redirect($this->module, 'list_reports');
 }
Exemplo n.º 2
0
 function delete()
 {
     $cat = new category_pro();
     $pro = new product();
     if ($this->db->check_delete($pro->table, $this->key, $_POST['cid']) > 0) {
         $this->db->alert('Bạn phải xóa sản phẩm thuộc nhóm chủng loại cần xóa trước');
         security::redirect($pro->module, 'list');
         return false;
     }
     $this->db->delete_record($this->table, $this->key, $_POST['cid']);
     $cat->delete($this->key);
 }
Exemplo n.º 3
0
 function delete()
 {
     $cat = new category_news();
     $news = new news();
     if ($this->db->check_delete($news->table, $this->key, $_POST['cid']) > 0) {
         $this->db->alert('You must delete news first.');
         security::redirect($news->module, 'list');
         return false;
     }
     $this->db->delete_record($this->table, $this->key, $_POST['cid']);
     $cat->delete($this->key);
 }
 function delete($colum = '')
 {
     $cha = new channel_news();
     $news = new news();
     $module = $cha->module;
     if ($colum == '') {
         $colum = $this->key;
         if ($this->db->check_delete($news->table, $colum, $_POST['cid']) > 0) {
             $this->db->alert('Bạn phải xóa tin tức thuộc chủ đề cần xóa trước');
             security::redirect($news->module, 'list');
             return false;
         }
         $module = $this->module;
     }
     $this->db->delete_record($this->table, $colum, $_POST['cid']);
     security::redirect($module, 'list');
 }
Exemplo n.º 5
0
 function delete($colum = '')
 {
     $cha = new channel_pro();
     $pro = new product();
     $module = $cha->module;
     if ($colum == '') {
         $colum = $this->key;
         if ($this->db->check_delete($pro->table, $colum, $_POST['cid']) > 0) {
             $this->db->alert('Bạn phải xóa sản phẩm thuộc nhóm chủng loại cần xóa trước');
             security::redirect($pro->module, 'list');
             return false;
         }
         $module = $this->module;
     }
     $this->db->delete_record($this->table, $colum, $_POST['cid']);
     security::redirect($module, 'list');
 }
Exemplo n.º 6
0
 function delete()
 {
     $this->db->delete_record($this->table, $this->key, $_POST['cid']);
     security::redirect($this->module, 'list');
 }
Exemplo n.º 7
0
 function delete()
 {
     $this->db->delete_record($this->table, $this->key, $_POST['cid']);
     security::redirect('product', 'comment&id=' . $_GET['id']);
 }
Exemplo n.º 8
0
 function edit()
 {
     $input = array('footer' => $_POST['footer'], 'hit' => intval($_POST['hit']), 'aboutus' => intval($_POST['aboutus']), 'currency1' => clear($_POST['currency1']), 'metakey' => clear($_POST['metakey']), 'metatag' => clear($_POST['metatag']), 'metades' => clear($_POST['metades']), 'header_left' => clear($_POST['header_left']), 'header_right' => clear($_POST['header_right']), 'home_footer' => clear($_POST['home_footer']), 'home' => clear($_POST['home']), 'bookmark' => clear($_POST['bookmark']), 'home_header' => clear($_POST['home_header']), 's_home' => clear($_POST['s_home']), 's_about' => clear($_POST['s_about']), 's_privacy' => clear($_POST['s_privacy']), 's_contact' => clear($_POST['s_contact']), 's_blog' => clear($_POST['s_blog']), 's_advice' => clear($_POST['s_advice']), 's_faq' => clear($_POST['s_faq']), 's_terms' => clear($_POST['s_terms']), 's_sitemap' => clear($_POST['s_sitemap']), 's_glossary' => clear($_POST['s_glossary']), 'blog_stat' => (int) $_POST['blog_stat']);
     $this->db->update_record($this->table, $input, 'id = 1');
     security::redirect($this->module, 'form');
 }
Exemplo n.º 9
0
 function delete_detail($colum = '')
 {
     $list = 'list';
     if ($colum == '') {
         $colum = $this->key_detail;
         $list = 'form&id=' . intval($_GET['id']);
     }
     $this->db->delete_record($this->table_detail, $colum, $_POST['cid']);
     security::redirect($this->module, $list);
 }
Exemplo n.º 10
0
 function deleteimg()
 {
     $this->db->delete_record($this->table, $this->key, $_POST['cid'], $this->pathadm);
     security::redirect($this->module, 'listimg');
 }
Exemplo n.º 11
0
 function add()
 {
     $input = array('AnnualFee' => clear($_POST['AnnualFee']), 'alias' => clear($_POST['alias']), 'BigCreative' => clear($_POST['assign_banner']), 'OfferName' => $_POST['name'], 'RedirectLink' => $_POST['RedirectLink'], 'CreditType' => $_POST['CreditType'], 'TextDetails' => $_POST['TextDetails'], 'Textdisplay' => $_POST['Textdisplay'], 'PurchaseIntroRate' => $_POST['PurchaseIntroRate'], 'PurchaseIntroPeriod' => $_POST['PurchaseIntroPeriod'], 'PurchaseGoToRate' => $_POST['PurchaseGoToRate'], 'TransferIntroRate' => $_POST['TransferIntroRate'], 'TransferIntroPeriod' => $_POST['TransferIntroPeriod'], 'TransferGoToRate' => $_POST['TransferGoToRate'], 'LateFee' => $_POST['LateFee'], 'CashAdvancedFee' => $_POST['CashAdvancedFee'], 'CashAdvancedGoToRate' => $_POST['CashAdvancedGoToRate'], 'PenaltyGoToRate' => $_POST['PenaltyGoToRate'], 'TransferFee' => $_POST['TransferFee'], 'Issuer' => $_POST['Issuer'], 'Private' => $_POST['Private'], 'Perks' => $_POST['Perks'], 'header_text' => $_POST['header_text'], 'footer_text' => $_POST['footer_text'], 'ordering' => intval($_POST['ordering']), 'top' => intval($_POST['top']), 'good' => intval($_POST['good']), 'asign_article' => implode(',', $_POST['asign_article']), 'sapxep' => implode(',', $_POST['sapxep']), 'card_slogan' => clear($_POST['card_slogan']));
     $this->db->insert_record($this->table, $input);
     security::redirect('cards', 'list_credit_cards');
 }
Exemplo n.º 12
0
 function add()
 {
     $articles = isset($_POST['asign_article']) ? implode(",", $_POST['asign_article']) : "";
     $sapx = isset($_POST['sapxep']) ? implode(",", $_POST['sapxep']) : "";
     $offeridrand = substr(number_format(time() * rand(), 0, '', ''), 0, 5);
     $input = array('OfferID' => $offeridrand, 'AnnualFee' => clear($_POST['AnnualFee']), 'alias' => clear($_POST['alias']), 'BigCreative' => clear($_POST['assign_banner']), 'OfferName' => $_POST['name'], 'RedirectLink' => $_POST['RedirectLink'], 'CreditType' => $_POST['CreditType'], 'TextDetails' => addslashes($_POST['TextDetails']), 'Textdisplay' => $_POST['Textdisplay'], 'PurchaseIntroRate' => $_POST['PurchaseIntroRate'], 'PurchaseIntroPeriod' => $_POST['PurchaseIntroPeriod'], 'PurchaseGoToRate' => $_POST['PurchaseGoToRate'], 'TransferIntroRate' => $_POST['TransferIntroRate'], 'TransferIntroPeriod' => $_POST['TransferIntroPeriod'], 'TransferGoToRate' => $_POST['TransferGoToRate'], 'LateFee' => $_POST['LateFee'], 'CashAdvancedFee' => $_POST['CashAdvancedFee'], 'CashAdvancedGoToRate' => $_POST['CashAdvancedGoToRate'], 'PenaltyGoToRate' => $_POST['PenaltyGoToRate'], 'TransferFee' => $_POST['TransferFee'], 'Issuer' => $_POST['Issuer'], 'Private' => $_POST['Private'], 'Perks' => addslashes($_POST['Perks']), 'header_text' => $_POST['header_text'], 'footer_text' => $_POST['footer_text'], 'title_text' => $_POST['title_text'], 'keywords_text' => $_POST['keywords_text'], 'description_text' => $_POST['description_text'], 'ordering' => intval($_POST['ordering']), 'top' => intval($_POST['top']), 'good' => intval($_POST['good']), 'asign_article' => $articles, 'sapxep' => $sapx, 'card_slogan' => clear($_POST['card_slogan']));
     $this->db->insert_record($this->table, $input);
     security::redirect('cards', 'list_credit_cards');
 }
Exemplo n.º 13
0
 function delete_product_image($colum = '')
 {
     $view = 'list';
     if ($colum == '') {
         $colum = $this->key_image;
         $view = 'imglist&id=' . $_GET['id'];
     }
     $this->db->delete_record($this->table_image, $colum, $_POST['cid'], $this->path_otheradm);
     security::redirect($this->module, $view);
 }