Project

General

Profile

« Previous | Next » 

Revision e6f34d22

Added by Phil Davis almost 10 years ago

bootstrap usr\local\www\f minor changes

View differences:

src/usr/local/www/firewall_schedule.php
101 101
		}
102 102

  
103 103
		if ($is_schedule_referenced == true) {
104
			$savemsg = sprintf(gettext("Cannot delete Schedule.	 Currently in use by %s"), $referenced_by);
104
			$savemsg = sprintf(gettext("Cannot delete Schedule. Currently in use by %s"), $referenced_by);
105 105
		} else {
106 106
			unset($a_schedules[$_GET['id']]);
107 107
			write_config();
......
146 146
					<td>
147 147
<?php
148 148
	$first = true;
149
	foreach($schedule['timerange'] as $timerange) {
149
	foreach ($schedule['timerange'] as $timerange) {
150 150
		$tempFriendlyTime = "";
151 151
		$tempID = "";
152 152
		$firstprint = false;
......
164 164

  
165 165
			if ($timerange['month']) {
166 166
				$tempmontharray = explode(",", $timerange['month']);
167
				$tempdayarray = explode(",",$timerange['day']);
167
				$tempdayarray = explode(",", $timerange['day']);
168 168
				$arraycounter = 0;
169 169
				$firstDayFound = false;
170 170
				$firstPrint = false;
171
				foreach ($tempmontharray as $monthtmp){
171
				foreach ($tempmontharray as $monthtmp) {
172 172
					$month = $tempmontharray[$arraycounter];
173 173
					$day = $tempdayarray[$arraycounter];
174 174

  
......
182 182
					$nextDay = $tempdayarray[$arraycounter+1];
183 183
					$currentDay++;
184 184

  
185
					if (($currentDay != $nextDay) || ($tempmontharray[$arraycounter] != $tempmontharray[$arraycounter+1])){
185
					if (($currentDay != $nextDay) || ($tempmontharray[$arraycounter] != $tempmontharray[$arraycounter+1])) {
186 186
						if ($firstPrint)
187 187
							$dayFriendly .= "<br />";
188 188

  
......
208 208
				$nextDay = "";
209 209
				$counter = 0;
210 210

  
211
				foreach ($tempFriendlyDayArray as $day){
212
					if ($day != ""){
211
				foreach ($tempFriendlyDayArray as $day) {
212
					if ($day != "") {
213 213
						if (!$firstDayFound)
214 214
						{
215 215
							$firstDay = $tempFriendlyDayArray[$counter];
......
221 221
						$nextDay = $tempFriendlyDayArray[$counter+1];
222 222
						$currentDay++;
223 223

  
224
						if ($currentDay != $nextDay){
224
						if ($currentDay != $nextDay) {
225 225
							if ($firstprint)
226 226
								$dayFriendly .= "<br />";
227 227

  
......
269 269
	</div>
270 270
</div>
271 271

  
272
<?=($i > 0) ? gettext(CLOCK . ' Indicates that the scedule is currently active.'):''?>
272
<?=($i > 0) ? gettext(CLOCK . ' Indicates that the schedule is currently active.'):''?>
273 273

  
274 274
<nav class="action-buttons">
275 275
	<a href="firewall_schedule_edit.php" class="btn btn-sm btn-success"><?=gettext("Add new schedule")?></a>

Also available in: Unified diff