本文整理匯總了PHP中Societe::attribute_prefix方法的典型用法代碼示例。如果您正苦於以下問題:PHP Societe::attribute_prefix方法的具體用法?PHP Societe::attribute_prefix怎麽用?PHP Societe::attribute_prefix使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Societe
的用法示例。
在下文中一共展示了Societe::attribute_prefix方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Societe
* Actions
*/
if ($_POST['action'] == 'setcustomeraccountancycode') {
$societe = new Societe($db);
$result = $societe->fetch($_POST['socid']);
$societe->code_compta = $_POST["customeraccountancycode"];
$result = $societe->update($societe->id, $user, 1, 1, 0);
if ($result < 0) {
$mesg = join(',', $societe->errors);
}
$POST["action"] = "";
$socid = $_POST["socid"];
}
if ($_GET["action"] == 'attribute_prefix' && $user->rights->societe->creer) {
$societe = new Societe($db, $_GET["socid"]);
$societe->attribute_prefix($db, $_GET["socid"]);
}
// conditions de reglement
if ($_POST["action"] == 'setconditions' && $user->rights->societe->creer) {
$societe = new Societe($db, $_GET["socid"]);
$societe->cond_reglement = $_POST['cond_reglement_id'];
$sql = "UPDATE " . MAIN_DB_PREFIX . "societe SET cond_reglement='" . $_POST['cond_reglement_id'];
$sql .= "' WHERE rowid='" . $_GET["socid"] . "'";
$result = $db->query($sql);
if (!$result) {
dol_print_error($result);
}
}
// mode de reglement
if ($_POST["action"] == 'setmode' && $user->rights->societe->creer) {
$societe = new Societe($db, $_GET["socid"]);
示例2: Societe
if (! $sortorder) $sortorder="ASC";
if (! $sortfield) $sortfield="nom";
/*
* View
*/
llxHeader();
$thirdpartystatic=new Societe($db);
if ($action == 'attribute_prefix')
{
$societe = new Societe($db, $socid);
$societe->attribute_prefix($db, $socid);
}
if ($action == 'note')
{
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET note='".$note."' WHERE rowid=".$socid;
$result = $db->query($sql);
}
if ($mode == 'search') {
if ($mode-search == 'soc') {
$sql = "SELECT s.rowid FROM ".MAIN_DB_PREFIX."societe as s ";
$sql.= " WHERE lower(s.nom) like '%".$db->escape(strtolower($socname))."%'";
$sql.= " AND s.entity = ".$conf->entity;
}