Passed
Push — master ( b6c858...3ff449 )
by Michael
61:14 queued 25:43
created

createDir()   F

Complexity

Conditions 14
Paths 1125

Size

Total Lines 51
Code Lines 33

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 14
eloc 33
nc 1125
nop 0
dl 0
loc 51
rs 2.1
c 0
b 0
f 0

How to fix   Long Method    Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
/*
3
 You may not change or alter any portion of this comment or credits
4
 of supporting developers from this source code or any supporting source code
5
 which is considered copyrighted (c) material of the original comment or credit authors.
6
7
 This program is distributed in the hope that it will be useful,
8
 but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
 */
11
12
/**
13
 * @copyright       The XUUPS Project http://sourceforge.net/projects/xuups/
14
 * @license         GNU GPL V2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
15
 * @package         Publisher
16
 * @since           1.0
17
 * @author          trabis <[email protected]>
18
 * @author          The SmartFactory <www.smartfactory.ca>
19
 * @version         $Id:main.php  335 2011-12-05 20:24:01Z [email protected] $
20
 */
21
use XoopsModules\Publisher;
22
23
require_once __DIR__ . '/admin_header.php';
24
25
$xoops = Xoops::getInstance();
26
27
$itemid = isset($_POST['itemid']) ? (int)$_POST['itemid'] : 0;
28
29
$pick = isset($_GET['pick']) ? (int)$_GET['pick'] : 0;
30
$pick = isset($_POST['pick']) ? (int)$_POST['pick'] : $pick;
31
32
$statussel = isset($_GET['statussel']) ? (int)$_GET['statussel'] : 0;
33
$statussel = isset($_POST['statussel']) ? (int)$_POST['statussel'] : $statussel;
34
35
$sortsel = $_GET['sortsel'] ?? 'itemid';
36
$sortsel = $_POST['sortsel'] ?? $sortsel;
37
38
$ordersel = $_GET['ordersel'] ?? 'DESC';
39
$ordersel = $_POST['ordersel'] ?? $ordersel;
40
41
$module_id = $helper->getModule()->mid();
42
$gpermHandler = $xoops->getHandlerGroupPermission();
43
$groups = $xoops->getUserGroups();
44
45
// Code for the page
46
47
$startentry = isset($_GET['startentry']) ? (int)$_GET['startentry'] : 0;
48
49
Publisher\Utils::cpHeader();
50
//publisher_adminMenu(0, _AM_PUBLISHER_INDEX);
51
52
// Total ITEMs -- includes everything on the table
53
$totalitems = $helper->getItemHandler()->getItemsCount();
54
55
// Total categories
56
$totalcategories = $helper->getCategoryHandler()->getCategoriesCount(-1);
57
58
// Total submitted ITEMs
59
$totalsubmitted = $helper->getItemHandler()->getItemsCount(-1, [_PUBLISHER_STATUS_SUBMITTED]);
60
61
// Total published ITEMs
62
$totalpublished = $helper->getItemHandler()->getItemsCount(-1, [_PUBLISHER_STATUS_PUBLISHED]);
63
64
// Total offline ITEMs
65
$totaloffline = $helper->getItemHandler()->getItemsCount(-1, [_PUBLISHER_STATUS_OFFLINE]);
66
67
// Total rejected
68
$totalrejected = $helper->getItemHandler()->getItemsCount(-1, [_PUBLISHER_STATUS_REJECTED]);
69
70
// Check Path Configuration
71
if ((Publisher\Utils::getPathStatus('root', true) < 0)
72
    || (Publisher\Utils::getPathStatus('images', true) < 0)
73
    || (Publisher\Utils::getPathStatus('images/category', true) < 0)
74
    || (Publisher\Utils::getPathStatus('images/item', true) < 0)
75
    || (Publisher\Utils::getPathStatus('content', true) < 0)) {
76
    createDir();
77
}
78
79
Publisher\Utils::openCollapsableBar('inventorytable', 'inventoryicon', _AM_PUBLISHER_INVENTORY);
80
echo '<br>';
81
echo "<table width='100%' class='outer' cellspacing='1' cellpadding='3' border='0' ><tr>";
82
echo "<td class='head'>" . _AM_PUBLISHER_TOTALCAT . "</td><td align='center' class='even'>" . $totalcategories . '</td>';
83
echo "<td class='head'>" . _AM_PUBLISHER_TOTALSUBMITTED . "</td><td align='center' class='even'>" . $totalsubmitted . '</td>';
84
echo "<td class='head'>" . _AM_PUBLISHER_TOTALPUBLISHED . "</td><td align='center' class='even'>" . $totalpublished . '</td>';
85
echo "<td class='head'>" . _AM_PUBLISHER_TOTAL_OFFLINE . "</td><td align='center' class='even'>" . $totaloffline . '</td>';
86
echo '</tr></table>';
87
echo '<br>';
88
89
echo '<form><div style="margin-bottom: 12px;">';
90
echo "<input type='button' name='button' onclick=\"location='category.php?op=mod'\" value='" . _AM_PUBLISHER_CATEGORY_CREATE . "'>&nbsp;&nbsp;";
91
echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='" . _AM_PUBLISHER_CREATEITEM . "'>&nbsp;&nbsp;";
92
echo '</div></form>';
93
94
Publisher\Utils::closeCollapsableBar('inventorytable', 'inventoryicon');
95
96
// Construction of lower table
97
Publisher\Utils::openCollapsableBar('allitemstable', 'allitemsicon', _AM_PUBLISHER_ALLITEMS, _AM_PUBLISHER_ALLITEMSMSG);
98
99
$showingtxt = '';
100
$selectedtxt = '';
101
$cond = '';
102
$selectedtxt0 = '';
103
$selectedtxt1 = '';
104
$selectedtxt2 = '';
105
$selectedtxt3 = '';
106
$selectedtxt4 = '';
107
108
$sorttxttitle = '';
109
$sorttxtcreated = '';
110
$sorttxtweight = '';
111
$sorttxtitemid = '';
112
113
$ordertxtasc = '';
114
$ordertxtdesc = '';
115
116
switch ($sortsel) {
117
    case 'title':
118
        $sorttxttitle = "selected='selected'";
119
        break;
120
    case 'datesub':
121
        $sorttxtcreated = "selected='selected'";
122
        break;
123
    case 'weight':
124
        $sorttxtweight = "selected='selected'";
125
        break;
126
    default:
127
        $sorttxtitemid = "selected='selected'";
128
        break;
129
}
130
131
switch ($ordersel) {
132
    case 'ASC':
133
        $ordertxtasc = "selected='selected'";
134
        break;
135
    default:
136
        $ordertxtdesc = "selected='selected'";
137
        break;
138
}
139
140
switch ($statussel) {
141
    case _PUBLISHER_STATUS_ALL:
142
        $selectedtxt0 = "selected='selected'";
143
        $caption = _AM_PUBLISHER_ALL;
144
        $cond = '';
145
        $status_explaination = _AM_PUBLISHER_ALL_EXP;
146
        break;
147
    case _PUBLISHER_STATUS_SUBMITTED:
148
        $selectedtxt1 = "selected='selected'";
149
        $caption = _CO_PUBLISHER_SUBMITTED;
150
        $cond = ' WHERE status = ' . _PUBLISHER_STATUS_SUBMITTED . ' ';
151
        $status_explaination = _AM_PUBLISHER_SUBMITTED_EXP;
152
        break;
153
    case _PUBLISHER_STATUS_PUBLISHED:
154
        $selectedtxt2 = "selected='selected'";
155
        $caption = _CO_PUBLISHER_PUBLISHED;
156
        $cond = ' WHERE status = ' . _PUBLISHER_STATUS_PUBLISHED . ' ';
157
        $status_explaination = _AM_PUBLISHER_PUBLISHED_EXP;
158
        break;
159
    case _PUBLISHER_STATUS_OFFLINE:
160
        $selectedtxt3 = "selected='selected'";
161
        $caption = _CO_PUBLISHER_OFFLINE;
162
        $cond = ' WHERE status = ' . _PUBLISHER_STATUS_OFFLINE . ' ';
163
        $status_explaination = _AM_PUBLISHER_OFFLINE_EXP;
164
        break;
165
    case _PUBLISHER_STATUS_REJECTED:
166
        $selectedtxt4 = "selected='selected'";
167
        $caption = _CO_PUBLISHER_REJECTED;
168
        $cond = ' WHERE status = ' . _PUBLISHER_STATUS_REJECTED . ' ';
169
        $status_explaination = _AM_PUBLISHER_REJECTED_ITEM_EXP;
170
        break;
171
}
172
173
/* -- Code to show selected terms -- */
174
echo "<form name='pick' id='pick' action='" . $_SERVER['PHP_SELF'] . "' method='POST' style='margin: 0;'>";
175
176
echo "
177
    <table width='100%' cellspacing='1' cellpadding='2' border='0' style='border-left: 1px solid #c0c0c0; border-top: 1px solid #c0c0c0; border-right: 1px solid #c0c0c0;'>
