phpcvsview-cvs-updates Mailing List for PHP CVS Repository Viewer (Page 2)
Status: Pre-Alpha
Brought to you by:
bcheesem
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
(1) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(7) |
Oct
(43) |
Nov
|
Dec
(19) |
2005 |
Jan
(28) |
Feb
(85) |
Mar
|
Apr
(16) |
May
(2) |
Jun
|
Jul
|
Aug
(3) |
Sep
(14) |
Oct
|
Nov
(16) |
Dec
|
2006 |
Jan
(9) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Sijis A. <si...@us...> - 2005-09-17 07:08:04
|
Update of /cvsroot/phpcvsview/phpcvsview/languages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29967/languages Modified Files: pt_br.php Log Message: - remove unecessary '\n' character Index: pt_br.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/languages/pt_br.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pt_br.php 18 Apr 2005 01:17:21 -0000 1.2 --- pt_br.php 17 Sep 2005 07:07:56 -0000 1.3 *************** *** 84,88 **** // error messages ! $lang['err_connect'] = '<h2>ERRO: Falha ao conectar ao PServer.</h2>'."\n"; $lang['err_get_rev'] = '<h3>ERRO: Solicitando Revisão para o arquivo:</h3>'; --- 84,88 ---- // error messages ! $lang['err_connect'] = '<h2>ERRO: Falha ao conectar ao PServer.</h2>'; $lang['err_get_rev'] = '<h3>ERRO: Solicitando Revisão para o arquivo:</h3>'; |
From: Sijis A. <si...@us...> - 2005-09-17 07:06:46
|
Update of /cvsroot/phpcvsview/phpcvsview/languages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29885/languages Modified Files: es.php Log Message: - removed unecessary '\n' character Index: es.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/languages/es.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** es.php 18 Apr 2005 01:17:21 -0000 1.2 --- es.php 17 Sep 2005 07:06:38 -0000 1.3 *************** *** 84,88 **** // error messages ! $lang['err_connect'] = '<h2>ERROR: No se puede conectar con el PServer.</h2>'."\n"; $lang['err_get_rev'] = '<h3>ERROR: Obteniendo revisión para el archivo:</h3>'; --- 84,88 ---- // error messages ! $lang['err_connect'] = '<h2>ERROR: No se puede conectar con el PServer.</h2>'; $lang['err_get_rev'] = '<h3>ERROR: Obteniendo revisión para el archivo:</h3>'; |
From: Sijis A. <si...@us...> - 2005-09-17 07:05:44
|
Update of /cvsroot/phpcvsview/phpcvsview/languages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29586/languages Modified Files: cn.php Log Message: - added image descriptive text Index: cn.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/languages/cn.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cn.php 21 Feb 2005 03:55:15 -0000 1.2 --- cn.php 17 Sep 2005 07:05:34 -0000 1.3 *************** *** 18,27 **** **/ ! $lang['encoding'] = 'GB2312'; // listing options ! $lang['file'] = 'Îļþ'; ! $lang['rev'] = '°æ´Î'; ! $lang['age'] = 'ʱÏÞ'; $lang['author'] = '×÷Õß'; $lang['last_log'] = '×î½ü¸üÐÂÈÕÖ¾'; --- 18,27 ---- **/ ! $lang['encoding'] = 'GB2312'; // listing options ! $lang['file'] = 'Îļþ'; ! $lang['rev'] = '°æ´Î'; ! $lang['age'] = 'ʱÏÞ'; $lang['author'] = '×÷Õß'; $lang['last_log'] = '×î½ü¸üÐÂÈÕÖ¾'; *************** *** 37,55 **** $lang['up_folder'] = 'ÉÏһĿ¼'; $lang['rev_history'] = 'ÒÔÏÂÎļþµÄ°æ´ÎÀúÊ·: '; ! $lang['rev_diff'] = 'ÒÔÏÂÎļþµÄ°æ´Î¶Ô±È: '; $lang['code_view'] = 'ÒÔÏÂÎļþµÄ´úÂëä¯ÀÀ: '; $lang['navigate_to'] = 'Ŀ¼µ¼º½: '; ! $lang['file_ext'] = 'ÎļþÀ©Õ¹Ãû: '; $lang['annotate_history'] = 'ÒÔÏÂÎļþµÄ×¢ÊÍÀúÊ·: '; $lang['mime_type'] = 'ýÌåÀàÐÍ: '; // time and date related ! $lang['year'] = 'Äê'; $lang['years'] = 'Äê'; ! $lang['week'] = 'ÖÜ'; $lang['weeks'] = 'ÖÜ'; ! $lang['day'] = 'ÈÕ'; ! $lang['days'] = 'ÈÕ'; ! $lang['hour'] = 'Сʱ'; $lang['hours'] = 'Сʱ'; $lang['minute'] = '·ÖÖÓ'; --- 37,55 ---- $lang['up_folder'] = 'ÉÏһĿ¼'; $lang['rev_history'] = 'ÒÔÏÂÎļþµÄ°æ´ÎÀúÊ·: '; ! $lang['rev_diff'] = 'ÒÔÏÂÎļþµÄ°æ´Î¶Ô±È: '; $lang['code_view'] = 'ÒÔÏÂÎļþµÄ´úÂëä¯ÀÀ: '; $lang['navigate_to'] = 'Ŀ¼µ¼º½: '; ! $lang['file_ext'] = 'ÎļþÀ©Õ¹Ãû: '; $lang['annotate_history'] = 'ÒÔÏÂÎļþµÄ×¢ÊÍÀúÊ·: '; $lang['mime_type'] = 'ýÌåÀàÐÍ: '; // time and date related ! $lang['year'] = 'Äê'; $lang['years'] = 'Äê'; ! $lang['week'] = 'ÖÜ'; $lang['weeks'] = 'ÖÜ'; ! $lang['day'] = 'ÈÕ'; ! $lang['days'] = 'ÈÕ'; ! $lang['hour'] = 'Сʱ'; $lang['hours'] = 'Сʱ'; $lang['minute'] = '·ÖÖÓ'; *************** *** 57,76 **** $lang['second'] = 'Ãë'; $lang['seconds'] = 'Ãë'; ! $lang['ago'] = 'ǰ'; // navigation path ! $lang['root'] = '¸ùĿ¼'; // top message ! $lang['message'] = '<p>»¶ÓʹÓý¨Á¢ÓÚSourceForge.netÉÏphpCVSViewÏîÄ¿µÄCVSÔ´Âë¿âä¯ÀÀϵͳ¡£</p><p>±¾ÏîÄ¿µÄÄ¿µÄ¾ÍÊÇÒª¼òµ¥µØ½¨Á¢Ò»¸öPHPÓ¦ÓóÌÐò/À࣬ÔÚ²»Í¬µÄCVSÁ¬½Ó»úÖÆÉÏ£¬Ìṩ»ùÓÚCVSÔ´Âë¿âµÄ´æÈ¡¡£Õâ¸öÏîÄ¿µÄÒÔºó°æ±¾»¹»áÓÐһЩÀ©Õ¹³É¹û£¬±ÈÈçÒ»¸öÈ«ÃæµÄ»ùÓÚWEBµÄCVS¿Í»§¶ËÈí¼þ£¬Ëü¾Í²ÉÓÃÁËÕâ¸öÏîÄ¿µÄºËÐļ¼Êõ.</p><p>ËùÒÔ£¬»¶Ó´ó¼Ò¹Ø×¢ÎÒÃǵĴúÂ룬Ìá³öÄãµÄÐèÇó£¬ÔÚÌØ¶¨µÄ»·¾³Àï²âÊÔÎÒÃǵĴúÂ룬Ìá½»Äã·¢ÏÖµÄÎÊÌ⣬ÄÜÈôó¼ÒʹÓøü¶àµÄºÃ²úÆ·ÊÇ¿ªÔ´¿ª·¢ÕßÃǵÄ×î´óÔðÈΡ£</p><p>´ËÖ³ÏÖ¿µÄ×£Ô¸,<br />Brian Cheeseman. <br />phpCVSViewÏîÄ¿Áìµ¼ÈË</p>'; // bottom messages ! $lang['generated'] = '±¾Ò³ÃæÓÉ <a href="http://phpcvsview.sourceforge.net/">phpCVSView</a> Éú³É£¬¹² '; ! $lang['created_by'] = 'phpCVSView ÏîÄ¿ÓÉ <a href="mailto:bch...@us...">Brian Cheeseman</a> ºÍ <a href="mailto:si...@us...">Sijis Aviles</a> ½¨Á¢.'; // file options ! $lang['view'] = 'ä¯ÀÀ'; $lang['download'] = 'ÏÂÔØ'; ! $lang['diff'] = 'ºÍÉÏÒ»°æ¶Ô±È'; $lang['annotate'] = '×¢ÊÍ'; --- 57,76 ---- $lang['second'] = 'Ãë'; $lang['seconds'] = 'Ãë'; ! $lang['ago'] = 'ǰ'; // navigation path ! $lang['root'] = '¸ùĿ¼'; // top message ! $lang['message'] = '<p>»¶ÓʹÓý¨Á¢ÓÚSourceForge.netÉÏphpCVSViewÏîÄ¿µÄCVSÔ´Âë¿âä¯ÀÀϵͳ¡£</p><p>±¾ÏîÄ¿µÄÄ¿µÄ¾ÍÊÇÒª¼òµ¥µØ½¨Á¢Ò»¸öPHPÓ¦ÓóÌÐò/À࣬ÔÚ²»Í¬µÄCVSÁ¬½Ó»úÖÆÉÏ£¬Ìṩ»ùÓÚCVSÔ´Âë¿âµÄ´æÈ¡¡£Õâ¸öÏîÄ¿µÄÒÔºó°æ±¾»¹»áÓÐһЩÀ©Õ¹³É¹û£¬±ÈÈçÒ»¸öÈ«ÃæµÄ»ùÓÚWEBµÄCVS¿Í»§¶ËÈí¼þ£¬Ëü¾Í²ÉÓÃÁËÕâ¸öÏîÄ¿µÄºËÐļ¼Êõ.</p><p>ËùÒÔ£¬»¶Ó´ó¼Ò¹Ø×¢ÎÒÃǵĴúÂ룬Ìá³öÄãµÄÐèÇó£¬ÔÚÌØ¶¨µÄ»·¾³Àï²âÊÔÎÒÃǵĴúÂ룬Ìá½»Äã·¢ÏÖµÄÎÊÌ⣬ÄÜÈôó¼ÒʹÓøü¶àµÄºÃ²úÆ·ÊÇ¿ªÔ´¿ª·¢ÕßÃǵÄ×î´óÔðÈΡ£</p><p>´ËÖ³ÏÖ¿µÄ×£Ô¸,<br />Brian Cheeseman. <br />phpCVSViewÏîÄ¿Áìµ¼ÈË</p>'; // bottom messages ! $lang['generated'] = '±¾Ò³ÃæÓÉ <a href="http://phpcvsview.sourceforge.net/">phpCVSView</a> Éú³É£¬¹² '; ! $lang['created_by'] = 'phpCVSView ÏîÄ¿ÓÉ <a href="mailto:bch...@us...">Brian Cheeseman</a> ºÍ <a href="mailto:si...@us...">Sijis Aviles</a> ½¨Á¢.'; // file options ! $lang['view'] = 'ä¯ÀÀ'; $lang['download'] = 'ÏÂÔØ'; ! $lang['diff'] = 'ºÍÉÏÒ»°æ¶Ô±È'; $lang['annotate'] = '×¢ÊÍ'; *************** *** 80,85 **** $lang['notice'] = 'ͨ¸æ:'; $lang['branch'] = '·ÖÖ§:'; ! $lang['date'] = 'ÈÕÆÚ:'; ! $lang['time'] = 'ʱ¼ä:'; $lang['state'] = '״̬:'; $lang['changes'] = '×ÔÉÏÒ»°æ±¾µÄÐÞ¸Ä '; --- 80,85 ---- $lang['notice'] = 'ͨ¸æ:'; $lang['branch'] = '·ÖÖ§:'; ! $lang['date'] = 'ÈÕÆÚ:'; ! $lang['time'] = 'ʱ¼ä:'; $lang['state'] = '״̬:'; $lang['changes'] = '×ÔÉÏÒ»°æ±¾µÄÐÞ¸Ä '; *************** *** 87,92 **** // error messages ! $lang['err_connect'] = '<h2>´íÎó: ²»ÄÜÁ¬½Óµ½PServer·þÎñÆ÷¡£</h2>'."\n"; $lang['err_get_rev'] = '<h3>´íÎó: ÌáÈ¡ÒÔϰæ´ÎµÄÎļþ³ö´í:</h3>'; ?> --- 87,101 ---- // error messages ! $lang['err_connect'] = '<h2>´íÎó: ²»ÄÜÁ¬½Óµ½PServer·þÎñÆ÷¡£</h2>'; $lang['err_get_rev'] = '<h3>´íÎó: ÌáÈ¡ÒÔϰæ´ÎµÄÎļþ³ö´í:</h3>'; + // Image description texts. + $lang['icon_parent'] = 'Up'; + $lang['icon_dl'] = 'D/L'; + $lang['icon_dir'] = 'Dir'; + $lang['icon_mod'] = 'Mod'; + $lang['icon_file'] = 'Îļþ'; + $lang['icon_xhtml'] = 'Valid XHTML 1.1!'; + $lang['icon_css'] = 'Valid CSS!'; + ?> |
From: Sijis A. <si...@us...> - 2005-09-17 06:47:52
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Blue In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25907/Themes/Blue Modified Files: theme.css Log Message: - added classes to support new xhtml structure - minor cosmetic changes Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Blue/theme.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** theme.css 4 Feb 2005 10:56:37 -0000 1.4 --- theme.css 17 Sep 2005 06:47:39 -0000 1.5 *************** *** 1,57 **** ! body ! { ! margin-top: 3px; ! margin-bottom: 3px; ! margin-left: 3px; ! margin-right: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 10pt; ! background-color: #ffffff; ! color: #000000; } ! img ! { border: none; } ! a:link,a:active,a:visited ! { ! color: #000099; text-decoration: none; } ! a:hover ! { ! color: #000099; text-decoration: underline; } ! input ! { font-size: 8pt; } ! .head ! { ! background-color: #bbbbff; } ! .row1 ! { ! background-color: #eeeeff; } ! .row2 ! { ! background-color: #ddddff; } ! .footer ! { font-size: 8pt; text-align: center; } ! .quicknav ! { font-size: 8pt; text-align: left; font-weight: bold; } ! .themechanger ! { font-size: 8pt; text-align: left; --- 1,64 ---- ! /** ! * This source code is distributed under the terms as layed out in the ! * GNU General Public License. ! * ! * Purpose: Provides style for a specific theme. ! * ! * @author Sijis Aviles <si...@us...> ! * @version $Id$ ! * @copyright 2003-2005 Brian A Cheeseman ! **/ ! ! body { ! margin: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 10pt; ! background-color: #fff; ! color: #000; } ! ! img { border: none; } ! ! a:link, a:active, a:visited { ! color: #009; text-decoration: none; } ! ! a:hover { ! color: #009; text-decoration: underline; } ! ! input { font-size: 8pt; } ! ! .head { ! background-color: #bbf; } ! ! .row1 { ! background-color: #eef; } ! ! .row2 { ! background-color: #ddf; } ! ! .footer { font-size: 8pt; text-align: center; } ! ! .quicknav { font-size: 8pt; text-align: left; font-weight: bold; } ! ! .themechanger { font-size: 8pt; text-align: left; *************** *** 59,64 **** margin: 0px; } ! .langchanger ! { font-size: 8pt; text-align: left; --- 66,71 ---- margin: 0px; } ! ! .langchanger { font-size: 8pt; text-align: left; *************** *** 66,71 **** margin: 0px; } ! .reposchanger ! { font-size: 8pt; text-align: left; --- 73,78 ---- margin: 0px; } ! ! .reposchanger { font-size: 8pt; text-align: left; *************** *** 73,78 **** margin: 0px; } ! .diffform ! { font-size: 8pt; text-align: left; --- 80,85 ---- margin: 0px; } ! ! .diffform { font-size: 8pt; text-align: left; *************** *** 80,85 **** margin: 0px; } ! .title ! { text-align: center; font-size: 18pt; --- 87,92 ---- margin: 0px; } ! ! .title { text-align: center; font-size: 18pt; *************** *** 88,108 **** color: black; } ! table ! { font-size: 8pt; border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; } ! table.source ! { border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; } ! td ! { padding-left: 4px; padding-right: 4px; --- 95,115 ---- color: black; } ! ! table { font-size: 8pt; border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; } ! ! table.source { border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; } ! ! td { padding-left: 4px; padding-right: 4px; *************** *** 110,156 **** padding-bottom: 1px; } ! td.min ! { width: 1px; } ! li ! { ! font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: normal; } ! div.normal ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ffffff; } ! div.added ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ddffdd; } ! div.removed ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ffdddd; } --- 117,201 ---- padding-bottom: 1px; } ! ! td.min { width: 1px; } ! ! li { ! font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: normal; } ! ! div.normal { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; ! background-color: #fff; } ! div.added { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #dfd; } ! div.removed { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #fdd; ! } ! ! .filerevision p { ! margin: 0 0 0 7px; ! padding: 0; } + + div#filediff p { + padding: 0; + margin: 0; + } + + .filerevision { + padding-top: 2px; + padding-bottom: 2px; + } + + .normal { + background-color: #fff; + } + + .added { + width: 100%; + background-color: #dfd; + } + + .removed { + width: 100%; + background-color: #fdd; + } + + p.logmsg { + font-family: courier; + padding: 0; + margin: 0 0 0 10px; + } + + .logmsg { + white-space: pre; + } + |
From: Sijis A. <si...@us...> - 2005-09-17 06:47:52
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25907/Themes/Default Modified Files: theme.css Log Message: - added classes to support new xhtml structure - minor cosmetic changes Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** theme.css 7 Aug 2005 03:33:34 -0000 1.15 --- theme.css 17 Sep 2005 06:47:39 -0000 1.16 *************** *** 1,54 **** ! body ! { margin: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 10pt; ! background-color: #ffffff; ! color: #000000; } ! img ! { border: none; } ! a:link,a:active,a:visited ! { ! color: #000099; text-decoration: none; } ! a:hover ! { ! color: #000099; text-decoration: underline; } ! input ! { font-size: 8pt; } ! .head ! { ! background-color: #bbbbff; } ! .row1 ! { ! background-color: #eeeeff; } ! .row2 ! { ! background-color: #ddddff; } ! .footer ! { font-size: 8pt; text-align: center; } ! .quicknav ! { font-size: 8pt; text-align: left; font-weight: bold; } ! .themechanger ! { font-size: 8pt; text-align: left; --- 1,64 ---- ! /** ! * This source code is distributed under the terms as layed out in the ! * GNU General Public License. ! * ! * Purpose: Provides style for a specific theme. ! * ! * @author Sijis Aviles <si...@us...> ! * @version $Id$ ! * @copyright 2003-2005 Brian A Cheeseman ! **/ ! ! body { margin: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 10pt; ! background-color: #fff; ! color: #000; } ! ! img { border: none; } ! ! a:link, a:active, a:visited { ! color: #009; text-decoration: none; } ! ! a:hover { ! color: #009; text-decoration: underline; } ! ! input { font-size: 8pt; } ! ! .head { ! background-color: #bbf; } ! ! .row1 { ! background-color: #eef; } ! ! .row2 { ! background-color: #ddf; } ! ! .footer { font-size: 8pt; text-align: center; } ! ! .quicknav { font-size: 8pt; text-align: left; font-weight: bold; } ! ! .themechanger { font-size: 8pt; text-align: left; *************** *** 56,61 **** margin: 0px; } ! .langchanger ! { font-size: 8pt; text-align: left; --- 66,71 ---- margin: 0px; } ! ! .langchanger { font-size: 8pt; text-align: left; *************** *** 63,68 **** margin: 0px; } ! .reposchanger ! { font-size: 8pt; text-align: left; --- 73,78 ---- margin: 0px; } ! ! .reposchanger { font-size: 8pt; text-align: left; *************** *** 70,75 **** margin: 0px; } ! .diffform ! { font-size: 8pt; text-align: left; --- 80,85 ---- margin: 0px; } ! ! .diffform { font-size: 8pt; text-align: left; *************** *** 77,82 **** margin: 0px; } ! .title ! { text-align: center; font-size: 18pt; --- 87,92 ---- margin: 0px; } ! ! .title { text-align: center; font-size: 18pt; *************** *** 85,105 **** color: black; } ! table ! { font-size: 8pt; border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; } ! table.source ! { border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; } ! td ! { padding-left: 4px; padding-right: 4px; --- 95,115 ---- color: black; } ! ! table { font-size: 8pt; border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; } ! ! table.source { border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; } ! ! td { padding-left: 4px; padding-right: 4px; *************** *** 107,155 **** padding-bottom: 1px; } ! td.min ! { width: 1px; } ! li ! { ! font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: normal; } ! div.normal ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ffffff; } ! div.added ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ddffdd; } ! div.removed ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ffdddd; } .filerevision { padding-top: 2px; --- 117,174 ---- padding-bottom: 1px; } ! ! td.min { width: 1px; } ! ! li { ! font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: normal; } ! ! div.normal { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; ! background-color: #fff; } ! div.added { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #dfd; } ! div.removed { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #fdd; ! } ! ! .filerevision p { ! margin: 0 0 0 7px; ! padding: 0; } + + div#filediff p { + padding: 0; + margin: 0; + } + .filerevision { padding-top: 2px; *************** *** 157,163 **** } ! .filerevision p { ! margin: 0 0 0 7px; ! padding: 0; } --- 176,191 ---- } ! .normal { ! background-color: #fff; ! } ! ! .added { ! width: 100%; ! background-color: #dfd; ! } ! ! .removed { ! width: 100%; ! background-color: #fdd; } |
From: Sijis A. <si...@us...> - 2005-09-17 06:47:52
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Red In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25907/Themes/Red Modified Files: theme.css Log Message: - added classes to support new xhtml structure - minor cosmetic changes Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Red/theme.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** theme.css 4 Feb 2005 10:56:39 -0000 1.4 --- theme.css 17 Sep 2005 06:47:39 -0000 1.5 *************** *** 1,57 **** ! body ! { ! margin-top: 3px; ! margin-bottom: 3px; ! margin-left: 3px; ! margin-right: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 10pt; ! background-color: #ffffff; ! color: #000000; } ! img ! { border: none; } ! a:link,a:active,a:visited ! { ! color: #990000; text-decoration: none; } ! a:hover ! { ! color: #990000; text-decoration: underline; } ! input ! { font-size: 8pt; } ! .head ! { ! background-color: #ffbbbb; } ! .row1 ! { ! background-color: #ffeeee; } ! .row2 ! { ! background-color: #ffdddd; } ! .footer ! { font-size: 8pt; text-align: center; } ! .quicknav ! { font-size: 8pt; text-align: left; font-weight: bold; } ! .themechanger ! { font-size: 8pt; text-align: left; --- 1,64 ---- ! /** ! * This source code is distributed under the terms as layed out in the ! * GNU General Public License. ! * ! * Purpose: Provides style for a specific theme. ! * ! * @author Sijis Aviles <si...@us...> ! * @version $Id$ ! * @copyright 2003-2005 Brian A Cheeseman ! **/ ! ! body { ! margin: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 10pt; ! background-color: #fff; ! color: #000; } ! ! img { border: none; } ! ! a:link, a:active, a:visited { ! color: #009; text-decoration: none; } ! ! a:hover { ! color: #009; text-decoration: underline; } ! ! input { font-size: 8pt; } ! ! .head { ! background-color: #bbf; } ! ! .row1 { ! background-color: #eef; } ! ! .row2 { ! background-color: #ddf; } ! ! .footer { font-size: 8pt; text-align: center; } ! ! .quicknav { font-size: 8pt; text-align: left; font-weight: bold; } ! ! .themechanger { font-size: 8pt; text-align: left; *************** *** 59,64 **** margin: 0px; } ! .langchanger ! { font-size: 8pt; text-align: left; --- 66,71 ---- margin: 0px; } ! ! .langchanger { font-size: 8pt; text-align: left; *************** *** 66,71 **** margin: 0px; } ! .reposchanger ! { font-size: 8pt; text-align: left; --- 73,78 ---- margin: 0px; } ! ! .reposchanger { font-size: 8pt; text-align: left; *************** *** 73,78 **** margin: 0px; } ! .diffform ! { font-size: 8pt; text-align: left; --- 80,85 ---- margin: 0px; } ! ! .diffform { font-size: 8pt; text-align: left; *************** *** 80,85 **** margin: 0px; } ! .title ! { text-align: center; font-size: 18pt; --- 87,92 ---- margin: 0px; } ! ! .title { text-align: center; font-size: 18pt; *************** *** 88,108 **** color: black; } ! table ! { font-size: 8pt; border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; } ! table.source ! { border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; } ! td ! { padding-left: 4px; padding-right: 4px; --- 95,115 ---- color: black; } ! ! table { font-size: 8pt; border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; } ! ! table.source { border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; } ! ! td { padding-left: 4px; padding-right: 4px; *************** *** 110,156 **** padding-bottom: 1px; } ! td.min ! { width: 1px; } ! li ! { ! font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: normal; } ! div.normal ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ffffff; } ! div.added ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ddffdd; } ! div.removed ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ffdddd; } --- 117,201 ---- padding-bottom: 1px; } ! ! td.min { width: 1px; } ! ! li { ! font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: normal; } ! ! div.normal { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; ! background-color: #fff; } ! div.added { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #dfd; } ! div.removed { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #fdd; ! } ! ! .filerevision p { ! margin: 0 0 0 7px; ! padding: 0; } + + div#filediff p { + padding: 0; + margin: 0; + } + + .filerevision { + padding-top: 2px; + padding-bottom: 2px; + } + + .normal { + background-color: #fff; + } + + .added { + width: 100%; + background-color: #dfd; + } + + .removed { + width: 100%; + background-color: #fdd; + } + + p.logmsg { + font-family: courier; + padding: 0; + margin: 0 0 0 10px; + } + + .logmsg { + white-space: pre; + } + |
From: Sijis A. <si...@us...> - 2005-09-17 06:47:52
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Green In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25907/Themes/Green Modified Files: theme.css Log Message: - added classes to support new xhtml structure - minor cosmetic changes Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Green/theme.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** theme.css 4 Feb 2005 10:56:38 -0000 1.4 --- theme.css 17 Sep 2005 06:47:39 -0000 1.5 *************** *** 1,57 **** ! body ! { ! margin-top: 3px; ! margin-bottom: 3px; ! margin-left: 3px; ! margin-right: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 10pt; ! background-color: #ffffff; ! color: #000000; } ! img ! { border: none; } ! a:link,a:active,a:visited ! { ! color: #009900; text-decoration: none; } ! a:hover ! { ! color: #009900; text-decoration: underline; } ! input ! { font-size: 8pt; } ! .head ! { ! background-color: #bbffbb; } ! .row1 ! { ! background-color: #eeffee; } ! .row2 ! { ! background-color: #ddffdd; } ! .footer ! { font-size: 8pt; text-align: center; } ! .quicknav ! { font-size: 8pt; text-align: left; font-weight: bold; } ! .themechanger ! { font-size: 8pt; text-align: left; --- 1,64 ---- ! /** ! * This source code is distributed under the terms as layed out in the ! * GNU General Public License. ! * ! * Purpose: Provides style for a specific theme. ! * ! * @author Sijis Aviles <si...@us...> ! * @version $Id$ ! * @copyright 2003-2005 Brian A Cheeseman ! **/ ! ! body { ! margin: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 10pt; ! background-color: #fff; ! color: #000; } ! ! img { border: none; } ! ! a:link, a:active, a:visited { ! color: #009; text-decoration: none; } ! ! a:hover { ! color: #009; text-decoration: underline; } ! ! input { font-size: 8pt; } ! ! .head { ! background-color: #bbf; } ! ! .row1 { ! background-color: #eef; } ! ! .row2 { ! background-color: #ddf; } ! ! .footer { font-size: 8pt; text-align: center; } ! ! .quicknav { font-size: 8pt; text-align: left; font-weight: bold; } ! ! .themechanger { font-size: 8pt; text-align: left; *************** *** 59,64 **** margin: 0px; } ! .langchanger ! { font-size: 8pt; text-align: left; --- 66,71 ---- margin: 0px; } ! ! .langchanger { font-size: 8pt; text-align: left; *************** *** 66,71 **** margin: 0px; } ! .reposchanger ! { font-size: 8pt; text-align: left; --- 73,78 ---- margin: 0px; } ! ! .reposchanger { font-size: 8pt; text-align: left; *************** *** 73,78 **** margin: 0px; } ! .diffform ! { font-size: 8pt; text-align: left; --- 80,85 ---- margin: 0px; } ! ! .diffform { font-size: 8pt; text-align: left; *************** *** 80,85 **** margin: 0px; } ! .title ! { text-align: center; font-size: 18pt; --- 87,92 ---- margin: 0px; } ! ! .title { text-align: center; font-size: 18pt; *************** *** 88,108 **** color: black; } ! table ! { font-size: 8pt; border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; } ! table.source ! { border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; } ! td ! { padding-left: 4px; padding-right: 4px; --- 95,115 ---- color: black; } ! ! table { font-size: 8pt; border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; } ! ! table.source { border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; } ! ! td { padding-left: 4px; padding-right: 4px; *************** *** 110,156 **** padding-bottom: 1px; } ! td.min ! { width: 1px; } ! li ! { ! font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: normal; } ! div.normal ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ffffff; } ! div.added ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ddffdd; } ! div.removed ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ffdddd; } --- 117,201 ---- padding-bottom: 1px; } ! ! td.min { width: 1px; } ! ! li { ! font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: normal; } ! ! div.normal { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; ! background-color: #fff; } ! div.added { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #dfd; } ! div.removed { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #fdd; ! } ! ! .filerevision p { ! margin: 0 0 0 7px; ! padding: 0; } + + div#filediff p { + padding: 0; + margin: 0; + } + + .filerevision { + padding-top: 2px; + padding-bottom: 2px; + } + + .normal { + background-color: #fff; + } + + .added { + width: 100%; + background-color: #dfd; + } + + .removed { + width: 100%; + background-color: #fdd; + } + + p.logmsg { + font-family: courier; + padding: 0; + margin: 0 0 0 10px; + } + + .logmsg { + white-space: pre; + } + |
From: Sijis A. <si...@us...> - 2005-09-17 06:47:50
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Yellow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25907/Themes/Yellow Modified Files: theme.css Log Message: - added classes to support new xhtml structure - minor cosmetic changes Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Yellow/theme.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** theme.css 4 Feb 2005 10:56:40 -0000 1.4 --- theme.css 17 Sep 2005 06:47:39 -0000 1.5 *************** *** 1,57 **** ! body ! { ! margin-top: 3px; ! margin-bottom: 3px; ! margin-left: 3px; ! margin-right: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 10pt; ! background-color: #ffffff; ! color: #000000; } ! img ! { border: none; } ! a:link,a:active,a:visited ! { ! color: #999900; text-decoration: none; } ! a:hover ! { ! color: #999900; text-decoration: underline; } ! input ! { font-size: 8pt; } ! .head ! { ! background-color: #ffffbb; } ! .row1 ! { ! background-color: #ffffee; } ! .row2 ! { ! background-color: #ffffdd; } ! .footer ! { font-size: 8pt; text-align: center; } ! .quicknav ! { font-size: 8pt; text-align: left; font-weight: bold; } ! .themechanger ! { font-size: 8pt; text-align: left; --- 1,64 ---- ! /** ! * This source code is distributed under the terms as layed out in the ! * GNU General Public License. ! * ! * Purpose: Provides style for a specific theme. ! * ! * @author Sijis Aviles <si...@us...> ! * @version $Id$ ! * @copyright 2003-2005 Brian A Cheeseman ! **/ ! ! body { ! margin: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 10pt; ! background-color: #fff; ! color: #000; } ! ! img { border: none; } ! ! a:link, a:active, a:visited { ! color: #009; text-decoration: none; } ! ! a:hover { ! color: #009; text-decoration: underline; } ! ! input { font-size: 8pt; } ! ! .head { ! background-color: #bbf; } ! ! .row1 { ! background-color: #eef; } ! ! .row2 { ! background-color: #ddf; } ! ! .footer { font-size: 8pt; text-align: center; } ! ! .quicknav { font-size: 8pt; text-align: left; font-weight: bold; } ! ! .themechanger { font-size: 8pt; text-align: left; *************** *** 59,64 **** margin: 0px; } ! .langchanger ! { font-size: 8pt; text-align: left; --- 66,71 ---- margin: 0px; } ! ! .langchanger { font-size: 8pt; text-align: left; *************** *** 66,71 **** margin: 0px; } ! .reposchanger ! { font-size: 8pt; text-align: left; --- 73,78 ---- margin: 0px; } ! ! .reposchanger { font-size: 8pt; text-align: left; *************** *** 73,78 **** margin: 0px; } ! .diffform ! { font-size: 8pt; text-align: left; --- 80,85 ---- margin: 0px; } ! ! .diffform { font-size: 8pt; text-align: left; *************** *** 80,85 **** margin: 0px; } ! .title ! { text-align: center; font-size: 18pt; --- 87,92 ---- margin: 0px; } ! ! .title { text-align: center; font-size: 18pt; *************** *** 88,108 **** color: black; } ! table ! { font-size: 8pt; border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; } ! table.source ! { border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; } ! td ! { padding-left: 4px; padding-right: 4px; --- 95,115 ---- color: black; } ! ! table { font-size: 8pt; border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; } ! ! table.source { border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; } ! ! td { padding-left: 4px; padding-right: 4px; *************** *** 110,156 **** padding-bottom: 1px; } ! td.min ! { width: 1px; } ! li ! { ! font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: normal; } ! div.normal ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; ! border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ffffff; } ! div.added ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ddffdd; } ! div.removed ! { font-family: courier; ! color: #000000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #ffdddd; } --- 117,201 ---- padding-bottom: 1px; } ! ! td.min { width: 1px; } ! ! li { ! font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: normal; } ! ! div.normal { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; ! border-spacing: 0; border-collapse: collapse; ! background-color: #fff; } ! div.added { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #dfd; } ! div.removed { font-family: courier; ! color: #000; font-size: 10pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; ! background-color: #fdd; ! } ! ! .filerevision p { ! margin: 0 0 0 7px; ! padding: 0; } + + div#filediff p { + padding: 0; + margin: 0; + } + + .filerevision { + padding-top: 2px; + padding-bottom: 2px; + } + + .normal { + background-color: #fff; + } + + .added { + width: 100%; + background-color: #dfd; + } + + .removed { + width: 100%; + background-color: #fdd; + } + + p.logmsg { + font-family: courier; + padding: 0; + margin: 0 0 0 10px; + } + + .logmsg { + white-space: pre; + } + |
From: Sijis A. <si...@us...> - 2005-09-17 06:45:46
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Yellow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25668/Themes/Yellow Modified Files: theme.php Log Message: - made output valid xhtml - code cleanup for cleaner xhtml output snf readability Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Yellow/theme.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** theme.php 18 Apr 2005 01:14:03 -0000 1.6 --- theme.php 17 Sep 2005 06:45:34 -0000 1.7 *************** *** 12,79 **** **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; ! $FileIcon = "Themes/".$config['theme']."/Images/file.png"; ! $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; ! $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; ! $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; ! function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; ! $PageHead .= '<html><head>'; ! if ($Title != "") { ! $PageHead .= '<title>'.$Title.'</title>'; ! } ! $PageHead .= '<link href="Themes/'.$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'; ! // Add JavaScript to postback the change in theme selection. ! $PageHead .= '<script src="./phpcvsview.js" type="text/javascript"></script>'; ! $PageHead .= '</head>'; ! $PageHead .= '<body>'; ! if ($Heading != "") { ! $PageHead .= '<div class="title">'.$Heading.'</div>'; ! } ! $PageHead .= $lang['message']; ! $PageHead .= '<form class="themechanger" action="'.$_SERVER['PHP_SELF'].'">'; ! $PageHead .= ' '.$lang['change_cvsroot'].' <select name="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form);">'; foreach($config['cvs'] as $key => $value){ ! $PageHead .= '<option value="'.$key.'"'; if ($key == $env['CVSROOT']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value['description'].'</option>'; } ! $PageHead .= '</select><br />'; ! $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form);">'; ! foreach (GetThemeList() as $key=>$value) ! { ! $PageHead .= '<option value="'.$value.'"'; if ($value == $config['theme']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'; } ! $PageHead .= '</select>'; ! $PageHead .= ' '.$lang['change_lang'].' <select name="langSelect" class="langchanger" onchange="postBackLangChange(this.form);">'; foreach(getLanguagesList() as $key => $value){ ! $PageHead .= '<option value="'.$value.'"'; if ($value == $config['language']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'; } ! $PageHead .= '</select>'; ! $PageHead .= '<input type="hidden" name="URLRequest" value="'.$env['script_name']; $first = true; ! foreach ($_GET as $key=>$value) ! { if ($key != "tm") { if ($first != true) { ! $PageHead .= "&"; ! } ! else ! { $PageHead .= "?"; } --- 12,80 ---- **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; ! $FileIcon = "Themes/".$config['theme']."/Images/file.png"; ! $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; ! $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; ! $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; ! function GetPageHeader($Title="phpCVSView Source Code Library", $Heading="phpCVSView Source Code Library") ! { global $StartTime, $config, $env, $lang; + $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'."\n"; ! $PageHead .= '<html xmlns="http://www.w3.org/1999/xhtml">'."\n"; ! $PageHead .= '<head>'."\n"; ! $PageHead .= ' <meta http-equiv="content-type" content="text/html; charset='.$lang['encoding'].'" />'."\n"; ! $PageHead .= ' <title>'.$Title.'</title>'."\n"; ! $PageHead .= ' <link href="'.$env['theme_path'].$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'."\n"; ! $PageHead .= ' <script src="./phpcvsview.js" type="text/javascript"></script>'."\n"; ! $PageHead .= '</head>'."\n"; ! $PageHead .= '<body>'."\n"; ! $PageHead .= '<div id="header">'."\n"; ! $PageHead .= ' <div class="title">'.$Heading.'</div>'."\n"; ! $PageHead .= ' <div class="headmsg">'.$lang['message'].'</div>'."\n"; ! $PageHead .= '</div>'."\n"; ! $PageHead .= '<div id="userOptions">'."\n"; ! $PageHead .= ' <form class="themechanger" action="'.$_SERVER['PHP_SELF'].'">'."\n"; ! $PageHead .= ' <p><label for="reposSelect">'.$lang['change_cvsroot'].'</label>'."\n"; ! $PageHead .= ' <select name="reposSelect" id="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form);">'."\n"; foreach($config['cvs'] as $key => $value){ ! $PageHead .= ' <option value="'.$key.'"'; if ($key == $env['CVSROOT']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value['description'].'</option>'."\n"; } ! $PageHead .= ' </select></p>'."\n"; ! $PageHead .= ' <p><label for="ThemeSelect">'.$lang['change_theme'].'</label>'."\n"; ! $PageHead .= ' <select name="ThemeSelect" id="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form);">'."\n"; ! foreach (GetThemeList() as $key=>$value){ ! $PageHead .= ' <option value="'.$value.'"'; if ($value == $config['theme']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'."\n"; } ! $PageHead .= ' </select>'."\n"; ! $PageHead .= ' <label for="langSelect">'.$lang['change_lang'].'</label>'."\n"; ! $PageHead .= ' <select name="langSelect" id="langSelect" class="langchanger" onchange="postBackLangChange(this.form);">'."\n"; foreach(getLanguagesList() as $key => $value){ ! $PageHead .= ' <option value="'.$value.'"'; if ($value == $config['language']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'."\n"; } ! $PageHead .= ' </select>'."\n"; ! $PageHead .= ' <input type="hidden" name="URLRequest" value="'.$env['script_name']; $first = true; ! foreach ($_GET as $key=>$value) { if ($key != "tm") { if ($first != true) { ! $PageHead .= "&"; ! } else { $PageHead .= "?"; } *************** *** 82,98 **** } } ! $PageHead .= '"></form>'; return $PageHead; } ! function GetPageFooter() { global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; ! $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'; ! $PageFoot .= '</div>'; ! $PageFoot .= '</body></html>'; return $PageFoot; } --- 83,106 ---- } } ! $PageHead .= '" /></p>'."\n"; ! $PageHead .= ' </form>'."\n"; ! $PageHead .= '</div>'."\n"; ! return $PageHead; } ! function GetPageFooter() ! { global $StartTime, $lang; + $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'."\n"; ! $PageFoot .= ' '.$lang['created_by']."\n"; ! $PageFoot .= ' <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '."\n"; ! $PageFoot .= ' <a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'."\n"; ! $PageFoot .= '</div>'."\n"; ! $PageFoot .= '</body>'."\n"; ! $PageFoot .= '</html>'."\n"; ! return $PageFoot; } *************** *** 135,139 **** $QLOut .= '</a>'; } ! $QLOut .= '</div>'; return $QLOut; } --- 143,148 ---- $QLOut .= '</a>'; } ! $QLOut .= '</div>'."\n"; ! return $QLOut; } *************** *** 142,148 **** { global $RowClass, $lang; ! echo '<hr />'; ! echo '<table>'; ! echo '<tr class="head"><th> </th><th> </th><th>'.$lang['file'].'</th><th>'.$lang['rev'].'</th><th>'.$lang['age'].'</th><th>'.$lang['author'].'</th><th>'.$lang['last_log'].'</th></tr>'; $RowClass = "row1"; } --- 151,166 ---- { global $RowClass, $lang; ! echo '<hr />'."\n"; ! echo ' <table>'."\n"; ! echo ' <tr class="head">'."\n"; ! echo ' <th> </th>'."\n"; ! echo ' <th> </th>'."\n"; ! echo ' <th>'.$lang['file'].'</th>'."\n"; ! echo ' <th>'.$lang['rev'].'</th>'."\n"; ! echo ' <th>'.$lang['age'].'</th>'."\n"; ! echo ' <th>'.$lang['author'].'</th>'."\n"; ! echo ' <th>'.$lang['last_log'].'</th>'."\n"; ! echo ' </tr>'."\n"; ! $RowClass = "row1"; } *************** *** 150,155 **** function endDirList() { ! echo '</table>'; ! echo '<hr />'; } --- 168,173 ---- function endDirList() { ! echo ' </table>'."\n"; ! echo '<hr />'."\n"; } *************** *** 159,171 **** $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; $RowClass = "row2"; } --- 177,190 ---- $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; ! echo ' <td class="min"> </td>'."\n"; ! echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'."\n"; ! echo ' <td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' </tr>'."\n"; ! $RowClass = "row2"; } *************** *** 173,197 **** function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env; foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } } --- 192,214 ---- function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env, $lang; ! foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo ' <td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'."\n"; } else { ! echo ' <td class="min"> </td>'."\n"; } + echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'."\n"; + echo ' <td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' </tr>'."\n"; + + $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 199,225 **** function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env; foreach ($Modules as $Key => $Val) { // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } } --- 216,239 ---- function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env, $lang; foreach ($Modules as $Key => $Val) { // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo ' <td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'."\n"; } else { ! echo ' <td class="min"> </td>'."\n"; } + echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'."\n"; + echo ' <td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' </tr>'."\n"; + + $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 233,250 **** $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; ! echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; ! echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; ! echo '<td align="center">'.str_replace(" ", " ", $AGE).' '.$lang['ago'].'</td>'; ! echo '<td align="center">'.$File["Revisions"][$File["Head"]]["author"].'</td>'; ! echo '<td>'.str_replace(array("\n", " "), array("<br />", " "), $File["Revisions"][$File["Head"]]["LogMessage"]).'</td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; ! } else { ! $RowClass = "row1"; ! } } } --- 247,261 ---- $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo ' <tr class="'.$RowClass.'">'."\n"; ! echo ' <td class="min"> </td>'."\n"; ! echo ' <td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'."\n"; ! echo ' <td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'."\n"; ! echo ' <td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'."\n"; ! echo ' <td align="center">'.str_replace(" ", " ", $AGE).' '.$lang['ago'].'</td>'."\n"; ! echo ' <td align="center">'.$File["Revisions"][$File["Head"]]["author"].'</td>'."\n"; ! echo ' <td>'.str_replace(array("\n", " "), array("<br />", " "), $File["Revisions"][$File["Head"]]["LogMessage"]).'</td>'."\n"; ! echo ' </tr>'."\n"; ! ! $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 255,274 **** $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! ! $DiffForm = '<form class="diffform" action="'.$_SERVER['PHP_SELF'].'">'; ! $DiffForm .= 'Diff between: <select name="DiffRev1" class="diffform">'; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) ! { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select> and <select name="DiffRev2" class="diffform">'; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) ! { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select><input type="hidden" name="URLDiffReq" value="'.$HREF.'">'; ! $DiffForm .= '<input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);">'; ! $DiffForm .= '</form>'; ! return $DiffForm; } --- 266,285 ---- $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! ! $DiffForm = '<form class="diffform" action="'.$_SERVER['PHP_SELF'].'">'."\n"; ! $DiffForm .= ' Diff between: <select name="DiffRev1" class="diffform">'."\n"; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision){ ! $DiffForm .= ' <option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'."\n"; } ! $DiffForm .= ' </select> and '."\n"; ! $DiffForm .= ' <select name="DiffRev2" class="diffform">'."\n"; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision){ ! $DiffForm .= ' <option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'."\n"; } ! $DiffForm .= ' </select>'."\n"; ! $DiffForm .= ' <input type="hidden" name="URLDiffReq" value="'.$HREF.'" />'."\n"; ! $DiffForm .= ' <input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);" />'."\n"; ! $DiffForm .= '</form>'."\n"; ! return $DiffForm; } |
From: Sijis A. <si...@us...> - 2005-09-17 06:45:46
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25668/Themes/Default Modified Files: theme.php Log Message: - made output valid xhtml - code cleanup for cleaner xhtml output snf readability Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** theme.php 18 Apr 2005 01:14:02 -0000 1.17 --- theme.php 17 Sep 2005 06:45:34 -0000 1.18 *************** *** 12,79 **** **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; ! $FileIcon = "Themes/".$config['theme']."/Images/file.png"; ! $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; ! $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; ! $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; ! function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; ! $PageHead .= '<html><head>'; ! if ($Title != "") { ! $PageHead .= '<title>'.$Title.'</title>'; ! } ! $PageHead .= '<link href="Themes/'.$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'; ! // Add JavaScript to postback the change in theme selection. ! $PageHead .= '<script src="./phpcvsview.js" type="text/javascript"></script>'; ! $PageHead .= '</head>'; ! $PageHead .= '<body>'; ! if ($Heading != "") { ! $PageHead .= '<div class="title">'.$Heading.'</div>'; ! } ! $PageHead .= $lang['message']; ! $PageHead .= '<form class="themechanger" action="'.$_SERVER['PHP_SELF'].'">'; ! $PageHead .= ' '.$lang['change_cvsroot'].' <select name="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form);">'; foreach($config['cvs'] as $key => $value){ ! $PageHead .= '<option value="'.$key.'"'; if ($key == $env['CVSROOT']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value['description'].'</option>'; } ! $PageHead .= '</select><br />'; ! $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form);">'; ! foreach (GetThemeList() as $key=>$value) ! { ! $PageHead .= '<option value="'.$value.'"'; if ($value == $config['theme']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'; } ! $PageHead .= '</select>'; ! $PageHead .= ' '.$lang['change_lang'].' <select name="langSelect" class="langchanger" onchange="postBackLangChange(this.form);">'; foreach(getLanguagesList() as $key => $value){ ! $PageHead .= '<option value="'.$value.'"'; if ($value == $config['language']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'; } ! $PageHead .= '</select>'; ! $PageHead .= '<input type="hidden" name="URLRequest" value="'.$env['script_name']; $first = true; ! foreach ($_GET as $key=>$value) ! { if ($key != "tm") { if ($first != true) { ! $PageHead .= "&"; ! } ! else ! { $PageHead .= "?"; } --- 12,80 ---- **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; ! $FileIcon = "Themes/".$config['theme']."/Images/file.png"; ! $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; ! $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; ! $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; ! function GetPageHeader($Title="phpCVSView Source Code Library", $Heading="phpCVSView Source Code Library") ! { global $StartTime, $config, $env, $lang; + $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'."\n"; ! $PageHead .= '<html xmlns="http://www.w3.org/1999/xhtml">'."\n"; ! $PageHead .= '<head>'."\n"; ! $PageHead .= ' <meta http-equiv="content-type" content="text/html; charset='.$lang['encoding'].'" />'."\n"; ! $PageHead .= ' <title>'.$Title.'</title>'."\n"; ! $PageHead .= ' <link href="'.$env['theme_path'].$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'."\n"; ! $PageHead .= ' <script src="./phpcvsview.js" type="text/javascript"></script>'."\n"; ! $PageHead .= '</head>'."\n"; ! $PageHead .= '<body>'."\n"; ! $PageHead .= '<div id="header">'."\n"; ! $PageHead .= ' <div class="title">'.$Heading.'</div>'."\n"; ! $PageHead .= ' <div class="headmsg">'.$lang['message'].'</div>'."\n"; ! $PageHead .= '</div>'."\n"; ! $PageHead .= '<div id="userOptions">'."\n"; ! $PageHead .= ' <form class="themechanger" action="'.$_SERVER['PHP_SELF'].'">'."\n"; ! $PageHead .= ' <p><label for="reposSelect">'.$lang['change_cvsroot'].'</label>'."\n"; ! $PageHead .= ' <select name="reposSelect" id="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form);">'."\n"; foreach($config['cvs'] as $key => $value){ ! $PageHead .= ' <option value="'.$key.'"'; if ($key == $env['CVSROOT']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value['description'].'</option>'."\n"; } ! $PageHead .= ' </select></p>'."\n"; ! $PageHead .= ' <p><label for="ThemeSelect">'.$lang['change_theme'].'</label>'."\n"; ! $PageHead .= ' <select name="ThemeSelect" id="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form);">'."\n"; ! foreach (GetThemeList() as $key=>$value){ ! $PageHead .= ' <option value="'.$value.'"'; if ($value == $config['theme']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'."\n"; } ! $PageHead .= ' </select>'."\n"; ! $PageHead .= ' <label for="langSelect">'.$lang['change_lang'].'</label>'."\n"; ! $PageHead .= ' <select name="langSelect" id="langSelect" class="langchanger" onchange="postBackLangChange(this.form);">'."\n"; foreach(getLanguagesList() as $key => $value){ ! $PageHead .= ' <option value="'.$value.'"'; if ($value == $config['language']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'."\n"; } ! $PageHead .= ' </select>'."\n"; ! $PageHead .= ' <input type="hidden" name="URLRequest" value="'.$env['script_name']; $first = true; ! foreach ($_GET as $key=>$value) { if ($key != "tm") { if ($first != true) { ! $PageHead .= "&"; ! } else { $PageHead .= "?"; } *************** *** 82,98 **** } } ! $PageHead .= '"></form>'; return $PageHead; } ! function GetPageFooter() { global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; ! $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'; ! $PageFoot .= '</div>'; ! $PageFoot .= '</body></html>'; return $PageFoot; } --- 83,106 ---- } } ! $PageHead .= '" /></p>'."\n"; ! $PageHead .= ' </form>'."\n"; ! $PageHead .= '</div>'."\n"; ! return $PageHead; } ! function GetPageFooter() ! { global $StartTime, $lang; + $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'."\n"; ! $PageFoot .= ' '.$lang['created_by']."\n"; ! $PageFoot .= ' <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '."\n"; ! $PageFoot .= ' <a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'."\n"; ! $PageFoot .= '</div>'."\n"; ! $PageFoot .= '</body>'."\n"; ! $PageFoot .= '</html>'."\n"; ! return $PageFoot; } *************** *** 135,139 **** $QLOut .= '</a>'; } ! $QLOut .= '</div>'; return $QLOut; } --- 143,148 ---- $QLOut .= '</a>'; } ! $QLOut .= '</div>'."\n"; ! return $QLOut; } *************** *** 142,148 **** { global $RowClass, $lang; ! echo '<hr />'; ! echo '<table>'; ! echo '<tr class="head"><th> </th><th> </th><th>'.$lang['file'].'</th><th>'.$lang['rev'].'</th><th>'.$lang['age'].'</th><th>'.$lang['author'].'</th><th>'.$lang['last_log'].'</th></tr>'; $RowClass = "row1"; } --- 151,166 ---- { global $RowClass, $lang; ! echo '<hr />'."\n"; ! echo ' <table>'."\n"; ! echo ' <tr class="head">'."\n"; ! echo ' <th> </th>'."\n"; ! echo ' <th> </th>'."\n"; ! echo ' <th>'.$lang['file'].'</th>'."\n"; ! echo ' <th>'.$lang['rev'].'</th>'."\n"; ! echo ' <th>'.$lang['age'].'</th>'."\n"; ! echo ' <th>'.$lang['author'].'</th>'."\n"; ! echo ' <th>'.$lang['last_log'].'</th>'."\n"; ! echo ' </tr>'."\n"; ! $RowClass = "row1"; } *************** *** 150,155 **** function endDirList() { ! echo '</table>'; ! echo '<hr />'; } --- 168,173 ---- function endDirList() { ! echo ' </table>'."\n"; ! echo '<hr />'."\n"; } *************** *** 159,171 **** $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; $RowClass = "row2"; } --- 177,190 ---- $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; ! echo ' <td class="min"> </td>'."\n"; ! echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'."\n"; ! echo ' <td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' </tr>'."\n"; ! $RowClass = "row2"; } *************** *** 174,197 **** { global $RowClass, $DownloadIcon, $FolderIcon, $env, $lang; foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } } --- 193,214 ---- { global $RowClass, $DownloadIcon, $FolderIcon, $env, $lang; + foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo ' <td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'."\n"; } else { ! echo ' <td class="min"> </td>'."\n"; } + echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'."\n"; + echo ' <td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' </tr>'."\n"; + + $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 204,225 **** // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } } --- 221,239 ---- // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo ' <td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'."\n"; } else { ! echo ' <td class="min"> </td>'."\n"; } + echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'."\n"; + echo ' <td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' </tr>'."\n"; + + $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 233,250 **** $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; ! echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; ! echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; ! echo '<td align="center">'.str_replace(" ", " ", $AGE).' '.$lang['ago'].'</td>'; ! echo '<td align="center">'.$File["Revisions"][$File["Head"]]["author"].'</td>'; ! echo '<td>'.str_replace(array("\n", " "), array("<br />", " "), $File["Revisions"][$File["Head"]]["LogMessage"]).'</td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; ! } else { ! $RowClass = "row1"; ! } } } --- 247,261 ---- $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo ' <tr class="'.$RowClass.'">'."\n"; ! echo ' <td class="min"> </td>'."\n"; ! echo ' <td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'."\n"; ! echo ' <td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'."\n"; ! echo ' <td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'."\n"; ! echo ' <td align="center">'.str_replace(" ", " ", $AGE).' '.$lang['ago'].'</td>'."\n"; ! echo ' <td align="center">'.$File["Revisions"][$File["Head"]]["author"].'</td>'."\n"; ! echo ' <td>'.str_replace(array("\n", " "), array("<br />", " "), $File["Revisions"][$File["Head"]]["LogMessage"]).'</td>'."\n"; ! echo ' </tr>'."\n"; ! ! $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 255,274 **** $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! ! $DiffForm = '<form class="diffform" action="'.$_SERVER['PHP_SELF'].'">'; ! $DiffForm .= 'Diff between: <select name="DiffRev1" class="diffform">'; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) ! { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select> and <select name="DiffRev2" class="diffform">'; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) ! { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select><input type="hidden" name="URLDiffReq" value="'.$HREF.'">'; ! $DiffForm .= '<input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);">'; ! $DiffForm .= '</form>'; ! return $DiffForm; } --- 266,285 ---- $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! ! $DiffForm = '<form class="diffform" action="'.$_SERVER['PHP_SELF'].'">'."\n"; ! $DiffForm .= ' Diff between: <select name="DiffRev1" class="diffform">'."\n"; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision){ ! $DiffForm .= ' <option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'."\n"; } ! $DiffForm .= ' </select> and '."\n"; ! $DiffForm .= ' <select name="DiffRev2" class="diffform">'."\n"; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision){ ! $DiffForm .= ' <option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'."\n"; } ! $DiffForm .= ' </select>'."\n"; ! $DiffForm .= ' <input type="hidden" name="URLDiffReq" value="'.$HREF.'" />'."\n"; ! $DiffForm .= ' <input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);" />'."\n"; ! $DiffForm .= '</form>'."\n"; ! return $DiffForm; } |
From: Sijis A. <si...@us...> - 2005-09-17 06:45:43
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Blue In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25668/Themes/Blue Modified Files: theme.php Log Message: - made output valid xhtml - code cleanup for cleaner xhtml output snf readability Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Blue/theme.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** theme.php 7 Aug 2005 03:31:42 -0000 1.7 --- theme.php 17 Sep 2005 06:45:34 -0000 1.8 *************** *** 12,79 **** **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; ! $FileIcon = "Themes/".$config['theme']."/Images/file.png"; ! $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; ! $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; ! $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; ! function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; ! $PageHead .= '<html><head>'; ! if ($Title != "") { ! $PageHead .= '<title>'.$Title.'</title>'; ! } ! $PageHead .= '<link href="Themes/'.$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'; ! // Add JavaScript to postback the change in theme selection. ! $PageHead .= '<script src="./phpcvsview.js" type="text/javascript"></script>'; ! $PageHead .= '</head>'; ! $PageHead .= '<body>'; ! if ($Heading != "") { ! $PageHead .= '<div class="title">'.$Heading.'</div>'; ! } ! $PageHead .= $lang['message']; ! $PageHead .= '<form class="themechanger" action="'.$_SERVER['PHP_SELF'].'">'; ! $PageHead .= ' '.$lang['change_cvsroot'].' <select name="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form);">'; foreach($config['cvs'] as $key => $value){ ! $PageHead .= '<option value="'.$key.'"'; if ($key == $env['CVSROOT']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value['description'].'</option>'; } ! $PageHead .= '</select><br />'; ! $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form);">'; ! foreach (GetThemeList() as $key=>$value) ! { ! $PageHead .= '<option value="'.$value.'"'; if ($value == $config['theme']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'; } ! $PageHead .= '</select>'; ! $PageHead .= ' '.$lang['change_lang'].' <select name="langSelect" class="langchanger" onchange="postBackLangChange(this.form);">'; foreach(getLanguagesList() as $key => $value){ ! $PageHead .= '<option value="'.$value.'"'; if ($value == $config['language']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'; } ! $PageHead .= '</select>'; ! $PageHead .= '<input type="hidden" name="URLRequest" value="'.$env['script_name']; $first = true; ! foreach ($_GET as $key=>$value) ! { if ($key != "tm") { if ($first != true) { ! $PageHead .= "&"; ! } ! else ! { $PageHead .= "?"; } --- 12,80 ---- **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; ! $FileIcon = "Themes/".$config['theme']."/Images/file.png"; ! $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; ! $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; ! $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; ! function GetPageHeader($Title="phpCVSView Source Code Library", $Heading="phpCVSView Source Code Library") ! { global $StartTime, $config, $env, $lang; + $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'."\n"; ! $PageHead .= '<html xmlns="http://www.w3.org/1999/xhtml">'."\n"; ! $PageHead .= '<head>'."\n"; ! $PageHead .= ' <meta http-equiv="content-type" content="text/html; charset='.$lang['encoding'].'" />'."\n"; ! $PageHead .= ' <title>'.$Title.'</title>'."\n"; ! $PageHead .= ' <link href="'.$env['theme_path'].$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'."\n"; ! $PageHead .= ' <script src="./phpcvsview.js" type="text/javascript"></script>'."\n"; ! $PageHead .= '</head>'."\n"; ! $PageHead .= '<body>'."\n"; ! $PageHead .= '<div id="header">'."\n"; ! $PageHead .= ' <div class="title">'.$Heading.'</div>'."\n"; ! $PageHead .= ' <div class="headmsg">'.$lang['message'].'</div>'."\n"; ! $PageHead .= '</div>'."\n"; ! $PageHead .= '<div id="userOptions">'."\n"; ! $PageHead .= ' <form class="themechanger" action="'.$_SERVER['PHP_SELF'].'">'."\n"; ! $PageHead .= ' <p><label for="reposSelect">'.$lang['change_cvsroot'].'</label>'."\n"; ! $PageHead .= ' <select name="reposSelect" id="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form);">'."\n"; foreach($config['cvs'] as $key => $value){ ! $PageHead .= ' <option value="'.$key.'"'; if ($key == $env['CVSROOT']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value['description'].'</option>'."\n"; } ! $PageHead .= ' </select></p>'."\n"; ! $PageHead .= ' <p><label for="ThemeSelect">'.$lang['change_theme'].'</label>'."\n"; ! $PageHead .= ' <select name="ThemeSelect" id="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form);">'."\n"; ! foreach (GetThemeList() as $key=>$value){ ! $PageHead .= ' <option value="'.$value.'"'; if ($value == $config['theme']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'."\n"; } ! $PageHead .= ' </select>'."\n"; ! $PageHead .= ' <label for="langSelect">'.$lang['change_lang'].'</label>'."\n"; ! $PageHead .= ' <select name="langSelect" id="langSelect" class="langchanger" onchange="postBackLangChange(this.form);">'."\n"; foreach(getLanguagesList() as $key => $value){ ! $PageHead .= ' <option value="'.$value.'"'; if ($value == $config['language']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'."\n"; } ! $PageHead .= ' </select>'."\n"; ! $PageHead .= ' <input type="hidden" name="URLRequest" value="'.$env['script_name']; $first = true; ! foreach ($_GET as $key=>$value) { if ($key != "tm") { if ($first != true) { ! $PageHead .= "&"; ! } else { $PageHead .= "?"; } *************** *** 82,98 **** } } ! $PageHead .= '"></form>'; return $PageHead; } ! function GetPageFooter() { global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; ! $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'; ! $PageFoot .= '</div>'; ! $PageFoot .= '</body></html>'; return $PageFoot; } --- 83,106 ---- } } ! $PageHead .= '" /></p>'."\n"; ! $PageHead .= ' </form>'."\n"; ! $PageHead .= '</div>'."\n"; ! return $PageHead; } ! function GetPageFooter() ! { global $StartTime, $lang; + $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'."\n"; ! $PageFoot .= ' '.$lang['created_by']."\n"; ! $PageFoot .= ' <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '."\n"; ! $PageFoot .= ' <a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'."\n"; ! $PageFoot .= '</div>'."\n"; ! $PageFoot .= '</body>'."\n"; ! $PageFoot .= '</html>'."\n"; ! return $PageFoot; } *************** *** 135,139 **** $QLOut .= '</a>'; } ! $QLOut .= '</div>'; return $QLOut; } --- 143,148 ---- $QLOut .= '</a>'; } ! $QLOut .= '</div>'."\n"; ! return $QLOut; } *************** *** 142,148 **** { global $RowClass, $lang; ! echo '<hr />'; ! echo '<table>'; ! echo '<tr class="head"><th> </th><th> </th><th>'.$lang['file'].'</th><th>'.$lang['rev'].'</th><th>'.$lang['age'].'</th><th>'.$lang['author'].'</th><th>'.$lang['last_log'].'</th></tr>'; $RowClass = "row1"; } --- 151,166 ---- { global $RowClass, $lang; ! echo '<hr />'."\n"; ! echo ' <table>'."\n"; ! echo ' <tr class="head">'."\n"; ! echo ' <th> </th>'."\n"; ! echo ' <th> </th>'."\n"; ! echo ' <th>'.$lang['file'].'</th>'."\n"; ! echo ' <th>'.$lang['rev'].'</th>'."\n"; ! echo ' <th>'.$lang['age'].'</th>'."\n"; ! echo ' <th>'.$lang['author'].'</th>'."\n"; ! echo ' <th>'.$lang['last_log'].'</th>'."\n"; ! echo ' </tr>'."\n"; ! $RowClass = "row1"; } *************** *** 150,155 **** function endDirList() { ! echo '</table>'; ! echo '<hr />'; } --- 168,173 ---- function endDirList() { ! echo ' </table>'."\n"; ! echo '<hr />'."\n"; } *************** *** 159,171 **** $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; $RowClass = "row2"; } --- 177,190 ---- $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; ! echo ' <td class="min"> </td>'."\n"; ! echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'."\n"; ! echo ' <td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' </tr>'."\n"; ! $RowClass = "row2"; } *************** *** 174,197 **** { global $RowClass, $DownloadIcon, $FolderIcon, $env, $lang; foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } } --- 193,214 ---- { global $RowClass, $DownloadIcon, $FolderIcon, $env, $lang; + foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo ' <td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'."\n"; } else { ! echo ' <td class="min"> </td>'."\n"; } + echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'."\n"; + echo ' <td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' </tr>'."\n"; + + $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 199,225 **** function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env; foreach ($Modules as $Key => $Val) { // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } } --- 216,239 ---- function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env, $lang; foreach ($Modules as $Key => $Val) { // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo ' <td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'."\n"; } else { ! echo ' <td class="min"> </td>'."\n"; } + echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'."\n"; + echo ' <td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' </tr>'."\n"; + + $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 233,250 **** $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; ! echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; ! echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; ! echo '<td align="center">'.str_replace(" ", " ", $AGE).' '.$lang['ago'].'</td>'; ! echo '<td align="center">'.$File["Revisions"][$File["Head"]]["author"].'</td>'; ! echo '<td>'.str_replace(array("\n", " "), array("<br />", " "), $File["Revisions"][$File["Head"]]["LogMessage"]).'</td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; ! } else { ! $RowClass = "row1"; ! } } } --- 247,261 ---- $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo ' <tr class="'.$RowClass.'">'."\n"; ! echo ' <td class="min"> </td>'."\n"; ! echo ' <td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'."\n"; ! echo ' <td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'."\n"; ! echo ' <td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'."\n"; ! echo ' <td align="center">'.str_replace(" ", " ", $AGE).' '.$lang['ago'].'</td>'."\n"; ! echo ' <td align="center">'.$File["Revisions"][$File["Head"]]["author"].'</td>'."\n"; ! echo ' <td>'.str_replace(array("\n", " "), array("<br />", " "), $File["Revisions"][$File["Head"]]["LogMessage"]).'</td>'."\n"; ! echo ' </tr>'."\n"; ! ! $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 255,274 **** $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! ! $DiffForm = '<form class="diffform" action="'.$_SERVER['PHP_SELF'].'">'; ! $DiffForm .= 'Diff between: <select name="DiffRev1" class="diffform">'; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) ! { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select> and <select name="DiffRev2" class="diffform">'; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) ! { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select><input type="hidden" name="URLDiffReq" value="'.$HREF.'">'; ! $DiffForm .= '<input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);">'; ! $DiffForm .= '</form>'; ! return $DiffForm; } --- 266,285 ---- $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! ! $DiffForm = '<form class="diffform" action="'.$_SERVER['PHP_SELF'].'">'."\n"; ! $DiffForm .= ' Diff between: <select name="DiffRev1" class="diffform">'."\n"; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision){ ! $DiffForm .= ' <option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'."\n"; } ! $DiffForm .= ' </select> and '."\n"; ! $DiffForm .= ' <select name="DiffRev2" class="diffform">'."\n"; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision){ ! $DiffForm .= ' <option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'."\n"; } ! $DiffForm .= ' </select>'."\n"; ! $DiffForm .= ' <input type="hidden" name="URLDiffReq" value="'.$HREF.'" />'."\n"; ! $DiffForm .= ' <input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);" />'."\n"; ! $DiffForm .= '</form>'."\n"; ! return $DiffForm; } |
From: Sijis A. <si...@us...> - 2005-09-17 06:45:43
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Green In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25668/Themes/Green Modified Files: theme.php Log Message: - made output valid xhtml - code cleanup for cleaner xhtml output snf readability Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Green/theme.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** theme.php 18 Apr 2005 01:14:03 -0000 1.6 --- theme.php 17 Sep 2005 06:45:34 -0000 1.7 *************** *** 12,79 **** **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; ! $FileIcon = "Themes/".$config['theme']."/Images/file.png"; ! $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; ! $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; ! $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; ! function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; ! $PageHead .= '<html><head>'; ! if ($Title != "") { ! $PageHead .= '<title>'.$Title.'</title>'; ! } ! $PageHead .= '<link href="Themes/'.$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'; ! // Add JavaScript to postback the change in theme selection. ! $PageHead .= '<script src="./phpcvsview.js" type="text/javascript"></script>'; ! $PageHead .= '</head>'; ! $PageHead .= '<body>'; ! if ($Heading != "") { ! $PageHead .= '<div class="title">'.$Heading.'</div>'; ! } ! $PageHead .= $lang['message']; ! $PageHead .= '<form class="themechanger" action="'.$_SERVER['PHP_SELF'].'">'; ! $PageHead .= ' '.$lang['change_cvsroot'].' <select name="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form);">'; foreach($config['cvs'] as $key => $value){ ! $PageHead .= '<option value="'.$key.'"'; if ($key == $env['CVSROOT']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value['description'].'</option>'; } ! $PageHead .= '</select><br />'; ! $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form);">'; ! foreach (GetThemeList() as $key=>$value) ! { ! $PageHead .= '<option value="'.$value.'"'; if ($value == $config['theme']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'; } ! $PageHead .= '</select>'; ! $PageHead .= ' '.$lang['change_lang'].' <select name="langSelect" class="langchanger" onchange="postBackLangChange(this.form);">'; foreach(getLanguagesList() as $key => $value){ ! $PageHead .= '<option value="'.$value.'"'; if ($value == $config['language']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'; } ! $PageHead .= '</select>'; ! $PageHead .= '<input type="hidden" name="URLRequest" value="'.$env['script_name']; $first = true; ! foreach ($_GET as $key=>$value) ! { if ($key != "tm") { if ($first != true) { ! $PageHead .= "&"; ! } ! else ! { $PageHead .= "?"; } --- 12,80 ---- **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; ! $FileIcon = "Themes/".$config['theme']."/Images/file.png"; ! $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; ! $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; ! $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; ! function GetPageHeader($Title="phpCVSView Source Code Library", $Heading="phpCVSView Source Code Library") ! { global $StartTime, $config, $env, $lang; + $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'."\n"; ! $PageHead .= '<html xmlns="http://www.w3.org/1999/xhtml">'."\n"; ! $PageHead .= '<head>'."\n"; ! $PageHead .= ' <meta http-equiv="content-type" content="text/html; charset='.$lang['encoding'].'" />'."\n"; ! $PageHead .= ' <title>'.$Title.'</title>'."\n"; ! $PageHead .= ' <link href="'.$env['theme_path'].$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'."\n"; ! $PageHead .= ' <script src="./phpcvsview.js" type="text/javascript"></script>'."\n"; ! $PageHead .= '</head>'."\n"; ! $PageHead .= '<body>'."\n"; ! $PageHead .= '<div id="header">'."\n"; ! $PageHead .= ' <div class="title">'.$Heading.'</div>'."\n"; ! $PageHead .= ' <div class="headmsg">'.$lang['message'].'</div>'."\n"; ! $PageHead .= '</div>'."\n"; ! $PageHead .= '<div id="userOptions">'."\n"; ! $PageHead .= ' <form class="themechanger" action="'.$_SERVER['PHP_SELF'].'">'."\n"; ! $PageHead .= ' <p><label for="reposSelect">'.$lang['change_cvsroot'].'</label>'."\n"; ! $PageHead .= ' <select name="reposSelect" id="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form);">'."\n"; foreach($config['cvs'] as $key => $value){ ! $PageHead .= ' <option value="'.$key.'"'; if ($key == $env['CVSROOT']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value['description'].'</option>'."\n"; } ! $PageHead .= ' </select></p>'."\n"; ! $PageHead .= ' <p><label for="ThemeSelect">'.$lang['change_theme'].'</label>'."\n"; ! $PageHead .= ' <select name="ThemeSelect" id="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form);">'."\n"; ! foreach (GetThemeList() as $key=>$value){ ! $PageHead .= ' <option value="'.$value.'"'; if ($value == $config['theme']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'."\n"; } ! $PageHead .= ' </select>'."\n"; ! $PageHead .= ' <label for="langSelect">'.$lang['change_lang'].'</label>'."\n"; ! $PageHead .= ' <select name="langSelect" id="langSelect" class="langchanger" onchange="postBackLangChange(this.form);">'."\n"; foreach(getLanguagesList() as $key => $value){ ! $PageHead .= ' <option value="'.$value.'"'; if ($value == $config['language']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'."\n"; } ! $PageHead .= ' </select>'."\n"; ! $PageHead .= ' <input type="hidden" name="URLRequest" value="'.$env['script_name']; $first = true; ! foreach ($_GET as $key=>$value) { if ($key != "tm") { if ($first != true) { ! $PageHead .= "&"; ! } else { $PageHead .= "?"; } *************** *** 82,98 **** } } ! $PageHead .= '"></form>'; return $PageHead; } ! function GetPageFooter() { global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; ! $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'; ! $PageFoot .= '</div>'; ! $PageFoot .= '</body></html>'; return $PageFoot; } --- 83,106 ---- } } ! $PageHead .= '" /></p>'."\n"; ! $PageHead .= ' </form>'."\n"; ! $PageHead .= '</div>'."\n"; ! return $PageHead; } ! function GetPageFooter() ! { global $StartTime, $lang; + $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'."\n"; ! $PageFoot .= ' '.$lang['created_by']."\n"; ! $PageFoot .= ' <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '."\n"; ! $PageFoot .= ' <a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'."\n"; ! $PageFoot .= '</div>'."\n"; ! $PageFoot .= '</body>'."\n"; ! $PageFoot .= '</html>'."\n"; ! return $PageFoot; } *************** *** 135,139 **** $QLOut .= '</a>'; } ! $QLOut .= '</div>'; return $QLOut; } --- 143,148 ---- $QLOut .= '</a>'; } ! $QLOut .= '</div>'."\n"; ! return $QLOut; } *************** *** 142,148 **** { global $RowClass, $lang; ! echo '<hr />'; ! echo '<table>'; ! echo '<tr class="head"><th> </th><th> </th><th>'.$lang['file'].'</th><th>'.$lang['rev'].'</th><th>'.$lang['age'].'</th><th>'.$lang['author'].'</th><th>'.$lang['last_log'].'</th></tr>'; $RowClass = "row1"; } --- 151,166 ---- { global $RowClass, $lang; ! echo '<hr />'."\n"; ! echo ' <table>'."\n"; ! echo ' <tr class="head">'."\n"; ! echo ' <th> </th>'."\n"; ! echo ' <th> </th>'."\n"; ! echo ' <th>'.$lang['file'].'</th>'."\n"; ! echo ' <th>'.$lang['rev'].'</th>'."\n"; ! echo ' <th>'.$lang['age'].'</th>'."\n"; ! echo ' <th>'.$lang['author'].'</th>'."\n"; ! echo ' <th>'.$lang['last_log'].'</th>'."\n"; ! echo ' </tr>'."\n"; ! $RowClass = "row1"; } *************** *** 150,155 **** function endDirList() { ! echo '</table>'; ! echo '<hr />'; } --- 168,173 ---- function endDirList() { ! echo ' </table>'."\n"; ! echo '<hr />'."\n"; } *************** *** 159,171 **** $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; $RowClass = "row2"; } --- 177,190 ---- $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; ! echo ' <td class="min"> </td>'."\n"; ! echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'."\n"; ! echo ' <td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' </tr>'."\n"; ! $RowClass = "row2"; } *************** *** 173,197 **** function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env; foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } } --- 192,214 ---- function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env, $lang; ! foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo ' <td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'."\n"; } else { ! echo ' <td class="min"> </td>'."\n"; } + echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'."\n"; + echo ' <td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' </tr>'."\n"; + + $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 199,225 **** function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env; foreach ($Modules as $Key => $Val) { // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } } --- 216,239 ---- function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env, $lang; foreach ($Modules as $Key => $Val) { // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo ' <td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'."\n"; } else { ! echo ' <td class="min"> </td>'."\n"; } + echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'."\n"; + echo ' <td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' </tr>'."\n"; + + $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 233,250 **** $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; ! echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; ! echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; ! echo '<td align="center">'.str_replace(" ", " ", $AGE).' '.$lang['ago'].'</td>'; ! echo '<td align="center">'.$File["Revisions"][$File["Head"]]["author"].'</td>'; ! echo '<td>'.str_replace(array("\n", " "), array("<br />", " "), $File["Revisions"][$File["Head"]]["LogMessage"]).'</td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; ! } else { ! $RowClass = "row1"; ! } } } --- 247,261 ---- $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo ' <tr class="'.$RowClass.'">'."\n"; ! echo ' <td class="min"> </td>'."\n"; ! echo ' <td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'."\n"; ! echo ' <td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'."\n"; ! echo ' <td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'."\n"; ! echo ' <td align="center">'.str_replace(" ", " ", $AGE).' '.$lang['ago'].'</td>'."\n"; ! echo ' <td align="center">'.$File["Revisions"][$File["Head"]]["author"].'</td>'."\n"; ! echo ' <td>'.str_replace(array("\n", " "), array("<br />", " "), $File["Revisions"][$File["Head"]]["LogMessage"]).'</td>'."\n"; ! echo ' </tr>'."\n"; ! ! $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 255,274 **** $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! ! $DiffForm = '<form class="diffform" action="'.$_SERVER['PHP_SELF'].'">'; ! $DiffForm .= 'Diff between: <select name="DiffRev1" class="diffform">'; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) ! { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select> and <select name="DiffRev2" class="diffform">'; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) ! { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select><input type="hidden" name="URLDiffReq" value="'.$HREF.'">'; ! $DiffForm .= '<input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);">'; ! $DiffForm .= '</form>'; ! return $DiffForm; } --- 266,285 ---- $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! ! $DiffForm = '<form class="diffform" action="'.$_SERVER['PHP_SELF'].'">'."\n"; ! $DiffForm .= ' Diff between: <select name="DiffRev1" class="diffform">'."\n"; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision){ ! $DiffForm .= ' <option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'."\n"; } ! $DiffForm .= ' </select> and '."\n"; ! $DiffForm .= ' <select name="DiffRev2" class="diffform">'."\n"; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision){ ! $DiffForm .= ' <option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'."\n"; } ! $DiffForm .= ' </select>'."\n"; ! $DiffForm .= ' <input type="hidden" name="URLDiffReq" value="'.$HREF.'" />'."\n"; ! $DiffForm .= ' <input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);" />'."\n"; ! $DiffForm .= '</form>'."\n"; ! return $DiffForm; } |
From: Sijis A. <si...@us...> - 2005-09-17 06:45:43
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Red In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25668/Themes/Red Modified Files: theme.php Log Message: - made output valid xhtml - code cleanup for cleaner xhtml output snf readability Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Red/theme.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** theme.php 18 Apr 2005 01:14:03 -0000 1.6 --- theme.php 17 Sep 2005 06:45:34 -0000 1.7 *************** *** 12,79 **** **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; ! $FileIcon = "Themes/".$config['theme']."/Images/file.png"; ! $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; ! $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; ! $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; ! function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; ! $PageHead .= '<html><head>'; ! if ($Title != "") { ! $PageHead .= '<title>'.$Title.'</title>'; ! } ! $PageHead .= '<link href="Themes/'.$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'; ! // Add JavaScript to postback the change in theme selection. ! $PageHead .= '<script src="./phpcvsview.js" type="text/javascript"></script>'; ! $PageHead .= '</head>'; ! $PageHead .= '<body>'; ! if ($Heading != "") { ! $PageHead .= '<div class="title">'.$Heading.'</div>'; ! } ! $PageHead .= $lang['message']; ! $PageHead .= '<form class="themechanger" action="'.$_SERVER['PHP_SELF'].'">'; ! $PageHead .= ' '.$lang['change_cvsroot'].' <select name="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form);">'; foreach($config['cvs'] as $key => $value){ ! $PageHead .= '<option value="'.$key.'"'; if ($key == $env['CVSROOT']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value['description'].'</option>'; } ! $PageHead .= '</select><br />'; ! $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form);">'; ! foreach (GetThemeList() as $key=>$value) ! { ! $PageHead .= '<option value="'.$value.'"'; if ($value == $config['theme']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'; } ! $PageHead .= '</select>'; ! $PageHead .= ' '.$lang['change_lang'].' <select name="langSelect" class="langchanger" onchange="postBackLangChange(this.form);">'; foreach(getLanguagesList() as $key => $value){ ! $PageHead .= '<option value="'.$value.'"'; if ($value == $config['language']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'; } ! $PageHead .= '</select>'; ! $PageHead .= '<input type="hidden" name="URLRequest" value="'.$env['script_name']; $first = true; ! foreach ($_GET as $key=>$value) ! { if ($key != "tm") { if ($first != true) { ! $PageHead .= "&"; ! } ! else ! { $PageHead .= "?"; } --- 12,80 ---- **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; ! $FileIcon = "Themes/".$config['theme']."/Images/file.png"; ! $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; ! $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; ! $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; ! function GetPageHeader($Title="phpCVSView Source Code Library", $Heading="phpCVSView Source Code Library") ! { global $StartTime, $config, $env, $lang; + $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'."\n"; ! $PageHead .= '<html xmlns="http://www.w3.org/1999/xhtml">'."\n"; ! $PageHead .= '<head>'."\n"; ! $PageHead .= ' <meta http-equiv="content-type" content="text/html; charset='.$lang['encoding'].'" />'."\n"; ! $PageHead .= ' <title>'.$Title.'</title>'."\n"; ! $PageHead .= ' <link href="'.$env['theme_path'].$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'."\n"; ! $PageHead .= ' <script src="./phpcvsview.js" type="text/javascript"></script>'."\n"; ! $PageHead .= '</head>'."\n"; ! $PageHead .= '<body>'."\n"; ! $PageHead .= '<div id="header">'."\n"; ! $PageHead .= ' <div class="title">'.$Heading.'</div>'."\n"; ! $PageHead .= ' <div class="headmsg">'.$lang['message'].'</div>'."\n"; ! $PageHead .= '</div>'."\n"; ! $PageHead .= '<div id="userOptions">'."\n"; ! $PageHead .= ' <form class="themechanger" action="'.$_SERVER['PHP_SELF'].'">'."\n"; ! $PageHead .= ' <p><label for="reposSelect">'.$lang['change_cvsroot'].'</label>'."\n"; ! $PageHead .= ' <select name="reposSelect" id="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form);">'."\n"; foreach($config['cvs'] as $key => $value){ ! $PageHead .= ' <option value="'.$key.'"'; if ($key == $env['CVSROOT']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value['description'].'</option>'."\n"; } ! $PageHead .= ' </select></p>'."\n"; ! $PageHead .= ' <p><label for="ThemeSelect">'.$lang['change_theme'].'</label>'."\n"; ! $PageHead .= ' <select name="ThemeSelect" id="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form);">'."\n"; ! foreach (GetThemeList() as $key=>$value){ ! $PageHead .= ' <option value="'.$value.'"'; if ($value == $config['theme']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'."\n"; } ! $PageHead .= ' </select>'."\n"; ! $PageHead .= ' <label for="langSelect">'.$lang['change_lang'].'</label>'."\n"; ! $PageHead .= ' <select name="langSelect" id="langSelect" class="langchanger" onchange="postBackLangChange(this.form);">'."\n"; foreach(getLanguagesList() as $key => $value){ ! $PageHead .= ' <option value="'.$value.'"'; if ($value == $config['language']) { $PageHead .= ' selected="selected"'; } ! $PageHead .= '>'.$value.'</option>'."\n"; } ! $PageHead .= ' </select>'."\n"; ! $PageHead .= ' <input type="hidden" name="URLRequest" value="'.$env['script_name']; $first = true; ! foreach ($_GET as $key=>$value) { if ($key != "tm") { if ($first != true) { ! $PageHead .= "&"; ! } else { $PageHead .= "?"; } *************** *** 82,98 **** } } ! $PageHead .= '"></form>'; return $PageHead; } ! function GetPageFooter() { global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; ! $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'; ! $PageFoot .= '</div>'; ! $PageFoot .= '</body></html>'; return $PageFoot; } --- 83,106 ---- } } ! $PageHead .= '" /></p>'."\n"; ! $PageHead .= ' </form>'."\n"; ! $PageHead .= '</div>'."\n"; ! return $PageHead; } ! function GetPageFooter() ! { global $StartTime, $lang; + $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'."\n"; ! $PageFoot .= ' '.$lang['created_by']."\n"; ! $PageFoot .= ' <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '."\n"; ! $PageFoot .= ' <a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'."\n"; ! $PageFoot .= '</div>'."\n"; ! $PageFoot .= '</body>'."\n"; ! $PageFoot .= '</html>'."\n"; ! return $PageFoot; } *************** *** 135,139 **** $QLOut .= '</a>'; } ! $QLOut .= '</div>'; return $QLOut; } --- 143,148 ---- $QLOut .= '</a>'; } ! $QLOut .= '</div>'."\n"; ! return $QLOut; } *************** *** 142,148 **** { global $RowClass, $lang; ! echo '<hr />'; ! echo '<table>'; ! echo '<tr class="head"><th> </th><th> </th><th>'.$lang['file'].'</th><th>'.$lang['rev'].'</th><th>'.$lang['age'].'</th><th>'.$lang['author'].'</th><th>'.$lang['last_log'].'</th></tr>'; $RowClass = "row1"; } --- 151,166 ---- { global $RowClass, $lang; ! echo '<hr />'."\n"; ! echo ' <table>'."\n"; ! echo ' <tr class="head">'."\n"; ! echo ' <th> </th>'."\n"; ! echo ' <th> </th>'."\n"; ! echo ' <th>'.$lang['file'].'</th>'."\n"; ! echo ' <th>'.$lang['rev'].'</th>'."\n"; ! echo ' <th>'.$lang['age'].'</th>'."\n"; ! echo ' <th>'.$lang['author'].'</th>'."\n"; ! echo ' <th>'.$lang['last_log'].'</th>'."\n"; ! echo ' </tr>'."\n"; ! $RowClass = "row1"; } *************** *** 150,155 **** function endDirList() { ! echo '</table>'; ! echo '<hr />'; } --- 168,173 ---- function endDirList() { ! echo ' </table>'."\n"; ! echo '<hr />'."\n"; } *************** *** 159,171 **** $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; $RowClass = "row2"; } --- 177,190 ---- $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; ! echo ' <td class="min"> </td>'."\n"; ! echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'."\n"; ! echo ' <td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' <td> </td>'."\n"; ! echo ' </tr>'."\n"; ! $RowClass = "row2"; } *************** *** 173,197 **** function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env; foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } } --- 192,214 ---- function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env, $lang; ! foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo ' <td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'."\n"; } else { ! echo ' <td class="min"> </td>'."\n"; } + echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'."\n"; + echo ' <td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' </tr>'."\n"; + + $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 199,225 **** function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env; foreach ($Modules as $Key => $Val) { // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } } --- 216,239 ---- function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env, $lang; foreach ($Modules as $Key => $Val) { // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo ' <tr class="'.$RowClass.'">'."\n"; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo ' <td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'."\n"; } else { ! echo ' <td class="min"> </td>'."\n"; } + echo ' <td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'."\n"; + echo ' <td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' <td> </td>'."\n"; + echo ' </tr>'."\n"; + + $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 233,250 **** $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; ! echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; ! echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; ! echo '<td align="center">'.str_replace(" ", " ", $AGE).' '.$lang['ago'].'</td>'; ! echo '<td align="center">'.$File["Revisions"][$File["Head"]]["author"].'</td>'; ! echo '<td>'.str_replace(array("\n", " "), array("<br />", " "), $File["Revisions"][$File["Head"]]["LogMessage"]).'</td>'; ! echo '</tr>'; ! if ($RowClass == "row1") { ! $RowClass = "row2"; ! } else { ! $RowClass = "row1"; ! } } } --- 247,261 ---- $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo ' <tr class="'.$RowClass.'">'."\n"; ! echo ' <td class="min"> </td>'."\n"; ! echo ' <td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'."\n"; ! echo ' <td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'."\n"; ! echo ' <td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'."\n"; ! echo ' <td align="center">'.str_replace(" ", " ", $AGE).' '.$lang['ago'].'</td>'."\n"; ! echo ' <td align="center">'.$File["Revisions"][$File["Head"]]["author"].'</td>'."\n"; ! echo ' <td>'.str_replace(array("\n", " "), array("<br />", " "), $File["Revisions"][$File["Head"]]["LogMessage"]).'</td>'."\n"; ! echo ' </tr>'."\n"; ! ! $RowClass = ($RowClass == "row1")? "row2" : "row1"; } } *************** *** 255,274 **** $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! ! $DiffForm = '<form class="diffform" action="'.$_SERVER['PHP_SELF'].'">'; ! $DiffForm .= 'Diff between: <select name="DiffRev1" class="diffform">'; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) ! { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select> and <select name="DiffRev2" class="diffform">'; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) ! { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select><input type="hidden" name="URLDiffReq" value="'.$HREF.'">'; ! $DiffForm .= '<input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);">'; ! $DiffForm .= '</form>'; ! return $DiffForm; } --- 266,285 ---- $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! ! $DiffForm = '<form class="diffform" action="'.$_SERVER['PHP_SELF'].'">'."\n"; ! $DiffForm .= ' Diff between: <select name="DiffRev1" class="diffform">'."\n"; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision){ ! $DiffForm .= ' <option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'."\n"; } ! $DiffForm .= ' </select> and '."\n"; ! $DiffForm .= ' <select name="DiffRev2" class="diffform">'."\n"; ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision){ ! $DiffForm .= ' <option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'."\n"; } ! $DiffForm .= ' </select>'."\n"; ! $DiffForm .= ' <input type="hidden" name="URLDiffReq" value="'.$HREF.'" />'."\n"; ! $DiffForm .= ' <input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);" />'."\n"; ! $DiffForm .= '</form>'."\n"; ! return $DiffForm; } |
From: Sijis A. <si...@us...> - 2005-09-17 06:41:25
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25136 Modified Files: phpcvsview.js Log Message: - added header info - minor cosmetic changes Index: phpcvsview.js =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvsview.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** phpcvsview.js 3 Feb 2005 23:51:41 -0000 1.6 --- phpcvsview.js 17 Sep 2005 06:41:17 -0000 1.7 *************** *** 1,53 **** function postBackThemeChange(form) { ! var ddTheme=form.ThemeSelect.value; ! var hfRequest=form.URLRequest.value; ! if (hfRequest.indexOf("?") == -1) ! { ! newlocation=hfRequest+'?tm='+ddTheme; ! } ! else ! { ! newlocation=hfRequest+'&tm='+ddTheme; } ! location=newlocation; } function postBackLangChange(form) { ! var ddLang=form.langSelect.value; ! var hfRequest=form.URLRequest.value; ! if (hfRequest.indexOf("?") == -1) ! { ! newlocation=hfRequest+'?lg='+ddLang; ! } ! else ! { ! newlocation=hfRequest+'&lg='+ddLang; } ! location=newlocation; } function postBackReposChange(form) { ! var ddRepos=form.reposSelect.value; ! var hfRequest=form.URLRequest.value; ! if (hfRequest.indexOf("?") == -1) ! { ! newlocation=hfRequest+'?cr='+ddRepos; ! } ! else ! { ! newlocation=hfRequest+'&cr='+ddRepos; } ! location=newlocation; } function postBackDiffRequest(form) { ! var ddRev1=form.DiffRev1.value; ! var ddRev2=form.DiffRev2.value; ! if (form.DiffRev1.selectedIndex < form.DiffRev2.selectedIndex) ! { // Swap the values. var ddTemp = ddRev1; --- 1,58 ---- + /** + * This source code is distributed under the terms as layed out in the + * GNU General Public License. + * + * Purpose: Provides theming and validation support + * + * @author Brian A Cheeseman <bch...@us...> + * @version $Id$ + * @copyright 2003-2005 Brian A Cheeseman + **/ + function postBackThemeChange(form) { ! var ddTheme = form.ThemeSelect.value; ! var hfRequest = form.URLRequest.value; ! ! if (hfRequest.indexOf("?") == -1) { ! newlocation = hfRequest+'?tm='+ddTheme; ! } else { ! newlocation = hfRequest+'&tm='+ddTheme; } ! location = newlocation; } function postBackLangChange(form) { ! var ddLang = form.langSelect.value; ! var hfRequest = form.URLRequest.value; ! ! if (hfRequest.indexOf("?") == -1){ ! newlocation = hfRequest+'?lg='+ddLang; ! } else { ! newlocation = hfRequest+'&lg='+ddLang; } ! location = newlocation; } function postBackReposChange(form) { ! var ddRepos = form.reposSelect.value; ! var hfRequest = form.URLRequest.value; ! ! if (hfRequest.indexOf("?") == -1){ ! newlocation = hfRequest+'?cr='+ddRepos; ! } else { ! newlocation = hfRequest+'&cr='+ddRepos; } ! location = newlocation; } function postBackDiffRequest(form) { ! var ddRev1 = form.DiffRev1.value; ! var ddRev2 = form.DiffRev2.value; ! ! if (form.DiffRev1.selectedIndex < form.DiffRev2.selectedIndex) { // Swap the values. var ddTemp = ddRev1; *************** *** 55,66 **** ddRev2 = ddTemp; } ! if (ddRev1 == ddRev2) ! { alert('Cannot generate a diff of a revision to itself!') ! } ! else ! { ! var dfDiffReq=form.URLDiffReq.value; ! location=dfDiffReq+'&r1='+ddRev1+'&r2='+ddRev2+'&df'; } } --- 60,70 ---- ddRev2 = ddTemp; } ! ! if (ddRev1 == ddRev2) { alert('Cannot generate a diff of a revision to itself!') ! } else { ! var dfDiffReq = form.URLDiffReq.value; ! location = dfDiffReq+'&r1='+ddRev1+'&r2='+ddRev2+'&df'; } } + |
From: Brian C. <bch...@us...> - 2005-08-07 03:33:44
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18279 Modified Files: cvsview.php func_DirListing.php phpcvs.php phpcvsmime.php Log Message: Index: phpcvsmime.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvsmime.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** phpcvsmime.php 1 Feb 2005 15:11:01 -0000 1.6 --- phpcvsmime.php 7 Aug 2005 03:33:35 -0000 1.7 *************** *** 10,15 **** * @version $Id$ * @copyright 2003-2005 Brian A Cheeseman ! **/ $MIME_TYPES = array( 'ez' => 'application/andrew-inset', --- 10,23 ---- * @version $Id$ * @copyright 2003-2005 Brian A Cheeseman ! */ + /** + * Special global variable holding a list of file extension to mime + * type conversion strings. + * @global array $MIME_TYPES + * @name $MIME_TYPES + */ + global $MIME_TYPES; + $MIME_TYPES = array( 'ez' => 'application/andrew-inset', Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** cvsview.php 16 Apr 2005 02:39:09 -0000 1.26 --- cvsview.php 7 Aug 2005 03:33:35 -0000 1.27 *************** *** 1,5 **** <?php ! /** * This source code is distributed under the terms as layed out in the * GNU General Public License. --- 1,5 ---- <?php ! /* * This source code is distributed under the terms as layed out in the * GNU General Public License. *************** *** 10,14 **** * @version $Id$ * @copyright 2003-2005 Brian A Cheeseman ! **/ require_once 'config.php'; --- 10,14 ---- * @version $Id$ * @copyright 2003-2005 Brian A Cheeseman ! */ require_once 'config.php'; Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** phpcvs.php 24 Feb 2005 06:33:15 -0000 1.24 --- phpcvs.php 7 Aug 2005 03:33:35 -0000 1.25 *************** *** 13,32 **** **/ require_once 'Net/Socket.php'; class CVS_PServer { ! ! var $CVS_REPOSITORY; // Storage of the CVS Repository file system path. ! var $CVS_USERNAME; // Username to use when authenticating with the PServer. ! var $CVS_PASSWORD; // Password for the account above. ! var $CVS_PSERVER; // Hostname of the server running the PServer. ! var $CVS_PORT; // Port number the PServer listener is running on. ! var $CVS_TIMEOUT; // Timeout in seconds for all socket operations. ! var $CVS_VALID_REQUESTS; // List of valid requests the PServer accepts. ! var $SOCKET; // The socket handle for communicating with the PServer. ! var $ALLOWED_RESPONSES = array( // A hashed array of responses that we are capable of ! // processing and the contents is the name of the function ! // to process it through. "ok" => "processOk", "error" => "processError", --- 13,86 ---- **/ + /** + * Part of the PEAR packages, and is used to enable TCP communication with the + * hosting CVS pserver. + */ require_once 'Net/Socket.php'; + /** + * The CVS_PServer class provides a simplified interface to the CVS pserver. + * @subpackage PServer + */ class CVS_PServer { ! /** ! * Storage of the CVS Repository file system path. ! * @access private ! * @var string ! */ ! var $CVS_REPOSITORY; ! ! /** ! * Username to use when authenticating with the PServer. ! * @access private ! * @var string ! * @see $CVS_PASSWORD ! */ ! var $CVS_USERNAME; ! ! /** ! * Password for the account specified in $CVS_USERNAME. ! * @access private ! * @var string ! * @see $CVS_USERNAME ! */ ! var $CVS_PASSWORD; ! ! /** ! * Hostname of the server providing PServer services. ! * @access private ! * @var string ! */ ! var $CVS_PSERVER; ! ! /** ! * Port number the PServer listener is running on. ! * @access private ! * @var string ! */ ! var $CVS_PORT; ! ! /** ! * Timeout in seconds for all socket operations. ! * @access private ! * @var string ! */ ! var $CVS_TIMEOUT; ! ! /** ! * The socket handle for communicating with the PServer. ! * @access private ! * @var Net/Socket ! */ ! var $SOCKET; ! ! /** ! * A hashed array of responses that we are capable of processing and the ! * contents is the name of the function to process it through. ! * @access private ! * @var array ! */ ! var $ALLOWED_RESPONSES = array( "ok" => "processOk", "error" => "processError", *************** *** 63,72 **** ); ! var $ALLOWED_REQUESTS = array(); // A hashed array of requests we are allowed to send. ! var $FINAL_RESPONSE; // A state variable for tracking whether the final response ! // in a chain of lines was a success or failure. ! var $STDERR; // Standard Error output. (Does not mean that an error occured). ! var $MESSAGE_CONTENT; // Message contents. (Standard Out) ! var $FOLDERS = array(); // An array of the folders in the current module. var $FILES = array(); // An array of the files in the current module. var $CURRENT_FOLDER; // The current folder we are building up. --- 117,155 ---- ); ! /** ! * List of valid requests the PServer will accept from clients. ! * @access private ! * @var array ! */ ! var $ALLOWED_REQUESTS = array(); ! ! /** ! * A state variable for track whether this is the final line we are expecting ! * to receive from the CVS PServer. ! * @access private ! * @var boolean ! */ ! var $FINAL_RESPONSE; ! ! /* ! * Standard Error output. (Does not mean that an error occured). ! * @access private ! * @var string ! */ ! var $STDERR; ! ! /* ! * Message contents. (Standard Out) ! * @access private ! * @var string ! */ ! var $MESSAGE_CONTENT; ! ! /* ! * A list of the folders in the current module and/or directory. ! * @access public ! * @var array ! */ ! var $FOLDERS = array(); var $FILES = array(); // An array of the files in the current module. var $CURRENT_FOLDER; // The current folder we are building up. Index: func_DirListing.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DirListing.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** func_DirListing.php 4 Feb 2005 09:41:35 -0000 1.11 --- func_DirListing.php 7 Aug 2005 03:33:35 -0000 1.12 *************** *** 28,31 **** --- 28,33 ---- $Response = $CVSServer->Authenticate(); if ($Response !== true) { + + echo "<h3>ERROR: ".$Response."</h3>"; return; } |
From: Brian C. <bch...@us...> - 2005-08-07 03:33:43
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18279/Themes/Default Modified Files: theme.css Log Message: Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** theme.css 4 Feb 2005 10:56:38 -0000 1.14 --- theme.css 7 Aug 2005 03:33:34 -0000 1.15 *************** *** 1,8 **** body { ! margin-top: 3px; ! margin-bottom: 3px; ! margin-left: 3px; ! margin-right: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; --- 1,5 ---- body { ! margin: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; *************** *** 155,156 **** --- 152,173 ---- background-color: #ffdddd; } + .filerevision { + padding-top: 2px; + padding-bottom: 2px; + } + + .filerevision p { + margin: 0 0 0 7px; + padding: 0; + } + + p.logmsg { + font-family: courier; + padding: 0; + margin: 0 0 0 10px; + } + + .logmsg { + white-space: pre; + } + |
From: Brian C. <bch...@us...> - 2005-08-07 03:32:03
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Blue In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18095/Themes/Blue Modified Files: theme.php Log Message: - Added globals reference for $lang at around line 180 Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Blue/theme.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** theme.php 18 Apr 2005 01:14:02 -0000 1.6 --- theme.php 7 Aug 2005 03:31:42 -0000 1.7 *************** *** 173,177 **** function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env; foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); --- 173,177 ---- function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env, $lang; foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); |
From: Sijis A. <si...@us...> - 2005-05-30 21:38:51
|
Update of /cvsroot/phpcvsview/phpcvsview/languages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18410/languages Modified Files: de.php Log Message: - added translated text variables for icon images Index: de.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/languages/de.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** de.php 11 Feb 2005 06:37:51 -0000 1.1 --- de.php 30 May 2005 21:38:42 -0000 1.2 *************** *** 81,86 **** // error messages ! $lang['err_connect'] = '<h2>FEHLER: Verbindung zum PServer fehlgeschlagen.</h2>'."\n"; $lang['err_get_rev'] = '<h3>FEHLER: Empfange Revision für Datei:</h3>'; ! ?> \ No newline at end of file --- 81,95 ---- // error messages ! $lang['err_connect'] = '<h2>FEHLER: Verbindung zum PServer fehlgeschlagen.</h2>'; $lang['err_get_rev'] = '<h3>FEHLER: Empfange Revision für Datei:</h3>'; ! // Image description texts. ! $lang['icon_parent'] = 'Herauf'; ! $lang['icon_dl'] = 'D/L'; ! $lang['icon_dir'] = 'Ver'; ! $lang['icon_mod'] = 'Mod'; ! $lang['icon_file'] = 'Akte'; ! $lang['icon_xhtml'] = 'Gültiges XHTML 1.1!'; ! $lang['icon_css'] = 'Gültiges CSS!'; ! ! ?> |
From: Sijis A. <si...@us...> - 2005-05-30 21:21:03
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9312 Modified Files: func_FileDownload.php Log Message: - added error condition Index: func_FileDownload.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileDownload.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** func_FileDownload.php 4 Feb 2005 09:43:48 -0000 1.4 --- func_FileDownload.php 30 May 2005 21:20:52 -0000 1.5 *************** *** 54,57 **** --- 54,59 ---- // Close the connection. $CVSServer->Disconnect(); + } else{ + echo $lang['err_connect']; } } |
From: Sijis A. <si...@us...> - 2005-04-18 01:17:30
|
Update of /cvsroot/phpcvsview/phpcvsview/languages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1562/languages Modified Files: en.php es.php pt_br.php Log Message: - added translated text variables for icon images Index: es.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/languages/es.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** es.php 4 Feb 2005 23:12:58 -0000 1.1 --- es.php 18 Apr 2005 01:17:21 -0000 1.2 *************** *** 87,89 **** --- 87,98 ---- $lang['err_get_rev'] = '<h3>ERROR: Obteniendo revisión para el archivo:</h3>'; + // Image description texts. + $lang['icon_parent'] = 'Subir'; + $lang['icon_dl'] = 'D/L'; + $lang['icon_dir'] = 'Dir'; + $lang['icon_mod'] = 'Mod'; + $lang['icon_file'] = 'Archivo'; + $lang['icon_xhtml'] = 'Valido XHTML 1.1!'; + $lang['icon_css'] = 'Valido CSS!'; + ?> Index: en.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/languages/en.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** en.php 16 Apr 2005 02:40:58 -0000 1.6 --- en.php 18 Apr 2005 01:17:21 -0000 1.7 *************** *** 81,95 **** // error messages ! $lang['err_connect'] = '<h2>ERROR: Could not connect to the PServer.</h2>'."\n"; $lang['err_get_rev'] = '<h3>ERROR: Getting Revision for file:</h3>'; // Image description texts. - $lang['icon_xhtml'] = 'This page is XHTML 1.0 compliant.'; - $lang['icon_css'] = 'This page uses CSS 2.1 compliant external style sheets.'; - $lang['icon_dir'] = 'Dir'; - $lang['icon_dl'] = 'D/L'; - $lang['icon_file'] = 'File'; $lang['icon_parent'] = 'Up'; ! $lang['icon_mod'] = 'Mod'; ?> --- 81,95 ---- // error messages ! $lang['err_connect'] = '<h2>ERROR: Could not connect to the PServer.</h2>'; $lang['err_get_rev'] = '<h3>ERROR: Getting Revision for file:</h3>'; // Image description texts. $lang['icon_parent'] = 'Up'; ! $lang['icon_dl'] = 'D/L'; ! $lang['icon_dir'] = 'Dir'; ! $lang['icon_mod'] = 'Mod'; ! $lang['icon_file'] = 'File'; ! $lang['icon_xhtml'] = 'Valid XHTML 1.1!'; ! $lang['icon_css'] = 'Valid CSS!'; ?> Index: pt_br.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/languages/pt_br.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pt_br.php 4 Feb 2005 23:14:24 -0000 1.1 --- pt_br.php 18 Apr 2005 01:17:21 -0000 1.2 *************** *** 87,89 **** --- 87,98 ---- $lang['err_get_rev'] = '<h3>ERRO: Solicitando Revisão para o arquivo:</h3>'; + // Image description texts. + $lang['icon_parent'] = 'Subir'; + $lang['icon_dl'] = 'D/L'; + $lang['icon_dir'] = 'Dir'; + $lang['icon_mod'] = 'Mod'; + $lang['icon_file'] = 'Arquivo'; + $lang['icon_xhtml'] = 'Válido XHTML 1.1!'; + $lang['icon_css'] = 'Válido CSS!'; + ?> |
From: Sijis A. <si...@us...> - 2005-04-18 01:14:16
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Yellow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32577/Themes/Yellow Modified Files: theme.php Log Message: - added translated text variables for icon images Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Yellow/theme.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** theme.php 24 Feb 2005 06:47:56 -0000 1.5 --- theme.php 18 Apr 2005 01:14:03 -0000 1.6 *************** *** 91,96 **** $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="Valid CSS!" /></a></p>'; $PageFoot .= '</div>'; $PageFoot .= '</body></html>'; --- 91,96 ---- $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'; $PageFoot .= '</div>'; $PageFoot .= '</body></html>'; *************** *** 161,165 **** echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="parent" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; echo '<td> </td>'; --- 161,165 ---- echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; echo '<td> </td>'; *************** *** 178,186 **** echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="DIR" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; echo '<td> </td>'; --- 178,186 ---- echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; echo '<td> </td>'; *************** *** 206,214 **** echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="MOD" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; echo '<td> </td>'; --- 206,214 ---- echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; echo '<td> </td>'; *************** *** 235,239 **** echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="FILE" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; --- 235,239 ---- echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; |
From: Sijis A. <si...@us...> - 2005-04-18 01:14:15
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Red In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32577/Themes/Red Modified Files: theme.php Log Message: - added translated text variables for icon images Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Red/theme.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** theme.php 24 Feb 2005 06:47:56 -0000 1.5 --- theme.php 18 Apr 2005 01:14:03 -0000 1.6 *************** *** 91,96 **** $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="Valid CSS!" /></a></p>'; $PageFoot .= '</div>'; $PageFoot .= '</body></html>'; --- 91,96 ---- $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'; $PageFoot .= '</div>'; $PageFoot .= '</body></html>'; *************** *** 161,165 **** echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="parent" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; echo '<td> </td>'; --- 161,165 ---- echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; echo '<td> </td>'; *************** *** 178,186 **** echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="DIR" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; echo '<td> </td>'; --- 178,186 ---- echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; echo '<td> </td>'; *************** *** 206,214 **** echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="MOD" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; echo '<td> </td>'; --- 206,214 ---- echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; echo '<td> </td>'; *************** *** 235,239 **** echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="FILE" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; --- 235,239 ---- echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; |
From: Sijis A. <si...@us...> - 2005-04-18 01:14:15
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Blue In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32577/Themes/Blue Modified Files: theme.php Log Message: - added translated text variables for icon images Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Blue/theme.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** theme.php 24 Feb 2005 06:47:54 -0000 1.5 --- theme.php 18 Apr 2005 01:14:02 -0000 1.6 *************** *** 91,96 **** $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="Valid CSS!" /></a></p>'; $PageFoot .= '</div>'; $PageFoot .= '</body></html>'; --- 91,96 ---- $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'; $PageFoot .= '</div>'; $PageFoot .= '</body></html>'; *************** *** 161,165 **** echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="parent" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; echo '<td> </td>'; --- 161,165 ---- echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; echo '<td> </td>'; *************** *** 178,186 **** echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="DIR" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; echo '<td> </td>'; --- 178,186 ---- echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; echo '<td> </td>'; *************** *** 206,214 **** echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="MOD" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; echo '<td> </td>'; --- 206,214 ---- echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; echo '<td> </td>'; *************** *** 235,239 **** echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="FILE" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; --- 235,239 ---- echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; |
From: Sijis A. <si...@us...> - 2005-04-18 01:14:15
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32577/Themes/Default Modified Files: theme.php Log Message: - added translated text variables for icon images Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** theme.php 24 Feb 2005 06:47:54 -0000 1.16 --- theme.php 18 Apr 2005 01:14:02 -0000 1.17 *************** *** 91,96 **** $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="Valid CSS!" /></a></p>'; $PageFoot .= '</div>'; $PageFoot .= '</body></html>'; --- 91,96 ---- $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'; $PageFoot .= '</div>'; $PageFoot .= '</body></html>'; *************** *** 161,165 **** echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="parent" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; echo '<td> </td>'; --- 161,165 ---- echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; echo '<td> </td>'; *************** *** 173,186 **** function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env; foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="DIR" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; echo '<td> </td>'; --- 173,186 ---- function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env, $lang; foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; echo '<td> </td>'; *************** *** 199,203 **** function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env; foreach ($Modules as $Key => $Val) { --- 199,203 ---- function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env, $lang; foreach ($Modules as $Key => $Val) { *************** *** 206,214 **** echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="MOD" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; echo '<td> </td>'; --- 206,214 ---- echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; echo '<td> </td>'; *************** *** 235,239 **** echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="FILE" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; --- 235,239 ---- echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; |
From: Sijis A. <si...@us...> - 2005-04-18 01:14:15
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Green In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32577/Themes/Green Modified Files: theme.php Log Message: - added translated text variables for icon images Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Green/theme.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** theme.php 24 Feb 2005 06:47:55 -0000 1.5 --- theme.php 18 Apr 2005 01:14:03 -0000 1.6 *************** *** 91,96 **** $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="Valid CSS!" /></a></p>'; $PageFoot .= '</div>'; $PageFoot .= '</body></html>'; --- 91,96 ---- $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="'.$lang['icon_xhtml'].'" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="'.$lang['icon_css'].'" /></a></p>'; $PageFoot .= '</div>'; $PageFoot .= '</body></html>'; *************** *** 161,165 **** echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="parent" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; echo '<td> </td>'; --- 161,165 ---- echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_parent'].'" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; echo '<td> </td>'; *************** *** 178,186 **** echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="DIR" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; echo '<td> </td>'; --- 178,186 ---- echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_dir'].'" src="'.$env['script_path'].'/'.$FolderIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Folder["Name"].'</a></td>'; echo '<td> </td>'; *************** *** 206,214 **** echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="MOD" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; echo '<td> </td>'; --- 206,214 ---- echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="'.$lang['icon_dl'].'" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { echo '<td class="min"> </td>'; } ! echo '<td class="min"><a href="'.$HREF.'"><img alt="'.$lang['icon_mod'].'" src="'.$env['script_path'].'/'.$ModuleIcon.'" /></a></td>'; echo '<td class="min"><a href="'.$HREF.'">'.$Key.'</a></td>'; echo '<td> </td>'; *************** *** 235,239 **** echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="FILE" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; --- 235,239 ---- echo '<tr class="'.$RowClass.'">'; echo '<td class="min"> </td>'; ! echo '<td align="center"><a href="'.$HREF.'&fh"><img alt="'.$lang['icon_file'].'" src="'.$env['script_path'].'/'.$FileIcon.'" /></a></td>'; echo '<td><a href="'.$HREF.'&fh">'.$File["Name"].'</a></td>'; echo '<td align="center"><a href="'.$HREF.'&fv&dt='.$DateTime.'">'.$File["Head"].'</a></td>'; |