Commit 108c5154620a1a262fb537089bd480f21362bcb9

Authored by michaeljoseph
1 parent 622914d4

Corrected all naming convention violations and fixed 'Back' button link construc…

…tion for  'no Non-generic fields' case.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2888 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/addDocTypeFieldsLinkUI.inc
... ... @@ -25,66 +25,66 @@
25 25 * @package administration.doctypemanagement
26 26 */
27 27  
28   -function getOptionPage($fDocTypeID = null){
  28 +function getOptionPage($iDocTypeID = null){
29 29 global $default;
30 30  
31 31 $sToRender .= renderHeading("Add Type Specific Field to Document Type");
32 32 $sToRender .= "<br>";
33 33 $sToRender .= "<table>\n";
34   - $sToRender .= "<tr><td>New type specific field?</td><td><a href=\"$default->rootUrl/control.php?action=addDocTypeFieldsLink&fNewField=1&fDocTypeID=$fDocTypeID\"><img src =\"$default->graphicsUrl/widgets/select.gif\" border = \"0\" /></a></td></tr>\n";
35   - $sToRender .= "<tr><td>Choose from existing type specific fields</td><td><a href=\"$default->rootUrl/control.php?action=addDocTypeFieldsLink&fFromList=1&fDocTypeID=$fDocTypeID\"><img src =\"$default->graphicsUrl/widgets/select.gif\" border = \"0\" /></a></td></tr>\n";
36   - $sToRender .= "<tr><td></td><td>" . getCancelButton($fDocTypeID) . "</td></tr>\n";
  34 + $sToRender .= "<tr><td>New type specific field?</td><td><a href=\"$default->rootUrl/control.php?action=addDocTypeFieldsLink&fNewField=1&fDocTypeID=$iDocTypeID\"><img src =\"$default->graphicsUrl/widgets/select.gif\" border = \"0\" /></a></td></tr>\n";
  35 + $sToRender .= "<tr><td>Choose from existing type specific fields</td><td><a href=\"$default->rootUrl/control.php?action=addDocTypeFieldsLink&fFromList=1&fDocTypeID=$iDocTypeID\"><img src =\"$default->graphicsUrl/widgets/select.gif\" border = \"0\" /></a></td></tr>\n";
  36 + $sToRender .= "<tr><td></td><td>" . getCancelButton($iDocTypeID) . "</td></tr>\n";
37 37 $sToRender .= "</table>\n";
38 38  
39 39 return $sToRender;
40 40 }
41 41  
42 42  
43   -function genericMessage($sMsg, $fDocTypeID = null){
  43 +function genericMessage($sMsg, $iDocTypeID = null){
44 44 global $default;
45 45  
46 46 $sToRender .= "<table>\n";
47 47 $sToRender .= "<tr><td>$sMsg</td></tr>\n";
48   - $sToRender .= "<tr><td></td><td>" . getBackButton($fDocTypeID) . "</td></tr>\n";
  48 + $sToRender .= "<tr><td></td><td>" . getBackButton($iDocTypeID) . "</td></tr>\n";
49 49 $sToRender .= "</table>\n";
50 50  
51 51 return $sToRender;
52 52 }
53 53  
54   -function getCreateNewFail($fDocTypeID){
55   - $sToRender = genericMessage("Error creating new Type Specific Field and Linking it", $fDocTypeID);
  54 +function getCreateNewFail($iDocTypeID){
  55 + $sToRender = genericMessage("Error creating new Type Specific Field and Linking it", $iDocTypeID);
56 56 return $sToRender;
57 57 }
58 58  
59 59  
60   -function getCreateNewSuccess($fDocTypeID){
61   - $sToRender = genericMessage("New Type specific Field Created and Linked.", $fDocTypeID);
  60 +function getCreateNewSuccess($iDocTypeID){
  61 + $sToRender = genericMessage("New Type specific Field Created and Linked.", $iDocTypeID);
62 62 return $sToRender;
63 63 }
64 64  
65   -function getFail_NoFieldID($fDocTypeID = null){
66   - $sToRender = genericMessage("Linking cannot be done. Please select a field to link to.", $fDocTypeID);
  65 +function getFail_NoFieldID($iDocTypeID = null){
  66 + $sToRender = genericMessage("Linking cannot be done. Please select a field to link to.", $iDocTypeID);
67 67 return $sToRender;
68 68 }
69 69  
70   -function addSuccessPage($fDocTypeID = null){
71   - $sToRender = genericMessage("Field is successfully linked to the Document Type.", $fDocTypeID);
  70 +function addSuccessPage($iDocTypeID = null){
  71 + $sToRender = genericMessage("Field is successfully linked to the Document Type.", $iDocTypeID);
72 72 return $sToRender;
73 73 }
74 74  
75   -function addFailPage($fDocTypeID = null ){
76   - $sToRender = genericMessage("Error: Field Could not be linked to the Document Type.", $fDocTypeID);
  75 +function addFailPage($iDocTypeID = null ){
  76 + $sToRender = genericMessage("Error: Field Could not be linked to the Document Type.", $iDocTypeID);
77 77 return $sToRender;
78 78 }
79 79  
80 80 function getMissingDocTypeIDPage($iDocTypeID = null ){
81   - $sToRender = genericMessage("Error: Page expects a Document Type ID.", $fDocTypeID);
  81 + $sToRender = genericMessage("Error: Page expects a Document Type ID.", $iDocTypeID);
82 82 return $sToRender;
83 83 }
84 84  
85 85  
86 86 function getListFailPage($iDocTypeID = null){
87   - $sToRender = genericMessage("There are no Non-generic fields in the database.", $fDocTypeID);
  87 + $sToRender = genericMessage("There are no non-generic fields in the database.", $iDocTypeID);
88 88 return $sToRender;
89 89 }
90 90  
... ...