|
From: mdw c. <myd...@li...> - 2002-04-08 22:37:32
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/petits/img Log Message: Directory /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/img added to the repository |
|
From: mdw c. <myd...@li...> - 2002-04-08 22:38:40
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/petits/img Added Files: b.gif barre.gif bd.gif bg.gif bulle.gif d.gif g.gif hd.gif hg.gif logo.gif loupe.gif mail.gif pixel.gif sukria.net-brown.gif sukria.net.gif sukria_fondblanc.gif tiret.gif Log Message: The first shoot for the template of "Tout petit" Private present for Magic*Ben ! :)) |
|
From: mdw c. <myd...@li...> - 2002-04-08 22:38:40
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/petits Added Files: bar.html box.html brown.css calendar.html comment.html comment_title.html default.css layer.js main.html news.html news.html.old page.html thread.html topbar.html Log Message: The first shoot for the template of "Tout petit" Private present for Magic*Ben ! :)) |
|
From: mdw c. <myd...@li...> - 2002-04-08 22:39:11
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/deekay Modified Files: main.html Log Message: The first shoot for the template of "Tout petit" Private present for Magic*Ben ! :)) =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/deekay/main.html,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- main.html 18 Dec 2001 10:28:29 -0000 1.7 +++ main.html 8 Apr 2002 22:38:39 -0000 1.8 @@ -39,24 +39,23 @@ <tr> <!-- COLONNE GAUCHE --> - <td width="20%" valign="top"> + <td width="15%" valign="top"> <div id="bar"> ~LINK_BOXES~ - ~SPONSORS~ + ~WHATSUP_BOX~ </div> </td> <!-- CENTRE --> - <td valign="top" width="60%"> + <td valign="top" width="70%"> ~CONTENT~ </td> <!-- COLONNE DROITE --> - <td width="20%" valign="top"> + <td width="15%" valign="top"> <div id="bar"> ~LOGIN~ ~SEARCH~ - ~WHATSUP_BOX~ ~HEADLINES~ </div> </td> @@ -70,7 +69,7 @@ <!-- PIED DE PAGE --> <div id="footer"> -<font size="3" >~QUOTATION~</font> + <font size="2" color='#444444'><i>~QUOTATION~</i></font> <p> |
|
From: mdw c. <myd...@li...> - 2002-04-09 11:13:29
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/petits
Modified Files:
default.css main.html
Log Message:
Some updates such as CSS styles for input
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/default.css,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- default.css 8 Apr 2002 22:38:39 -0000 1.1
+++ default.css 9 Apr 2002 09:02:19 -0000 1.2
@@ -6,6 +6,18 @@
border-width : 1 ;
}
+input {
+ BACKGROUND-COLOR: #999900;
+ COLOR: #000000;
+ FONT-FAMILY: Arial, Helvetica;
+ FONT-SIZE: 11px ;
+ FONT-WEIGHT: BOLD;
+ BORDER-BOTTOM: #275503 1px solid;
+ BORDER-LEFT: #777700 1px solid;
+ BORDER-RIGHT: #275503 1px solid;
+ BORDER-TOP: #777700 1px solid;
+}
+
.page {
background: #FECB32;
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/main.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- main.html 8 Apr 2002 22:38:39 -0000 1.1
+++ main.html 9 Apr 2002 09:02:19 -0000 1.2
@@ -16,23 +16,32 @@
<center>
+ <form name='login_form' action='set_session.php' METHOD='POST'>
<table width="80%" cellpadding="0" cellspacing="2" border="0" bgcolor="#275503" class="header">
<tr>
- <td valign="middle" align="left"><font face="Arial" size="+2" color="#fffff"><b>~SITE_TITLE~</b></font></td>
+ <td width="90%" valign="middle" align="left"><font face="Arial" size="+2" color="#fffff"><b>~SITE_TITLE~</b></font></td>
+ <td>
+ <font size='-1'><input type="text" name="user" onFocus="if (this.value=='nom') this.value='';" size="13" value="nom"></font>
+ </td>
+
+ <td>
+ <font size='-1'>
+ <input onFocus="if (this.value='password') this.value='';" type="password" name="pass" size="13" value="password">
+ </font>
+ </td>
+
+ <td>
+ <font size='-1'><input type="submit" value="Entrer"></font>
+ </td>
</tr>
-
+ </form>
</table>
<table width="80%" cellpadding="0" cellspacing="0" border="0" class="page">
- <tr>
- <td rowspan="5" width="10"><img src="templates/snow/img/g.gif"></td>
- <td colspan="2"><p> </p></td>
- <td rowspan="5" background="templates/snow/img/d.gif" width="10"><img src="templates/snow/img/pixel.gif" width="10" height="1"></td>
- </tr>
<tr>
<td colspan="2" align="right">~TOPBAR~</td>
|
|
From: mdw c. <myd...@li...> - 2002-04-09 11:13:31
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/petits
Modified Files:
default.css main.html news.html
Log Message:
OK, much and much updates...
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/default.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- default.css 9 Apr 2002 09:02:19 -0000 1.2
+++ default.css 9 Apr 2002 10:43:18 -0000 1.3
@@ -6,19 +6,30 @@
border-width : 1 ;
}
-input {
- BACKGROUND-COLOR: #999900;
- COLOR: #000000;
- FONT-FAMILY: Arial, Helvetica;
- FONT-SIZE: 11px ;
- FONT-WEIGHT: BOLD;
- BORDER-BOTTOM: #275503 1px solid;
- BORDER-LEFT: #777700 1px solid;
- BORDER-RIGHT: #275503 1px solid;
- BORDER-TOP: #777700 1px solid;
+.newsbar {
+ border-left : thick solid #306704;
+ border-right : thick solid #173202;
+ border-top : thick solid #306704;
+ border-bottom : thick solid #173202;
+ border-width : 1 ;
+ font-family: Times;
+ font-size: 12pt;
+ color: white;
+ font-weight: bold;
+}
+
+.news {
+ background-color: white;
+ border-left : thick solid #306704;
+ border-right : thick solid #173202;
+ border-top : thick solid #306704;
+ border-bottom : thick solid #173202;
+ border-width : 1 ;
+ font-family: Times;
+ font-size: 12pt;
+ color: black;
}
-
-
+
.page {
background: #FECB32;
border-left : thick solid #FFE539;
@@ -49,8 +60,70 @@
}
+
.boxes {
padding: 10px;
font-size: 8pt;
font-family: arial;
+}
+
+.header input {
+ BACKGROUND-COLOR: #777700;
+ COLOR: #000000;
+ FONT-FAMILY: Courier;
+ FONT-SIZE: 11px ;
+ FONT-WEIGHT: none;
+ BORDER-BOTTOM: #275503 1px solid;
+ BORDER-LEFT: #000000 1px solid;
+ BORDER-RIGHT: #275503 1px solid;
+ BORDER-TOP: #000000 1px solid;
+}
+
+
+input {
+ BACKGROUND-COLOR: #EEEEEE;
+ COLOR: #000000;
+ FONT-FAMILY: Arial, Helvetica;
+ FONT-SIZE: 11px ;
+ FONT-WEIGHT: BOLD;
+ BORDER-BOTTOM: #275503 1px solid;
+ BORDER-LEFT: #777700 1px solid;
+ BORDER-RIGHT: #275503 1px solid;
+ BORDER-TOP: #777700 1px solid;
+}
+
+textarea {
+ BACKGROUND-COLOR: #EEEEEE;
+ COLOR: #000000;
+ FONT-FAMILY: Arial, Helvetica;
+ FONT-SIZE: 11px;
+ BORDER-BOTTOM: #275503 1px solid;
+ BORDER-LEFT: #777700 1px solid;
+ BORDER-RIGHT: #275503 1px solid;
+ BORDER-TOP: #777700 1px solid;
+ scrollbar-3dlight-color:#808080;
+ scrollbar-arrow-color:#808080;
+ scrollbar-base-color:#808080;
+ scrollbar-darkshadow-color:white;
+ scrollbar-face-color:white;
+ scrollbar-highlight-color:white;
+ scrollbar-shadow-color:#808080;
+} }
+
+select {
+ BACKGROUND-COLOR: #EEEEEE;
+ COLOR: #000000;
+ FONT-FAMILY: Arial, Helvetica;
+ FONT-SIZE: 11px ;
+ BORDER-BOTTOM: #275503 1px solid;
+ BORDER-LEFT: #777700 1px solid;
+ BORDER-RIGHT: #275503 1px solid;
+ BORDER-TOP: #777700 1px solid;
+ scrollbar-3dlight-color:#FFE539;
+ scrollbar-arrow-color:#275503;
+ scrollbar-base-color:#275503;
+ scrollbar-darkshadow-color:#000000;
+ scrollbar-face-color:#275503;
+ scrollbar-highlight-color:#FFFFFF;
+ scrollbar-shadow-color:#000000;
}
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/main.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- main.html 9 Apr 2002 09:02:19 -0000 1.2
+++ main.html 9 Apr 2002 10:43:19 -0000 1.3
@@ -25,7 +25,7 @@
<font size='-1'><input type="text" name="user" onFocus="if (this.value=='nom') this.value='';" size="13" value="nom"></font>
</td>
- <td>
+ <td class="header">
<font size='-1'>
<input onFocus="if (this.value='password') this.value='';" type="password" name="pass" size="13" value="password">
</font>
@@ -40,7 +40,7 @@
- <table width="80%" cellpadding="0" cellspacing="0" border="0" class="page">
+ <table width="80%" cellpadding="0" cellspacing="0" border="0" class="page" bgcolor="#FECB32">
<tr>
@@ -56,7 +56,6 @@
~LINK_BOXES~
~ccs_linkbox~
~WHATSUP_BOX~
- ~LOGIN~
</td>
<td class="content" valign="top" align="center" width="100%">
~CONTENT~
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/news.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- news.html 8 Apr 2002 22:38:39 -0000 1.1
+++ news.html 9 Apr 2002 10:43:20 -0000 1.2
@@ -1,13 +1,15 @@
-<table width="90%">
+<table width="90%" cellspacing="0" cellpadding="5" border="0">
-<tr bgcolor="275503"><td>
+<tr class="newsbar" bgcolor="275503"><td>
<b> ·<font color="#FFFFFF"> ~TITLE~ </font> ·</b><br>
</td></tr>
-<tr><td>
+<tr><td class="news">
+
+
<A HREF="~LINK~"><IMG SRC="~IMAGE~" BORDER="0" ALIGN="RIGHT" HSPACE="20" VSPACE="10" ALT="~ALT~"></A>
~TEXT~
|
|
From: mdw c. <myd...@li...> - 2002-04-09 19:38:06
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/petits/img Added Files: degrade.gif Log Message: Now the theme has a better look. It has : - a nice boxes marge - a nice news item design - a nice topbar It remains to do : - a better look for comments.html (still in white background) - remove white output from the topnews.php script |
|
From: mdw c. <myd...@li...> - 2002-04-09 19:38:06
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/petits
Modified Files:
box.html default.css main.html news.html thread.html
topbar.html
Log Message:
Now the theme has a better look.
It has :
- a nice boxes marge
- a nice news item design
- a nice topbar
It remains to do :
- a better look for comments.html (still in white background)
- remove white output from the topnews.php script
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/box.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- box.html 8 Apr 2002 22:38:39 -0000 1.1
+++ box.html 9 Apr 2002 19:30:23 -0000 1.2
@@ -1,9 +1,14 @@
+
<!-- BLOCK:HEAD -->
-<b> ~TITLE~</b><br>
+<div class="boxTitle">
+~TITLE~<br>
+</div>
<!-- BLOCK:LINE -->
+<div class="boxContent">
~CONTENT~<br>
<!-- BLOCK:FOOT -->
+</div>
<p>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/default.css,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- default.css 9 Apr 2002 10:43:18 -0000 1.3
+++ default.css 9 Apr 2002 19:30:23 -0000 1.4
@@ -6,30 +6,65 @@
border-width : 1 ;
}
+.topbar A {
+ font-family: Arial, Helvetica, Tahoma;
+ font-size: 11pt;
+ color: #000000;
+ font-weight: bold;
+ text-decoration: none;
+}
+
+.topbar A:hover {
+ font-family: Arial, Helvetica, Tahoma;
+ font-size: 11pt;
+ color: #FFFFFF;
+ font-weight: bold;
+ text-decoration: none;
+ background-color: #275503;
+}
+
+.boxTitle {
+ font-family: Arial, Helvetica, Tahoma;
+ font-size: 10pt;
+ color: #FECB32;
+ font-weight: bold;
+}
+
+.boxContent {
+ font-family: Arial, Helvetica, Tahoma;
+ font-size: 10pt;
+ color: #FECB32;
+}
+
+.boxContent A {
+ font-family: Arial, Helvetica, Tahoma;
+ font-size: 10pt;
+ color: #EEEEEE;
+}
+
.newsbar {
- border-left : thick solid #306704;
- border-right : thick solid #173202;
- border-top : thick solid #306704;
- border-bottom : thick solid #173202;
- border-width : 1 ;
- font-family: Times;
+ font-family: Arial, Helvetica, Tahoma;
font-size: 12pt;
- color: white;
- font-weight: bold;
+ color: #FFFFFF;
}
.news {
- background-color: white;
- border-left : thick solid #306704;
- border-right : thick solid #173202;
- border-top : thick solid #306704;
- border-bottom : thick solid #173202;
- border-width : 1 ;
- font-family: Times;
+ font-family: Arial, Helvetica;
font-size: 12pt;
color: black;
}
-
+
+.newsfooter {
+ border-left : thick solid #000000;
+ border-right : thick solid #000000;
+ border-bottom : thick solid #000000;
+ border-width : 1 ;
+ font-family: Courier;
+ font-size: 8pt;
+ color: black;
+ font-weight: bold;
+}
+
.page {
background: #FECB32;
border-left : thick solid #FFE539;
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/main.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- main.html 9 Apr 2002 10:43:19 -0000 1.3
+++ main.html 9 Apr 2002 19:30:23 -0000 1.4
@@ -25,7 +25,7 @@
<font size='-1'><input type="text" name="user" onFocus="if (this.value=='nom') this.value='';" size="13" value="nom"></font>
</td>
- <td class="header">
+ <td>
<font size='-1'>
<input onFocus="if (this.value='password') this.value='';" type="password" name="pass" size="13" value="password">
</font>
@@ -52,7 +52,7 @@
<tr>
- <td valign="top" class="boxes" align="left" width="120">
+ <td valign="top" class="boxes" align="left" width="150" background="templates/petits/img/degrade.gif">
~LINK_BOXES~
~ccs_linkbox~
~WHATSUP_BOX~
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/news.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- news.html 9 Apr 2002 10:43:20 -0000 1.2
+++ news.html 9 Apr 2002 19:30:23 -0000 1.3
@@ -1,28 +1,33 @@
-<table width="90%" cellspacing="0" cellpadding="5" border="0">
-
-<tr class="newsbar" bgcolor="275503"><td>
+<table width="90%" cellspacing="0" cellpadding="0" border="0">
+<tr bgcolor="#275503" class="newsbar">
+ <td>
<b> ·<font color="#FFFFFF"> ~TITLE~ </font> ·</b><br>
+ </td>
+ <td width="180" background="templates/petits/img/degrade.gif">
+
+ </td>
+</tr>
-</td></tr>
-
-<tr><td class="news">
+<tr><td class="news" colspan="2">
<A HREF="~LINK~"><IMG SRC="~IMAGE~" BORDER="0" ALIGN="RIGHT" HSPACE="20" VSPACE="10" ALT="~ALT~"></A>
~TEXT~
- <table width="100%">
+<p>
+
+ <table width="100%" class="newsfooter">
<tr>
- <td align="left"><font size="-1" color="#777777"><b> ~NBHIT~ hits - ~NBCOMMENT~ ~COMMENTS~ / ~NBTHREADS~ ~THREADS~</b></font></td>
+ <td align="left">~NBHIT~ hits - ~NBCOMMENT~ ~COMMENTS~ / ~NBTHREADS~ ~THREADS~</td>
<td align="right">
- <a href="comment.php?news=~NUMNEWS~"><font size="-1" color="#777777">~DETAILS~</font></a>
+ <a href="comment.php?news=~NUMNEWS~">~DETAILS~</a>
- <a href="add_comment.php?num_news=~NUMNEWS~"><font size="-1" color="#777777">~COMMENTS~</font></a>
+ <a href="add_comment.php?num_news=~NUMNEWS~">~COMMENTS~</a>
- <a href="forward.php?news=~NUMNEWS~"><font size="-1" color="#777777">Forward</font></a>
+ <a href="forward.php?news=~NUMNEWS~">Forward</a>
</td>
</tr>
</table>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/thread.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- thread.html 8 Apr 2002 22:38:39 -0000 1.1
+++ thread.html 9 Apr 2002 19:30:23 -0000 1.2
@@ -1,6 +1,6 @@
<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0">
- <tr bgcolor='#dddddd'>
+ <tr>
<td align='left'>
<b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~)
</td>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/topbar.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- topbar.html 8 Apr 2002 22:38:39 -0000 1.1
+++ topbar.html 9 Apr 2002 19:30:23 -0000 1.2
@@ -1,12 +1,12 @@
<table cellpadding="0" cellscpacing="0" border="0" width="100%">
<tr>
- <td background="templates/petits/img/barre.gif" width="200">
+ <td background="templates/petits/img/barre.gif" >
<img src="templates/petits/img/logo.gif">
</td>
<td>
- <table cellpadding="1" cellspacing="0" border="0" bgcolor="#000000"><tr><td>
- <table bgcolor="#FECB32"><tr><td>
+ <table width="99%" cellpadding="1" cellspacing="0" border="0" bgcolor="#000000"><tr><td>
+ <table width="100%" bgcolor="#FECB32"><tr><td align="center" class="topbar">
<a class="topbar" href="~LEFT1_URL~">~LEFT1~</a>
<a class="topbar" href="~LEFT2_URL~">~LEFT2~</a>
|
|
From: mdw c. <myd...@li...> - 2002-04-10 18:32:59
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/petits
Modified Files:
default.css
Log Message:
Putting the backroung opaque for the layer
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/default.css,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- default.css 10 Apr 2002 11:34:51 -0000 1.5
+++ default.css 10 Apr 2002 12:50:24 -0000 1.6
@@ -63,6 +63,7 @@
width: 400px;
height: 340px;
border: 1px solid #666666;
+background-color: #FECB32;
}
.boxContent {
|
|
From: mdw c. <myd...@li...> - 2002-04-10 18:36:08
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/petits/img
Added Files:
grille.gif
Log Message:
Addition of the calendar element in the theme.
It is managed through layer that must be shown by a link like that :
<a href="javascript:show('layer');">
It has been tested with the topbar : just put "javascript:show('layer');" in the admin section and it ill work.
|
|
From: mdw c. <myd...@li...> - 2002-04-10 18:36:14
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/petits
Modified Files:
default.css main.html
Log Message:
Addition of the calendar element in the theme.
It is managed through layer that must be shown by a link like that :
<a href="javascript:show('layer');">
It has been tested with the topbar : just put "javascript:show('layer');" in the admin section and it ill work.
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/default.css,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- default.css 9 Apr 2002 19:30:23 -0000 1.4
+++ default.css 10 Apr 2002 11:34:51 -0000 1.5
@@ -1,164 +1,199 @@
.header {
- border-left : thick solid #306704;
- border-right : thick solid #173202;
- border-top : thick solid #306704;
- border-bottom : thick solid #173202;
- border-width : 1 ;
+border-left : thick solid #306704;
+border-right : thick solid #173202;
+border-top : thick solid #306704;
+border-bottom : thick solid #173202;
+border-width : 1 ;
}
.topbar A {
- font-family: Arial, Helvetica, Tahoma;
- font-size: 11pt;
- color: #000000;
- font-weight: bold;
- text-decoration: none;
+font-family: Arial, Helvetica, Tahoma;
+font-size: 11pt;
+color: #000000;
+font-weight: bold;
+text-decoration: none;
}
.topbar A:hover {
- font-family: Arial, Helvetica, Tahoma;
- font-size: 11pt;
- color: #FFFFFF;
- font-weight: bold;
- text-decoration: none;
- background-color: #275503;
+font-family: Arial, Helvetica, Tahoma;
+font-size: 11pt;
+color: #FFFFFF;
+font-weight: bold;
+text-decoration: none;
+background-color: #275503;
}
.boxTitle {
- font-family: Arial, Helvetica, Tahoma;
- font-size: 10pt;
- color: #FECB32;
- font-weight: bold;
+font-family: Arial, Helvetica, Tahoma;
+font-size: 10pt;
+color: #FECB32;
+font-weight: bold;
+}
+
+.calendar {
+
+background-color: #FECB32;
+font-family: Courier;
+font-size: 11pt;
+}
+
+.CalendarHeader {
+background-color: #306704;
+color: #FFFFFF;
+font-family: arial,helvetica;
+font-size: 12pt;
+}
+
+.CalendarClassic {
+background-color: #275503;
+color: #000000;
+font-family: Courier;
+font-size: 11pt;
}
-
+
+.bg {
+ background-color: #EEEEEE;
+ text-align: center;
+ color: #000000;
+
+}
+
+#layerIn {
+top: 100px;
+width: 400px;
+height: 340px;
+border: 1px solid #666666;
+}
+
.boxContent {
- font-family: Arial, Helvetica, Tahoma;
- font-size: 10pt;
- color: #FECB32;
+font-family: Arial, Helvetica, Tahoma;
+font-size: 10pt;
+color: #FECB32;
}
.boxContent A {
- font-family: Arial, Helvetica, Tahoma;
- font-size: 10pt;
- color: #EEEEEE;
+font-family: Arial, Helvetica, Tahoma;
+font-size: 10pt;
+color: #EEEEEE;
}
.newsbar {
- font-family: Arial, Helvetica, Tahoma;
- font-size: 12pt;
- color: #FFFFFF;
+font-family: Arial, Helvetica, Tahoma;
+font-size: 12pt;
+color: #FFFFFF;
}
-
+
.news {
- font-family: Arial, Helvetica;
- font-size: 12pt;
- color: black;
+font-family: Arial, Helvetica;
+font-size: 12pt;
+color: black;
}
.newsfooter {
- border-left : thick solid #000000;
- border-right : thick solid #000000;
- border-bottom : thick solid #000000;
- border-width : 1 ;
- font-family: Courier;
- font-size: 8pt;
- color: black;
- font-weight: bold;
+border-left : thick solid #000000;
+border-right : thick solid #000000;
+border-bottom : thick solid #000000;
+border-width : 1 ;
+font-family: Courier;
+font-size: 8pt;
+color: black;
+font-weight: bold;
}
-
+
.page {
- background: #FECB32;
- border-left : thick solid #FFE539;
- border-right : thick solid #000000;
- border-top : thick solid #FFE539;
- border-bottom : thick solid #000000;
- border-width : 1 ;
+background: #FECB32;
+border-left : thick solid #FFE539;
+border-right : thick solid #000000;
+border-top : thick solid #FFE539;
+border-bottom : thick solid #000000;
+border-width : 1 ;
}
body {
- font-family: Times;
- font-size: 11px;
+font-family: Times;
+font-size: 11px;
}
a {
- font-weight: none;
- text-decoration: none;
- color: #306704;
+font-weight: none;
+text-decoration: none;
+color: #306704;
}
pre {
- font-family: courier;
- font-size: 8pt;
+font-family: courier;
+font-size: 8pt;
}
a:hover {
- text-decoration: underline;
+text-decoration: underline;
}
.boxes {
- padding: 10px;
- font-size: 8pt;
- font-family: arial;
+padding: 10px;
+font-size: 8pt;
+font-family: arial;
}
.header input {
- BACKGROUND-COLOR: #777700;
- COLOR: #000000;
- FONT-FAMILY: Courier;
- FONT-SIZE: 11px ;
- FONT-WEIGHT: none;
- BORDER-BOTTOM: #275503 1px solid;
- BORDER-LEFT: #000000 1px solid;
- BORDER-RIGHT: #275503 1px solid;
- BORDER-TOP: #000000 1px solid;
+BACKGROUND-COLOR: #777700;
+COLOR: #000000;
+FONT-FAMILY: Courier;
+FONT-SIZE: 11px ;
+FONT-WEIGHT: none;
+BORDER-BOTTOM: #275503 1px solid;
+BORDER-LEFT: #000000 1px solid;
+BORDER-RIGHT: #275503 1px solid;
+BORDER-TOP: #000000 1px solid;
}
input {
- BACKGROUND-COLOR: #EEEEEE;
- COLOR: #000000;
- FONT-FAMILY: Arial, Helvetica;
- FONT-SIZE: 11px ;
- FONT-WEIGHT: BOLD;
- BORDER-BOTTOM: #275503 1px solid;
- BORDER-LEFT: #777700 1px solid;
- BORDER-RIGHT: #275503 1px solid;
- BORDER-TOP: #777700 1px solid;
+BACKGROUND-COLOR: #EEEEEE;
+COLOR: #000000;
+FONT-FAMILY: Arial, Helvetica;
+FONT-SIZE: 11px ;
+FONT-WEIGHT: BOLD;
+BORDER-BOTTOM: #275503 1px solid;
+BORDER-LEFT: #777700 1px solid;
+BORDER-RIGHT: #275503 1px solid;
+BORDER-TOP: #777700 1px solid;
}
textarea {
- BACKGROUND-COLOR: #EEEEEE;
- COLOR: #000000;
- FONT-FAMILY: Arial, Helvetica;
- FONT-SIZE: 11px;
- BORDER-BOTTOM: #275503 1px solid;
- BORDER-LEFT: #777700 1px solid;
- BORDER-RIGHT: #275503 1px solid;
- BORDER-TOP: #777700 1px solid;
- scrollbar-3dlight-color:#808080;
- scrollbar-arrow-color:#808080;
- scrollbar-base-color:#808080;
- scrollbar-darkshadow-color:white;
- scrollbar-face-color:white;
- scrollbar-highlight-color:white;
- scrollbar-shadow-color:#808080;
-} }
+BACKGROUND-COLOR: #EEEEEE;
+COLOR: #000000;
+FONT-FAMILY: Arial, Helvetica;
+FONT-SIZE: 11px;
+BORDER-BOTTOM: #275503 1px solid;
+BORDER-LEFT: #777700 1px solid;
+BORDER-RIGHT: #275503 1px solid;
+BORDER-TOP: #777700 1px solid;
+scrollbar-3dlight-color:#808080;
+scrollbar-arrow-color:#808080;
+scrollbar-base-color:#808080;
+scrollbar-darkshadow-color:white;
+scrollbar-face-color:white;
+scrollbar-highlight-color:white;
+scrollbar-shadow-color:#808080;
+}}
select {
- BACKGROUND-COLOR: #EEEEEE;
- COLOR: #000000;
- FONT-FAMILY: Arial, Helvetica;
- FONT-SIZE: 11px ;
- BORDER-BOTTOM: #275503 1px solid;
- BORDER-LEFT: #777700 1px solid;
- BORDER-RIGHT: #275503 1px solid;
- BORDER-TOP: #777700 1px solid;
- scrollbar-3dlight-color:#FFE539;
- scrollbar-arrow-color:#275503;
- scrollbar-base-color:#275503;
- scrollbar-darkshadow-color:#000000;
- scrollbar-face-color:#275503;
- scrollbar-highlight-color:#FFFFFF;
- scrollbar-shadow-color:#000000;
+BACKGROUND-COLOR: #EEEEEE;
+COLOR: #000000;
+FONT-FAMILY: Arial, Helvetica;
+FONT-SIZE: 11px ;
+BORDER-BOTTOM: #275503 1px solid;
+BORDER-LEFT: #777700 1px solid;
+BORDER-RIGHT: #275503 1px solid;
+BORDER-TOP: #777700 1px solid;
+scrollbar-3dlight-color:#FFE539;
+scrollbar-arrow-color:#275503;
+scrollbar-base-color:#275503;
+scrollbar-darkshadow-color:#000000;
+scrollbar-face-color:#275503;
+scrollbar-highlight-color:#FFFFFF;
+scrollbar-shadow-color:#000000;
}
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits/main.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- main.html 9 Apr 2002 19:30:23 -0000 1.4
+++ main.html 10 Apr 2002 11:34:51 -0000 1.5
@@ -4,6 +4,9 @@
<HEAD>
<TITLE>~SITE_TITLE~ - ~PAGE_TITLE~</TITLE>
<link rel="stylesheet" href="templates/petits/default.css" type="text/css">
+
+<script src="templates/petits/layer.js"></script>
+
</HEAD>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#999900">
@@ -58,7 +61,10 @@
~WHATSUP_BOX~
</td>
<td class="content" valign="top" align="center" width="100%">
- ~CONTENT~
+
+ <!-- la page a afficher -->
+ ~CONTENT~
+
</td>
</tr>
@@ -73,6 +79,27 @@
</p>
+
+<div align="center" id="layer" valign="center" style="position:absolute; top:100; width:100%; height:100%; visibility: hidden">
+<div id="layerIn">
+<table height="100%" width="100%" background="templates/petits/img/grille.gif"><tr><td height="100%" width="100%" background="templates/petits/img/grille.gif">
+
+<table align="center" width="250" height="200"><tr><td align="center">
+<div class="bg"><h2>Calendrier</h2></div>
+<p>
+
+~CALENDAR~
+
+<p>
+
+<div class="bg"><a href="#" onClick="hide('layer');return(false);">Fermer</a></div>
+
+</td></tr></table>
+
+</td></tr></table>
+
+</div>
+</div>
</body>
</html>
|
|
From: mdw c. <myd...@li...> - 2002-04-15 08:42:06
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
print.php
Log Message:
Can now display text file located in $DYNAROOT/htdocs/
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/print.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- print.php 10 Dec 2001 11:10:21 -0000 1.2
+++ print.php 15 Apr 2002 08:42:05 -0000 1.3
@@ -82,6 +82,27 @@
print_template(THEMES_PATH."/main.html",$content,$title,$DBH,$c,$REMOTE_ADDR, $HTTP_REFERER, '',1,0);
}
+else if (isset($file)) {
+
+ $file = DYNA_ROOT . $file;
+ if (file_exists($file)) {
+ $a_file = file($file);
+ if ($verbose == 1) $content = "<h2>Automatic file wrapper from $file </h2>";
+ foreach ($a_file as $line) {
+ $content .= "$line <br>";
+ }
+ $title = "$file";
+ print_template(THEMES_PATH."/main.html",$content,$title,$DBH,$c,$REMOTE_ADDR, $HTTP_REFERER, '',1,0);
+
+ }
+ else {
+ $title = translate("NO_SUCH_FILE", $DBH);
+ $content = translate("NO_SUCH_FILE : $file", $DBH);
+
+ print_template(THEMES_PATH."/main.html",$content,$title,$DBH,$c,$REMOTE_ADDR, $HTTP_REFERER, '',1,0);
+ }
+
+}
//}}}
//{{{1 If $event is set
//{{{2 Test cache
|
|
From: mdw c. <myd...@li...> - 2002-04-15 12:18:02
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
print.php
Log Message:
Security update : only .txt files are printed
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/print.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- print.php 15 Apr 2002 08:42:05 -0000 1.3
+++ print.php 15 Apr 2002 12:18:00 -0000 1.4
@@ -84,24 +84,31 @@
}
else if (isset($file)) {
- $file = DYNA_ROOT . $file;
- if (file_exists($file)) {
- $a_file = file($file);
- if ($verbose == 1) $content = "<h2>Automatic file wrapper from $file </h2>";
- foreach ($a_file as $line) {
- $content .= "$line <br>";
- }
- $title = "$file";
- print_template(THEMES_PATH."/main.html",$content,$title,$DBH,$c,$REMOTE_ADDR, $HTTP_REFERER, '',1,0);
+ if (preg_match("/.*\.txt$/", $file) and (!preg_match("/^etc/", $file))) {
+ $file = DYNA_ROOT . $file;
+ if (file_exists($file)) {
+ $a_file = file($file);
+ if ($verbose == 1) $content = "<h2>Automatic file wrapper from $file </h2>";
+ foreach ($a_file as $line) {
+ $content .= "$line <br>";
+ }
+ $title = "$file";
+ print_template(THEMES_PATH."/main.html",$content,$title,$DBH,$c,$REMOTE_ADDR, $HTTP_REFERER, '',1,0);
+
+ }
+ else {
+ $title = translate("NO_SUCH_FILE", $DBH);
+ $content = translate("NO_SUCH_FILE : $file", $DBH);
+
+ print_template(THEMES_PATH."/main.html",$content,$title,$DBH,$c,$REMOTE_ADDR, $HTTP_REFERER, '',1,0);
+ }
}
else {
- $title = translate("NO_SUCH_FILE", $DBH);
- $content = translate("NO_SUCH_FILE : $file", $DBH);
-
+ $title = "Security break";
+ $content = "Due to security reasons, <br> MyDynaWeb doesn't want to show you this file. <p><i>Hue... you nasty hack3r</i> :-P";
print_template(THEMES_PATH."/main.html",$content,$title,$DBH,$c,$REMOTE_ADDR, $HTTP_REFERER, '',1,0);
}
-
}
//}}}
//{{{1 If $event is set
|
|
From: mdw c. <myd...@li...> - 2002-04-26 13:56:09
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/enlightened Modified Files: news.html Log Message: There is now the facility of adding links to news. Hits performed on those links are counted. TODO : - update script in the admin section - add a language to the links =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/enlightened/news.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- news.html 4 Oct 2001 21:20:43 -0000 1.2 +++ news.html 26 Apr 2002 13:56:07 -0000 1.3 @@ -1,7 +1,9 @@ <p><table width="100%"><tr><td class="newstitle"> ~TITLE~ - [<a href="~LINK~">~ALT~</a>] </td></tr></table><table width="100%"><tr><td class="newsbody" align="left"> -<div align="left">~TEXT~</div> +<div align="left">~TEXT~ +~LINKS~ +</div> </td></tr></table> <p> |
|
From: mdw c. <myd...@li...> - 2002-04-26 13:56:40
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/datas/FR Modified Files: fortunes.txt Log Message: There is now the facility of adding links to news. Hits performed on those links are counted. TODO : - update script in the admin section - add a language to the links =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/datas/FR/fortunes.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- fortunes.txt 17 Dec 2001 09:45:15 -0000 1.3 +++ fortunes.txt 26 Apr 2002 13:56:06 -0000 1.4 @@ -17,10 +17,14 @@ "Tout ce qui brille n'est pas or" - J.R.R. Tolkien %%% +"Quand mon verre est plein, je le vide. Quand il est vide, je suis plein. Et quand je suis plein, on me vide... mais je me plaint !" +- Le chat +%%% "L'homme et le monde sont deux systèmes toxiques l'un pour l'autre" - Philip K. Dick - Anonyme %%% +Hacker /n./1. A person who enjoys exploring the details of programmable systems and how to stretch their capabilities, as opposed to most users, who prefer to learn only the minimum necessary. 2. One who programs enthusiastically (even obsessively) or who enjoys programming rather than just theorizing about programming. 3. A person capable of appreciating hack value. 4. A person who is good at programming quickly. 5. An expert at a particular program, or one who frequently does work using it or on it; as in `a Unix hacker'. (Definitions 1 through 5 are correlated, and people who fit them congregate.) 6. An expert or enthusiast of any kind. One might be an astronomy hacker, for example. 7. One who enjoys the intellectual challenge of creatively overcoming or circumventing limitations. +%%% L'avenir m'intéresse beaucoup car c'est ici que je compte passer le reste de mes jours. - Woody Allen -%%% |
|
From: mdw c. <myd...@li...> - 2002-04-26 13:56:41
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/deekay
Modified Files:
news.html
Log Message:
There is now the facility of adding links to news.
Hits performed on those links are counted.
TODO :
- update script in the admin section
- add a language to the links
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/deekay/news.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- news.html 21 Dec 2001 09:14:07 -0000 1.3
+++ news.html 26 Apr 2002 13:56:07 -0000 1.4
@@ -4,6 +4,8 @@
<A HREF="~LINK~"><IMG SRC="~IMAGE~" BORDER="0" ALIGN="RIGHT" HSPACE="20" VSPACE="10" ALT="~ALT~"></A>
~TEXT~
+~LINKS~
+
<table ><tr>
<td align="left">
<font size="-1" color="#777777"><b>·:[ ~NBHIT~ hits - ~NBCOMMENT~ ~COMMENTS~ ]:·</b></font>
|
|
From: mdw c. <myd...@li...> - 2002-04-26 13:56:41
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
add_comment.php add_news.php chpass.php login_failed.php
save_news.php welcome.php
Log Message:
There is now the facility of adding links to news.
Hits performed on those links are counted.
TODO :
- update script in the admin section
- add a language to the links
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/add_comment.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- add_comment.php 19 Feb 2002 00:33:16 -0000 1.7
+++ add_comment.php 26 Apr 2002 13:56:06 -0000 1.8
@@ -113,7 +113,7 @@
$chapeau = "";
$CONTENT = get_page($titre, $chapeau, $formulaire, $DBH);
- print_template(THEMES_PATH."/main.html", $CONTENT, $UserID, $DBH,$titre);
+ print_template(THEMES_PATH."/main.html", $CONTENT, $UserID, $DBH,$titre, $REMOTE_ADDR, $HTTP_REFERER, '', 70, 30);
?>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/add_news.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- add_news.php 8 Nov 2001 03:11:12 -0000 1.1
+++ add_news.php 26 Apr 2002 13:56:06 -0000 1.2
@@ -58,8 +58,37 @@
</td>
</tr>
+<tr>
+
+ <td colspan='2'>
+ <br>
+
+ <b>".translate('BOUND_LINKS', $DBH)."</b><br>
+ <br>
+
+ <li>
+ url : <input type='text' name='link_url1' size='30'> ".translate('name', $DBH)."
+ <input type='text' name='link_name1' size='30'>
+ </li>
+<br>
+ <li>
+ url : <input type='text' name='link_url2' size='30'> ".translate('name', $DBH)."
+ <input type='text' name='link_name2' size='30'>
+ </li>
+<br>
+ <li>
+ url : <input type='text' name='link_url3' size='30'> ".translate('name', $DBH)."
+ <input type='text' name='link_name3' size='30'>
+ </li>
+
+ </td>
+</tr>
+
<tr align=\"center\">
<td align=\"center\" colspan=2>
+
+ <br><br>
+
<input type=\"submit\" value=\"".translate("SUBMIT",$DBH)."\">
</td>
</tr>
@@ -74,7 +103,7 @@
$chapeau = "";
$CONTENT = get_page($titre, $chapeau, $formulaire, $DBH);
- print_template(THEMES_PATH."/main.html", $CONTENT, $UserID, $DBH,$titre);
+ print_template(THEMES_PATH."/main.html", $CONTENT, $UserID, $DBH,$titre, $REMOTE_ADDR, $HTTP_REFERER, '', 7, 40);
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/chpass.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- chpass.php 21 Nov 2001 19:25:46 -0000 1.2
+++ chpass.php 26 Apr 2002 13:56:06 -0000 1.3
@@ -34,7 +34,7 @@
$titre="MEMBERS";
$CONTENT = get_page($titre, "", $passwd, $DBH);
- print_template(THEMES_PATH."/main.html", $passwd, "passwd", $DBH,"CH_PASS");
+ print_template(THEMES_PATH."/main.html", $passwd, "passwd", $DBH,"CH_PASS", $REMOTE_ADDR, $HTTP_REFERER, '', 70, 50);
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/login_failed.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- login_failed.php 19 Feb 2002 17:32:56 -0000 1.2
+++ login_failed.php 26 Apr 2002 13:56:06 -0000 1.3
@@ -10,6 +10,6 @@
$CONTENT = get_page(translate("ERROR", $DBH), translate("INVALID_CREDENTIAL", $DBH), $LOGIN_FORM, $DBH);
-print_template(THEMES_PATH."/main.html", $CONTENT, $row[1], $DBH,$c, $REMOTE_ADDR, $HTTP_REFERER);
+print_template(THEMES_PATH."/main.html", $CONTENT, $row[1], $DBH,$c, $REMOTE_ADDR, $HTTP_REFERER, '', 80, 10);
?>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/save_news.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- save_news.php 8 Nov 2001 03:11:12 -0000 1.1
+++ save_news.php 26 Apr 2002 13:56:06 -0000 1.2
@@ -42,6 +42,30 @@
$rqt = new query($DBH);
$rqt->query($DBH, $sql) or send_error($PHP_SELF, $sql . " : " .$rqt->error());
+ $newsid = $DBH->lastid();
+
+ // les liens
+ if (strlen($link_url1) and strlen($link_name1)) {
+ $sql = "insert into links (url, name, _num_news)
+ values ('$link_url1', '$link_name1', $newsid)";
+ $rqt = new query($DBH);
+ $rqt->query($DBH, $sql) or send_error($PHP_SELF, $rqt->error());
+ }
+ if (strlen($link_url2) and strlen($link_name2)) {
+ $sql = "insert into links (url, name, _num_news)
+ values ('$link_url2', '$link_name2', $newsid)";
+ $rqt = new query($DBH);
+ $rqt->query($DBH, $sql) or send_error($PHP_SELF, $rqt->error());
+ }
+ if (strlen($link_url3) and strlen($link_name3)) {
+ $sql = "insert into links (url, name, _num_news)
+ values ('$link_url3', '$link_name3', $newsid)";
+ $rqt = new query($DBH);
+ $rqt->query($DBH, $sql) or send_error($PHP_SELF, $rqt->error());
+ }
+
+
+
if (strlen($TO)) {
send_piece_of_news($DBH->lastid('news_seq'), $TO, $DBH);
}
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/welcome.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- welcome.php 8 Nov 2001 03:11:12 -0000 1.6
+++ welcome.php 26 Apr 2002 13:56:06 -0000 1.7
@@ -85,7 +85,7 @@
$intro .= ("<p><a href='news.php'>[".translate("NEWS", $DBH)."]</a>");
$CONTENT = get_page(translate("ACCUEIL_GENERAL", $DBH), $intro, $PAGE, $DBH);
-print_template(THEMES_PATH."/main.html", $CONTENT, translate("WELCOME", $DBH), $DBH,$c, $REMOTE_ADDR, $HTTP_REFERER);
+print_template(THEMES_PATH."/main.html", $CONTENT, translate("WELCOME", $DBH), $DBH,$c, $REMOTE_ADDR, $HTTP_REFERER, '', 70, 10 );
|
|
From: mdw c. <myd...@li...> - 2002-04-26 13:56:41
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/include
Modified Files:
gui.inc.php
Log Message:
There is now the facility of adding links to news.
Hits performed on those links are counted.
TODO :
- update script in the admin section
- add a language to the links
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/gui.inc.php,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -3 -r1.50 -r1.51
--- gui.inc.php 19 Feb 2002 18:37:32 -0000 1.50
+++ gui.inc.php 26 Apr 2002 13:56:06 -0000 1.51
@@ -155,6 +155,22 @@
$VALUES['COMMENT'] = translate("COMMENT",$DBH);
$VALUES['DETAILS'] = translate("DETAILS",$DBH);
$VALUES['EMAIL_FRIEND'] = translate("EMAIL_FRIEND",$DBH);
+
+ // récupération des liens associés
+ $sql = "select num_link, name, hits
+ from links where _num_news=$num_news";
+ $rqt = new query($DBH);
+ $rqt->query($DBH, $sql);
+
+ $LINKS .= "<br>";
+ while ($row = $rqt->getrow()) {
+ $LINKS .= "<p>
+ <li><a href='redirect.php?link=$row[0]'>$row[1]</a> [$row[2] hits]</li>";
+ }
+
+ $LINKS .= "<br>";
+
+ $VALUES['LINKS'] = $LINKS;
return(get_hash_template($NEWS_HASH_TEMPLATE["ALL"], $VALUES));
|
|
From: mdw c. <myd...@li...> - 2002-04-26 13:56:41
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/dynadot Modified Files: news.html Log Message: There is now the facility of adding links to news. Hits performed on those links are counted. TODO : - update script in the admin section - add a language to the links =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/dynadot/news.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- news.html 7 Nov 2001 14:13:53 -0000 1.3 +++ news.html 26 Apr 2002 13:56:07 -0000 1.4 @@ -11,6 +11,8 @@ <TD colspan="2" bgcolor="#FFFFFF"> <A HREF="~LINK~"><IMG SRC="~IMAGE~" BORDER="0" ALIGN="RIGHT" HSPACE="20" VSPACE="10" ALT="~ALT~"></A> ~TEXT~ + +~LINKS~ </TD> </TR> </TABLE> |
|
From: mdw c. <myd...@li...> - 2002-04-26 14:08:06
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs Added Files: redirect.php Log Message: This is the redirect script, it incrment the number of hits for that links and then redirect the browser to the associetd url. |
|
From: mdw c. <myd...@li...> - 2002-05-07 15:31:39
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/galleries Log Message: Directory /cvsroot/mydynaweb/mydynaweb/htdocs/galleries added to the repository |
|
From: mdw c. <myd...@li...> - 2002-05-07 15:32:19
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/galleries Added Files: index.php Log Message: first shoot of galeries |
|
From: mdw c. <myd...@li...> - 2002-05-07 16:30:16
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/images Added Files: folder.png Log Message: folder icon |
|
From: mdw c. <myd...@li...> - 2002-05-07 16:48:25
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/galleries
Modified Files:
index.php
Log Message:
The goal is to perform gallerie listing through a simple
directory organisation.
$DYNAROOT/htdocs/galleries/ is the root for each galleries.
index.php (myself) is the script which can perform
navigation inside subfolders.
each subfolders located here is a gallerie.
the content of a gallerie folder should be like that :
- *.jpg | *.gif : the pictures to display
- thumbs (dir) : contains tiny pictures of the bigs
with the same name
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/galleries/index.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- index.php 7 May 2002 15:32:18 -0000 1.1
+++ index.php 7 May 2002 16:48:25 -0000 1.2
@@ -1,23 +1,111 @@
<?PHP
/*
- The goal is to perform gallerie listing through a simple
- directory organisation.
+The goal is to perform gallerie listing through a simple
+directory organisation.
- $DYNAROOT/htdocs/galleries/ is the root for each galleries.
+$DYNAROOT/htdocs/galleries/ is the root for each galleries.
- index.php (myself) is the script which can perform
- navigation inside subfolders.
+index.php (myself) is the script which can perform
+navigation inside subfolders.
- each subfolders located here is a gallerie.
+each subfolders located here is a gallerie.
+
+the content of a gallerie folder should be like that :
+- *.jpg | *.gif : the pictures to display
+- thumbs (dir) : contains tiny pictures of the bigs
+with the same name
- the content of a gallerie folder should be like that :
- - *.jpg | *.gif : the pictures to display
- - thumbs (dir) : contains tiny pictures of the bigs
- with the same name
-
*/
+include('../include/mydynaweb.init.php');
+include(DYNA_ROOT . '/include/mydynaweb.libs.php');
+
+$DBH=new db();
+$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+
+$root = 'galleries';
+$cols = 5;
+
+if (!isset($parse)) $parse = '';
+
+if ($handle = opendir(DYNA_ROOT . "/$root/" . $parse)) {
+
+ $count = 0;
+
+ while (false !== ($file = readdir($handle))) {
+
+
+
+ if ($file == '.' or
+ $file == 'CVS' or
+ $file == 'index.php') continue;
+
+ if ($file == '..') {
+ $browse .= print_back($parse);
+ continue;
+ }
+
+ $count++;
+
+
+ if ( ($count-1) % $cols == 0 ) {
+ $browse .= "<tr>\n";
+ }
+
+
+ if (is_dir(DYNA_ROOT . "/$root/$parse/" . $file)) {
+ $browse .= "\t<td align='center'>" . print_folder($file, $parse) . "</td>\n";
+ }
+ else {
+ $browse .= "\t<td align='center'>" . print_file($file, $parse) . "</td>\n";
+ }
+
+
+ if ($count % $cols == 0) {
+ $browse .= "</tr>\n";
+ }
+
+ }
+
+ $browse .= "</tr>\n";
+ closedir($handle);
+}
+
+$browse = "<table align=center>\n$browse</table>\n";
+$titre = "$parse - ";
+$chapeau = " ";
+
+$CONTENT = get_page($titre, $chapeau, $browse, $DBH);
+print_template(THEMES_PATH."/main.html", $CONTENT, $titre, $DBH,"toto");
+
+$DBH->close();
+
+function print_back($parse) {
+
+ if ($parse != '') {
+ $up = preg_replace('/\/\w+$/', '', $parse);
+ return "<a href='galleries/?parse=$up'><<</a><br>";
+ }
+
+}
+
+function print_folder ($file, $parse)
+// prints out a folder icon with a link to the folder
+{
+ return "<a href='galleries/?parse=$parse/$file'><img src='/images/folder.png' border='0'></a><br>$file";
+}
+
+function print_file ($file, $parse) {
+
+ if (preg_match('/.*\.jpg/', $file)) {
+ return "<a href='/$parse/$file'><img src='/$parse/thumbs/$file' border='0'></a>";
+ }
+ else {
+ return $file;
+ }
+
+}
?>
|
|
From: mdw c. <myd...@li...> - 2002-05-07 18:05:43
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/galleries
Modified Files:
index.php
Log Message:
it's working good now, see comment
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/galleries/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- index.php 7 May 2002 16:48:25 -0000 1.2
+++ index.php 7 May 2002 18:05:42 -0000 1.3
@@ -12,10 +12,17 @@
each subfolders located here is a gallerie.
the content of a gallerie folder should be like that :
+
+- MSG (file) : contains HTML stuff to describe the current folder
- *.jpg | *.gif : the pictures to display
- thumbs (dir) : contains tiny pictures of the bigs
with the same name
+
+TODO :
+- gif support
+- stats stuff in the DB
+
*/
include('../include/mydynaweb.init.php');
@@ -34,21 +41,43 @@
$count = 0;
+ // we start the parsing of the folder $parse
while (false !== ($file = readdir($handle))) {
-
+ // some exceptions ....
+
if ($file == '.' or
$file == 'CVS' or
+ $file == 'thumbs' or
$file == 'index.php') continue;
+ // do not display hidden files (.xxxxxxx)
+ if (preg_match('/^\.\w+/', $file)) {
+ continue;
+ }
+
+ // the back link to go upper in the tree
if ($file == '..') {
$browse .= print_back($parse);
continue;
}
+ // the special file MSG that contains the description text
+ if ($file == 'MSG') {
+ $chapeau = get_text_from_file($file, $parse);
+ continue;
+ }
+
+
+ // from here we are displaying an item.
+
+ // first of all count it up !
$count++;
+ // note it in the database
+ //$sql = "replace into files_stats () values ()";
+
if ( ($count-1) % $cols == 0 ) {
$browse .= "<tr>\n";
@@ -75,7 +104,6 @@
$browse = "<table align=center>\n$browse</table>\n";
$titre = "$parse - ";
-$chapeau = " ";
$CONTENT = get_page($titre, $chapeau, $browse, $DBH);
print_template(THEMES_PATH."/main.html", $CONTENT, $titre, $DBH,"toto");
@@ -100,11 +128,23 @@
function print_file ($file, $parse) {
if (preg_match('/.*\.jpg/', $file)) {
- return "<a href='/$parse/$file'><img src='/$parse/thumbs/$file' border='0'></a>";
+ return "<a href='galleries/$parse/$file'><img src='galleries/$parse/thumbs/$file' border='0'></a><br>$file";
}
else {
return $file;
}
+
+}
+
+function get_text_from_file($file, $parse) {
+
+ $fichier = file(DYNA_ROOT . '/galleries/' . "$parse/$file");
+
+ foreach ($fichier as $line) {
+ $html .= $line;
+ }
+
+ return $html;
}
|