本文整理汇总了PHP中user_prepare_head函数的典型用法代码示例。如果您正苦于以下问题:PHP user_prepare_head函数的具体用法?PHP user_prepare_head怎么用?PHP user_prepare_head使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了user_prepare_head函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: llxHeader
}
}
/******************************************************************************/
/* Affichage fiche */
/******************************************************************************/
llxHeader();
$html = new Form($db);
if ($id)
{
$head = user_prepare_head($fuser);
$title = $langs->trans("User");
dol_fiche_head($head, 'note', $title, 0, 'user');
if ($msg) print '<div class="error">'.$msg.'</div>';
print "<form method=\"post\" action=\"note.php\">";
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<table class="border" width="100%">';
// Reference
print '<tr><td width="20%">'.$langs->trans('Ref').'</td>';
print '<td colspan="3">';
print $html->showrefnav($fuser,'id','',$user->rights->user->user->lire || $user->admin);
开发者ID:remyyounes,项目名称:dolibarr,代码行数:31,代码来源:note.php
示例2: llxHeader
$res = $object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES));
if ($res < 0) {
$mesg = '<div class="error">' . $adh->error . '</div>';
$db->rollback();
} else {
$db->commit();
}
}
}
/******************************************************************************/
/* Affichage fiche */
/******************************************************************************/
llxHeader();
$form = new Form($db);
if ($id) {
$head = user_prepare_head($object);
$title = $langs->trans("User");
dol_fiche_head($head, 'note', $title, 0, 'user');
$linkback = '<a href="' . DOL_URL_ROOT . '/user/index.php">' . $langs->trans("BackToList") . '</a>';
dol_banner_tab($object, 'id', $linkback, $user->rights->user->user->lire || $user->admin);
print '<div class="underbanner clearboth"></div>';
print "<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "\">";
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<table class="border" width="100%">';
// Login
print '<tr><td class="titlefield">' . $langs->trans("Login") . '</td><td class="valeur">' . $object->login . ' </td></tr>';
// Note
print '<tr><td class="tdtop">' . $langs->trans("Note") . '</td>';
print '<td>';
if ($action == 'edit' && $user->rights->user->user->creer) {
print "<input type=\"hidden\" name=\"action\" value=\"update\">";
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:note.php
示例3: getHeadForObject
static function getHeadForObject($tab_object, $fk_object)
{
global $db, $conf, $langs, $user;
$head = array();
if (empty($tab_object)) {
return $head;
}
if ($tab_object === 'product') {
dol_include_once('/product/class/product.class.php');
dol_include_once('/core/lib/product.lib.php');
$object = new Product($db);
$object->fetch($fk_object);
$head = product_prepare_head($object);
} else {
if ($tab_object === 'thirdparty') {
dol_include_once('/societe/class/societe.class.php');
dol_include_once('/core/lib/company.lib.php');
$object = new Societe($db);
$object->fetch($fk_object);
$head = societe_prepare_head($object);
} else {
if ($tab_object === 'contact') {
dol_include_once('/contact/class/contact.class.php');
dol_include_once('/core/lib/contact.lib.php');
$object = new Contact($db);
$object->fetch($fk_object);
$head = contact_prepare_head($object);
} else {
if ($tab_object === 'user') {
dol_include_once('/user/class/user.class.php');
dol_include_once('/core/lib/usergroups.lib.php');
$object = new User($db);
$object->fetch($fk_object);
$head = user_prepare_head($object);
} else {
if ($tab_object === 'group') {
dol_include_once('/user/class/usergroup.class.php');
dol_include_once('/lib/usergroups.lib.php');
$object = new UserGroup($db);
$object->fetch($fk_object);
$head = group_prepare_head($object);
} else {
if ($tab_object === 'project') {
dol_include_once('/projet/class/project.class.php');
dol_include_once('/core/lib/project.lib.php');
$object = new Project($db);
$object->fetch($fk_object);
$head = project_prepare_head($object);
}
}
}
}
}
}
return $head;
}
开发者ID:ATM-Consulting,项目名称:dolibarr_module_query,代码行数:56,代码来源:query.class.php
示例4: dol_include_once
<?php
require 'config.php';
dol_include_once('/dolidacticiel/class/dolidacticiel.class.php');
dol_include_once('/core/lib/usergroups.lib.php');
$id = GETPOST('id');
$u = new User($db);
$u->fetch($id);
$u->getrights();
if ($u->id <= 0) {
exit('ErrorUser');
}
llxHeader();
$head = user_prepare_head($u);
$title = $langs->trans("Achievements");
dol_fiche_head($head, 'achievements', $title);
$PDOdb = new TPDOdb();
$Tab = TDolidacticiel::getAll($PDOdb, $u, $conf);
print '<table class="border" width="100%">';
foreach ($Tab as &$d) {
print '<tr><td width="50%"><strong>' . $d->title . '</strong><br />' . $d->description . '</td><td>' . ($d->currentUserAchievement ? img_picto('Ok', 'star') : '') . '</td></tr>';
}
print '</table>';
dol_fiche_end();
llxFooter();
开发者ID:ATM-Consulting,项目名称:dolibarr_module_dolidacticiel,代码行数:25,代码来源:achievement.php
注:本文中的user_prepare_head函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论