Uname: Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: 6036 (villadal)
Group: 100 (users)
Disabled functions: NONE
Safe mode: On[ PHPinfo ]
//home/villadal/www/old/booked/tpl_c      ( Reset | Go to )
File Name: 7bc271130080d3e1511218ba967f783e6a1ec63a.file.attribute-list.tpl.php
Edit
<?php /* Smarty version Smarty-3.1.16, created on 2014-07-30 19:01:59
         compiled from "/home/villadal/www/booked/tpl/Admin/Attributes/attribute-list.tpl" */ 
?>
<?php 
/*%%SmartyHeaderCode:148262937053d925074b31a3-24967120%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid $_smarty_tpl->decodeProperties(array (
  
'file_dependency' => 
  array (
    
'7bc271130080d3e1511218ba967f783e6a1ec63a' => 
    array (
      
=> '/home/villadal/www/booked/tpl/Admin/Attributes/attribute-list.tpl',
      
=> 1406729958,
      
=> 'file',
    ),
  ),
  
'nocache_hash' => '148262937053d925074b31a3-24967120',
  
'function' => 
  array (
  ),
  
'variables' => 
  array (
    
'Attributes' => 0,
    
'rowCss' => 0,
    
'attribute' => 0,
    
'Types' => 0,
  ),
  
'has_nocache_code' => false,
  
'version' => 'Smarty-3.1.16',
  
'unifunc' => 'content_53d9250755d2b5_51704767',
),
false); /*/%%SmartyHeaderCode%%*/?>
<?php 
if ($_valid && !is_callable('content_53d9250755d2b5_51704767')) {function content_53d9250755d2b5_51704767($_smarty_tpl) {?><?php if (!is_callable('smarty_function_cycle')) include '/home/villadal/www/booked/lib/Common/../../lib/external/Smarty/plugins/function.cycle.php';
?>

<h3><?php echo count($_smarty_tpl->tpl_vars['Attributes']->value);?>
 <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'Attributes'),$_smarty_tpl);?>
</h3>
<?php if (count($_smarty_tpl->tpl_vars['Attributes']->value)>0) {?>
<table class="list">
    <tr>
        <th>ID</th>
        <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'SortOrder'),$_smarty_tpl);?>
</th>
        <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'DisplayLabel'),$_smarty_tpl);?>
</th>
        <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'Type'),$_smarty_tpl);?>
</th>
        <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'Required'),$_smarty_tpl);?>
</th>
        <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'AppliesTo'),$_smarty_tpl);?>
</th>
        <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'ValidationExpression'),$_smarty_tpl);?>
</th>
        <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'PossibleValues'),$_smarty_tpl);?>
</th>
        <th><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'Delete'),$_smarty_tpl);?>
</th>
    </tr>
    <?php  $_smarty_tpl->tpl_vars['attribute'] = new Smarty_Variable$_smarty_tpl->tpl_vars['attribute']->_loop false;
 
$_from $_smarty_tpl->tpl_vars['Attributes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from'array');}
foreach (
$_from as $_smarty_tpl->tpl_vars['attribute']->key => $_smarty_tpl->tpl_vars['attribute']->value) {
$_smarty_tpl->tpl_vars['attribute']->_loop true;
?>
        <?php echo smarty_function_cycle(array('values'=>'row0,row1','assign'=>'rowCss'),$_smarty_tpl);?>

        <tr class="<?php echo $_smarty_tpl->tpl_vars['rowCss']->value;?>
 editable" attributeId="<?php echo $_smarty_tpl->tpl_vars['attribute']->value->Id();?>
">
            <td><?php echo $_smarty_tpl->tpl_vars['attribute']->value->Id();?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['attribute']->value->SortOrder();?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['attribute']->value->Label();?>
</td>
            <td><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>$_smarty_tpl->tpl_vars['Types']->value[$_smarty_tpl->tpl_vars['attribute']->value->Type()]),$_smarty_tpl);?>
</td>
            <td><?php if ($_smarty_tpl->tpl_vars['attribute']->value->Required()) {?>
                <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'Yes'),$_smarty_tpl);?>

                <?php } else { ?>
                <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'No'),$_smarty_tpl);?>

            <?php }?></td>
            <td><?php if ($_smarty_tpl->tpl_vars['attribute']->value->UniquePerEntity()) {?>
                <?php echo $_smarty_tpl->tpl_vars['attribute']->value->EntityDescription();?>

                <?php } else { ?>
                <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key'=>'All'),$_smarty_tpl);?>

            <?php }?></td>
            <td><?php echo $_smarty_tpl->tpl_vars['attribute']->value->Regex();?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['attribute']->value->PossibleValues();?>
</td>
            <td align="center"><a href="#" class="update delete" attributeId="<?php echo $_smarty_tpl->tpl_vars['attribute']->value->Id();?>
"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src'=>'cross-button.png'),$_smarty_tpl);?>
</a></td>
        </tr>
    <?php ?>
</table>
<?php }?>

<script type="text/javascript">
    var attributeList = new Object();

    <?php  $_smarty_tpl->tpl_vars['attribute'] = new Smarty_Variable$_smarty_tpl->tpl_vars['attribute']->_loop false;
 
$_from $_smarty_tpl->tpl_vars['Attributes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from'array');}
foreach (
$_from as $_smarty_tpl->tpl_vars['attribute']->key => $_smarty_tpl->tpl_vars['attribute']->value) {
$_smarty_tpl->tpl_vars['attribute']->_loop true;
?>
        attributeList[<?php echo $_smarty_tpl->tpl_vars['attribute']->value->Id();?>
] = {
                        id: <?php echo $_smarty_tpl->tpl_vars['attribute']->value->Id();?>
,
                        label: "<?php echo strtr($_smarty_tpl->tpl_vars['attribute']->value->Label(), array("\\" => "\\\\""'" => "\\'""\"" => "\\\"""\r" => "\\r""\n" => "\\n""</" => "<\/" ));?>
",
                        required: <?php echo $_smarty_tpl->tpl_vars['attribute']->value->Required();?>
,
                        regex: "<?php echo strtr($_smarty_tpl->tpl_vars['attribute']->value->Regex(), array("\\" => "\\\\""'" => "\\'""\"" => "\\\"""\r" => "\\r""\n" => "\\n""</" => "<\/" ));?>
",
                        possibleValues: "<?php echo strtr($_smarty_tpl->tpl_vars['attribute']->value->PossibleValues(), array("\\" => "\\\\""'" => "\\'""\"" => "\\\"""\r" => "\\r""\n" => "\\n""</" => "<\/" ));?>
",
                        type: "<?php echo $_smarty_tpl->tpl_vars['attribute']->value->Type();?>
",
                        sortOrder: "<?php echo $_smarty_tpl->tpl_vars['attribute']->value->SortOrder();?>
",
                        entityId: "<?php echo $_smarty_tpl->tpl_vars['attribute']->value->EntityId();?>
",
                        entityDescription: "<?php echo strtr($_smarty_tpl->tpl_vars['attribute']->value->EntityDescription(), array("\\" => "\\\\""'" => "\\'""\"" => "\\\"""\r" => "\\r""\n" => "\\n""</" => "<\/" ));?>
"
                    };
    <?php ?>

    $('#attributeList').data('list', attributeList);
</script><?php }} ?>

All system for education purposes only. For more tools: Telegram @jackleet

Mr.X Private Shell

Logo
-
New File | New Folder
Command
SQL