1 <script language="javascript">
3 function updateNodeCombo()
5 node_ids= document.fm.node_ids;
6 nodegroup_ids= document.fm.nodegroup_ids;
7 scope= document.fm.scope;
9 for ( var i=0; i < scope.length ; i++ )
11 if ( scope[i].checked )
13 switch( scope[i].value )
17 nodegroup_ids.disabled= 1;
22 nodegroup_ids.disabled= 0;
27 nodegroup_ids.disabled= 1;
37 <a href="index.php">Return to listing...</a>
38 <?= form_open("conffile/update/$conf_file_id", array('name'=>'fm', 'method'=>'post')) ?>
39 <input type="hidden" name="submitted" value="1">
41 <p><table width=100% cellpadding=5 border=0>
46 <input type=checkbox <?= ( $enabled ? "checked" : "" ) ?>
47 name="enabled">Enabled</input>
48 <?= $this->validation->enabled_error ?>
54 <input type='radio' name='scope' value='global' onClick="updateNodeCombo();" <?= ( $scope == "global" ? "checked" : "" ) ?>> Global<br>
55 <input type='radio' name='scope' value='node' onClick="updateNodeCombo();" <?= ( $scope == "node" ? "checked" : "" ) ?>> Node :
56 <select name="node_ids">
57 <?php foreach( $nodes as $node ): ?>
58 <option $selected value="<?= $node['node_id'] ?>"><?= $node['hostname'] ?></option>
63 <input type='radio' name='scope' value='group' onChange="updateNodeCombo();" <?= ( $scope == "group" ? "checked" : "" ) ?>> Group :
64 <select name="nodegroup_ids">
65 <?php foreach( $nodegroups as $nodegroup ): ?>
66 <option value="<?= $nodegroup['nodegroup_id'] ?>"><?= $nodegroup['name'] ?></option>
75 <td><i>http://<?= PLC_BOOT_HOST ?>/</i>
76 <input name="source" value="<?= htmlspecialchars($source) ?>" size=40 maxlength=255>
77 <?= $this->validation->source_error ?>
84 <input name="dest" value="<?= htmlspecialchars($dest) ?>" size=40 maxlength=255>
85 <?= $this->validation->dest_error ?>
92 <input name="file_permissions" value="<?= htmlspecialchars($file_permissions) ?>" size=5 maxlength=20>
93 <?= $this->validation->file_permissions_error ?>
100 <input name="file_owner" value="<?= htmlspecialchars($file_owner) ?>" size=15 maxlength=50>
101 <?= $this->validation->file_owner_error ?>
108 <input name="file_group" value="<?= htmlspecialchars($file_group) ?>" size=15 maxlength=50>
109 <?= $this->validation->file_group_error ?>
114 <td>Pre-Install Command:</td>
116 <input name="preinstall_cmd" value='<?= htmlspecialchars($preinstall_cmd) ?>' size=70 maxlength=1024>
117 <?= $this->validation->preinstall_cmd_error ?>
122 <td>Post-Install Command:</td>
124 <input name="postinstall_cmd" value='<?= htmlspecialchars($postinstall_cmd) ?>' size=70 maxlength=1024>
125 <?= $this->validation->postinstall_cmd_error ?>
130 <td>Error Command:</td>
132 <input name="error_cmd" value='<?= htmlspecialchars($error_cmd) ?>' size=70 maxlength=1024>
133 <?= $this->validation->postinstall_cmd_error ?>
135 (run if an error occured, regardless if errors are being ignored)</td>
141 <input type=checkbox <?= $this->validation->set_checkbox('ignore_cmd_errors', $ignore_cmd_errors) ?>
142 name="ignore_cmd_errors">Ignore pre/post install command errors</input>
143 <?= $this->validation->ignore_cmd_errors_error?>
151 <input type=checkbox <?= $this->validation->set_checkbox('always_update', $always_update) ?>
152 name="always_update">Always update this file, even if same as original</input>
153 <?= $this->validation->always_update_error?>
158 <td><input type="submit" value="<?= htmlspecialchars($submit_caption) ?>"></td>
164 <script language="javascript">