コード例 #1
0
    $sql .= " AND pf.fk_place IN (" . $acct->id . ")";
}
$resql = $db->query($sql);
if ($resql) {
    $num = $db->num_rows($resql);
    $i = 0;
    while ($i < $num) {
        $row = $db->fetch_row($resql);
        $encaiss[$row[1]] = $row[0];
        $i++;
    }
} else {
    dol_print_error($db);
}
// Onglets
$head = place_prepare_head($acct);
dol_fiche_head($head, 'annual', $langs->trans("Place"), 0, 'placedesk');
$title = $langs->trans("FinancialAccount") . " : ";
$lien = $year_start ? "<a href='" . $_SERVER["PHP_SELF"] . "?id=" . $acct->id . "&year_start=" . ($year_start - 1) . "'>" . img_previous() . "</a> " . $langs->trans("Year") . " <a href='" . $_SERVER["PHP_SELF"] . "?id=" . $acct->id . "&year_start=" . ($year_start + 1) . "'>" . img_next() . "</a>" : "";
print '<table class="border" width="100%">';
// Name
print '<tr><td valign="top">' . $langs->trans("Name") . '</td>';
print '<td colspan="3">';
if ($id || $ref) {
    print $form->showrefnav($acct, 'ref', '', 1, 'name', 'ref');
} else {
    print $langs->trans("ALL");
}
print '</td></tr>';
print '</table>';
print '<br>';
コード例 #2
0
// For "custom" directory
require_once DOL_DOCUMENT_ROOT . "/core/lib/functions2.lib.php";
dol_include_once('/pos/class/place.class.php');
dol_include_once('/pos/backend/lib/place.lib.php');
if (!$user->rights->pos->backend) {
    accessforbidden();
}
$langs->load("pos@pos");
// Security check
$socid = 0;
$id = GETPOST('id');
if ($user->societe_id) {
    $socid = $user->societe_id;
}
//$result=restrictedArea($user,'pos',$id,'');
/*
 * View
 */
$helpurl = 'EN:Module_DoliPos|FR:Module_DoliPos_FR|ES:M&oacute;dulo_DoliPos';
llxHeader('', '', $helpurl);
$place = new place($db);
$place->fetch($id);
$place->info($id);
$head = place_prepare_head($place);
dol_fiche_head($head, 'info', $langs->trans("place"), 0, 'placedesk');
print '<table width="100%"><tr><td>';
dol_print_object_info($place);
print '</td></tr></table>';
print '</div>';
llxFooter();
$db->close();