Passed
Pull Request — master (#1)
by Saepul
02:06
created
statistic/pdftable/font/vni_timesbi.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -6,18 +6,18 @@
 block discarded – undo
6 6
 $up = -100;
7 7
 $ut = 50;
8 8
 $cw = [
9
-    chr(0)  => 792, chr(1)=>792, chr(2)=>792, chr(3)=>792, chr(4)=>792, chr(5)=>792, chr(6)=>792, chr(7)=>792, chr(8)=>792, chr(9)=>792, chr(10)=>792, chr(11)=>792, chr(12)=>792, chr(13)=>792, chr(14)=>792, chr(15)=>792, chr(16)=>792, chr(17)=>792, chr(18)=>792, chr(19)=>792, chr(20)=>792, chr(21)=>792,
10
-    chr(22) => 792, chr(23)=>792, chr(24)=>792, chr(25)=>792, chr(26)=>792, chr(27)=>792, chr(28)=>792, chr(29)=>792, chr(30)=>792, chr(31)=>792, ' '=>250, '!'=>398, '"'=>566, '#'=>504, '$'=>504, '%'=>838, '&'=>786, '\''=>284, '('=>336, ')'=>336, '*'=>504, '+'=>576,
11
-    ','     => 252, '-'=>336, '.'=>252, '/'=>284, '0'=>504, '1'=>504, '2'=>504, '3'=>504, '4'=>504, '5'=>504, '6'=>504, '7'=>504, '8'=>504, '9'=>504, ':'=>336, ';'=>336, '<'=>576, '='=>576, '>'=>576, '?'=>504, '@'=>838, 'A'=>654,
12
-    'B'     => 670, 'C'=>670, 'D'=>724, 'E'=>670, 'F'=>670, 'G'=>724, 'H'=>786, 'I'=>398, 'J'=>504, 'K'=>670, 'L'=>618, 'M'=>902, 'N'=>724, 'O'=>724, 'P'=>618, 'Q'=>724, 'R'=>670, 'S'=>566, 'T'=>618, 'U'=>724, 'V'=>670, 'W'=>902,
13
-    'X'     => 670, 'Y'=>670, 'Z'=>618, '['=>336, '\\'=>284, ']'=>336, '^'=>576, '_'=>504, '`'=>336, 'a'=>504, 'b'=>504, 'c'=>452, 'd'=>504, 'e'=>429, 'f'=>336, 'g'=>504, 'h'=>566, 'i'=>284, 'j'=>284, 'k'=>504, 'l'=>284, 'm'=>786,
14
-    'n'     => 566, 'o'=>480, 'p'=>504, 'q'=>504, 'r'=>398, 's'=>398, 't'=>284, 'u'=>524, 'v'=>452, 'w'=>670, 'x'=>504, 'y'=>417, 'z'=>398, '{'=>356, '|'=>232, '}'=>356, '~'=>576, chr(127)=>792, chr(128)=>792, chr(129)=>792, chr(130)=>944, chr(131)=>508,
15
-    chr(132)=> 722, chr(133)=>670, chr(134)=>430, chr(135)=>430, chr(136)=>250, chr(137)=>1226, chr(138)=>40, chr(139)=>316, chr(140)=>40, chr(141)=>792, chr(142)=>792, chr(143)=>792, chr(144)=>792, chr(145)=>336, chr(146)=>336, chr(147)=>525, chr(148)=>648, chr(149)=>250, chr(150)=>576, chr(151)=>1100, chr(152)=>250, chr(153)=>980,
16
-    chr(154)=> 40, chr(155)=>316, chr(156)=>40, chr(157)=>792, chr(158)=>792, chr(159)=>670, chr(160)=>250, chr(161)=>389, chr(162)=>504, chr(163)=>504, chr(164)=>504, chr(165)=>504, chr(166)=>232, chr(167)=>504, chr(168)=>40, chr(169)=>754, chr(170)=>624, chr(171)=>504, chr(172)=>944, chr(173)=>336, chr(174)=>754, chr(175)=>336,
17
-    chr(176)=> 882, chr(177)=>576, chr(178)=>304, chr(179)=>304, chr(180)=>40, chr(181)=>588, chr(182)=>500, chr(183)=>40, chr(184)=>40, chr(185)=>304, chr(186)=>664, chr(187)=>504, chr(188)=>754, chr(189)=>754, chr(190)=>754, chr(191)=>500, chr(192)=>40, chr(193)=>40, chr(194)=>40, chr(195)=>40, chr(196)=>40, chr(197)=>40,
18
-    chr(198)=> 398, chr(199)=>670, chr(200)=>40, chr(201)=>40, chr(202)=>40, chr(203)=>40, chr(204)=>398, chr(205)=>398, chr(206)=>670, chr(207)=>40, chr(208)=>398, chr(209)=>724, chr(210)=>398, chr(211)=>398, chr(212)=>724, chr(213)=>40, chr(214)=>724, chr(215)=>576, chr(216)=>40, chr(217)=>40, chr(218)=>40, chr(219)=>40,
19
-    chr(220)=> 40, chr(221)=>398, chr(222)=>722, chr(223)=>500, chr(224)=>40, chr(225)=>40, chr(226)=>40, chr(227)=>40, chr(228)=>40, chr(229)=>40, chr(230)=>284, chr(231)=>452, chr(232)=>40, chr(233)=>40, chr(234)=>40, chr(235)=>40, chr(236)=>284, chr(237)=>284, chr(238)=>452, chr(239)=>40, chr(240)=>284, chr(241)=>504,
20
-    chr(242)=> 284, chr(243)=>284, chr(244)=>474, chr(245)=>40, chr(246)=>519, chr(247)=>576, chr(248)=>40, chr(249)=>40, chr(250)=>40, chr(251)=>40, chr(252)=>40, chr(253)=>284, chr(254)=>500, chr(255)=>452, ];
9
+	chr(0)  => 792, chr(1)=>792, chr(2)=>792, chr(3)=>792, chr(4)=>792, chr(5)=>792, chr(6)=>792, chr(7)=>792, chr(8)=>792, chr(9)=>792, chr(10)=>792, chr(11)=>792, chr(12)=>792, chr(13)=>792, chr(14)=>792, chr(15)=>792, chr(16)=>792, chr(17)=>792, chr(18)=>792, chr(19)=>792, chr(20)=>792, chr(21)=>792,
10
+	chr(22) => 792, chr(23)=>792, chr(24)=>792, chr(25)=>792, chr(26)=>792, chr(27)=>792, chr(28)=>792, chr(29)=>792, chr(30)=>792, chr(31)=>792, ' '=>250, '!'=>398, '"'=>566, '#'=>504, '$'=>504, '%'=>838, '&'=>786, '\''=>284, '('=>336, ')'=>336, '*'=>504, '+'=>576,
11
+	','     => 252, '-'=>336, '.'=>252, '/'=>284, '0'=>504, '1'=>504, '2'=>504, '3'=>504, '4'=>504, '5'=>504, '6'=>504, '7'=>504, '8'=>504, '9'=>504, ':'=>336, ';'=>336, '<'=>576, '='=>576, '>'=>576, '?'=>504, '@'=>838, 'A'=>654,
12
+	'B'     => 670, 'C'=>670, 'D'=>724, 'E'=>670, 'F'=>670, 'G'=>724, 'H'=>786, 'I'=>398, 'J'=>504, 'K'=>670, 'L'=>618, 'M'=>902, 'N'=>724, 'O'=>724, 'P'=>618, 'Q'=>724, 'R'=>670, 'S'=>566, 'T'=>618, 'U'=>724, 'V'=>670, 'W'=>902,
13
+	'X'     => 670, 'Y'=>670, 'Z'=>618, '['=>336, '\\'=>284, ']'=>336, '^'=>576, '_'=>504, '`'=>336, 'a'=>504, 'b'=>504, 'c'=>452, 'd'=>504, 'e'=>429, 'f'=>336, 'g'=>504, 'h'=>566, 'i'=>284, 'j'=>284, 'k'=>504, 'l'=>284, 'm'=>786,
14
+	'n'     => 566, 'o'=>480, 'p'=>504, 'q'=>504, 'r'=>398, 's'=>398, 't'=>284, 'u'=>524, 'v'=>452, 'w'=>670, 'x'=>504, 'y'=>417, 'z'=>398, '{'=>356, '|'=>232, '}'=>356, '~'=>576, chr(127)=>792, chr(128)=>792, chr(129)=>792, chr(130)=>944, chr(131)=>508,
15
+	chr(132)=> 722, chr(133)=>670, chr(134)=>430, chr(135)=>430, chr(136)=>250, chr(137)=>1226, chr(138)=>40, chr(139)=>316, chr(140)=>40, chr(141)=>792, chr(142)=>792, chr(143)=>792, chr(144)=>792, chr(145)=>336, chr(146)=>336, chr(147)=>525, chr(148)=>648, chr(149)=>250, chr(150)=>576, chr(151)=>1100, chr(152)=>250, chr(153)=>980,
16
+	chr(154)=> 40, chr(155)=>316, chr(156)=>40, chr(157)=>792, chr(158)=>792, chr(159)=>670, chr(160)=>250, chr(161)=>389, chr(162)=>504, chr(163)=>504, chr(164)=>504, chr(165)=>504, chr(166)=>232, chr(167)=>504, chr(168)=>40, chr(169)=>754, chr(170)=>624, chr(171)=>504, chr(172)=>944, chr(173)=>336, chr(174)=>754, chr(175)=>336,
17
+	chr(176)=> 882, chr(177)=>576, chr(178)=>304, chr(179)=>304, chr(180)=>40, chr(181)=>588, chr(182)=>500, chr(183)=>40, chr(184)=>40, chr(185)=>304, chr(186)=>664, chr(187)=>504, chr(188)=>754, chr(189)=>754, chr(190)=>754, chr(191)=>500, chr(192)=>40, chr(193)=>40, chr(194)=>40, chr(195)=>40, chr(196)=>40, chr(197)=>40,
18
+	chr(198)=> 398, chr(199)=>670, chr(200)=>40, chr(201)=>40, chr(202)=>40, chr(203)=>40, chr(204)=>398, chr(205)=>398, chr(206)=>670, chr(207)=>40, chr(208)=>398, chr(209)=>724, chr(210)=>398, chr(211)=>398, chr(212)=>724, chr(213)=>40, chr(214)=>724, chr(215)=>576, chr(216)=>40, chr(217)=>40, chr(218)=>40, chr(219)=>40,
19
+	chr(220)=> 40, chr(221)=>398, chr(222)=>722, chr(223)=>500, chr(224)=>40, chr(225)=>40, chr(226)=>40, chr(227)=>40, chr(228)=>40, chr(229)=>40, chr(230)=>284, chr(231)=>452, chr(232)=>40, chr(233)=>40, chr(234)=>40, chr(235)=>40, chr(236)=>284, chr(237)=>284, chr(238)=>452, chr(239)=>40, chr(240)=>284, chr(241)=>504,
20
+	chr(242)=> 284, chr(243)=>284, chr(244)=>474, chr(245)=>40, chr(246)=>519, chr(247)=>576, chr(248)=>40, chr(249)=>40, chr(250)=>40, chr(251)=>40, chr(252)=>40, chr(253)=>284, chr(254)=>500, chr(255)=>452, ];
21 21
 $enc = 'cp1252';
22 22
 $diff = '';
23 23
 $file = 'vni_timesbi.z';
Please login to merge, or discard this patch.
ticketedit.php 2 patches
Indentation   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -6,50 +6,50 @@  discard block
 block discarded – undo
6 6
 $id = $_GET['id'];
7 7
 $ticket = $tickets->ticket_data($id);
8 8
 if ($ticket['ticketstatus'] == 'Closed') {
9
-    header("Location: ticketread.php?id=$id");
10
-    exit();
9
+	header("Location: ticketread.php?id=$id");
10
+	exit();
11 11
 }
12 12
 if (isset($_POST['submit'])) {
13
-    $sla = $_POST['sla'];
14
-    $reporteddate = strtotime($_POST['reporteddate']);
15
-    $reportedby = $_POST['reportedby'];
16
-    $telp = $_POST['telp'];
17
-    $email = $_POST['email'];
18
-    $problemsummary = $_POST['problemsummary'];
19
-    $problemdetail = $_POST['problemdetail'];
20
-    $assignee = $_POST['idassignee'];
21
-    $type = $_POST['pro'];
22
-    $ticketstatus = $_POST['ticketstatus'];
23
-    $resolution = $_POST['resolution'];
24
-    $pendingby = $_POST['pendingby'];
25
-    $pendingdate = $_POST['pendingdate'];
26
-    $resolvedby = $_POST['resolvedby'];
27
-    $resolveddate = $_POST['resolveddate'];
28
-    $closedby = $_POST['closedby'];
29
-    $closeddate = $_POST['closeddate'];
30
-    $changes = 'Re-assigned the ticket.';
31
-    if ($ticketstatus == 'Pending') {
32
-        $pendingby = $user['username'];
33
-        $pendingdate = strtotime(now);
34
-        $changes = 'Change Status to Pending.';
35
-    }
36
-    if ($ticketstatus == 'Resolved') {
37
-        $resolvedby = $user['username'];
38
-        $resolveddate = strtotime(now);
39
-        $changes = 'Change Status to Resolved.';
40
-    }
41
-    if ($ticketstatus == 'Closed') {
42
-        $closedby = $user['username'];
43
-        $closeddate = strtotime(now);
44
-        $changes = 'Change Status to Closed.';
45
-    }
46
-    $tickets->update_ticket($id, $sla, $reporteddate, $reportedby, $telp, $email, $problemsummary, $problemdetail, $ticketstatus, $assignee, $assigneddate, $pendingby, $pendingdate, $resolution, $resolvedby, $resolveddate, $closedby, $closeddate);
47
-    $tickets->log_tickets($id, $sla, $reporteddate, $reportedby, $telp, $email, $problemsummary, $problemdetail, $ticketstatus, $assignee, $assigneddate, $pendingby, $pendingdate, $resolution, $resolvedby, $resolveddate, $closedby, $closeddate, $changes, $changeby);
48
-    if ($user['level'] == 'Admin') {
49
-        header('Location: ticketlist.php');
50
-    } else {
51
-        header('Location: myticketbyassignee.php');
52
-    }
13
+	$sla = $_POST['sla'];
14
+	$reporteddate = strtotime($_POST['reporteddate']);
15
+	$reportedby = $_POST['reportedby'];
16
+	$telp = $_POST['telp'];
17
+	$email = $_POST['email'];
18
+	$problemsummary = $_POST['problemsummary'];
19
+	$problemdetail = $_POST['problemdetail'];
20
+	$assignee = $_POST['idassignee'];
21
+	$type = $_POST['pro'];
22
+	$ticketstatus = $_POST['ticketstatus'];
23
+	$resolution = $_POST['resolution'];
24
+	$pendingby = $_POST['pendingby'];
25
+	$pendingdate = $_POST['pendingdate'];
26
+	$resolvedby = $_POST['resolvedby'];
27
+	$resolveddate = $_POST['resolveddate'];
28
+	$closedby = $_POST['closedby'];
29
+	$closeddate = $_POST['closeddate'];
30
+	$changes = 'Re-assigned the ticket.';
31
+	if ($ticketstatus == 'Pending') {
32
+		$pendingby = $user['username'];
33
+		$pendingdate = strtotime(now);
34
+		$changes = 'Change Status to Pending.';
35
+	}
36
+	if ($ticketstatus == 'Resolved') {
37
+		$resolvedby = $user['username'];
38
+		$resolveddate = strtotime(now);
39
+		$changes = 'Change Status to Resolved.';
40
+	}
41
+	if ($ticketstatus == 'Closed') {
42
+		$closedby = $user['username'];
43
+		$closeddate = strtotime(now);
44
+		$changes = 'Change Status to Closed.';
45
+	}
46
+	$tickets->update_ticket($id, $sla, $reporteddate, $reportedby, $telp, $email, $problemsummary, $problemdetail, $ticketstatus, $assignee, $assigneddate, $pendingby, $pendingdate, $resolution, $resolvedby, $resolveddate, $closedby, $closeddate);
47
+	$tickets->log_tickets($id, $sla, $reporteddate, $reportedby, $telp, $email, $problemsummary, $problemdetail, $ticketstatus, $assignee, $assigneddate, $pendingby, $pendingdate, $resolution, $resolvedby, $resolveddate, $closedby, $closeddate, $changes, $changeby);
48
+	if ($user['level'] == 'Admin') {
49
+		header('Location: ticketlist.php');
50
+	} else {
51
+		header('Location: myticketbyassignee.php');
52
+	}
53 53
 }
54 54
 ?>
55 55
 <!DOCTYPE HTML>
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
 			<td width="120"> Customer </td><td> : </td>
127 127
 			<td> 
128 128
 			<?php 
129
-                $customer = $customers->customer_data($ticket['idcustomer']);
130
-                echo $customer['namacustomer'];
131
-            ?> </td>
129
+				$customer = $customers->customer_data($ticket['idcustomer']);
130
+				echo $customer['namacustomer'];
131
+			?> </td>
132 132
 		</tr>
133 133
 		<tr>
134 134
 			<td> Customer Product</td><td> : </td>
@@ -138,16 +138,16 @@  discard block
 block discarded – undo
138 138
 			<td> Warranty Period</td><td> : </td>
139 139
 			<td> 
140 140
 			<?php 
141
-                $project = $projects->get_project_customer($customer['idcustomer']);
142
-                echo $project['warrantyperiod'].' Year';
143
-            ?> </td>
141
+				$project = $projects->get_project_customer($customer['idcustomer']);
142
+				echo $project['warrantyperiod'].' Year';
143
+			?> </td>
144 144
 		</tr>
145 145
 		<tr>
146 146
 			<td> Contract Period</td><td> : </td>
147 147
 			<td>
148 148
 			<?php
149
-                echo $project['contractperiod'].' Month';
150
-            ?>
149
+				echo $project['contractperiod'].' Month';
150
+			?>
151 151
 			</td>
