function content_5349e255330b36_96798765($_smarty_tpl) { if (!is_callable('smarty_block_block_decorator')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/block.block_decorator.php'; } if (!is_callable('smarty_function_text')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.text.php'; } if (!is_callable('smarty_function_url_for_route')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.url_for_route.php'; } if (!is_callable('smarty_function_url_for')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.url_for.php'; } if (($_smarty_tpl->tpl_vars['isAdmin']->value || $_smarty_tpl->tpl_vars['isModerator']->value) && $_smarty_tpl->tpl_vars['disaprvdCount']->value + count($_smarty_tpl->tpl_vars['flags']->value) > 0) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin', 'langLabel' => 'base+moderator_panel')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin', 'langLabel' => 'base+moderator_panel'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <table width="100%"> <tr> <?php if ($_smarty_tpl->tpl_vars['disaprvdCount']->value > 0) { ?> <td> <div class="ow_smallmargin"><?php echo smarty_function_text(array('key' => "base+for_approval"), $_smarty_tpl); ?> </div> <ul class="ow_regular"> <li > <a href="<?php echo smarty_function_url_for_route(array('for' => 'users-waiting-for-approval'), $_smarty_tpl); ?> "><?php echo smarty_function_text(array('key' => 'base+users', 'count' => $_smarty_tpl->tpl_vars['disaprvdCount']->value), $_smarty_tpl); ?> </a> <span class="ow_lbutton ow_green"><?php echo $_smarty_tpl->tpl_vars['disaprvdCount']->value; ?> </span> </li> </ul> </td> <?php } ?> <?php if (count($_smarty_tpl->tpl_vars['flags']->value) > 0) { ?> <td> <div class="ow_smallmargin"><?php echo smarty_function_text(array('key' => "base+flagged_content"), $_smarty_tpl); ?> </div> <ul class="ow_regular"> <?php $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['flag']->_loop = false; $_from = $_smarty_tpl->tpl_vars['flags']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) { $_smarty_tpl->tpl_vars['flag']->_loop = true; ?> <li> <a href="<?php echo smarty_function_url_for(array('for' => "BASE_CTRL_Flags:index:[type =>" . (string) $_smarty_tpl->tpl_vars['flag']->value['type'] . "]"), $_smarty_tpl); ?> "><?php echo smarty_function_text(array('key' => (string) $_smarty_tpl->tpl_vars['flag']->value['langKey']), $_smarty_tpl); ?> </a> <span class="ow_lbutton ow_red"><?php echo $_smarty_tpl->tpl_vars['flag']->value['count']; ?> </span> </li> <?php } ?> </ul> </td> <?php } ?> </tr> </table> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin', 'langLabel' => 'base+moderator_panel'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['componentPanel']->value; }
function content_555974c5188766_57143649($_smarty_tpl) { if (!is_callable('smarty_block_script')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.script.php'; } if (!is_callable('smarty_function_url_for')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.url_for.php'; } if (!is_callable('smarty_function_text')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.php'; } if (!is_callable('smarty_function_cycle')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.cycle.php'; } if (!is_callable('smarty_function_math')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.math.php'; } if (!is_callable('smarty_function_decorator')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.decorator.php'; } $_smarty_tpl->smarty->_tag_stack[] = array('script', array()); $_block_repeat = true; echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> window.editLangValue = function editLangValue(_prefix, _key, _callback){ if ( !window.question_langs_floatbox_display ) { window.question_langs_floatbox_display = true; $.post( '<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:ajaxEditLanguageValuesForm"), $_smarty_tpl); ?> ?prefix='+_prefix+'&key='+_key, {}, function(json){ if(document['ajaxLangValueEditForms'] == undefined) { document['ajaxLangValueEditForms'] = []; } document['ajaxLangValueEditForms'][_prefix+'-'+_key] = new OW_FloatBox({$title: '<?php echo smarty_function_text(array('key' => "admin+questions_edit_section_name_title"), $_smarty_tpl); ?> ', $contents: json['markup'], width: 556}); document['ajaxLangValueEditForms'][_prefix+'-'+_key+'callback'] = _callback; document['ajaxLangValueEditForms'][_prefix+'-'+_key].bind("close", function() { window.question_langs_floatbox_display = false; }); OW.addScriptFiles(json['include_js'], function(){ OW.addScript(json['js']); }); }, 'json'); } } <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->tpl_vars['contentMenu']->value; ?> <div class="ow_admin_profile_questions_list_div"> <table class="ow_table_2 ow_smallmargin ow_lables_table"> <tr class="ow_tr_first"> <th colspan="4" class="ow_tr_top_empty ow_txtleft"> <?php echo smarty_function_text(array('key' => "admin+questions_page_description"), $_smarty_tpl); ?> </th> <th colspan="<?php echo $_smarty_tpl->tpl_vars['accountTypesCount']->value; ?> " class="ow_tr_top"> <div class="ow_tr_top_buttons"> <div class="ow_tr_top_button ow_tr_top_button_selected" ><div><?php echo smarty_function_text(array('key' => 'admin+question_menu_account_types'), $_smarty_tpl); ?> </div></div> <div class="ow_tr_top_button" onclick='window.location.href="<?php echo $_smarty_tpl->tpl_vars['propertiesUrl']->value; ?> "'><div><?php echo smarty_function_text(array('key' => 'admin+question_menu_properties'), $_smarty_tpl); ?> </div></div> </div> </th> </tr> <tr class="ow_tr_last ow_tr_titles"> <th class="question_label_th" ><div class="question_label_div"><?php echo smarty_function_text(array('key' => 'admin+question_column_question'), $_smarty_tpl); ?> </div></th> <th class="question_account_type_th"><div class="question_account_type_div"><?php echo smarty_function_text(array('key' => 'admin+question_column_type'), $_smarty_tpl); ?> </div></th> <th class="question_values_th"><div class="question_values_div"><?php echo smarty_function_text(array('key' => 'admin+question_column_values'), $_smarty_tpl); ?> </div></th> <th class="question_buttons_th" ><div class="question_buttons_div"></div></th> <?php $_smarty_tpl->tpl_vars['accountType'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['accountType']->_loop = false; $_from = $_smarty_tpl->tpl_vars['accountTypeDtoList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['accountType']->key => $_smarty_tpl->tpl_vars['accountType']->value) { $_smarty_tpl->tpl_vars['accountType']->_loop = true; ?> <th class="ow_small account_type_th" style="width:<?php echo $_smarty_tpl->tpl_vars['td_width']->value; ?> px;" data-accounttype="<?php echo $_smarty_tpl->tpl_vars['accountType']->value->name; ?> "> <div style="width:<?php echo $_smarty_tpl->tpl_vars['div_width']->value; ?> px;position:relative;"> <input type='hidden' value='<?php echo $_smarty_tpl->tpl_vars['accountType']->value->name; ?> '> <div class="account_type_menu" style="position:absolute;top: -8px; right: -8px;display:none;"><?php echo $_smarty_tpl->tpl_vars['accountTypeMenu']->value; ?> </div> <div class="table_content_block"style="overflow:hidden; font-weight: normal;"><?php echo smarty_function_text(array('key' => "base+questions_account_type_" . (string) $_smarty_tpl->tpl_vars['accountType']->value->name), $_smarty_tpl); ?> </div> </div> </th> <?php } ?> <th class="ow_small account_type_th" style="width:<?php echo $_smarty_tpl->tpl_vars['td_width']->value; ?> px;"> <div class="table_content_block" style="width:<?php echo $_smarty_tpl->tpl_vars['div_width']->value; ?> px;overflow:hidden; font-weight: normal;"><a class="add_account_type" href="javascript://"><?php echo smarty_function_text(array('key' => "base+questions_add_account_type"), $_smarty_tpl); ?> </div> </th> </tr> </table> <?php $_smarty_tpl->tpl_vars['questions'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['questions']->_loop = false; $_smarty_tpl->tpl_vars['section'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['questionsBySections']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['questions']->key => $_smarty_tpl->tpl_vars['questions']->value) { $_smarty_tpl->tpl_vars['questions']->_loop = true; $_smarty_tpl->tpl_vars['section']->value = $_smarty_tpl->tpl_vars['questions']->key; ?> <table class="ow_table_2 ow_smallmargin ow_admin_profile_questions_list <?php if (!$_smarty_tpl->tpl_vars['section']->value) { ?> no_section<?php } else { echo $_smarty_tpl->tpl_vars['section']->value; } ?> " sectionName=<?php if ($_smarty_tpl->tpl_vars['section']->value) { ?> "<?php echo $_smarty_tpl->tpl_vars['section']->value; ?> "<?php } else { ?> "no_section"<?php } ?> > <tr class="question_section_tr ow_tr_first"> <th class="section_value <?php if ($_smarty_tpl->tpl_vars['section']->value) { ?> ow_admin_profile_question_dnd_cursor<?php } ?> " colspan="<?php echo $_smarty_tpl->tpl_vars['tableColumnCount']->value; ?> "> <div class="ow_section_label" ><?php if ($_smarty_tpl->tpl_vars['section']->value) { echo smarty_function_text(array('key' => "base+questions_section_" . (string) $_smarty_tpl->tpl_vars['section']->value . "_label"), $_smarty_tpl); } else { echo smarty_function_text(array('key' => "base+questions_no_section_label"), $_smarty_tpl); } ?> </div> <div class="delete_edit_buttons quest_buttons ow_right"> <?php if ($_smarty_tpl->tpl_vars['section']->value) { ?> <a href="javascript://" class="ow_lbutton edit_sectionNameLang" style="visibility:hidden;" ><?php echo smarty_function_text(array('key' => 'admin+btn_label_edit'), $_smarty_tpl); ?> </a> <?php if ($_smarty_tpl->tpl_vars['sectionList']->value[$_smarty_tpl->tpl_vars['section']->value]->isDeletable) { ?> <a href="javascript://" class="ow_lbutton ow_red section_delete_button" style="visibility:hidden;" ><?php echo smarty_function_text(array('key' => 'admin+btn_label_delete'), $_smarty_tpl); ?> </a> <?php } ?> <?php } ?> </div> </th> </tr> <?php if (isset($_smarty_tpl->tpl_vars['questions']->value)) { ?> <?php $_smarty_tpl->tpl_vars['question'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['question']->_loop = false; $_from = $_smarty_tpl->tpl_vars['questions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['question']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['question']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['question']->key => $_smarty_tpl->tpl_vars['question']->value) { $_smarty_tpl->tpl_vars['question']->_loop = true; $_smarty_tpl->tpl_vars['question']->iteration++; $_smarty_tpl->tpl_vars['question']->last = $_smarty_tpl->tpl_vars['question']->iteration === $_smarty_tpl->tpl_vars['question']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['question']['last'] = $_smarty_tpl->tpl_vars['question']->last; ?> <?php $_smarty_tpl->_capture_stack[0][] = array("evenstyle", null, null); ob_start(); echo smarty_function_cycle(array('name' => "acc_" . (string) $_smarty_tpl->tpl_vars['section']->value, 'values' => "ow_alt1,ow_alt2"), $_smarty_tpl); 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(); } ?> <tr class="question_tr ow_admin_profile_question_dnd_cursor <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['question']['last']) { ?> ow_tr_last<?php } ?> " question_name="<?php echo $_smarty_tpl->tpl_vars['question']->value['name']; ?> "> <td class="question_label_td <?php echo Smarty::$_smarty_vars['capture']['evenstyle']; ?> ow_txtleft" > <div class="question_label_div ow_overflow_hidden" ><?php echo smarty_function_text(array('key' => "base+questions_question_" . (string) $_smarty_tpl->tpl_vars['question']->value['name'] . "_label"), $_smarty_tpl); ?> </div> </td> <td class="question_presentation_td <?php echo Smarty::$_smarty_vars['capture']['evenstyle']; ?> ow_small" > <div class="question_account_type_div ow_overflow_hidden" ><?php echo smarty_function_text(array('key' => "base+questions_question_presentation_" . (string) $_smarty_tpl->tpl_vars['question']->value['presentation'] . "_label"), $_smarty_tpl); ?> </div> </td> <td class="question_values_td question_values_type_td <?php echo Smarty::$_smarty_vars['capture']['evenstyle']; ?> ow_small"> <?php if (!empty($_smarty_tpl->tpl_vars['previewValues']->value[$_smarty_tpl->tpl_vars['question']->value['name']])) { ?> <div class="question_values_div"><?php echo $_smarty_tpl->tpl_vars['previewValues']->value[$_smarty_tpl->tpl_vars['question']->value['name']]; ?> </div> <?php } else { ?> <?php if (isset($_smarty_tpl->tpl_vars['questionValues']->value[$_smarty_tpl->tpl_vars['question']->value['name']]['values'])) { ?> <?php if (!empty($_smarty_tpl->tpl_vars['question']->value['parentUrl'])) { ?> <div class="question_values_div ow_overflow_hidden"><?php echo smarty_function_text(array('key' => 'admin+questions_matched_question_values', 'label' => $_smarty_tpl->tpl_vars['question']->value['parentLabel'], 'parentId' => $_smarty_tpl->tpl_vars['question']->value['parentId'], 'url' => $_smarty_tpl->tpl_vars['question']->value['parentUrl']), $_smarty_tpl); ?> </div> <?php } else { ?> <div class="question_values_div"> <center><a class="question_values" href="javascript://"><?php echo smarty_function_text(array('key' => "admin+questions_values_count", 'count' => $_smarty_tpl->tpl_vars['questionValues']->value[$_smarty_tpl->tpl_vars['question']->value['name']]['count']), $_smarty_tpl); ?> </a></center> <div style="padding:0 0 0 15px;text-align:left;display:none;width:100px;overflow:hidden;" > <ul style="list-style-type:disc;"> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_from = $_smarty_tpl->tpl_vars['questionValues']->value[$_smarty_tpl->tpl_vars['question']->value['name']]['values']; 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; ?> <li><?php echo $_smarty_tpl->tpl_vars['valueLabels']->value[$_smarty_tpl->tpl_vars['question']->value['name']][$_smarty_tpl->tpl_vars['value']->value->value]; ?> </li> <?php } ?> </ul> </div> </div> <?php } ?> <?php } else { ?> <div class="question_values_div"></div> <?php } ?> <?php } ?> </td> <td class="question_buttons_td <?php echo Smarty::$_smarty_vars['capture']['evenstyle']; ?> ow_nowrap quest_buttons <?php echo Smarty::$_smarty_vars['capture']['evenstyle']; ?> "> <?php if (!empty($_smarty_tpl->tpl_vars['deleteEditButtons']->value[$_smarty_tpl->tpl_vars['question']->value['name']])) { ?> <div class="question_buttons_div ow_overflow_hidden"> <?php echo $_smarty_tpl->tpl_vars['deleteEditButtons']->value[$_smarty_tpl->tpl_vars['question']->value['name']]; ?> </div> <?php } else { ?> <div class="question_buttons_div delete_edit_buttons ow_overflow_hidden"> <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['question']->value['id']; ?> "> <a href="javascript://" class="ow_lbutton question_edit_button" style="visibility:hidden;"><?php echo smarty_function_text(array('key' => 'admin+btn_label_edit'), $_smarty_tpl); ?> </a> <?php if ($_smarty_tpl->tpl_vars['question']->value['base'] != 1 && $_smarty_tpl->tpl_vars['question']->value['removable'] == 1 && empty($_smarty_tpl->tpl_vars['question']->value['parentUrl'])) { ?> <a href="javascript://" class="ow_lbutton ow_red question_delete_button" style="visibility:hidden;"><?php echo smarty_function_text(array('key' => 'admin+btn_label_delete'), $_smarty_tpl); ?> </a> <?php } ?> </div> <?php } ?> </td> <?php if (!empty($_smarty_tpl->tpl_vars['accountTypesCheckboxContent']->value[$_smarty_tpl->tpl_vars['question']->value['name']])) { ?> <td class="ow_small ow_lightweigh <?php echo Smarty::$_smarty_vars['capture']['evenstyle']; ?> " colspan="<?php echo $_smarty_tpl->tpl_vars['accountTypesCount']->value; ?> " style="width:<?php echo smarty_function_math(array('equation' => "count*(width)", 'count' => $_smarty_tpl->tpl_vars['accountTypesCount']->value, 'width' => $_smarty_tpl->tpl_vars['td_width']->value), $_smarty_tpl); ?> px"> <div style="width:<?php echo smarty_function_math(array('equation' => "count*(width) - 18", 'count' => $_smarty_tpl->tpl_vars['accountTypesCount']->value, 'width' => $_smarty_tpl->tpl_vars['td_width']->value), $_smarty_tpl); ?> px;overflow:hidden;"><?php echo $_smarty_tpl->tpl_vars['accountTypesCheckboxContent']->value[$_smarty_tpl->tpl_vars['question']->value['name']]; ?> </div> </td> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['accountType'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['accountType']->_loop = false; $_from = $_smarty_tpl->tpl_vars['accountTypeDtoList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['accountType']->key => $_smarty_tpl->tpl_vars['accountType']->value) { $_smarty_tpl->tpl_vars['accountType']->_loop = true; ?> <td class="account_type_td ow_small ow_lightweigh <?php echo Smarty::$_smarty_vars['capture']['evenstyle']; ?> " data-accounttype="<?php echo $_smarty_tpl->tpl_vars['accountType']->value->name; ?> " style="width:<?php echo $_smarty_tpl->tpl_vars['td_width']->value; ?> px"> <div style="width:<?php echo $_smarty_tpl->tpl_vars['div_width']->value; ?> px;overflow:hidden;"> <div class="<?php echo $_smarty_tpl->tpl_vars['accountType']->value->name; ?> ow_checkbox <?php if ($_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['question']->value['name']]['disable_account_type'] == 1) { ?> <?php if (!empty($_smarty_tpl->tpl_vars['accountTypesToQuestionsDtoList']->value[$_smarty_tpl->tpl_vars['question']->value['name']][$_smarty_tpl->tpl_vars['accountType']->value->name])) { ?> ow_checkbox_cell_marked_lock <?php } else { ?> ow_checkbox_cell_lock <?php } ?> <?php } else { ?> <?php if (!empty($_smarty_tpl->tpl_vars['accountTypesToQuestionsDtoList']->value[$_smarty_tpl->tpl_vars['question']->value['name']][$_smarty_tpl->tpl_vars['accountType']->value->name])) { ?> ow_checkbox_cell_marked <?php } else { ?> ow_checkbox_cell <?php } ?> <?php } ?> "></div> </div> </td> <?php } ?> <td class="ow_small ow_lightweigh <?php echo Smarty::$_smarty_vars['capture']['evenstyle']; ?> " style="width:<?php echo $_smarty_tpl->tpl_vars['td_width']->value; ?> px"> <div class="account_type_empty" style="width:<?php echo $_smarty_tpl->tpl_vars['div_width']->value; ?> px;overflow:hidden"></div> </td> <?php } ?> </tr> <?php } ?> <?php } ?> <tr class="question_tr no_question" style="display:none;"> <td colspan="9"></td> </tr> <tr class="ow_tr_delimiter"><td colspan="9"></td></tr> </table> <?php } ?> </div> <div class="clearfix ow_std_margin"> <div class="ow_right"> <?php echo smarty_function_decorator(array('name' => 'button', 'class' => "ow_ic_add add_new_question_button ow_positive", 'langLabel' => 'admin+questions_add_question_button'), $_smarty_tpl); ?> <?php echo smarty_function_decorator(array('name' => 'button', 'class' => "ow_ic_add add_new_section_button ow_positive", 'langLabel' => 'admin+questions_add_section_button'), $_smarty_tpl); ?> </div> </div> <?php }
function content_555adfab078472_88495779($_smarty_tpl) { if (!is_callable('smarty_block_style')) { include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.style.php'; } if (!is_callable('smarty_block_script')) { include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.script.php'; } if (!is_callable('smarty_function_url_for')) { include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.url_for.php'; } if (!is_callable('smarty_function_text')) { include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.text.php'; } if (!is_callable('smarty_block_block_decorator')) { include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.block_decorator.php'; } if (!is_callable('smarty_function_url_for_route')) { include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.url_for_route.php'; } if (!is_callable('smarty_function_decorator')) { include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.decorator.php'; } $_smarty_tpl->smarty->_tag_stack[] = array('style', array()); $_block_repeat = true; echo smarty_block_style(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> .ph{ border: 1px solid #999; float: left; height: 26px; margin-right: 4px; } .dnd-pannel { min-height: 102px; } <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_style(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('script', array()); $_block_repeat = true; echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> $(document).ready(function(){ $('#main-menu-items, #bottom-menu-items, #hidden-menu-items').sortable({ placeholder: 'ph', tolerance: 'pointer', connectWith: '#main-menu-items, #bottom-menu-items, #hidden-menu-items', start: function(event, ui){ $(ui.placeholder).width($(ui.item).width()); }, stop: function(event, ui){ }, recieve: function(event, ui){}, update: function(event, ui){ if(ui.sender){ return; } var set = {}; $('.ow_navbox', '#main-menu-items').each(function(i){ set['main-menu['+i+']'] = $('input:hidden', this).val(); }); $('.ow_navbox', '#bottom-menu-items').each(function(i){ set['bottom-menu['+i+']'] = $('input:hidden', this).val(); }); $('.ow_navbox', '#hidden-menu-items').each(function(i){ set['hidden-menu['+i+']'] = $('input:hidden', this).val(); }); var url = '<?php echo smarty_function_url_for(array('for' => 'ADMIN_CTRL_Pages:ajaxReorder'), $_smarty_tpl); ?> '; $.post(url, set); } }); }); <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <p><?php echo smarty_function_text(array('key' => 'admin+pages_and_menus_instructions'), $_smarty_tpl); ?> </p> <!-- Std block for page --> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_main_menu_label')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_main_menu_label'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ow_main_menu_scheme"></div> <div id="main-menu-items" class="dnd-pannel" style="width: 650px;" class="ow_left clearfix ow_box_empty"> <?php $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['menu']->_loop = false; $_from = $_smarty_tpl->tpl_vars['menuItems']->value['main']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['menu']->key => $_smarty_tpl->tpl_vars['menu']->value) { $_smarty_tpl->tpl_vars['menu']->_loop = true; ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('script', array()); $_block_repeat = true; echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> $('#menu-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> ').hover( function(){$('#edit-link-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> ').show();}, function(){ $('#edit-link-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> ').hide(); } ); <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['menu']->value['externalUrl']) { ?> <?php $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_external', null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['menu']->value['routePath']) { ?> <?php $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_plugin', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_local', null, 0); ?> <?php } ?> <div id="menu-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> " class="ow_navbox <?php if ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 1) { ?> ow_mild_red<?php } elseif ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 2) { ?> ow_mild_green<?php } ?> "> <div id="edit-link-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> " style="background-color: #999; font-weight: bold; display: none; position:absolute; margin-top: -15px; padding: 0px 3px;"> <a style="color: white;" href="<?php echo smarty_function_url_for_route(array('for' => (string) $_smarty_tpl->tpl_vars['route']->value . ":[id=>" . (string) $_smarty_tpl->tpl_vars['menu']->value['id'] . "]"), $_smarty_tpl); ?> ">edit</a> </div> <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> "> <a class="move" href="#"><?php echo smarty_function_text(array('key' => (string) $_smarty_tpl->tpl_vars['menu']->value['prefix'] . "+" . (string) $_smarty_tpl->tpl_vars['menu']->value['key']), $_smarty_tpl); ?> </a> </div> <?php } if (!$_smarty_tpl->tpl_vars['menu']->_loop) { ?> <div class="empty_" style="text-align: center; display: none;">drag here..</div> <?php } ?> </div> <div class="ow_right ow_txtright"> <?php $_smarty_tpl->_capture_stack[0][] = array('default', "add_main", null); ob_start(); echo smarty_function_url_for_route(array('for' => "admin_pages_add:[type=>main]"), $_smarty_tpl); 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_function_decorator(array('name' => "button", 'class' => "ow_ic_add", 'langLabel' => "base+pages_add_item", 'onclick' => "location.href='" . (string) $_smarty_tpl->tpl_vars['add_main']->value . "';"), $_smarty_tpl); ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_main_menu_label'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!-- End of STD block --> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_bottom_menu_label')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_bottom_menu_label'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ow_bottom_menu_scheme"></div> <div id="bottom-menu-items" class="dnd-pannel" style="width: 650px;" class="ow_left clearfix ow_box_empty"> <?php if (count($_smarty_tpl->tpl_vars['menuItems']->value['bottom'])) { ?> <?php $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['menu']->_loop = false; $_from = $_smarty_tpl->tpl_vars['menuItems']->value['bottom']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['menu']->key => $_smarty_tpl->tpl_vars['menu']->value) { $_smarty_tpl->tpl_vars['menu']->_loop = true; ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('script', array()); $_block_repeat = true; echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> $('#menu-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> ').hover( function(){$('#edit-link-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> ').show();}, function(){ $('#edit-link-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> ').hide(); } ); <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['menu']->value['externalUrl']) { ?> <?php $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_external', null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['menu']->value['routePath']) { ?> <?php $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_plugin', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_local', null, 0); ?> <?php } ?> <div id="menu-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> " class="ow_navbox <?php if ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 1) { ?> ow_mild_red<?php } elseif ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 2) { ?> ow_mild_green<?php } ?> "> <div id="edit-link-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> " style=" background-color: #999; color: #fff;font-weight: bold; display: none; position:absolute; margin-top: -15px; padding: 0px 3px;"> <a style="color: white;" href="<?php echo smarty_function_url_for_route(array('for' => (string) $_smarty_tpl->tpl_vars['route']->value . ":[id=>" . (string) $_smarty_tpl->tpl_vars['menu']->value['id'] . "]"), $_smarty_tpl); ?> "> edit </a> </div> <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> "> <a class="move" href="#"><?php echo smarty_function_text(array('key' => (string) $_smarty_tpl->tpl_vars['menu']->value['prefix'] . "+" . (string) $_smarty_tpl->tpl_vars['menu']->value['key']), $_smarty_tpl); ?> </a> </div> <?php } ?> <?php } else { ?> <div class="empty_" style="display: none;">drag here..</div> <?php } ?> </div> <div class="ow_right ow_txtright"> <?php $_smarty_tpl->_capture_stack[0][] = array('default', "add_bottom", null); ob_start(); echo smarty_function_url_for_route(array('for' => "admin_pages_add:[type=>bottom]"), $_smarty_tpl); 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_function_decorator(array('name' => "button", 'class' => "ow_ic_add", 'langLabel' => "base+pages_add_item", 'onclick' => "location.href='" . (string) $_smarty_tpl->tpl_vars['add_bottom']->value . "';"), $_smarty_tpl); ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_bottom_menu_label'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_delete', 'langLabel' => 'admin+pages_and_menus_hidden_pages_label')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_delete', 'langLabel' => 'admin+pages_and_menus_hidden_pages_label'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="clearfix"> <div id="hidden-menu-items" class="ow_stdmargin clearfix ow_center ow_nomargin dnd-hidden-pannel" style="height:25px;"> <?php if (count($_smarty_tpl->tpl_vars['menuItems']->value['hidden'])) { ?> <?php $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['menu']->_loop = false; $_from = $_smarty_tpl->tpl_vars['menuItems']->value['hidden']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['menu']->key => $_smarty_tpl->tpl_vars['menu']->value) { $_smarty_tpl->tpl_vars['menu']->_loop = true; ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('script', array()); $_block_repeat = true; echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> $('#menu-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> ').hover( function(){$('#edit-link-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> ').show();}, function(){ $('#edit-link-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> ').hide(); } ); <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['menu']->value['externalUrl']) { ?> <?php $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_external', null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['menu']->value['routePath']) { ?> <?php $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_plugin', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_local', null, 0); ?> <?php } ?> <div id="menu-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> " class="ow_navbox <?php if ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 1) { ?> ow_mild_red<?php } elseif ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 2) { ?> ow_mild_green<?php } ?> "> <div id="edit-link-<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> " style="background-color: #999999; color: #fff;font-weight: bold; display: none; position:absolute; margin-top: -15px; padding: 0px 3px;"> <a style="color: white;" href="<?php echo smarty_function_url_for_route(array('for' => (string) $_smarty_tpl->tpl_vars['route']->value . ":[id=>" . (string) $_smarty_tpl->tpl_vars['menu']->value['id'] . "]"), $_smarty_tpl); ?> "> edit </a> </div> <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['menu']->value['id']; ?> "> <a class="move" href="#"><?php echo smarty_function_text(array('key' => (string) $_smarty_tpl->tpl_vars['menu']->value['prefix'] . "+" . (string) $_smarty_tpl->tpl_vars['menu']->value['key']), $_smarty_tpl); ?> </a> </div> <?php } ?> <?php } else { ?> <div class="empty_" style="display: none;">drag here..</div> <?php } ?> </div> </div> <p><?php echo smarty_function_text(array('key' => 'admin+pages_and_menus_hidden_desc'), $_smarty_tpl); ?> </p> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_delete', 'langLabel' => 'admin+pages_and_menus_hidden_pages_label'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_help', 'langLabel' => 'admin+pages_and_menus_legend_label')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_help', 'langLabel' => 'admin+pages_and_menus_legend_label'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="clearfix"><div class="ow_navbox"><b><?php echo smarty_function_text(array('key' => 'admin+pages_and_menus_item_label'), $_smarty_tpl); ?> </b></div> - <?php echo smarty_function_text(array('key' => 'admin+pages_and_menus_legend_everyone_label'), $_smarty_tpl); ?> </div> <div class="clearfix"><div class="ow_navbox ow_mild_red"><b><?php echo smarty_function_text(array('key' => 'admin+pages_and_menus_item_label'), $_smarty_tpl); ?> </b></div> - <?php echo smarty_function_text(array('key' => 'admin+pages_and_menus_legend_guests_label'), $_smarty_tpl); ?> </div> <div class="clearfix"><div class="ow_navbox ow_mild_green"><b><?php echo smarty_function_text(array('key' => 'admin+pages_and_menus_item_label'), $_smarty_tpl); ?> </b></div> - <?php echo smarty_function_text(array('key' => 'admin+pages_and_menus_legend_members_label'), $_smarty_tpl); ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_help', 'langLabel' => 'admin+pages_and_menus_legend_label'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); }
function content_55ba1ff38297b7_04453401($_smarty_tpl) { if (!is_callable('smarty_block_script')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.script.php'; } if (!is_callable('smarty_function_url_for')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.url_for.php'; } if (!is_callable('smarty_block_style')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.style.php'; } if (!is_callable('smarty_function_text')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.php'; } if (!is_callable('smarty_function_cycle')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.cycle.php'; } if (!is_callable('smarty_function_text_edit')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text_edit.php'; } if (!is_callable('smarty_function_math')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.math.php'; } if (!is_callable('smarty_function_url_for_route')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.url_for_route.php'; } if (!is_callable('smarty_function_decorator')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.decorator.php'; } if (!is_callable('smarty_block_block_decorator')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.block_decorator.php'; } if (!is_callable('smarty_block_form')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.form.php'; } if (!is_callable('smarty_function_label')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.label.php'; } if (!is_callable('smarty_function_input')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.input.php'; } if (!is_callable('smarty_function_submit')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.submit.php'; } $_smarty_tpl->smarty->_tag_stack[] = array('script', array()); $_block_repeat = true; echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> $(document).ready(function(){ $('#roles').sortable({ items: 'tr.role', helper: 'clone', placeholder: 'placeholder', start: function(event, ui){ $(ui.placeholder).append('<td colspan="4"></td>'); }, update: function(event, ui){ var set = {}; $('#roles tr.role td input:checkbox[name="role[]"]').each(function(i){ var id = $(this).val(); set['order['+id+']'] = ++i; }); url = '<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Users:ajaxReorder"), $_smarty_tpl); ?> '; $.post( url, set ); }, stop: function(event, ui){ $set = $('#roles tr.role td input:checkbox[name="role[]"]'); $set.attr('disabled', false); $( $set[0] ).attr('disabled', 'disabled').attr('checked', false); $('td span.default-role:visible', this).hide(); $('td input:checkbox[name]') $( $(this).sortable('option', 'items'), this ).each(function(i){ if(i == 0) $('td span.default-role', this).show(); var isEven = (i+1) % 2 === 0; remClass = isEven ? 'ow_alt1':'ow_alt2'; addClass = isEven ? 'ow_alt2':'ow_alt1'; if( $(this).hasClass(remClass) ) $(this).removeClass( remClass ); if( !$(this).hasClass(addClass) ) $(this).addClass( addClass ); }) } }); $(".edit_role", "#roles").click(function(){ var roleId = $(this).attr("rel"); editRoleFloatBox = OW.ajaxFloatBox( "ADMIN_CMP_AuthorizationRoleEdit", { roleId: roleId }, { width:400, iconClass: "ow_ic_edit", title: OW.getLanguageText('admin', 'permissions_edit_role_btn') } ); }); }); <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('style', array()); $_block_repeat = true; echo smarty_block_style(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> tr.placeholder td{ border: 1px dashed grey; height: 35px; width: 100%; } .role{ cursor: move; } <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_style(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <div class="ow_automargin ow_wide"> <form action="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Users:deleteRoles"), $_smarty_tpl); ?> " method="POST"> <table id="roles" class="ow_table_2 ow_form ow_stdmargin ow_center"> <tr class="ow_tr_first"> <th width="1"></th> <th><?php echo smarty_function_text(array('key' => 'admin+permissions_user_role'), $_smarty_tpl); ?> </th> <th width="1"><?php echo smarty_function_text(array('key' => 'admin+permissions_number_of_users'), $_smarty_tpl); ?> </th> <th width="1"><span class="ow_nowrap"><?php echo smarty_function_text(array('key' => 'admin+avatar_label'), $_smarty_tpl); ?> </span></th> </tr> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['set']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['item']->index = -1; 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['item']->index++; $_smarty_tpl->tpl_vars['item']->first = $_smarty_tpl->tpl_vars['item']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["roles"]['first'] = $_smarty_tpl->tpl_vars['item']->first; ?> <?php $_smarty_tpl->tpl_vars['role'] = new Smarty_variable($_smarty_tpl->tpl_vars['item']->value['dto'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['roleId'] = new Smarty_variable($_smarty_tpl->tpl_vars['role']->value->id, null, 0); ?> <tr class="<?php echo smarty_function_cycle(array('values' => 'ow_alt1, ow_alt2'), $_smarty_tpl); ?> role"> <td> <input type="checkbox" name="role[]" value="<?php echo $_smarty_tpl->tpl_vars['role']->value->id; ?> " <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['roles']['first']) { ?> disabled="disabled"<?php } ?> /> </td> <td class="ow_txtleft"> <?php echo smarty_function_text_edit(array('key' => "base+authorization_role_" . (string) $_smarty_tpl->tpl_vars['role']->value->name), $_smarty_tpl); ?> <span class="ow_mild_green ow_small default-role" style="display:<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['roles']['first']) { ?> inline<?php } else { ?> none<?php } ?> ;"> <?php echo smarty_function_text(array('key' => 'admin+permissions_default_role'), $_smarty_tpl); ?> </span> </td> <td class="ow_nowrap"> <?php echo smarty_function_math(array('equation' => "(x/y)*100", 'x' => $_smarty_tpl->tpl_vars['item']->value['userCount'], 'y' => $_smarty_tpl->tpl_vars['total']->value, 'assign' => 'percent'), $_smarty_tpl); ?> <a href="<?php echo smarty_function_url_for_route(array('for' => "admin_users_browse_membership_owners:[roleId=>" . (string) $_smarty_tpl->tpl_vars['roleId']->value . "]"), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['item']->value['userCount']; ?> </a> | <?php echo sprintf('%.1f', $_smarty_tpl->tpl_vars['percent']->value); ?> % </td> <td style="min-width: 40px;"> <?php if ($_smarty_tpl->tpl_vars['role']->value->displayLabel) { ?> <a class="ow_lbutton edit_role" rel="<?php echo $_smarty_tpl->tpl_vars['role']->value->id; ?> " href="javascript://"<?php if (!empty($_smarty_tpl->tpl_vars['role']->value->custom)) { ?> style="background-color: <?php echo $_smarty_tpl->tpl_vars['role']->value->custom; ?> "<?php } ?> > <?php echo smarty_function_text(array('key' => 'base+yes'), $_smarty_tpl); ?> </a> <?php } else { ?> <a href="javascript://" rel="<?php echo $_smarty_tpl->tpl_vars['role']->value->id; ?> " class="edit_role"><?php echo smarty_function_text(array('key' => 'base+no'), $_smarty_tpl); ?> </a> <?php } ?> </td> </tr> <?php } ?> <tr class="ow_tr_last"> <td> <input id="check_all" type="checkbox" onclick="$('#roles tr.role td input:checkbox:enabled').attr('checked', this.checked );" /> </td> <td colspan="3" style="text-align: left;"> <label for="check_all"><?php echo smarty_function_text(array('key' => 'admin+permissions_check_all_selected'), $_smarty_tpl); ?> </label> <form> <?php $_smarty_tpl->smarty->_tag_stack[] = array('script', array()); $_block_repeat = true; echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> function delRoles(){ if( $('#roles tr.role td input:checkbox:checked').size() == 0 ){ alert('<?php echo smarty_function_text(array('key' => 'admin+permissions_please_select_role'), $_smarty_tpl); ?> '); return false; } return confirm('<?php echo smarty_function_text(array('key' => 'admin+permissions_are_you_sure'), $_smarty_tpl); ?> '); } <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo smarty_function_decorator(array('name' => 'button', 'type' => 'submit', 'langLabel' => 'admin+permissions_delete_role', 'class' => 'ow_button ow_red ow_ic_delete', 'onclick' => "return delRoles()"), $_smarty_tpl); ?> </form> </td> </tr> </table> </form> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_stdmargin ow_center', 'type' => 'empty', 'langLabel' => 'admin+add_new_role_block_cap_label', 'iconClass' => 'ow_ic_add')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin ow_center', 'type' => 'empty', 'langLabel' => 'admin+add_new_role_block_cap_label', 'iconClass' => 'ow_ic_add'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => "add-role")); $_block_repeat = true; echo smarty_block_form(array('name' => "add-role"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_label(array('name' => "label"), $_smarty_tpl); ?> <?php echo smarty_function_input(array('name' => "label", 'style' => "width: 270px;"), $_smarty_tpl); ?> <?php echo smarty_function_submit(array('name' => "submit", 'class' => " ow_mild_green ow_ic_add"), $_smarty_tpl); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_form(array('name' => "add-role"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin ow_center', 'type' => 'empty', 'langLabel' => 'admin+add_new_role_block_cap_label', 'iconClass' => 'ow_ic_add'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_stdmargin', 'type' => 'empty', 'langLabel' => 'admin+user_role_permissions_cap_label', 'iconClass' => 'ow_ic_gear_wheel')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'type' => 'empty', 'langLabel' => 'admin+user_role_permissions_cap_label', 'iconClass' => 'ow_ic_gear_wheel'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array('default', "permissionsPageUrl", null); ob_start(); echo smarty_function_url_for(array('for' => 'ADMIN_CTRL_Permissions:roles'), $_smarty_tpl); 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_function_text(array('key' => 'admin+permissions_go_to_permissions_page', 'url' => (string) $_smarty_tpl->tpl_vars['permissionsPageUrl']->value), $_smarty_tpl); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'type' => 'empty', 'langLabel' => 'admin+user_role_permissions_cap_label', 'iconClass' => 'ow_ic_gear_wheel'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php }
function content_548e67739865d2_03930807($_smarty_tpl) { if (!is_callable('smarty_block_block_decorator')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.block_decorator.php'; } if (!is_callable('smarty_function_text')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php'; } if (!is_callable('smarty_function_url_for')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for.php'; } if (!is_callable('smarty_function_decorator')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.php'; } echo $_smarty_tpl->tpl_vars['menu']->value; ?> <?php if ($_smarty_tpl->tpl_vars['isForumAvailable']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['isForumConnected']->value) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'iconClass' => "ow_ic_forum", 'langLabel' => 'forum+forum_settings', 'addClass' => 'ow_center', 'type' => 'empty')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'iconClass' => "ow_ic_forum", 'langLabel' => 'forum+forum_settings', 'addClass' => 'ow_center', 'type' => 'empty'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <p><?php echo smarty_function_text(array('key' => "forum+forum_already_connected"), $_smarty_tpl); ?> </p> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'iconClass' => "ow_ic_forum", 'langLabel' => 'forum+forum_settings', 'addClass' => 'ow_center', 'type' => 'empty'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } else { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'iconClass' => "ow_ic_forum", 'langLabel' => 'forum+forum_settings', 'addClass' => 'ow_center', 'type' => 'empty')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'iconClass' => "ow_ic_forum", 'langLabel' => 'forum+forum_settings', 'addClass' => 'ow_center', 'type' => 'empty'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <p><?php echo smarty_function_text(array('key' => "forum+connect_forum_to_entity"), $_smarty_tpl); ?> </p> <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'onclick', null); ob_start(); ?> window.location.href='<?php echo smarty_function_url_for(array('for' => "GROUPS_CTRL_Admin:connect_forum"), $_smarty_tpl); ?> ?isForumConnected=yes'<?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_function_decorator(array('name' => 'button', 'type' => 'button', 'id' => 'btn-connect-forum', 'langLabel' => 'forum+connect_forum_button', 'class' => 'ow_ic_add', 'onclick' => $_smarty_tpl->tpl_vars['onclick']->value), $_smarty_tpl); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'iconClass' => "ow_ic_forum", 'langLabel' => 'forum+forum_settings', 'addClass' => 'ow_center', 'type' => 'empty'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } } else { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_center', 'type' => 'empty')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_center', 'type' => 'empty'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <p><?php echo smarty_function_text(array('key' => "base+empty_list"), $_smarty_tpl); ?> </p> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_center', 'type' => 'empty'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } }
function content_5559741dcce9f1_41312051($_smarty_tpl) { if (!is_callable('smarty_block_script')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.script.php'; } if (!is_callable('smarty_function_text')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.php'; } if (!is_callable('smarty_function_decorator')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.decorator.php'; } if (!is_callable('smarty_function_cycle')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.cycle.php'; } if (!is_callable('smarty_modifier_escape')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/modifier.escape.php'; } if (!is_callable('smarty_function_url_for')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.url_for.php'; } if (!is_callable('smarty_block_form')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.form.php'; } if (!is_callable('smarty_function_input')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.input.php'; } if (!is_callable('smarty_function_label')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.label.php'; } if (!is_callable('smarty_function_error')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.error.php'; } if (!is_callable('smarty_function_submit')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.submit.php'; } $_smarty_tpl->smarty->_tag_stack[] = array('script', array()); $_block_repeat = true; echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> $(function(){ $('#add_new_text_btn').click(function(){$('#add_new_text').trigger('click')}) }); <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->tpl_vars['menu']->value; ?> <style> input[type="text"].grey-text{color: #BBB;} textarea.once{height:30px;} .lang_value{ width: 395px; overflow: hidden; } </style> <div class="ow_anno ow_std_margin" style="text-align:center;"> <?php echo smarty_function_text(array('key' => "admin+you_are_editing"), $_smarty_tpl); ?> <select onchange="location.href = '<?php echo $_smarty_tpl->tpl_vars['languageSwitchUrl']->value; ?> &language='+this.value;"> <?php $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['lang']->_loop = false; $_from = $_smarty_tpl->tpl_vars['langs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) { $_smarty_tpl->tpl_vars['lang']->_loop = true; ?> <option <?php if ($_smarty_tpl->tpl_vars['language']->value->getTag() == $_smarty_tpl->tpl_vars['lang']->value->getTag()) { ?> selected="selected"<?php } ?> value="<?php echo $_smarty_tpl->tpl_vars['lang']->value->getTag(); ?> "><?php echo $_smarty_tpl->tpl_vars['lang']->value->getLabel(); ?> </option> <?php } ?> </select> <?php echo smarty_function_text(array('key' => "admin+check_other_langs", 'url' => "?mod=langs"), $_smarty_tpl); ?> </div> <div class="ow_stdmargin clearfix"> <div class="ow_left" style="margin: 6px 10px;<?php if (empty($_smarty_tpl->tpl_vars['devMode']->value)) { ?> display: none;<?php } ?> "> <?php echo smarty_function_decorator(array('name' => 'button', 'langLabel' => 'admin+add_new_text', 'class' => 'ow_ic_add', 'id' => "add_new_text_btn"), $_smarty_tpl); ?> <a style="display: none;" id="add_new_text" onclick="new OW_FloatBox({$title: '<?php echo smarty_function_text(array('key' => "admin+title_add_new_text"), $_smarty_tpl); ?> ', $contents: $('#new-key-form'), width: '550px', icon_class: 'ow_ic_add'})"><?php echo smarty_function_text(array('key' => "admin+add_new_text"), $_smarty_tpl); ?> </a> </div> <div class="ow_box ow_right"> <?php echo smarty_function_text(array('key' => "admin+show"), $_smarty_tpl); ?> <select onchange="location.href='<?php echo $_smarty_tpl->tpl_vars['section_switch_url']->value; ?> &prefix='+$(this).val();"> <option <?php if ($_smarty_tpl->tpl_vars['current_prefix']->value == 'all') { ?> selected="selected"<?php } ?> value="all"><?php echo smarty_function_text(array('key' => "admin+all_sections"), $_smarty_tpl); ?> </option> <?php $_smarty_tpl->tpl_vars['prefix'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['prefix']->_loop = false; $_from = $_smarty_tpl->tpl_vars['prefixes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['prefix']->key => $_smarty_tpl->tpl_vars['prefix']->value) { $_smarty_tpl->tpl_vars['prefix']->_loop = true; ?> <option <?php if ($_smarty_tpl->tpl_vars['current_prefix']->value == $_smarty_tpl->tpl_vars['prefix']->value->prefix) { ?> selected="selected"<?php } ?> value="<?php echo $_smarty_tpl->tpl_vars['prefix']->value->prefix; ?> " > <?php echo $_smarty_tpl->tpl_vars['prefix']->value->label; ?> </option> <?php } ?> <option disabled="disabled">-</option> <option <?php if ($_smarty_tpl->tpl_vars['current_prefix']->value == 'missing-text') { ?> selected="selected"<?php } ?> value="missing-text"> <?php echo smarty_function_text(array('key' => "admin+missing_text"), $_smarty_tpl); ?> </option> </select> <b>OR</b> <form id="search_form" style="display: inline" onsubmit="location.href = '<?php echo $_smarty_tpl->tpl_vars['searchFormActionUrl']->value; ?> &search='+ $('#search_inp').val()+( $('#search_in_inp:checked').length > 0 ? '&in_keys=y': ''); return false;"> <input id="search_inp" name="search" type="text" value="<?php echo $_smarty_tpl->tpl_vars['current_search']->value; ?> " style="width: 200px" class="grey-text" onfocus="if(this.flag == undefined){this.flag = false; $(this).removeClass('grey-text').attr('value', '')}" /> <?php if (!empty($_smarty_tpl->tpl_vars['devMode']->value)) { ?> <input id="search_in_inp" name="search_in_keys" <?php if (!empty($_smarty_tpl->tpl_vars['searchInKeys']->value) && $_smarty_tpl->tpl_vars['searchInKeys']->value == 'y') { ?> checked="checked"<?php } ?> type="checkbox" /> <label>in keys</label><?php } ?> <?php echo smarty_function_decorator(array('name' => 'button', 'langLabel' => 'admin+go', 'class' => "ow_ic_lens", 'type' => 'submit'), $_smarty_tpl); ?> </form> </div> </div> <?php if ($_smarty_tpl->tpl_vars['isSearchResults']->value) { ?> <div class="ow_anno ow_std_margin"> <div style="text-align:center;"> <?php if (count($_smarty_tpl->tpl_vars['list']->value) > 0) { ?> <?php echo smarty_function_text(array('key' => "admin+search_results_for_keyword", 'keyword' => (string) $_smarty_tpl->tpl_vars['current_search']->value), $_smarty_tpl); ?> <?php } else { ?> <?php echo smarty_function_text(array('key' => "admin+search_no_results_for_keyword", 'keyword' => (string) $_smarty_tpl->tpl_vars['current_search']->value), $_smarty_tpl); ?> <?php } ?> </div> </div> <?php } else { ?> <?php if (count($_smarty_tpl->tpl_vars['list']->value) == 0) { ?> <div class="ow_anno ow_std_margin"> <div style="text-align:center;"> { text key="admin+no_values" } </div> </div> <?php } ?> <?php } ?> <center><?php echo $_smarty_tpl->tpl_vars['paging']->value; ?> </center> <form method="POST" id="main-form"> <table class="ow_table_1 ow_form" style="width:100%;"> <tr class="ow_tr_first"> <th style="width:47%;text-align:left;"><?php echo smarty_function_text(array('key' => "admin+original_value", 'label' => $_smarty_tpl->tpl_vars['origLabel']->value, 'tag' => $_smarty_tpl->tpl_vars['origTag']->value), $_smarty_tpl); ?> </th> <th style="width:47%;text-align:left;"><?php echo smarty_function_text(array('key' => "admin+translation", 'label' => $_smarty_tpl->tpl_vars['label']->value, 'tag' => $_smarty_tpl->tpl_vars['tag']->value), $_smarty_tpl); ?> </th> <th style="width:6%;"></th> </tr> <!-- custom section --> <!-- end of custom section --> <input type="hidden" name="command" value="edit-values" /> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['list']->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; ?> <tr> <td colspan="3" style="text-align:center;"><h3><?php echo $_smarty_tpl->tpl_vars['item']->value['label']; ?> </h3></td> </tr> <?php $_smarty_tpl->tpl_vars['item_d2'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item_d2']->_loop = false; $_from = $_smarty_tpl->tpl_vars['item']->value['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['item_d2']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['item_d2']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['item_d2']->key => $_smarty_tpl->tpl_vars['item_d2']->value) { $_smarty_tpl->tpl_vars['item_d2']->_loop = true; $_smarty_tpl->tpl_vars['item_d2']->iteration++; $_smarty_tpl->tpl_vars['item_d2']->last = $_smarty_tpl->tpl_vars['item_d2']->iteration === $_smarty_tpl->tpl_vars['item_d2']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['item_d2']['last'] = $_smarty_tpl->tpl_vars['item_d2']->last; ?> <tr class="<?php echo smarty_function_cycle(array('values' => 'ow_alt2, ow_alt1'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['item_d2']['last']) { ?> ow_tr_last<?php } ?> " onmouseover="$('span.del-cont', this).show();" onmouseout="$('span.del-cont', this).hide();"> <td class="ow_label" style="text-align:left;"> <div class="lang_value"> <?php if ($_smarty_tpl->tpl_vars['item_d2']->value['origValue']) { ?> <?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['item_d2']->value['origValue']->value, "html", "utf-8"); ?> <?php } ?> </div> <div style="margin-top: 10px;" class="ow_small"><span style="padding: 1px 3px;" class="ow_mild_green">{text key='<?php echo $_smarty_tpl->tpl_vars['item']->value['prefix']; ?> +<?php echo $_smarty_tpl->tpl_vars['item_d2']->value['key']; ?> '}</span></div> </td> <td class="ow_value"> <?php if ($_smarty_tpl->tpl_vars['item_d2']->value['value']) { ?> <textarea name="values[<?php echo $_smarty_tpl->tpl_vars['item_d2']->value['value']->keyId; ?> ]" class="once" onclick="if(this.once === undefined){this.once = true; $(this).removeClass('once')}"><?php echo $_smarty_tpl->tpl_vars['item_d2']->value['value']->value; ?> </textarea> <?php } else { ?> <textarea name="missing[<?php echo $_smarty_tpl->tpl_vars['item']->value['prefix']; ?> ][<?php echo $_smarty_tpl->tpl_vars['item_d2']->value['key']; ?> ]" class="once"></textarea> <?php } ?> </td> <td class="ns-hover-block"> <div style="width: 50px;"> <span class="del-cont" style="display: none;"> <?php if (!$_smarty_tpl->tpl_vars['devMode']->value && $_smarty_tpl->tpl_vars['item']->value['prefix'] == 'ow_custom' || $_smarty_tpl->tpl_vars['devMode']->value) { ?> <a class="ow_lbutton ow_red" href="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:deletekey"), $_smarty_tpl); ?> ?prefix=<?php echo $_smarty_tpl->tpl_vars['item']->value['prefix']; ?> &key=<?php echo $_smarty_tpl->tpl_vars['item_d2']->value['key']; ?> " onclick="return(confirm('<?php echo smarty_function_text(array('key' => "admin+are_you_sure"), $_smarty_tpl); ?> '));"> <?php echo smarty_function_text(array('key' => "admin+delete"), $_smarty_tpl); ?> </a> <?php } ?> </span> </div> </td> </tr> <?php } } ?> </table> <div class="clearfix ow_stdmargin"><div class="ow_right"><?php echo smarty_function_decorator(array('name' => "button", 'langLabel' => "admin+save_this_page", 'class' => "ow_ic_save ow_positive", 'extraString' => 'onclick="this.form.submit()"'), $_smarty_tpl); ?> </div></div> </form> <center><?php echo $_smarty_tpl->tpl_vars['paging']->value; ?> </center> <!-- begin --> <div style="display:none;"> <div id="new-key-form"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => "form")); $_block_repeat = true; echo smarty_block_form(array('name' => "form"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_input(array('name' => "language"), $_smarty_tpl); ?> <input type="hidden" name="command" value="add-key"> <table class="ow_table_1 ow_form" style="width: 100%"> <tr class="ow_alt2 ow_tr_first" style="<?php if (!$_smarty_tpl->tpl_vars['devMode']->value) { ?> display: none;<?php } ?> "> <td class="ow_label"><?php echo smarty_function_label(array('name' => 'prefix'), $_smarty_tpl); ?> </td> <td class="ow_value"> <?php echo smarty_function_input(array('name' => 'prefix'), $_smarty_tpl); ?> <br /><?php echo smarty_function_error(array('name' => 'prefix'), $_smarty_tpl); ?> </td> </tr> <tr class="ow_alt1" style="<?php if (!$_smarty_tpl->tpl_vars['devMode']->value) { ?> display: none;<?php } ?> "> <td class="ow_label"><?php echo smarty_function_label(array('name' => 'key'), $_smarty_tpl); ?> </td> <td class="ow_value"> <?php echo smarty_function_input(array('name' => 'key'), $_smarty_tpl); ?> <br /><?php echo smarty_function_error(array('name' => 'key'), $_smarty_tpl); ?> </td> </tr> <tr class="ow_alt2 ow_tr_last"> <td class="ow_label ow_nowrap"><?php echo smarty_function_label(array('name' => 'value'), $_smarty_tpl); ?> </td> <td class="ow_value"> <?php echo smarty_function_input(array('name' => 'value', 'style' => 'height: 150px'), $_smarty_tpl); ?> <br /><?php echo smarty_function_error(array('name' => 'value'), $_smarty_tpl); ?> </td> </tr > </table> <div class="clearfix ow_submit"><div class="ow_right"><?php echo smarty_function_submit(array('name' => "submit", 'class' => "ow_positive"), $_smarty_tpl); ?> </div></div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_form(array('name' => "form"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> </div> <!-- end --><?php }
function content_548e6b37853651_69791140($_smarty_tpl) { if (!is_callable('smarty_block_block_decorator')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.block_decorator.php'; } if (!is_callable('smarty_function_text_edit')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text_edit.php'; } if (!is_callable('smarty_function_url_for')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for.php'; } if (!is_callable('smarty_function_text')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php'; } if (!is_callable('smarty_block_form')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.form.php'; } if (!is_callable('smarty_function_label')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.label.php'; } if (!is_callable('smarty_function_input')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.input.php'; } if (!is_callable('smarty_function_submit')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.submit.php'; } echo $_smarty_tpl->tpl_vars['menu']->value; ?> <div class="ow_wide ow_automargin"> <?php if ($_smarty_tpl->tpl_vars['categories']->value) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'virtualgifts+category_list')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'virtualgifts+category_list'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <table class="ow_table_2" id="categories_tbl"> <tbody> <?php $_smarty_tpl->tpl_vars['cat'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['cat']->_loop = false; $_smarty_tpl->tpl_vars['catId'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['categories']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['cat']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['cat']->iteration = 0; $_smarty_tpl->tpl_vars['cat']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['cat']->key => $_smarty_tpl->tpl_vars['cat']->value) { $_smarty_tpl->tpl_vars['cat']->_loop = true; $_smarty_tpl->tpl_vars['catId']->value = $_smarty_tpl->tpl_vars['cat']->key; $_smarty_tpl->tpl_vars['cat']->iteration++; $_smarty_tpl->tpl_vars['cat']->index++; $_smarty_tpl->tpl_vars['cat']->first = $_smarty_tpl->tpl_vars['cat']->index === 0; $_smarty_tpl->tpl_vars['cat']->last = $_smarty_tpl->tpl_vars['cat']->iteration === $_smarty_tpl->tpl_vars['cat']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['cat']['first'] = $_smarty_tpl->tpl_vars['cat']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['cat']['last'] = $_smarty_tpl->tpl_vars['cat']->last; ?> <tr rel="<?php echo $_smarty_tpl->tpl_vars['catId']->value; ?> " class="ow_alt1 <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['cat']['first']) { ?> ow_tr_first<?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['cat']['last']) { ?> ow_tr_last<?php } ?> " onmouseover="$('span.del-cont', this).show();" onmouseout="$('span.del-cont', this).hide();"> <td style="width: 90%;"> <div class="ow_txtleft" style="padding: 2px 0px;"><?php echo smarty_function_text_edit(array('key' => "virtualgifts+category_" . (string) $_smarty_tpl->tpl_vars['catId']->value), $_smarty_tpl); ?> </div> </td> <td class="ns-hover-block"> <div style="width: 50px;"> <span class="del-cont" style="display: none;"> <a class="ow_lbutton ow_red" href="<?php echo smarty_function_url_for(array('for' => "VIRTUALGIFTS_CTRL_Admin:categories"), $_smarty_tpl); ?> ?catId=<?php echo $_smarty_tpl->tpl_vars['catId']->value; ?> " onclick="return(confirm('<?php echo smarty_function_text(array('key' => "admin+are_you_sure"), $_smarty_tpl); ?> '));"><?php echo smarty_function_text(array('key' => "admin+delete"), $_smarty_tpl); ?> </a> </span> </div> </td> </tr> <?php } ?> </tbody> </table> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'virtualgifts+category_list'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'langLabel' => 'virtualgifts+add_category', 'iconClass' => 'ow_ic_add')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'langLabel' => 'virtualgifts+add_category', 'iconClass' => 'ow_ic_add'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'add-category-form')); $_block_repeat = true; echo smarty_block_form(array('name' => 'add-category-form'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ow_smallmargin ow_center"> <?php echo smarty_function_label(array('name' => 'catTitle'), $_smarty_tpl); ?> <?php echo smarty_function_input(array('name' => 'catTitle', 'style' => 'width: 210px;'), $_smarty_tpl); ?> <?php echo smarty_function_submit(array('name' => 'add', 'class' => 'ow_ic_add'), $_smarty_tpl); ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_form(array('name' => 'add-category-form'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'langLabel' => 'virtualgifts+add_category', 'iconClass' => 'ow_ic_add'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div><?php }
function content_5349e1b97f2319_41894535($_smarty_tpl) { if (!is_callable('smarty_function_text')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.text.php'; } if (!is_callable('smarty_block_script')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/block.script.php'; } if (!is_callable('smarty_function_url_for')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.url_for.php'; } if (!is_callable('smarty_block_style')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/block.style.php'; } if (!is_callable('smarty_function_url_for_route')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.url_for_route.php'; } if (!is_callable('smarty_block_block_decorator')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/block.block_decorator.php'; } if (!is_callable('smarty_block_form')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/block.form.php'; } if (!is_callable('smarty_function_input')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.input.php'; } if (!is_callable('smarty_function_label')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.label.php'; } if (!is_callable('smarty_function_submit')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.submit.php'; } if (!is_callable('smarty_function_cycle')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_libraries/smarty3/plugins/function.cycle.php'; } if (!is_callable('smarty_function_decorator')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.decorator.php'; } if (!is_callable('smarty_function_desc')) { include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.desc.php'; } echo $_smarty_tpl->tpl_vars['menu']->value; ?> <div class="ow_stdmargin"> <span class="ow_highlight" style="padding:1px 3px;"><?php echo smarty_function_text(array('key' => "admin+page_note_part_1"), $_smarty_tpl); ?> </span> <?php echo smarty_function_text(array('key' => "admin+page_note_part_2"), $_smarty_tpl); ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('script', array()); $_block_repeat = true; echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> $(document).ready( function(){ $('#s1, #s2').sortable({ items: 'tr.draggable-lang-item', helper: 'clone', placeholder: 'lang_placeholder', start: function(event, ui){ $(ui.placeholder).append('<td colspan="3"></td>'); }, stop: function(event, ui){ switch( this ){ case $('#s1')[0]: if( $('tr.draggable-lang-item', this).length == 0 ) { alert( '<?php echo smarty_function_text(array('key' => "admin+msg_one_active_constraint"), $_smarty_tpl); ?> ' ); $(this).sortable('cancel'); $('#s1 tr.empty').remove(); break; } $('tr.draggable-lang-item:odd', this).each(function(){ if( !$(this).hasClass('ow_even') ) $(this).addClass('ow_even'); }); $('tr.draggable-lang-item:even', this).each(function(){ if( $(this).hasClass('ow_even') ) $(this).removeClass('ow_even'); }); break; } }, receive: function(event, ui){ switch(this){ case $('#s1')[0] : $('tr.draggable-lang-item', this).each( function(){ $('td:nth(2) div span a.deact', this).show(); $('td:nth(2) div span a.act', this).hide(); $('td:nth(2) div span a.del', this).hide(); if( $(this).hasClass('ow_high2') ){ $(this).removeClass('ow_high2'); } } ); $( 'td:nth(2) div span a.deact', $('tr.draggable-lang-item', this).get(0) ).hide(); if( $('tr.draggable-lang-item', this).length == 0 ) { alert( '{text key="admin+msg_one_active_constraint"}' ); $(this).sortable('cancel'); $('#s1 tr.empty').remove(); break; } $('tr.draggable-lang-item:odd', this).each(function(){ if( !$(this).hasClass('ow_even') ) $(this).addClass('ow_even'); }); $('tr.draggable-lang-item:even', this).each(function(){ if( $(this).hasClass('ow_even') ) $(this).removeClass('ow_even'); }); break; case $('#s2')[0]: if($('tr.draggable-lang-item', ui.sender).length == 0) break; $('tr.draggable-lang-item', this).each( function(){ $('td:nth(2) div span a.deact', this).hide(); $('td:nth(2) div span a.act', this).show(); $('td:nth(2) div span a.del', this).show(); if( $(this).hasClass('ow_even') ) $(this).removeClass('ow_even'); if( !$(this).hasClass('ow_high2') ) $(this).addClass('ow_high2'); } ) ; break; } }, update: function(event, ui){ if( ui.sender ){ if($('tr', ui.sender[0]).length == 0) $( ui.sender[0] ).append('<tr class="empty"><td colspan="3"><?php echo smarty_function_text(array('key' => "admin+empty"), $_smarty_tpl); ?> </td></tr>'); return; } if( $('#s1 tr.empty').length == 1 && $('#s1 tr.draggable-lang-item').length > 0 ) $('#s1 tr.empty').remove(); if( $('#s2 tr.empty').length == 1 && $('#s2 tr.draggable-lang-item').length > 0 ) $('#s2 tr.empty').remove(); $('tr.draggable-lang-item', '#s1').each( function(){ $('td:nth(2) div span a.deact', this).show(); }); $( 'td:nth(2) div span a.deact', $('tr.draggable-lang-item', '#s1').get(0) ).hide(); var set = {}; $('tr.draggable-lang-item', '#s1').each(function(i){ set['active['+i+']'] = parseInt( $('input:hidden', this).attr('value') ); }); $('tr.draggable-lang-item', '#s2').each(function(i){ set[ 'inactive['+i+']' ] = parseInt( $('input:hidden', this).attr('value') ); }); if( $('tr.draggable-lang-item', '#s1').length == 0 ) return; $('td:nth(0) span.ow_mild_green', $('tr.draggable-lang-item', '#s1, #s2')).remove(); $('td:nth(0)', $('tr.draggable-lang-item', '#s1')[0]).append( '<span class="ow_mild_green ow_small"><?php echo smarty_function_text(array('key' => "admin+def"), $_smarty_tpl); ?> </span>' ); $.ajax( { type: "POST", url: '<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:ajaxOrder"), $_smarty_tpl); ?> ', data: set }); }, connectWith: '#s1, #s2' }).each( function(){ $('tr.draggable-lang-item', this).hover( function(){ $('td:nth-child(3) div span', this).show() }, function(){ $('td:nth-child(3) div span', this).hide() } ); if ($('tr.draggable-lang-item', this).length == 0) $(this).append( '<tr class="empty"><td colspan="3"><?php echo smarty_function_text(array('key' => "admin+empty"), $_smarty_tpl); ?> </td></tr>' ); } ); }); <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('style', array()); $_block_repeat = true; echo smarty_block_style(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> .lang_placeholder { border: 1px dashed grey; width: 100%; } tr.lang_placeholder td{ border: 1px dashed grey; width: 100%; height: 35px; } .draggable-lang-item{ cursor: move; } <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_style(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <div class="ow_superwide ow_automargin ow_stdmargin"> <a name="lang_list"></a> <table id="langs" class="ow_table_1"> <tr class="ow_tr_first"> <th class="ow_center"><?php echo smarty_function_text(array('key' => "admin+active_languages"), $_smarty_tpl); ?> </th> <th width="100"><?php echo smarty_function_text(array('key' => "admin+missing_keys2"), $_smarty_tpl); ?> </th> <th width="180"></th> </tr> <tbody id="s1" class="s"> <?php $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['lang']->_loop = false; $_from = $_smarty_tpl->tpl_vars['active_langs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['lang']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['lang']->iteration = 0; $_smarty_tpl->tpl_vars['lang']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) { $_smarty_tpl->tpl_vars['lang']->_loop = true; $_smarty_tpl->tpl_vars['lang']->iteration++; $_smarty_tpl->tpl_vars['lang']->index++; $_smarty_tpl->tpl_vars['lang']->first = $_smarty_tpl->tpl_vars['lang']->index === 0; $_smarty_tpl->tpl_vars['lang']->last = $_smarty_tpl->tpl_vars['lang']->iteration === $_smarty_tpl->tpl_vars['lang']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["active_langs"]['first'] = $_smarty_tpl->tpl_vars['lang']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["active_langs"]['last'] = $_smarty_tpl->tpl_vars['lang']->last; ?> <tr class="ow_high1 draggable-lang-item <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['active_langs']['last']) { ?> ow_tr_last<?php } ?> "> <td style="text-align:left;"><input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value['id']; ?> "> <?php echo $_smarty_tpl->tpl_vars['lang']->value['label']; ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['active_langs']['first']) { ?> <span class="ow_mild_green ow_small"><?php echo smarty_function_text(array('key' => "admin+def"), $_smarty_tpl); ?> </span><?php } ?> </td> <td class="ow_center"> <a href="<?php if ($_smarty_tpl->tpl_vars['devMode']->value) { echo smarty_function_url_for_route(array('for' => "admin_developer_tools_language"), $_smarty_tpl); } else { echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:"), $_smarty_tpl); } ?> ?language=<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> &prefix=missing-text"><?php echo $_smarty_tpl->tpl_vars['lang']->value['missing_key_count']; ?> </a> </td> <td> <div style="width:250px;height: 20px;" class="ow_center"> <span style="display: none;"> <a class="ow_lbutton" href="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:index"), $_smarty_tpl); ?> ?language=<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> "><?php echo smarty_function_text(array('key' => "admin+btn_label_edit_values"), $_smarty_tpl); ?> </a> <a class="ow_lbutton" href="javascript://" onclick="OW.ajaxFloatBox('ADMIN_CMP_LangEdit',['<?php echo $_smarty_tpl->tpl_vars['lang']->value['id']; ?> '], {width:600, iconClass: 'ow_ic_edit', title: '<?php echo smarty_function_text(array('key' => 'admin+edit_langs_cap_label'), $_smarty_tpl); ?> '})"><?php echo smarty_function_text(array('key' => "admin+btn_label_edit"), $_smarty_tpl); ?> </a> <a class="ow_lbutton" onclick="$('form[name=clone-form] input:hidden[name=language]').attr('value', '<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> '); new OW_FloatBox({$title: '<?php echo smarty_function_text(array('key' => 'admin+clone_language_cap_label'), $_smarty_tpl); ?> ', $contents: $('#clone_cont'), width: '420px'})" href="javascript://"><?php echo smarty_function_text(array('key' => "admin+btn_label_clone"), $_smarty_tpl); ?> </a> <a class="ow_lbutton ow_green act" style="display: none;" href="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:activate"), $_smarty_tpl); ?> ?language=<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> "><?php echo smarty_function_text(array('key' => "admin+btn_label_activate"), $_smarty_tpl); ?> </a> <a class="ow_lbutton ow_red deact" <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['active_langs']['first']) { ?> style="display: none;"<?php } ?> href="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:deactivate"), $_smarty_tpl); ?> ?language=<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> "><?php echo smarty_function_text(array('key' => "admin+btn_label_deactivate"), $_smarty_tpl); ?> </a> <a class="ow_lbutton ow_red del" style="display: none;" href="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:delete"), $_smarty_tpl); ?> ?language=<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> "><?php echo smarty_function_text(array('key' => "admin+btn_label_delete"), $_smarty_tpl); ?> </a> </span> </div> </td> </tr> <?php } ?> </tbody> <tr class="ow_tr_delimiter"><td></td></tr> <tr class="ow_tr_first ow_tr_last"> <th class="ow_center"><?php echo smarty_function_text(array('key' => "admin+inactive_languages"), $_smarty_tpl); ?> </th> <th width="100"><?php echo smarty_function_text(array('key' => "admin+missing_keys2"), $_smarty_tpl); ?> </th> <th width="180"></th> </tr> <tfoot id="s2" class="s"> <?php $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['lang']->_loop = false; $_from = $_smarty_tpl->tpl_vars['inactive_langs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['lang']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['lang']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) { $_smarty_tpl->tpl_vars['lang']->_loop = true; $_smarty_tpl->tpl_vars['lang']->iteration++; $_smarty_tpl->tpl_vars['lang']->last = $_smarty_tpl->tpl_vars['lang']->iteration === $_smarty_tpl->tpl_vars['lang']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['inactive_lang']['last'] = $_smarty_tpl->tpl_vars['lang']->last; ?> <tr class="ow_high2 draggable-lang-item <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['inactive_lang']['last']) { ?> ow_tr_last<?php } ?> "> <td style="text-align:left;"> <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value['id']; ?> "> <?php echo $_smarty_tpl->tpl_vars['lang']->value['label']; ?> </td> <td class="ow_center"> <a href="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:index"), $_smarty_tpl); ?> ?language=<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> &prefix=missing-text"><?php echo $_smarty_tpl->tpl_vars['lang']->value['missing_key_count']; ?> </a> </td> <td> <div style="width: 250px; height: 20px;" class="ow_center"> <span style="display: none;"> <a class="ow_lbutton" href="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:index"), $_smarty_tpl); ?> ?language=<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> "><?php echo smarty_function_text(array('key' => "admin+btn_label_edit_values"), $_smarty_tpl); ?> </a> <a class="ow_lbutton" href="javascript://" onclick="OW.ajaxFloatBox('ADMIN_CMP_LangEdit',['<?php echo $_smarty_tpl->tpl_vars['lang']->value['id']; ?> '], {width:600, iconClass: 'ow_ic_edit', title: '<?php echo smarty_function_text(array('key' => 'admin+edit_langs_cap_label'), $_smarty_tpl); ?> '})"><?php echo smarty_function_text(array('key' => "admin+btn_label_edit"), $_smarty_tpl); ?> </a> <a class="ow_lbutton" onclick="$('form[name=clone-form] input:hidden[name=language]').attr('value', '<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> '); new OW_FloatBox({$title: '<?php echo smarty_function_text(array('key' => 'admin+clone_language_cap_label'), $_smarty_tpl); ?> ', $contents: $('#clone_cont'), width: '420px'})" href="javascript://"><?php echo smarty_function_text(array('key' => "admin+btn_label_clone"), $_smarty_tpl); ?> </a> <a class="ow_lbutton ow_green act" href="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:activate"), $_smarty_tpl); ?> ?language=<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> "><?php echo smarty_function_text(array('key' => "admin+btn_label_activate"), $_smarty_tpl); ?> </a> <a class="ow_lbutton ow_red deact" style="display: none;" href="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:deactivate"), $_smarty_tpl); ?> ?language=<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> "><?php echo smarty_function_text(array('key' => "admin+btn_label_deactivate"), $_smarty_tpl); ?> </a> <?php if ($_smarty_tpl->tpl_vars['lang']->value['tag'] != 'en') { ?> <a class="ow_lbutton ow_red del" onclick="return confirm('<?php echo smarty_function_text(array('key' => "admin+are_you_sure"), $_smarty_tpl); ?> ')" href="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:delete"), $_smarty_tpl); ?> ?language=<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> "><?php echo smarty_function_text(array('key' => "admin+btn_label_delete"), $_smarty_tpl); ?> </a><?php } ?> </span> </div> </td> </tr> <?php } ?> <tfoot> </table> </div> <div class="ow_superwide ow_automargin"> <?php $_smarty_tpl->_capture_stack[0][] = array('add_new_lang', null, null); ob_start(); echo smarty_function_text(array('key' => "admin+add_new_lang_or_pack"), $_smarty_tpl); 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 $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang'])); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang']), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <a name="lang_import"></a> <p> <?php echo smarty_function_text(array('key' => "admin+import_lang_note"), $_smarty_tpl); ?> </p> <div class="ow_box ow_superwide" style="text-align:center;margin:0 auto 20px; display: <?php if (!$_smarty_tpl->tpl_vars['foo']->value) { ?> block<?php } else { ?> none<?php } ?> ;"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => "import")); $_block_repeat = true; echo smarty_block_form(array('name' => "import"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_input(array('name' => "command"), $_smarty_tpl); ?> <?php echo smarty_function_label(array('name' => "file"), $_smarty_tpl); ?> <?php echo smarty_function_input(array('name' => "file"), $_smarty_tpl); ?> <?php echo smarty_function_submit(array('name' => "submit", 'class' => "ow_ic_add"), $_smarty_tpl); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_form(array('name' => "import"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php if ($_smarty_tpl->tpl_vars['foo']->value) { ?> <form id="imp_form" method="POST" action="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:import"), $_smarty_tpl); ?> "> <input type="hidden" name="command" value="import-langs" /> <input type="hidden" name="imp-type" value="<?php echo $_smarty_tpl->tpl_vars['type']->value; ?> " /> <table id="import_table" class="ow_table_2 ow_small ow_spc_import_language"> <tr> <td></td> <td colspan="10" style="text-align:left;"><?php echo smarty_function_text(array('key' => "admin+select_items_to_import_note"), $_smarty_tpl); ?> </td> </tr> <tr> <td></td> <?php $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['lang']->_loop = false; $_from = $_smarty_tpl->tpl_vars['langsToImport']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) { $_smarty_tpl->tpl_vars['lang']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration']++; ?> <th><input type="checkbox" onclick="$('input:checkbox.col_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['col']['iteration']; ?> ', $('#import_table') ).attr('checked', this.checked);"/> <?php echo $_smarty_tpl->tpl_vars['lang']->value['label']; ?> </th> <?php } ?> </tr> <?php $_smarty_tpl->tpl_vars['prToImp'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['prToImp']->_loop = false; $_from = $_smarty_tpl->tpl_vars['prefixesToImport']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['row']['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['prToImp']->key => $_smarty_tpl->tpl_vars['prToImp']->value) { $_smarty_tpl->tpl_vars['prToImp']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['row']['iteration']++; ?> <tr class="<?php echo smarty_function_cycle(array('values' => "ow_alt1,ow_alt2"), $_smarty_tpl); ?> "> <th style="text-align:left;"> <input type="checkbox" onclick="$('input:checkbox.row_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['row']['iteration']; ?> ', $('#import_table') ).attr('checked', this.checked);" /> <?php echo $_smarty_tpl->tpl_vars['prToImp']->value['label']; ?> </th> <?php $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['lang']->_loop = false; $_from = $_smarty_tpl->tpl_vars['langsToImport']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['col']['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) { $_smarty_tpl->tpl_vars['lang']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['col']['iteration']++; ?> <td> <input type="checkbox" class="col_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['col']['iteration']; ?> row_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['row']['iteration']; ?> " name="set[lang][lang_<?php echo $_smarty_tpl->tpl_vars['lang']->value['tag']; ?> ][]" value="<?php echo $_smarty_tpl->tpl_vars['prToImp']->value['prefix']; ?> "/> </td> <?php } ?> </tr> <?php } ?> <tr> <td></td> <td colspan="10"><input type="checkbox" onclick="$('input:checkbox','#import_table').attr('checked', this.checked);" /> <?php echo smarty_function_text(array('key' => "admin+lang_import_check_all"), $_smarty_tpl); ?> </td> </tr> </table> <div class="clearfix"> <div class="ow_right"> <?php echo smarty_function_decorator(array('name' => "button", 'class' => "ow_positive", 'langLabel' => "admin+import_lang_button_label", 'extraString' => "onclick=\"" . "\$" . "('#imp_form')[0].submit()\""), $_smarty_tpl); ?> </div> </div> </form> <?php } $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang']), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('style', array()); $_block_repeat = true; echo smarty_block_style(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> .ondrag-class{ background-color: #B2CCB2; } <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_style(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <span id="exportInvite"> <?php $_smarty_tpl->_capture_stack[0][] = array('export_lang', null, null); ob_start(); echo smarty_function_text(array('key' => "admin+export_lang_header"), $_smarty_tpl); 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 $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang'])); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang']), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <p style="padding-bottom:10px;"><?php echo smarty_function_text(array('key' => "admin+export_lang_note"), $_smarty_tpl); ?> </p> <div class="ow_box_mod clearfix ow_smallmargin"> <div class="ow_right"> <?php echo smarty_function_decorator(array('name' => "button", 'class' => "ow_ic_up_arrow", 'langLabel' => "admin+export_lang_button_label", 'extraString' => "onclick=\"" . "\$" . "('#exportInvite').hide();" . "\$" . "('#exportForm').show();\""), $_smarty_tpl); ?> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang']), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </span> </div> <form id="exportForm" method="POST" style="display: none;"> <input type="hidden" name="command" value="export-langs"> <table id="export_table" class="ow_table_2 ow_small ow_superwide ow_spc_inport_language ow_automargin"> <tr> <td></td> <td colspan="10" style="text-align:left;"><?php echo smarty_function_text(array('key' => "admin+export_lang_note2"), $_smarty_tpl); ?> </td> </tr> <tr> <td class="ow_left"><input type="checkbox" onclick="$('input:checkbox', '#export_table').attr('checked', this.checked);"/> <?php echo smarty_function_text(array('key' => "admin+lang_import_check_all"), $_smarty_tpl); ?> </td> <?php $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['lang']->_loop = false; $_from = $_smarty_tpl->tpl_vars['langs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) { $_smarty_tpl->tpl_vars['lang']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration']++; ?> <th><input type="checkbox" onclick="$('input:checkbox.col_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['col']['iteration']; ?> ', $('#export_table') ).attr('checked', this.checked);"/> <?php echo $_smarty_tpl->tpl_vars['lang']->value['label']; ?> </th> <?php } ?> </tr> <?php $_smarty_tpl->tpl_vars['prefix'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['prefix']->_loop = false; $_from = $_smarty_tpl->tpl_vars['prefixes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["row"]['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['prefix']->key => $_smarty_tpl->tpl_vars['prefix']->value) { $_smarty_tpl->tpl_vars['prefix']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["row"]['iteration']++; ?> <tr class="<?php echo smarty_function_cycle(array('values' => "ow_alt1,ow_alt2"), $_smarty_tpl); ?> " > <th style="text-align: left;"><input type="checkbox" onclick="$('input:checkbox.row_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['row']['iteration']; ?> ', $('#export_table') ).attr('checked', this.checked);" /> <?php echo $_smarty_tpl->tpl_vars['prefix']->value->getLabel(); ?> </th> <?php $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['lang']->_loop = false; $_from = $_smarty_tpl->tpl_vars['langs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) { $_smarty_tpl->tpl_vars['lang']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration']++; ?> <td><input type="checkbox" class="col_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['col']['iteration']; ?> row_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['row']['iteration']; ?> " name="set[lang][lang_<?php echo $_smarty_tpl->tpl_vars['lang']->value['id']; ?> ][prefix_<?php echo $_smarty_tpl->tpl_vars['prefix']->value->getId(); ?> ]" value="<?php echo $_smarty_tpl->tpl_vars['prefix']->value->getId(); ?> "/></td> <?php } ?> </tr> <?php } ?> </table> <div class="clearfix ow_stdmargin"><div class="ow_right"><?php echo smarty_function_decorator(array('name' => "button", 'class' => "ow_ic_up_arrow ow_positive", 'langLabel' => "admin+export_lang_button_label2", 'extraString' => "onclick=\"" . "\$" . "('#exportForm')[0].submit();\""), $_smarty_tpl); ?> </div></div> </form> <div style="display: none;"> <div id="clone_cont"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => "clone-form")); $_block_repeat = true; echo smarty_block_form(array('name' => "clone-form"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_input(array('name' => "language"), $_smarty_tpl); ?> <table class="ow_table_1 ow_form"> <tr class="ow_alt2"> <td class="ow_label"> <?php echo smarty_function_label(array('name' => "label"), $_smarty_tpl); ?> </td> <td class="ow_value" style="width:30%"> <?php echo smarty_function_input(array('name' => "label"), $_smarty_tpl); ?> </td> <td class="ow_desc"> <?php echo smarty_function_desc(array('name' => "label"), $_smarty_tpl); ?> </td> </tr> <tr class="ow_alt1"> <td class="ow_label"> <?php echo smarty_function_label(array('name' => "tag"), $_smarty_tpl); ?> </td> <td class="ow_value"> <?php echo smarty_function_input(array('name' => "tag"), $_smarty_tpl); ?> </td> <td class="ow_desc"> <?php echo smarty_function_desc(array('name' => "tag"), $_smarty_tpl); ?> </td> </tr> </table> <div class="clearfix"><div class="ow_right"><?php echo smarty_function_submit(array('name' => "submit", 'class' => "ow_positive"), $_smarty_tpl); ?> </div></div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_form(array('name' => "clone-form"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> </div><?php }
function content_548ea36dca9aa2_14650619($_smarty_tpl) { if (!is_callable('smarty_block_block_decorator')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.block_decorator.php'; } if (!is_callable('smarty_function_url_for')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for.php'; } if (!is_callable('smarty_function_text')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php'; } if (!is_callable('smarty_function_cycle')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\function.cycle.php'; } if (!is_callable('smarty_function_decorator')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.php'; } ?> <div class="ow_automargin ow_wide"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_stdmargin', 'type' => 'empty')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'type' => 'empty'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array('default', "rolesPageUrl", null); ob_start(); echo smarty_function_url_for(array('for' => 'ADMIN_CTRL_Users:roles'), $_smarty_tpl); 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_function_text(array('key' => 'admin+permissions_go_to_role_management_page', 'url' => (string) $_smarty_tpl->tpl_vars['rolesPageUrl']->value), $_smarty_tpl); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'type' => 'empty'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['formAction']->value; ?> "> <div class="ow_admin_permissions ow_automargin ow_superwide ow_stdmargin ow_center"> <table class="ow_table_2 ow_form ow_automargin ow_superwide"> <tr class="ow_tr_first"> <th><?php echo smarty_function_text(array('key' => 'admin+permissions_role_actions_label'), $_smarty_tpl); ?> </th> <?php $_smarty_tpl->tpl_vars['role'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['role']->_loop = false; $_from = $_smarty_tpl->tpl_vars['roles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['role']->key => $_smarty_tpl->tpl_vars['role']->value) { $_smarty_tpl->tpl_vars['role']->_loop = true; ?> <th width='1'><?php echo smarty_function_text(array('key' => "base+authorization_role_" . (string) $_smarty_tpl->tpl_vars['role']->value->name), $_smarty_tpl); ?> </th> <?php } ?> </tr> <?php $_smarty_tpl->tpl_vars['groupAction'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['groupAction']->_loop = false; $_from = $_smarty_tpl->tpl_vars['groupActionList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['groupAction']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['groupAction']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['groupAction']->key => $_smarty_tpl->tpl_vars['groupAction']->value) { $_smarty_tpl->tpl_vars['groupAction']->_loop = true; $_smarty_tpl->tpl_vars['groupAction']->iteration++; $_smarty_tpl->tpl_vars['groupAction']->last = $_smarty_tpl->tpl_vars['groupAction']->iteration === $_smarty_tpl->tpl_vars['groupAction']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['groupAction']['last'] = $_smarty_tpl->tpl_vars['groupAction']->last; ?> <tr> <th colspan="<?php echo $_smarty_tpl->tpl_vars['colspanForRoles']->value; ?> "><?php if (!empty($_smarty_tpl->tpl_vars['labels']->value[$_smarty_tpl->tpl_vars['groupAction']->value['name']]['label'])) { echo $_smarty_tpl->tpl_vars['labels']->value[$_smarty_tpl->tpl_vars['groupAction']->value['name']]['label']; } else { echo $_smarty_tpl->tpl_vars['groupAction']->value['name']; } ?> </th> </tr> <?php $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['action']->_loop = false; $_from = $_smarty_tpl->tpl_vars['groupAction']->value['actions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['action']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['action']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) { $_smarty_tpl->tpl_vars['action']->_loop = true; $_smarty_tpl->tpl_vars['action']->iteration++; $_smarty_tpl->tpl_vars['action']->last = $_smarty_tpl->tpl_vars['action']->iteration === $_smarty_tpl->tpl_vars['action']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['action']['last'] = $_smarty_tpl->tpl_vars['action']->last; ?> <tr class="<?php echo smarty_function_cycle(array('values' => 'ow_alt1,ow_alt2'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['groupAction']['last'] && $_smarty_tpl->getVariable('smarty')->value['foreach']['action']['last']) { ?> ow_tr_last<?php } ?> "> <?php $_smarty_tpl->tpl_vars['actionName'] = new Smarty_variable($_smarty_tpl->tpl_vars['action']->value->name, null, 0); ?> <td class="ow_label ow_autowidth"><?php if (!empty($_smarty_tpl->tpl_vars['labels']->value[$_smarty_tpl->tpl_vars['groupAction']->value['name']]['actions'][$_smarty_tpl->tpl_vars['actionName']->value])) { echo $_smarty_tpl->tpl_vars['labels']->value[$_smarty_tpl->tpl_vars['groupAction']->value['name']]['actions'][$_smarty_tpl->tpl_vars['actionName']->value]; } else { echo $_smarty_tpl->tpl_vars['actionName']->value; } ?> </td> <?php $_smarty_tpl->tpl_vars['actionId'] = new Smarty_variable($_smarty_tpl->tpl_vars['action']->value->id, null, 0); ?> <?php $_smarty_tpl->tpl_vars['role'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['role']->_loop = false; $_from = $_smarty_tpl->tpl_vars['roles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['role']->key => $_smarty_tpl->tpl_vars['role']->value) { $_smarty_tpl->tpl_vars['role']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['roleId'] = new Smarty_variable($_smarty_tpl->tpl_vars['role']->value->id, null, 0); ?> <td><?php if (!($_smarty_tpl->tpl_vars['action']->value->availableForGuest == false && $_smarty_tpl->tpl_vars['roleId']->value == $_smarty_tpl->tpl_vars['guestRoleId']->value)) { ?> <input type="checkbox" name="perm[]" value="<?php echo $_smarty_tpl->tpl_vars['actionId']->value; ?> :<?php echo $_smarty_tpl->tpl_vars['roleId']->value; ?> " <?php if (isset($_smarty_tpl->tpl_vars['perms']->value[$_smarty_tpl->tpl_vars['actionId']->value][$_smarty_tpl->tpl_vars['roleId']->value])) { ?> checked="checked"<?php } ?> /><?php } ?> </td> <?php } ?> </tr> <?php } ?> <?php } ?> </table> </div> <div class="clearfix ow_automargin ow_superwide"><div class="ow_right"><?php echo smarty_function_decorator(array('name' => "button", 'langLabel' => 'admin+permissions_index_save', 'class' => "ow_button ow_ic_save ow_positive", 'onclick' => 'this.form.submit();'), $_smarty_tpl); ?> </div></div> </form> <?php }
function content_548e850b443bf1_34834572($_smarty_tpl) { if (!is_callable('smarty_function_cycle')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\function.cycle.php'; } if (!is_callable('smarty_function_question_value_lang')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.question_value_lang.php'; } if (!is_callable('smarty_function_age')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.age.php'; } if (!is_callable('smarty_function_online_now')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.online_now.php'; } if (!is_callable('smarty_function_format_date')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.format_date.php'; } if (!is_callable('smarty_function_url_for')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for.php'; } if (!is_callable('smarty_function_text')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php'; } if (!is_callable('smarty_function_decorator')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.php'; } if (!empty($_smarty_tpl->tpl_vars['menu']->value)) { echo $_smarty_tpl->tpl_vars['menu']->value; } if (!empty($_smarty_tpl->tpl_vars['list']->value)) { ?> <div class="ow_user_list ow_full ow_stdmargin"> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['item']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['item']->iteration = 0; $_smarty_tpl->tpl_vars['item']->index = -1; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['user_list']['iteration'] = 0; 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['item']->iteration++; $_smarty_tpl->tpl_vars['item']->index++; $_smarty_tpl->tpl_vars['item']->first = $_smarty_tpl->tpl_vars['item']->index === 0; $_smarty_tpl->tpl_vars['item']->last = $_smarty_tpl->tpl_vars['item']->iteration === $_smarty_tpl->tpl_vars['item']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['user_list']['first'] = $_smarty_tpl->tpl_vars['item']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['user_list']['iteration']++; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['user_list']['last'] = $_smarty_tpl->tpl_vars['item']->last; ?> <?php $_smarty_tpl->tpl_vars['dto'] = new Smarty_variable($_smarty_tpl->tpl_vars['item']->value['dto'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable($_smarty_tpl->tpl_vars['dto']->value->id, null, 0); ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['user_list']['first']) { ?> <div class="clearfix <?php echo smarty_function_cycle(array('name' => "rows", 'values' => "ow_alt2, ow_alt1"), $_smarty_tpl); ?> "> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array('default', "fields", null); ob_start(); ?> <?php if (!empty($_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['id']->value]['sex'])) { echo smarty_function_question_value_lang(array('name' => 'sex', 'value' => $_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['id']->value]['sex']), $_smarty_tpl); } ?> <?php if (!empty($_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['id']->value]['birthdate'])) { echo smarty_function_age(array('dateTime' => $_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['id']->value]['birthdate']), $_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 $_smarty_tpl->_capture_stack[0][] = array('default', "activity", null); ob_start(); ?> <?php if (empty($_smarty_tpl->tpl_vars['onlineInfo']->value) || empty($_smarty_tpl->tpl_vars['onlineInfo']->value[$_smarty_tpl->tpl_vars['id']->value])) { ?> <?php } else { ?> <?php if (!empty($_smarty_tpl->tpl_vars['onlineInfo']->value) && $_smarty_tpl->tpl_vars['onlineInfo']->value[$_smarty_tpl->tpl_vars['id']->value]) { echo smarty_function_online_now(array('userId' => $_smarty_tpl->tpl_vars['dto']->value->id), $_smarty_tpl); } else { ?> Activity: <?php echo smarty_function_format_date(array('timestamp' => $_smarty_tpl->tpl_vars['dto']->value->activityStamp), $_smarty_tpl); } ?> <?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 $_smarty_tpl->_capture_stack[0][] = array('default', 'toolbar', null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['case']->value == 'sent-requests') { ?> <div class=" ow_tiny" style="margin-left: 53px;"> <a href="<?php echo smarty_function_url_for(array('for' => "FRIENDS_CTRL_Action:cancel:[id=>" . (string) $_smarty_tpl->tpl_vars['id']->value . "]"), $_smarty_tpl); ?> "><?php echo smarty_function_text(array('key' => 'friends+cancel_request'), $_smarty_tpl); ?> </a> </div> <?php } elseif ($_smarty_tpl->tpl_vars['case']->value == 'got-requests') { ?> <div class="ow_tiny" style="margin-left: 53px;"> <a href="<?php echo smarty_function_url_for(array('for' => "FRIENDS_CTRL_Action:accept:[id=>" . (string) $_smarty_tpl->tpl_vars['id']->value . "]"), $_smarty_tpl); ?> "><?php echo smarty_function_text(array('key' => 'friends+accept_request'), $_smarty_tpl); ?> </a> · <a href="<?php echo smarty_function_url_for(array('for' => "FRIENDS_CTRL_Action:ignore:[id=>" . (string) $_smarty_tpl->tpl_vars['id']->value . "]"), $_smarty_tpl); ?> "><?php echo smarty_function_text(array('key' => 'friends+ignore_request'), $_smarty_tpl); ?> </a> </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_function_decorator(array('name' => "user_list_item", 'toolbar' => $_smarty_tpl->tpl_vars['toolbar']->value, 'avatar' => $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['id']->value], 'userUrl' => $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['id']->value]['url'], 'displayName' => $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['id']->value]['title'], 'fields' => $_smarty_tpl->tpl_vars['fields']->value, 'activity' => $_smarty_tpl->tpl_vars['activity']->value, 'set_class' => 'ow_item_set3'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['user_list']['iteration'] % 3 == 0 && !$_smarty_tpl->getVariable('smarty')->value['foreach']['user_list']['last']) { ?> </div> <div class="clearfix <?php echo smarty_function_cycle(array('name' => "rows", 'values' => "ow_alt1,ow_alt2"), $_smarty_tpl); ?> "> <?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['user_list']['last']) { ?> </div> <?php } ?> <?php } ?> </div> <?php echo $_smarty_tpl->tpl_vars['paging']->value; ?> <?php } else { ?> <center><?php echo smarty_function_text(array('key' => "base+user_no_users"), $_smarty_tpl); ?> </center> <?php } }
function content_55ba1ffc15fc82_67181667($_smarty_tpl) { if (!is_callable('smarty_block_block_decorator')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.block_decorator.php'; } if (!is_callable('smarty_block_form')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.form.php'; } if (!is_callable('smarty_function_label')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.label.php'; } if (!is_callable('smarty_function_input')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.input.php'; } if (!is_callable('smarty_function_error')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.error.php'; } if (!is_callable('smarty_function_submit')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.submit.php'; } if (!is_callable('smarty_function_cycle')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.cycle.php'; } if (!is_callable('smarty_function_url_for')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.url_for.php'; } if (!is_callable('smarty_function_text')) { include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.php'; } ?> <div class="clearfix"> <div class="ow_column ow_left"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => "box", 'iconClass' => "ow_ic_edit", 'langLabel' => 'admin+restrictedusernames_add_username')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => "box", 'iconClass' => "ow_ic_edit", 'langLabel' => 'admin+restrictedusernames_add_username'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'restrictedUsernamesForm')); $_block_repeat = true; echo smarty_block_form(array('name' => 'restrictedUsernamesForm'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <table class="ow_form ow_automargin"> <tr> <td class="ow_label ow_valign_middle"><?php echo smarty_function_label(array('name' => 'restrictedUsername'), $_smarty_tpl); ?> </td> <td class="ow_value ow_valign_middle"><?php echo smarty_function_input(array('name' => 'restrictedUsername', 'style' => "width:97%;"), $_smarty_tpl); ?> <br /><?php echo smarty_function_error(array('name' => 'restrictedUsername'), $_smarty_tpl); ?> </td> <td class="ow_submit ow_valign_middle"><?php echo smarty_function_submit(array('name' => 'addUsername'), $_smarty_tpl); ?> </td> </tr> </table> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_form(array('name' => 'restrictedUsernamesForm'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => "box", 'iconClass' => "ow_ic_edit", 'langLabel' => 'admin+restrictedusernames_add_username'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <div class="ow_column ow_right"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => "box_cap", 'type' => 'empty', 'iconClass' => "ow_ic_monitor", 'langLabel' => 'admin+restrictedusernames_restricted_list_label')); $_block_repeat = true; echo smarty_block_block_decorator(array('name' => "box_cap", 'type' => 'empty', 'iconClass' => "ow_ic_monitor", 'langLabel' => 'admin+restrictedusernames_restricted_list_label'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_decorator(array('name' => "box_cap", 'type' => 'empty', 'iconClass' => "ow_ic_monitor", 'langLabel' => 'admin+restrictedusernames_restricted_list_label'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <table class="ow_table_2"> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['restricted_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['item']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['item']->iteration = 0; $_smarty_tpl->tpl_vars['item']->index = -1; 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['item']->iteration++; $_smarty_tpl->tpl_vars['item']->index++; $_smarty_tpl->tpl_vars['item']->first = $_smarty_tpl->tpl_vars['item']->index === 0; $_smarty_tpl->tpl_vars['item']->last = $_smarty_tpl->tpl_vars['item']->iteration === $_smarty_tpl->tpl_vars['item']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['item']['first'] = $_smarty_tpl->tpl_vars['item']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['item']['last'] = $_smarty_tpl->tpl_vars['item']->last; ?> <tr class="<?php echo smarty_function_cycle(array('values' => 'ow_alt1, ow_alt2'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['item']['first']) { ?> ow_tr_first<?php } if ($_smarty_tpl->getVariable('smarty')->value['foreach']['item']['last']) { ?> ow_tr_last<?php } ?> " onmouseover="$('span.del-cont', this).show();" onmouseout="$('span.del-cont', this).hide();"> <td style="width: 90%;"> <div class="ow_left ow_txtleft"> <?php echo $_smarty_tpl->tpl_vars['item']->value->username; ?> </div> </td> <td class="ns-hover-block"> <div style="width: 50px;"> <span class="del-cont" style="display: none;"> <a class="ow_lbutton ow_red" href="<?php echo smarty_function_url_for(array('for' => "ADMIN_CTRL_RestrictedUsernames:delete"), $_smarty_tpl); ?> ?username=<?php echo $_smarty_tpl->tpl_vars['item']->value->username; ?> " onclick="return(confirm('<?php echo smarty_function_text(array('key' => "admin+are_you_sure"), $_smarty_tpl); ?> '));"> <?php echo smarty_function_text(array('key' => "admin+delete"), $_smarty_tpl); ?> </a> </span> </div> </td> </tr> <?php } ?> </table> </div> </div><?php }
function content_548e5310882b84_46798503($_smarty_tpl) { if (!is_callable('smarty_block_script')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.script.php'; } if (!is_callable('smarty_function_text')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php'; } if (!is_callable('smarty_function_url_for')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for.php'; } if (!is_callable('smarty_function_url_for_route')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.php'; } if (!is_callable('smarty_function_decorator')) { include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.php'; } $_smarty_tpl->smarty->_tag_stack[] = array('script', array()); $_block_repeat = true; echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> $(document).ready(function(){ var $tb_container = $(".ow_box_toolbar_cont", $("#video_list_widget").parents('.ow_box, .ow_box_empty').get(0)); $("#video-widget-menu-featured").click(function(){ $tb_container.html($("div#video-widget-toolbar-featured").html()); }); $("#video-widget-menu-latest").click(function(){ $tb_container.html($("div#video-widget-toolbar-latest").html()); }); $("#video-widget-menu-toprated").click(function(){ $tb_container.html($("div#video-widget-toolbar-toprated").html()); }); }); <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <div id="video_list_widget"> <?php if ($_smarty_tpl->tpl_vars['latest']->value || $_smarty_tpl->tpl_vars['featured']->value || $_smarty_tpl->tpl_vars['toprated']->value) { ?> <?php if (isset($_smarty_tpl->tpl_vars['menu']->value)) { echo $_smarty_tpl->tpl_vars['menu']->value; } ?> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'nocontent', null); ob_start(); ?> <div class="ow_nocontent"><?php echo smarty_function_text(array('key' => 'video+no_video'), $_smarty_tpl); ?> , <a href="<?php echo smarty_function_url_for(array('for' => "VIDEO_CTRL_Add:index"), $_smarty_tpl); ?> "><?php echo smarty_function_text(array('key' => 'video+add_new'), $_smarty_tpl); ?> </a></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(); } ?> <div id="<?php echo $_smarty_tpl->tpl_vars['items']->value['latest']['contId']; ?> "> <?php if ($_smarty_tpl->tpl_vars['showTitles']->value) { ?> <?php $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['c']->_loop = false; $_from = $_smarty_tpl->tpl_vars['latest']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) { $_smarty_tpl->tpl_vars['c']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++; ?> <div class="clearfix ow_smallmargin"> <div class="ow_other_video_thumb ow_left"> <a href="<?php echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl); ?> "> <?php if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['c']->value['thumb']; ?> " /><?php } ?> </a> </div> <div class="ow_other_video_item_title ow_small"> <a href="<?php echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['c']->value['title']; ?> </a> </div> </div> <?php } if (!$_smarty_tpl->tpl_vars['c']->_loop) { ?> <?php echo $_smarty_tpl->tpl_vars['nocontent']->value; ?> <?php } ?> <?php } else { ?> <div class="clearfix ow_center"> <?php $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['c']->_loop = false; $_from = $_smarty_tpl->tpl_vars['latest']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) { $_smarty_tpl->tpl_vars['c']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++; ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['clips']['iteration'] == 1) { ?> <div class="ow_smallmargin"><?php echo $_smarty_tpl->tpl_vars['c']->value['code']; ?> </div> <?php } else { ?> <div class="ow_other_video_thumb video_thumb_no_title ow_left"> <a class="ow_other_video_floated" href="<?php echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl); ?> " title="<?php echo $_smarty_tpl->tpl_vars['c']->value['title']; ?> "> <?php if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['c']->value['thumb']; ?> " /><?php } ?> </a> </div> <?php } ?> <?php } if (!$_smarty_tpl->tpl_vars['c']->_loop) { ?> <?php echo $_smarty_tpl->tpl_vars['nocontent']->value; ?> <?php } ?> </div> <?php } ?> </div> <?php if ($_smarty_tpl->tpl_vars['featured']->value) { ?> <div id="<?php echo $_smarty_tpl->tpl_vars['items']->value['featured']['contId']; ?> " style="display: none"> <?php if ($_smarty_tpl->tpl_vars['showTitles']->value) { ?> <?php $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['c']->_loop = false; $_from = $_smarty_tpl->tpl_vars['featured']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) { $_smarty_tpl->tpl_vars['c']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++; ?> <div class="clearfix ow_smallmargin"> <div class="ow_other_video_thumb ow_left"> <a href="<?php echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl); ?> "> <?php if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['c']->value['thumb']; ?> " /><?php } ?> </a> </div> <div class="ow_other_video_item_title ow_small"> <a href="<?php echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['c']->value['title']; ?> </a> </div> </div> <?php } if (!$_smarty_tpl->tpl_vars['c']->_loop) { ?> <?php echo $_smarty_tpl->tpl_vars['nocontent']->value; ?> <?php } ?> <?php } else { ?> <div class="clearfix ow_center"> <?php $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['c']->_loop = false; $_from = $_smarty_tpl->tpl_vars['featured']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) { $_smarty_tpl->tpl_vars['c']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++; ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['clips']['iteration'] == 1) { ?> <div class="ow_smallmargin"><?php echo $_smarty_tpl->tpl_vars['c']->value['code']; ?> </div> <?php } else { ?> <a class="ow_other_video_floated" href="<?php echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl); ?> " title="<?php echo $_smarty_tpl->tpl_vars['c']->value['title']; ?> "> <?php if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['c']->value['thumb']; ?> " /><?php } ?> </a> <?php } ?> <?php } if (!$_smarty_tpl->tpl_vars['c']->_loop) { ?> <?php echo $_smarty_tpl->tpl_vars['nocontent']->value; ?> <?php } ?> </div> <?php } ?> </div> <?php } ?> <div id="<?php echo $_smarty_tpl->tpl_vars['items']->value['toprated']['contId']; ?> " style="display: none"> <?php if ($_smarty_tpl->tpl_vars['showTitles']->value) { ?> <?php $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['c']->_loop = false; $_from = $_smarty_tpl->tpl_vars['toprated']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) { $_smarty_tpl->tpl_vars['c']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++; ?> <div class="clearfix ow_smallmargin"> <div class="ow_other_video_thumb ow_left"> <a href="<?php echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl); ?> "> <?php if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['c']->value['thumb']; ?> " /><?php } ?> </a> </div> <div class="ow_other_video_item_title ow_small"> <a href="<?php echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['c']->value['title']; ?> </a> </div> </div> <?php } if (!$_smarty_tpl->tpl_vars['c']->_loop) { ?> <?php echo $_smarty_tpl->tpl_vars['nocontent']->value; ?> <?php } ?> <?php } else { ?> <div class="clearfix ow_center"> <?php $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['c']->_loop = false; $_from = $_smarty_tpl->tpl_vars['toprated']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) { $_smarty_tpl->tpl_vars['c']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++; ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['clips']['iteration'] == 1) { ?> <div class="ow_smallmargin"><?php echo $_smarty_tpl->tpl_vars['c']->value['code']; ?> </div> <?php } else { ?> <a class="ow_other_video_floated" href="<?php echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl); ?> " title="<?php echo $_smarty_tpl->tpl_vars['c']->value['title']; ?> "> <?php if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['c']->value['thumb']; ?> " /><?php } ?> </a> <?php } ?> <?php } if (!$_smarty_tpl->tpl_vars['c']->_loop) { ?> <?php echo $_smarty_tpl->tpl_vars['nocontent']->value; ?> <?php } ?> </div> <?php } ?> </div> <?php if ($_smarty_tpl->tpl_vars['latest']->value) { ?> <div id="video-widget-toolbar-latest" style="display: none"><?php echo smarty_function_decorator(array('name' => 'box_toolbar', 'itemList' => $_smarty_tpl->tpl_vars['toolbars']->value['latest']), $_smarty_tpl); ?> </div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['featured']->value) { ?> <div id="video-widget-toolbar-featured" style="display: none"><?php echo smarty_function_decorator(array('name' => 'box_toolbar', 'itemList' => $_smarty_tpl->tpl_vars['toolbars']->value['featured']), $_smarty_tpl); ?> </div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['toprated']->value) { ?> <div id="video-widget-toolbar-toprated" style="display: none"><?php echo smarty_function_decorator(array('name' => 'box_toolbar', 'itemList' => $_smarty_tpl->tpl_vars['toolbars']->value['toprated']), $_smarty_tpl); ?> </div><?php } ?> </div><?php }