function ds_nhucaudaotaocanhan() { $model = Core::model('Daotao/Nhucaudaotao'); $rowNCDT = $model->ds_nhucaudaotaocanhan($model->getEmpidByJos(jFactory::getUser()->id)); Core::printJson($rowNCDT); die; }
/** * upload */ function uploadcbcc($name = null, $tmp_name = null) { require 'libraries\\phpexcel\\Classes\\PHPExcel.php'; require_once 'libraries\\phpexcel\\Classes\\PHPExcel\\IOFactory.php'; $arr = array(); $user_import = jFactory::getUser()->id; $md5 = md5(rand(0, 999)); $hash = substr($md5, 15, 10); $filename = $hash . date('mdY') . '' . $this->regexFileUpload($_FILES['file']['name'], true); move_uploaded_file($_FILES['file']['tmp_name'], $filename); // tải file lên server $objPHPExcel = PHPExcel_IOFactory::load($filename); $objPHPExcel->setActiveSheetIndex(0); // lấy sheet đầu tiên // $objPHPExcel->setActiveSheetIndexByName('DSCBCC'); // lấy sheet với tên DSCBCC $highestColumn = $objPHPExcel->getActiveSheet()->getHighestColumn(); // số cột lớn nhất $highestColumnIndex = PHPExcel_Cell::columnIndexFromString($highestColumn); // số cột lớn nhất $highestRow = $objPHPExcel->getActiveSheet()->getHighestRow(); // số hàng lớn nhất for ($row = 3; $row <= $highestRow; ++$row) { for ($col = 0; $col < $highestColumnIndex; ++$col) { $cell = $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col, $row); $val = $cell->getValue(); if ($row == 1) { echo $val; } else { $arr[$row][$col] = $val; } } } unlink($filename); // xóa file khỏi hệ thống // lưu dữ liệu vào db $arrKq = $this->saveImport($arr); return $arrKq; }
function group_list(&$rows, &$pageNav, $option, &$lists) { $my = jFactory::getUser(); $canDo = wbAdvert_Common::userGetPermissions(); $saveOrder = $lists['order'] == 'g.ordering'; // JHTML::_('behavior.tooltip'); JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.multiselect'); JHtml::_('formbehavior.chosen', 'select'); if ($saveOrder) { $saveOrderingUrl = 'index.php?option=com_wbadvert&task=group.order&tmpl=component'; JHtml::_('sortablelist.sortable', 'wbadvertList', 'adminForm', strtolower($listDirn), $saveOrderingUrl); } $ordering = $lists['order'] == 'm.title' || $lists['order'] == 'g.ordering'; ?> <script type="text/javascript"> Joomla.orderTable = function(){ table = document.getElementById("sortTable"); direction = document.getElementById("directionTable"); order = table.options[table.selectedIndex].value; if (order != '<?php echo $lists['order']; ?> '){ dirn = 'asc'; } else { dirn = direction.options[direction.selectedIndex].value; } Joomla.tableOrdering(order, dirn, ''); } </script> <form action="<?php echo JRoute::_('index.php?option=com_wbadvert&task=group'); ?> " method="post" name="adminForm" id="adminForm"> <input type="hidden" name="filter_order" value="<?php echo $lists['order']; ?> " /> <input type="hidden" name="filter_order_Dir" value="<?php echo $lists['order_Dir']; ?> " /> <table class="adminList table table-striped" id="wbadvertList"> <thead> <tr> <th width="1%" class="nowrap center hidden-phone"> <?php echo JHTML::_('grid.sort', '<i class="icon-menu-2"></i>', 'g.ordering', @$lists['order_Dir'], @$lists['order'], 'group', 'asc', 'JGRID_HEADING_ORDERING'); ?> </th> <th width="20">#</th> <th width="20"><input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count($rows); ?> );" /></th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_GROUPNAME', 'g.name', $lists['order_Dir'], $lists['order'], 'group'); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_GROUPMODNAME', 'm.title', $lists['order_Dir'], $lists['order'], 'group'); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_GROUPMODPOS', 'm.position', $lists['order_Dir'], $lists['order'], 'group'); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_GROUPMODPUB', 'm.published', $lists['order_Dir'], $lists['order'], 'group'); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_GROUPCOUNT', 'g.count', $lists['order_Dir'], $lists['order'], 'group'); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_GROUPADVERTS', 'num_adverts', $lists['order_Dir'], $lists['order'], 'group'); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_GROUPORDER', 'g.order', $lists['order_Dir'], $lists['order'], 'group'); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'Published', 'g.published', $lists['order_Dir'], $lists['order'], 'group'); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'ID', 'g.id', $lists['order_Dir'], $lists['order'], 'group'); ?> </th> </tr> </thead> <tbody> <?php if (!count($rows)) { echo '<tr><td colspan="20"><h1 class="alert_msg">' . JText::_('LIST_NOGROUPS') . '</h1></td></tr>'; } $k = 0; for ($i = 0, $n = count($rows); $i < $n; $i++) { $row =& $rows[$i]; $row->id = $row->id; $link = 'index.php?option=com_wbadvert&task=group.edit&hidemainmenu=1&id=' . $row->id; $task = $row->published ? 'group.unpublish' : 'group.publish'; $state = $row->published ? 'publish' : 'unpublish'; $img = $row->published ? 'publish_g.png' : 'publish_x.png'; $alt = $row->published ? 'Published' : 'Unpublished'; $checked = JHTML::_('grid.checkedout', $row, $i); $modLink = 'index.php?option=com_modules&client=0&task=edit&cid[]=' . $row->module_id; ?> <tr class="<?php echo "row{$k}"; ?> " sortable-group-id="<?php echo (int) $row->module_id; ?> "> <td class="order nowrap center hidden-phone"> <?php if ($canDo->get('core.edit.state')) { $disableClassName = ''; $disabledLabel = ''; if (!$saveOrder) { $disabledLabel = JText::_('JORDERINGDISABLED'); $disableClassName = 'inactive tip-top'; } ?> <span class="sortable-handler hasTooltip <?php echo $disableClassName; ?> " title="<?php echo $disabledLabel; ?> "> <i class="icon-menu"></i> </span> <input type="text" style="display:none" name="order[]" size="5" value="<?php echo $row->ordering; ?> " class="width-20 text-area-order " /> <?php } else { ?> <span class="sortable-handler inactive" > <i class="icon-menu"></i> </span> <?php } ?> </td> <td><?php echo $pageNav->getRowOffset($i); ?> </td> <td><?php echo $checked; ?> </td> <td><a href="<?php echo $link; ?> "><?php echo $row->name; ?> </a></td> <?php if (!$row->module_id) { ?> <td style="background:#FCC;text-align:center;">Module Undefined</td> <td> </td> <td> </td> <?php } else { ?> <td><a href="<?php echo $modLink; ?> " target="_blank"><?php echo $row->module_title ? $row->module_title . ' #' . $row->module_id : '-'; ?> </a></td> <td><?php echo $row->module_position ? $row->module_position : '-'; ?> </td> <td <?php echo $row->module_published ? '' : 'style="background:#FFCCCC;"'; ?> ><?php echo $row->module_published ? 'Yes' : ($row->module_id ? 'No' : 'Undefined'); ?> </td> <?php } ?> <td><?php echo $row->count; ?> </td> <td><?php echo $row->num_adverts; ?> </td> <td><?php echo ucwords($row->order); ?> </td> <td> <a class="btn btn-micro hasTooltip" title="" onclick="return listItemTask('cb<?php echo $i; ?> ','<?php echo $task; ?> ')" title="<?php echo $alt; ?> " href="javascript:void(0);"> <i class="icon-<?php echo $state; ?> "></i> </a> </td> <td><?php echo $row->id; ?> </td> </tr> <?php $k = 1 - $k; } ?> </tbody> <tfoot> <tr> <td colspan="13"><?php echo $pageNav->getListFooter(); ?> </td> </tr> </tfoot> </table> <input type="hidden" name="task" value="group"> <input type="hidden" name="boxchecked" value="0"> <?php echo JHtml::_('form.token'); ?> </form> <?php }
function client_list(&$rows, &$pageNav, $option, &$lists) { $my = jFactory::getUser(); JHTML::_('behavior.tooltip'); ?> <style> .adminlist thead tr th { text-align:left; } .adminlist thead th:nth-child(6), .adminlist thead th:nth-child(7), .adminlist thead th:nth-child(8), .adminlist thead th:last-child { text-align:center!important; } .adminlist tbody td:nth-child(6), .adminlist tbody td:nth-child(7), .adminlist tbody td:nth-child(8), .adminlist tbody td:last-child { text-align:center!important; } </style> <form action="<?php echo JRoute::_('index.php?option=com_wbadvert&task=client'); ?> " method="post" name="adminForm" id="adminForm"> <input type="hidden" name="filter_order" value="<?php echo $lists['order']; ?> " /> <input type="hidden" name="filter_order_Dir" value="<?php echo $lists['order_Dir']; ?> " /> <table class="adminList table table-striped" id="wbadvertList"> <thead> <tr> <th width="20">#</th> <th width="20"><input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count($rows); ?> );" /></th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_CLIENTNAME', 'c.name', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_CLIENTCONTACT', 'c.contact', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_CLIENTEMAIL', 'c.email', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_CLIENTADVERTS', 'total_banners', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_CLIENTIMPRESSIONS', 'total_impmade', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_CLIENTCLICKS', 'total_clicks', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'Published', 'a.published', @$lists['order_Dir'], @$lists['order']); ?> </th> </tr> </thead> <tbody> <?php if (!count($rows)) { echo '<tr><td colspan="9"><h1 class="alert_msg">' . JText::_('LIST_NOCLIENTS') . '</h1></td></tr>'; } $k = 0; for ($i = 0, $n = count($rows); $i < $n; $i++) { $row =& $rows[$i]; $link = 'index.php?option=com_wbadvert&task=client.edit&hidemainmenu=1&id=' . $row->id; $task = $row->published ? 'client.unpublish' : 'client.publish'; $state = $row->published ? 'publish' : 'unpublish'; $img = $row->published ? 'publish_g.png' : 'publish_x.png'; $alt = $row->published ? JText::_('Published') : JText::_('Unpublished'); $checked = JHTML::_('grid.checkedout', $row, $i); ?> <tr class="<?php echo "row{$k}"; ?> "> <td width="1%"><?php echo $pageNav->getRowOffset($i); ?> </td> <td width="1%"><?php echo $checked; ?> </td> <td> <?php if ($row->checked_out && $row->checked_out != $my->id) { echo $row->name; } else { echo '<a href="' . $link . '" title="' . JText::sprintf('BTN_EDIT', JText::_('Client')) . '">' . $row->name . '</a>'; } ?> </td> <td><?php echo $row->contact; ?> </td> <td><a href="mailto:<?php echo $row->email; ?> " title="<?php echo JText::sprintf('BTN_EMAIL', JText::_('Client')); ?> "><?php echo $row->email; ?> </a></td> <td><?php echo $row->total_banners; ?> </td> <td><?php echo $row->total_impmade; ?> </td> <td><?php echo $row->total_clicks; ?> </td> <td> <a class="btn btn-micro hasTooltip" title="" onclick="return listItemTask('cb<?php echo $i; ?> ','<?php echo $task; ?> ')" title="<?php echo $alt; ?> " href="javascript:void(0);"> <i class="icon-<?php echo $state; ?> "></i> </a> </td> </tr> <?php $k = 1 - $k; } ?> </tbody> <tfoot> <tr> <td colspan="13"><?php echo $pageNav->getListFooter(); ?> </td> </tr> </tfoot> </table> <input type="hidden" name="task" value="client"> <input type="hidden" name="boxchecked" value="0"> <?php echo JHtml::_('form.token'); ?> </form> <?php }
<div class="control-group"> <label class="control-label" for="ngaydangky_nhucaudaotao">Ngày đăng ký</label> <div class="controls"> <input type="text" class="required" readonly="readonly" id="ngaydangky_nhucaudaotao" name="ngaydangky_nhucaudaotao" value="<?php echo date('d/m/Y'); ?> " /> </div> </div> </div> <div style="clear: both;"></div> <input type="hidden" id="empid" name="empid" value="<?php if (isset($data_nhucaudaotao[0]->empid)) { echo $data_nhucaudaotao[0]->empid; } else { echo $model->getEmpidByJos(jFactory::getUser()->id); } ?> " /> <input type="hidden" id="name_loaitrinhdo" name="name_loaitrinhdo" value="<?php echo $data_nhucaudaotao[0]->name_loaitrinhdo; ?> " /> <input type="hidden" id="name_trinhdo" name="name_trinhdo" value="<?php echo $data_nhucaudaotao[0]->name_trinhdo; ?> " /> <input type="hidden" id="name_chuyennganh" name="name_chuyennganh" value="<?php echo $data_nhucaudaotao[0]->name_chuyennganh; ?> " />
function advert_list(&$rows, &$pageNav, $option, &$lists, &$filters) { $my = jFactory::getUser(); $db =& JFactory::getDBO(); $canDo = wbAdvert_Common::userGetPermissions(); $saveOrder = $filters['group_id'] && $lists['order'] == 'idx_group.ordering'; JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.multiselect'); JHtml::_('formbehavior.chosen', 'select'); if ($saveOrder) { $saveOrderingUrl = 'index.php?option=com_wbadvert&task=advert.order&tmpl=component'; JHtml::_('sortablelist.sortable', 'wbadvertList', 'adminForm', strtolower($listDirn), $saveOrderingUrl); } JHTML::_('behavior.tooltip'); $ordering = $lists['order'] == 'g.name' || $lists['order'] == 'idx_group.ordering'; ?> <script type="text/javascript"> Joomla.orderTable = function(){ table = document.getElementById("sortTable"); direction = document.getElementById("directionTable"); order = table.options[table.selectedIndex].value; if (order != '<?php echo $lists['order']; ?> '){ dirn = 'asc'; } else { dirn = direction.options[direction.selectedIndex].value; } Joomla.tableOrdering(order, dirn, ''); } </script> <script> function submitResetFilters(){ $('filter_search').value=''; $('filter_ad_size').options[0].selected=true; $('filter_client_id').options[0].selected=true; $('filter_group_id').options[0].selected=true; submitbutton('advert'); } </script> <style> .adminlist thead tr th { text-align:left; } .adminlist thead th:nth-child(1) { width:20px; } <?php if ($filters['group_id']) { ?> .adminlist thead th:nth-child(12) a:first-child { float:left; } .adminlist thead th:nth-child(12) a:last-child { float:right; } .adminlist tbody td:nth-child(12) { width:80px; } .adminlist tbody td:nth-child(10), .adminlist tbody td:nth-child(11), .adminlist tbody td:nth-child(12), .adminlist tbody td:nth-child(13), .adminlist tbody td:nth-child(14), .adminlist tbody td:nth-child(15) { text-align:center!important; } <?php } else { ?> .adminlist tbody td:nth-child(10), .adminlist tbody td:nth-child(11), .adminlist tbody td:nth-child(12), .adminlist tbody td:nth-child(13), .adminlist tbody td:nth-child(14) { text-align:center!important; } <?php } ?> .adminlist tbody td { vertical-align:top; } </style> <form action="<?php echo JRoute::_('index.php?option=com_wbadvert&task=advert'); ?> " method="post" name="adminForm" id="adminForm"> <input type="hidden" name="filter_order" value="<?php echo $lists['order']; ?> " /> <input type="hidden" name="filter_order_Dir" value="<?php echo $lists['order_Dir']; ?> " /> <table width="100%" class="adminheading"> <tr> <td style="text-align:left;"> <?php echo JText::_('Filter'); ?> : <input type="text" name="filter_search" id="filter_search" value="<?php echo $lists['search']; ?> " class="text_area" onchange="submitbutton('advert');" /> <button onclick="submitbutton('advert');"><?php echo JText::_('Go'); ?> </button> <button onclick="submitResetFilters();"><?php echo JText::_('Reset'); ?> </button> </td> <td style="text-align:right;"> <?php echo $lists['ad_size']; ?> <?php echo $lists['client_id']; ?> <?php echo $lists['group_id']; ?> </td> </tr> </table> <table class="adminList table table-striped" id="wbadvertList"> <thead> <tr> <?php if ($filters['group_id']) { ?> <th width="1%" class="nowrap center hidden-phone"> <?php echo JHTML::_('grid.sort', '<i class="icon-menu-2"></i>', 'idx_group.ordering', @$lists['order_Dir'], @$lists['order'], 'advert', 'asc', 'JGRID_HEADING_ORDERING'); ?> </th> <?php } ?> <th nowrap><?php echo JText::_('#'); ?> </th> <th width="1%"><input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count($rows); ?> );" /></th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_ADVERTNAME', 'a.name', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_CLIENTNAME', 'c.name', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_GROUPNAMES', 'g.name', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_ADVERTTYPE', 'a.file_type', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_ADVERTSTART', 'a.date_start', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_ADVERTSTOP', 'a.date_stop', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_ADVERTIMPRESSIONS', 'a.impmade', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_ADVERTCLICKS', 'a.clicks', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'TH_ADVERTCLICKRATIO', 'percent_clicks', @$lists['order_Dir'], @$lists['order']); ?> </th> <?php /* if($filters['group_id']){ ?> <th nowrap><?php echo JHTML::_('grid.sort', 'Order', 'idx_group.ordering', @$lists['order_Dir'], @$lists['order'] ); ?> <?php if($ordering) echo JHTML::_('grid.order', $rows, 'filesave.png', 'advert.order' ); ?></th> <?php } */ ?> <th nowrap><?php echo JHTML::_('grid.sort', 'Published', 'a.published', @$lists['order_Dir'], @$lists['order']); ?> </th> <th nowrap><?php echo JText::_('TH_ADVERTFILTERS'); ?> <?php echo $lists['showall']; ?> </th> <th nowrap><?php echo JHTML::_('grid.sort', 'ID', 'a.id', @$lists['order_Dir'], @$lists['order']); ?> </th> </tr> </thead> <tbody> <?php if (!count($rows)) { echo '<tr><td colspan="16"><h1 class="alert_msg">' . JText::_('LIST_NOADVERTS') . '</h1></td></tr>'; } $k = 0; for ($i = 0, $n = count($rows); $i < $n; $i++) { $row =& $rows[$i]; $link = 'index.php?option=' . $option . '&task=advert.edit&hidemainmenu=1&id=' . $row->id; $link_group = 'index.php?option=' . $option . '&task=group.edit&hidemainmenu=1&id=' . $row->group_id; $link_client = 'index.php?option=' . $option . '&task=client.edit&hidemainmenu=1&id=' . $row->client_id; $task = $row->published ? 'advert.unpublish' : 'advert.publish'; $state = $row->published ? 'publish' : 'unpublish'; $alt = $row->published ? JText::_('Published') : JText::_('Unpublished'); if ($row->code) { $type_name = 'Code'; } else { if ($row->file_type) { $type_name = strtoupper($row->file_type) . '(' . $row->width . 'x' . $row->height . ')'; } else { $type_name = '-'; } } $nullDate = $db->getNullDate(); $checked = JHTML::_('grid.checkedout', $row, $i); ?> <tr class="<?php echo "row{$k}"; ?> " sortable-group-id="<?php echo (int) $filters['group_id']; ?> "> <?php if ($filters['group_id']) { ?> <td class="order nowrap center hidden-phone"> <?php if ($canDo->get('core.edit.state')) { $disableClassName = ''; $disabledLabel = ''; if (!$saveOrder) { $disabledLabel = JText::_('JORDERINGDISABLED'); $disableClassName = 'inactive tip-top'; } ?> <span class="sortable-handler hasTooltip <?php echo $disableClassName; ?> " title="<?php echo $disabledLabel; ?> "> <i class="icon-menu"></i> </span> <input type="text" style="display:none" name="order[]" size="5" value="<?php echo $row->ordering; ?> " class="width-20 text-area-order " /> <?php } else { ?> <span class="sortable-handler inactive" > <i class="icon-menu"></i> </span> <?php } ?> </td> <?php } ?> <td><?php echo $pageNav->getRowOffset($i); ?> </td> <td><?php echo $checked; ?> </td> <td align="left"><?php if ($row->checked_out && $row->checked_out != $my->id) { echo $row->name; } else { echo '<a href="' . $link . '" title="' . JText::sprintf('BTN_EDIT', JText::_('Advertisement')) . '">' . $row->name . '</a>'; } ?> </td> <td><a href="<?php echo $link_client; ?> " title="<?php echo JText::sprintf('BTN_EDIT', JText::_('Client')); ?> "><?php echo $row->client_name; ?> </a></td> <td><?php $idx_group_links = array(); if (strlen($row->idx_groups)) { $idx_groups = explode(',', $row->idx_groups); foreach ($lists['group_rows'] as $group_row) { if ($group_row->id && in_array($group_row->id, $idx_groups)) { $idx_group_links[] = '<a href="index.php?option=' . $option . '&task=group.edit&hidemainmenu=1&id=' . $group_row->id . '" title="' . JText::sprintf('BTN_EDIT', JText::_('Group')) . '">' . $group_row->name . '</a>'; } } } if (count($idx_group_links)) { echo implode(', ', $idx_group_links); } else { echo JText::_('FT_NONE'); } ?> </td> <td><?php echo $type_name; ?> </td> <td><?php echo $row->date_start == $nullDate ? 'Never' : JHTML::_('date', $row->date_start, JText::_('DATE_FORMAT_LC4')); ?> </td> <td><?php echo $row->date_stop == $nullDate ? 'Never' : JHTML::_('date', $row->date_stop, JText::_('DATE_FORMAT_LC4')); ?> </td> <td><?php echo $row->impmade . ' of ' . ($row->imptotal ? $row->imptotal : 'unlimited'); ?> </td> <td><?php echo $row->clicks; ?> </td> <td><?php echo $row->percent_clicks; ?> </td> <?php /* if($filters['group_id']){ ?> <td class="order"> <span><?php echo $pageNav->orderUpIcon( $i, ($row->group_id == @$rows[$i-1]->group_id), 'advert.orderup', $ordering ); ?></span> <span><?php echo $pageNav->orderDownIcon( $i, $n, ($row->group_id == @$rows[$i+1]->group_id), 'advert.orderdn', $ordering ); ?></span> <input type="text" name="order[]" size="5" value="<?php echo $row->ordering; ?>" <?php echo $ordering ? '' : 'disabled="disabled'; ?> class="text_area" style="text-align: center" /> </td> <?php } */ ?> <td> <a class="btn btn-micro hasTooltip" title="" onclick="return listItemTask('cb<?php echo $i; ?> ','<?php echo $task; ?> ')" title="<?php echo $alt; ?> " href="javascript:void(0);"> <i class="icon-<?php echo $state; ?> "></i> </a> </td> <td><?php if ($row->filters == 'na') { echo '-'; } elseif (!$row->num_menu && !$row->num_category && !$row->num_content) { echo JText::_('FT_NONE'); } else { if ($row->num_menu) { echo $row->num_menu . ' ' . JText::_('FT_MENUS') . '<br/>'; } if ($row->num_category) { echo $row->num_category . ' ' . JText::_('FT_CATEGORIES') . '<br/>'; } if ($row->num_content) { echo $row->num_content . ' ' . JText::_('FT_ARTICLES') . '<br/>'; } } ?> </td> <td><?php echo $row->id; ?> </td> </tr> <?php $k = 1 - $k; } ?> </tbody> <tfoot> <tr> <td colspan="16"><?php echo $pageNav->getListFooter(); ?> </td> </tr> </tfoot> </table> <input type="hidden" name="task" value="advert"> <input type="hidden" name="boxchecked" value="0"> <?php echo JHtml::_('form.token'); ?> </form> <?php }