152 152
 		</tr>
153 153
 	</table>-->
@@ -171,13 +171,13 @@  discard block
 block discarded – undo
171 171
 			<td> Urgency (SLA)*</td><td> : </td>
172 172
 			<td><select name="sla">
173 173
 				<?php 
174
-                    $sladata = $slas->sla_data($ticket['sla']);
175
-                    echo '<option value="'.$ticket['sla'].'" selected="selected">'.$sladata['namasla'].'</option>';
176
-                    $sla = $slas->get_sla();
177
-                    foreach ($sla as $slaval) {
178
-                        echo '<option value="'.$slaval['slaid'].'">'.$slaval['namasla'].'</option>';
179
-                    }
180
-                ?>
174
+					$sladata = $slas->sla_data($ticket['sla']);
175
+					echo '<option value="'.$ticket['sla'].'" selected="selected">'.$sladata['namasla'].'</option>';
176
+					$sla = $slas->get_sla();
177
+					foreach ($sla as $slaval) {
178
+						echo '<option value="'.$slaval['slaid'].'">'.$slaval['namasla'].'</option>';
179
+					}
180
+				?>
181 181
 				</select>
182 182
 			</td>
183 183
 		</tr>
@@ -185,10 +185,10 @@  discard block
 block discarded – undo
185 185
 			<td> Type</td><td> : </td>
