/** * \brief Smarty modifier plugin to create user links with optional mouseover info * * - type: modifier * - name: userlink * - purpose: to return a user link * * @author * @param string class (optional) * @param string idletime (optional) * @param string fullname (optional) * @param integer max_length (optional) * @return string user link * * Syntax: {$foo|userlink[:"<class>"][:"<idletime>"][:"<fullname>"][:<max_length>]} (optional params in brackets) * * Example: {$userinfo.login|userlink:'link':::25} */ function smarty_modifier_userlink($other_user, $class = 'userlink', $idletime = 'not_set', $fullname = '', $max_length = 0, $popup = 'y') { if (empty($other_user)) { return ""; } if (is_array($other_user)) { if (count($other_user) > 1) { $other_user = array_map(function ($username) use($class, $idletime, $popup) { return smarty_modifier_userlink($username, $class, $idletime, '', 0, $popup); }, $other_user); $last = array_pop($other_user); return tr('%0 and %1', implode(', ', $other_user), $last); } else { $other_user = reset($other_user); } } if (!$fullname) { $fullname = TikiLib::lib('user')->clean_user($other_user); } if ($max_length) { TikiLib::lib('smarty')->loadPlugin('smarty_modifier_truncate'); $fullname = smarty_modifier_truncate($fullname, $max_length, '...', true); } if ($popup === 'y') { return TikiLib::lib('user')->build_userinfo_tag($other_user, $fullname, $class); } else { return $fullname; } }
function smarty_function_breadcrumbs($params, $smarty) { $defaultParams = array('trail' => array(), 'separator' => ' > ', 'truncate' => 40); foreach ($defaultParams as $k => $v) { if (!isset($params[$k])) { $params[$k] = $v; } } if ($params['truncate'] > 0) { require_once $smarty->_get_plugin_filepath('modifier', 'truncate'); } $links = array(); $numSteps = count($params['trail']); for ($i = 0; $i < $numSteps; $i++) { $step = $params['trail'][$i]; if ($params['truncate'] > 0) { $step['title'] = smarty_modifier_truncate($step['title'], $params['truncate']); } if (strlen($step['link']) > 0 && $i < $numSteps - 1) { $links[] = sprintf('<a href="%s" title="%s">%s</a>', htmlspecialchars($step['link']), htmlspecialchars($step['title']), htmlspecialchars($step['title'])); } else { $links[] = htmlspecialchars($step['title']); } } return join($params['separator'], $links); }
<?php if ($_valid && !is_callable('content_56059b42d6e2a')) {function content_56059b42d6e2a($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include '/var/www/kulturedkitsch.info/public_html/vtigercrm/libraries/Smarty/libs/plugins/modifier.truncate.php'; ?> <div class="row-fluid"><?php $_smarty_tpl->tpl_vars['EXTENSION'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['EXTENSION']->_loop = false; $_from = $_smarty_tpl->tpl_vars['EXTENSIONS_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} $_smarty_tpl->tpl_vars['smarty']->value['foreach']['extensions']['index']=-1; foreach ($_from as $_smarty_tpl->tpl_vars['EXTENSION']->key => $_smarty_tpl->tpl_vars['EXTENSION']->value){ $_smarty_tpl->tpl_vars['EXTENSION']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['extensions']['index']++; ?><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->isAlreadyExists()){?><?php $_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['EXTENSION']->value->get('moduleModel'), null, 0);?><?php }else{ ?><?php $_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL'] = new Smarty_variable('false', null, 0);?><?php }?><div class="span6"><div class="extension_container extensionWidgetContainer"><div class="extension_header"><div class="font-x-x-large boxSizingBorderBox" style="cursor:pointer"><?php echo vtranslate($_smarty_tpl->tpl_vars['EXTENSION']->value->get('label'),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </div><input type="hidden" name="extensionName" value="<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('name');?> " /><input type="hidden" name="moduleAction" value="<?php if (($_smarty_tpl->tpl_vars['EXTENSION']->value->isAlreadyExists())&&(!$_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL']->value->get('trial'))){?><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->isUpgradable()){?>Upgrade<?php }else{ ?>Installed<?php }?><?php }else{ ?>Install<?php }?>" /><input type="hidden" name="extensionId" value="<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('id');?> " /></div><div><div class="row-fluid extension_contents"><span class="span8"><div class="row-fluid extensionDescription" style="word-wrap:break-word;"><?php $_smarty_tpl->tpl_vars['SUMMARY'] = new Smarty_variable($_smarty_tpl->tpl_vars['EXTENSION']->value->get('summary'), null, 0);?><?php if (empty($_smarty_tpl->tpl_vars['SUMMARY']->value)){?><?php ob_start();?><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['EXTENSION']->value->get('description'),100);?> <?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['SUMMARY'] = new Smarty_variable($_tmp1, null, 0);?><?php }?><?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value;?> </div></span><span class="span4"><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->get('thumbnailURL')!=null){?><?php $_smarty_tpl->tpl_vars['imageSource'] = new Smarty_variable($_smarty_tpl->tpl_vars['EXTENSION']->value->get('thumbnailURL'), null, 0);?><?php }else{ ?><?php $_smarty_tpl->tpl_vars['imageSource'] = new Smarty_variable(vimage_path('unavailable.png'), null, 0);?><?php }?><img class="thumbnailImage" src="<?php echo $_smarty_tpl->tpl_vars['imageSource']->value;?> "/></span></div><div class="extensionInfo"><div class="row-fluid"><?php $_smarty_tpl->tpl_vars['ON_RATINGS'] = new Smarty_variable($_smarty_tpl->tpl_vars['EXTENSION']->value->get('avgrating'), null, 0);?><div class="span4"><span class="rating" data-score="<?php echo $_smarty_tpl->tpl_vars['ON_RATINGS']->value;?> " data-readonly=true></span><span><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->get('avgrating')){?> (<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('avgrating');?> )<?php }?></span></div><div class="span8"><div class="pull-right"><button class="btn installExtension addButton" style="margin-right:5px;"><?php echo vtranslate('LBL_MORE_DETAILS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </button><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->isVtigerCompatible()){?><?php if (($_smarty_tpl->tpl_vars['EXTENSION']->value->isAlreadyExists())&&(!$_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL']->value->get('trial'))){?><?php if (($_smarty_tpl->tpl_vars['EXTENSION']->value->isUpgradable())){?><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->get('isprotected')&&$_smarty_tpl->tpl_vars['IS_PRO']->value){?><button class="oneclickInstallFree btn btn-success margin0px <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>"><?php echo vtranslate('LBL_UPGRADE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </button><?php }elseif(!$_smarty_tpl->tpl_vars['EXTENSION']->value->get('isprotected')){?><button class="oneclickInstallFree btn btn-success margin0px <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>"><?php echo vtranslate('LBL_UPGRADE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </button><?php }?><?php }else{ ?><span class="alert alert-info" style="vertical-align:middle; padding: 5px 10px;"><?php echo vtranslate('LBL_INSTALLED',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </span><?php }?><?php }elseif((($_smarty_tpl->tpl_vars['EXTENSION']->value->get('price')=='Free')||($_smarty_tpl->tpl_vars['EXTENSION']->value->get('price')==0))){?><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->get('isprotected')&&$_smarty_tpl->tpl_vars['IS_PRO']->value){?><button class="oneclickInstallFree btn btn-success <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>"><?php echo vtranslate('LBL_INSTALL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </button><?php }elseif(!$_smarty_tpl->tpl_vars['EXTENSION']->value->get('isprotected')){?><button class="oneclickInstallFree btn btn-success <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>"><?php echo vtranslate('LBL_INSTALL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </button><?php }?><?php }elseif(($_smarty_tpl->tpl_vars['IS_PRO']->value)){?><?php if (($_smarty_tpl->tpl_vars['EXTENSION']->value->get('trialdays')>0)&&($_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL']->value=='false')&&($_smarty_tpl->tpl_vars['EXTENSION']->value->get('isprotected')==1)){?><button class="oneclickInstallPaid btn btn-success <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>" data-trial=true><?php echo vtranslate('LBL_TRY_IT',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </button><?php }elseif((($_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL']->value!='false')&&($_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL']->value->get('trial')))){?><span class="alert alert-info"><?php echo vtranslate('LBL_TRIAL_INSTALLED',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </span> <?php }?><button class="oneclickInstallPaid btn btn-info <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>" data-trial=false><?php echo vtranslate('LBL_BUY',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> $<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('price');?> </button><?php }?><?php }else{ ?><span class="alert alert-error"><?php echo vtranslate('LBL_EXTENSION_NOT_COMPATABLE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </span><?php }?></div></div></div></div></div></div></div><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['extensions']['index']%2!=0){?></div><div class="row-fluid"><?php }?><?php } ?><?php if (empty($_smarty_tpl->tpl_vars['EXTENSIONS_LIST']->value)){?><table class="emptyRecordsDiv"><tbody><tr><td><?php echo vtranslate('LBL_NO_EXTENSIONS_FOUND',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </td></tr></tbody></table><?php }?></div><?php }} ?>
/** * Truncates a string with the HTML structure in mind, so it won't truncate inside of tags and all tags will be closed. * In the end there will be $length characters output with valid html formatting for them, that also means that the * real length will be greather than (or equal if no HTML) to the $length. * * @package FeM\sPof\template\smartyPlugins * @author dangerground * @since 1.0 * * @api * * @param string $string * @param int $length (optional) * @param string $etc (optional) * @param bool $break_words (optional) * @param bool $middle (optional) * * @return string */ function smarty_modifier_html_truncate($string, $length = 80, $etc = '...', $break_words = false, $middle = false) { require_once SMARTY_PLUGINS_DIR . 'modifier.truncate.php'; if ($length == 0) { return ''; } // strlen > $length if (!isset($string[$length])) { return $string; } // use original modifier when possible if (strpos($string, '<') === false) { return smarty_modifier_truncate($string, $length, $etc, $break_words, $middle); } // would it be short enough if we drop the tags from count? if (!isset(strip_tags($string)[$length])) { return $string; } // calculate the position to calculate the length and truncate using original function $parts = preg_split('#(<[^>]+>)#', $string, -1, PREG_SPLIT_OFFSET_CAPTURE | PREG_SPLIT_DELIM_CAPTURE); $reallength = 0; $taglength = 0; $lastpos = 0; foreach ($parts as $part) { $len = $part[1] - $lastpos; if (strpos($part[0], '<') === 0) { $reallength += $len; } else { $taglength += $len; } $lastpos = $part[1]; if ($reallength >= $length) { $string = smarty_modifier_truncate($string, $length + $taglength, $etc, $break_words, $middle); break; } } // get all opening tags preg_match_all('#<([^/][^>]*)>#i', $string, $start_tags); $start_tags = $start_tags[1]; // get all closing tags preg_match_all('#</([a-z]+)>#i', $string, $end_tags); $end_tags = $end_tags[1]; // gather tags that need to be closed $need_close = []; foreach ($start_tags as $tag) { $pos = array_search($tag, $end_tags); if ($pos !== false) { unset($end_tags[$pos]); } else { $need_close[] = $tag; } } // foreach // close all remaining open tags in reverse order $need_close = array_reverse($need_close); foreach ($need_close as $tag) { $string .= '</' . $tag . '>'; } return $string; }
function content_56689b325bfb56_72647711($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { require_once '/home/ubuntu/workspace/resources/library/external/smarty/libs/plugins/modifier.truncate.php'; } if (!is_callable('smarty_modifier_capitalize')) { require_once '/home/ubuntu/workspace/resources/library/external/smarty/libs/plugins/modifier.capitalize.php'; } $_smarty_tpl->properties['nocache_hash'] = '193598146556689b32596490_76979314'; ?> <div class="card deck-card"> <div class="deck-icon"> <i class="fa fa-4x <?php echo $_smarty_tpl->tpl_vars['icon']->value; ?> "></i> </div> <div class="deck-title"> <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8'); ?> </div> <div class="deck-description"> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['description']->value, 256); ?> </div> <div class="deck_dropdown dropdown"> <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"> Deck Action <i class="fa fa-caret-down"></i> </button> <ul class="dropdown-menu"> <li><a href="view_deck.php?deckid=<?php echo $_smarty_tpl->tpl_vars['deckid']->value; ?> ">View Deck</a></li> <?php if ($_smarty_tpl->tpl_vars['userid']->value == $_SESSION['userid']) { ?> <li><a href="edit_deck.php?deckid=<?php echo $_smarty_tpl->tpl_vars['deckid']->value; ?> ">Edit Deck</a></li> <?php } ?> <li><a href="browse_decks.php?userid=<?php echo $_smarty_tpl->tpl_vars['userid']->value; ?> ">Browse <?php echo smarty_modifier_capitalize($_smarty_tpl->tpl_vars['usercopename']->value); ?> 's Decks</a></li> </ul> </div> </div><?php }
/** * Get the path to the resource as (breadcrumbs) * * @param array $params * @param Smarty $smarty * * @return string */ function smarty_function_breadcrumbs($params, $smarty) { $defaultParams = array('trail' => array(), 'separator' => ' > ', 'truncate' => 40); // initialize the parameters foreach ($defaultParams as $k => $v) { if (!isset($params[$k])) { $params[$k] = $v; } } // load the truncate modifier if ($params['truncate'] > 0) { require_once $smarty->_get_plugin_filepath('modifier', 'truncate'); } $links = array(); $numSteps = count($params['trail']); for ($i = 0; $i < $numSteps; $i++) { $step = $params['trail'][$i]; // truncate the title if required if ($params['truncate'] > 0) { $step['title'] = smarty_modifier_truncate($step['title'], $params['truncate']); } // build the link if it's set and isn't the last step if (strlen($step['link']) > 0 && $i < $numSteps - 1) { $links[] = sprintf('<a href="%s" title="%s">%s</a>', htmlSpecialChars($step['link']), htmlSpecialChars($step['title']), htmlSpecialChars($step['title'])); } else { // either the link isn't set, or it's the last step $links[] = htmlSpecialChars($step['title']); } } // join the links using the specified separator return join($params['separator'], $links); }
function smarty_modifier_truncatehtml($html, $limit = 80, $endchar = '…') { try { $output = new TruncateHtmlString(html_entity_decode(preg_replace('#<([bh]r)>#', '<$1/>', $html), ENT_HTML5 | ENT_QUOTES), $limit, html_entity_decode($endchar)); return $output->cut(); } catch (Exception $e) { // parsing error return smarty_modifier_truncate(preg_replace('#<[^>]+>#', ' ', $html), $limit, $endchar); } }
function renderInnerOutput($context = array()) { $output = parent::renderInnerOutput($context); if (!empty($context['list_mode']) && $context['list_mode'] === 'y' && $this->getOption('listmax')) { TikiLib::lib('smarty')->loadPlugin('smarty_modifier_truncate'); return smarty_modifier_truncate(strip_tags($output), $this->getOption('listmax')); } else { return $output; } }
function content_5589dffbdfece7_86746829($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include 'C:\\AppServ\\www\\play_huico\\trunk\\application\\libs\\plugins\\modifier.truncate.php'; } if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['name'] = 'sec1'; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['arrayAlbums']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']; ?> <div class="bloc" name="bloc"> <div class="linkAlbum"><a href="displayPlaylist.php?albumID=<?php echo $_smarty_tpl->tpl_vars['arrayAlbums']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['id']; ?> " target="_top"><img class="albumcover" src="<?php echo $_smarty_tpl->tpl_vars['arrayAlbums']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['cover']; ?> "></a></div> <div class="linkAlbum"><a href="displayPlaylist.php?albumID=<?php echo $_smarty_tpl->tpl_vars['arrayAlbums']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['id']; ?> " target="_top"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['arrayAlbums']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['title'], 40); ?> </a><br /> <span class="albumArtist"><?php echo $_smarty_tpl->tpl_vars['arrayAlbums']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['tracksCount']; ?> track(s)</span></div> </div> <?php } } }
function content_56689b75184110_43731070($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { require_once '/home/ubuntu/workspace/resources/library/external/smarty/libs/plugins/modifier.truncate.php'; } $_smarty_tpl->properties['nocache_hash'] = '151625489656689b75159534_19225502'; ?> <div class="card game-card"> <div class="game-icon"> <i class="fa fa-4x <?php echo $_smarty_tpl->tpl_vars['icon']->value; ?> "></i> </div> <div class="game-title"> <?php echo $_smarty_tpl->tpl_vars['title']->value; ?> </div> <div class="game-description"> <?php echo smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['description']->value), 256); ?> </div> <div class="game_dropdown dropdown"> <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"> Game Action <i class="fa fa-caret-down"></i> </button> <ul class="dropdown-menu"> <li><a href="view_game.php?gameid=<?php echo $_smarty_tpl->tpl_vars['gameid']->value; ?> ">View Game</a></li> <?php if ($_smarty_tpl->tpl_vars['userid']->value == $_SESSION['userid']) { ?> <li><a href="edit_game.php?gameid=<?php echo $_smarty_tpl->tpl_vars['gameid']->value; ?> ">Edit Game</a></li> <?php } ?> </ul> </div> </div><?php }
function content_559878bd6698f6_96114937($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include 'D:\\WWW\\ecshoptk\\ThinkPHP\\Library\\Vendor\\Smarty\\plugins\\modifier.truncate.php'; } ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <ul> <?php $_smarty_tpl->tpl_vars['article'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['article']->_loop = false; $_from = $_smarty_tpl->tpl_vars['new_articles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['article']->key => $_smarty_tpl->tpl_vars['article']->value) { $_smarty_tpl->tpl_vars['article']->_loop = true; ?> <li> [<a href="<?php echo $_smarty_tpl->tpl_vars['article']->value['cat_url']; ?> "><?php echo $_smarty_tpl->tpl_vars['article']->value['cat_name']; ?> </a>] <a href="<?php echo $_smarty_tpl->tpl_vars['article']->value['url']; ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['article']->value['title'], ENT_QUOTES, 'UTF-8', true); ?> "><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['article']->value['short_title'], 10, "...", true); ?> </a> </li> <?php } ?> </ul><?php }
/** * Data used in index listing. * @return array */ protected function listData() { $sql = "is_visible = ? ORDER BY position"; /** @var \RedBean_SimpleModel[] $instanceBeans */ $instanceBeans = R::findAll('setting', $sql, array(true)); $instanceRows = array(); if (!empty($instanceBeans)) { $this->app->getTemplateEngine()->loadPlugin('smarty_modifier_truncate', true); foreach ($instanceBeans as $instanceBean) { /** @var \TestApp\Models\Setting $instance */ $instance = $instanceBean->box(); $actions = array('data' => '<a title="View" href="' . $this->app->getRouter()->getUrl('admin/settings/edit', array('id' => $instance->get('id'))) . '" data-toggle="dialog"><span class="icon-pencil"></span></a>', 'class' => 'TAC'); if ($instance->get('input_type') == 'password') { $value = '********'; } else { $value = smarty_modifier_truncate($instance->getDisplayValue(), 40, '...', true); } $instanceRow = array($instance->get('name'), $value, $actions, $instance->get('position')); $instanceRows[] = $instanceRow; } } return $instanceRows; }
function smarty_function_arrayJoin($params, &$smarty) { /* param array(array,required): array that members will be joined param glue(string,required): glue of join param truncate_each(integer,optional): if set, truncate each member to this length param truncate(integer,optional): if set, truncate the result string to this length */ require_once $smarty->_get_plugin_filepath('modifier', 'truncate'); $arr = $params["array"]; if (isset($params["truncate_each"])) { $new_arr = array(); foreach ($arr as $member) { $new_arr[] = smarty_modifier_truncate($member, $params["truncate_each"], "", true); } $arr = $new_arr; } $str = join($arr, $params["glue"]); if (isset($params["truncate"])) { $str = smarty_modifier_truncate($str, $params["truncate"], "...", false); } return $str; }
function smarty_function_breadcrumbs($params, $smarty) { $defaultParams = array('trail' => array(), 'separator' => ' > ', 'truncate' => 40); //echo "<br/>params count: ".count($params)."<br/>"; foreach ($params as $k => $v) { if (isset($params[$k])) { $params[$k] = $v; //echo "params[k]: ".$params[$k]."<br/>"; } } //load the truncate modifier if ($params['truncate'] > 0) { require_once $smarty->_get_plugin_filepath('modifier', 'truncate'); } $links = array(); $numSteps = count($params['trail']); //echo "current numSteps are: ".$numSteps."<br/>"; for ($i = 0; $i < $numSteps; $i++) { //echo "numSteps in for loops: ".$numSteps."<br>"; $step = $params['trail'][$i]; //echo "the step are here: ".$step['title']; //echo "the link are here: ".$step['link']; //truncate the title if required if ($params['truncate'] > 0) { $step['title'] = smarty_modifier_truncate($step['title'], $params['truncate']); } //build the link if it's set and isn't the last step if (strlen($step['link']) > 0 && $i < $numSteps - 1) { $link[] = sprintf('<a href="%s" title="%s">%s</a>', htmlSpecialChars($step['link']), htmlSpecialChars($step['title']), htmlSpecialChars($step['title'])); } else { $link[] = htmlSpecialChars($step['title']); } //join the links using the specified separator } //echo $params['separator']; return join(' » ', $link); }
function content_5662b1dc686117_41510784($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\modifier.truncate.php'; } $_smarty_tpl->properties['nocache_hash'] = '13245662b1dc605274_11045655'; echo $_smarty_tpl->tpl_vars['articleTitle']->value; ?> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['articleTitle']->value); ?> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['articleTitle']->value, 30); ?> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['articleTitle']->value, 30, ''); ?> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['articleTitle']->value, 30, "---"); ?> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['articleTitle']->value, 30, '', true); ?> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['articleTitle']->value, 30, "...", true); ?> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['articleTitle']->value, 30, '..', true, true); }
function content_55b7a440370866_29388614($_smarty_tpl) { if (!is_callable('smarty_modifier_date_format')) { include '/var/www/ikkf05.ru/html/includes/smarty-3.1.15/plugins/modifier.date_format.php'; } if (!is_callable('smarty_modifier_truncate')) { include '/var/www/ikkf05.ru/html/includes/smarty-3.1.15/plugins/modifier.truncate.php'; } echo $_smarty_tpl->getSubTemplate("_header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php if (isset($_smarty_tpl->tpl_vars['page']->value['info']) && $_smarty_tpl->tpl_vars['page']->value['info']) { ?> <div class="alert alert-success"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button><?php echo $_smarty_tpl->tpl_vars['page']->value['info']; ?> </div><?php } if (isset($_smarty_tpl->tpl_vars['page']->value['error']) && $_smarty_tpl->tpl_vars['page']->value['error']) { ?> <div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button><?php echo $_smarty_tpl->tpl_vars['page']->value['error']; ?> </div><?php } ?> <?php echo $_smarty_tpl->tpl_vars['page']->value['content']; ?> <?php if ($_smarty_tpl->tpl_vars['page']->value['module'] == 1) { ?> <?php if (isset($_smarty_tpl->tpl_vars['allnews']->value) && $_smarty_tpl->tpl_vars['allnews']->value) { ?> <ul class="media-list"> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['allnews']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key; ?> <li class="media"> <?php if ($_smarty_tpl->tpl_vars['item']->value['image']) { ?> <a class="pull-left" href="<?php echo $_smarty_tpl->tpl_vars['page']->value['rootpath']; echo $_smarty_tpl->tpl_vars['page']->value['alias']; ?> &id=<?php echo $_smarty_tpl->tpl_vars['item']->value['news_id']; ?> "><img class="media-object img-polaroid" src="<?php echo $_smarty_tpl->tpl_vars['item']->value['image_path']; echo $_smarty_tpl->tpl_vars['item']->value['image']; ?> " alt="" /></a><?php } ?> <div class="media-body"> <a href="<?php echo $_smarty_tpl->tpl_vars['page']->value['rootpath']; echo $_smarty_tpl->tpl_vars['page']->value['alias']; ?> &id=<?php echo $_smarty_tpl->tpl_vars['item']->value['news_id']; ?> " class="media-heading"><?php echo $_smarty_tpl->tpl_vars['item']->value['news_title']; ?> </a> | <span class="muted"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value['news_date'], '%d.%m.%Y'); ?> </span> <p><small><?php echo smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['item']->value['news_text']), 400); ?> </small></p> </div> </li> <?php } ?> </ul> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['newsItem']->value) && $_smarty_tpl->tpl_vars['newsItem']->value) { ?> <p>← <a href="<?php echo $_smarty_tpl->tpl_vars['page']->value['rootpath']; echo $_smarty_tpl->tpl_vars['page']->value['alias']; ?> ">все новости</a></p> <div><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['newsItem']->value['news_date'], '%d.%m.%Y'); ?> </div> <h2><?php echo $_smarty_tpl->tpl_vars['newsItem']->value['news_title']; ?> </h2> <?php echo $_smarty_tpl->tpl_vars['newsItem']->value['news_text']; ?> <?php } } ?> <?php if ($_smarty_tpl->tpl_vars['page']->value['module'] == 2) { ?> <?php if ($_smarty_tpl->tpl_vars['allarticles']->value) { ?> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['allarticles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key; ?> <div class="well"> <h3><?php echo $_smarty_tpl->tpl_vars['item']->value['article_title']; ?> </h3> <p><?php echo smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['item']->value['article_text']), 1000); ?> </p> <a class="btn btn-primary" href="<?php echo $_smarty_tpl->tpl_vars['page']->value['rootpath']; ?> articles&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['article_id']; ?> ">Читать статью</a> </div> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['articleItem']->value) { ?> <p>← <a href="<?php echo $_smarty_tpl->tpl_vars['page']->value['rootpath']; ?> articles">все статьи</a></p> <?php echo $_smarty_tpl->tpl_vars['articleItem']->value['article_text']; ?> <?php } } ?> <?php if ($_smarty_tpl->tpl_vars['page']->value['module'] == 3) { ?> <?php if (isset($_smarty_tpl->tpl_vars['gallery']->value) && $_smarty_tpl->tpl_vars['gallery']->value) { ?> <p><a href="<?php echo $_smarty_tpl->tpl_vars['page']->value['rootpath']; echo $_smarty_tpl->tpl_vars['page']->value['alias']; ?> ">← все галереи</a></p> <h2><?php echo $_smarty_tpl->tpl_vars['gallery']->value['gallery_name']; ?> </h2> <?php if ($_smarty_tpl->tpl_vars['gallery']->value['image']) { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['gallery']->value['image_path']; echo $_smarty_tpl->tpl_vars['gallery']->value['image']; ?> " class="fancybox" rel="group1"><img class="img-thumbnail" style="margin: 0 10px 10px 0;" src="<?php echo $_smarty_tpl->tpl_vars['gallery']->value['image_path']; ?> icon/<?php echo $_smarty_tpl->tpl_vars['gallery']->value['image']; ?> " alt="" /></a><?php } ?> <?php if ($_smarty_tpl->tpl_vars['gallery']->value['image_more']) { ?> <?php $_smarty_tpl->tpl_vars['photo'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['photo']->_loop = false; $_from = $_smarty_tpl->tpl_vars['gallery']->value['image_more']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['photo']->key => $_smarty_tpl->tpl_vars['photo']->value) { $_smarty_tpl->tpl_vars['photo']->_loop = true; ?> <a href="<?php echo $_smarty_tpl->tpl_vars['gallery']->value['image_path']; echo $_smarty_tpl->tpl_vars['photo']->value['image_name']; ?> " class="fancybox" rel="group1" title="<?php echo $_smarty_tpl->tpl_vars['photo']->value['image_caption']; ?> "><img class="img-thumbnail" style="margin: 0 10px 10px 0;" src="<?php echo $_smarty_tpl->tpl_vars['gallery']->value['image_path']; ?> icon/<?php echo $_smarty_tpl->tpl_vars['photo']->value['image_name']; ?> " alt="" /></a> <?php } ?> <?php } else { ?> - нет фото - <?php } ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['galleries']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->_loop = true; ?> <div class="panel panel-default"> <div class="panel-body" style="background: #f9f9f9;"> <h4><?php echo $_smarty_tpl->tpl_vars['item']->value['gallery_name']; ?> </h4> <?php if ($_smarty_tpl->tpl_vars['item']->value['image']) { ?> <img class="img-polaroid" style="margin: 0 10px 10px 0; width: 80px; height: 80px;" src="<?php echo $_smarty_tpl->tpl_vars['item']->value['image_path']; ?> icon/<?php echo $_smarty_tpl->tpl_vars['item']->value['image']; ?> " alt="" /><?php } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['image_more']) { ?> <?php $_smarty_tpl->tpl_vars['photo'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['photo']->_loop = false; $_from = $_smarty_tpl->tpl_vars['item']->value['image_more']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['photo']->key => $_smarty_tpl->tpl_vars['photo']->value) { $_smarty_tpl->tpl_vars['photo']->_loop = true; ?> <img class="img-polaroid" style="margin: 0 10px 10px 0; width: 80px; height: 80px;" src="<?php echo $_smarty_tpl->tpl_vars['item']->value['image_path']; ?> icon/<?php echo $_smarty_tpl->tpl_vars['photo']->value['image_name']; ?> " alt="" /> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['item']->value['gallery_text']; ?> <div> </div> <p><a class="btn btn-sm btn-primary" href="<?php echo $_smarty_tpl->tpl_vars['page']->value['rootpath']; echo $_smarty_tpl->tpl_vars['page']->value['alias']; ?> &gallery=<?php echo $_smarty_tpl->tpl_vars['item']->value['gallery_id']; ?> ">Смотреть</a></p> <?php } ?> </div> </div> <?php } ?> <?php } } ?> <?php if ($_smarty_tpl->tpl_vars['page']->value['module'] == 4) { ?> <?php if ($_smarty_tpl->tpl_vars['videos']->value) { ?> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['videos']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->_loop = true; ?> <div class="panel panel-default"> <div class="panel-body" style="background: #f9f9f9;"> <div class="lead"><?php echo $_smarty_tpl->tpl_vars['item']->value['video_name']; ?> </div> <p><?php echo $_smarty_tpl->tpl_vars['item']->value['video_code']; ?> </p> </div> </div> <?php } ?> <?php } else { ?> <span class="label label-default">нет видео</span> <?php } } ?> <?php if ($_smarty_tpl->tpl_vars['page']->value['module'] == 5) { ?> <div class="panel panel-default"> <div class="panel-body" style="background: #f9f9f9;"> <form action="" method="post" class="form-horizontal" onsubmit="return SubmitMessage();"> <div class="form-group"> <label for="name" class="col-lg-2 col-md-2 control-label">Имя</label> <div class="col-lg-5 col-md-5"> <input type="text" class="form-control" name="name" id="name" placeholder="Имя" /> </div> </div> <div class="form-group"> <label for="phone" class="col-lg-2 col-md-2 control-label">Телефон</label> <div class="col-lg-5 col-md-5"> <input type="text" class="form-control" name="phone" id="phone" placeholder="Телефон" /> </div> </div> <div class="form-group"> <label for="email" class="col-lg-2 col-md-2 control-label">Email</label> <div class="col-lg-5 col-md-5"> <input type="text" class="form-control" name="email" id="email" placeholder="Email" /> </div> </div> <div class="form-group"> <label for="message" class="col-lg-2 col-md-2 control-label">Сообщение</label> <div class="col-lg-5 col-md-5"> <textarea class="form-control" cols="40" name="message" id="message" placeholder="Сообщение" rows="8"></textarea> </div> </div> <div class="form-group"> <div class="col-lg-offset-2 col-md-offset-2 col-lg-5 col-md-5"> <button type="submit" class="btn btn-large btn-primary" name="submit">Отправить сообщение</button> </div> </div> <input type="hidden" name="subject" value="Обратная связь" /> </form> </div> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("_footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); }
function content_56238079457647_97539846($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { require_once 'E:\\wwwroot\\wwwroot\\demo\\include\\lib\\smarty\\plugins\\modifier.truncate.php'; } $_smarty_tpl->properties['nocache_hash'] = '1771256238079367923_80759834'; echo $_smarty_tpl->getSubTemplate("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0); ?> <div id="article"> <?php $_from = $_smarty_tpl->tpl_vars['article']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; foreach ($_from as $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $foreach_value_Sav = $_smarty_tpl->tpl_vars['value']; ?> <div class="article-list"> <h1><a href="/Article/show/id/<?php echo $_smarty_tpl->tpl_vars['value']->value['aid']; ?> " title="<?php echo $_smarty_tpl->tpl_vars['value']->value['title']; ?> "> <?php if ($_smarty_tpl->tpl_vars['value']->value['top'] == 'y') { ?> <b class='top'>置顶</b><?php } ?> <?php echo $_smarty_tpl->tpl_vars['value']->value['title']; ?> </a></h1> <span><a href="/Sort/show/id/<?php echo $_smarty_tpl->tpl_vars['value']->value['sortid']; ?> " title="查看所有 <?php echo $_smarty_tpl->tpl_vars['value']->value['sortname']; ?> 分类下文章"><?php echo $_smarty_tpl->tpl_vars['value']->value['sortname']; ?> </a> | <a><?php echo $_smarty_tpl->tpl_vars['value']->value['date']; ?> </a> | <a href="/Article/show/id/<?php echo $_smarty_tpl->tpl_vars['value']->value['aid']; ?> #comment" title="查看所有 <?php echo $_smarty_tpl->tpl_vars['value']->value['title']; ?> 的评论">评论<?php echo $_smarty_tpl->tpl_vars['value']->value['comnum']; ?> 次</a><!-- | <a>阅读<?php echo $_smarty_tpl->tpl_vars['value']->value['views']; ?> 次</a>--></span> <p><?php echo smarty_modifier_truncate(htmlspecialchars_decode($_smarty_tpl->tpl_vars['value']->value['content']), 500, "..."); ?> </p> <span style="margin:10px 0 0 0;"><a href="Article/show/id/<?php echo $_smarty_tpl->tpl_vars['value']->value['aid']; ?> ">[阅读全文-></a></span> </div> <?php $_smarty_tpl->tpl_vars['value'] = $foreach_value_Sav; } if (!$_smarty_tpl->tpl_vars['value']->_loop) { ?> 暂无文章 <?php } ?> </div> <?php echo $_smarty_tpl->getSubTemplate("sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0); ?> <div class="clean"></div> <?php echo $_smarty_tpl->getSubTemplate("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0); }
} $this->_foreach['recommend_article'] = array('total' => count($_from), 'iteration' => 0); if ($this->_foreach['recommend_article']['total'] > 0) { foreach ($_from as $this->_tpl_vars['article']) { $this->_foreach['recommend_article']['iteration']++; ?> <li<?php if ($this->_foreach['recommend_article']['iteration'] == $this->_foreach['recommend_article']['total']) { ?> class="last"<?php } ?> ><b><?php echo $this->_tpl_vars['article']['add_time_short']; ?> </b><a href="<?php echo $this->_tpl_vars['article']['url']; ?> "><?php echo is_array($_tmp = $this->_tpl_vars['article']['title']) ? $this->_run_mod_handler('truncate', true, $_tmp, 26, "...") : smarty_modifier_truncate($_tmp, 26, "..."); ?> </a></li> <?php } } unset($_from); ?> </ul> </div> <?php }
} else { ?> <img src="<?php echo $_smarty_tpl->getVariable('relatedProduct')->value->image_link; ?> " height="116" width="85" alt="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('relatedProduct')->value->name, 'html', 'UTF-8'); ?> " /> <?php } ?> </span> <span style="display:inline-block;width:90px;text-transform:capitalize;"> <?php echo smarty_modifier_escape(smarty_modifier_truncate($_smarty_tpl->getVariable('relatedProduct')->value->color, 100, '...'), 'htmlall', 'UTF-8'); ?> </span> </a> </li> <?php } } ?> </ul> </div> <?php } } if ($_smarty_tpl->getVariable('HOOK_EXTRA_RIGHT')->value) {
function content_5778b5e1ad9e94_87175621($_smarty_tpl) { if (!is_callable('smarty_function_js_include')) { include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.js_include.php'; } if (!is_callable('smarty_function_html_options')) { include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.html_options.php'; } if (!is_callable('smarty_function_func')) { include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php'; } if (!is_callable('smarty_modifier_truncate')) { include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/modifier.truncate.php'; } if (!is_callable('smarty_modifier_money')) { include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/modifier.money.php'; } echo $_smarty_tpl->getSubTemplate('calendar.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php echo smarty_function_js_include(array('src' => '/css/listboxes.css'), $_smarty_tpl); ?> <?php echo '<script'; ?> language="javascript"> function myInit(){ } function myFormSubmit(f){ return true; } function onDel(f){ var dd=document.getElementsByName('sel[]'); var i; var c=0; for(i=0;i<dd.length;i++) if(dd[i].checked) c=1; if(!c){alert('No items selected');return false;} return confirm('Are you sure you want to delete selected items?') } function myExport(){ var s=$('#formFilt').serialize()+'&format=export'; myRedirect('/cashadvance.php?'+s); //formFilt } function myExport1(){ var s=$('#formFilt').serialize()+'&cmd=repcolumns'; myRedirect('/cashadvance.php?'+s); //formFilt } <?php echo '</script'; ?> > <style> .toleft{borderX:solid red 1px;} A.aMCALoan{ font-size:12pt;font-weight:bold} span.spCreditScore{color:red} span.spStatus{color:green;} span.spStatus_Pending{color:red} span.spFundingType{color:green;font-weight:bold} DIV.cashAdvSection{ border:solid #3399FF 1px; margin:10px; width:648px; background: -webkit-gradient(linear, 0 0, 0 bottom, from(#E7F2FA), to(#AAE7FD)); background: -moz-linear-gradient(#E7F2FA, #AAE7FD); background: linear-gradient(#E7F2FA, #AAE7FD); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#E7F2FA, endColorstr=#AAE7FD); } .cashAdvSection .tdLeft{ padding:8px; } .cashAdvSection .tdRight{ padding:8px; } .cashAdvSection table.tblRightBlock TD{ border-bottom:solid #CCCCCC 1px; } </style> <div class="TitleRow"> <div class="toleft"><strong>MCA/Funding Services - <?php if ($_smarty_tpl->tpl_vars['statusTitle']->value) { echo $_smarty_tpl->tpl_vars['statusTitle']->value; } else { ?> All Accounts<?php } ?> </strong></div> <div class="toright"> <?php if (permitted('SUPERADMIN-RIGHTS')) { ?> <input type="button" value="Export" onclickx="myRedirect('<?php echo $_smarty_tpl->tpl_vars['exportLink']->value; ?> ')" onclick="myExport()"/> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate('status/mca_instr.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <!--add tehila--> <div class="toright"> <input type="button" value="Design Report" onclickx="myRedirect('<?php echo $_smarty_tpl->tpl_vars['exportLink']->value; ?> ')" onclick="myExport1()"/> </div> <!--end tehila--> </div> <TABLE WIDTH="100%"> <TR > <TD align="center" class="tdValueColumn"> <form method="get" id="formFilt"> <input type="hidden" name="cmd" value="cashadv_list" /> <div class="boxLeft"> <div class="fldTitle">Search by Users</div> <select name="owner_uid" onchange="this.form.submit()" style="width:90px"> <option value="">All Users</option> <?php echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['selUser']->value, 'selected' => $_smarty_tpl->tpl_vars['owner_uid']->value), $_smarty_tpl); ?> </select> </div> <div class="boxLeft"> <div class="fldTitle">Search by Lenders</div> <select name="lender_uid" onchange="this.form.submit()" style="width:90px"> <option value="">All Lenders</option> <?php echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['selLender']->value, 'selected' => $_smarty_tpl->tpl_vars['lender_uid']->value), $_smarty_tpl); ?> </select> </div> <div class="boxLeft"> <div class="fldTitle">Search by Type</div> <select name="FundingType" onchange="this.form.submit()" style="width:120px"> <option value="">All Funding Types</option> <?php echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['selFundingType']->value, 'selected' => $_smarty_tpl->tpl_vars['FundingType']->value), $_smarty_tpl); ?> </select> </div> <div class="boxLeft"> <div class="fldTitle">Search Status Level</div> <select name="status" onchange="this.form.submit()" style="width:120px"> <?php echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['selStatus']->value, 'selected' => $_smarty_tpl->tpl_vars['status']->value), $_smarty_tpl); ?> </select> </div> <!--add tehila <div class="boxLeft"> <div class="fldTitle">titel</div> <div class="toleft"> <input type="button" value="Edit Columns" onclickx="myRedirect('<?php echo $_smarty_tpl->tpl_vars['exportLink']->value; ?> ')" onclick="myExport1()"/> </div> <!--end tehila--> <div class="toright"> <div class="boxLeft"> <div class="fldTitle">Start Date</div> <input class="rep_date" id="date1" type="text" name="date1" value="<?php echo $_smarty_tpl->tpl_vars['date1']->value; ?> " style="width:70px" maxlength="10" onchangeX="this.form.submit()" /> </div> <div class="boxLeft"> <div class="fldTitle">End Date</div> <input class="rep_date" id="date2" type="text" name="date2" value="<?php echo $_smarty_tpl->tpl_vars['date2']->value; ?> " style="width:70px" maxlength="10" onchangeX="this.form.submit()" /> </div> <div class="boxLeft"><div class="fldTitle"> </div> <input type="submit" value="Go" style="width:38px" /> </div> </div> </form> </TD> </TR> <TR > <TD class="tdListNav"><?php echo $_smarty_tpl->tpl_vars['rep']->value['pagerHtml']; ?> </TD> </TR> <?php if ($_smarty_tpl->tpl_vars['AchworksNotifier']->value) { ?> <tr><td><?php echo $_smarty_tpl->tpl_vars['AchworksNotifier']->value; ?> </td></tr> <?php } ?> <TR > <TD class="tdListNav2"><?php if (permitted('ADMIN-RIGHTS')) { ?> <div class="navCheckAll"><input name="checkbox" type="checkbox" title="Check All" onclick="checkAll(this)" /></div><?php } ?> <div class="navSortBy"> <a class="<?php if ($_smarty_tpl->tpl_vars['layout']->value == 1) { ?> disabled<?php } ?> " href="cashadvance.php?cmd=cashadv_list&layout=1">1-Up</a> - <a class="<?php if ($_smarty_tpl->tpl_vars['layout']->value == 3) { ?> disabled<?php } ?> "href="cashadvance.php?cmd=cashadv_list&layout=3">3-Up</a> Sort By: <a href="<?php echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderlink('id'); ?> " class="<?php echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderclass('id'); ?> ">Contract #</a>, <a href="<?php echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderlink('BusinessName'); ?> " class="<?php echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderclass('BusinessName'); ?> ">DBA Name</a>, <a href="<?php echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderlink('date'); ?> " class="<?php echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderclass('date'); ?> ">Date</a>, <a href="<?php echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderlink('status'); ?> " class="<?php echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderclass('status'); ?> ">Status</a> </div></TD> </TR> </TABLE> <form method="post"> <input type="hidden" name="cmd" value="cashadv_del"> <?php if ($_smarty_tpl->tpl_vars['layout']->value == 1) { ?> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['rep']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->_loop = true; ?> <?php echo $_smarty_tpl->getSubTemplate('boxes/mca_box.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item' => $_smarty_tpl->tpl_vars['item']->value), 0); ?> <?php } ?> <?php } else { ?> <div class="appList3up"> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['rep']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->_loop = true; ?> <div class="appListSection appListSection_<?php echo $_smarty_tpl->tpl_vars['item']->value['StatusColor']; ?> 3up"><div class="level2"> <div class="blockContainer"> <?php if (permitted('SUPERADMIN-RIGHTS')) { ?> <input <?php if (!$_smarty_tpl->tpl_vars['item']->value['allowDelete']) { ?> disabled<?php } ?> name="sel[]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['cashadv_id']; ?> " type="checkbox" /> <?php } ?> <a href="/cashadvance.php?cmd=cashadv_edit&app_id=<?php echo $_smarty_tpl->tpl_vars['app_id']->value; ?> &cashadv_id=<?php echo $_smarty_tpl->tpl_vars['item']->value['cashadv_id']; ?> " class="aMCALoan">MCA Acct # <?php echo $_smarty_tpl->tpl_vars['item']->value['cashadv_idStr']; ?> </a><br /> <strong>DBA:</strong> <span class="spTooltip" onmouseover="tooltip.show('<div style=\'max-width:300px\'><?php echo smarty_function_func(array('name' => 'MCAInfoPopup', 'cashadv_id' => $_smarty_tpl->tpl_vars['item']->value['cashadv_id']), $_smarty_tpl); ?> </div>');" onmouseout="tooltip.hide();"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['item']->value['DBAName'], 24, '...', true); ?> </span> <br /> <strong>Owner:</strong> <span title="<?php echo $_smarty_tpl->tpl_vars['item']->value['OwnerName']; ?> "><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['item']->value['OwnerName'], 24, '...', true); ?> </span><br /> <br /> Funding Type: <span class="spFundingType"> <?php if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'Fixed Daily ACH') { ?> Fixed ACH<?php } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'MCA') { ?> CC TXN %<?php } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'LockBox') { ?> LockBox/TXN %<?php } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'CCFixed') { ?> Fixed + CC<?php } ?> </span> <br /> Funding: $<?php echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['AmountRequested']) === null || $tmp === '' ? 0 : $tmp, 2); ?> <br /> Payback: $<?php echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['TotalPayback']) === null || $tmp === '' ? 0 : $tmp, 2); ?> (<?php echo ($tmp = @$_smarty_tpl->tpl_vars['item']->value['PaybackCoeff']) === null || $tmp === '' ? 0 : $tmp; ?> )<br /> <?php if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'Fixed Daily ACH') { ?> Daily ACH: <?php echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['perfPayments'], 0); ?> of <?php echo $_smarty_tpl->tpl_vars['item']->value['days']; ?> Payments<br /><?php } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'MCA') { ?> Daily CC: $<?php echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['totalHold']) === null || $tmp === '' ? 0 : $tmp, 2); ?> of $<?php echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['TotalPayback']) === null || $tmp === '' ? 0 : $tmp, 2); ?> <br /><?php } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'LockBox') { ?> Daily CC: $<?php echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['totalHold']) === null || $tmp === '' ? 0 : $tmp, 2); ?> of $<?php echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['TotalPayback']) === null || $tmp === '' ? 0 : $tmp, 2); ?> <br /><?php } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'CCFixed') { ?> Daily ACH: <?php echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['perfPayments'], 0); ?> of <?php echo $_smarty_tpl->tpl_vars['item']->value['days']; ?> Payments<br /> Daily CC: $<?php echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['totalHold']) === null || $tmp === '' ? 0 : $tmp, 2); ?> of $<?php echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['TotalPayback']) === null || $tmp === '' ? 0 : $tmp, 2); ?> <br /> <?php } ?> <br /> <strong>Status:</strong> <span class="spStatus spStatus_<?php echo $_smarty_tpl->tpl_vars['item']->value['Status']; ?> nobr" title="<?php echo $_smarty_tpl->tpl_vars['item']->value['lastNote']; ?> "> <strong><?php echo $_smarty_tpl->tpl_vars['item']->value['statusTitle']; ?> </strong></span> <br /> <strong>Sales Rep:</strong> <span title="<?php echo $_smarty_tpl->tpl_vars['item']->value['UserName']; ?> "><?php echo $_smarty_tpl->tpl_vars['item']->value['UserName']; ?> </span> <br /> Comm: $<?php echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['RepComm']) === null || $tmp === '' ? 0 : $tmp, 2); ?> </div> </div> </div> <?php } ?> </div> <?php } ?> <?php if (permitted('SUPERADMIN-RIGHTS')) { ?> <TABLE WIDTH="100%"> <tr class="trSubmitBar"> <td> <input name="btnDelete" type="submit" onclick="return onDel(this.form)" value="Delete" /></td> </tr> </TABLE> <?php } ?> </form> <?php echo '<script'; ?> type="text/javascript"> Calendar.setup({ inputField : "date1", // id of the input field ifFormat : "%m/%d/%Y",//"%Y-%m-%d", // %H:%M", // format of the input field showsTime : true, // will display a time selector button : "date1", // trigger for the calendar (button ID) singleClick : true, // double-click mode step : 1 // show all years in drop-down boxes (instead of every other year as default) }); Calendar.setup({ inputField : "date2", // id of the input field ifFormat : "%m/%d/%Y",//"%Y-%m-%d", // %H:%M", // format of the input field showsTime : true, // will display a time selector button : "date2", // trigger for the calendar (button ID) singleClick : true, // double-click mode step : 1 // show all years in drop-down boxes (instead of every other year as default) }); <?php echo '</script'; ?> > <?php }
function content_55b5d04b739b04_82221933($_smarty_tpl) { if (!is_callable('smarty_function_html_options')) { include '/var/www/html/booked/lib/Common/../../lib/external/Smarty/plugins/function.html_options.php'; } if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/booked/lib/Common/../../lib/external/Smarty/plugins/modifier.truncate.php'; } ?> <?php echo $_smarty_tpl->getSubTemplate('globalheader.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('cssFiles' => 'css/admin.css,scripts/css/colorbox.css'), 0); ?> <h1><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ManageResources'), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "question-button.png", 'id' => "help-prompt", 'ref' => "help-resources"), $_smarty_tpl); ?> </h1> <div class="horizontal-list label-top filterTable main-div-shadow" id="filterTable"> <form id="filterForm"> <div class="main-div-header"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Filter'), $_smarty_tpl); ?> </div> <ul> <li> <label for="filterResourceName"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Name'), $_smarty_tpl); ?> </label> <input type="text" id="filterResourceName" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_NAME'), $_smarty_tpl); ?> value="<?php echo $_smarty_tpl->tpl_vars['ResourceNameFilter']->value; ?> "/ /> </li> <li> <label for="filterScheduleId"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Schedule'), $_smarty_tpl); ?> </label> <select id="filterScheduleId" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'SCHEDULE_ID'), $_smarty_tpl); ?> class="textbox"> <option value=""><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AllSchedules'), $_smarty_tpl); ?> </option> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['object_html_options'][0][0]->ObjectHtmlOptions(array('options' => $_smarty_tpl->tpl_vars['AllSchedules']->value, 'key' => 'GetId', 'label' => "GetName", 'selected' => $_smarty_tpl->tpl_vars['ScheduleIdFilter']->value), $_smarty_tpl); ?> </select> </li> <li> <label for="filterResourceType"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceType'), $_smarty_tpl); ?> </label> <select id="filterResourceType" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_TYPE_ID'), $_smarty_tpl); ?> > <option value=""><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'All'), $_smarty_tpl); ?> </option> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['object_html_options'][0][0]->ObjectHtmlOptions(array('options' => $_smarty_tpl->tpl_vars['ResourceTypes']->value, 'key' => 'Id', 'label' => "Name", 'selected' => $_smarty_tpl->tpl_vars['ResourceTypeFilter']->value), $_smarty_tpl); ?> </select> </li> <li> <label for="resourceStatusIdFilter"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceStatus'), $_smarty_tpl); ?> </label> <select id="resourceStatusIdFilter" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_STATUS_ID'), $_smarty_tpl); ?> > <option value=""><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'All'), $_smarty_tpl); ?> </option> <option value="<?php echo ResourceStatus::AVAILABLE; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Available'), $_smarty_tpl); ?> </option> <option value="<?php echo ResourceStatus::UNAVAILABLE; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Unavailable'), $_smarty_tpl); ?> </option> <option value="<?php echo ResourceStatus::HIDDEN; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Hidden'), $_smarty_tpl); ?> </option> </select> </li> <li> <label for="resourceReasonIdFilter"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Reason'), $_smarty_tpl); ?> </label> <select id="resourceReasonIdFilter" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_STATUS_REASON_ID'), $_smarty_tpl); ?> > <option value="">-</option> </select> </li> <li> <label for="filterCapacity"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'MinimumCapacity'), $_smarty_tpl); ?> </label> <input type="text" id="filterCapacity" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MAX_PARTICIPANTS'), $_smarty_tpl); ?> value="<?php echo $_smarty_tpl->tpl_vars['CapacityFilter']->value; ?> "/> </li> <li> <label for="filterRequiresApproval"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceRequiresApproval'), $_smarty_tpl); ?> </label> <select id="filterRequiresApproval" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'REQUIRES_APPROVAL'), $_smarty_tpl); ?> > <?php echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['YesNoOptions']->value, 'selected' => $_smarty_tpl->tpl_vars['RequiresApprovalFilter']->value), $_smarty_tpl); ?> </select> </li> <li> <label for="filterAutoAssign"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourcePermissionAutoGranted'), $_smarty_tpl); ?> </label> <select id="filterAutoAssign" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'AUTO_ASSIGN'), $_smarty_tpl); ?> > <?php echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['YesNoOptions']->value, 'selected' => $_smarty_tpl->tpl_vars['AutoPermissionFilter']->value), $_smarty_tpl); ?> </select> </li> <li> <label for="filterAllowMultiDay"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceAllowMultiDay'), $_smarty_tpl); ?> </label> <select id="filterAllowMultiDay" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'ALLOW_MULTIDAY'), $_smarty_tpl); ?> > <?php echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['YesNoOptions']->value, 'selected' => $_smarty_tpl->tpl_vars['AllowMultiDayFilter']->value), $_smarty_tpl); ?> </select> </li> <?php $_smarty_tpl->tpl_vars['attribute'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['attribute']->_loop = false; $_from = $_smarty_tpl->tpl_vars['AttributeFilters']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['attribute']->key => $_smarty_tpl->tpl_vars['attribute']->value) { $_smarty_tpl->tpl_vars['attribute']->_loop = true; ?> <li class="customAttribute"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['control'][0][0]->DisplayControl(array('type' => "AttributeControl", 'attribute' => $_smarty_tpl->tpl_vars['attribute']->value, 'searchmode' => true), $_smarty_tpl); ?> </li> <?php } ?> </ul> </form> <div class="clear"> </div> <div id="adminFilterButtons"> <button id="filter" class="button"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "search.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Filter'), $_smarty_tpl); ?> </button> <a href="#" id="clearFilter"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Reset'), $_smarty_tpl); ?> </a> </div> </div> <?php if (!empty($_smarty_tpl->tpl_vars['Resources']->value)) { ?> <div> <a href="#" id="bulkUpdatePromptButton" class=""><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "ui-check-boxes.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'BulkResourceUpdate'), $_smarty_tpl); ?> </a> </div> <?php } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['pagination'][0][0]->CreatePagination(array('pageInfo' => $_smarty_tpl->tpl_vars['PageInfo']->value), $_smarty_tpl); ?> <div id="globalError" class="error" style="display:none"></div> <div class="admin" style="margin-top:10px;"> <?php $_smarty_tpl->tpl_vars['resource'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['resource']->_loop = false; $_from = $_smarty_tpl->tpl_vars['Resources']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['resource']->key => $_smarty_tpl->tpl_vars['resource']->value) { $_smarty_tpl->tpl_vars['resource']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable($_smarty_tpl->tpl_vars['resource']->value->GetResourceId(), null, 0); ?> <div class="resourceDetails" resourceId="<?php echo $_smarty_tpl->tpl_vars['id']->value; ?> "> <div style="float:left;max-width:50%;"> <input type="hidden" class="id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value; ?> "/> <div style="float:left; text-align:center; width:110px;"> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasImage()) { ?> <img src="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['resource_image'][0][0]->GetResourceImage(array('image' => $_smarty_tpl->tpl_vars['resource']->value->GetImage()), $_smarty_tpl); ?> " alt="Resource Image" class="image"/> <br/> <a class="update imageButton" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Change'), $_smarty_tpl); ?> </a> | <a class="update removeImageButton" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Remove'), $_smarty_tpl); ?> </a> <?php } else { ?> <div class="noImage"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'NoImage'), $_smarty_tpl); ?> </div> <a class="update imageButton" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AddImage'), $_smarty_tpl); ?> </a> <?php } ?> </div> <div style="float:right;"> <ul> <li> <h4><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['resource']->value->GetName(), ENT_QUOTES, 'UTF-8', true); ?> </h4> <a class="update renameButton" href="javascript:void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Rename'), $_smarty_tpl); ?> </a> | <a class="update deleteButton" href="javascript:void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Delete'), $_smarty_tpl); ?> </a> </li> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Status'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['resource']->value->IsAvailable()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "status.png"), $_smarty_tpl); ?> <a class="update changeStatus" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Available'), $_smarty_tpl); ?> </a> <?php } elseif ($_smarty_tpl->tpl_vars['resource']->value->IsUnavailable()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "status-away.png"), $_smarty_tpl); ?> <a class="update changeStatus" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Unavailable'), $_smarty_tpl); ?> </a> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "status-busy.png"), $_smarty_tpl); ?> <a class="update changeStatus" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Hidden'), $_smarty_tpl); ?> </a> <?php } ?> <?php if (array_key_exists($_smarty_tpl->tpl_vars['resource']->value->GetStatusReasonId(), $_smarty_tpl->tpl_vars['StatusReasons']->value)) { ?> <span class="resourceValue"><?php echo $_smarty_tpl->tpl_vars['StatusReasons']->value[$_smarty_tpl->tpl_vars['resource']->value->GetStatusReasonId()]->Description(); ?> </span> <?php } ?> </li> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Schedule'), $_smarty_tpl); ?> <span class="resourceValue"><?php echo $_smarty_tpl->tpl_vars['Schedules']->value[$_smarty_tpl->tpl_vars['resource']->value->GetScheduleId()]; ?> </span> <a class="update changeScheduleButton" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Move'), $_smarty_tpl); ?> </a> </li> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceType'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasResourceType()) { ?> <span class="resourceValue"><?php echo $_smarty_tpl->tpl_vars['ResourceTypes']->value[$_smarty_tpl->tpl_vars['resource']->value->GetResourceTypeId()]->Name(); ?> </span> <?php } else { ?> <span class="note"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'NoResourceTypeLabel'), $_smarty_tpl); ?> </span> <?php } ?> <a class="update changeResourceType" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Edit'), $_smarty_tpl); ?> </a> </li> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'SortOrder'), $_smarty_tpl); ?> <span class="resourceValue"><?php echo ($tmp = @$_smarty_tpl->tpl_vars['resource']->value->GetSortOrder()) === null || $tmp === '' ? "-" : $tmp; ?> </span> <a class="update changeSortOrder" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Edit'), $_smarty_tpl); ?> </a> </li> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Location'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasLocation()) { ?> <span class="resourceValue"><?php echo $_smarty_tpl->tpl_vars['resource']->value->GetLocation(); ?> </span> <?php } else { ?> <span class="note"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'NoLocationLabel'), $_smarty_tpl); ?> </span> <?php } ?> <a class="update changeLocationButton" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Edit'), $_smarty_tpl); ?> </a> </li> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Contact'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasContact()) { ?> <span class="resourceValue"><?php echo $_smarty_tpl->tpl_vars['resource']->value->GetContact(); ?> </span> <?php } else { ?> <span class="note"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'NoContactLabel'), $_smarty_tpl); ?> </span> <?php } ?> </li> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Description'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasDescription()) { ?> <span class="resourceValue"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['resource']->value->GetDescription(), 500, "..."); ?> </span> <?php } else { ?> <span class="note"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'NoDescriptionLabel'), $_smarty_tpl); ?> </span> <?php } ?> <a class="update descriptionButton" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Edit'), $_smarty_tpl); ?> </a> </li> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Notes'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasNotes()) { ?> <span class="resourceValue"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['resource']->value->GetNotes(), 500, "..."); ?> </span> <?php } else { ?> <span class="note"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'NoNotesLabel'), $_smarty_tpl); ?> </span> <?php } ?> <a class="update notesButton" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Edit'), $_smarty_tpl); ?> </a> </li> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceAdministrator'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasAdminGroup()) { ?> <span class="resourceValue"><?php echo $_smarty_tpl->tpl_vars['GroupLookup']->value[$_smarty_tpl->tpl_vars['resource']->value->GetAdminGroupId()]->Name; ?> </span> <?php } else { ?> <span class="note"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'NoResourceAdministratorLabel'), $_smarty_tpl); ?> </span> <?php } ?> <?php if (count($_smarty_tpl->tpl_vars['AdminGroups']->value) > 0) { ?> <a class="update adminButton" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Edit'), $_smarty_tpl); ?> </a> <?php } ?> </li> <li> <?php if ($_smarty_tpl->tpl_vars['resource']->value->GetIsCalendarSubscriptionAllowed()) { ?> <a class="update disableSubscription" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'TurnOffSubscription'), $_smarty_tpl); ?> </a> <?php } else { ?> <a class="update enableSubscription" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'TurnOnSubscription'), $_smarty_tpl); ?> </a> <?php } ?> </li> </ul> </div> </div> <div style="float:right;"> <div> <h5><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'UsageConfiguration'), $_smarty_tpl); ?> </h5> <a class="update changeConfigurationButton" href="javascript: void(0);"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ChangeConfiguration'), $_smarty_tpl); ?> </a> </div> <div style="float:left;width:400px;"> <ul> <li> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasMinLength()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinLength', 'args' => $_smarty_tpl->tpl_vars['resource']->value->GetMinLength()), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinLengthNone'), $_smarty_tpl); ?> <?php } ?> </li> <li> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasMaxLength()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxLength', 'args' => $_smarty_tpl->tpl_vars['resource']->value->GetMaxLength()), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxLengthNone'), $_smarty_tpl); ?> <?php } ?> </li> <li> <?php if ($_smarty_tpl->tpl_vars['resource']->value->GetRequiresApproval()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceRequiresApproval'), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceRequiresApprovalNone'), $_smarty_tpl); ?> <?php } ?> </li> <li> <?php if ($_smarty_tpl->tpl_vars['resource']->value->GetAutoAssign()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourcePermissionAutoGranted'), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourcePermissionNotAutoGranted'), $_smarty_tpl); ?> <?php } ?> </li> </ul> </div> <div style="float:right;width:400px;"> <ul> <li> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasMinNotice()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinNotice', 'args' => $_smarty_tpl->tpl_vars['resource']->value->GetMinNotice()), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinNoticeNone'), $_smarty_tpl); ?> <?php } ?> </li> <li> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasMaxNotice()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxNotice', 'args' => $_smarty_tpl->tpl_vars['resource']->value->GetMaxNotice()), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxNoticeNone'), $_smarty_tpl); ?> <?php } ?> </li> <li> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasBufferTime()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceBufferTime', 'args' => $_smarty_tpl->tpl_vars['resource']->value->GetBufferTime()), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceBufferTimeNone'), $_smarty_tpl); ?> <?php } ?> </li> <li> <?php if ($_smarty_tpl->tpl_vars['resource']->value->GetAllowMultiday()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceAllowMultiDay'), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceNotAllowMultiDay'), $_smarty_tpl); ?> <?php } ?> </li> <li> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasMaxParticipants()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceCapacity', 'args' => $_smarty_tpl->tpl_vars['resource']->value->GetMaxParticipants()), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceCapacityNone'), $_smarty_tpl); ?> <?php } ?> </li> </ul> </div> <div><h5><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Permissions'), $_smarty_tpl); ?> </h5> <a href="#" class="update changeUsers"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Users'), $_smarty_tpl); ?> </a> | <a href="#" class="update changeGroups"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Groups'), $_smarty_tpl); ?> </a></div> </div> <?php $_smarty_tpl->tpl_vars['attributes'] = new Smarty_variable($_smarty_tpl->tpl_vars['AttributeList']->value->GetAttributes($_smarty_tpl->tpl_vars['id']->value), null, 0); ?> <?php if (count($_smarty_tpl->tpl_vars['attributes']->value) > 0) { ?> <div class="customAttributes"> <form method="post" class="attributesForm" ajaxAction="<?php echo ManageResourcesActions::ActionChangeAttributes; ?> "> <h3><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AdditionalAttributes'), $_smarty_tpl); ?> <a href="#" class="update changeAttributes"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Edit'), $_smarty_tpl); ?> </a> </h3> <div class="validationSummary"> <ul> </ul> <div class="clear"> </div> </div> <ul> <?php $_smarty_tpl->tpl_vars['attribute'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['attribute']->_loop = false; $_from = $_smarty_tpl->tpl_vars['attributes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['attribute']->key => $_smarty_tpl->tpl_vars['attribute']->value) { $_smarty_tpl->tpl_vars['attribute']->_loop = true; ?> <li class="customAttribute" attributeId="<?php echo $_smarty_tpl->tpl_vars['attribute']->value->Id(); ?> "> <div class="attribute-readonly"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['control'][0][0]->DisplayControl(array('type' => "AttributeControl", 'attribute' => $_smarty_tpl->tpl_vars['attribute']->value, 'readonly' => true), $_smarty_tpl); ?> </div> <div class="attribute-readwrite hidden"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['control'][0][0]->DisplayControl(array('type' => "AttributeControl", 'attribute' => $_smarty_tpl->tpl_vars['attribute']->value), $_smarty_tpl); ?> </li> <?php } ?> </ul> <div class="attribute-readwrite hidden clear"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "tick-circle.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div class="clear"> </div> <?php } ?> <div class="actions"> </div> </div> <?php } ?> </div> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['pagination'][0][0]->CreatePagination(array('pageInfo' => $_smarty_tpl->tpl_vars['PageInfo']->value), $_smarty_tpl); ?> <div class="admin" style="margin-top:30px"> <div class="title"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AddNewResource'), $_smarty_tpl); ?> </div> <div> <div id="addResourceResults" class="error" style="display:none;"></div> <form id="addResourceForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionAdd; ?> "> <table> <tr> <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Name'), $_smarty_tpl); ?> </th> <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Schedule'), $_smarty_tpl); ?> </th> <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourcePermissions'), $_smarty_tpl); ?> </th> <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceAdministrator'), $_smarty_tpl); ?> </th> <th> </th> </tr> <tr> <td><input type="text" class="textbox required" maxlength="85" style="width:250px" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_NAME'), $_smarty_tpl); ?> /> </td> <td> <select class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'SCHEDULE_ID'), $_smarty_tpl); ?> style="width:100px"> <?php $_smarty_tpl->tpl_vars['scheduleName'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['scheduleName']->_loop = false; $_smarty_tpl->tpl_vars['scheduleId'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['Schedules']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['scheduleName']->key => $_smarty_tpl->tpl_vars['scheduleName']->value) { $_smarty_tpl->tpl_vars['scheduleName']->_loop = true; $_smarty_tpl->tpl_vars['scheduleId']->value = $_smarty_tpl->tpl_vars['scheduleName']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['scheduleId']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['scheduleName']->value; ?> </option> <?php } ?> </select> </td> <td> <select class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'AUTO_ASSIGN'), $_smarty_tpl); ?> style="width:170px"> <option value="0"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => "ResourcePermissionNotAutoGranted"), $_smarty_tpl); ?> </option> <option value="1"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => "ResourcePermissionAutoGranted"), $_smarty_tpl); ?> </option> </select> </td> <td> <select class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_ADMIN_GROUP_ID'), $_smarty_tpl); ?> style="width:170px"> <option value=""><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'None'), $_smarty_tpl); ?> </option> <?php $_smarty_tpl->tpl_vars['adminGroup'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['adminGroup']->_loop = false; $_from = $_smarty_tpl->tpl_vars['AdminGroups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['adminGroup']->key => $_smarty_tpl->tpl_vars['adminGroup']->value) { $_smarty_tpl->tpl_vars['adminGroup']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['adminGroup']->value->Id; ?> "><?php echo $_smarty_tpl->tpl_vars['adminGroup']->value->Name; ?> </option> <?php } ?> </select> </td> <td> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "plus-button.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AddResource'), $_smarty_tpl); ?> </button> </td> </tr> </table> </form> </div> </div> <input type="hidden" id="activeId" value="" /> <div id="imageDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AddImage'), $_smarty_tpl); ?> "> <form id="imageForm" method="post" enctype="multipart/form-data" ajaxAction="<?php echo ManageResourcesActions::ActionChangeImage; ?> "> <input id="resourceImage" type="file" class="text" size="60" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_IMAGE'), $_smarty_tpl); ?> /> <br/> <span class="note">.gif, .jpg, or .png</span> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "disk-black.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="renameDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Rename'), $_smarty_tpl); ?> "> <form id="renameForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionRename; ?> "> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Name'), $_smarty_tpl); ?> : <input id="editName" type="text" class="textbox required" maxlength="85" style="width:250px" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_NAME'), $_smarty_tpl); ?> /> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "disk-black.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Rename'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="scheduleDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'MoveToSchedule'), $_smarty_tpl); ?> "> <form id="scheduleForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionChangeSchedule; ?> "> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'MoveToSchedule'), $_smarty_tpl); ?> : <select id="editSchedule" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'SCHEDULE_ID'), $_smarty_tpl); ?> > <?php $_smarty_tpl->tpl_vars['scheduleName'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['scheduleName']->_loop = false; $_smarty_tpl->tpl_vars['scheduleId'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['Schedules']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['scheduleName']->key => $_smarty_tpl->tpl_vars['scheduleName']->value) { $_smarty_tpl->tpl_vars['scheduleName']->_loop = true; $_smarty_tpl->tpl_vars['scheduleId']->value = $_smarty_tpl->tpl_vars['scheduleName']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['scheduleId']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['scheduleName']->value; ?> </option> <?php } ?> </select> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "disk-black.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="resourceTypeDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceType'), $_smarty_tpl); ?> "> <form id="resourceTypeForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionChangeResourceType; ?> "> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceType'), $_smarty_tpl); ?> : <select id="editResourceType" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_TYPE_ID'), $_smarty_tpl); ?> > <option value="">-- <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'None'), $_smarty_tpl); ?> --</option> <?php $_smarty_tpl->tpl_vars['resourceType'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['resourceType']->_loop = false; $_smarty_tpl->tpl_vars['id'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['ResourceTypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['resourceType']->key => $_smarty_tpl->tpl_vars['resourceType']->value) { $_smarty_tpl->tpl_vars['resourceType']->_loop = true; $_smarty_tpl->tpl_vars['id']->value = $_smarty_tpl->tpl_vars['resourceType']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['id']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['resourceType']->value->Name(); ?> </option> <?php } ?> </select> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "disk-black.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="locationDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Location'), $_smarty_tpl); ?> "> <form id="locationForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionChangeLocation; ?> "> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Location'), $_smarty_tpl); ?> :<br/> <input id="editLocation" type="text" class="textbox" maxlength="85" style="width:250px" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_LOCATION'), $_smarty_tpl); ?> /><br/> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Contact'), $_smarty_tpl); ?> :<br/> <input id="editContact" type="text" class="textbox" maxlength="85" style="width:250px" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_CONTACT'), $_smarty_tpl); ?> /> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "disk-black.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="descriptionDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Description'), $_smarty_tpl); ?> "> <form id="descriptionForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionChangeDescription; ?> "> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Description'), $_smarty_tpl); ?> :<br/> <textarea id="editDescription" class="textbox" style="width:460px;height:150px;" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_DESCRIPTION'), $_smarty_tpl); ?> ></textarea> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "disk-black.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="notesDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Notes'), $_smarty_tpl); ?> "> <form id="notesForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionChangeNotes; ?> "> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Notes'), $_smarty_tpl); ?> :<br/> <textarea id="editNotes" class="textbox" style="width:460px;height:150px;" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_NOTES'), $_smarty_tpl); ?> ></textarea> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "disk-black.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="configurationDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'UsageConfiguration'), $_smarty_tpl); ?> "> <form id="configurationForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionChangeConfiguration; ?> "> <div style="margin-bottom: 10px;"> <fieldset> <legend><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Duration'), $_smarty_tpl); ?> </legend> <ul> <li> <label> <input type="checkbox" id="noMinimumDuration"/> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinLengthNone'), $_smarty_tpl); ?> </label> <span class="noMinimumDuration"> <br/> <?php $_smarty_tpl->_capture_stack[0][] = array("txtMinDuration", "txtMinDuration", null); ob_start(); ?> <input type='text' id='minDurationDays' size='3' class='days textbox' maxlength='3'/> <input type='text' id='minDurationHours' size='2' class='hours textbox' maxlength='2'/> <input type='text' id='minDurationMinutes' size='2' class='minutes textbox' maxlength='2'/> <input type='hidden' id='minDuration' class='interval' <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MIN_DURATION'), $_smarty_tpl); ?> /> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinLength', 'args' => $_smarty_tpl->tpl_vars['txtMinDuration']->value), $_smarty_tpl); ?> </span> </li> <li> <label> <input type="checkbox" id="noMaximumDuration"/> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxLengthNone'), $_smarty_tpl); ?> </label> <span class="noMaximumDuration"> <br/> <?php $_smarty_tpl->_capture_stack[0][] = array("txtMaxDuration", "txtMaxDuration", null); ob_start(); ?> <input type='text' id='maxDurationDays' size='3' class='days textbox' maxlength='3'/> <input type='text' id='maxDurationHours' size='2' class='hours textbox' maxlength='2'/> <input type='text' id='maxDurationMinutes' size='2' class='minutes textbox' maxlength='2'/> <input type='hidden' id='maxDuration' class='interval' <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MAX_DURATION'), $_smarty_tpl); ?> /> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxLength', 'args' => $_smarty_tpl->tpl_vars['txtMaxDuration']->value), $_smarty_tpl); ?> </span> </li> <li> <label> <input type="checkbox" id="noBufferTime"/> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceBufferTimeNone'), $_smarty_tpl); ?> </label> <span class="noBufferTime"> <br/> <?php $_smarty_tpl->_capture_stack[0][] = array("txtBufferTime", "txtBufferTime", null); ob_start(); ?> <input type='text' id='bufferTimeDays' size='3' class='days textbox' maxlength='3'/> <input type='text' id='bufferTimeHours' size='2' class='hours textbox' maxlength='2'/> <input type='text' id='bufferTimeMinutes' size='2' class='minutes textbox' maxlength='2'/> <input type='hidden' id='bufferTime' class='interval' <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'BUFFER_TIME'), $_smarty_tpl); ?> /> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceBufferTime', 'args' => $_smarty_tpl->tpl_vars['txtBufferTime']->value), $_smarty_tpl); ?> </span> </li> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceAllowMultiDay'), $_smarty_tpl); ?> <select id="allowMultiday" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'ALLOW_MULTIDAY'), $_smarty_tpl); ?> > <option value="1"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Yes'), $_smarty_tpl); ?> </option> <option value="0"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'No'), $_smarty_tpl); ?> </option> </select> </li> </ul> </fieldset> <fieldset> <legend><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Access'), $_smarty_tpl); ?> </legend> <ul> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceRequiresApproval'), $_smarty_tpl); ?> <select id="requiresApproval" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'REQUIRES_APPROVAL'), $_smarty_tpl); ?> > <option value="1"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Yes'), $_smarty_tpl); ?> </option> <option value="0"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'No'), $_smarty_tpl); ?> </option> </select> </li> <li> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourcePermissionAutoGranted'), $_smarty_tpl); ?> <select id="autoAssign" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'AUTO_ASSIGN'), $_smarty_tpl); ?> > <option value="1"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Yes'), $_smarty_tpl); ?> </option> <option value="0"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'No'), $_smarty_tpl); ?> </option> </select> </li> <li> <label> <input type="checkbox" id="noStartNotice" /> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinNoticeNone'), $_smarty_tpl); ?> </label> <span class="noStartNotice"> <br/> <?php $_smarty_tpl->_capture_stack[0][] = array("txtStartNotice", "txtStartNotice", null); ob_start(); ?> <input type='text' id='startNoticeDays' size='3' class='days textbox' maxlength='3'/> <input type='text' id='startNoticeHours' size='2' class='hours textbox' maxlength='2'/> <input type='text' id='startNoticeMinutes' size='2' class='minutes textbox' maxlength='2'/> <input type='hidden' id='startNotice' class='interval' <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MIN_NOTICE'), $_smarty_tpl); ?> /> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinNotice', 'args' => $_smarty_tpl->tpl_vars['txtStartNotice']->value), $_smarty_tpl); ?> </span> </li> <li> <label> <input type="checkbox" id="noEndNotice"/> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxNoticeNone'), $_smarty_tpl); ?> </label> <span class="noEndNotice"> <br/> <?php $_smarty_tpl->_capture_stack[0][] = array("txtEndNotice", "txtEndNotice", null); ob_start(); ?> <input type='text' id='endNoticeDays' size='3' class='days textbox' maxlength='3'/> <input type='text' id='endNoticeHours' size='2' class='hours textbox' maxlength='2'/> <input type='text' id='endNoticeMinutes' size='2' class='minutes textbox' maxlength='2'/> <input type='hidden' id='endNotice' class='interval' <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MAX_NOTICE'), $_smarty_tpl); ?> /> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxNotice', 'args' => $_smarty_tpl->tpl_vars['txtEndNotice']->value), $_smarty_tpl); ?> </span> </li> </ul> </fieldset> <fieldset> <legend><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Capacity'), $_smarty_tpl); ?> </legend> <ul> <li> <label> <input type="checkbox" id="unlimitedCapacity"/> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceCapacityNone'), $_smarty_tpl); ?> </label> <span class="unlimitedCapacity"> <br/> <?php $_smarty_tpl->_capture_stack[0][] = array("txtMaxCapacity", "txtMaxCapacity", null); ob_start(); ?> <input type='text' id='maxCapacity' class='textbox' size='5' maxlength='5' <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MAX_PARTICIPANTS'), $_smarty_tpl); ?> /> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceCapacity', 'args' => $_smarty_tpl->tpl_vars['txtMaxCapacity']->value), $_smarty_tpl); ?> </span> </li> </ul> </fieldset> </div> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "disk-black.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="groupAdminDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'WhoCanManageThisResource'), $_smarty_tpl); ?> "> <form method="post" id="groupAdminForm" ajaxAction="<?php echo ManageResourcesActions::ActionChangeAdmin; ?> "> <select id="adminGroupId" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_ADMIN_GROUP_ID'), $_smarty_tpl); ?> class="textbox"> <option value="">-- <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'None'), $_smarty_tpl); ?> --</option> <?php $_smarty_tpl->tpl_vars['adminGroup'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['adminGroup']->_loop = false; $_from = $_smarty_tpl->tpl_vars['AdminGroups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['adminGroup']->key => $_smarty_tpl->tpl_vars['adminGroup']->value) { $_smarty_tpl->tpl_vars['adminGroup']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['adminGroup']->value->Id; ?> "><?php echo $_smarty_tpl->tpl_vars['adminGroup']->value->Name; ?> </option> <?php } ?> </select> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "tick-circle.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="deleteDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Delete'), $_smarty_tpl); ?> "> <form id="deleteForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionDelete; ?> "> <div class="error" style="margin-bottom: 25px;"> <h3><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'DeleteWarning'), $_smarty_tpl); ?> </h3> <br/><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'DeleteResourceWarning'), $_smarty_tpl); ?> : <ul> <li><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'DeleteResourceWarningReservations'), $_smarty_tpl); ?> </li> <li><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'DeleteResourceWarningPermissions'), $_smarty_tpl); ?> </li> </ul> <br/> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'DeleteResourceWarningReassign'), $_smarty_tpl); ?> </div> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "cross-button.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Delete'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="sortOrderDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'SortOrder'), $_smarty_tpl); ?> "> <form id="sortOrderForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionChangeSort; ?> "> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'SortOrder'), $_smarty_tpl); ?> : <input type="text" id="editSortOrder" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_SORT_ORDER'), $_smarty_tpl); ?> maxlength="3" style="width:40px"/> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "disk-black.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="statusDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Status'), $_smarty_tpl); ?> "> <form id="statusForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionChangeStatus; ?> "> <select id="statusId" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_STATUS_ID'), $_smarty_tpl); ?> class="textbox"> <option value="<?php echo ResourceStatus::AVAILABLE; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Available'), $_smarty_tpl); ?> </option> <option value="<?php echo ResourceStatus::UNAVAILABLE; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Unavailable'), $_smarty_tpl); ?> </option> <option value="<?php echo ResourceStatus::HIDDEN; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Hidden'), $_smarty_tpl); ?> </option> </select> <br/> <br/> <label for="reasonId"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Reason'), $_smarty_tpl); ?> </label> <a href="#" id="addStatusReason"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Add'), $_smarty_tpl); ?> </a><br/> <select id="reasonId" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_STATUS_REASON_ID'), $_smarty_tpl); ?> class="textbox"> </select> <div id="newStatusReason" class="hidden"> <input type="text" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_STATUS_REASON'), $_smarty_tpl); ?> /> </div> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "disk-black.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancel"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="bulkUpdateDialog" class="hidden horizontal-list label-top" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'BulkResourceUpdate'), $_smarty_tpl); ?> "> <div class="title"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Resources'), $_smarty_tpl); ?> </div> <form id="bulkUpdateForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionBulkUpdate; ?> "> <div id="bulkUpdateErrors" class="error hidden"></div> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['async_validator'][0][0]->AsyncValidator(array('id' => "bulkAttributeValidator", 'key' => ''), $_smarty_tpl); ?> <div id="bulkUpdateList"> </div> <div> <div class="title"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Common'), $_smarty_tpl); ?> </div> <ul> <li> <label for="bulkEditSchedule"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'MoveToSchedule'), $_smarty_tpl); ?> :</label> <select id="bulkEditSchedule" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'SCHEDULE_ID'), $_smarty_tpl); ?> > <option value="-1"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Unchanged'), $_smarty_tpl); ?> </option> <?php $_smarty_tpl->tpl_vars['scheduleName'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['scheduleName']->_loop = false; $_smarty_tpl->tpl_vars['scheduleId'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['Schedules']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['scheduleName']->key => $_smarty_tpl->tpl_vars['scheduleName']->value) { $_smarty_tpl->tpl_vars['scheduleName']->_loop = true; $_smarty_tpl->tpl_vars['scheduleId']->value = $_smarty_tpl->tpl_vars['scheduleName']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['scheduleId']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['scheduleName']->value; ?> </option> <?php } ?> </select> </li> <li> <label for="bulkEditResourceType"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceType'), $_smarty_tpl); ?> :</label> <select id="bulkEditResourceType" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_TYPE_ID'), $_smarty_tpl); ?> > <option value="-1"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Unchanged'), $_smarty_tpl); ?> </option> <option value="">-- <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'None'), $_smarty_tpl); ?> --</option> <?php $_smarty_tpl->tpl_vars['resourceType'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['resourceType']->_loop = false; $_smarty_tpl->tpl_vars['id'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['ResourceTypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['resourceType']->key => $_smarty_tpl->tpl_vars['resourceType']->value) { $_smarty_tpl->tpl_vars['resourceType']->_loop = true; $_smarty_tpl->tpl_vars['id']->value = $_smarty_tpl->tpl_vars['resourceType']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['id']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['resourceType']->value->Name(); ?> </option> <?php } ?> </select> </li> <li> <label for="bulkEditLocation"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Location'), $_smarty_tpl); ?> :</label> <input id="bulkEditLocation" type="text" class="textbox" maxlength="85" style="width:250px" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_LOCATION'), $_smarty_tpl); ?> /> </li> <li> <label for="bulkEditContact"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Contact'), $_smarty_tpl); ?> :</label> <input id="bulkEditContact" type="text" class="textbox" maxlength="85" style="width:250px" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_CONTACT'), $_smarty_tpl); ?> /> </li> <li> <label for="bulkEditAdminGroupId"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceAdministrator'), $_smarty_tpl); ?> :</label> <select id="bulkEditAdminGroupId" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_ADMIN_GROUP_ID'), $_smarty_tpl); ?> class="textbox"> <option value="-1"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Unchanged'), $_smarty_tpl); ?> </option> <option value="">-- <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'None'), $_smarty_tpl); ?> --</option> <?php $_smarty_tpl->tpl_vars['adminGroup'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['adminGroup']->_loop = false; $_from = $_smarty_tpl->tpl_vars['AdminGroups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['adminGroup']->key => $_smarty_tpl->tpl_vars['adminGroup']->value) { $_smarty_tpl->tpl_vars['adminGroup']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['adminGroup']->value->Id; ?> "><?php echo $_smarty_tpl->tpl_vars['adminGroup']->value->Name; ?> </option> <?php } ?> </select> </li> <li> <label for="bulkEditStatusId"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Status'), $_smarty_tpl); ?> :</label> <select id="bulkEditStatusId" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_STATUS_ID'), $_smarty_tpl); ?> class="textbox"> <option value="-1"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Unchanged'), $_smarty_tpl); ?> </option> <option value="<?php echo ResourceStatus::AVAILABLE; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Available'), $_smarty_tpl); ?> </option> <option value="<?php echo ResourceStatus::UNAVAILABLE; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Unavailable'), $_smarty_tpl); ?> </option> <option value="<?php echo ResourceStatus::HIDDEN; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Hidden'), $_smarty_tpl); ?> </option> </select> </li> <li> <label for="bulkEditStatusReasonId"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Reason'), $_smarty_tpl); ?> :</label> <select id="bulkEditStatusReasonId" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_STATUS_REASON_ID'), $_smarty_tpl); ?> class="textbox"> </select> </li> </ul> <ul> <li> <label for="bulkEditDescription"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Description'), $_smarty_tpl); ?> :</label> <textarea id="bulkEditDescription" class="textbox" style="width:460px;height:150px;" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_DESCRIPTION'), $_smarty_tpl); ?> ></textarea> </li> <li> <label for="bulkEditNotes"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Notes'), $_smarty_tpl); ?> :</label> <textarea id="bulkEditNotes" class="textbox" style="width:460px;height:150px;" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'RESOURCE_NOTES'), $_smarty_tpl); ?> ></textarea> </li> </ul> </div> <div> <div class="title"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Duration'), $_smarty_tpl); ?> </div> <ul> <li> <label> <input type="checkbox" id="bulkEditNoMinimumDuration" value="1" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MIN_DURATION_NONE'), $_smarty_tpl); ?> /> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinLengthNone'), $_smarty_tpl); ?> </label> <span class="bulkEditNoMinimumDuration"> <br/> <?php $_smarty_tpl->_capture_stack[0][] = array("txtMinDuration", "txtMinDuration", null); ob_start(); ?> <input type='text' id='bulkEditMinDurationDays' size='3' class='days textbox' maxlength='3'/> <input type='text' id='bulkEditMinDurationHours' size='2' class='hours textbox' maxlength='2'/> <input type='text' id='bulkEditMinDurationMinutes' size='2' class='minutes textbox' maxlength='2'/> <input type='hidden' id='bulkEditMinDuration' class='interval' <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MIN_DURATION'), $_smarty_tpl); ?> /> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <label><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinLength', 'args' => $_smarty_tpl->tpl_vars['txtMinDuration']->value), $_smarty_tpl); ?> </label> </span> </li> <li> <label for="bulkEditNoMaximumDuration"> <input type="checkbox" id="bulkEditNoMaximumDuration" value="1" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MAX_DURATION_NONE'), $_smarty_tpl); ?> /> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxLengthNone'), $_smarty_tpl); ?> </label> <span class="bulkEditNoMaximumDuration"> <br/> <?php $_smarty_tpl->_capture_stack[0][] = array("txtMaxDuration", "txtMaxDuration", null); ob_start(); ?> <input type='text' id='bulkEditMaxDurationDays' size='3' class='days textbox' maxlength='3'/> <input type='text' id='bulkEditMaxDurationHours' size='2' class='hours textbox' maxlength='2'/> <input type='text' id='bulkEditMaxDurationMinutes' size='2' class='minutes textbox' maxlength='2'/> <input type='hidden' id='bulkEditMaxDuration' class='interval' <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MAX_DURATION'), $_smarty_tpl); ?> /> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <label><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxLength', 'args' => $_smarty_tpl->tpl_vars['txtMaxDuration']->value), $_smarty_tpl); ?> </label> </span> </li> <li> <label> <input type="checkbox" id="bulkEditNoBufferTime" value="1" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'BUFFER_TIME_NONE'), $_smarty_tpl); ?> /> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceBufferTimeNone'), $_smarty_tpl); ?> </label> <span class="bulkEditNoBufferTime"> <br/> <?php $_smarty_tpl->_capture_stack[0][] = array("txtBufferTime", "txtBufferTime", null); ob_start(); ?> <input type='text' id='bulkEditBufferTimeDays' size='3' class='days textbox' maxlength='3'/> <input type='text' id='bulkEditBufferTimeHours' size='2' class='hours textbox' maxlength='2'/> <input type='text' id='bulkEditBufferTimeMinutes' size='2' class='minutes textbox' maxlength='2'/> <input type='hidden' id='bulkEditBufferTime' class='interval' <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'BUFFER_TIME'), $_smarty_tpl); ?> /> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <label><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceBufferTime', 'args' => $_smarty_tpl->tpl_vars['txtBufferTime']->value), $_smarty_tpl); ?> </label> </span> </li> </ul> </div> <div> <div class="title"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Access'), $_smarty_tpl); ?> </div> <ul> <li> <label> <input type="checkbox" id="bulkEditNoStartNotice" value="1" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MIN_NOTICE_NONE'), $_smarty_tpl); ?> /> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinNoticeNone'), $_smarty_tpl); ?> </label> <span class="bulkEditNoStartNotice"> <br/> <?php $_smarty_tpl->_capture_stack[0][] = array("txtStartNotice", "txtStartNotice", null); ob_start(); ?> <input type='text' id='bulkEditStartNoticeDays' size='3' class='days textbox' maxlength='3'/> <input type='text' id='bulkEditStartNoticeHours' size='2' class='hours textbox' maxlength='2'/> <input type='text' id='bulkEditStartNoticeMinutes' size='2' class='minutes textbox' maxlength='2'/> <input type='hidden' id='bulkEditStartNotice' class='interval' <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MIN_NOTICE'), $_smarty_tpl); ?> /> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <label><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMinNotice', 'args' => $_smarty_tpl->tpl_vars['txtStartNotice']->value), $_smarty_tpl); ?> </label> </span> </li> <li> <label> <input type="checkbox" id="bulkEditNoEndNotice" value="1" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MAX_NOTICE_NONE'), $_smarty_tpl); ?> /> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxNoticeNone'), $_smarty_tpl); ?> </label> <span class="bulkEditNoEndNotice"> <br/> <?php $_smarty_tpl->_capture_stack[0][] = array("txtEndNotice", "txtEndNotice", null); ob_start(); ?> <input type='text' id='bulkEditEndNoticeDays' size='3' class='days textbox' maxlength='3'/> <input type='text' id='bulkEditEndNoticeHours' size='2' class='hours textbox' maxlength='2'/> <input type='text' id='bulkEditEndNoticeMinutes' size='2' class='minutes textbox' maxlength='2'/> <input type='hidden' id='bulkEditEndNotice' class='interval' <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'MAX_NOTICE'), $_smarty_tpl); ?> /> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <label><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceMaxNotice', 'args' => $_smarty_tpl->tpl_vars['txtEndNotice']->value), $_smarty_tpl); ?> </label> </span> </li> </ul> <ul> <li> <label for="bulkEditAllowMultiday"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceAllowMultiDay'), $_smarty_tpl); ?> </label> <select id="bulkEditAllowMultiday" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'ALLOW_MULTIDAY'), $_smarty_tpl); ?> > <?php echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['YesNoUnchangedOptions']->value), $_smarty_tpl); ?> </select> </li> <li> <label for="bulkEditRequiresApproval"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourceRequiresApproval'), $_smarty_tpl); ?> </label> <select id="bulkEditRequiresApproval" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'REQUIRES_APPROVAL'), $_smarty_tpl); ?> > <?php echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['YesNoUnchangedOptions']->value), $_smarty_tpl); ?> </select> </li> <li> <label for="bulkEditAutoAssign"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ResourcePermissionAutoGranted'), $_smarty_tpl); ?> </label> <select id="bulkEditAutoAssign" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'AUTO_ASSIGN'), $_smarty_tpl); ?> > <?php echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['YesNoUnchangedOptions']->value), $_smarty_tpl); ?> </select> </li> <li> <label for="bulkEditAllowSubscriptions"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'TurnOnSubscription'), $_smarty_tpl); ?> </label> <select id="bulkEditAllowSubscriptions" class="textbox" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'ALLOW_CALENDAR_SUBSCRIPTIONS'), $_smarty_tpl); ?> > <?php echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['YesNoUnchangedOptions']->value), $_smarty_tpl); ?> </select> </li> </ul> </div> <div> <div class="title"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AdditionalAttributes'), $_smarty_tpl); ?> </div> <ul> <?php $_smarty_tpl->tpl_vars['attribute'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['attribute']->_loop = false; $_from = $_smarty_tpl->tpl_vars['AttributeFilters']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['attribute']->key => $_smarty_tpl->tpl_vars['attribute']->value) { $_smarty_tpl->tpl_vars['attribute']->_loop = true; ?> <?php if (!$_smarty_tpl->tpl_vars['attribute']->value->UniquePerEntity()) { ?> <li class="customAttribute"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['control'][0][0]->DisplayControl(array('type' => "AttributeControl", 'attribute' => $_smarty_tpl->tpl_vars['attribute']->value, 'searchmode' => true), $_smarty_tpl); ?> </li> <?php } ?> <?php } ?> </ul> </div> <div class="admin-update-buttons"> <button type="button" class="button save"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "disk-black.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Update'), $_smarty_tpl); ?> </button> <button type="button" class="button cancelColorbox"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "slash.png"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Cancel'), $_smarty_tpl); ?> </button> </div> </form> </div> <div id="userDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Users'), $_smarty_tpl); ?> "> <label><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AddUser'), $_smarty_tpl); ?> <input type="text" id="userSearch" class="textbox" size="40" /></label> <a href="#" id="browseUsers"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Browse'), $_smarty_tpl); ?> </a> <div id="allUsers" style="display:none;" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AllUsers'), $_smarty_tpl); ?> "></div> <h4><span id="totalUsers"></span> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Users'), $_smarty_tpl); ?> </h4> <div id="resourceUserList"></div> </div> <form id="removeUserForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionRemoveUserPermission; ?> "> <input type="hidden" id="removeUserId" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'USER_ID'), $_smarty_tpl); ?> /> </form> <form id="addUserForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionAddUserPermission; ?> "> <input type="hidden" id="addUserId" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'USER_ID'), $_smarty_tpl); ?> /> </form> <div id="groupDialog" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Groups'), $_smarty_tpl); ?> "> <label><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AddGroup'), $_smarty_tpl); ?> <input type="text" id="groupSearch" class="textbox" size="40"/> <a href="#" id="browseGroups"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AllGroups'), $_smarty_tpl); ?> </a></label> <div id="allGroups" style="display:none;" class="dialog" title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AllGroups'), $_smarty_tpl); ?> "></div> <h4><span id="totalGroups"></span> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Groups'), $_smarty_tpl); ?> </h4> <div id="resourceGroupList"></div> </div> <form id="removeGroupForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionRemoveGroupPermission; ?> "> <input type="hidden" id="removeGroupId" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'GROUP_ID'), $_smarty_tpl); ?> /> </form> <form id="addGroupForm" method="post" ajaxAction="<?php echo ManageResourcesActions::ActionAddGroupPermission; ?> "> <input type="hidden" id="addGroupId" <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formname'][0][0]->GetFormName(array('key' => 'GROUP_ID'), $_smarty_tpl); ?> /> </form> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "admin-ajax-indicator.gif", 'class' => "indicator", 'style' => "display:none;"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['jsfile'][0][0]->IncludeJavascriptFile(array('src' => "js/jquery.watermark.min.js"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['jsfile'][0][0]->IncludeJavascriptFile(array('src' => "js/jquery.colorbox-min.js"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['jsfile'][0][0]->IncludeJavascriptFile(array('src' => "admin/edit.js"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['jsfile'][0][0]->IncludeJavascriptFile(array('src' => "admin/resource.js"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['jsfile'][0][0]->IncludeJavascriptFile(array('src' => "js/jquery.form-3.09.min.js"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['jsfile'][0][0]->IncludeJavascriptFile(array('src' => "admin/help.js"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['jsfile'][0][0]->IncludeJavascriptFile(array('src' => "autocomplete.js"), $_smarty_tpl); ?> <script type="text/javascript"> $(document).ready(function () { var actions = { enableSubscription: '<?php echo ManageResourcesActions::ActionEnableSubscription; ?> ', disableSubscription: '<?php echo ManageResourcesActions::ActionDisableSubscription; ?> ', removeImage: '<?php echo ManageResourcesActions::ActionRemoveImage; ?> ' }; var opts = { submitUrl: '<?php echo $_SERVER['SCRIPT_NAME']; ?> ', saveRedirect: '<?php echo $_SERVER['SCRIPT_NAME']; ?> ', actions: actions, userAutocompleteUrl: "../ajax/autocomplete.php?type=<?php echo AutoCompleteType::User; ?> ", groupAutocompleteUrl: "../ajax/autocomplete.php?type=<?php echo AutoCompleteType::Group; ?> ", permissionsUrl: '<?php echo $_SERVER['SCRIPT_NAME']; ?> ' }; var resourceManagement = new ResourceManagement(opts); resourceManagement.init(); <?php $_smarty_tpl->tpl_vars['resource'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['resource']->_loop = false; $_from = $_smarty_tpl->tpl_vars['Resources']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['resource']->key => $_smarty_tpl->tpl_vars['resource']->value) { $_smarty_tpl->tpl_vars['resource']->_loop = true; ?> var resource = { id: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetResourceId(); ?> ', name: "<?php echo strtr($_smarty_tpl->tpl_vars['resource']->value->GetName(), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ", location: "<?php echo strtr($_smarty_tpl->tpl_vars['resource']->value->GetLocation(), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ", contact: "<?php echo strtr($_smarty_tpl->tpl_vars['resource']->value->GetContact(), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ", description: "<?php echo strtr($_smarty_tpl->tpl_vars['resource']->value->GetDescription(), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ", notes: "<?php echo strtr($_smarty_tpl->tpl_vars['resource']->value->GetNotes(), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ", autoAssign: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetAutoAssign(); ?> ', requiresApproval: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetRequiresApproval(); ?> ', allowMultiday: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetAllowMultiday(); ?> ', maxParticipants: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMaxParticipants(); ?> ', scheduleId: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetScheduleId(); ?> ', minLength: {}, maxLength: {}, startNotice: {}, endNotice: {}, bufferTime: {}, adminGroupId: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetAdminGroupId(); ?> ', sortOrder: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetSortOrder(); ?> ', resourceTypeId: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetResourceTypeId(); ?> ', statusId: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetStatusId(); ?> ', reasonId: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetStatusReasonId(); ?> ' }; <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasMinLength()) { ?> resource.minLength = { value: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMinLength(); ?> ', days: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMinLength()->Days(); ?> ', hours: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMinLength()->Hours(); ?> ', minutes: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMinLength()->Minutes(); ?> ' }; <?php } ?> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasMaxLength()) { ?> resource.maxLength = { value: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMaxLength(); ?> ', days: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMaxLength()->Days(); ?> ', hours: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMaxLength()->Hours(); ?> ', minutes: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMaxLength()->Minutes(); ?> ' }; <?php } ?> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasMinNotice()) { ?> resource.startNotice = { value: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMinNotice(); ?> ', days: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMinNotice()->Days(); ?> ', hours: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMinNotice()->Hours(); ?> ', minutes: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMinNotice()->Minutes(); ?> ' }; <?php } ?> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasMaxNotice()) { ?> resource.endNotice = { value: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMaxNotice(); ?> ', days: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMaxNotice()->Days(); ?> ', hours: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMaxNotice()->Hours(); ?> ', minutes: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetMaxNotice()->Minutes(); ?> ' }; <?php } ?> <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasBufferTime()) { ?> resource.bufferTime = { value: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetBufferTime(); ?> ', days: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetBufferTime()->Days(); ?> ', hours: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetBufferTime()->Hours(); ?> ', minutes: '<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetBufferTime()->Minutes(); ?> ' }; <?php } ?> resourceManagement.add(resource); <?php } ?> <?php $_smarty_tpl->tpl_vars['reason'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['reason']->_loop = false; $_from = $_smarty_tpl->tpl_vars['StatusReasons']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['reason']->key => $_smarty_tpl->tpl_vars['reason']->value) { $_smarty_tpl->tpl_vars['reason']->_loop = true; ?> resourceManagement.addStatusReason('<?php echo $_smarty_tpl->tpl_vars['reason']->value->Id(); ?> ', '<?php echo $_smarty_tpl->tpl_vars['reason']->value->StatusId(); ?> ', '<?php echo strtr($_smarty_tpl->tpl_vars['reason']->value->Description(), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); <?php } ?> resourceManagement.initializeStatusFilter('<?php echo $_smarty_tpl->tpl_vars['ResourceStatusFilterId']->value; ?> ', '<?php echo $_smarty_tpl->tpl_vars['ResourceStatusReasonFilterId']->value; ?> '); }); </script> <?php echo $_smarty_tpl->getSubTemplate('globalfooter.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); }
<?php /* Smarty version 2.6.18, created on 2014-10-05 19:07:57 compiled from Dataface_Edit_Record_inc.html */ require_once SMARTY_CORE_DIR . 'core.load_plugins.php'; smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'Dataface_Edit_Record_inc.html', 4, false), array('modifier', 'truncate', 'Dataface_Edit_Record_inc.html', 5, false), array('modifier', 'count', 'Dataface_Edit_Record_inc.html', 12, false), array('block', 'translate', 'Dataface_Edit_Record_inc.html', 7, false))), $this); ?> <?php $this->assign('record', $this->_tpl_vars['ENV']['APPLICATION_OBJECT']->getRecord()); $this->assign('tableSingularLabel', is_array($_tmp = $this->_tpl_vars['ENV']['table_object']->getSingularLabel()) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); $this->assign('recordTitle', is_array($_tmp = is_array($_tmp = $this->_tpl_vars['record']->getTitle()) ? $this->_run_mod_handler('truncate', true, $_tmp, 50) : smarty_modifier_truncate($_tmp, 50)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?> <h3> <?php $this->_tag_stack[] = array('translate', array('id' => 'Edit Record Form Heading', 'tablename' => $this->_tpl_vars['tableSingularLabel'], 'recordTitle' => $this->_tpl_vars['recordTitle'])); $_block_repeat = true; $this->_plugins['block']['translate'][0][0]->translate($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start(); ?> Edit <?php echo $this->_tpl_vars['tableSingularLabel']; ?> » <?php echo $this->_tpl_vars['recordTitle']; ?> <?php $_block_content = ob_get_contents();
} else { ?> <img src="<?php echo $_smarty_tpl->getVariable('productitem')->value['image_link_list']; ?> " height="205" width="150" alt="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('productitem')->value['name'], 'html', 'UTF-8'); ?> " /> <?php } ?> </span> <span class="product-list-name"> <h2 class="product_card_name"><?php echo smarty_modifier_escape(smarty_modifier_truncate($_smarty_tpl->getVariable('productitem')->value['name'], 100, '...'), 'htmlall', 'UTF-8'); ?> </h2> </span> <span class="product_info"> <?php if ($_smarty_tpl->getVariable('price_tax_country')->value == 110) { ?> <span class="price"><?php echo Product::convertAndShow(array('price' => $_smarty_tpl->getVariable('productitem')->value['offer_price_in']), $_smarty_tpl); ?> </span> <?php if ($_smarty_tpl->getVariable('productitem')->value['discount'] > 0) { ?> <span class="strike_price"><?php
function content_55a3ba0a3da862_88844715($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include '/opt/lampp/htdocs/booked/lib/Common/../../lib/external/Smarty/plugins/modifier.truncate.php'; } if ($_smarty_tpl->tpl_vars['authorized']->value) { ?> <div class="res_popup_details" style="margin:0"> <?php $_smarty_tpl->_capture_stack[0][] = array("name", null, null); ob_start(); ?> <div class="user"> <?php if ($_smarty_tpl->tpl_vars['hideUserInfo']->value) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Private'), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['fullName']->value; ?> <?php } ?> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->tpl_vars['formatter']->value->Add('name', Smarty::$_smarty_vars['capture']['name']); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("dates", null, null); ob_start(); ?> <div class="dates"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0][0]->FormatDate(array('date' => $_smarty_tpl->tpl_vars['startDate']->value, 'key' => 'res_popup'), $_smarty_tpl); ?> - <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0][0]->FormatDate(array('date' => $_smarty_tpl->tpl_vars['endDate']->value, 'key' => 'res_popup'), $_smarty_tpl); ?> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->tpl_vars['formatter']->value->Add('dates', Smarty::$_smarty_vars['capture']['dates']); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("title", null, null); ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['hideDetails']->value) { ?> <div class="title"><?php if ($_smarty_tpl->tpl_vars['title']->value != '') { echo $_smarty_tpl->tpl_vars['title']->value; } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'NoTitleLabel'), $_smarty_tpl); } ?> </div> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->tpl_vars['formatter']->value->Add('title', Smarty::$_smarty_vars['capture']['title']); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("resources", null, null); ob_start(); ?> <div class="resources"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => "Resources"), $_smarty_tpl); ?> (<?php echo count($_smarty_tpl->tpl_vars['resources']->value); ?> ): <?php $_smarty_tpl->tpl_vars['resource'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['resource']->_loop = false; $_from = $_smarty_tpl->tpl_vars['resources']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['resource']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['resource']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['resource']->key => $_smarty_tpl->tpl_vars['resource']->value) { $_smarty_tpl->tpl_vars['resource']->_loop = true; $_smarty_tpl->tpl_vars['resource']->iteration++; $_smarty_tpl->tpl_vars['resource']->last = $_smarty_tpl->tpl_vars['resource']->iteration === $_smarty_tpl->tpl_vars['resource']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['resource_loop']['last'] = $_smarty_tpl->tpl_vars['resource']->last; ?> <?php echo $_smarty_tpl->tpl_vars['resource']->value->Name(); ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['resource_loop']['last']) { ?> , <?php } ?> <?php } ?> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->tpl_vars['formatter']->value->Add('resources', Smarty::$_smarty_vars['capture']['resources']); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("participants", null, null); ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['hideUserInfo']->value) { ?> <div class="users"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => "Participants"), $_smarty_tpl); ?> (<?php echo count($_smarty_tpl->tpl_vars['participants']->value); ?> ): <?php $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['user']->_loop = false; $_from = $_smarty_tpl->tpl_vars['participants']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['user']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['user']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value) { $_smarty_tpl->tpl_vars['user']->_loop = true; $_smarty_tpl->tpl_vars['user']->iteration++; $_smarty_tpl->tpl_vars['user']->last = $_smarty_tpl->tpl_vars['user']->iteration === $_smarty_tpl->tpl_vars['user']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['participant_loop']['last'] = $_smarty_tpl->tpl_vars['user']->last; ?> <?php if (!$_smarty_tpl->tpl_vars['user']->value->IsOwner()) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['fullname'][0][0]->DisplayFullName(array('first' => $_smarty_tpl->tpl_vars['user']->value->FirstName, 'last' => $_smarty_tpl->tpl_vars['user']->value->LastName), $_smarty_tpl); ?> <?php } ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['participant_loop']['last']) { ?> , <?php } ?> <?php } ?> </div> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->tpl_vars['formatter']->value->Add('participants', Smarty::$_smarty_vars['capture']['participants']); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("accessories", null, null); ob_start(); ?> <div class="accessories"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => "Accessories"), $_smarty_tpl); ?> (<?php echo count($_smarty_tpl->tpl_vars['accessories']->value); ?> ): <?php $_smarty_tpl->tpl_vars['accessory'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['accessory']->_loop = false; $_from = $_smarty_tpl->tpl_vars['accessories']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['accessory']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['accessory']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['accessory']->key => $_smarty_tpl->tpl_vars['accessory']->value) { $_smarty_tpl->tpl_vars['accessory']->_loop = true; $_smarty_tpl->tpl_vars['accessory']->iteration++; $_smarty_tpl->tpl_vars['accessory']->last = $_smarty_tpl->tpl_vars['accessory']->iteration === $_smarty_tpl->tpl_vars['accessory']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['accessory_loop']['last'] = $_smarty_tpl->tpl_vars['accessory']->last; ?> <?php echo $_smarty_tpl->tpl_vars['accessory']->value->Name; ?> (<?php echo $_smarty_tpl->tpl_vars['accessory']->value->QuantityReserved; ?> ) <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['accessory_loop']['last']) { ?> , <?php } ?> <?php } ?> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->tpl_vars['formatter']->value->Add('accessories', Smarty::$_smarty_vars['capture']['accessories']); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("description", null, null); ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['hideDetails']->value) { ?> <div class="summary"><?php if ($_smarty_tpl->tpl_vars['summary']->value != '') { echo nl2br(smarty_modifier_truncate($_smarty_tpl->tpl_vars['summary']->value, 300, "...")); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'NoDescriptionLabel'), $_smarty_tpl); } ?> </div> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->tpl_vars['formatter']->value->Add('description', Smarty::$_smarty_vars['capture']['description']); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("attributes", null, null); ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['hideDetails']->value) { ?> <?php if (count($_smarty_tpl->tpl_vars['attributes']->value) > 0) { ?> <br/> <?php $_smarty_tpl->tpl_vars['attribute'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['attribute']->_loop = false; $_from = $_smarty_tpl->tpl_vars['attributes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['attribute']->key => $_smarty_tpl->tpl_vars['attribute']->value) { $_smarty_tpl->tpl_vars['attribute']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['attr'] = new Smarty_variable("att" . (string) $_smarty_tpl->tpl_vars['attribute']->value->Id(), null, 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array('' . $_smarty_tpl->tpl_vars['attr']->value, null, null); ob_start(); ?> <div><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['control'][0][0]->DisplayControl(array('type' => "AttributeControl", 'attribute' => $_smarty_tpl->tpl_vars['attribute']->value, 'readonly' => true), $_smarty_tpl); ?> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['attr']->value]; ?> <?php echo $_smarty_tpl->tpl_vars['formatter']->value->Add($_smarty_tpl->tpl_vars['attr']->value, Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['attr']->value]); ?> <?php } ?> <?php } ?> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->tpl_vars['formatter']->value->Add('attributes', Smarty::$_smarty_vars['capture']['attributes']); ?> <!-- <?php echo $_smarty_tpl->tpl_vars['ReservationId']->value; ?> --> <?php echo $_smarty_tpl->tpl_vars['formatter']->value->Display(); ?> </div> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'InsufficientPermissionsError'), $_smarty_tpl); ?> <?php } }
</noscript> <?php } else { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['productitem']->value['image_link_medium']; ?> " height="205" width="150" alt="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['productitem']->value['name'], 'html', 'UTF-8'); ?> " /> <?php } ?> </span> <span class="product-list-name"> <h2 class="product_card_name"><?php echo smarty_modifier_escape(smarty_modifier_truncate($_smarty_tpl->tpl_vars['productitem']->value['name'], 100, '...'), 'htmlall', 'UTF-8'); ?> </h2> </span> <span class="product_info"> <?php if ($_smarty_tpl->getVariable('price_tax_country')->value == 110) { ?> <span class="price"> <?php echo Product::convertAndShow(array('price' => $_smarty_tpl->tpl_vars['productitem']->value['offer_price_in']), $_smarty_tpl); ?> </span> <?php } else { ?>
?> { "id": "<?php echo $_smarty_tpl->tpl_vars['discount']->value['id_discount']; ?> ", "name": "<?php echo addslashes(smarty_modifier_truncate($_smarty_tpl->tpl_vars['discount']->value['name'] . ' : ' . $_smarty_tpl->tpl_vars['discount']->value['description'], 18, '...')); ?> ", "description": "<?php echo addslashes($_smarty_tpl->tpl_vars['discount']->value['description']); ?> ", "nameDescription": "<?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['discount']->value['name'] . ' : ' . $_smarty_tpl->tpl_vars['discount']->value['description'], 18, '...'); ?> ", "link": "<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('order.php', true); ?> ?deleteDiscount=<?php echo $_smarty_tpl->tpl_vars['discount']->value['id_discount']; ?> ", "price": "-<?php if ($_smarty_tpl->tpl_vars['discount']->value['value_real'] != '!') { if ($_smarty_tpl->getVariable('priceDisplay')->value == 1) { ob_start(); echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_tax_exc']), $_smarty_tpl); echo html_entity_decode(ob_get_clean(), 2, 'UTF-8');
<?php endif; ?> </table> <?php elseif ($this->_tpl_vars['HOME_STUFFTYPE'] == 'RSS'): ?> <input type=hidden id=more_<?php echo $this->_tpl_vars['HOME_STUFFID']; ?> value="<?php echo $this->_tpl_vars['HOME_STUFF']['Entries']['More']; ?> "/> <table border=0 cellspacing=0 cellpadding=2 width=100%> <?php $_from = $this->_tpl_vars['HOME_STUFF']['Entries']['Details']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['details']): ?> <tr> <td align="left"> <a href="<?php echo $this->_tpl_vars['details']['1']; ?> " target="_blank"> <?php echo ((is_array($_tmp=$this->_tpl_vars['details']['0'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 50) : smarty_modifier_truncate($_tmp, 50)); ?> ... </a> </td> </tr> <?php endforeach; endif; unset($_from); ?> </table> <?php elseif ($this->_tpl_vars['HOME_STUFFTYPE'] == 'DashBoard'): ?> <input type=hidden id=more_<?php echo $this->_tpl_vars['HOME_STUFFID']; ?> value="<?php echo $this->_tpl_vars['DASHDETAILS'][$this->_tpl_vars['HOME_STUFFID']]['DashType']; ?> "/> <table border=0 cellspacing=0 cellpadding=5 width=100%> <tr> <td align="left"><?php echo $this->_tpl_vars['HOME_STUFF']; ?> </td>
function content_54634bcd9ba0a8_10779133($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include 'C:\\xampp\\htdocs\\KongCMS\\v19\\libs\\plugins\\modifier.truncate.php'; } ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title><?php echo @constant('SITE_NAME'); ?> </title> <meta name="keywords" content="<?php echo @constant('KEY_WORDS'); ?> "> <meta name="description" content="<?php echo @constant('DESCRIPTION'); ?> "> <link href="public/styles/bootstrap.css" rel="stylesheet"> <link href="public/styles/normalize.css" rel="stylesheet"> <link href="public/styles/font-awesome.css" rel="stylesheet"> <script src="public/scripts/jquery-1.10.2.js"></script> <script src="public/scripts/bootstrap.js"></script> <script src="public/scripts/home.js"></script> <link href="public/styles/home.css" rel="stylesheet"> </head> <body> <div id="mask"></div><i class="fa fa-spinner fa-spin loading"></i> <div id="login"> <dl><i class="fa fa-times closeBar"></i> <dd class="feedback text-danger text-center"></dd> <dd><i class="fa fa-user"></i><input type="text" class="form-control" id="login_username" placeholder='用户名'></dd> <dd><i class="fa fa-lock"></i><input type="password" class="form-control" id="login_pwd" placeholder="密码"></dd> <dd><input type="button" class="btn btn-success btn-block" id="loginBtn" value="登录"></dd> </dl> </div> <div id="reg"> <dl><i class="fa fa-times closeBar"></i> <dd class="feedback text-danger text-center"></dd> <dd><i class="fa fa-user"></i><input type="text" class="form-control" id="reg_username" placeholder='用户名(必填)'></dd> <dd><i class="fa fa-lock"></i><input type="password" class="form-control" id="reg_pwd" placeholder="密码(必填)"></dd> <dd><i class="fa fa-envelope" style="font-size:14px;"></i><input type="text" class="form-control" id="reg_email" placeholder="邮箱"></dd> <!-- <dd><i class="fa fa-image" style="font-size:14px;"> </i><input type="file" class="form-control" id="reg_icon" name='reg_icon' placeholder="头像"></dd> --> <dd><input type="button" class="btn btn-success btn-block" id="regBtn" value="注册"></dd> </dl> </div> <div class="row top bg-info"> <div class="col-md-12"> <ul> <li class="memberBar"><a style="display:<?php if ($_smarty_tpl->tpl_vars['logged']->value) { ?> block<?php } else { ?> none<?php } ?> " id="sess"><?php echo $_SESSION['oneUserName']; ?> <i class="caret"></i></a></li> <li><a href="javascript:void(0)" id="regBar" style="display:<?php if ($_smarty_tpl->tpl_vars['logged']->value) { ?> none<?php } else { ?> block<?php } ?> ">注册</a></li> <li><a href="javascript:void(0)" id="loginBar" style="display:<?php if ($_smarty_tpl->tpl_vars['logged']->value) { ?> none<?php } else { ?> block<?php } ?> ">登录</a></li> <li class="memberBar"><a style="display:<?php if ($_smarty_tpl->tpl_vars['logged']->value) { ?> none<?php } else { ?> block<?php } ?> " id="member"></a></li> <dl class="more"> <dd><a href="javascript:void(0)">demo</a></dd> <dd><a href="javascript:void(0)">demo</a></dd> <dd><?php if ($_SESSION['id']) { ?> <a href="?a=user&action=member&id=<?php echo $_SESSION['id']; ?> " id="memberSpace" target="_blank"><?php } else { ?> <a href="" id="memberSpace" target="_blank"><?php } ?> 会员中心</a></dd> <dd><a href="?a=home&action=logout">注销</a></dd> </dl> <div class="clearfix"></div> </ul> </div> </div> <div class="container"> <div class="row"> <div class="col-md-3 logo"><img src="public/images/logo.png"></div> <div class="col-md-9 banner"><?php if ($_smarty_tpl->tpl_vars['banner']->value) { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['banner']->value->link; ?> " target="_blank"><img src="public/uploads/ad/<?php echo $_smarty_tpl->tpl_vars['banner']->value->thumbnail; ?> " title="<?php echo $_smarty_tpl->tpl_vars['banner']->value->description; ?> "></a><?php } else { ?> <img src="public/images/bannerDemo.jpg" title="示例Banner"><?php } ?> </div> </div> <div class="row"> <div class="col-md-12 slider"> <div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <!-- Indicators:指示 --> <!-- 设置图片的大小 --> <ol class="carousel-indicators"> <?php if ($_smarty_tpl->tpl_vars['slider']->value) { ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['slider']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <li data-target="#carousel-example-generic" data-slide-to="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> "></li> <?php } ?> <?php } ?> </ol> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <?php if ($_smarty_tpl->tpl_vars['slider']->value) { ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_from = $_smarty_tpl->tpl_vars['slider']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; ?> <!--一张图片 --> <div class="item"> <a href="<?php echo $_smarty_tpl->tpl_vars['value']->value->link; ?> " target="_blank"><img src="public/uploads/ad/<?php echo $_smarty_tpl->tpl_vars['value']->value->thumbnail; ?> " title="<?php echo $_smarty_tpl->tpl_vars['value']->value->description; ?> "></a> <div class="carousel-caption"> <h3><?php echo $_smarty_tpl->tpl_vars['value']->value->title; ?> </h3> <p><?php echo $_smarty_tpl->tpl_vars['value']->value->description; ?> </p> </div> </div> <?php } ?> <?php } else { ?> <div class="item"> <img src="public/uploads/ad/20140909142825572.jpg" alt="..."> <div class="carousel-caption"> <h3>标题</h3> <p>阿斯顿发第三方</p> </div> </div> <?php } ?> </div> <!-- Controls --> <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> <span class="sr-only">Next</span> </a> </div> </div> </div> <div class="row"> <div class="col-md-12"> <ul class="nav nav-pills"> <li class="active"><a href="index.php">首页</a></li> <?php if ($_smarty_tpl->tpl_vars['frontNav']->value) { ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['frontNav']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <li><a href="?a=subnav&action=show&id=<?php echo $_smarty_tpl->tpl_vars['value']->value->id; ?> " target="_blank"><?php echo $_smarty_tpl->tpl_vars['value']->value->name; ?> </a></li> <?php } ?> <?php } else { ?> <li><a href="#">关于我们</a></li> <li><a href="#">关于我们</a></li> <li><a href="#">关于我们</a></li> <li><a href="#">关于我们</a></li> <li><a href="#">关于我们</a></li> <li><a href="#">关于我们</a></li> <li style="border:0"><a href="#">关于我们</a></li> <?php } ?> <div class="clearfix"></div> </ul> </div> </div> <div class="row up"> <div class="col-md-8 headline"> <dl> <?php if ($_smarty_tpl->tpl_vars['headline']->value) { ?> <dd><a href="?a=article&action=detail&id=<?php echo $_smarty_tpl->tpl_vars['headline']->value->id; ?> " target="_blank"><img src="public/uploads/article/<?php echo $_smarty_tpl->tpl_vars['headline']->value->thumbnail; ?> "></a></dd> <dd><h2><a href="?a=article&action=detail&id=<?php echo $_smarty_tpl->tpl_vars['headline']->value->id; ?> " target="_blank"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['headline']->value->title, 20, "..."); ?> </a></h2><span><a href="#"><i class="fa fa-share-alt"></i></a><br><a href="#"><i class="fa fa-comment-o"></i></a></span></dd> <?php } else { ?> <dd><img src="public/images/headline.jpg"></dd> <dd><h2><a href="#">新闻标题</a></h2></dd> <?php } ?> </dl> </div> <div class="col-md-4 member bg-primary"> <dl class="text-center"> <?php if ($_smarty_tpl->tpl_vars['LatestUser']->value) { ?> <dt class="bg-info">最新会员</dt> <dd><a href="?a=user&action=member2"><img src="public/uploads/member/<?php echo $_smarty_tpl->tpl_vars['LatestUser']->value->icon; ?> "></a></dd> <dd class="name bg-info"><a href="?a=user&action=member2&id=<?php echo $_smarty_tpl->tpl_vars['LatestUser']->value->id; ?> " class="text-danger" target="_blank"><?php echo $_smarty_tpl->tpl_vars['LatestUser']->value->username; ?> </a></dd> <?php } else { ?> <dt class="bg-primary">最新会员</dt> <dd><img src="public/images/default.jpg"></dd> <dd class="name bg-primary">张三</dd> <?php } ?> </dl> </div> </div> <div class="row"> <div class="col-md-12 fullcolumn"><?php if ($_smarty_tpl->tpl_vars['fullcolumn']->value) { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['fullcolumn']->value->link; ?> " target="_blank"><img src="public/uploads/ad/<?php echo $_smarty_tpl->tpl_vars['fullcolumn']->value->thumbnail; ?> " title="<?php echo $_smarty_tpl->tpl_vars['fullcolumn']->value->description; ?> "></a><?php } else { ?> <img src="public/images/fullcolumnDemo.jpg"><?php } ?> </div> </div> <div class="row middle"> <div class="col-md-8"> <?php if ($_smarty_tpl->tpl_vars['focus']->value) { ?> <table border="0" cellspacing="0" cellpadding="0"> <tr style="height:33px;"><td rowspan="2" style="width:120px;"><a href="?a=article&action=detail&id=<?php echo $_smarty_tpl->tpl_vars['focus']->value->id; ?> " target="_blank"><img src="public/uploads/article/<?php echo $_smarty_tpl->tpl_vars['focus']->value->thumbnail; ?> "></a></td><td><h2><a href="?a=article&action=detail&id=<?php echo $_smarty_tpl->tpl_vars['focus']->value->id; ?> " target="_blank"><?php echo $_smarty_tpl->tpl_vars['focus']->value->title; ?> </a></h2></td><td style="width:70px;"><span><a href="#"><i class="fa fa-share-alt"></i></a><br><a href="#"><i class="fa fa-comment-o"></i></a></span></td></tr> <tr><td colspan="2">文章简介文章简介文章简介文章简介</td></tr> </table> <?php } else { ?> <table border="0" cellspacing="0" cellpadding="0"> <tr style="height:33px;"><td rowspan="2" style="width:120px;"><img src="public/images/0.jpg"></td><td><h2><a href="#">新闻标题</a></h2></td><td style="width:70px;">22</td></tr> <tr><td colspan="2">文章简介文章简介文章简介文章简介</td></tr> </table> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['headline']->value) { ?> <table border="0" cellspacing="0" cellpadding="0"> <tr style="height:33px;"><td rowspan="2" style="width:120px;"><a href="?a=article&action=detail&id=<?php echo $_smarty_tpl->tpl_vars['headline']->value->id; ?> " target="_blank"><img src="public/uploads/article/<?php echo $_smarty_tpl->tpl_vars['headline']->value->thumbnail; ?> "></a></td><td><h2><a href="?a=article&action=detail&id=<?php echo $_smarty_tpl->tpl_vars['headline']->value->id; ?> " target="_blank"><?php echo $_smarty_tpl->tpl_vars['headline']->value->title; ?> </a></h2></td><td style="width:70px;"><span><a href="#"><i class="fa fa-share-alt"></i></a><br><a href="#"><i class="fa fa-comment-o"></i></a></span></td></tr> <tr><td colspan="2">文章简介文章简介文章简介文章简介</td></tr> </table> <?php } else { ?> <table border="0" cellspacing="0" cellpadding="0"> <tr style="height:33px;"><td rowspan="2" style="width:120px;"><img src="public/images/0.jpg"></td><td><h2><a href="#">新闻标题</a></h2></td><td style="width:70px;">22</td></tr> <tr><td colspan="2">文章简介文章简介文章简介文章简介</td></tr> </table> <?php } ?> </div> <div class="col-md-4 vote"> <dl> <div id="voteFeedback"></div> <form action="home.php" method="post"> <dt class="text-center text-success"><?php if ($_smarty_tpl->tpl_vars['subject']->value) { echo $_smarty_tpl->tpl_vars['subject']->value->title; } else { ?> 投票主题<?php } ?> </dt> <?php if ($_smarty_tpl->tpl_vars['items']->value) { ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_from = $_smarty_tpl->tpl_vars['items']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; ?> <dd><i class="fa fa-dot-circle-o"></i><input type="radio" name="vote" id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id; ?> "><label for="<?php echo $_smarty_tpl->tpl_vars['value']->value->id; ?> "><?php echo $_smarty_tpl->tpl_vars['value']->value->title; ?> </label></dd> <?php } ?> <?php } else { ?> <dd><input type="radio" name="vote">一</dd> <?php } ?> <dd class="text-center"><input type="submit" id="voteBtn" name="send" class="btn btn-success" value="投票"> <a href="javascript:void(0)" url="?a=vote&action=showResult&id=<?php echo $_smarty_tpl->tpl_vars['subject']->value->id; ?> " id="showBtn" target="_blank">查看投票结果</a></dd> </form> </dl> </div> </div> <div class="row down"> <div class="col-md-8"> <?php if ($_smarty_tpl->tpl_vars['topic']->value) { ?> <table border="0" cellspacing="0" cellpadding="0"> <tr style="height:33px;"><td rowspan="2" style="width:120px;"><a href="?a=article&action=detail&id=<?php echo $_smarty_tpl->tpl_vars['topic']->value->id; ?> " target="_blank"><img src="public/uploads/article/<?php echo $_smarty_tpl->tpl_vars['topic']->value->thumbnail; ?> "></a></td><td><h2><a href="?a=article&action=detail&id=<?php echo $_smarty_tpl->tpl_vars['topic']->value->id; ?> " target="_blank"><?php echo $_smarty_tpl->tpl_vars['topic']->value->title; ?> </a></h2></td><td style="width:70px;"><span><a href="#"><i class="fa fa-share-alt"></i></a><br><a href="#"><i class="fa fa-comment-o"></i></a></span></td></tr> <tr><td colspan="2">文章简介文章简介文章简介文章简介</td></tr> </table> <?php } else { ?> <table border="0" cellspacing="0" cellpadding="0"> <tr style="height:33px;"><td rowspan="2" style="width:120px;"><img src="public/images/0.jpg"></td><td><h2><a href="#">新闻标题</a></h2></td><td style="width:70px;">22</td></tr> <tr><td colspan="2">文章简介文章简介文章简介文章简介</td></tr> </table> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['recommend']->value) { ?> <table border="0" cellspacing="0" cellpadding="0"> <tr style="height:33px;"><td rowspan="2" style="width:120px;"><a href="?a=article&action=detail&id=<?php echo $_smarty_tpl->tpl_vars['recommend']->value->id; ?> " target="_blank"><img src="public/uploads/article/<?php echo $_smarty_tpl->tpl_vars['recommend']->value->thumbnail; ?> "></a></td><td><h2><a href="?a=article&action=detail&id=<?php echo $_smarty_tpl->tpl_vars['recommend']->value->id; ?> " target="_blank"><?php echo $_smarty_tpl->tpl_vars['recommend']->value->title; ?> </a></h2></td><td style="width:70px;"><span><a href="#"><i class="fa fa-share-alt"></i></a><br><a href="#"><i class="fa fa-comment-o"></i></a></span></td></tr> <tr><td colspan="2">文章简介文章简介文章简介文章简介</td></tr> </table> <?php } else { ?> <table border="0" cellspacing="0" cellpadding="0"> <tr style="height:33px;"><td rowspan="2" style="width:120px;"><img src="public/images/0.jpg"></td><td><h2><a href="#">新闻标题</a></h2></td><td style="width:70px;">22</td></tr> <tr><td colspan="2">文章简介文章简介文章简介文章简介</td></tr> </table> <?php } ?> </div> <div class="col-md-4 sidebar"><?php if ($_smarty_tpl->tpl_vars['sidebar']->value) { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['fullcolumn']->value->link; ?> " target="_blank"><img src="public/uploads/ad/<?php echo $_smarty_tpl->tpl_vars['sidebar']->value->thumbnail; ?> " title="<?php echo $_smarty_tpl->tpl_vars['sidebar']->value->description; ?> "></a><?php } else { ?> <img src="public/images/sidebarDemo.jpg"><?php } ?> </div> </div> <div class="row"> <div class="col-md-12 footer"> <dl> <dd> 关于腾讯 | About Tencent | 服务协议 | 隐私政策 | 开放平台 | 广告服务 | 腾讯招聘 | 腾讯公益 | 客服中心 | 网站导航 </dd> <dd>Copyright © 1998 - 2014 Tencent. All Rights Reserved</dd> <dd> 腾讯公司 版权所有 </dd> </dl> </div> </div> </div> </body> </html><?php }
} ?> - <span class="mod_latest_hits"><?php echo $this->_tpl_vars['article']['hits']; ?> </span> </div> <?php } ?> <?php if ($this->_tpl_vars['cfg']['showdesc']) { ?> <div class="mod_latest_desc" style="overflow:hidden"> <?php echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['article']['description']) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)) ? $this->_run_mod_handler('truncate', true, $_tmp, 200) : smarty_modifier_truncate($_tmp, 200); ?> </div> <?php } ?> </div> <?php } } unset($_from); if ($this->_tpl_vars['cfg']['showrss']) { ?> <div class="mod_latest_rss"> <a href="/rss/content/<?php
回复:<br> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_from = $_smarty_tpl->getVariable('reply')->value[$_smarty_tpl->tpl_vars['one']->value['id']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } if ($_smarty_tpl->_count($_from) > 0) { foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { ?> <?php echo $_smarty_tpl->tpl_vars['value']->value['content']; ?> <br> <span><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['value']->value['time'], 10, ''); ?> </span><br> <?php } } ?> </div> <?php } ?> </li> <?php } } ?>