<?php /* Smarty version Smarty-3.1.19, created on 2017-03-19 13:15:26
         compiled from "template__system/admin_admin:/home/itjobboard/public_html/constructionjobboard.co.uk/templates/_system/admin/template_manager/edit_template.tpl" */ ?>
<?php /*%%SmartyHeaderCode:19504631758ce846e3e0129-51958828%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'dd4de9a47529d8981a76b4d555a1ea10da6fb3ae' => 
    array (
      0 => 'template__system/admin_admin:/home/itjobboard/public_html/constructionjobboard.co.uk/templates/_system/admin/template_manager/edit_template.tpl',
      1 => 1483999076,
      2 => 'template__system/admin_admin',
    ),
  ),
  'nocache_hash' => '19504631758ce846e3e0129-51958828',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'LIST_FUNCTIONS' => 0,
    'KEY_MOD' => 0,
    'VALUE_ARRAY_FUNC' => 0,
    'KEY_FUNC' => 0,
    'VALUE_FUNC' => 0,
    'LIST_PARAMS' => 0,
    'VALUE_ARRAY_PARAM' => 0,
    'KEY_PARAM' => 0,
    'VALUE_PARAM' => 0,
    'ERROR' => 0,
    'template_name' => 0,
    'GLOBALS' => 0,
    'LIST_MODULES' => 0,
    'VALUE_MOD' => 0,
    'user_page' => 0,
    'template_content' => 0,
    'module_name' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_58ce846e440107_09527481',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58ce846e440107_09527481')) {function content_58ce846e440107_09527481($_smarty_tpl) {?><script language="JavaScript" type="text/javascript">
<!--//

var ModulesFunctions = new Array();
<?php  $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->_loop = false;
 $_smarty_tpl->tpl_vars['KEY_MOD'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['LIST_FUNCTIONS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->key => $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->value) {
$_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->_loop = true;
 $_smarty_tpl->tpl_vars['KEY_MOD']->value = $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->key;
?>
	ModulesFunctions["<?php echo $_smarty_tpl->tpl_vars['KEY_MOD']->value;?>
"]=[[-1,'Choose function:']<?php  $_smarty_tpl->tpl_vars['VALUE_FUNC'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['VALUE_FUNC']->_loop = false;
 $_smarty_tpl->tpl_vars['KEY_FUNC'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['VALUE_FUNC']->key => $_smarty_tpl->tpl_vars['VALUE_FUNC']->value) {
$_smarty_tpl->tpl_vars['VALUE_FUNC']->_loop = true;
 $_smarty_tpl->tpl_vars['KEY_FUNC']->value = $_smarty_tpl->tpl_vars['VALUE_FUNC']->key;
?>,[<?php echo $_smarty_tpl->tpl_vars['KEY_FUNC']->value;?>
,'<?php echo $_smarty_tpl->tpl_vars['VALUE_FUNC']->value;?>
']<?php } ?>];
<?php } ?>

var Params = new Array();
<?php  $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->_loop = false;
 $_smarty_tpl->tpl_vars['KEY_MOD'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['LIST_PARAMS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->key => $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->value) {
$_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->_loop = true;
 $_smarty_tpl->tpl_vars['KEY_MOD']->value = $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->key;
?>
  <?php  $_smarty_tpl->tpl_vars['VALUE_ARRAY_PARAM'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['VALUE_ARRAY_PARAM']->_loop = false;
 $_smarty_tpl->tpl_vars['KEY_FUNC'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['VALUE_ARRAY_FUNC']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['VALUE_ARRAY_PARAM']->key => $_smarty_tpl->tpl_vars['VALUE_ARRAY_PARAM']->value) {
$_smarty_tpl->tpl_vars['VALUE_ARRAY_PARAM']->_loop = true;
 $_smarty_tpl->tpl_vars['KEY_FUNC']->value = $_smarty_tpl->tpl_vars['VALUE_ARRAY_PARAM']->key;
?>
     Params["<?php echo $_smarty_tpl->tpl_vars['KEY_MOD']->value;?>
", "<?php echo $_smarty_tpl->tpl_vars['KEY_FUNC']->value;?>
"]=[[-1,'reserved']<?php  $_smarty_tpl->tpl_vars['VALUE_PARAM'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['VALUE_PARAM']->_loop = false;
 $_smarty_tpl->tpl_vars['KEY_PARAM'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['VALUE_ARRAY_PARAM']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['VALUE_PARAM']->key => $_smarty_tpl->tpl_vars['VALUE_PARAM']->value) {
$_smarty_tpl->tpl_vars['VALUE_PARAM']->_loop = true;
 $_smarty_tpl->tpl_vars['KEY_PARAM']->value = $_smarty_tpl->tpl_vars['VALUE_PARAM']->key;
?>,[<?php echo $_smarty_tpl->tpl_vars['KEY_PARAM']->value;?>
,'<?php echo $_smarty_tpl->tpl_vars['VALUE_PARAM']->value;?>
']<?php } ?>];
  <?php } ?>
<?php } ?>



function loadFunctionsForModule(form) {
    document.getElementById("table_params").innerHTML = '';

	module_value = form.modules.options[form.modules.selectedIndex].text;
	form.functions.options.length=0;
	for (var i = 0; i < ModulesFunctions[module_value].length; i++) {
		newOpt = document.createElement("option");
		newOpt.text = ModulesFunctions[module_value][i][1];
		form.functions.options.add(newOpt);
	}
}

function loadParamsForFunction() {
  document.getElementById("table_params").innerHTML = '<p><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
There are no parameters for this function<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</p>';
  cbModules=document.getElementById("modules");
  cbFunctions=document.getElementById("functions");
  module_value = cbModules[cbModules.selectedIndex].text;
  function_value = cbFunctions[cbFunctions.selectedIndex].text;


  if ( (module_value != "Choose module:") && (function_value != "Choose function:") ) {
     strHTML = '';
     for (var i = 1; i < Params[module_value,function_value].length; i++) {
        str_key = 'value_param' + (i-1);

        strHTML = strHTML + "<div class='form-group'><label class='control-label col-md-2'>"+ Params[module_value,function_value][i][1] +
         		  "=</label><div class='col-md-7'><input type='text' name='"+ Params[module_value,function_value][i][1] +"' id='"+ str_key +"' value='' class='text' size=15> </div></div>";
     } //for
     if (strHTML != '') {
     	strHTML = '<div name="table_parameters">'+ strHTML + '</div>';
     	document.getElementById("table_params").innerHTML = strHTML;
     }
  } //if
}

function insertStr() {
	editor.focus();
	var cbModules = document.getElementById("modules");
	var cbFunctions = document.getElementById("functions");
	var module_value = cbModules[cbModules.selectedIndex].text;
	var function_value = cbFunctions[cbFunctions.selectedIndex].text;

	if ((module_value != "Choose module:") && (function_value != "Choose function:")) {
		var str_param = '';
		var i = 0;
		while (1 == 1) {
			var param = document.getElementById("value_param" + i);
			if (param == null) {
				break;
			}
			var key_param = param.name;
			var value_param = trim(param.value);
			if (value_param != '') {
				if (str_param == '') {
					str_param = key_param + "=\"" + value_param + "\"";
				} else {
					str_param = str_param + " " + key_param + "=\"" + value_param + "\"";
				}
			}
			i++;
		}
		var editorCursor = editor.getCursor();
		var currentLine = editor.getLine(editorCursor.line);
		var scroll = editor.getScrollInfo();
		if (str_param != '') {
			str_param = " " + str_param;
		}
		var str_ins = "{ module name=\"" + module_value + "\" function=\"" + function_value + "\"" + str_param + "}";
		currentLine = currentLine.substr(0, editorCursor.ch) + str_ins + currentLine.substr(editorCursor.ch);
		editor.setLine(editorCursor.line, currentLine);
		editor.scrollTo(scroll.x, scroll.y);
		editor.save();
	}
}

//-->
</script>
<?php if ($_smarty_tpl->tpl_vars['ERROR']->value) {?>
	<?php if ($_smarty_tpl->tpl_vars['ERROR']->value=="MODULE_DOES_NOT_EXIST") {?>
		<p class="error"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
There is no such module<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
.</p>
	<?php } elseif ($_smarty_tpl->tpl_vars['ERROR']->value=="TEMPLATE_DOES_NOT_EXIST") {?>
		<p class="error"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
There is no such template<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
.</p>
	<?php } elseif ($_smarty_tpl->tpl_vars['ERROR']->value=="CANNOT_FETCH_TEMPLATE") {?>
		<p class="error"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Cannot fetch template<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 "<?php echo $_smarty_tpl->tpl_vars['template_name']->value;?>
"</p>
	<?php } elseif ($_smarty_tpl->tpl_vars['ERROR']->value=="TEMPLATE_IS_NOT_WRITEABLE") {?>
		<p class="error"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Template is not writeable.<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</p>
	<?php } else { ?>
		<p class="error"><?php echo $_smarty_tpl->tpl_vars['ERROR']->value;?>
</p>
	<?php }?>
<?php } else { ?>
    <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/lib/codemirror.css">
    <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/mode/smartyhtmlmixed/smartyhtmlmixed.css">
	<?php $_smarty_tpl->smarty->_tag_stack[] = array('javascript', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['javascript'][0][0]->_tpl_javascript(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<script src="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/lib/codemirror.js"></script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/lib/util/match-highlighter.js"></script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/mode/javascript/javascript.js"></script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/mode/xml/xml.js"></script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/mode/css/css.js"></script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/mode/smarty/smarty.js"></script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/mode/smartyhtmlmixed/smartyhtmlmixed.js"></script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/lib/util/search.js"></script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/lib/util/searchcursor.js"></script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['user_site_url'];?>
/system/ext/CodeMirror/lib/util/dialog.js"></script>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['javascript'][0][0]->_tpl_javascript(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>


	<form action="" method="POST" id="form1">
		<div class="panel panel-default panel--accordion panel--max">
			<div class="panel-heading">
				<h4 class="panel-title">
					<a data-toggle="collapse" href="#collapse" aria-expanded="false" class="collapsed">
						<?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Click to insert module function<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

					</a>
				</h4>
			</div>
			<div id="collapse" class="panel-collapse collapse" aria-expanded="false" style="height: 0px;">
				<div class="panel-body form-horizontal">
					<div class="panel panel-default panel--max">
						<div class="form-group">
							<label class="control-label col-md-2"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Module<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</label>
							<div class="col-md-7">
								<select size="1" name="module" id="modules" onchange="loadFunctionsForModule(this.form)" language="Javascript">
									<option selected><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Choose module<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
:</option>
									<?php  $_smarty_tpl->tpl_vars['VALUE_MOD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['VALUE_MOD']->_loop = false;
 $_smarty_tpl->tpl_vars['KEY_MOD'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['LIST_MODULES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['VALUE_MOD']->key => $_smarty_tpl->tpl_vars['VALUE_MOD']->value) {
$_smarty_tpl->tpl_vars['VALUE_MOD']->_loop = true;
 $_smarty_tpl->tpl_vars['KEY_MOD']->value = $_smarty_tpl->tpl_vars['VALUE_MOD']->key;
?>
										<option> <?php echo $_smarty_tpl->tpl_vars['VALUE_MOD']->value;?>
 </option>
									<?php } ?>
								</select>

							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-2">Function</label>
							<div class="col-md-7">
								<select size="1" name="function" id="functions" onchange="loadParamsForFunction()" language="Javascript">
									<option selected><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Choose function<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
:</option>
									<?php  $_smarty_tpl->tpl_vars['VALUE_FUNC'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['VALUE_FUNC']->_loop = false;
 $_smarty_tpl->tpl_vars['KEY_FUNC'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['LIST_FUNCTIONS']->value[$_smarty_tpl->tpl_vars['user_page']->value['module']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['VALUE_FUNC']->key => $_smarty_tpl->tpl_vars['VALUE_FUNC']->value) {
$_smarty_tpl->tpl_vars['VALUE_FUNC']->_loop = true;
 $_smarty_tpl->tpl_vars['KEY_FUNC']->value = $_smarty_tpl->tpl_vars['VALUE_FUNC']->key;
?>
										<option> <?php echo $_smarty_tpl->tpl_vars['VALUE_FUNC']->value;?>
 </option>
									<?php } ?>
								</select>
							</div>
						</div>
					</div>

					<div class="form-group">
						<label class="col-xs-12 text-left"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Parameters<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
:</label>
					</div>
					<div id="table_params"></div>
					<div class="form-group">
						<div class="col-md-7">
							<input type="button" class="btn btn--primary" name="btnInsStr" value="<?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Insert<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
" size=5  onclick="insertStr(this.form)" LANGUAGE="Javascript">
						</div>
					</div>
				</div>
			</div>
		</div>

		<div class="panel panel-default panel--max clearfix">
			<div class="table-responsive">
				<table width="100%" class="table table-clear">
					<tr>
						<td class="text-left"><textarea id="template_content" name="template_content" style="width:100%;height:400px"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['template_content']->value, ENT_QUOTES, 'UTF-8', true);?>
</textarea></td>
					</tr>
					<tr>
						<td class="text-left">
							<input type="submit" value="<?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Save<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
" class="btn btn--primary" />
						</td>
					</tr>
				</table>
			</div>
		</div>
		<?php $_smarty_tpl->smarty->_tag_stack[] = array('javascript', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['javascript'][0][0]->_tpl_javascript(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

            <script type="text/javascript">
                    var editor = CodeMirror.fromTextArea(document.getElementById("template_content"), {
                        lineNumbers: true,
                        matchBrackets: true,
                        mode: "smartymixed",
                        indentUnit: 5,
                        indentWithTabs: true,
                        enterMode: "keep",
                        tabMode: "shift",
                        theme: "default"
                    });
            </script>
		<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['javascript'][0][0]->_tpl_javascript(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>


		<!--<input type="button" name="btnInsStr" value=" Insert" size=5  onclick="insertStr(this.form)" LANGUAGE="Javascript">-->

		<input type="hidden" name="template_name" value="<?php echo $_smarty_tpl->tpl_vars['template_name']->value;?>
">
		<input type="hidden" name="module_name" value="<?php echo $_smarty_tpl->tpl_vars['module_name']->value;?>
">
		<input type="hidden" id="action" name="action" value="apply_template">
	</form>
<?php }?><?php }} ?>