178
        <tr>
179
            <td><span style='font-weight: bold; font-variant: small-caps;'>" . _AM_PUBLISHER_SHOWING . ' ' . $caption . "</span></td>
180
            <td align='right'>" . _AM_PUBLISHER_SELECT_SORT . "
181
                <select name='sortsel' onchange='submit()'>
182
                    <option value='itemid' $sorttxtitemid>" . _AM_PUBLISHER_ID . "</option>
183
                    <option value='title' $sorttxttitle>" . _AM_PUBLISHER_TITLE . "</option>
184
                    <option value='datesub' $sorttxtcreated>" . _AM_PUBLISHER_CREATED . "</option>
185
                    <option value='weight' $sorttxtweight>" . _CO_PUBLISHER_WEIGHT . "</option>
186
                </select>
187
                <select name='ordersel' onchange='submit()'>
188
                    <option value='ASC' $ordertxtasc>" . _AM_PUBLISHER_ASC . "</option>
189
                    <option value='DESC' $ordertxtdesc>" . _AM_PUBLISHER_DESC . '</option>
190
                </select>
191
            ' . _AM_PUBLISHER_SELECT_STATUS . " :
192
                <select name='statussel' onchange='submit()'>
193
                    <option value='0' $selectedtxt0>" . _AM_PUBLISHER_ALL . " [$totalitems]</option>
