本文整理汇总了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;
}