當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Supplier::deleteSupplier方法代碼示例

本文整理匯總了PHP中Supplier::deleteSupplier方法的典型用法代碼示例。如果您正苦於以下問題:PHP Supplier::deleteSupplier方法的具體用法?PHP Supplier::deleteSupplier怎麽用?PHP Supplier::deleteSupplier使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Supplier的用法示例。


在下文中一共展示了Supplier::deleteSupplier方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Supplier

                            echo "No Supplier has been updated!";
                            die;
                        } else {
                            echo "<br/> Supplier has been updated!";
                        }
                    } else {
                        if (isset($_POST['delete'])) {
                            /*******DEBUUG ***/
                            //~ ini_set("log_errors", 1);
                            //~ ini_set("error_log", "/tmp/php-error.log");
                            /****** END DEBUG*****/
                            $suppliers = new Supplier($mysqli);
                            $id = $mysqli->escape_string($_REQUEST['id']);
                            $addressid = $mysqli->escape_string($_REQUEST['addressid']);
                            //error_log("LOG " . (string)$id );
                            $result = $suppliers->deleteSupplier($id, $addressid);
                            //returns boolean
                            if ($result == 0) {
                                echo "No Supplier has been deleted!";
                                die;
                            } else {
                                echo "<br/> Supplier has been deleted!";
                            }
                        }
                    }
                }
            }
        }
    }
}
?>
開發者ID:agrey1,項目名稱:Assignment-2,代碼行數:31,代碼來源:suppliers.php

示例2: Supplier

         <button class="btn btn-info pull-right" disabled="disabled" id="deletebtn">
             <span>-</span>
             DELETE
         </button>
         <a href="" class="btn btn-success pull-right">
             <i class="fa fa-plus"></i>
             ADD SUPPLIER
         </a>
     </div>
 </div>
 <?php 
 if (Input::get('del') == 1) {
     $delete = new Supplier();
     if (Input::get('check') != null) {
         foreach (Input::get('check') as $check) {
             $delete->deleteSupplier(Crytion::decryt64(Crytion::decryt64($check)));
         }
     }
 }
 ?>
 <form action='supplier.php?del=1' method='post' id='deleteem'>
 <div class="row-fluid">
     <table class="table table-hover table-bordered display dataTable" id="supplier-list">
         <thead>
             <tr>
                 <th class="span1"><input type="checkbox" name="checkall" id="checkall"/></th>
                 <th class="span2">
                     Supplier ID
                 </th>
                 <th class="span4">
                     Supplier Name
開發者ID:afiqiqmal,項目名稱:Web,代碼行數:31,代碼來源:supplier.php


注:本文中的Supplier::deleteSupplier方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。