186 186
 			<td>
187 187
 				<?php 
188
-                    //$pro = $slas->get_sla();
189
-                    echo $ticket['pro'];
188
+					//$pro = $slas->get_sla();
189
+					echo $ticket['pro'];
190 190
 
191
-                ?>
191
+				?>
192 192
 				
193 193
 			</td>
194 194
 		</tr>
@@ -216,13 +216,13 @@  discard block
 block discarded – undo
216 216
 			<td width="120"> Assign to* </td><td> : </td>
217 217
 			<td> <select name="idassignee">
218 218
 			<?php
219
-                $userassignee = $users->userdata($ticket['assignee']);
220
-                echo '<option value='.$ticket['assignee'].' selected="selected">'.$userassignee['fullname'].'</option>';
221
-                $listusers = $users->get_users();
222
-                foreach ($listusers as $user) {
223
-                    echo '<option value='.$user['id'].'>'.$user['fullname'].'</option>';
224
-                }
225
-            ?>
219
+				$userassignee = $users->userdata($ticket['assignee']);
220
+				echo '<option value='.$ticket['assignee'].' selected="selected">'.$userassignee['fullname'].'</option>';
221
+				$listusers = $users->get_users();
222
+				foreach ($listusers as $user) {
223
+					echo '<option value='.$user['id'].'>'.$user['fullname'].'</option>';
224
+				}
225
+			?>
226 226
 			</select> </td>
