Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Hussamuddin Nasir
emulab-devel
Commits
12e2d5d5
Commit
12e2d5d5
authored
Jun 23, 2004
by
Leigh Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new slots to edit page.
parent
3ad7b97e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
www/editnodetype.php3
www/editnodetype.php3
+61
-0
No files found.
www/editnodetype.php3
View file @
12e2d5d5
...
...
@@ -265,6 +265,36 @@ function SPITFORM($node_type, $formfields, $errors)
</td>
</tr>
\n
"
;
echo
"<tr>
<td>ismodelnet:</td>
<td class=left>
<input type=text
name=
\"
formfields[ismodelnet]
\"
value=
\"
"
.
$formfields
[
ismodelnet
]
.
"
\"
size=2>
</td>
</tr>
\n
"
;
echo
"<tr>
<td>isphantom:</td>
<td class=left>
<input type=text
name=
\"
formfields[isphantom]
\"
value=
\"
"
.
$formfields
[
isphantom
]
.
"
\"
size=2>
</td>
</tr>
\n
"
;
echo
"<tr>
<td>isdynamic:</td>
<td class=left>
<input type=text
name=
\"
formfields[isdynamic]
\"
value=
\"
"
.
$formfields
[
isdynamic
]
.
"
\"
size=2>
</td>
</tr>
\n
"
;
echo
"<tr>
<td>isremotenode:</td>
<td class=left>
...
...
@@ -332,6 +362,7 @@ if ($new_type) {
$defaults
=
array
(
"class"
=>
"pc"
,
"power_time"
=>
60
,
"imageable"
=>
1
,
"delay_capacity"
=>
2
,
"disktype"
=>
"ad"
,
"isvirtnode"
=>
0
,
"isremotenode"
=>
0
,
"issubnode"
=>
0
,
"isplabdslice"
=>
0
,
"ismodelnet"
=>
0
,
"isphantom"
=>
0
,
"isdynamic"
=>
0
,
"issimnode"
=>
0
,
"simnode_capacity"
=>
20
,
"bootdisk_unit"
=>
0
);
}
else
{
#
...
...
@@ -596,6 +627,36 @@ if (isset($formfields[isvirtnode]) && $formfields[isvirtnode] != "") {
}
}
# ismodelnet
if
(
isset
(
$formfields
[
ismodelnet
])
&&
$formfields
[
ismodelnet
]
!=
""
)
{
if
(
!
TBvalid_boolean
(
$formfields
[
ismodelnet
]))
{
$errors
[
"ismodelnet"
]
=
TBFieldErrorString
();
}
else
{
$inserts
[
"ismodelnet"
]
=
$formfields
[
ismodelnet
];
}
}
# isphantom
if
(
isset
(
$formfields
[
isphantom
])
&&
$formfields
[
isphantom
]
!=
""
)
{
if
(
!
TBvalid_boolean
(
$formfields
[
isphantom
]))
{
$errors
[
"isphantom"
]
=
TBFieldErrorString
();
}
else
{
$inserts
[
"isphantom"
]
=
$formfields
[
isphantom
];
}
}
# isdynamic
if
(
isset
(
$formfields
[
isdynamic
])
&&
$formfields
[
isdynamic
]
!=
""
)
{
if
(
!
TBvalid_boolean
(
$formfields
[
isdynamic
]))
{
$errors
[
"isdynamic"
]
=
TBFieldErrorString
();
}
else
{
$inserts
[
"isdynamic"
]
=
$formfields
[
isdynamic
];
}
}
# isremotenode
if
(
isset
(
$formfields
[
isremotenode
])
&&
$formfields
[
isremotenode
]
!=
""
)
{
if
(
!
TBvalid_boolean
(
$formfields
[
isremotenode
]))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment