PLD-BTS/trunk/flyspray/scripts/newproject.php

jajcus cvs at pld-linux.org
Mon Oct 3 21:58:54 CEST 2005


Author: jajcus
Date: Mon Oct  3 21:58:52 2005
New Revision: 6424

Modified:
   PLD-BTS/trunk/flyspray/scripts/newproject.php
Log:
- XML fixes for newproject page

Modified: PLD-BTS/trunk/flyspray/scripts/newproject.php
==============================================================================
--- PLD-BTS/trunk/flyspray/scripts/newproject.php	(original)
+++ PLD-BTS/trunk/flyspray/scripts/newproject.php	Mon Oct  3 21:58:52 2005
@@ -1,36 +1,16 @@
 <?php
-// Get the application preferences into an array
-$flyspray_prefs = $fs->getGlobalPrefs();
-
-$lang = $flyspray_prefs['lang_code'];
 get_language_pack($lang, 'newproject');
 
 // Make sure that only admins are using this page
 if ($_SESSION['admin'] == '1') {
-?>
-
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
-  <title>Flyspray:: <?php echo $newproject_text['createnewgroup'];?></title>
-  <link href="../themes/<?php echo $flyspray_prefs['theme_style'];?>/theme.css" rel="stylesheet" type="text/css">
-  <script type="text/javascript"> <!--
-    function Disable()
-    {
-    document.form1.buSubmit.disabled = true;
-    document.form1.submit();
-    }
-//--> </script>
-</head>
-
-<body>
 
+?>
 <h3><?php echo $newproject_text['createnewproject'];?></h3>
 
 <form action="index.php" method="post">
-  <input type="hidden" name="do" value="modify">
-  <input type="hidden" name="action" value="newproject">
-  <input type="hidden" name="project_id" value="<?php echo $_GET['id'];?>">
+  <input type="hidden" name="do" value="modify" />
+  <input type="hidden" name="action" value="newproject" />
+  <input type="hidden" name="project_id" value="<?php echo $_GET['id'];?>" />
 <table class="admin">
   <tr>
     <td>
@@ -38,7 +18,7 @@
       <label for="projecttitle"><?php echo $newproject_text['projecttitle'];?></label>
     </td>
     <td>
-      <input id="projecttitle" name="project_title" type="text" size="40" maxlength="100" value="<?php echo $project_details['project_title'];?>">
+      <input id="projecttitle" name="project_title" type="text" size="40" maxlength="100" value="<?php echo $project_details['project_title'];?>" />
     </td>
   </tr>
 
@@ -81,7 +61,7 @@
     <label for="showlogo"><?php echo $newproject_text['showlogo'];?></label>
     </td>
     <td>
-    <input type="checkbox" name="show_logo" value="1" checked="checked">
+    <input type="checkbox" name="show_logo" value="1" checked="checked" />
     </td>
   </tr>
   <tr>
@@ -89,7 +69,7 @@
     <label for="inlineimages"><?php echo $newproject_text['inlineimages'];?></label>
     </td>
     <td>
-    <input type="checkbox" name="inline_images" value="1">
+    <input type="checkbox" name="inline_images" value="1" />
     </td>
   </tr>
   <tr>
@@ -115,15 +95,12 @@
     </td>
   </tr>
   <tr>
-    <td class="buttons" colspan="2"><input class="adminbutton" type="submit" value="<?php echo $newproject_text['createthisproject'];?>"></td>
+    <td class="buttons" colspan="2"><input class="adminbutton" type="submit" value="<?php echo $newproject_text['createthisproject'];?>" /></td>
   </tr>
 
 </table>
   </form>
 
-</body>
-</html>
-
 <?php
 } else {
   echo $newproject_text['nopermission'];



More information about the pld-cvs-commit mailing list