Changeset 513 for trunk/phpbms/modules/base/menu_addedit.php
- Timestamp:
- 04/23/09 14:06:11 (3 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/modules/base/menu_addedit.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/base/menu_addedit.php
r331 r513 1 <?php 1 <?php 2 2 /* 3 3 $Rev$ | $LastChangedBy$ … … 45 45 $thetable = new menus($db,19); 46 46 $therecord = $thetable->processAddEditPage(); 47 47 48 48 if(isset($therecord["phpbmsStatus"])) 49 $statusmessage = $therecord["phpbmsStatus"]; 50 49 $statusmessage = $therecord["phpbmsStatus"]; 50 51 51 $pageTitle="Menu Item"; 52 52 53 53 $phpbms->cssIncludes[] = "pages/menus.css"; 54 54 $phpbms->jsIncludes[] = "modules/base/javascript/menu.js"; … … 57 57 //============================================================== 58 58 $theform = new phpbmsForm(); 59 59 60 60 $theinput = new inputField("name",$therecord["name"],NULL,true,NULL,32,64); 61 61 $theinput->setAttribute("class","important"); … … 64 64 $theinput = new inputField("displayorder",$therecord["displayorder"],"display order",true,NULL,10,10); 65 65 $theform->addField($theinput); 66 66 67 67 $theinput = new inputRolesList($db,"roleid",$therecord["roleid"],"access (role)"); 68 $theform->addField($theinput); 68 $theform->addField($theinput); 69 70 $theinput = new inputField("uuid", $therecord["uuid"], NULL, true); 71 $theinput->setAttribute("class","uneditable"); 72 $theinput->setAttribute("readonly","readonly"); 73 $theform->addField($theinput); 69 74 70 75 $theform->jsMerge(); 71 76 //============================================================== 72 //End Form Elements 73 77 //End Form Elements 78 74 79 $phpbms->bottomJS[] = "showTypeDetails();"; 75 80 76 81 include("header.php"); 77 82 78 83 ?><div class="bodyline"> 79 <?php $theform->startForm($pageTitle)?> 80 84 <?php $theform->startForm($pageTitle)?> 85 81 86 <fieldset id="fsAttributes"> 82 87 <legend>attributes</legend> … … 85 90 <input id="id" name="id" type="text" value="<?php echo htmlQuotes($therecord["id"]); ?>" size="10" maxlength="10" readonly="readonly" class="uneditable" /> 86 91 </p> 87 92 93 <p><?php $theform->showField("uuid"); ?></p> 94 88 95 <p> 89 96 <?php $theform->showField("displayorder"); ?><br /> … … 94 101 95 102 </fieldset> 96 103 97 104 <div id="leftSideDiv"> 98 105 <fieldset> … … 109 116 <img src="menu-example-category.png" width="220" height="167" class="typeImage" alt="category" /> 110 117 </p> 111 118 112 119 <p class="typeP"> 113 120 <input type="radio" id="type2" value="search" <?php if(strpos($therecord["link"],"search.php?id=")!==false) echo "checked=\"checked\"" ?> name="radio" onclick="showTypeDetails();" class="radiochecks" /><label for="type2">table definition search</label><br /> … … 127 134 <p id="thelink"> 128 135 <label for="link">link</label> <span class="notes">(URL)</span><br /> 129 <input id="link" name="link" type="text" value="<?php if(substr($therecord["link"],0,10)!="search.php" ) echo htmlQuotes($therecord["link"])?>" size="64" maxlength="255" /> 136 <input id="link" name="link" type="text" value="<?php if(substr($therecord["link"],0,10)!="search.php" ) echo htmlQuotes($therecord["link"])?>" size="64" maxlength="255" /> 130 137 </p> 131 138 <p id="thetabledef"> 132 <label for="linkdropdown">table definition</label><br /> 133 <?php $thetable->displayTableDropDown($therecord["link"]) ?> 139 <label for="linkdropdown">table definition</label><br /> 140 <?php $thetable->displayTableDropDown($therecord["link"]) ?> 134 141 </p> 135 142 <p> 136 143 parent<br/> 137 <?php $thetable->displayParentDropDown($therecord["parentid"],$therecord[" id"]) ?>144 <?php $thetable->displayParentDropDown($therecord["parentid"],$therecord["uuid"]) ?> 138 145 </p> 139 146 </fieldset> 140 147 </div> 141 142 <?php 148 149 <?php 143 150 $theform->showCreateModify($phpbms,$therecord); 144 151 $theform->endForm();