<?php /* Smarty version Smarty-3.1.15, created on 2015-04-27 20:11:06
         compiled from "/home/hushdogcafe/public_html/cube/admin/skins/default/templates/documents.index.php" */ ?>
<?php /*%%SmartyHeaderCode:418022365553e275ad412e2-24505346%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e84aae792f280e0a537b5edefd32fd65a44b45ce' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/admin/skins/default/templates/documents.index.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '418022365553e275ad412e2-24505346',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'VAL_SELF' => 0,
    'DISPLAY_DOCUMENT_LIST' => 0,
    'LANG' => 0,
    'DOCUMENTS' => 0,
    'SKIN_VARS' => 0,
    'document' => 0,
    'translation' => 0,
    'DISPLAY_FORM' => 0,
    'ADD_EDIT_DOCUMENT' => 0,
    'DOCUMENT' => 0,
    'LANGUAGES' => 0,
    'language' => 0,
    'TARGETS' => 0,
    'target' => 0,
    'DISPLAY_DELETE' => 0,
    'SESSION_TOKEN' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553e275af05c95_14306430',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553e275af05c95_14306430')) {function content_553e275af05c95_14306430($_smarty_tpl) {?>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post">
  <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_DOCUMENT_LIST']->value)) {?>
  <div id="overview" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['title_documents'];?>
</h3>
	<table>
	  <thead>
		<tr>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['arrange'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['language_primary'];?>
</td>
		  <td width="200"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['document_title'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['translate']['title_translations'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['document_terms'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['document_homepage'];?>
</td>
		  <td>&nbsp;</td>
		</tr>
	  </thead>
	  <tbody class="reorder-list">
	  <?php if (isset($_smarty_tpl->tpl_vars['DOCUMENTS']->value)) {?>
	  <?php  $_smarty_tpl->tpl_vars['document'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['document']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['DOCUMENTS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['document']->key => $_smarty_tpl->tpl_vars['document']->value) {
$_smarty_tpl->tpl_vars['document']->_loop = true;
?>
		<tr>
		  <td align="center"><a href="#" class="handle"><img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/updown.gif" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['ui']['drag_reorder'];?>
"></a></td>
		  <td align="center">
			<input type="hidden" name="order[]" value="<?php echo $_smarty_tpl->tpl_vars['document']->value['doc_id'];?>
">
			<input type="hidden" id="status-<?php echo $_smarty_tpl->tpl_vars['document']->value['doc_id'];?>
" name="status[<?php echo $_smarty_tpl->tpl_vars['document']->value['doc_id'];?>
]" value="<?php echo $_smarty_tpl->tpl_vars['document']->value['doc_status'];?>
" class="toggle">
		  </td>
		  <td align="center"><img src="<?php echo $_smarty_tpl->tpl_vars['document']->value['flag'];?>
"></td>
		  <td><a href="<?php echo $_smarty_tpl->tpl_vars['document']->value['link']['edit'];?>
"><?php echo $_smarty_tpl->tpl_vars['document']->value['doc_name'];?>
</a></td>
		  <td align="center" nowrap="nowrap">
			<?php if (isset($_smarty_tpl->tpl_vars['document']->value['translations'])) {?>
			<?php  $_smarty_tpl->tpl_vars['translation'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['translation']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['document']->value['translations']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['translation']->key => $_smarty_tpl->tpl_vars['translation']->value) {
$_smarty_tpl->tpl_vars['translation']->_loop = true;
?>
			<a href="<?php echo $_smarty_tpl->tpl_vars['translation']->value['link']['edit'];?>
"><img src="language/flags/<?php echo $_smarty_tpl->tpl_vars['translation']->value['doc_lang'];?>
.png" alt="<?php echo $_smarty_tpl->tpl_vars['translation']->value['doc_lang'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['translation']->value['doc_lang'];?>
"></a>
			<?php } ?>
			<?php }?>
		  </td>
		  <td align="center"><input type="radio" name="terms" value="<?php echo $_smarty_tpl->tpl_vars['document']->value['doc_id'];?>
" <?php echo $_smarty_tpl->tpl_vars['document']->value['terms'];?>
></td>
		  <td align="center"><input type="radio" name="home" value="<?php echo $_smarty_tpl->tpl_vars['document']->value['doc_id'];?>
" <?php echo $_smarty_tpl->tpl_vars['document']->value['homepage'];?>
></td>
		  <td align="center">
			<a href="<?php echo $_smarty_tpl->tpl_vars['document']->value['link']['translate'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['translate']['trans_add'];?>
"><i class="fa fa-plus-circle" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['translate']['trans_add'];?>
"></i></a>
			<a href="<?php echo $_smarty_tpl->tpl_vars['document']->value['link']['edit'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['edit'];?>
" class="edit"><i class="fa fa-pencil-square-o" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['edit'];?>
"></i></a>
			<a href="<?php echo $_smarty_tpl->tpl_vars['document']->value['link']['delete'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_delete'];?>
" class="delete"><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
"></i></a>
		  </td>
		</tr>
	  <?php } ?>
	  <?php }?>
	  </tbody>
	</table>
  </div>
  <?php }?>

  <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_FORM']->value)) {?>
  <div id="general" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['ADD_EDIT_DOCUMENT']->value;?>
</h3>
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['general'];?>
</legend>
	  <div><label for="doc-name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['document_title'];?>
</label><span><input type="text" name="document[doc_name]" id="doc-name" value="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['doc_name'];?>
" class="textbox required"></span></div>
	  <div><label for="doc-lang"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['language'];?>
</label><span><select name="document[doc_lang]" id="doc-lang" class="textbox">
		<?php  $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['language']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LANGUAGES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['language']->value['code'];?>
"<?php echo $_smarty_tpl->tpl_vars['language']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['language']->value['title'];?>
</option><?php } ?>
	  </select></span></div>
	  <div><label for="doc-status"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</label><span><input type="hidden" id="doc_status" name="document[doc_status]" value="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['doc_status'];?>
" class="toggle"></span></div>
	  <div><label for="doc-url"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['document_url'];?>
</label><span><input type="text" name="document[doc_url]" id="doc-url" value="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['doc_url'];?>
" class="textbox"></span></div>
	  <div><label for="doc-url-openin"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['document_url_open'];?>
</label><span><select name="document[doc_url_openin]" id="doc-url-openin" class="textbox">
		<?php  $_smarty_tpl->tpl_vars['target'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['target']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TARGETS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['target']->key => $_smarty_tpl->tpl_vars['target']->value) {
$_smarty_tpl->tpl_vars['target']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['target']->value['value'];?>
"<?php echo $_smarty_tpl->tpl_vars['target']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['target']->value['title'];?>
</option><?php } ?>
	  </select></span></div>
	  <div><label for="doc-navigation_link"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['navigation_link'];?>
</label><span><input type="hidden" id="doc_navigation_link" name="document[navigation_link]" value="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['navigation_link'];?>
" class="toggle"></span></div>
	  <div><label for="doc_parse"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['smarty_parse'];?>
</label><span><input type="hidden" id="doc_parse" name="document[doc_parse]" value="<?php if (!isset($_smarty_tpl->tpl_vars['DOCUMENT']->value['doc_parse'])) {?>0<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['doc_parse'];?>
<?php }?>" class="toggle"></span></div>
	  <input type="hidden" name="document[doc_parent_id]" value="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['doc_parent_id'];?>
">
	  <input type="hidden" name="document[doc_id]" value="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['doc_id'];?>
">
	</fieldset>
  </div>

  <div id="article" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['ADD_EDIT_DOCUMENT']->value;?>
</h3>
	<textarea name="document[doc_content]" id="doc-content" class="textbox fck"><?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['doc_content'];?>
</textarea>
  </div>

  <div id="seo" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_seo'];?>
</h3>
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_seo_meta_data'];?>
</legend>
	  <div><label for="seo_meta_title"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['seo_meta_title'];?>
</label><span><input type="text" name="document[seo_meta_title]" id="seo_meta_title" value="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['seo_meta_title'];?>
" class="textbox"></span></div>
	  <div><label for="seo_path"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['seo_path'];?>
 *</label><span><input name="seo_path" id="seo_path" class="textbox" type="text" value="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['seo_path'];?>
"></span></div>
	  <div><label for="seo_meta_keywords"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['seo_meta_keywords'];?>
</label><span><input type="text" name="document[seo_meta_keywords]" id="seo_meta_keywords" value="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['seo_meta_keywords'];?>
" class="textbox"></span></div>
	  <div><label for="seo_meta_description"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['seo_meta_description'];?>
</label><span><textarea name="document[seo_meta_description]" id="seo_meta_description" class="textbox"><?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['seo_meta_description'];?>
</textarea></span></div>
	</fieldset>
	<p>* <?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['seo_path_auto'];?>
</p>
  </div>
  <?php }?>
  
  <?php echo $_smarty_tpl->getSubTemplate ('templates/element.hook_form_content.php', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


  <div class="form_control">
	<input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['save'];?>
">
	<?php if ($_smarty_tpl->tpl_vars['DISPLAY_DELETE']->value) {?>&nbsp; <a href="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['link']['delete'];?>
" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_delete'];?>
"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['document_delete'];?>
</a><?php }?>
  </div>
  <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
</form><?php }} ?>
