Update of /cvsroot/phpcvsview/phpcvsview/Themes/Green
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8812/Themes/Green
Modified Files:
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/Green/theme.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** theme.php 1 Feb 2005 15:02:48 -0000 1.2
--- theme.php 2 Feb 2005 11:56:16 -0000 1.3
***************
*** 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;
+ }
+
?>
|