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
<input id="tv{$tv->id}" type="hidden" class="datefield" | |
value="{$tv->value}" name="tv{$tv->id}" | |
onblur="MODx.fireResourceFormChange();"/> | |
<script> | |
// <![CDATA[ | |
{literal} | |
Ext.onReady(function() { | |
var fld = MODx.load({ | |
{/literal} |
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 | |
/** | |
* The base class for mSearch2. | |
* | |
* @package msearch2 | |
*/ | |
class mSearch2 { | |
/** @var modX $modx */ | |
public $modx; |
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 | |
/** | |
* Return array with filters | |
* | |
* @param array|string $ids | |
* @param boolean $build | |
* | |
* @return array|boolean | |
*/ |
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 | |
/** | |
* The base class for mSearch2. | |
* | |
* @package msearch2 | |
*/ | |
class mSearch2 { | |
/** @var modX $modx */ | |
public $modx; |
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 | |
/** @var modX $modx */ | |
/** @var array $scriptProperties */ | |
/** @var UserTest $UserTest */ | |
$tplError = $modx->getOption('tplError', $scriptProperties, 'tpl.UserTest.error'); | |
$AjaxMode = $modx->getOption('AjaxMode', $scriptProperties, '1'); | |
$frontend_js = $modx->getOption('frontend_js', $scriptProperties, 'components/usertest/js/web/default.js'); | |
$frontend_css = $modx->getOption('frontend_css', $scriptProperties, 'components/usertest/css/web/default.css'); | |
$pdoFetch = $modx->getService('pdoFetch'); |
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
<div id="testuser-main" class="row"> | |
<script> | |
{if !$check_ajax} | |
var _init = []; | |
{/if} | |
</script> | |
<div class="col-md-2"> | |
{if $block_q_number} | |
{foreach $block_q_number as $q} | |
<a href="#" class="step-box__item {if $q.curStepCheck}current{/if} {if $q.ansCheck}check{/if}" |
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 | |
/** @var modX $modx */ | |
/** @var array $scriptProperties */ | |
/** @var UserTest $UserTest */ | |
$tplError = $modx->getOption('tplError', $scriptProperties, 'tpl.UserTest.error'); | |
$AjaxMode = $modx->getOption('AjaxMode', $scriptProperties, '1'); | |
$frontend_js = $modx->getOption('frontend_js', $scriptProperties, 'components/usertest/js/web/default.js'); | |
$frontend_css = $modx->getOption('frontend_css', $scriptProperties, 'components/usertest/css/web/default.css'); | |
$pdoFetch = $modx->getService('pdoFetch'); |
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 | |
/** @var modX $modx */ | |
switch ($modx->event->name) { | |
case 'OnDocFormSave': | |
/** @var Ticket $resource */ | |
if ($resource->class_key == "Ticket") { | |
//$modx->log(1, "TicketsResGroup ".print_r($resource->toArray(),1)); | |
if(!empty($resource->res_groups)){ | |
$resGroups = $resource->getMany('ResourceGroupResources'); |
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
<select name="res_groups[]" class="form-control bootstrap-multiple" multiple="multiple"> | |
{foreach $res_groups as $res_group} | |
<option value="{$res_group.id}" {$res_group.selected}>{$res_group.name}</option> | |
{/foreach} | |
</select> |
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 | |
/** @var pdoFetch $pdoFetch */ | |
$pdoFetch = $modx->getService('pdoFetch'); | |
$pdoFetch->setConfig($scriptProperties); | |
$pdoFetch->addTime('pdoTools loaded'); | |
$allow_res_groups = $modx->getOption("allow_res_groups"); | |
$all = false; | |
$where = []; |
NewerOlder