Exemplo n.º 1
0
 protected function get_row_query_Html_temp()
 {
     $html = '<td class="show_hide" ' . $this->open_close_rowspan . '="' . $this->rowspan . '"><span class="cabinett_row_hide ' . $this->open_close_class . '"></span></td>';
     // маркер не прикрепленного клиента
     // $js_message = 'Чтобы перейти в РТ необходимо прикрепить клиента!!!';
     $the_client_is_not_attached = 'onClick="return false;"';
     $href_RT = '#';
     if ($this->Query['client_id'] > 0) {
         $the_client_is_not_attached = '';
         $href_RT = './?page=client_folder&client_id=' . $this->Query['client_id'] . '&query_num=' . $this->Query['query_num'];
     }
     $html .= '<td class="rt_href_click"><a ' . $the_client_is_not_attached . ' href="' . $href_RT . '">' . $this->Query['query_num'] . '</a> </td>';
     $no_edit = 1;
     if ($this->Query['client_id'] == 0) {
         $no_edit = 0;
         if ($this->user_access != 1) {
             $no_edit = 1;
         }
     }
     $html .= $this->get_client_name_for_query_Database($this->Query['client_id'], $no_edit);
     $html .= '<td class="show_main_menu query_theme_and_comment">';
     $html .= '<div class="table" style="width:100%">';
     $html .= '<div class="row">';
     $html .= '<div clas="cell">';
     // тема
     $html .= $this->Query['theme'];
     $html .= '</div>';
     $html .= '<div class="cell">';
     // комментарии
     $html .= '<span data-rt_list_query_num="' . $this->Query['query_num'] . '" class="icon_comment_show white ' . Comments_for_query_class::check_the_empty_query_coment_Database($this->Query['query_num']) . '"></span>';
     $html .= '</div>';
     $html .= '</div>';
     $html .= '</div>';
     $html .= '</td>';
     $html .= '<td class="show_main_menu">';
     if ($this->user_access == 1) {
         $no_edit = 0;
     }
     // if($this->user_access != 1 && $this->Query['client_id'] == 0){
     if ($this->user_access != 1) {
         $no_edit = 1;
     } else {
         $no_edit = 0;
     }
     $html .= '<div>' . $this->get_all_manager_name_Database_Html($this->Query, $no_edit) . '</div>';
     // если не история - считаем сколько времени назад взяли заказ в работу
     if ($_GET['subsection'] != 'query_history') {
         $html .= '<div style="padding-top: 5px;"><span class="greyText" data-sec="' . $this->Query['time_attach_manager_sec'] * -1 . '" ' . $this->overdue . '>' . $this->Query['time_attach_manager'] . '</span></div>';
     }
     $html .= '</td>';
     $html .= '<td class="show_main_menu">' . $this->Query['create_time'] . '</td>';
     $html .= '<td class="show_main_menu"></td>';
     $html .= '<td class="show_main_menu"></td>';
     // $rrr = RT::calcualte_query_summ($this->Query['query_num']);
     $rrr = $this->price_for_the_position_ITOGO;
     $html .= '<td class="show_main_menu" td="' . $rrr . '">' . $rrr . '</td>';
     $html .= '<td class="' . $this->Query['status'] . '_' . $this->user_access . ' show_main_menu query_status">' . $this->status_or_button . '</td>';
     return $html;
 }