Файловый менеджер - Редактировать - /var/www/html/staff.zip
Ðазад
PK ! ��� � view.html.phpnu �[��� <?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'); jimport('joomla.application.component.view'); jimport('joomla.html.pagination'); class JSSupportticketViewStaff extends JSSupportTicketView { function display($tpl = null) { require_once(JPATH_COMPONENT_ADMINISTRATOR."/views/common.php"); JToolBarHelper::title(JText::_('Tickets')); if($layoutName == 'formstaff'){ $cids = JFactory::getApplication()->input->get('cid', array (0), '', 'array'); $c_id= $cids[0]; $result = $this->getJSModel('staff')->getStaffforForm($c_id); $this->staffid = $c_id; if(isset($result[0])) $this->staff = $result[0]; if(isset($result[1])) $this->user = $result[1]; if(isset($result[2])) $this->lists = $result[2]; if(isset($result[3])) $this->userpermissions = $result[3]; if(isset($result[4])) $this->userdepartments = $result[4]; $isNew = true; if ( isset($result[0]->id) ) $isNew = false; $text = $isNew ? JText::_('Add') : JText::_('Edit'); JToolBarHelper::title(JText::_('Staff member').'<small><small> ['.$text.']</small></small>' ); JToolBarHelper::save('savestaffmembersave','Save Staff Member'); JToolBarHelper::save2new('savestaffmemberandnew'); JToolBarHelper::save('savestaffmember'); if ($isNew) JToolBarHelper::cancel('cancelstaff'); else JToolBarHelper::cancel('cancelstaff', 'Close'); JHTML::_('behavior.formvalidator'); }elseif($layoutName == 'staffmembers'){ //vehicles JToolBarHelper::title(JText::_('Staff members') ); $username = JFactory::getApplication()->input->getString('filter_sm_username'); $roleid = $mainframe->getUserStateFromRequest( $option.'filter_sm_roleid', 'filter_sm_roleid', '', 'int' ); $statusid = $mainframe->getUserStateFromRequest($option.'filter_sm_statusid', 'filter_sm_statusid', '', 'int'); $result = $this->getJSModel('staff')->getAllStaffMembers($username,$roleid,$statusid ,$limitstart, $limit); $total = $result[1]; if ( $total <= $limitstart ) $limitstart = 0; $pagination = new JPagination( $total, $limitstart, $limit ); JToolBarHelper::addNew('editstaffmember'); JToolBarHelper::editList('editstaffmember'); JToolBarHelper::deleteList('Are you sure to delete','removestaffmember'); $this->staffmembers = $result[0]; $this->lists = $result[2]; $this->pagination=$pagination; }elseif($layoutName == 'users'){ // users JToolBarHelper::title(JText::_('Users')); JToolBarHelper::editList(); $form = 'com_jssupportticket.users.list.'; $searchname = $mainframe->getUserStateFromRequest( $form.'searchname', 'searchname','', 'string' ); $searchusername = $mainframe->getUserStateFromRequest( $form.'searchusername', 'searchusername','', 'string' ); $searchrole = $mainframe->getUserStateFromRequest( $form.'searchrole', 'searchrole','', 'string' ); $result = $this->getJSModel('staff')->getAllUsers($searchname,$searchusername,$searchrole, $limitstart, $limit); $items = $result[0]; $total = $result[1]; $lists = $result[2]; if ( $total <= $limitstart ) $limitstart = 0; $pagination = new JPagination( $total, $limitstart, $limit ); $this->pagination=$pagination; $this->items = $items; $this->lists = $lists; } parent::display($tpl); } } ?> PK ! index.htmlnu �[��� PK ! ���-p p tmpl/users.phpnu �[��� <?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'); ?> <table width="100%"> <tr> <td width="100%" valign="top"> <form action="index.php?option=com_jssupportticket&c=staff&layout=users&tmpl=component" method="post" name="adminForm" id="adminForm"> <tr> <td width="100%"> <strong><?php echo JText::_(''); ?></strong> </td> <td nowrap> <?php echo JText::_('Name'); ?>: <input type="text" name="searchname" id="searchname" value="<?php if (isset($this->lists['searchname'])) echo $this->lists['searchname']; ?>" class="text_area" onchange="document.adminForm.submit();" /> </td> <td nowrap > <?php echo JText::_('Username'); ?>: <input type="text" name="searchusername" id="searchusername" size="15" value="<?php if (isset($this->lists['searchusername'])) echo $this->lists['searchusername']; ?>" class="text_area" onchange="document.adminForm.submit();" /> </td> <td> <button onclick="document.getElementById('searchname').value = ''; document.getElementById('searchusername').value = ''; document.getElementById('searchrole').value = ''; this.form.submit();"><?php echo JText::_('Reset'); ?></button> </td> </tr> <table class="adminlist" cellpadding="1"> <thead> <tr> <th width="2%" class="title"> <?php echo JText::_('Num'); ?> </th> <th width="3%" class="title"> <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->items); ?>);" /> </th> <th width="15%" class="title"><?php echo JText::_('Name'); ?></th> <th width="15%" class="title" ><?php echo JText::_('Username'); ?></th> <th width="4%" class="title" nowrap="nowrap"><?php echo JText::_('Id'); ?></th> </tr> </thead> <tfoot> <tr> <td colspan="10"> <?php echo $this->pagination->getListFooter(); ?> </td> </tr> </tfoot> <tbody> <?php $k = 0; for ($i = 0, $n = count($this->items); $i < $n; $i++) { $row = & $this->items[$i]; $img = $row->block ? 'publish_x.png' : 'tick.png'; $task = $row->block ? 'unblock' : 'block'; $alt = $row->block ? JText::_('Enabled') : JText::_('Blocked'); ?> <tr class="<?php echo "row$k"; ?>"> <td> <?php echo $i + 1 + $this->pagination->limitstart; ?> </td> <td><?php echo JHTML::_('grid.id', $i, $row->id); ?></td> <td><a onclick="window.parent.setuser('<?php echo $row->username; ?>', '<?php echo $row->id; ?>'); " ><?php echo $row->name; ?></a></td> <td><?php echo $row->username; ?> </td> <td><?php echo $row->id; ?> </td> </tr> <?php $k = 1 - $k; } ?> </tbody> </table> <input type="hidden" name="option" value="<?php echo $this->option; ?>" /> <input type="hidden" name="c" value="staff" /> <input type="hidden" name="layout" value="users" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?>" /> <input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" /> <input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" /> <?php echo JHTML::_('form.token'); ?> </form> </td> </tr> </table> PK ! tmpl/index.htmlnu �[��� PK ! �I&�c c tmpl/formstaff.phpnu �[��� <?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'); JHTML::_('behavior.formvalidator'); JHTML::_('bootstrap.renderModal'); $document = JFactory::getDocument(); $document->addScript('components/com_jssupportticket/include/js/permission/permission.js'); global $mainframe; ?> <script type="text/javascript"> function updateuserlist(pagenum){ var username = jQuery("input#username").val(); var name = jQuery("input#name").val(); var emailaddress = jQuery("input#emailaddress").val(); jQuery.post("index.php?option=com_jssupportticket&c=staff&task=getusersearchajax&<?php echo JSession::getFormToken(); ?>=1", {username:username,name:name,emailaddress:emailaddress,userlimit:pagenum}, function (data) { if(data){ jQuery("div#records").html(""); jQuery("div#records").html(data); setUserLink(); } }); } function setUserLink() { jQuery("a.js-userpopup-link").each(function () { var anchor = jQuery(this); jQuery(anchor).click(function (e) { var id = jQuery(this).attr('data-id'); var name = jQuery(this).html(); var email = jQuery(this).attr('data-email'); var displayname = jQuery(this).attr('data-name'); jQuery("input#username").val(name); if(jQuery('input#firstname').val() == ''){ jQuery('input#firstname').val(displayname); } if(jQuery('input#email').val() == ''){ jQuery('input#email').val(email); } jQuery("input#uid").val(id); jQuery("div#userpopup").slideUp('slow', function () { jQuery("div#userpopupblack").hide(); }); }); }); } jQuery(document).ready(function ($) { jQuery("a#userpopup").click(function (e) { e.preventDefault(); jQuery("div#userpopupblack").show(); jQuery.post("index.php?option=com_jssupportticket&c=staff&task=getusersearchajax&<?php echo JSession::getFormToken(); ?>=1",{},function(data){ if(data){ jQuery('div#records').html(""); jQuery('div#records').html(data); setUserLink(); } }); jQuery("div#userpopup").slideDown('slow'); }); jQuery("form#userpopupsearch").submit(function (e) { e.preventDefault(); var username = jQuery("input#username").val(); var name = jQuery("input#name").val(); var emailaddress = jQuery("input#emailaddress").val(); jQuery.post("index.php?option=com_jssupportticket&c=staff&task=getusersearchajax&<?php echo JSession::getFormToken(); ?>=1", {name: name, emailaddress: emailaddress, username: username}, function (data) { if (data) { jQuery("div#records").html(data); setUserLink(); } });//jquery closed }); jQuery("span.close, div#userpopupblack").click(function (e) { jQuery("div#userpopup").slideUp('slow', function () { jQuery("div#userpopupblack").hide(); }); }); }); // for joomla 1.6 Joomla.submitbutton = function (task) { if (task == '') { return false; } else { if (task == 'savestaffmember' || task == 'savestaffmemberandnew' || task == 'savestaffmembersave') { returnvalue = validate_form(document.adminForm); } else returnvalue = true; if (returnvalue) { Joomla.submitform(task); return true; } else return false; } } function validate_form(f) { if (document.formvalidator.isValid(f)) { f.check.value = '<?php if ((JVERSION == '1.5') || (JVERSION == '2.5')) echo JUtility::getToken(); else echo JSession::getFormToken(); ?>';//send token } else { alert("<?php echo JText::_('Some values are not acceptable please retry'); ?>"); return false; } return true; } </script> <div id="userpopupblack" style="display:none;"></div> <div id="userpopup" style="display:none;"> <div> <form id="userpopupsearch"> <div class="search-center"> <div class="search-center-heading"><?php echo JText::_('Select user'); ?><span class="close"></span></div> <div class="js-col-md-12"> <div class="js-col-xs-12 js-col-md-3 js-search-value"> <input type="text" name="username" id="username" placeholder="<?php echo JText::_('Username'); ?>" /> </div> <div class="js-col-xs-12 js-col-md-3 js-search-value"> <input type="text" name="name" id="name" placeholder="<?php echo JText::_('Name'); ?>" /> </div> <div class="js-col-xs-12 js-col-md-3 js-search-value"> <input type="text" name="emailaddress" id="emailaddress" placeholder="<?php echo JText::_('Email Address'); ?>"/> </div> <div class="js-col-xs-12 js-col-md-3 js-search-value-button"> <div class="js-button"> <input type="submit"class="js-button-search" value="<?php echo JText::_('Search'); ?>" /> </div> <div class="js-button"> <input type="submit" class="js-button-reset" onclick="document.getElementById('name').value = '';document.getElementById('username').value = ''; document.getElementById('emailaddress').value = '';" value="<?php echo JText::_('Reset'); ?>" /> </div> </div> </div> </div> </form> </div> <div id="records"> <div id="records-inner"> <div class="js-staff-searc-desc"> <?php echo JText::_('Use Search Feature To Select The User'); ?> </div> </div> </div> </div> <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::_('Add Staff Member'); ?></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 /* <img id="js-admin-responsive-menu-link" src="components/com_jssupportticket/include/images/c_p/left-icons/menu.png" /> */ ?> <?php echo JText::_('Add Staff Member'); ?></h1> </div> <div id="jsstadmin-data-wrp" class="js-ticket-box-shadow"> <form action="index.php" method="POST" enctype="multipart/form-data" name="adminForm" id="adminForm"> <div class="js-form-wrapper"> <div class="js-title"> <label for="username"> <?php echo JText::_('Username'); ?>: <font color="red">*</font> </label> </div> <div class="js-value"> <input class="inputbox js-form-diabled-field required" type="text" name="username" id="username" value="<?php if (isset($this->user)) {echo $this->user->username; } else {echo ""; } ?>" /> <a id="userpopup" href="#"><?php echo JText::_('Select user') ?></a> </div> </div> <div class="js-form-wrapper"> <div class="js-title"><label for="roleid"><?php echo JText::_('Role'); ?>: <font color="red">*</font></label></div> <div class="js-value"> <?php echo $this->lists['roles'] ?> </div> </div> <?php if ($this->staffid != "" && $this->staffid != 0 && is_numeric($this->staffid) == true) { ?> <div class="js-col-md-12" id="rolepermissionedit"> <?php $deptext = JText::_('Department section'); $depid = "uad_alldepartmentaccess"; $depclass = "uad_departmentaccess"; ?> <div class="js-per-subheading"> <span class="head-text"><?php echo $deptext; ?></span> <span class="head-checkbox"><input type="checkbox" id="<?php echo $depid; ?>" <?php if (!$this->staffid) echo 'checked="checked"'; ?> onclick="selectdeseletsection('<?php echo $depid; ?>', '<?php echo $depclass; ?>');" /> <label for="<?php echo $depid; ?>"><?php echo JText::_('Select / Deselect All'); ?></label></span> </div> <div class="js-per-wrapper"> <?php foreach ($this->userdepartments AS $dep) { ?> <div class="js-col-md-4 js-per-datawrapper"> <div class="js-per-data"> <?php $dchecked_or_not = ""; if ($this->staffid) { //edit case if (isset($dep->userdepartmentid)) { $dchecked_or_not = ($dep->userdepartmentid == $dep->id) ? "checked='checked'" : ""; } } else { //add case $dchecked_or_not = "checked='checked'"; } ?> <input type='checkbox' id="<?php echo 'roledepdata_' . $dep->name; ?>" class="<?php echo $depclass; ?>" name='roledepdata[<?php echo $dep->name; ?>]' value="<?php echo $dep->id ?>" <?php echo $dchecked_or_not; ?> /> <label for="<?php echo 'roledepdata_' . $dep->name; ?>"><?php echo JText::_($dep->name); ?></label> </div> </div> <?php } ?> </div> <?php $pgroup = ""; foreach ($this->userpermissions AS $per) { if ($pgroup != $per->pgroup) { $pgroup = $per->pgroup; switch ($pgroup) { case 1: $text = JText::_('Ticket section'); $id = "t_s_allrolepermision"; $class = "t_s_rolepermission"; $section = 'ticke'; break; case 2: $text = JText::_('Staff section'); $id = "s_s_allrolepermision"; $class = "s_s_rolepermission"; $section = 'staff'; break; case 3: $text = JText::_('Knowledge base section'); $id = "kb_s_allrolepermision"; $class = "kb_s_rolepermission"; $section = 'kb'; break; case 4: $text = JText::_('FAQ section'); $id = "f_s_allrolepermision"; $class = "f_s_rolepermission"; $section = 'faqs'; break; case 5: $text = JText::_('Download section'); $id = "d_s_allrolepermision"; $class = "d_s_rolepermission"; $section = 'downloads'; break; case 6: $text = JText::_('Announcement section'); $id = "a_s_allrolepermision"; $class = "a_s_rolepermission"; $section = 'announcement'; break; case 7: $text = JText::_('Mail section'); $id = "ms_s_allrolepermision"; $class = "ms_s_rolepermission"; $section = 'mail'; break; } ?> <div class="js-per-subheading"> <span class="head-text"><?php echo $text; ?></span> <span class="head-checkbox"><input type="checkbox" id="<?php echo $id; ?>" <?php if (!$this->staffid) echo 'checked="checked"'; ?> onclick="selectdeseletsection('<?php echo $id; ?>', '<?php echo $class; ?>');" /><label for="<?php echo $id; ?>" ><?php echo JText::_('Select / Deselect All'); ?></label></span> </div> <?php } ?> <div class="js-per-wrapper"> <div class="js-col-md-4 js-per-datawrapper"> <div class="js-per-data"> <?php $checked_or_not = ""; if ($this->staffid) { //edit case if (isset($per->userpermissionid)) { $checked_or_not = ($per->userpermissionid == $per->id) ? "checked='checked'" : ""; } } else { //add case $checked_or_not = "checked='checked'"; } ?> <input type='checkbox' id="<?php echo $section . '_' . $per->permission; ?>" class="<?php echo $class; ?>" name='roleperdata[<?php echo $per->permission; ?>]' value="<?php echo $per->id ?>" <?php echo $checked_or_not; ?> /> <label for="<?php echo $section . '_' . $per->permission; ?>"><?php echo JText::_($per->permission); ?></label> </div> </div> </div> <?php } ?> <div id='js-tk-per-ajax-bottom-border'></div> </div><?php }//End staff edit ?> <div id="rolepermission"></div> <div class="js-form-wrapper"> <div class="js-title"> <label for="firstname"> <?php echo JText::_('First name'); ?>: <font color="red">*</font> </label> </div> <div class="js-value"> <input class="inputbox required" type="text" id="firstname" name="firstname" value="<?php if (isset($this->staff)) echo $this->staff->firstname; ?>"/> </div> </div> <div class="js-form-wrapper"> <div class="js-title"> <label for="lastname"> <?php echo JText::_('Last name'); ?>: <font color="red">*</font> </label> </div> <div class="js-value"><input class="inputbox required" type="text" id="lastname" name="lastname" value="<?php if (isset($this->staff)) echo $this->staff->lastname; ?>"/></div> </div> <div class="js-form-wrapper"> <div class="js-title"><label for="email"><?php echo JText::_('Email address'); ?>: <font color="red">*</font></label></div> <div class="js-value"><input class="inputbox required validate-email" type="text" size="40" id="email" name="email" value="<?php if (isset($this->staff)) echo $this->staff->email; ?>"/></div> </div> <div class="js-form-wrapper"> <div class="js-title"><?php echo JText::_('Office phone'); ?>: </div> <div class="js-value"><input class="inputbox" type="text" id="phone" name="phone" value="<?php if (isset($this->staff)) echo $this->staff->phone; ?>"/></div> </div> <div class="js-form-wrapper"> <div class="js-title"><?php echo JText::_('Phone Ext'); ?>: </div> <div class="js-value"><input class="inputbox" type="text" id="phoneext" name="phoneext" maxlength="6" value="<?php if (isset($this->staff)) echo $this->staff->phoneext; ?>"/></div> </div> <div class="js-form-wrapper"> <div class="js-title"><?php echo JText::_('Mobile No'); ?>: </div> <div class="js-value"><input class="inputbox" type="text" id="mobile" name="mobile" value="<?php if (isset($this->staff)) echo $this->staff->mobile; ?>"/></div> </div> <div class="js-form-wrapper"> <div class="js-title"><?php echo JText::_('Append signature'); ?>: </div> <div class=" jsst-formfield-radio-button-wrap"> <input class="floatnone" type="checkbox" name="appendsignature" id ="appendsignature" value="1" <?php if (isset($this->staff)) if ($this->staff->appendsignature == 1) echo "checked=''"; ?>/> <label for="appendsignature"><?php echo JText::_('Append'); ?></label> </div> </div> <div class="js-form-wrapper fullwidth"> <div class="js-title"><?php echo JText::_('Signature'); ?>: </div> <div class="js-value"><textarea cols="30" rows="5" id="signature" name="signature"><?php if (isset($this->staff)) echo $this->staff->signature; ?></textarea></div> </div> <div class="js-form-wrapper"> <div class="js-title"><?php echo JText::_('Account Status'); ?>: </div> <div class="js-value-radio-btn"> <div class="jsst-formfield-status-radio-button-wrap"> <input type="radio" name="status" id="active" value="1" <?php if (isset($this->staff)) {if ($this->staff->status == 1) echo "checked="; } else echo "checked="; ?>/><label for="active"><?php echo JText::_('Active'); ?></label> </div> <div class="jsst-formfield-status-radio-button-wrap"> <input type="radio" name="status" id="disable" value="-1" <?php if (isset($this->staff)) if ($this->staff->status == -1) echo "checked="; ?>/><label for="disable"><?php echo JText::_('Disabled'); ?></label> </div> </div> </div> <div class=""><div id="js-submit-btn"><input type="submit" class="button" name="submit_app" onclick="return validate_form(document.adminForm)" value="<?php echo JText::_('Save Staff Member'); ?>" /></div></div> <input type="hidden" name="created" value="<?php if (isset($this->staff)) {echo $this->staff->created; } else {$curdate = date('Y-m-d H:i:s'); echo $curdate; } ?>" /> <input type="hidden" name="update" value="<?php if (isset($this->staff)) {$update = date('Y-m-d H:i:s'); echo $update; } ?>" /> <input type="hidden" id="staffid" name="id" value="<?php if (isset($this->staff->id)) {echo $this->staff->id; } ?>" /> <input type="hidden" name="uid" id="uid" value="<?php if (isset($this->staff)) {echo $this->staff->uid; } ?>" /> <input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?>" /> <input type="hidden" name="c" value="staff" /> <input type="hidden" name="layout" value="formstaff" /> <input type="hidden" name="check" value="" /> <input type="hidden" name="task" value="savestaffmember" /> <input type="hidden" name="option" value="<?php echo $this->option; ?>" /> <?php echo JHtml::_('form.token'); ?> </form> </div> </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" language=Javascript> function getrolepermission(roleid) { jQuery.ajax({ type: "POST", url: "index.php?option=com_jssupportticket&c=rolepermissions&task=getRolePermissionForStaff&roleid=" + roleid + "&<?php echo JSession::getFormToken(); ?>=1", data: roleid, success: function (data) { var isedit = jQuery('#staffid').val(); if (isedit != '' && isedit != 0) { jQuery('#rolepermissionedit').remove(); } jQuery('#rolepermission').slideUp(); jQuery('#rolepermission').slideDown(); jQuery('#rolepermission').html(data); } }); } function getdepartmentsgroup(val) { var pagesrc = 'sf_dept'; jQuery('#' + pagesrc).html("Loading ..."); jQuery.ajax({ type: "POST", url: "index.php?option=com_jssupportticket&c=staff&task=listdepartmentsbygroup&val=" + val + "&<?php echo JSession::getFormToken(); ?>=1", data: val, success: function (data) { jQuery('#' + pagesrc).html(data); } }); } function setuser(username, userid) { var isexist; jQuery.post("index.php?option=com_jssupportticket&c=staff&task=checkuserexist&<?php echo JSession::getFormToken(); ?>=1",{val:userid},function(data){ if(data == 0){ document.getElementById('uid').value = userid; document.getElementById('username').value = username; window.setTimeout('closeme();', 300); }else { alert("<?php echo JText::_('User already staff member'); ?>"); } }); } function closeme() { parent.SqueezeBox.close(); } </script> PK ! �p���# �# tmpl/staffmembers.phpnu �[��� <?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> PK ! ��� � view.html.phpnu �[��� PK ! � index.htmlnu �[��� PK ! ���-p p - tmpl/users.phpnu �[��� PK ! �$ tmpl/index.htmlnu �[��� PK ! �I&�c c % tmpl/formstaff.phpnu �[��� PK ! �p���# �# h� tmpl/staffmembers.phpnu �[��� PK � ��
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка