Add Theme
This commit is contained in:
parent
00041b2592
commit
68ee1a9213
7 changed files with 237 additions and 15 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 FINAL//EN">
|
||||
<HTML>
|
||||
<TITLE> Gnu Accountancy</TITLE>
|
||||
<BODY BGCOLOR="#6b30ea">
|
||||
<BODY BGCOLOR="#4851FF">
|
||||
<BR><BR><BR><BR><BR>
|
||||
<center>
|
||||
<IMG SRC="image/logo-wcompta.jpg" alt="Logo">
|
||||
|
|
|
|||
|
|
@ -32,13 +32,21 @@ if ( isset ($_POST["p_user"] ) ) {
|
|||
$g_pass=$_POST["p_pass"];
|
||||
session_register("g_user");
|
||||
session_register("g_pass");
|
||||
html_page_start("classic");
|
||||
$cn=pg_connect("dbname=account_repository user='webcompta' ");
|
||||
|
||||
// Verif if User and Pass match DB
|
||||
// if no, then redirect to the login page
|
||||
CheckUser();
|
||||
$g_UserProperty=GetUserProperty($cn,$g_user);
|
||||
session_register("g_UserProperty");
|
||||
|
||||
html_page_start($g_UserProperty['use_theme']);
|
||||
|
||||
} else
|
||||
{
|
||||
if ( strlen($g_user) != 0 ) {
|
||||
echo_debug("user is not null");
|
||||
html_page_start("classic");
|
||||
html_page_start($g_UserProperty['use_theme']);
|
||||
} else
|
||||
{
|
||||
html_page_start("classic");
|
||||
|
|
@ -58,13 +66,6 @@ if ( isset ($db_page) ) {
|
|||
echo_debug("USER=$g_user - ");
|
||||
echo_debug("PAGE = $db_page");
|
||||
|
||||
$cn=pg_connect("dbname=account_repository user='webcompta' ");
|
||||
$IsValid=0;
|
||||
// Verif if User and Pass match DB
|
||||
// if no, then redirect to the login page
|
||||
CheckUser();
|
||||
$g_UserProperty=GetUserProperty($cn,$g_user);
|
||||
session_register("g_UserProperty");
|
||||
echo_debug("theme =".$g_UserProperty['use_theme']);
|
||||
|
||||
include("top_menu_compta.php");
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@ function html_page_start($p_theme,$p_script="")
|
|||
{
|
||||
include_once ("postgres.php");
|
||||
$cn=DbConnect();
|
||||
$bg="";
|
||||
$Res=ExecSql($cn,"select the_filestyle from theme
|
||||
where the_name='".$p_theme."'");
|
||||
if (pg_NumRows($Res)==0) $style="style.css";
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
/* $p_check == 1 si test sur Admin */
|
||||
include_once("postgres.php");
|
||||
echo '<div class="mtitle">';
|
||||
echo "<TABLE align=center><TR>";
|
||||
echo "<TABLE align=center cellspadding=0><TR>";
|
||||
if ( $p_admin !=0 ) {
|
||||
/* Administrator Menu */
|
||||
echo '<TD class="mtitle"><A class="mtitle" HREF=admin_repo.php>Administrator Menu</A></TD>';
|
||||
|
|
|
|||
|
|
@ -25,4 +25,6 @@ create table theme (
|
|||
insert into theme (the_name,the_filestyle,the_filebutton)
|
||||
values ('classic','style.css',null);
|
||||
insert into theme (the_name,the_filestyle,the_filebutton)
|
||||
values ('aqua','style-aqua.css',null);
|
||||
values ('Aqua','style-aqua.css',null);
|
||||
insert into theme (the_name,the_filestyle,the_filebutton)
|
||||
values ('Elegant','style-elegant.css',null);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ div.mtitle {
|
|||
position: absolute;
|
||||
top:15px;
|
||||
right:300px;
|
||||
width:100px;
|
||||
width:330px;
|
||||
background:#E3F0FF;
|
||||
|
||||
}
|
||||
|
|
@ -122,9 +122,9 @@ td.mltitle {
|
|||
}
|
||||
td.mtitle {
|
||||
text-align:center;
|
||||
background:url('image/freebtn1.gif') no-repeat;
|
||||
background:url('image/freebtn1.gif') no-repeat center;
|
||||
height:30px;
|
||||
width:110px;
|
||||
width:100px;
|
||||
font-size:12px;
|
||||
}
|
||||
span.mtitle2 {
|
||||
|
|
|
|||
218
style-elegant.css
Normal file
218
style-elegant.css
Normal file
|
|
@ -0,0 +1,218 @@
|
|||
<style type="text/css">
|
||||
BODY {
|
||||
bgcolor:#E3F0FF;
|
||||
}
|
||||
BODY.defaut {
|
||||
bgcolor:#E3F0FF;
|
||||
}
|
||||
h2.info {
|
||||
background:gray;
|
||||
color:white;
|
||||
font-size:20px;
|
||||
}
|
||||
h2.info2 {
|
||||
color:blue;
|
||||
font-size:20px;
|
||||
}
|
||||
|
||||
|
||||
h2.error {
|
||||
background:red;
|
||||
color:white;
|
||||
color:white;
|
||||
font-size:20px;
|
||||
}
|
||||
|
||||
h1.title {
|
||||
color: blue;
|
||||
font-size:25px;
|
||||
}
|
||||
div.mtitle {
|
||||
position: absolute;
|
||||
top:15px;
|
||||
right:300px;
|
||||
width:330px;
|
||||
background:#E3F0FF;
|
||||
|
||||
}
|
||||
|
||||
div.tmenu {
|
||||
position: absolute;
|
||||
top:10px;
|
||||
background-color:#E3F0FF;
|
||||
}
|
||||
|
||||
div.lmenu {
|
||||
position: absolute;
|
||||
top:50px;
|
||||
left:30px;
|
||||
width:100px;
|
||||
background-color:#E3F0FF;
|
||||
}
|
||||
div.lextmenu {
|
||||
position: absolute;
|
||||
top:50px;
|
||||
font-size:11pt;
|
||||
left:30px;
|
||||
width:200px;
|
||||
background-color:#E3F0FF;
|
||||
}
|
||||
div.searchmenu {
|
||||
font-size:11pt;
|
||||
left:30px;
|
||||
width:245px;
|
||||
background-color:#E3F0FF;
|
||||
}
|
||||
div.credit{
|
||||
border-style:solid;
|
||||
border-width:1pt;
|
||||
background-color:#E3F0FF;
|
||||
}
|
||||
div.debit{
|
||||
border-style:solid;
|
||||
border-width:1pt;
|
||||
background-color:#E3F0FF;
|
||||
}
|
||||
div.redcontent{
|
||||
position: absolute;
|
||||
top:40px;
|
||||
left:250px;
|
||||
width:600px;
|
||||
background-color:#E3F0FF;
|
||||
}
|
||||
div.ccontent{
|
||||
position: absolute;
|
||||
top:40px;
|
||||
left:130px;
|
||||
width:680px;
|
||||
background-color:#E3F0FF;
|
||||
}
|
||||
div.rmenu {
|
||||
position: absolute;
|
||||
top:50px;
|
||||
right:30px;
|
||||
width:100px;
|
||||
background-color:#E3F0FF;
|
||||
}
|
||||
|
||||
table.mtitle {
|
||||
border:0;
|
||||
align:center
|
||||
}
|
||||
td.mshort {
|
||||
text-align:center;
|
||||
border: 1px solid;
|
||||
color:#5D90CD ;
|
||||
}
|
||||
td.mlltitle {
|
||||
text-align:center;
|
||||
background:url('image/glaslake2.jpg') no-repeat;
|
||||
height:30px;
|
||||
width:30px;
|
||||
font-size:12px;
|
||||
}
|
||||
td.mltitle {
|
||||
text-align:center;
|
||||
background:url('image/glaslake2.jpg') no-repeat;
|
||||
height:30px;
|
||||
width:100px;
|
||||
font-size:12px;
|
||||
}
|
||||
td.mtitle {
|
||||
text-align:center;
|
||||
background:url('image/glaslake2.jpg') no-repeat center;
|
||||
height:30px;
|
||||
width:120px;
|
||||
font-size:12px;
|
||||
}
|
||||
span.mtitle2 {
|
||||
background-color:red;
|
||||
font-size:12px;
|
||||
border-style:groove
|
||||
}
|
||||
span.mtitle {
|
||||
color:gray;
|
||||
background-color:blue;
|
||||
font-size:12px;
|
||||
border-style:groove
|
||||
}
|
||||
tr.odd {
|
||||
background-color:#DDE6FF;
|
||||
|
||||
}
|
||||
td.odd{
|
||||
background-color:#DDE6FF ;
|
||||
border:Opt
|
||||
}
|
||||
td.cell{
|
||||
border-style:solid;
|
||||
border-width:1pt;
|
||||
font-size:11pt;
|
||||
}
|
||||
a.mtitle:link {
|
||||
text-decoration:none;
|
||||
color:black;
|
||||
}
|
||||
a.mtitle:visited {
|
||||
text-decoration:none;
|
||||
color:black;
|
||||
|
||||
}
|
||||
a.mtitle:active {
|
||||
text-decoration:none;
|
||||
background:#0F4CD0;
|
||||
}
|
||||
|
||||
a.mtitle:hover {
|
||||
color:white;
|
||||
background-color:#5D90CD;
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
a.one:link {
|
||||
text-decoration:underline;
|
||||
color:#3010FF
|
||||
}
|
||||
a.one:visited {
|
||||
text-decoration:underline;
|
||||
color:#3010FF
|
||||
}
|
||||
a.one:active {
|
||||
background: #0000FF
|
||||
}
|
||||
|
||||
a.one:hover {
|
||||
background:#3010FF;
|
||||
color:#FFFFFF
|
||||
}
|
||||
|
||||
a.two:link {
|
||||
text-decoration:none;
|
||||
color:#3010FF
|
||||
}
|
||||
a.two:visited {
|
||||
text-decoration:none;
|
||||
color:#3010FF
|
||||
}
|
||||
a.two:active {
|
||||
background: #0000FF;
|
||||
}
|
||||
|
||||
a.two:hover {
|
||||
background:#3010FF;
|
||||
color:#FFFFFF;
|
||||
font-size:19px
|
||||
}
|
||||
|
||||
th.doc {
|
||||
background: #0000C5;
|
||||
color: #FFFFFF
|
||||
}
|
||||
|
||||
|
||||
table.doc {
|
||||
width: 60% ;
|
||||
ALIGN: "center"
|
||||
}
|
||||
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue