@@ -6,19 +6,19 @@ |
||
| 6 | 6 | <div class="padding-b-10 col-md-12 no-padding"> |
| 7 | 7 | |
| 8 | 8 | <?php |
| 9 | - $str = isset($_SERVER['HTTPS'])&& $_SERVER['HTTPS'] == 'on' ? 'https://' :'http://'; |
|
| 9 | + $str = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://'; |
|
| 10 | 10 | $this->db->select('*'); |
| 11 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
| 12 | - $this->db->or_where('domain','http://'.$_SERVER['HTTP_HOST']); |
|
| 13 | - $this->db->or_where('domain','https://'.$_SERVER['HTTP_HOST']) |
|
| 14 | - $result=$this->db->get('invoice_conf'); |
|
| 15 | - if($result->num_rows() > 0){ |
|
| 16 | - $result=$result->result_array(); |
|
| 11 | + $this->db->where('domain', $_SERVER['HTTP_HOST']); |
|
| 12 | + $this->db->or_where('domain', 'http://'.$_SERVER['HTTP_HOST']); |
|
| 13 | + $this->db->or_where('domain', 'https://'.$_SERVER['HTTP_HOST']) |
|
| 14 | + $result = $this->db->get('invoice_conf'); |
|
| 15 | + if ($result->num_rows() > 0) { |
|
| 16 | + $result = $result->result_array(); |
|
| 17 | 17 | $footer = $result[0]['website_footer']; |
| 18 | - }else{ |
|
| 18 | + } else { |
|
| 19 | 19 | $footer = ''; |
| 20 | 20 | } |
| 21 | - if($footer != ''){ ?> |
|
| 21 | + if ($footer != '') { ?> |
|
| 22 | 22 | <div style="margin-left:470px; "><?=$footer ?> |
| 23 | 23 | |
| 24 | 24 | <div style="" class="pull-left"> |