[phpcvsview-cvs-updates] phpcvsview/Themes/Yellow theme.php,1.2,1.3
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Brian C. <bch...@us...> - 2005-02-02 11:56:27
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Yellow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8812/Themes/Yellow 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/Yellow/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:49 -0000 1.2 --- theme.php 2 Feb 2005 11:56:17 -0000 1.3 *************** *** 223,225 **** --- 223,247 ---- } + 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; + } ?> |