get('id'); $listOrder = $this->state->get('list.ordering'); $listDirn = $this->state->get('list.direction'); $canCreate = $user->authorise('core.create', 'com_plan_obuchenie') && file_exists(JPATH_COMPONENT . DIRECTORY_SEPARATOR . 'models' . DIRECTORY_SEPARATOR . 'forms' . DIRECTORY_SEPARATOR . 'obuchenieform.xml'); $canEdit = $user->authorise('core.edit', 'com_plan_obuchenie') && file_exists(JPATH_COMPONENT . DIRECTORY_SEPARATOR . 'models' . DIRECTORY_SEPARATOR . 'forms' . DIRECTORY_SEPARATOR . 'obuchenieform.xml'); $canCheckin = $user->authorise('core.manage', 'com_plan_obuchenie'); $canChange = $user->authorise('core.edit.state', 'com_plan_obuchenie'); $canDelete = $user->authorise('core.delete', 'com_plan_obuchenie'); ///////////////////////////////////////////////// //Весь этот код, по идее, должен быть в модели, потом лучше перенести туда //Составляем сводную таблицу двух компонентов $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->clear(); $query = ' SELECT plan.id as plan_id, prog.id as prog_id FROM #__plan_obuchenie_ plan INNER JOIN #__programma_meroprijatij prog ON plan.nazvanie_programmi = prog.id '; $db->setQuery($query); $data_result = $db->loadObjectList('plan_id'); /////////////////////////////////////////////////// ?>
items[0]->state)): ?> items as $i => $item) : ?> authorise('core.edit', 'com_plan_obuchenie'); ?> authorise('core.edit.own', 'com_plan_obuchenie')): ?> id == $item->created_by; ?> items[0]->state)) : ?>
pagination->getListFooter(); ?>
state == 1): ?> checked_out) && $item->checked_out) : ?> uEditor, $item->checked_out_time, 'obuchenies.', $canCheckin); ?> escape($item->id); ?> nazvanie_programmi; ?> data_nacahlo; ?> data_okonchanija; ?> stoimost; ?>