Skip to content

Commit

Permalink
display enhancement and standardize
Browse files Browse the repository at this point in the history
  • Loading branch information
grandoc committed Mar 21, 2013
1 parent 40c8899 commit c389d75
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion htdocs/admin/contract.php
@@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2011-2012 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2011-2013 Philippe Grand <philippe.grand@atoo-net.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -27,6 +28,7 @@

$langs->load("admin");
$langs->load("errors");
$langs->load("contracts");

if (!$user->admin) accessforbidden();

Expand Down Expand Up @@ -88,6 +90,20 @@

print "<br>";

$h = 0;

$head[$h][0] = DOL_URL_ROOT."/admin/contract.php";
$head[$h][1] = $langs->trans("Contracts");
$head[$h][2] = 'Contract';
$hselected=$h;
$h++;

dol_fiche_head($head, $hselected, $langs->trans("ModuleSetup"));

/*
* Contracts Numbering model
*/

print_titre($langs->trans("ContractsNumberingModules"));

print '<table class="noborder" width="100%">';
Expand Down Expand Up @@ -129,7 +145,7 @@
print $module->info();
print '</td>';

// Show example of numbering module
// Show example of numbering model
print '<td nowrap="nowrap">';
$tmp=$module->getExample();
if (preg_match('/^Error/',$tmp)) { $langs->load("errors"); print '<div class="error">'.$langs->trans($tmp).'</div>'; }
Expand Down

0 comments on commit c389d75

Please sign in to comment.