227 227
 		</tr>
228 228
 		<tr>
@@ -230,8 +230,8 @@  discard block
 block discarded – undo
230 230
 			<td> <input type="hidden" name="oldticketstatus" value="<?php echo $ticket['ticketstatus']; ?>"> 
231 231
 			<select name="ticketstatus">
232 232
 				<?php
233
-                    echo '<option value='.$ticket['ticketstatus'].' selected="selected">'.$ticket['ticketstatus'].'</option>';
234
-                ?>
233
+					echo '<option value='.$ticket['ticketstatus'].' selected="selected">'.$ticket['ticketstatus'].'</option>';
234
+				?>
235 235
 				<option value="Assigned"> Assigned </option>
236 236
 				<option value="Resolved"> Resolved </option>
237 237
 				<option value="Pending"> Pending </option>
@@ -269,14 +269,14 @@  discard block
 block discarded – undo
269 269
 	<table class="formtable">
270 270
 	<tr bgcolor="#e0e0e0" ><td width="150">Updated On</td><td width="150">Updated By</td><td>Description</td></tr>
271 271
 	<?php
272
-        $list_log_tickets = $tickets->get_audit_trail($id);
273
-        foreach ($list_log_tickets as $log_ticket) {
274
-            $changed_by = $users->userdata($log_ticket['changeby']);
275
-            echo '<tr><td>'.date('d-M-Y H:i:s', $log_ticket['changedate']).'</td>'.
276
-                 '<td>'.$changed_by['fullname'].'</td>'.
277
-                 '<td>'.$log_ticket['changes'].'</td></tr>';
278
-        }
279
-    ?>
272
+		$list_log_tickets = $tickets->get_audit_trail($id);
273
+		foreach ($list_log_tickets as $log_ticket) {
274
+			$changed_by = $users->userdata($log_ticket['changeby']);
275
+			echo '<tr><td>'.date('d-M-Y H:i:s', $log_ticket['changedate']).'</td>'.
276
+				 '<td>'.$changed_by['fullname'].'</td>'.
277
+				 '<td>'.$log_ticket['changes'].'</td></tr>';
278
+		}
279
+	?>
280 280
 	</table>
281 281
 	</fieldset>
282 282
 	<br/><br/>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     $tickets->log_tickets($id, $sla, $reporteddate, $reportedby, $telp, $email, $problemsummary, $problemdetail, $ticketstatus, $assignee, $assigneddate, $pendingby, $pendingdate, $resolution, $resolvedby, $resolveddate, $closedby, $closeddate, $changes, $changeby);
