Code Duplication    Length = 8-8 lines in 12 locations

src/accounts/list.php 1 location

@@ 93-100 (lines=8) @@
90
    $xml .= '<list>'
91
          . '<hrow>';
92
93
    for ($i = 1; $i <= count($columns); $i++)
94
    {
95
        $smode = ($sort == $i ? ($i + count($columns)) : $i);
96
97
        $xml .= "<hcell url=\"list.php?sort={$smode}\">"
98
              . get_html_resource($columns[$i - 1])
99
              . '</hcell>';
100
    }
101
102
    $xml .= '</hrow>';
103

src/filters/list.php 1 location

@@ 150-157 (lines=8) @@
147
          . '<hrow>'
148
          . '<hcell checkboxes="true"/>';
149
150
    for ($i = 1; $i <= count($columns); $i++)
151
    {
152
        $smode = ($sort == $i ? ($i + count($columns)) : $i);
153
154
        $xml .= "<hcell url=\"list.php?sort={$smode}\">"
155
              . get_html_resource($columns[$i - 1])
156
              . '</hcell>';
157
    }
158
159
    $xml .= '</hrow>';
160

src/groups/list.php 1 location

@@ 84-91 (lines=8) @@
81
    $xml .= '<list>'
82
          . '<hrow>';
83
84
    for ($i = 1; $i <= count($columns); $i++)
85
    {
86
        $smode = ($sort == $i ? ($i + count($columns)) : $i);
87
88
        $xml .= "<hcell url=\"list.php?sort={$smode}\">"
89
              . get_html_resource($columns[$i - 1])
90
              . '</hcell>';
91
    }
92
93
    $xml .= '</hrow>';
94

src/projects/findex.php 1 location

@@ 117-124 (lines=8) @@
114
    $xml .= '<list>'
115
          . '<hrow>';
116
117
    for ($i = 1; $i <= count($columns); $i++)
118
    {
119
        $smode = ($sort == $i ? ($i + count($columns)) : $i);
120
121
        $xml .= "<hcell url=\"findex.php?id={$id}&amp;sort={$smode}\">"
122
              . get_html_resource($columns[$i - 1])
123
              . '</hcell>';
124
    }
125
126
    $xml .= '</hrow>';
127

src/projects/list.php 1 location

@@ 84-91 (lines=8) @@
81
    $xml .= '<list>'
82
          . '<hrow>';
83
84
    for ($i = 1; $i <= count($columns); $i++)
85
    {
86
        $smode = ($sort == $i ? ($i + count($columns)) : $i);
87
88
        $xml .= "<hcell url=\"list.php?sort={$smode}\">"
89
              . get_html_resource($columns[$i - 1])
90
              . '</hcell>';
91
    }
92
93
    $xml .= '</hrow>';
94

src/projects/sindex.php 1 location

@@ 119-126 (lines=8) @@
116
    $xml .= '<list>'
117
          . '<hrow>';
118
119
    for ($i = 1; $i <= count($columns); $i++)
120
    {
121
        $smode = ($sort == $i ? ($i + count($columns)) : $i);
122
123
        $xml .= "<hcell url=\"sindex.php?id={$id}&amp;sort={$smode}\">"
124
              . get_html_resource($columns[$i - 1])
125
              . '</hcell>';
126
    }
127
128
    $xml .= '</hrow>';
129

src/projects/tindex.php 1 location

@@ 105-112 (lines=8) @@
102
    $xml .= '<list>'
103
          . '<hrow>';
104
105
    for ($i = 1; $i <= count($columns); $i++)
106
    {
107
        $smode = ($sort == $i ? ($i + count($columns)) : $i);
108
109
        $xml .= "<hcell url=\"tindex.php?id={$id}&amp;sort={$smode}\">"
110
              . get_html_resource($columns[$i - 1])
111
              . '</hcell>';
112
    }
113
114
    $xml .= '</hrow>';
115

src/records/attachments.php 1 location

@@ 264-271 (lines=8) @@
261
          . '<hrow>'
262
          . '<hcell checkboxes="true"/>';
263
264
    for ($i = 1; $i <= count($columns); $i++)
265
    {
266
        $smode = ($sort == $i ? ($i + count($columns)) : $i);
267
268
        $xml .= "<hcell url=\"attachments.php?id={$id}&amp;sort={$smode}&amp;page={$page}\">"
269
              . get_html_resource($columns[$i - 1])
270
              . '</hcell>';
271
    }
272
273
    $xml .= '</hrow>';
274

src/records/history.php 1 location

@@ 91-98 (lines=8) @@
88
$xml = '<list>'
89
     . '<hrow>';
90
91
for ($i = 1; $i <= count($columns); $i++)
92
{
93
    $smode = ($sort == $i ? ($i + count($columns)) : $i);
94
95
    $xml .= "<hcell url=\"history.php?id={$id}&amp;sort={$smode}\">"
96
          . get_html_resource($columns[$i - 1])
97
          . '</hcell>';
98
}
99
100
$xml .= '</hrow>';
101

src/reminders/list.php 1 location

@@ 188-195 (lines=8) @@
185
          . '<hrow>'
186
          . '<hcell checkboxes="true"/>';
187
188
    for ($i = 1; $i <= count($columns); $i++)
189
    {
190
        $smode = ($sort == $i ? ($i + count($columns)) : $i);
191
192
        $xml .= "<hcell url=\"list.php?sort={$smode}\">"
193
              . get_html_resource($columns[$i - 1])
194
              . '</hcell>';
195
    }
196
197
    $xml .= '</hrow>';
198

src/subscriptions/list.php 1 location

@@ 156-163 (lines=8) @@
153
          . '<hrow>'
154
          . '<hcell checkboxes="true"/>';
155
156
    for ($i = 1; $i <= count($columns); $i++)
157
    {
158
        $smode = ($sort == $i ? ($i + count($columns)) : $i);
159
160
        $xml .= "<hcell url=\"list.php?sort={$smode}\">"
161
              . get_html_resource($columns[$i - 1])
162
              . '</hcell>';
163
    }
164
165
    $xml .= '</hrow>';
166

src/views/list.php 1 location

@@ 106-113 (lines=8) @@
103
          . '<hrow>'
104
          . '<hcell checkboxes="true"/>';
105
106
    for ($i = 1; $i <= count($columns); $i++)
107
    {
108
        $smode = ($sort == $i ? ($i + count($columns)) : $i);
109
110
        $xml .= "<hcell url=\"list.php?sort={$smode}\">"
111
              . get_html_resource($columns[$i - 1])
112
              . '</hcell>';
113
    }
114
115
    $xml .= '</hrow>';
116