@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * When %CKEditor is created with the editor() method, a HTML <textarea> element is created, |
76 | 76 | * it will be displayed to anyone with JavaScript disabled or with incompatible browser. |
77 | 77 | */ |
78 | - var $textareaAttributes = array( "rows" => 8, "cols" => 60 ); |
|
78 | + var $textareaAttributes = array("rows" => 8, "cols" => 60); |
|
79 | 79 | /** |
80 | 80 | * A string indicating the creation date of %CKEditor. |
81 | 81 | * Do not change it unless you want to force browsers to not use previously cached version of %CKEditor. |
@@ -136,9 +136,9 @@ discard block |
||
136 | 136 | { |
137 | 137 | $attr = ""; |
138 | 138 | foreach ($this->textareaAttributes as $key => $val) { |
139 | - $attr.= " " . $key . '="' . str_replace('"', '"', $val) . '"'; |
|
139 | + $attr .= " ".$key.'="'.str_replace('"', '"', $val).'"'; |
|
140 | 140 | } |
141 | - $out = "<textarea name=\"" . $name . "\"" . $attr . ">" . htmlspecialchars($value) . "</textarea>\n"; |
|
141 | + $out = "<textarea name=\"".$name."\"".$attr.">".htmlspecialchars($value)."</textarea>\n"; |
|
142 | 142 | if (!$this->initialized) { |
143 | 143 | $out .= $this->init(); |
144 | 144 | } |
@@ -239,11 +239,11 @@ discard block |
||
239 | 239 | $classDetection = ""; |
240 | 240 | $js .= "CKEDITOR.replaceAll( function(textarea, config) {\n"; |
241 | 241 | if (!empty($className)) { |
242 | - $js .= " var classRegex = new RegExp('(?:^| )' + '". $className ."' + '(?:$| )');\n"; |
|
242 | + $js .= " var classRegex = new RegExp('(?:^| )' + '".$className."' + '(?:$| )');\n"; |
|
243 | 243 | $js .= " if (!classRegex.test(textarea.className))\n"; |
244 | 244 | $js .= " return false;\n"; |
245 | 245 | } |
246 | - $js .= " CKEDITOR.tools.extend(config, ". $this->jsEncode($_config) .", true);"; |
|
246 | + $js .= " CKEDITOR.tools.extend(config, ".$this->jsEncode($_config).", true);"; |
|
247 | 247 | $js .= "} );"; |
248 | 248 | |
249 | 249 | } |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | } |
385 | 385 | |
386 | 386 | if (!empty($_events)) { |
387 | - foreach($_events as $eventName => $handlers) { |
|
387 | + foreach ($_events as $eventName => $handlers) { |
|
388 | 388 | if (empty($handlers)) { |
389 | 389 | continue; |
390 | 390 | } |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | } |
426 | 426 | // Return only new events |
427 | 427 | if (!in_array($code, $returnedEvents[$eventName])) { |
428 | - $out .= ($code ? "\n" : "") . "CKEDITOR.on('". $eventName ."', $code);"; |
|
428 | + $out .= ($code ? "\n" : "")."CKEDITOR.on('".$eventName."', $code);"; |
|
429 | 429 | $returnedEvents[$eventName][] = $code; |
430 | 430 | } |
431 | 431 | } |
@@ -457,19 +457,19 @@ discard block |
||
457 | 457 | $ckeditorPath = $this->ckeditorPath(); |
458 | 458 | |
459 | 459 | if (!empty($this->timestamp) && $this->timestamp != "%"."TIMESTAMP%") { |
460 | - $args = '?t=' . $this->timestamp; |
|
460 | + $args = '?t='.$this->timestamp; |
|
461 | 461 | } |
462 | 462 | |
463 | 463 | // Skip relative paths... |
464 | 464 | if (strpos($ckeditorPath, '..') !== 0) { |
465 | - $out .= $this->script("window.CKEDITOR_BASEPATH='". $ckeditorPath ."';"); |
|
465 | + $out .= $this->script("window.CKEDITOR_BASEPATH='".$ckeditorPath."';"); |
|
466 | 466 | } |
467 | 467 | |
468 | - $out .= "<script type=\"text/javascript\" src=\"" . $ckeditorPath . 'ckeditor.js' . $args . "\"></script>\n"; |
|
468 | + $out .= "<script type=\"text/javascript\" src=\"".$ckeditorPath.'ckeditor.js'.$args."\"></script>\n"; |
|
469 | 469 | |
470 | 470 | $extraCode = ""; |
471 | 471 | if ($this->timestamp != $this->_timestamp) { |
472 | - $extraCode .= ($extraCode ? "\n" : "") . "CKEDITOR.timestamp = '". $this->timestamp ."';"; |
|
472 | + $extraCode .= ($extraCode ? "\n" : "")."CKEDITOR.timestamp = '".$this->timestamp."';"; |
|
473 | 473 | } |
474 | 474 | if ($extraCode) { |
475 | 475 | $out .= $this->script($extraCode); |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | /** |
503 | 503 | * realpath - Returns canonicalized absolute pathname |
504 | 504 | */ |
505 | - $realPath = realpath( './' ) ; |
|
505 | + $realPath = realpath('./'); |
|
506 | 506 | } |
507 | 507 | |
508 | 508 | /** |
@@ -546,14 +546,14 @@ discard block |
||
546 | 546 | return str_replace(',', '.', $val); |
547 | 547 | } |
548 | 548 | if (is_array($val) || is_object($val)) { |
549 | - if (is_array($val) && (array_keys($val) === range(0,count($val)-1))) { |
|
550 | - return '[' . implode(',', array_map(array($this, 'jsEncode'), $val)) . ']'; |
|
549 | + if (is_array($val) && (array_keys($val) === range(0, count($val) - 1))) { |
|
550 | + return '['.implode(',', array_map(array($this, 'jsEncode'), $val)).']'; |
|
551 | 551 | } |
552 | 552 | $temp = array(); |
553 | - foreach ($val as $k => $v){ |
|
554 | - $temp[] = $this->jsEncode("{$k}") . ':' . $this->jsEncode($v); |
|
553 | + foreach ($val as $k => $v) { |
|
554 | + $temp[] = $this->jsEncode("{$k}").':'.$this->jsEncode($v); |
|
555 | 555 | } |
556 | - return '{' . implode(',', $temp) . '}'; |
|
556 | + return '{'.implode(',', $temp).'}'; |
|
557 | 557 | } |
558 | 558 | // String otherwise |
559 | 559 | if (strpos($val, '@@') === 0) |
@@ -561,6 +561,6 @@ discard block |
||
561 | 561 | if (strtoupper(substr($val, 0, 9)) == 'CKEDITOR.') |
562 | 562 | return $val; |
563 | 563 | |
564 | - return '"' . str_replace(array("\\", "/", "\n", "\t", "\r", "\x08", "\x0c", '"'), array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"'), $val) . '"'; |
|
564 | + return '"'.str_replace(array("\\", "/", "\n", "\t", "\r", "\x08", "\x0c", '"'), array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"'), $val).'"'; |
|
565 | 565 | } |
566 | 566 | } |
@@ -32,15 +32,15 @@ discard block |
||
32 | 32 | <td><?= $room['furniture'] ?></td> |
33 | 33 | <td> |
34 | 34 | <?= $room['staff_involved'] ?> |
35 | - <?php if (isset($room['staff_involved2'])) { echo '<br>'. $room['staff_involved2']; } ?> |
|
36 | - <?php if (isset($room['staff_involved3'])) { echo '<br>'. $room['staff_involved3']; } ?> |
|
37 | - <?php if (isset($room['staff_involved4'])) { echo '<br>'. $room['staff_involved4']; } ?> |
|
38 | - <?php if (isset($room['staff_involved5'])) { echo '<br>'. $room['staff_involved5']; } ?> |
|
39 | - <?php if (isset($room['staff_involved6'])) { echo '<br>'. $room['staff_involved6']; } ?> |
|
40 | - <?php if (isset($room['staff_involved7'])) { echo '<br>'. $room['staff_involved7']; } ?> |
|
41 | - <?php if (isset($room['staff_involved8'])) { echo '<br>'. $room['staff_involved8']; } ?> |
|
42 | - <?php if (isset($room['staff_involved9'])) { echo '<br>'. $room['staff_involved9']; } ?> |
|
43 | - <?php if (isset($room['staff_involved10'])) { echo '<br>'. $room['staff_involved10']; } ?> |
|
35 | + <?php if (isset($room['staff_involved2'])) { echo '<br>'.$room['staff_involved2']; } ?> |
|
36 | + <?php if (isset($room['staff_involved3'])) { echo '<br>'.$room['staff_involved3']; } ?> |
|
37 | + <?php if (isset($room['staff_involved4'])) { echo '<br>'.$room['staff_involved4']; } ?> |
|
38 | + <?php if (isset($room['staff_involved5'])) { echo '<br>'.$room['staff_involved5']; } ?> |
|
39 | + <?php if (isset($room['staff_involved6'])) { echo '<br>'.$room['staff_involved6']; } ?> |
|
40 | + <?php if (isset($room['staff_involved7'])) { echo '<br>'.$room['staff_involved7']; } ?> |
|
41 | + <?php if (isset($room['staff_involved8'])) { echo '<br>'.$room['staff_involved8']; } ?> |
|
42 | + <?php if (isset($room['staff_involved9'])) { echo '<br>'.$room['staff_involved9']; } ?> |
|
43 | + <?php if (isset($room['staff_involved10'])) { echo '<br>'.$room['staff_involved10']; } ?> |
|
44 | 44 | </td> |
45 | 45 | <td width="20%"><?= $room['reason'] ?></td> |
46 | 46 | <?php switch ($room['status']) { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | <?php break; |
65 | 65 | case 6: ?> |
66 | 66 | <td class='success'>Move Complete</td> |
67 | - <?php break;?> |
|
67 | + <?php break; ?> |
|
68 | 68 | <?php } ?> |
69 | 69 | <td> |
70 | 70 | <?php if (in_array('CN=Dashboard_Estates_Room_Move,OU=Dashboard_Group,OU=Intranet_Group,OU=Groups,DC=cant-col,DC=ac,DC=uk', $_SESSION['ldap']['groups'])) { ?> |
@@ -7,7 +7,7 @@ |
||
7 | 7 | $query = $this->db->get('users_ad'); |
8 | 8 | if ($query->num_rows() > 0) { |
9 | 9 | foreach ($query->result_array() as $row) { |
10 | - $row_set[] = htmlentities(stripslashes($row['first_name'] . ' ' . $row['last_name'] . ' (' . $row['username'] . ')')); //build an array |
|
10 | + $row_set[] = htmlentities(stripslashes($row['first_name'].' '.$row['last_name'].' ('.$row['username'].')')); //build an array |
|
11 | 11 | } |
12 | 12 | } |
13 | 13 | ?> |
@@ -7,7 +7,7 @@ |
||
7 | 7 | $query = $this->db->get('users_ad'); |
8 | 8 | if ($query->num_rows() > 0) { |
9 | 9 | foreach ($query->result_array() as $row) { |
10 | - $row_set[] = htmlentities(stripslashes($row['first_name'] . ' ' . $row['last_name']. ' (' . $row['username']. ')')); //build an array |
|
10 | + $row_set[] = htmlentities(stripslashes($row['first_name'].' '.$row['last_name'].' ('.$row['username'].')')); //build an array |
|
11 | 11 | } |
12 | 12 | } |
13 | 13 | ?> |
@@ -16,23 +16,23 @@ discard block |
||
16 | 16 | </div> |
17 | 17 | <div class='clear'></div> |
18 | 18 | </div> |
19 | - <div title="<?php echo $this->l('minimize_maximize');?>" class="ptogtitle"> |
|
19 | + <div title="<?php echo $this->l('minimize_maximize'); ?>" class="ptogtitle"> |
|
20 | 20 | <span></span> |
21 | 21 | </div> |
22 | 22 | </div> |
23 | 23 | <div id='main-table-box'> |
24 | - <?php echo form_open( $update_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
24 | + <?php echo form_open($update_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
25 | 25 | <div class='form-div'> |
26 | 26 | <?php |
27 | 27 | $counter = 0; |
28 | - foreach($fields as $field) |
|
28 | + foreach ($fields as $field) |
|
29 | 29 | { |
30 | 30 | $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
31 | 31 | $counter++; |
32 | 32 | ?> |
33 | 33 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
34 | 34 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
35 | - <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
|
35 | + <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required) ? "<span class='required'>*</span> " : ""?> : |
|
36 | 36 | </div> |
37 | 37 | <div class='form-input-box' id="<?php echo $field->field_name; ?>_input_box"> |
38 | 38 | <?php echo $input_fields[$field->field_name]->input?> |
@@ -40,10 +40,10 @@ discard block |
||
40 | 40 | <div class='clear'></div> |
41 | 41 | </div> |
42 | 42 | <?php }?> |
43 | - <?php if(!empty($hidden_fields)){?> |
|
43 | + <?php if (!empty($hidden_fields)) {?> |
|
44 | 44 | <!-- Start of hidden inputs --> |
45 | 45 | <?php |
46 | - foreach($hidden_fields as $hidden_field){ |
|
46 | + foreach ($hidden_fields as $hidden_field) { |
|
47 | 47 | echo $hidden_field->input; |
48 | 48 | } |
49 | 49 | ?> |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | <div class='form-button-box'> |
58 | 58 | <input id="form-button-save" type='submit' value='<?php echo $this->l('form_update_changes'); ?>' class="btn btn-large"/> |
59 | 59 | </div> |
60 | -<?php if(!$this->unset_back_to_list) { ?> |
|
60 | +<?php if (!$this->unset_back_to_list) { ?> |
|
61 | 61 | <div class='form-button-box'> |
62 | 62 | <input type='button' value='<?php echo $this->l('form_update_and_go_back'); ?>' id="save-and-go-back-button" class="btn btn-large"/> |
63 | 63 | </div> |
@@ -15,23 +15,23 @@ discard block |
||
15 | 15 | </div> |
16 | 16 | <div class='clear'></div> |
17 | 17 | </div> |
18 | - <div title="<?php echo $this->l('minimize_maximize');?>" class="ptogtitle"> |
|
18 | + <div title="<?php echo $this->l('minimize_maximize'); ?>" class="ptogtitle"> |
|
19 | 19 | <span></span> |
20 | 20 | </div> |
21 | 21 | </div> |
22 | 22 | <div id='main-table-box'> |
23 | - <?php echo form_open( $read_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
23 | + <?php echo form_open($read_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
24 | 24 | <div class='form-div'> |
25 | 25 | <?php |
26 | 26 | $counter = 0; |
27 | - foreach($fields as $field) |
|
27 | + foreach ($fields as $field) |
|
28 | 28 | { |
29 | 29 | $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
30 | 30 | $counter++; |
31 | 31 | ?> |
32 | 32 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
33 | 33 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
34 | - <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
|
34 | + <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required) ? "<span class='required'>*</span> " : ""?> : |
|
35 | 35 | </div> |
36 | 36 | <div class='form-input-box' id="<?php echo $field->field_name; ?>_input_box"> |
37 | 37 | <?php echo $input_fields[$field->field_name]->input?> |
@@ -39,10 +39,10 @@ discard block |
||
39 | 39 | <div class='clear'></div> |
40 | 40 | </div> |
41 | 41 | <?php }?> |
42 | - <?php if(!empty($hidden_fields)){?> |
|
42 | + <?php if (!empty($hidden_fields)) {?> |
|
43 | 43 | <!-- Start of hidden inputs --> |
44 | 44 | <?php |
45 | - foreach($hidden_fields as $hidden_field){ |
|
45 | + foreach ($hidden_fields as $hidden_field) { |
|
46 | 46 | echo $hidden_field->input; |
47 | 47 | } |
48 | 48 | ?> |
@@ -16,23 +16,23 @@ discard block |
||
16 | 16 | </div> |
17 | 17 | <div class='clear'></div> |
18 | 18 | </div> |
19 | - <div title="<?php echo $this->l('minimize_maximize');?>" class="ptogtitle"> |
|
19 | + <div title="<?php echo $this->l('minimize_maximize'); ?>" class="ptogtitle"> |
|
20 | 20 | <span></span> |
21 | 21 | </div> |
22 | 22 | </div> |
23 | 23 | <div id='main-table-box'> |
24 | - <?php echo form_open( $insert_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
24 | + <?php echo form_open($insert_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
25 | 25 | <div class='form-div'> |
26 | 26 | <?php |
27 | 27 | $counter = 0; |
28 | - foreach($fields as $field) |
|
28 | + foreach ($fields as $field) |
|
29 | 29 | { |
30 | 30 | $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
31 | 31 | $counter++; |
32 | 32 | ?> |
33 | 33 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
34 | 34 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
35 | - <?php echo $input_fields[$field->field_name]->display_as; ?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""; ?> : |
|
35 | + <?php echo $input_fields[$field->field_name]->display_as; ?><?php echo ($input_fields[$field->field_name]->required) ? "<span class='required'>*</span> " : ""; ?> : |
|
36 | 36 | </div> |
37 | 37 | <div class='form-input-box' id="<?php echo $field->field_name; ?>_input_box"> |
38 | 38 | <?php echo $input_fields[$field->field_name]->input?> |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | <?php }?> |
43 | 43 | <!-- Start of hidden inputs --> |
44 | 44 | <?php |
45 | - foreach($hidden_fields as $hidden_field){ |
|
45 | + foreach ($hidden_fields as $hidden_field) { |
|
46 | 46 | echo $hidden_field->input; |
47 | 47 | } |
48 | 48 | ?> |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | <div class='form-button-box'> |
57 | 57 | <input id="form-button-save" type='submit' value='<?php echo $this->l('form_save'); ?>' class="btn btn-large"/> |
58 | 58 | </div> |
59 | -<?php if(!$this->unset_back_to_list) { ?> |
|
59 | +<?php if (!$this->unset_back_to_list) { ?> |
|
60 | 60 | <div class='form-button-box'> |
61 | 61 | <input type='button' value='<?php echo $this->l('form_save_and_go_back'); ?>' id="save-and-go-back-button" class="btn btn-large"/> |
62 | 62 | </div> |