48 48
     if ($user['level'] == 'Admin') {
49 49
         header('Location: ticketlist.php');
50
-    } else {
50
+    }else {
51 51
         header('Location: myticketbyassignee.php');
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
content.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
 		<td><h1 class="content">Welcome to Helpdesk System</h1>
29 29
 		<ul>
30 30
 		<?php
31
-        echo "<li><p>Currently you have requested: $tickets_requested tickets. </p></li>";
32
-        echo "<li><p>Number of ticket that assigned to you: $tickets_assigned tickets.</p></li> ";
33
-        echo "<li><p>You have resolved $tickets_resolved tickets.</p></li>";
34
-        ?>
31
+		echo "<li><p>Currently you have requested: $tickets_requested tickets. </p></li>";
32
+		echo "<li><p>Number of ticket that assigned to you: $tickets_assigned tickets.</p></li> ";
33
+		echo "<li><p>You have resolved $tickets_resolved tickets.</p></li>";
34
+		?>
35 35
 		</ol><br/>
36 36
 		</td>
37 37
 	</tr>
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
 	</thead>
44 44
 	<tbody>
45 45
 	<?php 
46
-        $news = $hdnews->get_headline_news();
47
-        foreach ($news as $thenews) {
48
-            echo '<tr><td>'.date('d-M-Y', $thenews['newsdate']).'</td>'.
49
-                 '<td><a href=hdnewsread.php?id='.$thenews['id'].'>'.$thenews['title'].'</a></td></tr>';
50
-        }
51
-    ?>
46
+		$news = $hdnews->get_headline_news();
47
+		foreach ($news as $thenews) {
48
+			echo '<tr><td>'.date('d-M-Y', $thenews['newsdate']).'</td>'.
49
+				 '<td><a href=hdnewsread.php?id='.$thenews['id'].'>'.$thenews['title'].'</a></td></tr>';
50
+		}
51
+	?>
52 52
 	</tbody>
53 53
 	</table>
54 54
 	<p>&nbsp;</p>
Please login to merge, or discard this patch.
hdnews.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 $general->logged_out_protect();
4 4
 $user = $users->userdata($_SESSION['loginid']);
5 5
 if ($user['level'] != 'Admin') {
6
-    exit("You don't have permission to access this page!");
6
+	exit("You don't have permission to access this page!");
7 7
 }
8 8
 $news = $hdnews->get_news();
9 9
 ?>
@@ -57,15 +57,15 @@  discard block
 block discarded – undo
57 57
     </thead>
58 58
     <tbody>
59 59
 		<?php 
60
-        foreach ($news as $thenews) {
61
-            echo '<td>'.date('d-M-Y', $thenews['newsdate']).'</td>'.
62
-                 '<td>'.'<a href=hdnewsedit.php?id='.$thenews['id'].'>'.$thenews['title'].'</td>'.
63
-                 '<td>'.$thenews['createdby'].'</td>'.
64
-                 '<td>'.date('d-M-Y', $thenews['createdon']).'</td>'.
65
-                 '<td>'.date('d-M-Y', $thenews['expired']).'</td>'.
66
-                 '<td><a href=hdnewsdel.php?id='.$thenews['id'].' onclick="return delete_confirm();">del</a></td></tr>';
67
-        }
68
-        ?>
60
+		foreach ($news as $thenews) {
61
+			echo '<td>'.date('d-M-Y', $thenews['newsdate']).'</td>'.
62
+				 '<td>'.'<a href=hdnewsedit.php?id='.$thenews['id'].'>'.$thenews['title'].'</td>'.
63
+				 '<td>'.$thenews['createdby'].'</td>'.
64
+				 '<td>'.date('d-M-Y', $thenews['createdon']).'</td>'.
65
+				 '<td>'.date('d-M-Y', $thenews['expired']).'</td>'.
66
+				 '<td><a href=hdnewsdel.php?id='.$thenews['id'].' onclick="return delete_confirm();">del</a></td></tr>';
67
+		}
68
+		?>
69 69
     </tbody>
70 70
 	</table>
71 71
 	<p>&nbsp;</p>
Please login to merge, or discard this patch.