Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8812/Themes/Default
Modified Files:
theme.css theme.php
Log Message:
Added Colored DIFF functionality to the project. Still have problems with the script running under MS IIS.
Index: theme.php
===================================================================
RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** theme.php 1 Feb 2005 15:02:46 -0000 1.10
--- theme.php 2 Feb 2005 11:56:16 -0000 1.11
***************
*** 223,225 ****
--- 223,248 ----
}
+ function GetDiffForm()
+ {
+ global $CVSServer, $env;
+ $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']);
+
+ $DiffForm = "<form class=\"diffform\">";
+ $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;
+ }
+
?>
Index: theme.css
===================================================================
RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** theme.css 1 Feb 2005 15:04:23 -0000 1.10
--- theme.css 2 Feb 2005 11:56:16 -0000 1.11
***************
*** 102,103 ****
--- 102,140 ----
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;
+ }
+
|