本文整理汇总了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!";
}
}
}
}
}
}
}
}
?>
示例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