PluginProbe
ShiftController Employee Shift Scheduling / 4.9.95
ShiftController Employee Shift Scheduling v4.9.95
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | sh4/api/html/view.html.php +10 -1 4.9.754.9.95 View file →
@@ -91,10 +91,13 @@
91 91 <strong>to</strong> (__To Date__, YYYYMMDD / __To Date Time__, YYYYMMDDHHMM)<br>
92 92 <strong>status_id</strong> (publish, draft)<br>
93 93 </p>
94 94
95 -<?php if( class_exists('SH4_CFields_Model') ) : ?>
96 95 <?php
96 +$cfields = array();
97 +?>
98 +<?php if( class_exists('SH4_CFields_Model') or class_exists('SH4_CFields2_Model') ) : ?>
99 +<?php
97 100 $f = ShiftController4::$instance->root();
98 101 $cfieldsQuery = $f->make('SH4_CFields_Query');
99 102 $cfields = $cfieldsQuery->read();
100 103 ?>
@@ -223,8 +226,11 @@
223 226 <strong>start</strong> (__Start Date Time__, YYYYMMDDHHMM)<br>
224 227 <strong>end</strong> (__End Date Time__, YYYYMMDDHHMM)<br>
225 228 <strong>status_id</strong> (publish, draft)<br>
226 229 <strong>conflict</strong> (__Set to 1 to allow creation of shifts with conflicts__) <em>__optional__</em><br>
230 +<?php foreach( $cfields as $cfield ) : ?>
231 +<strong><?php echo $cfield->getName(); ?></strong> (<?php echo $cfield->getLabel(); ?>)<br>
232 +<?php endforeach; ?>
227 233 </p>
228 234
229 235 <p>
230 236 <strong>__Examples__</strong>
@@ -280,8 +286,11 @@
280 286 <strong>start</strong> (__Start Date Time__, YYYYMMDDHHMM) <em>__optional__</em><br>
281 287 <strong>end</strong> (__End Date Time__, YYYYMMDDHHMM) <em>__optional__</em><br>
282 288 <strong>status_id</strong> (publish, draft) <em>__optional__</em><br>
283 289 <strong>conflict</strong> (__Set to 1 to allow creation of shifts with conflicts__) <em>__optional__</em><br>
290 +<?php foreach( $cfields as $cfield ) : ?>
291 +<strong><?php echo $cfield->getName(); ?></strong> (<?php echo $cfield->getLabel(); ?>)<br>
292 +<?php endforeach; ?>
284 293 </p>
285 294
286 295 <p>
287 296 <strong>__Examples__</strong>