194
                    <option value='1' $selectedtxt1>" . _CO_PUBLISHER_SUBMITTED . " [$totalsubmitted]</option>
195
                    <option value='2' $selectedtxt2>" . _CO_PUBLISHER_PUBLISHED . " [$totalpublished]</option>
196
                    <option value='3' $selectedtxt3>" . _CO_PUBLISHER_OFFLINE . " [$totaloffline]</option>
197
                    <option value='4' $selectedtxt4>" . _CO_PUBLISHER_REJECTED . " [$totalrejected]</option>
198
                </select>
199
            </td>
200
        </tr>
201
    </table>
202
    </form>";
203
204
// Get number of entries in the selected state
205
$statusSelected = (0 == $statussel) ? -1 : $statussel;
206
207
$numrows = $helper->getItemHandler()->getItemsCount(-1, $statusSelected);
208
209
// creating the Q&As objects
210
$itemsObj = $helper->getItemHandler()->getItems($helper->getConfig('idxcat_perpage'), $startentry, $statusSelected, -1, $sortsel, $ordersel);
211
212
$totalItemsOnPage = count($itemsObj);
213
214
buildTable();
215
216
if ($numrows > 0) {
217
    for ($i = 0; $i < $totalItemsOnPage; ++$i) {
218
        // Creating the category object to which this item is linked
219
        $categoryObj = $itemsObj[$i]->category();
220
        $approve = '';
221
222
        switch ($itemsObj[$i]->getVar('status')) {
223
            case _PUBLISHER_STATUS_SUBMITTED:
224
                $statustxt = _CO_PUBLISHER_SUBMITTED;
225
                $approve = "<a href='item.php?op=mod&itemid="
226
                             . $itemsObj[$i]->getVar('itemid')
227
                             . "'><img src='"
228
                             . XoopsBaseConfig::get('url')
229
                             . '/modules/'
230
                             . $helper->getModule()->dirname()
231
                             . "/images/links/approve.gif' title='"
232
                             . _AM_PUBLISHER_SUBMISSION_MODERATE
233
                             . "' alt='"
234
                             . _AM_PUBLISHER_SUBMISSION_MODERATE
235
                             . "'></a>&nbsp;";
236
                $clone = '';
237
                $delete = "<a href='item.php?op=del&itemid="
238
                             . $itemsObj[$i]->getVar('itemid')
239
                             . "'><img src='"
240
                             . XoopsBaseConfig::get('url')
241
                             . '/modules/'
242
                             . $helper->getModule()->dirname()
243
                             . "/images/links/delete.png' title='"
244
                             . _AM_PUBLISHER_DELETEITEM
245
                             . "' alt='"
246
                             . _AM_PUBLISHER_DELETEITEM
247
                             . "'></a>";
248
                $modify = '';
249
                break;
250
            case _PUBLISHER_STATUS_PUBLISHED:
251
                $statustxt = _CO_PUBLISHER_PUBLISHED;
252
                $approve = '';
253
                $clone = "<a href='item.php?op=clone&itemid="
254
                             . $itemsObj[$i]->getVar('itemid')
255
                             . "'><img src='"
256
                             . XoopsBaseConfig::get('url')
257
                             . '/modules/'
258
                             . $helper->getModule()->dirname()
259
                             . "/images/links/clone.gif' title='"
260
                             . _AM_PUBLISHER_CLONE_ITEM
261
                             . "' alt='"
262
                             . _AM_PUBLISHER_CLONE_ITEM
263
                             . "'></a>&nbsp;";
264
                $modify = "<a href='item.php?op=mod&itemid="
265
                             . $itemsObj[$i]->getVar('itemid')
266
                             . "'><img src='"
267
                             . XoopsBaseConfig::get('url')
268
                             . '/modules/'
269
                             . $helper->getModule()->dirname()
270
                             . "/images/links/edit.gif' title='"
271
                             . _AM_PUBLISHER_ITEM_EDIT
272
                             . "' alt='"
273
                             . _AM_PUBLISHER_ITEM_EDIT
274
                             . "'></a>&nbsp;";
275
                $delete = "<a href='item.php?op=del&itemid="
276
                             . $itemsObj[$i]->getVar('itemid')
277
                             . "'><img src='"
278
                             . XoopsBaseConfig::get('url')
279
                             . '/modules/'
280
                             . $helper->getModule()->dirname()
281
                             . "/images/links/delete.png' title='"
282
                             . _AM_PUBLISHER_DELETEITEM
283
                             . "' alt='"
284
                             . _AM_PUBLISHER_DELETEITEM
285
                             . "'></a>";
286
                break;
287
            case _PUBLISHER_STATUS_OFFLINE:
288
                $statustxt = _CO_PUBLISHER_OFFLINE;
289
                $approve = '';
290
                $clone = "<a href='item.php?op=clone&itemid="
291
                             . $itemsObj[$i]->getVar('itemid')
292
                             . "'><img src='"
293
                             . XoopsBaseConfig::get('url')
294
                             . '/modules/'
295
                             . $helper->getModule()->dirname()
296
                             . "/images/links/clone.gif' title='"
297
                             . _AM_PUBLISHER_CLONE_ITEM
298
                             . "' alt='"
299
                             . _AM_PUBLISHER_CLONE_ITEM
300
                             . "'></a>&nbsp;";
301
                $modify = "<a href='item.php?op=mod&itemid="
302
                             . $itemsObj[$i]->getVar('itemid')
303
                             . "'><img src='"
304
                             . XoopsBaseConfig::get('url')
305
                             . '/modules/'
306
                             . $helper->getModule()->dirname()
307
                             . "/images/links/edit.gif' title='"
308
                             . _AM_PUBLISHER_ITEM_EDIT
309
                             . "' alt='"
310
                             . _AM_PUBLISHER_ITEM_EDIT
311
                             . "'></a>&nbsp;";
312
                $delete = "<a href='item.php?op=del&itemid="
313
                             . $itemsObj[$i]->getVar('itemid')
314
                             . "'><img src='"
315
                             . XoopsBaseConfig::get('url')
316
                             . '/modules/'
317
                             . $helper->getModule()->dirname()
318
                             . "/images/links/delete.png' title='"
319
                             . _AM_PUBLISHER_DELETEITEM
320
                             . "' alt='"
321
                             . _AM_PUBLISHER_DELETEITEM
322
                             . "'></a>";
323
                break;
324
            case _PUBLISHER_STATUS_REJECTED:
325
                $statustxt = _CO_PUBLISHER_REJECTED;
326
                $approve = '';
327
                $clone = "<a href='item.php?op=clone&itemid="
328
                             . $itemsObj[$i]->getVar('itemid')
329
                             . "'><img src='"
330
                             . XoopsBaseConfig::get('url')
331
                             . '/modules/'
332
                             . $helper->getModule()->dirname()
333
                             . "/images/links/clone.gif' title='"
334
                             . _AM_PUBLISHER_CLONE_ITEM
335
                             . "' alt='"
336
                             . _AM_PUBLISHER_CLONE_ITEM
337
                             . "'></a>&nbsp;";
338
                $modify = "<a href='item.php?op=mod&itemid="
339
                             . $itemsObj[$i]->getVar('itemid')
340
                             . "'><img src='"
341
                             . XoopsBaseConfig::get('url')
342
                             . '/modules/'
343
                             . $helper->getModule()->dirname()
344
                             . "/images/links/edit.gif' title='"
345
                             . _AM_PUBLISHER_REJECTED_EDIT
346
                             . "' alt='"
347
                             . _AM_PUBLISHER_REJECTED_EDIT
348
                             . "'></a>&nbsp;";
349
                $delete = "<a href='item.php?op=del&itemid="
350
                             . $itemsObj[$i]->getVar('itemid')
351
                             . "'><img src='"
352
                             . XoopsBaseConfig::get('url')
353
                             . '/modules/'
354
                             . $helper->getModule()->dirname()
355
                             . "/images/links/delete.png' title='"
356
                             . _AM_PUBLISHER_DELETEITEM
357
                             . "' alt='"
358
                             . _AM_PUBLISHER_DELETEITEM
359
                             . "'></a>";
360
                break;
361
            case 'default':
362
            default:
363
                $statustxt = _AM_PUBLISHER_STATUS0;
364
                $approve = '';
365
                $clone = '';
366
                $modify = "<a href='item.php?op=mod&itemid="
367
                             . $itemsObj[$i]->getVar('itemid')
368
                             . "'><img src='"
369
                             . XoopsBaseConfig::get('url')
370
                             . '/modules/'
371
                             . $helper->getModule()->dirname()
372
                             . "/images/links/edit.gif' title='"
373
                             . _AM_PUBLISHER_REJECTED_EDIT
374
                             . "' alt='"
375
                             . _AM_PUBLISHER_REJECTED_EDIT
376
                             . "'></a>&nbsp;";
377
                $delete = "<a href='item.php?op=del&itemid="
378
                             . $itemsObj[$i]->getVar('itemid')
379
                             . "'><img src='"
380
                             . XoopsBaseConfig::get('url')
381
                             . '/modules/'
382
                             . $helper->getModule()->dirname()
383
                             . "/images/links/delete.png' title='"
384
                             . _AM_PUBLISHER_DELETEITEM
385
                             . "' alt='"
386
                             . _AM_PUBLISHER_DELETEITEM
387
                             . "'></a>";
388
                break;
389
        }
390
391
        echo '<tr>';
392
        echo "<td class='head' align='center'>" . $itemsObj[$i]->getVar('itemid') . '</td>';
393
        echo "<td class='even' align='left'>" . $categoryObj->getCategoryLink() . '</td>';
394
        echo "<td class='even' align='left'>" . $itemsObj[$i]->getItemLink() . '</td>';
395
        echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub() . '</td>';
396
        echo "<td class='even' align='center'>" . $statustxt . '</td>';
397
        echo "<td class='even' align='center'> " . $approve . $clone . $modify . $delete . '</td>';
398
        echo '</tr>';
399
    }
400
} else {
401
    // that is, $numrows = 0, there's no entries yet
402
    echo '<tr>';
403
    echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMSSEL . '</td>';
404
    echo '</tr>';
405
}
406
echo "</table>\n";
407
echo "<span style=\"color: #567; margin: 3px 0 18px 0; font-size: small; display: block; \">$status_explaination</span>";
408
$pagenav = new XoopsPageNav($numrows, $helper->getConfig('idxcat_perpage'), $startentry, 'startentry', "statussel=$statussel&amp;sortsel=$sortsel&amp;ordersel=$ordersel");
409
410
if (1 == $helper->getConfig('format_image_nav')) {
411
    echo '<div style="text-align:right; background-color: #ffffff; margin: 10px 0;">' . $pagenav->renderImageNav() . '</div>';
412
} else {
413
    echo '<div style="text-align:right; background-color: #ffffff; margin: 10px 0;">' . $pagenav->renderNav() . '</div>';
414
}
415
// ENDs code to show active entries
416
Publisher\Utils::closeCollapsableBar('allitemstable', 'allitemsicon');
417
// Close the collapsable div
418
419
$xoops->footer();
420
421
// auto create folders----------------------------------------
422
//TODO rename this function? And exclude image folder?
423
function createDir()
424
{
425
    // auto crate folders
426
    $thePath = Publisher\Utils::getUploadDir();
0 ignored issues
show
Unused Code introduced by
The assignment to $thePath is dead and can be removed.
Loading history...
427
428
    if (Publisher\Utils::getPathStatus('root', true) < 0) {
429
        $thePath = Publisher\Utils::getUploadDir();
430
        $res = Publisher\Utils::mkdir($thePath);
431
        $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
0 ignored issues
show
Unused Code introduced by
The assignment to $msg is dead and can be removed.
Loading history...
432
    }
433
434
    if (Publisher\Utils::getPathStatus('images', true) < 0) {
435
        $thePath = Publisher\Utils::getImageDir();
436
        $res = Publisher\Utils::mkdir($thePath);
437
438
        if ($res) {
439
            $source = PUBLISHER_ROOT_PATH . '/images/blank.png';
440
            $dest = $thePath . 'blank.png';
441
            Publisher\Utils::copyr($source, $dest);
442
        }
443
        $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
444
    }
445
446
    if (Publisher\Utils::getPathStatus('images/category', true) < 0) {
447
        $thePath = Publisher\Utils::getImageDir('category');
448
        $res = Publisher\Utils::mkdir($thePath);
449
450
        if ($res) {
451
            $source = PUBLISHER_ROOT_PATH . '/images/blank.png';
452
            $dest = $thePath . 'blank.png';
453
            Publisher\Utils::copyr($source, $dest);
454
        }
455
        $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
456
    }
457
458
    if (Publisher\Utils::getPathStatus('images/item', true) < 0) {
459
        $thePath = Publisher\Utils::getImageDir('item');
460
        $res = Publisher\Utils::mkdir($thePath);
461
462
        if ($res) {
463
            $source = PUBLISHER_ROOT_PATH . '/images/blank.png';
464
            $dest = $thePath . 'blank.png';
465
            Publisher\Utils::copyr($source, $dest);
466
        }
467
        $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
468
    }
469
470
    if (Publisher\Utils::getPathStatus('content', true) < 0) {
471
        $thePath = Publisher\Utils::getUploadDir(true, 'content');
472
        $res = Publisher\Utils::mkdir($thePath);
473
        $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
474
    }
475
}
476
477
function buildTable()
478
{
479
    echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>";
480
    echo '<tr>';
481
    echo "<td width='40px' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMID . '</strong></td>';
482
    echo "<td width='100px' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMCAT . '</strong></td>';
483
    echo "<td class='bg3' align='center'><strong>" . _AM_PUBLISHER_TITLE . '</strong></td>';
484
    echo "<td width='90px' class='bg3' align='center'><strong>" . _AM_PUBLISHER_CREATED . '</strong></td>';
485
    echo "<td width='90px' class='bg3' align='center'><strong>" . _CO_PUBLISHER_STATUS . '</strong></td>';
486
    echo "<td width='90px' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . '</strong></td>';
487
    echo '</tr>';
488
}
489