This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* determines if a passed string matches the criteria for a GUID | |
* @param string $guid | |
* @return bool false | |
*/ | |
function is_guid($guid) | |
{ | |
return strlen($guid) == 36 && preg_match("/\w{8}-\w{4}-\w{4}-\w{4}-\w{12}/i", $guid); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$admin_option_defs = array(); | |
$admin_option_defs['OST__Tickets']['ostickets_management'] = array( | |
//Icon name. Available icons are located in ./themes/default/images | |
'Releases', | |
//Link name label | |
'LBL_OST__TICKETS_LINK_NAME', | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mod_strings['LBL_OST__TICKETS_LINK_NAME'] = 'OSTicket Management'; | |
$mod_strings['LBL_OST__TICKETS_LINK_DESCRIPTION'] = 'Manage osticket api settings'; | |
$mod_strings['LBL_OST__TICKETS_SECTION_HEADER'] = 'osTicket Connect'; | |
$mod_strings['LBL_OST__TICKETS_SECTION_DESCRIPTION'] = 'Configure setting for the OST_Tickets module'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
extendsFrom: 'RecordView', | |
initialize: function (options) { | |
this._super('initialize', [options]); | |
//add validation | |
this.model.addValidationTask('note', _.bind(this.doValidateTicketNote, this)); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
extendsFrom: 'CreateActionsView', | |
initialize: function (options) { | |
this._super('initialize', [options]); | |
//add validation | |
this.model.addValidationTask('note', _.bind(this.doValidateTicketNote, this)); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dictionary["Account"]["fields"]["accounts_ost__tickets_1"] = array ( | |
'name' => 'accounts_ost__tickets_1', | |
'type' => 'link', | |
// 'relationship' => 'accounts_ost__tickets_1', | |
'source' => 'non-db', | |
'module' => 'OST__Tickets', | |
'bean_name' => 'OST__Tickets', | |
'vname' => 'LBL_ACCOUNTS_OST__TICKETS_1_FROM_OST__TICKETS_TITLE', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class OSTicketsForAccountsLink extends Link2 | |
{ | |
/** | |
* DB | |
* | |
* @var DBManager | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="" method="POST" name="tenants"> | |
<table class="list"> | |
<caption>Users</caption> | |
<thead> | |
<tr> | |
<th> </th> | |
<th>Name</th> | |
</tr> | |
</thead> | |
<tbody> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
//input calender | |
$(".app_datepicker").on('focus', function(){ | |
var $this = $(this); | |
if(!$this.data('datepicker')) { | |
$this.removeClass("hasDatepicker"); | |
$this.datepicker(); | |
$this.datepicker("show"); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Handle CORS */ | |
// Specify domains from which requests are allowed | |
header('Access-Control-Allow-Origin: *'); | |
// Specify which request methods are allowed | |
header('Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS'); |
OlderNewer