本文整理匯總了PHP中Supplier::get_supplier_name方法的典型用法代碼示例。如果您正苦於以下問題:PHP Supplier::get_supplier_name方法的具體用法?PHP Supplier::get_supplier_name怎麽用?PHP Supplier::get_supplier_name使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Supplier
的用法示例。
在下文中一共展示了Supplier::get_supplier_name方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: delete_cont_face_row_AJAX
/**
* удаление контактного лица
*
* @author Alexey Kapitonov
* @version 02:35 11.01.2016
*/
protected function delete_cont_face_row_AJAX()
{
$supplier_id = $_GET['suppliers_id'];
$user_n = $this->user_name . ' ' . $this->user_last_name;
$id_row = $_POST['id'];
$tbl = "SUPPLIERS_CONT_FACES_TBL";
//-- START -- // логирование
$supplier_name_i = Supplier::get_supplier_name($supplier_id);
// получаем название клиента
$text_history = $user_n . ' удалил контактное лицо у поставщика ' . $supplier_name_i;
Supplier::history_delete_type($supplier_id, $this->user_id, $text_history, 'delete_supplier_cont_face', $tbl, $_POST, $id_row);
//-- END -- //
$query = "DELETE FROM " . constant($tbl) . " WHERE `id`= '" . $id_row . "'";
$result = $this->mysqli->query($query) or die($this->mysqli->error);
// echo $query;
// сообщение
$html = 'Контактное лицо удалено.';
$this->responseClass->addMessage($html, 'system_message');
}
示例2: die
`liter` = '".addslashes($_POST['liter'])."',
`bilding` = '".addslashes($_POST['bilding'])."',
`postal_code` = '".addslashes($_POST['postal_code'])."',
`note` = '".addslashes($_POST['note'])."'
;";
//echo "$query";
$result = $mysqli->query($query) or die($mysqli->error);
echo $mysqli->insert_id;
exit;
}
if($_POST['AJAX']=="add_new_other_row"){
//-- START -- // логирование
$supplier_name_i = Supplier::get_supplier_name($supplier_id); // получаем название клиента
$user_n = $user_name.' '.$user_last_name;
$text_history = $user_n.' добавил новый доп. контакт к поставщику '.$supplier_name_i;
Supplier::history($user_id, $text_history ,'add_new_other_row',$supplier_id);
//-- END -- //
$query= "INSERT INTO `".CONT_FACES_CONTACT_INFO_TBL."` SET
`parent_id` ='".$_POST['client_id']."',
`table` = '".$_POST['parent_tbl']."',
`type` = '".$_POST['type']."',
`telephone_type` = '',
`contact` = '".$_POST['input_text']."',
`dop_phone` = '';";
// echo "$query";exit;
$result = $mysqli->query($query) or die($mysqli->error);