Browse Source

Added seconds to override.

Alan Lam 8 năm trước cách đây
mục cha
commit
8bfcc3995e
2 tập tin đã thay đổi với 21 bổ sung và 0 xóa
  1. 9 0
      engine/form.php
  2. 12 0
      views/test_verify_form.php

+ 9 - 0
engine/form.php

@@ -89,6 +89,15 @@ class Form {
 		}
 		}
 	}
 	}
 
 
+	public static function renderSecondOptions($selected_value = null) {
+		for($i = 0; $i <= 59; $i++) {
+			$selected = ($selected_value === $i) ? "selected" : "";
+			?>
+			<option value="<?=$i?>" <?=$selected?>><?=$i?></option>
+			<?php
+		}
+	}
+
 	public static function renderField($options) {
 	public static function renderField($options) {
 
 
 		switch($options->type) {
 		switch($options->type) {

+ 12 - 0
views/test_verify_form.php

@@ -212,6 +212,12 @@ function render_card_list_group($details) {
 									Form::renderMinuteOptions();
 									Form::renderMinuteOptions();
 									?>
 									?>
 								</select>
 								</select>
+								<select class="form-control w-auto d-inline-block" name="start_override_second" id="start-override-second">
+									<option value="">SS</option>
+									<?php
+									Form::renderSecondOptions();
+									?>
+								</select>
 							</div>
 							</div>
 
 
 						</div>
 						</div>
@@ -248,6 +254,12 @@ function render_card_list_group($details) {
 									Form::renderMinuteOptions();
 									Form::renderMinuteOptions();
 									?>
 									?>
 								</select>
 								</select>
+								<select class="form-control w-auto d-inline-block" name="end_override_second" id="end-override-second">
+									<option value="">SS</option>
+									<?php
+									Form::renderSecondOptions();
+									?>
+								</select>
 							</div>
 							</div>
 						</div>
 						</div>
 						<div class="row mb-1">
 						<div class="row mb-1">