<div id="menu"> <?php echo "<div id=\"menu_main\">"; foreach ($get['menu'] as $key_main_menu => $menu_main) { if ($uri['index'][1] == $menu_main['link']) { echo "<a id=\"select_menu\" href=\"" . $uri['point'] . uri_replace($uri['menu'], $menu_main['link']) . "\">" . $menu_main['name'] . "</a>"; } else { echo "<a id=\"menu\" href=\"" . $uri['point'] . uri_replace($uri['menu'], $menu_main['link']) . "\">" . $menu_main['name'] . "</a>"; } } echo "</div>"; echo "<div id=\"sub_menu\">"; if (isset($get['sub_menu'][$uri['index'][1]])) { foreach ($get['sub_menu'][$uri['index'][1]] as $key_sub_menu => $sub_menu) { if (isset($uri['index'][2]) && $uri['index'][2] == $sub_menu['link']) { echo "<a id=\"select_menu\" href=\"" . $uri['point'] . uri_replace($uri['sub_menu'], array($sub_menu['link'])) . "\">" . $sub_menu['name'] . "</a>"; } else { echo "<a id=\"menu\" href=\"" . $uri['point'] . uri_replace($uri['sub_menu'], array($sub_menu['link'])) . "\">" . $sub_menu['name'] . "</a>"; } } } echo "</div>"; ?> <div style="clear:both;"></div> </div>
echo '<a href="/' . $uri['point'] . uri_replace($uri['teachers_id'], array($item['teacher__id']), 'user_objects') . '">'; echo $item['teacher']->surname . ' ' . $item['teacher']->name . ' ' . $item['teacher']->name2; //echo $item['teacher__surname'].' '.$item['teacher__name'].' '.$item['teacher__name2']; echo '</a>'; if (isset($item['teacher']->qualification)) { echo '<div class="note">'; echo 'Категория: ' . $item['teacher']->qualification->name; echo '</div>'; } echo '</div>'; //дополнительные педагоги если есть if (isset($item['dop_teachers']) && is_array($item['dop_teachers'])) { foreach ($item['dop_teachers'] as $dops) { echo '<br />'; echo '<div class="teacher_value">'; echo '<a href="/' . $uri['point'] . uri_replace($uri['teachers_id'], array($dops->teachers->id), 'user_objects') . '">'; echo $dops->teachers->surname . ' ' . $dops->teachers->name . ' ' . $dops->teachers->name2; echo '</a>'; if (isset($dops->teachers->qualification)) { echo '<div class="note">'; echo 'Категория: ' . $dops->teachers->qualification->name; echo '</div>'; } echo '</div>'; } } echo '</td>'; echo '<td>'; if (!empty($item['teacher']->foto)) { $root = ''; $path = $resize_teacher['mini']['path'] . $resize_teacher['mini']['dir'] . '/' . $item['teacher']->foto;
echo '<tr>'; echo '<td>'; echo 'Коллективы которые ведет данный педагог:'; echo '</td>'; echo '<td>'; foreach ($item['groups'] as $key => $items) { if ($items->active == 1) { echo '<a href="/' . $uri['point'] . uri_replace($uri['groups_id'], array($items->id), 'user_objects') . '">'; echo $items->name; echo '</a>'; echo '<br />'; } } echo '</td>'; echo '</tr>'; } echo '<tr>'; echo '<td>'; echo 'Расписание:'; echo '</td>'; echo '<td>'; echo '<a href="/' . $uri['point'] . uri_replace($uri['schedules_teacher'], array($item['id']), 'user_objects') . '">'; echo 'посмотреть расписание педагога'; echo '</a>'; echo '</td>'; echo '</tr>'; } echo '</tbody>'; echo '</table>'; echo '</div>'; }
echo '<a href="/' . $uri['point'] . uri_replace($uri['mskobr_department'], array($items->id, 'free'), 'user_objects') . '">'; echo 'Бесплатно'; echo '</a>'; echo '</div>'; echo '</li>'; } echo '</ul>'; echo '</div>'; } if (isset($directions) && is_array($directions)) { echo '<div class="mskobr">'; echo '<h3>Шаблоны групп по направлениям:</h3>'; echo '<ul>'; foreach ($directions as $key => $items) { echo '<li>'; echo '<a href="/' . $uri['point'] . uri_replace($uri['mskobr_direction'], array($items->id, 'all'), 'user_objects') . '">'; echo $items->name; echo '</a>'; echo '<div class="filter_group">'; echo '<a href="/' . $uri['point'] . uri_replace($uri['mskobr_direction'], array($items->id, 'paid'), 'user_objects') . '">'; echo 'Платно'; echo '</a>'; echo '<a href="/' . $uri['point'] . uri_replace($uri['mskobr_direction'], array($items->id, 'free'), 'user_objects') . '">'; echo 'Бесплатно'; echo '</a>'; echo '</div>'; echo '</li>'; } echo '</ul>'; echo '</div>'; }
echo '</a>'; /* if(!empty($items->groups->teacher->foto)){ $root = $config['path']['root']; $dir = $config['images']['config']['teachers']['path_resize'].$config['images']['resize']['teachers']['small']['dir'].'/'; //echo $root.$dir.$item['foto']; echo '<div class="fio">'; if(is_file($root.$dir.$items->groups->teacher->foto)){ echo '<div class="foto">'; echo '<img src="/'.$dir.$items->groups->teacher->foto.'" />'; echo '</div>'; } echo '</div>'; } */ } echo '</td>'; echo '<td 1rowspan="2" class="subject ' . $class_group . '" style="' . $style_group . '">'; if ($end_group_duble === true) { echo '<a href="/' . $uri['point'] . uri_replace($uri['groups_id'], array($items->id_group), 'user_objects') . '">'; echo $items->groups__name; echo '</a>'; } echo '</td>'; echo '<td 1rowspan="2">'; echo $items->numgroups->name; echo '</td>'; echo '<td class="day">'; if (!empty($items->mon_from)) { echo $items->mon_from . ' - ' . $items->mon_to; }
/** * Действия при добавлении */ function action_add() { $data['config'] = $this->setting; $data['uri']['point'] = $this->uri_point('admin'); $data['uri']['adverts_list'] = $this->get_uri_link('admin_adverts_list'); $data['uri']['adverts_id'] = $this->get_uri_link('admin_adverts_id'); $data['uri']['adverts_add'] = $this->get_uri_link('admin_adverts_add'); $validation = array('date_create' => $this->validation['date_create'], 'show_i' => $this->validation['show_i'], 'sort_i' => $this->validation['sort_i'], 'name' => $this->validation['name'], 'description' => $this->validation['description'], 'vip' => $this->validation['vip']); //проверка при копировании объекта if ($this->input->post('adverts_copy')) { $this->form_validation->set_rules($validation); $this->form_validation->set_error_delimiters('<div style="color:#ff0000;font-size:14px;">', '</div>'); if ($this->form_validation->run($this)) { } } if ($this->input->post('add_adverts')) { // проверка на валидность данных $this->form_validation->set_rules($validation); $this->form_validation->set_error_delimiters('<div style="color:#ff0000;font-size:14px;">', '</div>'); if ($this->form_validation->run($this)) { $date = strtotime($this->input->post('date')); if ($this->input->post('show')) { $show = 1; } else { $show = 0; } $sort = $this->input->post('sort'); if (!empty($sort) || !is_numeric($sort)) { $sort = 10; } $name = $this->input->post('name'); $description = $this->input->post('description'); $set = array('show_i' => $show, 'sort_i' => $sort, 'name' => $name, 'description' => $description, 'date_create' => $date, 'date_update' => time(), 'ip_create' => $_SERVER['REMOTE_ADDR'], 'ip_update' => $_SERVER['REMOTE_ADDR']); $this->MY_insert($set); $data['insert_id'] = $this->db->insert_id(); $data['uri']['object_id'] = $data['uri']['point'] . uri_replace($data['uri']['adverts_id'], array($data['insert_id']), 'object'); $data['uri']['object_add'] = $data['uri']['point'] . $data['uri']['adverts_add']; $this->load->view('admins/status/insert_add_ok', $data); return 'ok'; } else { $this->load->view('admins/status/insert_add_error', $data); //echo $data['errors'] = validation_errors(); } } }
echo 'Занятия проводятся на базе школы № ' . $item['school']; } if (isset($item['department'])) { echo '<br />'; echo '<div class="note">' . $item['department']->name . '</div>'; } echo '</div>'; echo '</td>'; echo '<td>'; echo $item['direction']->name; echo '</td>'; echo '<td>'; echo $item['section']->name; echo '</td>'; echo '<td>'; echo '<a href="/' . $uri['point'] . uri_replace($uri['teachers_id'], array($item['teacher__id']), 'user_objects') . '">'; echo $item['teacher']->surname . ' ' . $item['teacher']->name . ' ' . $item['teacher']->name2; //echo $item['teacher__surname'].' '.$item['teacher__name'].' '.$item['teacher__name2']; echo '</a>'; if (isset($item['teacher']->qualification)) { echo '<div class="note">'; echo 'Категория: ' . $item['teacher']->qualification->name; echo '</div>'; } echo '</td>'; echo '</tr>'; } echo '</tbody>'; echo '</table>'; echo '</div>'; echo '</div>';
if (empty($value['date_create'])) { echo lang('form_language_not_date'); } else { echo date("d-m-Y", $value['date_create']); } echo "</div>"; echo "<div id=\"date_update\">"; if (empty($value['date_update'])) { echo lang('form_language_not_date'); } else { echo date("d-m-Y", $value['date_update']); } echo "</div>"; echo "<div id=\"action\">"; echo "<div id=\"edit\">"; echo "<a href=\"" . $uri['module'] . uri_replace($uri['edit'], $value['id'], 'language') . "\"><img src=\"/" . $path['img'] . "/page_edit16.png\" title=\"" . lang('form_language_edit') . "\" /></a>"; echo "</div>"; echo "<div id=\"delete\">"; echo "<form action=\"" . $uri['module'] . $uri['delete'] . "\" method=\"POST\" enctype=\"multipart/form-data\">"; echo form_hidden("id_language[" . $value['id'] . "]", $value['id']); $set_input['del'] = array('name' => "del_language[" . $value['id'] . "]", 'id' => 'del_language', 'value' => $value['id'], 'type' => 'image', 'src' => "/" . $path['img'] . "/page_delete16.png", 'title' => lang('form_language_delete'), 'alt' => lang('form_language_delete')); echo form_submit($set_input['del']); echo "</form>"; echo "</div>"; //echo "<img src=\"/".$path['img']."/page_delete16.png\" title=\"удалить страницу\" />"; echo "</div>"; echo "<div id=\"clear\"></div>"; echo "</div>"; echo "</div>"; } echo "</div>";
<?php assets_style('admins/navigation/order', false); if (isset($order)) { echo '<div class="order">'; if ($order['by'] == $order['current_by']) { echo '<a class="active" href="' . $uri['point'] . uri_replace($uri['adverts_filter'], array('page' => $index['page'], 'order' => $order['by'], 'order_direct' => $order['direct']), $uri['index_name']) . '">'; if ($order['direct'] == $order['allow_direct']['desc']) { echo '▲'; } else { echo '▼'; } echo '</a>'; } else { echo '<a class="deactive" href="' . $uri['point'] . uri_replace($uri['adverts_filter'], array('page' => $index['page'], 'order' => $order['by'], 'order_direct' => $order['allow_direct']['asc']), $uri['index_name']) . '">'; //echo '↑'; //echo '↓'; echo '▲'; //echo '▼'; /* if($order['direct'] == $order['allow_direct']['desc']){ echo 'href="'.$uri['point'].uri_replace($uri['adverts_filter'], array('page' => $index['page'],'order' => $order['by'], 'order_direct' => $order['direct']), $uri['index_name']).'">'; echo '↑'; }else{ echo 'href="'.$uri['point'].uri_replace($uri['adverts_filter'], array('page' => $index['page'],'order' => $order['by'], 'order_direct' => $order['allow_direct']['desc']), $uri['index_name']).'">'; echo '↓'; } */ echo '</a>'; }
<?php //var_dump($message_arr); if (!empty($theme_arr)) { echo "<div id=\"id_theme\">"; echo validation_errors(); echo Modules::run("feedback/feedback_theme/status_change"); foreach ($theme_arr as $key => $value) { echo "<div id=\"id_list\">"; echo "<form action=\"" . $uri['module'] . uri_replace($uri['id'], $value['id'], 'feedback') . "\" method=\"POST\" enctype=\"multipart/form-data\">"; echo "<div id=\"id\">"; echo lang('form_theme_id'); echo form_hidden('id', $value['id']); echo "</div>"; echo "<div id=\"id_value\">" . $value['id'] . "</div>"; echo "<div id=\"clear\"></div>"; echo "<div id=\"show\">" . lang('form_theme_show') . "</div>"; echo "<div id=\"show_value\">"; $set_input['show'] = array('name' => 'show', 'id' => 'show_value', 'value' => 1, 'checked' => FALSE); if ($value['show_i'] == 1) { $set_input['show']['checked'] = TRUE; } if (set_value($set_input['show']['name'])) { $set_input['show']['checked'] = TRUE; } elseif (!set_value($set_input['show']['name']) && set_value('id')) { $set_input['show']['checked'] = FALSE; } elseif ($value['show_i'] == 1) { $set_input['show']['checked'] = TRUE; } echo form_checkbox($set_input['show']); echo form_error($set_input['show']['name']);
<?php if (!empty($pagination['total_page']) && $pagination['total_page'] > 1) { echo "<div id=\"pagination\">"; echo "<div id=\"name\">"; echo lang('form_pagination_pages'); echo "</div>"; for ($i = 1; $i <= $pagination['total_page']; $i++) { if ($i == $pagination['cur_page']) { echo "<div id=\"page_select\">"; echo "" . $i . ""; } else { echo "<div id=\"page\">"; echo "<a href=\"" . $uri['module'] . uri_replace($uri['message'], $i, 'feedback') . "\">" . $i . "</a>"; } echo "</div>"; } echo "<div id=\"clear\"></div>"; echo "</div>"; }
<?php echo '<a href="/' . $uri['point'] . uri_replace($uri['schedules'], false, 'user_objects') . '">'; //echo 'Расписание всех педагогов'; echo '</a>'; echo '<h1>'; echo 'Расписание занятий всех коллективов'; echo '</h1>'; $this->load->view('user/schedules', $data);
hourText : "Часы", minuteText : "Минуты", secondText : "Секунды", currentText : "Текущее", closeText : "Закрыть", firstDay : 1, monthNames : ["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"], monthNamesShort : ["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"], dayNamesMin : ["Вс","Пн","Вт","Ср","Чт","Пт","Сб"], showAnim : "slideDown", }); }); </script>'; echo validation_errors(); if (isset($objects) && is_array($objects)) { echo '<form action="' . $uri['point'] . uri_replace($uri['adverts_id'], array($objects['id']), 'object') . '" method="POST">'; echo '<div class="floatleft block-100 right padding-5">'; echo $this->lang->line('adverts_date'); echo '</div>'; echo "<div class=\"floatleft padding-5\">"; $data['date'] = array('name' => 'date', 'value' => date('m/d/Y'), 'class' => 'block-100 padding-5', 'id' => 'datepicker'); if (set_value('date')) { $data['date']['value'] = set_value('date'); } elseif (!empty($objects['date_create'])) { $data['date']['value'] = date('m/d/Y', $objects['date_create']); } echo form_input($data['date']); echo "</div>"; echo "<div class=\"clear\"></div>"; echo '<div class="floatleft block-100 right padding-5">'; echo $this->lang->line('adverts_show');
/** * Генерация ссылки для ajax запроса * * */ function generate_link_ajax($name_route, $name_group = '', $_module = '') { if (empty($name_route)) { return false; } if (empty($_module)) { $_module = $this->current_module; } if (!empty($name_group)) { $group = $name_group; } else { $group = $this->current_group; } $result_arr = $this->parse_ajax_str(); if (isset($result_arr[$this->param_arg])) { $arg = $result_arr[$this->param_arg]; } else { $arg = array(); } //получаем ссылку для данного маршрута $link = $this->generate_link($name_route, $group, $_module); //получаем имя индексной группы $index_name = $this->get_index_name($name_route, $group, $_module); if (empty($index_name)) { return; } $uri_replace = uri_replace($link, $arg, $index_name); //устанавливаем uri для данного маршрута $this->set_uri($uri_replace, $name_route, $group, $_module); //устанавливает отсчет начального сегмента $this->set_start_segment(1, $name_route, $group, $_module); $args = $this->argument($name_route, $group, $_module); var_dump($args); $str_resource = $this->generate_str_resource($name_route, $group, $_module); $str_arg = $this->generate_str_arg($args); $str_uri = $this->generate_str_uri($str_resource, $str_arg); $str_uri = $this->get_uri_ajax($str_uri, $args); return $str_uri; }
} else { echo "<img src=\"" . assets_img('admin/red_button16.png', false) . "\">"; } echo '</td>'; echo '<td>'; echo $item['name']; echo '</td>'; echo '<td>'; echo word_limiter(strip_tags($item['description']), 4); echo '</td>'; echo '<td>'; echo '<a href="' . $uri['point'] . uri_replace($uri['adverts_id'], array($item['id']), 'object') . '" title="редактировать">'; echo '<img src="' . assets_img('admin/edit-16.png', false) . '" />'; echo '</a>'; echo ' '; echo '<a href="' . $uri['point'] . uri_replace($uri['adverts_copy'], array($item['id']), 'object') . '" title="сделать копию">'; echo '<img src="' . assets_img('admin/copy-16.png', false) . '" />'; echo '</a>'; /* $data['submit_copy'] = array( 'name' => 'action_copy', 'value' => 'сделать копию', 'class' => 'block-100 padding-3', ); $data['submit_copy'] = array( 'type' => 'image', 'name' => 'action_copy', //'id' => 'username', 'title' => 'сделать копию', 'value' => $item['id'], //'maxlength' => '100',
<?php assets_style('admins/navigation/pagination', false); if (isset($pagination) && is_array($pagination)) { if (isset($pagination['total_page']) && is_numeric($pagination['total_page'])) { echo '<div class="pagination">'; for ($i = 1; $i <= $pagination['total_page']; $i++) { if ($i == $pagination['cur_page']) { echo '<div class="page_active">'; } else { echo '<a class="page" href="' . $uri['point'] . uri_replace($uri['adverts_filter'], array('page' => $i, 'order' => $index['order'], 'order_direct' => $index['order_direct']), $uri['index_name']) . '">'; } echo $i; if ($i == $pagination['cur_page']) { echo '</div>'; } else { echo '</a>'; } } echo '</div>'; } }