forked from Wavyzz/dolibarr
Look: Ajout image sur page login. Utilisation feuille du style par defaut sur page login.
This commit is contained in:
@@ -19,25 +19,38 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
\file htdocs/comm/bookmark.php
|
||||||
|
\brief Page affichage des bookmarks
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
if ($sortorder == "") {
|
if (! $sortorder) $sortorder="DESC";
|
||||||
$sortorder="DESC";
|
if (! $sortfield) $sortfield="idp";
|
||||||
}
|
|
||||||
if ($sortfield == "") {
|
if ($page == -1) { $page = 0 ; }
|
||||||
$sortfield="idp";
|
$limit = 26;
|
||||||
}
|
$offset = $limit * $page ;
|
||||||
|
$pageprev = $page - 1;
|
||||||
|
$pagenext = $page + 1;
|
||||||
|
|
||||||
$yn["t"] = "oui";
|
$yn["t"] = "oui";
|
||||||
$yn["f"] = "non";
|
$yn["f"] = "non";
|
||||||
$ynn["1"] = "oui";
|
$ynn["1"] = "oui";
|
||||||
$ynn["0"] = "non";
|
$ynn["0"] = "non";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($action == 'add')
|
if ($action == 'add')
|
||||||
{
|
{
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."bookmark (fk_soc, dateb, author) VALUES ($socidp, now(),'". $user->login ."');";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."bookmark (fk_soc, dateb, fk_user) VALUES ($socidp, now(),'". $user->login ."');";
|
||||||
if (! $db->query($sql) )
|
if (! $db->query($sql) )
|
||||||
{
|
{
|
||||||
print $db->error();
|
print $db->error();
|
||||||
@@ -46,46 +59,33 @@ if ($action == 'add')
|
|||||||
|
|
||||||
if ($action == 'delete')
|
if ($action == 'delete')
|
||||||
{
|
{
|
||||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."bookmark WHERE rowid=$bid AND author = '". $user->login ."'";
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."bookmark WHERE rowid=$bid AND fk_user = '". $user->login ."'";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($page == -1) { $page = 0 ; }
|
|
||||||
$limit = 26;
|
|
||||||
$offset = $limit * $page ;
|
|
||||||
$pageprev = $page - 1;
|
|
||||||
$pagenext = $page + 1;
|
|
||||||
|
|
||||||
print '<div class="titre">Bookmark</div>';
|
print_fiche_titre($langs->trans("Bookmarks"));
|
||||||
|
|
||||||
$sql = "SELECT s.idp, s.nom, ".$db->pdate("b.dateb")." as dateb, st.libelle as stcomm, b.rowid as bid, b.author";
|
$sql = "SELECT s.idp, s.nom, ".$db->pdate("b.dateb")." as dateb, b.rowid as bid, b.fk_user";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."c_stcomm as st, ".MAIN_DB_PREFIX."bookmark as b";
|
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."bookmark as b";
|
||||||
$sql .= " WHERE b.fk_soc = s.idp AND s.fk_stcomm = st.id AND s.datea is not null";
|
$sql.= " WHERE b.fk_soc = s.idp AND s.datea is not null";
|
||||||
|
$sql.= " ORDER BY $sortfield $sortorder " . $db->plimit( $limit, $offset);
|
||||||
$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit( $limit, $offset);
|
|
||||||
|
|
||||||
|
|
||||||
if ( $db->query($sql) )
|
if ( $db->query($sql) )
|
||||||
{
|
{
|
||||||
$num = $db->num_rows();
|
$num = $db->num_rows();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
if ($sortorder == "DESC")
|
if ($sortorder == "DESC") $sortorder="ASC";
|
||||||
{
|
else $sortorder="DESC";
|
||||||
$sortorder="ASC";
|
|
||||||
}
|
print "<table class=\"noborder\" width=\"100%\">";
|
||||||
else
|
|
||||||
{
|
|
||||||
$sortorder="DESC";
|
|
||||||
}
|
|
||||||
print "<p><table class=\"noborder\" width=\"100%\">";
|
|
||||||
print "<tr class=\"liste_titre\">";
|
print "<tr class=\"liste_titre\">";
|
||||||
print "<td> </td>";
|
print "<td> </td>";
|
||||||
print "<td align=\"center\"><a href=\"index.php?sortfield=idp&sortorder=$sortorder&begin=$begin\">Id</a></td>";
|
print "<td align=\"center\"><a href=\"index.php?sortfield=idp&sortorder=$sortorder&begin=$begin\">Id</a></td>";
|
||||||
print "<td><a href=\"index.php?sortfield=lower(s.nom)&sortorder=$sortorder&begin=$begin\">Societe</a></td>";
|
print "<td><a href=\"index.php?sortfield=lower(s.nom)&sortorder=$sortorder&begin=$begin\">Societe</a></td>";
|
||||||
|
|
||||||
print '<td align="center">'.$langs->trans("Status").'</td>';
|
|
||||||
print "<td>".$langs->trans("Author")."</td>";
|
print "<td>".$langs->trans("Author")."</td>";
|
||||||
print "<td>".$langs->trans("Date")."</td>";
|
print "<td>".$langs->trans("Date")."</td>";
|
||||||
|
|
||||||
@@ -97,25 +97,13 @@ if ( $db->query($sql) )
|
|||||||
$obj = $db->fetch_object();
|
$obj = $db->fetch_object();
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
$bc1="bgcolor=\"#90c090\"";
|
print "<tr $bc[$var]>";
|
||||||
$bc2="bgcolor=\"#b0e0b0\"";
|
|
||||||
if (!$var)
|
|
||||||
{
|
|
||||||
$bc=$bc1;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$bc=$bc2;
|
|
||||||
}
|
|
||||||
print "<tr $bc>";
|
|
||||||
print "<td>" . ($i + 1 + ($limit * $page)) . "</td>";
|
print "<td>" . ($i + 1 + ($limit * $page)) . "</td>";
|
||||||
print "<td align=\"center\"><b>$obj->idp</b></td>";
|
print "<td align=\"center\"><b>$obj->idp</b></td>";
|
||||||
print "<td><a href=\"index.php?socid=$obj->idp\">$obj->nom</A></td>\n";
|
print "<td><a href=\"index.php?socid=$obj->idp\">$obj->nom</a></td>\n";
|
||||||
|
print "<td>$obj->fk_user</td>\n";
|
||||||
print "<td align=\"center\">$obj->stcomm</td>\n";
|
print "<td>".dolibarr_print_date($obj->dateb) ."</td>";
|
||||||
print "<td>$obj->author</TD>\n";
|
print "<td><a href=\"bookmark.php?action=delete&bid=$obj->bid\">".img_delete()."</a></td>\n";
|
||||||
print "<td>".strftime("%d %b %Y %H:%M", $obj->dateb) ."</td>";
|
|
||||||
print "<td>[<a href=\"bookmark.php?action=delete&bid=$obj->bid\">Delete</A>]</TD>\n";
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
@@ -124,15 +112,11 @@ if ( $db->query($sql) )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dolibarr_print_error()$db;
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
?>
|
llxFooter('$Date$ - $Revision$');
|
||||||
<p>
|
|
||||||
Seul l'auteur d'un bookmark peut le supprimer.
|
|
||||||
|
|
||||||
<?php
|
|
||||||
llxFooter();
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -470,7 +470,7 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
|
|||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]><td width=\"15%\" nowrap><a href=\"propal.php?propalid=".$obj->propalid."\">".img_object($langs->trans("ShowPropal"),"propal")." ".$obj->ref."</a></td>";
|
print "<tr $bc[$var]><td width=\"15%\" nowrap><a href=\"propal.php?propalid=".$obj->propalid."\">".img_object($langs->trans("ShowPropal"),"propal")." ".$obj->ref."</a></td>";
|
||||||
print "<td><a href=\"fiche.php?socid=$obj->idp\">".img_object($langs->trans("ShowCompany"),"company")." ".$obj->nom."</a></td>\n";
|
print "<td><a href=\"fiche.php?socid=$obj->idp\">".img_object($langs->trans("ShowCompany"),"company")." ".dolibarr_trunc($obj->nom,40)."</a></td>\n";
|
||||||
print "<td align=\"right\">";
|
print "<td align=\"right\">";
|
||||||
print dolibarr_print_date($obj->dp)."</td>\n";
|
print dolibarr_print_date($obj->dp)."</td>\n";
|
||||||
print "<td align=\"right\">".price($obj->price)."</td></tr>\n";
|
print "<td align=\"right\">".price($obj->price)."</td></tr>\n";
|
||||||
@@ -519,14 +519,13 @@ if ($conf->propal->enabled && $user->rights->propale->lire) {
|
|||||||
{
|
{
|
||||||
$objp = $db->fetch_object();
|
$objp = $db->fetch_object();
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print '<td width="15%" nowrap>';
|
print '<td nowrap>';
|
||||||
print '<a href="propal.php?propalid='.$objp->propalid.'">'.img_object($langs->trans("ShowPropal"),"propal").' ';
|
print '<a href="propal.php?propalid='.$objp->propalid.'">'.img_object($langs->trans("ShowPropal"),"propal").' ';
|
||||||
print $objp->ref.'</a></td>';
|
print $objp->ref.'</a></td>';
|
||||||
print '<td width="30%"><a href="fiche.php?socid='.$objp->idp.'">'.img_object($langs->trans("ShowCompany"),"company").' '.$objp->nom.'</a></td>';
|
print '<td><a href="fiche.php?socid='.$objp->idp.'">'.img_object($langs->trans("ShowCompany"),"company").' '.dolibarr_trunc($objp->nom,40).'</a></td>';
|
||||||
|
|
||||||
$now = time();
|
$now = time();
|
||||||
$lim = 3600 * 24 * 15 ;
|
$lim = 3600 * 24 * 15 ;
|
||||||
|
|
||||||
if ( ($now - $objp->dp) > $lim && $objp->statutid == 1 )
|
if ( ($now - $objp->dp) > $lim && $objp->statutid == 1 )
|
||||||
{
|
{
|
||||||
print "<td><b> > 15 jours</b></td>";
|
print "<td><b> > 15 jours</b></td>";
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ if ($_GET["action"] == 'create')
|
|||||||
print "<form action=\"fiche.php\" method=\"post\">\n";
|
print "<form action=\"fiche.php\" method=\"post\">\n";
|
||||||
print '<input type="hidden" name="action" value="add">';
|
print '<input type="hidden" name="action" value="add">';
|
||||||
|
|
||||||
print '<div class="titre">'.$langs->trans("NewTrip").'</div><br>';
|
print_fiche_titre($langs->trans("NewTrip"));
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr><td width="20%">'.$langs->trans("Person").'</td><td>'.$user->fullname.'</td></tr>';
|
print '<tr><td width="20%">'.$langs->trans("Person").'</td><td>'.$user->fullname.'</td></tr>';
|
||||||
|
|||||||
@@ -77,12 +77,11 @@ if ($_GET["action"] == 'create' && $user->rights->compta->ventilation->parametre
|
|||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
$nbligne=0;
|
$nbligne=0;
|
||||||
|
|
||||||
|
print_fiche_titre('Comptes G<>n<EFBFBD>raux');
|
||||||
|
|
||||||
print '<form action="fiche.php" method="post">';
|
print '<form action="fiche.php" method="post">';
|
||||||
print '<input type="hidden" name="action" value="add">';
|
print '<input type="hidden" name="action" value="add">';
|
||||||
print '<input type="hidden" name="type" value="'.$_GET["type"].'">'."\n";
|
print '<input type="hidden" name="type" value="'.$_GET["type"].'">'."\n";
|
||||||
print '<div class="titre">';
|
|
||||||
print 'Comptes G<>n<EFBFBD>raux';
|
|
||||||
print '</div><br>'."\n";
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ if ($_GET["action"] == 'create')
|
|||||||
print "<form action=\"fiche.php\" method=\"post\">\n";
|
print "<form action=\"fiche.php\" method=\"post\">\n";
|
||||||
print '<input type="hidden" name="action" value="add">';
|
print '<input type="hidden" name="action" value="add">';
|
||||||
|
|
||||||
print '<div class="titre">'.$langs->trans("NewVATPayment").'</div><br>';
|
print_fiche_titre($langs->trans("NewVATPayment"));
|
||||||
|
|
||||||
if ($message) print '<br>'.$message.'</br>';
|
if ($message) print '<br>'.$message.'</br>';
|
||||||
|
|
||||||
|
|||||||
@@ -219,10 +219,10 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer)
|
|||||||
print '<input type="hidden" name="action" value="add">';
|
print '<input type="hidden" name="action" value="add">';
|
||||||
print '<input type="hidden" name="type" value="'.$_GET["type"].'">'."\n";
|
print '<input type="hidden" name="type" value="'.$_GET["type"].'">'."\n";
|
||||||
print '<input type="hidden" name="catid" value="'.$_REQUEST["catid"].'">'."\n";
|
print '<input type="hidden" name="catid" value="'.$_REQUEST["catid"].'">'."\n";
|
||||||
print '<div class="titre">';
|
|
||||||
if ($_GET["type"]==0) { print $langs->trans("NewProduct"); }
|
if ($_GET["type"]==0) { $title=$langs->trans("NewProduct"); }
|
||||||
if ($_GET["type"]==1) { print $langs->trans("NewService"); }
|
if ($_GET["type"]==1) { $title=$langs->trans("NewService"); }
|
||||||
print '</div><br>'."\n";
|
print_fiche_titre($title);
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
|
|||||||
@@ -60,9 +60,7 @@ function pHeader($soutitre,$next)
|
|||||||
print '</head>';
|
print '</head>';
|
||||||
print '<body>';
|
print '<body>';
|
||||||
|
|
||||||
print '<div class="titre">';
|
|
||||||
print '<span class="titre"><a class="titre" href="index.php">'.$langs->trans("DolibarrSetup").'</a></span>';
|
print '<span class="titre"><a class="titre" href="index.php">'.$langs->trans("DolibarrSetup").'</a></span>';
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '<form action="'.$next.'.php" method="POST"><input type="hidden" name="action" value="set">';
|
print '<form action="'.$next.'.php" method="POST"><input type="hidden" name="action" value="set">';
|
||||||
print '<div class="main">';
|
print '<div class="main">';
|
||||||
|
|||||||
@@ -682,34 +682,82 @@ function img_tick($alt = "default")
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief fonction de login
|
\brief Affiche formulaire de login
|
||||||
\remarks il faut changer le code html dans la fonction pour changer le design
|
\remarks il faut changer le code html dans cette fonction pour changer le design
|
||||||
*/
|
*/
|
||||||
function loginfunction()
|
function loginfunction()
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs,$conf;
|
||||||
|
|
||||||
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
|
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
|
||||||
print "\n<html><head><title>Dolibarr Authentification</title>";
|
print "\n<html><head><title>Dolibarr Authentification</title>\n";
|
||||||
print '<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.'/lib/login.css">
|
print '<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/'.$conf->theme.'.css">';
|
||||||
</head>
|
print '</head>';
|
||||||
<body onload="donnefocus();">
|
print '<body onload="donnefocus();">';
|
||||||
<div class="main">
|
// print '<div class="main">';
|
||||||
<div class="header">';
|
// print '<div class="header">';
|
||||||
print 'Dolibarr '.DOL_VERSION;
|
// print '</div>';
|
||||||
print '
|
// print '<div class="main-inside">';
|
||||||
</div>
|
|
||||||
<div class="main-inside">
|
|
||||||
';
|
print '
|
||||||
|
<style type="text/css">
|
||||||
|
<!--
|
||||||
|
#login {
|
||||||
|
margin-top: 70px;
|
||||||
|
margin-bottom: 50px;
|
||||||
|
text-align: center;
|
||||||
|
font: 12px arial,helvetica;
|
||||||
|
}
|
||||||
|
#login table {
|
||||||
|
border: 1px solid #C0C0C0;
|
||||||
|
background: #F0F0F0 url('.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/login_background.png) repeat-x;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</style>
|
||||||
|
';
|
||||||
|
|
||||||
|
print '<form id="login" method="post" action="' . $_SERVER['PHP_SELF'] . '" name="identification">';
|
||||||
|
|
||||||
|
print '
|
||||||
|
<table cellpadding="0" cellspacing="0" border="0" align="center" width="350">
|
||||||
|
<tr class="vmenu"><td>Dolibarr '.DOL_VERSION.'</td></tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<table cellpadding="2" align="center" width="350">
|
||||||
|
|
||||||
|
<tr><td colspan="3"> </td></tr>
|
||||||
|
|
||||||
|
<tr><td align="left"> <b>'.$langs->trans("Login").'</b> </td>
|
||||||
|
<td><input name="username" class="flat" size="15" maxlength="25" value="" tabindex="1" /></td>
|
||||||
|
';
|
||||||
|
|
||||||
|
if (file_exists(DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/login_logo.png'))
|
||||||
|
{
|
||||||
|
print '<td rowspan="2"><img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/login_logo.png"></td>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<td rowspan="2"><img src="'.DOL_URL_ROOT.'/theme/login_logo.png"></td>';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr><td align="left"> <b>'.$langs->trans("Password").'</b> </a></td>
|
||||||
|
<td><input name="password" class="flat" type="password" size="15" maxlength="30" tabindex="2" />
|
||||||
|
</td></tr>
|
||||||
|
|
||||||
|
<tr><td colspan="3" style="text-align:center;"><br>
|
||||||
|
<input type="submit" class="button" value=" '.$langs->trans("Connexion").' " tabindex="4" />
|
||||||
|
</td></tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
';
|
||||||
|
|
||||||
print '<form method="post" action="' . $_SERVER['PHP_SELF'] . '" name="identification">';
|
|
||||||
print '<table width="100%" cellpadding="0" cellspacing="0"><tr><td align="center">';
|
|
||||||
print '<table width="100%">';
|
|
||||||
print '<tr><td align="left">'.$langs->trans("Login").': </td><td><input type="text" name="username"></td></tr>';;
|
|
||||||
print '<tr><td align="left">'.$langs->trans("Password").': </td><td><input type="password" name="password"></td></tr>';
|
|
||||||
print '</table>';
|
|
||||||
print '</td></tr></table>';
|
|
||||||
print '<br><center><input value="'.$langs->trans("Connexion").'" type="submit" class="button"></center>';
|
|
||||||
print '</form>';
|
print '</form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -90,10 +90,9 @@ if ($id)
|
|||||||
/*
|
/*
|
||||||
* Affichage
|
* Affichage
|
||||||
*/
|
*/
|
||||||
|
print_fiche_titre('Fiche Article : '.$article->titre);
|
||||||
|
|
||||||
print '<div class="titre">Fiche Article : '.$article->titre.'</div><br>';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
|
|
||||||
|
|
||||||
print "<tr><td>Titre</td><td>$article->titre</td></tr>\n";
|
print "<tr><td>Titre</td><td>$article->titre</td></tr>\n";
|
||||||
print "<tr><td>Titre</td><td>$article->body</td></tr>\n";
|
print "<tr><td>Titre</td><td>$article->body</td></tr>\n";
|
||||||
|
|||||||
@@ -70,9 +70,9 @@ if ($action == 'create')
|
|||||||
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
|
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
|
||||||
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
|
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
|
||||||
|
|
||||||
print '<div class="titre">Nouvel album</div><br>';
|
print_fiche_titre($langs->trans("NewAlbum"));
|
||||||
|
|
||||||
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="border" width="100%">';
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print '<td>'.$langs->trans("Ref").'</td><td><input name="ref" size="20" value=""></td></tr>';
|
print '<td>'.$langs->trans("Ref").'</td><td><input name="ref" size="20" value=""></td></tr>';
|
||||||
print '<td>Titre</td><td><input name="titre" size="40" value=""></td></tr>';
|
print '<td>Titre</td><td><input name="titre" size="40" value=""></td></tr>';
|
||||||
@@ -100,9 +100,9 @@ else
|
|||||||
$gas = $album->liste_groupart();
|
$gas = $album->liste_groupart();
|
||||||
|
|
||||||
|
|
||||||
print '<div class="titre">Fiche Album : '.$album->titre.'</div><br>';
|
print_fiche_titre('Fiche Album : '.$album->titre);
|
||||||
|
|
||||||
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="border" width="100%">';
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print '<td width="20%">'.$langs->trans("Ref").'</td><td width="30%">'.$album->ref.'</td>';
|
print '<td width="20%">'.$langs->trans("Ref").'</td><td width="30%">'.$album->ref.'</td>';
|
||||||
print '<td width="50%" valign="top">'.$langs->trans("Description").'</td></tr>';
|
print '<td width="50%" valign="top">'.$langs->trans("Description").'</td></tr>';
|
||||||
@@ -125,7 +125,7 @@ else
|
|||||||
|
|
||||||
if ($action == 'edit')
|
if ($action == 'edit')
|
||||||
{
|
{
|
||||||
print '<hr><div class="titre">Edition de la fiche Album : '.$album->titre.'</div><br>';
|
print_fiche_titre('Edition de la fiche Album : '.$album->titre);
|
||||||
|
|
||||||
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
|
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
|
||||||
print "<input type=\"hidden\" name=\"action\" value=\"update\">";
|
print "<input type=\"hidden\" name=\"action\" value=\"update\">";
|
||||||
|
|||||||
@@ -214,10 +214,10 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer)
|
|||||||
print '<form action="fiche.php" method="post">';
|
print '<form action="fiche.php" method="post">';
|
||||||
print '<input type="hidden" name="action" value="add">';
|
print '<input type="hidden" name="action" value="add">';
|
||||||
print '<input type="hidden" name="type" value="'.$_GET["type"].'">'."\n";
|
print '<input type="hidden" name="type" value="'.$_GET["type"].'">'."\n";
|
||||||
print '<div class="titre">';
|
|
||||||
if ($_GET["type"]==0) { print $langs->trans("NewProduct"); }
|
if ($_GET["type"]==0) { $title=$langs->trans("NewProduct"); }
|
||||||
if ($_GET["type"]==1) { print $langs->trans("NewService"); }
|
if ($_GET["type"]==1) { $title=$langs->trans("NewService"); }
|
||||||
print '</div><br>'."\n";
|
print_fiche_titre($title);
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
|
|||||||
@@ -229,9 +229,9 @@ if ($_GET["id"])
|
|||||||
$langs->load("suppliers");
|
$langs->load("suppliers");
|
||||||
|
|
||||||
if ($_GET["id_fourn"]) {
|
if ($_GET["id_fourn"]) {
|
||||||
print '<div class="titre">'.$langs->trans("ChangeSupplierPrice").'</div>';
|
print_fiche_titre($langs->trans("ChangeSupplierPrice"));
|
||||||
} else {
|
} else {
|
||||||
print '<div class="titre">'.$langs->trans("AddSupplierPrice").'</div>';
|
print_fiche_titre($langs->trans("AddSupplierPrice"));
|
||||||
}
|
}
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<form action="fournisseurs.php?id='.$product->id.'" method="post">';
|
print '<form action="fournisseurs.php?id='.$product->id.'" method="post">';
|
||||||
|
|||||||
@@ -168,7 +168,8 @@ print "\n</div>\n";
|
|||||||
*/
|
*/
|
||||||
if ($_GET["action"] == 'edit_price' && $user->rights->produit->creer)
|
if ($_GET["action"] == 'edit_price' && $user->rights->produit->creer)
|
||||||
{
|
{
|
||||||
print '<div class="titre">'.$langs->trans("NewPrice").'</div>';
|
print_fiche_titre($langs->trans("NewPrice"));
|
||||||
|
|
||||||
print '<form action="price.php?id='.$product->id.'" method="post">';
|
print '<form action="price.php?id='.$product->id.'" method="post">';
|
||||||
print '<input type="hidden" name="action" value="update_price">';
|
print '<input type="hidden" name="action" value="update_price">';
|
||||||
print '<input type="hidden" name="id" value="'.$product->id.'">';
|
print '<input type="hidden" name="id" value="'.$product->id.'">';
|
||||||
|
|||||||
@@ -35,10 +35,10 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/***** Styles par d<>faut *****/
|
/***** Styles par d<>faut *****/
|
||||||
a:link { font: helvetica, verdana, arial, sans-serif; font-weight: bold; color: #000000; text-decoration: none; }
|
a:link { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: none; }
|
||||||
a:visited { font: helvetica, verdana, arial, sans-serif; font-weight: bold; color: #000000; text-decoration: none; }
|
a:visited { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: none; }
|
||||||
a:active { font: helvetica, verdana, arial, sans-serif; font-weight: bold; color: #000000; text-decoration: none; }
|
a:active { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: none; }
|
||||||
a:hover { font: helvetica, verdana, arial, sans-serif; font-weight: bold; color: #000000; text-decoration: underline; }
|
a:hover { font: verdana, arial, helvetica, sans-serif; font-weight: bold; color: #000000; text-decoration: underline; }
|
||||||
input { font: helvetica, verdana, arial, sans-serif; }
|
input { font: helvetica, verdana, arial, sans-serif; }
|
||||||
textarea { font: helvetica, verdana, arial, sans-serif; }
|
textarea { font: helvetica, verdana, arial, sans-serif; }
|
||||||
.button {
|
.button {
|
||||||
@@ -395,7 +395,8 @@ a.tabimage {
|
|||||||
* Nouvelle syntaxe <20> utiliser
|
* Nouvelle syntaxe <20> utiliser
|
||||||
*/
|
*/
|
||||||
|
|
||||||
a.butAction:link { font: helvetica, verdana, arial, sans-serif;
|
a.butAction:link { font: 12px helvetica, verdana, arial, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
background: white;
|
background: white;
|
||||||
border: 1px solid #8CACBB;
|
border: 1px solid #8CACBB;
|
||||||
color: #436976;
|
color: #436976;
|
||||||
@@ -404,7 +405,8 @@ a.butAction:link { font: helvetica, verdana, arial, sans-serif;
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap; }
|
white-space: nowrap; }
|
||||||
|
|
||||||
a.butAction:visited { font: helvetica, verdana, arial, sans-serif;
|
a.butAction:visited { font: 12px helvetica, verdana, arial, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
background: white;
|
background: white;
|
||||||
border: 1px solid #8CACBB;
|
border: 1px solid #8CACBB;
|
||||||
color: #436976;
|
color: #436976;
|
||||||
@@ -413,7 +415,8 @@ a.butAction:visited { font: helvetica, verdana, arial, sans-serif;
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap; }
|
white-space: nowrap; }
|
||||||
|
|
||||||
a.butAction:active { font: helvetica, verdana, arial, sans-serif;
|
a.butAction:active { font: 12px helvetica, verdana, arial, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
background: white;
|
background: white;
|
||||||
border: 1px solid #8CACBB;
|
border: 1px solid #8CACBB;
|
||||||
color: #436976;
|
color: #436976;
|
||||||
@@ -422,7 +425,8 @@ a.butAction:active { font: helvetica, verdana, arial, sans-serif;
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap; }
|
white-space: nowrap; }
|
||||||
|
|
||||||
a.butAction:hover { font: helvetica, verdana, arial, sans-serif;
|
a.butAction:hover { font: 12px helvetica, verdana, arial, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
background: #dee7ec;
|
background: #dee7ec;
|
||||||
border: 1px solid #8CACBB;
|
border: 1px solid #8CACBB;
|
||||||
color: #436976;
|
color: #436976;
|
||||||
@@ -431,7 +435,8 @@ a.butAction:hover { font: helvetica, verdana, arial, sans-serif;
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap; }
|
white-space: nowrap; }
|
||||||
|
|
||||||
a.butActionRefuse { font: helvetica, verdana, arial, sans-serif;
|
a.butActionRefuse { font: 12px helvetica, verdana, arial, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
background: white;
|
background: white;
|
||||||
border: 1px solid red;
|
border: 1px solid red;
|
||||||
color: #436976;
|
color: #436976;
|
||||||
@@ -440,10 +445,13 @@ a.butActionRefuse { font: helvetica, verdana, arial, sans-serif;
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap; }
|
white-space: nowrap; }
|
||||||
|
|
||||||
a.butActionRefuse:hover { background: #dee7ec; }
|
a.butActionRefuse:hover { font: 12px helvetica, verdana, arial, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
background: #dee7ec; }
|
||||||
|
|
||||||
|
|
||||||
a.butActionDelete { font: helvetica, verdana, arial, sans-serif;
|
a.butActionDelete { font: 12px helvetica, verdana, arial, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
background: white;
|
background: white;
|
||||||
border: 1px solid red;
|
border: 1px solid red;
|
||||||
color: #436976;
|
color: #436976;
|
||||||
@@ -452,12 +460,10 @@ a.butActionDelete { font: helvetica, verdana, arial, sans-serif;
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap; }
|
white-space: nowrap; }
|
||||||
|
|
||||||
a.butActionDelete:hover { background: #FFe7ec; }
|
a.butActionDelete:link { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
|
a.butActionDelete:active { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
a.butActionDelete:link { font: helvetica, verdana, arial, sans-serif; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
a.butActionDelete:visited { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
a.butActionDelete:active { font: helvetica, verdana, arial, sans-serif; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
a.butActionDelete:hover { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: #FFe7ec; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
a.butActionDelete:visited { font: helvetica, verdana, arial, sans-serif; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
|
||||||
a.butActionDelete:hover { font: helvetica, verdana, arial, sans-serif; background: #FFe7ec; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -465,15 +471,15 @@ a.butActionDelete:hover { font: helvetica, verdana, arial, sans-serif; backgro
|
|||||||
* A supprimer quand remplace par butXxx
|
* A supprimer quand remplace par butXxx
|
||||||
*/
|
*/
|
||||||
|
|
||||||
a.tabAction:link { font: helvetica, verdana, arial, sans-serif; background: white; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
a.tabAction:link { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
a.tabAction:visited { font: helvetica, verdana, arial, sans-serif; background: white; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
a.tabAction:visited { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
a.tabAction:active { font: helvetica, verdana, arial, sans-serif; background: white; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
a.tabAction:active { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
a.tabAction:hover { font: helvetica, verdana, arial, sans-serif; background: #dee7ec; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
a.tabAction:hover { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: #dee7ec; border: 1px solid #8CACBB; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
|
|
||||||
a.butDelete:link { font: helvetica, verdana, arial, sans-serif; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
a.butDelete:link { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
a.butDelete:active { font: helvetica, verdana, arial, sans-serif; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
a.butDelete:active { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
a.butDelete:visited { font: helvetica, verdana, arial, sans-serif; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
a.butDelete:visited { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: white; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
a.butDelete:hover { font: helvetica, verdana, arial, sans-serif; background: #FFe7ec; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
a.butDelete:hover { font: 12px helvetica, verdana, arial, sans-serif; font-weight: bold; background: #FFe7ec; border: 1px solid #997777; color: #436976; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -677,9 +683,8 @@ a.impayee:hover { font-weight: bold; color: #550000; }
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ???
|
* Lignes titre espace
|
||||||
*/
|
*/
|
||||||
div.titre {
|
div.titre {
|
||||||
font: helvetica, verdana, arial, sans-serif;
|
font: helvetica, verdana, arial, sans-serif;
|
||||||
@@ -687,12 +692,6 @@ div.titre {
|
|||||||
color: #336666;
|
color: #336666;
|
||||||
text-decoration: none }
|
text-decoration: none }
|
||||||
|
|
||||||
div.FicheSubmit {
|
|
||||||
margin: 1.0em;
|
|
||||||
padding: 0em 0em;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Widgets standard
|
* Widgets standard
|
||||||
@@ -719,15 +718,10 @@ textarea
|
|||||||
margin: 0em 0em 0em 0em;
|
margin: 0em 0em 0em 0em;
|
||||||
}
|
}
|
||||||
|
|
||||||
td.valeur
|
|
||||||
{
|
|
||||||
color: #001122;
|
|
||||||
}
|
|
||||||
|
|
||||||
td.delete {
|
/*
|
||||||
background: red;
|
* Formulaire confirmation
|
||||||
font-weight: bold;
|
*/
|
||||||
}
|
|
||||||
|
|
||||||
td.validtitle {
|
td.validtitle {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -737,6 +731,7 @@ td.valid {
|
|||||||
background: #EECC55;
|
background: #EECC55;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
td.small {
|
td.small {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
htdocs/theme/eldy/img/login_background.png
Normal file
BIN
htdocs/theme/eldy/img/login_background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 229 B |
BIN
htdocs/theme/eldy/img/login_logo.png
Normal file
BIN
htdocs/theme/eldy/img/login_logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
BIN
htdocs/theme/login_background.png
Normal file
BIN
htdocs/theme/login_background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 229 B |
BIN
htdocs/theme/login_logo.png
Normal file
BIN
htdocs/theme/login_logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
Reference in New Issue
Block a user