Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_jssupportticket/views/staff/tmpl/staffmembers.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'); ?> <script> function confirmdeletevehicle(id, task) { if (confirm("<?php echo JText::_('Are you sure to delete'); ?>") == true) { return listItemTask(id, task); } else return false; } </script> <div id="js-tk-admin-wrapper"> <div id="js-tk-leftmenu"> <?php include_once('components/com_jssupportticket/views/menu.php'); ?> </div> <div id="js-tk-cparea"> <div id="jsstadmin-wrapper-top"> <div id="jsstadmin-wrapper-top-left"> <div id="jsstadmin-breadcrunbs"> <ul> <li> <a href="index.php?option=com_jssupportticket&c=jssupportticket&layout=controlpanel" title="Dashboard"> <?php echo JText::_('Dashboard'); ?> </a> </li> <li> <?php echo JText::_('Staff Members'); ?> </li> </ul> </div> </div> <div id="jsstadmin-wrapper-top-right"> <div id="jsstadmin-config-btn"> <a title="Configuration" href="index.php?option=com_jssupportticket&c=config&layout=config"> <img alt="Configuration" src="components/com_jssupportticket/include/images/config.png"> </a> </div> <div id="jsstadmin-vers-txt"> <?php echo JText::_('Version').JText::_(' : '); ?> <span class="jsstadmin-ver"> <?php $version = str_split($this->version); $version = implode('.', $version); echo $version; ?> </span> </div> </div> </div> <div id="js-tk-heading"> <h1 class="jsstadmin-head-text"> <?php echo JText::_('Staff Members'); ?> </h1> <?php $link = 'index.php?option='.$this->option.'&c=staff&task=editstaffmember&cid[]=""'; ?> <a class="tk-heading-addbutton" href="<?php echo $link; ?>"> <img class="js-heading-addimage" src="components/com_jssupportticket/include/images/plus.png"> <?php echo JText::_('Add Staff Member'); ?> </a> </div> <form action="index.php" method="post" name="adminForm" id="adminForm" class="jsstadmin-data-wrp"> <div id="js-tk-filter"> <div class="tk-search-value"><input type="text" placeholder="<?php echo JText::_('Username'); ?>" name="filter_sm_username" id="filter_sm_username" value="<?php if (isset($this->lists['username'])) echo $this->lists['username']; ?>"/></div> <div class="tk-search-value"><?php echo $this->lists['roles']; ?></div> <div class="tk-search-value"><?php echo $this->lists['status']; ?></div> <div class="tk-search-button"> <button onclick="this.form.submit();" class="js-form-search"><?php echo JText::_('Search'); ?></button> <button class="js-form-reset" onclick="document.getElementById('filter_sm_username').value = ''; document.getElementById('filter_sm_roleid').value = ''; document.getElementById('filter_sm_statusid').value = ''; this.form.submit();"><?php echo JText::_('Reset'); ?></button> </div> </div> <?php if (!(empty($this->staffmembers)) && is_array($this->staffmembers)) { ?> <table id="js-table" class="js-ticket-box-shadow"> <thead> <tr> <th class="center"><?php echo JText::_("S.No"); ?></th> <th><?php echo JText::_("Full Name"); ?></th> <th class="center"><?php echo JText::_("Username"); ?></th> <th class="center"><?php echo JText::_("Role"); ?></th> <th class="center"><?php echo JText::_("Permissions"); ?></th> <th class="center"><?php echo JText::_("Status"); ?></th> <th class="center"><?php echo JText::_("Created"); ?></th> <th class="center"><?php echo JText::_("Action"); ?></th> </tr> </thead> <tbody> <?php $i = 0; $k = 0; foreach ($this->staffmembers AS $row) { $checked = JHTML::_('grid.id', $i, $row->id); $per_link = 'index.php?option=com_jssupportticket&c=userpermissions&layout=userpermissions&staffid=' . $row->id; if($row->status == 1) $icon_status = 'good.png'; else $icon_status = 'close.png'; $editlink ='index.php?option='.$this->option.'&c=staff&task=editstaffmember&cid[]='.$row->id; $deletelink = 'index.php?option='.$this->option.'&c=staff&task=removestaffmember&cid[]='.$row->id.'&'. JSession::getFormToken() .'=1'; ?> <tr> <td class="center"><?php echo $k + 1 + $this->pagination->limitstart; ?></td> <td><a href="<?php echo $editlink;?>"><?php echo $row->firstname . ' ' . $row->lastname; ?></a></td> <td class="center"><?php echo $row->username; ?></td> <td class="center"><?php echo JText::_($row->groupname); ?></td> <td class="center"><a href="<?php echo $per_link; ?>"> <?php echo JText::_('Permissions'); ?></a></td> <td class="center"><img src="components/com_jssupportticket/include/images/<?php echo $icon_status; ?>"></td> <td class="center"><?php echo JHtml::_('date',$row->created,$this->config['date_format']); ?></td> <td class="center"> <a class="js-tk-button" href="<?php echo $editlink; ?>"> <img src="components/com_jssupportticket/include/images/edit.png"> </a> <a class="js-tk-button" href="<?php echo $deletelink; ?>" onclick='return confirm("<?php echo JText::_("Are you sure to delete"); ?>?");' > <img src="components/com_jssupportticket/include/images/delete.png"> </a> </td> </tr> <?php $i++; $k++; } ?> </tbody> </table> <div class="js-row js-tk-pagination js-ticket-pagination-shadow"> <?php echo $this->pagination->getListFooter(); ?> </div> <?php }else{ messagesLayout::getRecordNotFound(); } ?> <input type="hidden" name="option" value="<?php echo $this->option; ?>"/> <input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?>"/> <input type="hidden" name="c" value="staff"/> <input type="hidden" name="layout" value="staffmembers"/> <input type="hidden" name="task" value=""/> <input type="hidden" name="boxchecked" value="0"/> <?php echo JHtml::_('form.token'); ?> </form> </div> </div> <div id="js-tk-copyright"> <img width="85" src="https://www.joomsky.com/logo/jssupportticket_logo_small.png"> Powered by <a target="_blank" href="https://www.joomsky.com">Joom Sky</a><br/> ©Copyright 2008 - <?php echo date('Y'); ?>, <a target="_blank" href="https://www.burujsolutions.com">Buruj Solutions</a> </div> <script type="text/javascript"> var headertext = [], headers = document.querySelectorAll("#js-table th"), tablerows = document.querySelectorAll("#js-table th"), tablebody = document.querySelector("#js-table tbody"); for(var i = 0; i < headers.length; i++) { var current = headers[i]; headertext.push(current.textContent.replace(/\r?\n|\r/,"")); } for (var i = 0, row; row = tablebody.rows[i]; i++) { for (var j = 0, col; col = row.cells[j]; j++) { col.setAttribute("data-th", headertext[j]); } } </script>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка