Project

General

Profile

« Previous | Next » 

Revision facd08f9

Added by Scott Ullrich over 20 years ago

Add a number of directives allowing fields to be tied together similar to wizard.php

View differences:

usr/local/www/pkg_edit.php
71 71
		    eval($pkg['custom_delete_php_command']);
72 72
		}
73 73
		write_config();
74
		// resync the configuration file code if defined.
75
		if($pkg['custom_php_resync_config_command'] <> "") {
76
		    eval($pkg['custom_php_resync_config_command']);
77
		}
74 78
	} else {
75 79
		if($pkg['custom_add_php_command']) {
76 80
			if($pkg['donotsave'] <> "") {
......
143 147

  
144 148
		write_config();
145 149

  
150
		// late running code
146 151
		if($pkg['custom_add_php_command_late'] <> "") {
147 152
		    eval($pkg['custom_add_php_command_late']);
148 153
		}
149 154

  
155
		// resync the configuration file code if defined.
156
		if($pkg['custom_php_resync_config_command'] <> "") {
157
		    eval($pkg['custom_php_resync_config_command']);
158
		}
159

  
150 160
		header("Location:  pkg.php?xml=" . $xml);
151 161
		exit;
152 162
	}
......
180 190
&nbsp;<br>
181 191

  
182 192
<table width="100%" border="0" cellpadding="6" cellspacing="0">
183
  <tr>
184 193
  <?php
185 194
  $cols = 0;
186 195
  $savevalue = "Save";
187 196
  if($pkg['savetext'] <> "") $savevalue = $pkg['savetext'];
188 197
  foreach ($pkg['fields']['field'] as $pkga) { ?>
189
      </tr>
190
      <tr valign="top">
191
       <td width="22%" class="vncellreq">
192
	  <?= $pkga['fielddescr'] ?>
193
       </td>
194
       <td class="vtable">
198

  
199
	  <?php if(!$pkga['combinefieldsend']) echo "<tr valign=\"top\">"; ?>
200

  
195 201
	  <?php
202
	  if(!$pkga['dontdisplayname']) {
203
       echo "<td width=\"22%\" class=\"vncellreq\">";
204
	   echo $pkga['fielddescr'];
205
       echo "</td>";
206
	  }
207

  
208
	  if(!$pkga['dontcombinecells'])
209
		echo "<td class=\"vtable\">";
196 210

  
197 211
	      if($pkga['type'] == "input") {
198 212
			if($pkga['size']) $size = " size='" . $pkga['size'] . "' ";
......
305 319
		totalrows = <?php echo $rowcounter; ?>;
306 320
		loaded = <?php echo $rowcounter; ?>;
307 321
		typesel_change();
308

  
309 322
		//-->
310 323
		</script>
311 324

  
312 325
		<?php
313 326
	      }
314

  
315 327
	      if($pkga['typehint']) echo " " . $pkga['typehint'];
316
	  ?>
317
       </td>
318
      </tr>
328
	     ?>
329

  
319 330
      <?php
331
	  if(!$pkga['combinefieldsbegin']) echo "</td></tr>";
320 332
      $i++;
321 333
  }
322 334
 ?>

Also available in: Unified diff