Файловый менеджер - Редактировать - /var/www/html/components/com_jssupportticket/views/ticket/tmpl/myticketsstaff.php
Ðазад
<?php /** * @Copyright Copyright (C) 2012 ... Ahmad Bilal * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html * Company: Buruj Solutions + Contact: www.burujsolutions.com , info@burujsolutions.com * Created on: May 03, 2012 ^ + Project: JS Tickets ^ */ defined('_JEXEC') or die('Restricted access'); $dash = '-'; $dateformat = $this->config['date_format']; $firstdash = strpos($dateformat, $dash, 0); $firstvalue = substr($dateformat, 0, $firstdash); $firstdash = $firstdash + 1; $seconddash = strpos($dateformat, $dash, $firstdash); $secondvalue = substr($dateformat, $firstdash, $seconddash - $firstdash); $seconddash = $seconddash + 1; $thirdvalue = substr($dateformat, $seconddash, strlen($dateformat) - $seconddash); $js_dateformat = '%' . $firstvalue . $dash . '%' . $secondvalue . $dash . '%' . $thirdvalue; ?> <div class="js-row js-null-margin"> <?php $permission_allow = 0; $merge_allow = 0; if ($this->ticket_permissions['View Ticket'] == 1) $permission_allow = 1; if($this->config['offline'] != '1'){ require_once JPATH_COMPONENT_SITE . '/views/header.php'; $document = JFactory::getDocument(); $document->addStyleSheet('components/com_jssupportticket/include/css/circle.css'); $document->addScript('components/com_jssupportticket/include/js/circle.js'); $document->addStyleSheet(JURI::root().'components/com_jssupportticket/include/css/inc.css/ticket-myticketstaff.css', 'text/css'); $language = JFactory::getLanguage(); $document->addStyleSheet(JURI::root().'components/com_jssupportticket/include/css/jssupportticketresponsive.css'); if($language->isRTL()){ $document->addStyleSheet(JURI::root().'components/com_jssupportticket/include/css/jssupportticketdefaultrtl.css'); } if($permission_allow == 1){ if(!$this->user->getIsGuest()){ if($this->user->getIsStaff()){ if(!$this->user->getIsStaffDisable()){ ?> <script type="text/javascript"> jQuery(document).ready(function ($) { //jQuery('.custom_date').datepicker({dateFormat: 'yy-mm-dd'}); var combinesearch = "<?php echo isset($this->filter_data['iscombinesearch']) ? $this->filter_data['iscombinesearch'] : ''; ?>"; jQuery("#js-filter-wrapper-toggle-area").hide(); jQuery("#js-filter-wrapper-toggle-minus").hide(); if (combinesearch) { doVisible(); jQuery("#js-filter-wrapper-toggle-area").show(); } jQuery("#js-filter-wrapper-toggle-btn").click(function (e) { e.preventDefault(); if (jQuery("#js-filter-wrapper-toggle-area").is(":visible")) { doVisible(); } else { jQuery("a.js-search-filter-btn").text('<?php echo JText::_('Show Less'); ?>'); } jQuery("#js-filter-wrapper-toggle-area").toggle(); }); function doVisible() { jQuery("a.js-search-filter-btn").text('<?php echo JText::_('Show All'); ?>'); } var sortby = jQuery("select.js-ticket-sorting-select").val(); if(sortby != ""){ jQuery("input#sortby").val(sortby); } jQuery("select.js-ticket-sorting-select").on('change',function(){ var sortby = jQuery(this).val(); jQuery("input#sortby").val(sortby); jQuery("form#adminForm").submit(); }); jQuery("#jssortbtn").on('click',function(){ var sortby = jQuery("select.js-ticket-sorting-select").val(); switch(sortby){ case "subjectdesc": sortby = "subjectasc"; break; case "subjectasc": sortby = "subjectdesc"; break; case "prioritydesc": sortby = "priorityasc"; break; case "priorityasc": sortby = "prioritydesc"; break; case "ticketiddesc": sortby = "ticketidasc"; break; case "ticketidasc": sortby = "ticketiddesc"; break; case "answereddesc": sortby = "answeredasc"; break; case "answeredasc": sortby = "answereddesc"; break; case "createddesc": sortby = "createdasc"; break; case "createdasc": sortby = "createddesc"; break; case "statusdesc": sortby = "statusasc"; break; case "statusasc": sortby = "statusdesc"; break; } jQuery("input#sortby").val(sortby); jQuery("form#adminForm").submit(); }); }); function getDataForDepandantField(parentf, childf, type) { if (type == 1) { var val = jQuery("select#" + parentf).val(); } else if (type == 2) { var val = jQuery("input[name=" + parentf + "]:checked").val(); if(val === undefined){ var val = jQuery("input[name=\"" + parentf + "[]\"]:checked").val(); } } jQuery.post('index.php?option=com_jssupportticket&c=ticket&task=datafordepandantfield&<?php echo JSession::getFormToken(); ?>=1', {fvalue: val, child: childf}, function (data) { if (data) { console.log(data); var d = jQuery.parseJSON(data); jQuery("select#" + childf).replaceWith(d); } }); } </script> <div id="jsst-wrapper-top"> <?php if($this->config['cur_location'] == 1){ ?> <div id="jsst-wrapper-top-left"> <div id="jsst-breadcrunbs"> <ul> <li> <a href="index.php?option=com_jssupportticket&c=jssupportticket&layout=controlpanel&Itemid=<?php echo $this->Itemid; ?>" title="Dashboard"> <?php echo JText::_('Dashboard'); ?> </a> </li> <li> <?php echo JText::_('My Ticket'); ?> </li> </ul> </div> </div> <?php } ?> </div> <!-- Top Circle Count Boxes --> <div class="js-row js-ticket-top-cirlce-count-wrp js-ticket-count"> <?php JHTML::_('behavior.formvalidator'); /* JHtml::_('stylesheet', 'system/calendar-jos.css', array('version' => 'auto', 'relative' => true), $attribs); JHtml::_('script', $tag . '/calendar.js', array('version' => 'auto', 'relative' => true)); JHtml::_('script', $tag . '/calendar-setup.js', array('version' => 'auto', 'relative' => true)); */ if ($this->sortlinks['sortorder'] == 'ASC') $img = "components/com_jssupportticket/include/images/sort1.png"; else $img = "components/com_jssupportticket/include/images/sort2.png"; ?> <?php if(isset($this->ticketinfo['mytickets']) && $this->ticketinfo['mytickets'] != 0){ $open_percentage = round(($this->ticketinfo['open'] / $this->ticketinfo['mytickets']) * 100); $close_percentage = round(($this->ticketinfo['close'] / $this->ticketinfo['mytickets']) * 100); $answered_percentage = round(($this->ticketinfo['isanswered'] / $this->ticketinfo['mytickets']) * 100); $overdue_percentage = round(($this->ticketinfo['isoverdue'] / $this->ticketinfo['mytickets']) * 100);} if(isset($this->ticketinfo['mytickets']) && $this->ticketinfo['mytickets'] != 0){ $allticket_percentage = 100; }else{ $allticket_percentage = 0; } ?> <div class="js-col-xs-12 js-col-md-2 js-myticket-link js-ticket-link js-ticket-myticket-link-myticket js-ticket-open"> <a class="js-ticket-green js-myticket-link js-ticket-link <?php if ($this->lt == 1) echo 'selected'; ?>" href="index.php?option=com_jssupportticket&c=ticket&layout=myticketsstaff<?php echo htmlspecialchars('<'); ?>=1&Itemid=<?php echo $this->Itemid."&sortby=".$this->sortlinks['sorton']. strtolower($this->sortlinks['sortorder']); ?>"> <div class="js-ticket-cricle-wrp "> <div class="circlebar" data-circle-startTime="0" data-circle-maxValue="<?php echo $open_percentage; ?>" data-circle-dialWidth=15 data-circle-size="100px" data-circle-type="progress"> <div class="loader-bg"></div> </div> </div> <div class="js-ticket-link-text"> <?php echo JText::_('Open'); if($this->config['show_count_tickets'] == 1) echo " ( " . $this->ticketinfo['open'] . " ) "; ?> </div> </a> </div> <div class="js-col-xs-12 js-col-md-2 js-myticket-link js-ticket-link js-ticket-myticket-link-myticket js-ticket-close"> <a class="js-ticket-red js-myticket-link js-ticket-link <?php if ($this->lt == 4) echo 'selected'; ?>" href="index.php?option=com_jssupportticket&c=ticket&layout=myticketsstaff<?php echo htmlspecialchars('<'); ?>=4&Itemid=<?php echo $this->Itemid."&sortby=".$this->sortlinks['sorton']. strtolower($this->sortlinks['sortorder']); ?>"> <div class="js-ticket-cricle-wrp "> <div class="circlebar" data-circle-startTime="0" data-circle-maxValue="<?php echo $close_percentage; ?>" data-circle-dialWidth=15 data-circle-size="100px" data-circle-type="progress"> <div class="loader-bg"></div> </div> </div> <div class="js-ticket-link-text"> <?php echo JText::_('Closed'); if($this->config['show_count_tickets'] == 1) echo " ( " . $this->ticketinfo['close'] . " ) "; ?> </div> </a> </div> <div class="js-col-xs-12 js-col-md-2 js-myticket-link js-ticket-link js-ticket-myticket-link-myticket js-ticket-answer"> <a class="js-ticket-pink js-myticket-link js-ticket-link <?php if ($this->lt == 2) echo 'selected'; ?>" href="index.php?option=com_jssupportticket&c=ticket&layout=myticketsstaff<?php echo htmlspecialchars('<'); ?>=2&Itemid=<?php echo $this->Itemid."&sortby=".$this->sortlinks['sorton']. strtolower($this->sortlinks['sortorder']); ?>"> <div class="js-ticket-cricle-wrp "> <div class="circlebar" data-circle-startTime="0" data-circle-maxValue="<?php echo $answered_percentage; ?>" data-circle-dialWidth=15 data-circle-size="100px" data-circle-type="progress"> <div class="loader-bg"></div> </div> </div> <div class="js-ticket-link-text"> <?php echo JText::_('Answered'); if($this->config['show_count_tickets'] == 1) echo " ( " . $this->ticketinfo['isanswered'] . " ) "; ?> </div> </a> </div> <div class="js-col-xs-12 js-col-md-2 js-myticket-link js-ticket-link js-ticket-myticket-link-myticket js-ticket-overdue"> <a class="js-ticket-orange js-myticket-link js-ticket-link <?php if ($this->lt == 3) echo 'selected'; ?>" href="index.php?option=com_jssupportticket&c=ticket&layout=myticketsstaff<?php echo htmlspecialchars('<'); ?>=3&Itemid=<?php echo $this->Itemid."&sortby=".$this->sortlinks['sorton']. strtolower($this->sortlinks['sortorder']); ?>"> <div class="js-ticket-cricle-wrp "> <div class="circlebar" data-circle-startTime="0" data-circle-maxValue="<?php echo $overdue_percentage; ?>" data-circle-dialWidth=15 data-circle-size="100px" data-circle-type="progress"> <div class="loader-bg"></div> </div> </div> <div class="js-ticket-link-text"> <?php echo JText::_('Overdue'); if($this->config['show_count_tickets'] == 1) echo " ( " . $this->ticketinfo['isoverdue'] . " ) "; ?> </div> </a> </div> <div class="js-col-xs-12 js-col-md-2 js-myticket-link js-ticket-link js-ticket-myticket-link-myticket js-ticket-allticket"> <a class="js-ticket-blue js-myticket-link js-ticket-link <?php if ($this->lt == 5) echo 'selected'; ?>" href="index.php?option=com_jssupportticket&c=ticket&layout=myticketsstaff<?php echo htmlspecialchars('<'); ?>=5&Itemid=<?php echo $this->Itemid."&sortby=".$this->sortlinks['sorton']. strtolower($this->sortlinks['sortorder']); ?>"> <div class="js-ticket-cricle-wrp "> <div class="circlebar" data-circle-startTime="0" data-circle-maxValue="<?php echo $allticket_percentage; ?>" data-circle-dialWidth=15 data-circle-size="100px" data-circle-type="progress"> <div class="loader-bg"></div> </div> </div> <div class="js-ticket-link-text"> <?php echo JText::_('All Tickets'); if($this->config['show_count_tickets'] == 1) echo " ( " . $this->ticketinfo['mytickets'] . " ) "; ?> </div> </a> </div> </div> <!-- Search Portion --> <div class="js-combine-search-wrapper"> <div class="js-combine-search-form-wrp"> <form class="js-tk-combinesearch" method="post" name="adminForm" id="adminForm"> <div class="js-filter-wrapper"> <div class="js-col-md-3 js-filter-field-wrp js-ticket-margin-bottom-null"> <input type="text" name="filter_ticketid" id="filter_ticketid" value="<?php if (isset($this->filter_data['ticketid'])) echo $this->filter_data['ticketid']; ?>" class="js-ticket-input-field" placeholder="<?php echo JText::_('Ticket ID'); ?>" /> </div> <div class="js-col-md-3 js-filter-field-wrp js-ticket-margin-bottom-null"> <input type="text" name="filter_from" id="filter_from" class="js-ticket-input-field" value="<?php if (isset($this->filter_data['from'])) echo $this->filter_data['from']; ?>" placeholder="<?php echo JText::_('From'); ?>" /> </div> <div class="js-col-md-3 js-filter-field-wrp js-ticket-margin-bottom-null"> <input type="text" name="filter_email" id="filter_email" class="js-ticket-input-field" value="<?php if (isset($this->filter_data['email'])) echo $this->filter_data['email']; ?>" placeholder="<?php echo JText::_('Email'); ?>" /> </div> <div id="js-filter-wrapper-toggle-area"> <div class="js-col-md-3 js-filter-field-wrp"> <?php echo $this->lists['departments']; ?> </div> <div class="js-col-md-3 js-filter-field-wrp"> <?php echo $this->lists['priorities']; ?> </div> <div class="js-col-md-3 js-filter-field-wrp"> <input type="text" name="filter_subject" id="filter_subject" class="js-ticket-input-field" value="<?php if (isset($this->filter_data['subject'])) echo $this->filter_data['subject']; ?>" placeholder="<?php echo JText::_('Subject'); ?>" /> </div> <div class="js-col-md-3 js-filter-field-wrp"> <?php echo JHTML::_('calendar', isset($this->filter_data['datestart']) ? $this->filter_data['datestart'] : '', 'filter_datestart', 'filter_datestart', $js_dateformat, array('class' => 'js-ticket-input-field', 'size' => '10', 'maxlength' => '19' , 'placeholder' => JText::_('Start Date'))); ?> </div> <div class="js-col-md-3 js-filter-field-wrp"> <?php echo JHTML::_('calendar', isset($this->filter_data['dateend']) ? $this->filter_data['dateend'] : '', 'filter_dateend', 'filter_dateend', $js_dateformat, array('class' => 'js-ticket-input-field', 'size' => '10', 'maxlength' => '19' , 'placeholder' => JText::_('End Date'))); ?> </div> <?php if($this->viewuser_permission == 1){ ?> <div class="js-col-md-3 js-filter-field-wrp js-ticket-margin-bottom-null"> <?php echo $this->lists['staffmembers']; ?> </div> <?php } ?> <div class="js-col-md-3 js-filter-field-wrp js-ticket-margin-bottom-null"> <div class="js-ticket-assigned-tome"> <?php $assigntome_options = array( array('value'=>0,'text'=>JText::_('All Tickets')), array('value'=>1,'text'=>JText::_('Assigned To Me')) ); echo JHTML::_('select.genericList', $assigntome_options, 'filter_assignedtome', '', 'value', 'text',isset($this->filter_data['assignedtome']) ? $this->filter_data['assignedtome'] : 0); ?> </div> </div> <?php $params = null; if(isset($this->filter_data['params'])){ $params = $this->filter_data['params']; } $k = 1; $customfields = getCustomFieldClass()->userFieldsForSearch(1); if(!empty($customfields)){ foreach ($customfields as $field) { getCustomFieldClass()->formCustomFieldsForSearch($field, $k, $params); } if(sizeof($customfields) == 1 && $customfields[0]->userfieldtype == 'termsandconditions' ){ } else{ echo '</div>'; // last div close on the user fields } } ?> </div> <div class="js-col-md-3 js-filter-button-wrp"> <span id="js-filter-wrapper-toggle-btn"> <span id="js-filter-wrapper-toggle-plus"> <a href="#" class="js-search-filter-btn" id="js-search-filter-toggle-btn"><?php echo JText::_('Show All'); ?></a> </span> </span> <span class="js-filter-button-wrp"> <button class="js-ticket-filter-button js-ticket-search-btn" onclick="this.form.submit();"><?php echo JText::_('Search'); ?> </button> <button class="js-ticket-filter-button js-ticket-reset-btn" onclick="resetJsForm();this.form.submit();"><?php echo JText::_('Reset'); ?> </button> </span> <input type="hidden" name="sortby" id="sortby"> <input type="hidden" name="sortorder" id="sortorder"> </div> </div> </form> </div> </div> <!-- Sorting Portion --> <?php $link = 'index.php?option=com_jssupportticket&c=ticket&layout=myticketsstaff&Itemid='.$this->Itemid . htmlspecialchars('<').'='.$this->listtype; if ($this->sortlinks['sortorder'] == 'ASC') $img = "components/com_jssupportticket/include/images/sort1.png"; else $img = "components/com_jssupportticket/include/images/sort2.png"; ?> <div class="js-ticket-sorting js-col-md-12"> <div class="js-ticket-sorting-left"> <div class="js-ticket-sorting-heading"> <?php echo JText::_('All Tickets'); ?> </div> </div> <div class="js-ticket-sorting-right"> <div class="js-ticket-sort"> <select class="js-ticket-sorting-select"> <option value="<?php if($this->sortlinks['sortorder'] == 'ASC') echo 'subjectasc'; else echo 'subjectdesc'; ?>" <?php if($this->sortlinks['sorton'] == 'subject') echo 'selected'; ?>><?php echo JText::_('Subject'); ?></option> <option value="<?php if($this->sortlinks['sortorder'] == 'ASC') echo 'priorityasc'; else echo 'prioritydesc'; ?>" <?php if ($this->sortlinks['sorton'] == 'priority') echo 'selected'; ?>><?php echo JText::_('Priority'); ?></option> <option value="<?php if($this->sortlinks['sortorder'] == 'ASC') echo 'ticketidasc'; else echo 'ticketiddesc'; ?>" <?php if ($this->sortlinks['sorton'] == 'ticketid') echo 'selected'; ?>><?php echo JText::_('Ticket ID'); ?></option> <option value="<?php if($this->sortlinks['sortorder'] == 'ASC') echo 'answeredasc'; else echo 'answereddesc'; ?>" <?php if ($this->sortlinks['sorton'] == 'answered') echo 'selected'; ?>><?php echo JText::_('Answered'); ?></option> <option value="<?php if($this->sortlinks['sortorder'] == 'ASC') echo 'statusasc'; else echo 'statusdesc'; ?>" <?php if ($this->sortlinks['sorton'] == 'status') echo 'selected'; ?>><?php echo JText::_('Status'); ?></option> <option value="<?php if($this->sortlinks['sortorder'] == 'ASC') echo 'createdasc'; else echo 'createddesc'; ?>" <?php if ($this->sortlinks['sorton'] == 'created') echo 'selected'; ?>><?php echo JText::_('Created'); ?></option> </select> <a href="javascript:void(0)" id="jssortbtn" class="js-admin-sort-btn" title="sort"> <img src="<?php echo $img; ?>"> </a> </div> </div> </div> <!-- Staff My Ticket list --> <?php if (!(empty($this->result)) && is_array($this->result)) { foreach ($this->result AS $row) { $link = 'index.php?option=' . $this->option . '&c=ticket&layout=ticketdetail&id='.$row->id.'&Itemid='.$this->Itemid; ?> <div id="js-tk-wrapper"> <div class="js-icon"> <?php if ($row->staffphoto) { ?> <img class="js-ticket-icon-img" src="<?php echo JURI::root(). $this->config['data_directory'] . "/staffdata/staff_" . $row->staffid . "/" . $row->staffphoto; ?>" /> <?php } else { ?> <img class="js-ticket-icon-img" src="<?php echo JURI::root(); ?>components/com_jssupportticket/include/images/user.png" /> <?php } ?> </div> <div class="js-middle"> <div class="js-col-md-12 js-wrapper js-ticket-body-data-elipses name"><span class="js-tk-value" onClick="setFromNameFilter('<?php echo $row->email; ?>');"><?php echo $row->name; ?></span> </div> <div class="js-col-md-12 js-wrapper js-tk-textwrap js-ticket-body-data-elipses"><span class="js-tk-value subject"><a class="js-ticket-title-anchor" href="<?php echo $link; ?>"> <?php echo $row->subject; ?></a></span> </div> <div class="js-col-md-12 js-tk-preletive js-wrapper js-ticket-body-data-elipses"> <span class="js-tk-title"><?php echo JText::_('Department'); ?><font> :</font></span><span class="js-tk-value" onclick="setDepartmentFilter(<?php echo $row->departmentid;?>);"><?php echo ' '.$row->departmentname; ?></span> </div> <?php $customfields = getCustomFieldClass()->userFieldsData(1, 1); foreach ($customfields as $field) { echo getCustomFieldClass()->showCustomFields($field,1, $row->params , $row->id); } ?> </div> <div class="js-right"> <span class="js-tk-status-img"> <?php $counter = 'one'; if ($row->ticketviaemail == 1) { ?> <span class="ticketstatusimage <?php echo $counter;$counter = 'two'; ?>" style="color: #0066CC;"><?php echo JText::_('Ticket Via Email'); ?></span> <?php } ?> <?php if ($row->lock == 1) { ?> <img class="ticketstatusimage <?php echo $counter; ?>" src="<?php echo JURI::root(); ?>components/com_jssupportticket/include/images/lock.png" title="<?php echo JText::_('Ticket Is Locked'); ?>" /> <?php if($counter == 'one') { $counter = 'two'; } else if($counter == 'two') { $counter = 'three'; } ?> <?php } ?> <?php if ($row->isoverdue == 1) { ?> <img class="ticketstatusimage <?php echo $counter; ?>" src="<?php echo JURI::root(); ?>components/com_jssupportticket/include/images/over-due.png" title="<?php echo JText::_('Ticket Mark Overdue'); ?>" /> <?php } ?> </span> <?php if ($row->lock == 1) { ?> <span class="js-ticket-status" style="color: darkred;"><?php echo JText::_('Lock'); ?></span> <?php } elseif ($row->status == 0) { ?> <span class="js-ticket-status" style="color: #9ACC00;"><?php echo JText::_('New'); ?></span> <?php } elseif ($row->status == 1) { ?> <span class="js-ticket-status" style="color: orange;"><?php echo JText::_('Waiting Reply'); ?></span> <?php } elseif ($row->status == 2) { ?> <span class="js-ticket-status" style="color: #FF7F50;"><?php echo JText::_('In Progress'); ?></span> <?php } elseif ($row->status == 3) { ?> <span class="js-ticket-status" style="color: #507DE4;"><?php echo JText::_('Replied'); ?></span> <?php } elseif ($row->status == 4) { ?> <span class="js-ticket-status" style="color: #CB5355;"><?php echo JText::_('Close'); ?></span> <?php } elseif ($row->status == 5){ ?> <span class="js-ticket-status" style="color: #ee1e22;"><?php echo JText::_('Close Due To Merge'); ?></span> <?php } ?> <?php /* </span> */?> <span class="js-ticket-priorty-box" style="background:<?php echo $row->prioritycolour; ?>;color:#fff;"><?php echo JText::_($row->priority); ?> </span> <div class="js-ticket-right-data"> <div class="js-ticket-data-row js-wrapper"><span class="js-tk-title"><?php echo JText::_('Ticket ID'); ?><font> : </font></span><span class="js-tk-value"> <?php echo $row->ticketid; ?></span></div> <div class="js-ticket-data-row js-wrapper"><span class="js-tk-title"><?php echo JText::_('Last Reply'); ?><font> : </font></span><span class="js-tk-value"><?php if ($row->lastreply == '' || $row->lastreply == '0000-00-00 00:00:00') echo JText::_('No Last reply'); else echo JHtml::_('date',$row->lastreply,$this->config['date_format']); ?></span> </div> <?php /* <div class="js-ticket-data-row js-wrapper"><span class="js-tk-title"><?php echo JText::_('Last Reply By'); ?><font> : </font></span><span class="js-tk-value"><?php echo $row->lastreplyby; ?></span> </div> */?> <div class="js-ticket-data-row js-wrapper"></div> <?php $forlisting = $this->getJSModel('userfields')->getFieldsForListing(1); if($forlisting['assignto'] == 1){ ?> <div class="js-ticket-data-row js-wrapper"><span class="js-tk-title"><?php echo JText::_('Assign To : '); ?></span><span class="js-tk-value"><?php echo JText::_($row->staffname); ?></span></div> <?php } ?> </div> </div> </div> <?php }//end foreach ?> <form action="<?php echo JRoute::_('index.php?option=com_jssupportticket&c=ticket&layout=myticketsstaff'. htmlspecialchars('<') .$this->lt.'&Itemid=' . $this->Itemid); ?>" method="post"> <div id="jl_pagination" class="pagination"> <div id="jl_pagination_pageslink"> <?php echo $this->pagination->getPagesLinks(); ?> </div> <div id="jl_pagination_box"> <?php // echo JText::_('Display #'); echo $this->pagination->getLimitBox(); ?> </div> <div id="jl_pagination_counter"> <?php echo $this->pagination->getResultsCounter(); ?> </div> </div> </form> <?php } else { messageslayout::getRecordNotFound(); // empty record } }else{ messageslayout::getStaffDisable(); //staff disabled } }else{ messageslayout::getNotStaffMember(); //user not staff } }else{ messageslayout::getUserGuest($this->layoutname,$this->Itemid); //user guest } }else{ messageslayout::getPermissionNotAllow(); //permission not granted } }else{ messageslayout::getSystemOffline($this->config['title'],$this->config['offline_text']); //offline }//End ?> <script type="text/javascript"> jQuery(document).ready(function () { jQuery('div.tk_mt_create_info').on("mouseover", function () { var obj = this; var scrollingWidth = jQuery(obj).find('span.tk_mt_create_info_text span.tk_mt_detail_text_sliding').width(); scrollingWidth = scrollingWidth + 10; var initialOffset = jQuery(obj).find('span.tk_mt_create_info_text span.tk_mt_detail_text_sliding').offset().left; stopAnim = false; animateTitle(obj, scrollingWidth, initialOffset); }); jQuery('div.tk_mt_create_info').on("mouseout", function () { obj = this; stopAnim = true; jQuery(obj).find('span.tk_mt_create_info_text span.tk_mt_detail_text_sliding').stop(true, true).css("left", "0"); }); var stopAnim = false; function animateTitle(obj, scrollingWidth, initialOffset) { if (!stopAnim) { var $span = jQuery(obj).find('span.tk_mt_create_info_text span.tk_mt_detail_text_sliding'); var parent_div_width = jQuery(obj).width(); var child_div = jQuery(obj).find('span.tk_mt_create_info_text span.tk_mt_detail_text_clr').width(); var scroll_div_width = parent_div_width - child_div; var animatewidth = (jQuery($span).width()) / 4; //if(child_div >= 82){ if ((animatewidth < scroll_div_width)) { //$span.animate({left: (($span.offset().left === (scrollingWidth + initialOffset ))?-initialOffset:("-="+scrollingWidth))}, $span.animate({left: (($span.offset().left === (scrollingWidth + initialOffset)) ? -initialOffset : ("-=" + animatewidth))}, //$span.animate({left:"-="+animatewidth,'width':"="+animatewidth}, { duration: 6000, easing: 'swing', complete: function () { if ($span.offset().left < scroll_div_width) { //jQuery(this).css("left", scrollingWidth); jQuery(this).css("left", scrollingWidth); } //animateTitle(obj,scrollingWidth); } }); } //} } } }); </script> </div> <script type="text/javascript"> function resetJsForm(){ var form = jQuery('form#adminForm'); form.find("input[type=text], input[type=email], input[type=password], textarea").val(""); form.find('input:checkbox').removeAttr('checked'); form.find('select').prop('selectedIndex', 0); form.find('input[type="radio"]').prop('checked', false); jQuery("<input type='hidden' value='1' />") .attr("id", "jsresetbutton") .attr("name", "jsresetbutton") .appendTo(form); } function setDepartmentFilter( depid ){ jQuery('#filter_department').val( depid ); jQuery('form#adminForm').submit(); } function setFromNameFilter( email ){ jQuery('#filter_email').val( email ); jQuery('form#adminForm').submit(); } function getDataForDepandantField(parentf, childf, type) { if (type == 1) { var val = jQuery("select#" + parentf).val(); } else if (type == 2) { var val = jQuery("input[name=" + parentf + "]:checked").val(); if(val === undefined){ var val = jQuery("input[name=\"" + parentf + "[]\"]:checked").val(); } } jQuery.post('index.php?option=com_jssupportticket&c=ticket&task=datafordepandantfield&<?php echo JSession::getFormToken(); ?>=1', {fvalue: val, child: childf}, function (data) { if (data) { console.log(data); var d = jQuery.parseJSON(data); jQuery("select#" + childf).replaceWith(d); } }); } </script>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка