function content_569cf7ca383257_95502232($_smarty_tpl)
    {
        if (!is_callable('smarty_function_html_table')) {
            require_once 'D:\\www\\demo\\smart_demo\\smarty\\plugins\\function.html_table.php';
        }
        if (!is_callable('smarty_function_html_checkboxes')) {
            require_once 'D:\\www\\demo\\smart_demo\\smarty\\plugins\\function.html_checkboxes.php';
        }
        if (!is_callable('smarty_function_html_options')) {
            require_once 'D:\\www\\demo\\smart_demo\\smarty\\plugins\\function.html_options.php';
        }
        if (!is_callable('smarty_function_html_radios')) {
            require_once 'D:\\www\\demo\\smart_demo\\smarty\\plugins\\function.html_radios.php';
        }
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Insert title here</title>
        <style type='text/css'>
            #red {
                color: red;
                font-size: 14px;
            }
        </style>
    </head>
    <body>
        <h1>html标签演示</h1>
        <?php 
        echo smarty_function_html_table(array('loop' => $_smarty_tpl->tpl_vars['lamp']->value, 'cols' => '1', 'table_attr' => 'style="border:1px #ccc solid;"'), $_smarty_tpl);
        ?>

		<h2>复选框</h2>
        <div id='red'>
            <?php 
        echo smarty_function_html_checkboxes(array('name' => 'hobby', 'values' => $_smarty_tpl->tpl_vars['values']->value, 'checked' => $_smarty_tpl->tpl_vars['checked']->value, 'output' => $_smarty_tpl->tpl_vars['output']->value), $_smarty_tpl);
        ?>

        </div>
        <h2>下拉选项</h2>
        <select name='hobby'>
            <?php 
        echo smarty_function_html_options(array('values' => $_smarty_tpl->tpl_vars['values']->value, 'selected' => $_smarty_tpl->tpl_vars['checked']->value, 'output' => $_smarty_tpl->tpl_vars['output']->value), $_smarty_tpl);
        ?>

        </select>
        <h2>单选框</h2>
        <?php 
        echo smarty_function_html_radios(array('name' => 'hobby', 'values' => $_smarty_tpl->tpl_vars['values']->value, 'checked' => '1', 'output' => $_smarty_tpl->tpl_vars['output']->value, 'separator' => '
        <br>
        '), $_smarty_tpl);
        ?>

    </body>
</html>
<?php 
    }
    function content_5617d04eac1025_97329852($_smarty_tpl)
    {
        if (!is_callable('smarty_function_html_checkboxes')) {
            include '/var/www/contraluz-cirer/data/smarty/libs/plugins/function.html_checkboxes.php';
        }
        ?>
<div class="contact">
    <h3><?php 
        echo $_smarty_tpl->tpl_vars['nombreSubpagina']->value;
        ?>
</h3>
    <?php 
        if ($_smarty_tpl->tpl_vars['mensaje']->value != '') {
            ?>
        <div class="footer-text">
            <div class="container">
                <h3><?php 
            echo $_smarty_tpl->tpl_vars['mensaje']->value;
            ?>
</h3>
            </div>
        </div>	
    <?php 
        } else {
            ?>
        <div class="contact-form">
            <form method="POST" action="terapias.php" id="formulario" name="formulario">
                <input type="hidden" id="id" name="id" value="<?php 
            echo $_smarty_tpl->tpl_vars['id']->value;
            ?>
"/>
                <input type="hidden" id="metodo" name="metodo" value="<?php 
            echo $_smarty_tpl->tpl_vars['metodo']->value;
            ?>
"/>
                <label>Nombre</label>
                <input type="text" value="<?php 
            echo $_smarty_tpl->tpl_vars['nombre']->value;
            ?>
" id="nombre" name="nombre"/>

                <?php 
            echo smarty_function_html_checkboxes(array('name' => "tratamiento", 'options' => $_smarty_tpl->tpl_vars['tratamientos']->value, 'selected' => $_smarty_tpl->tpl_vars['tratamiento']->value, 'separator' => "<br/>"), $_smarty_tpl);
            ?>


                <input type="submit" value="Guardar Datos"/>
            </form>
        </div>
    <?php 
        }
        ?>
</div>
<?php 
    }
    function content_55d5c52c1f4c73_26393234($_smarty_tpl)
    {
        if (!is_callable('smarty_function_html_options')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.html_options.php';
        }
        if (!is_callable('smarty_function_html_checkboxes')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.html_checkboxes.php';
        }
        if (!$_smarty_tpl->tpl_vars['order_status_descr']->value) {
            ?>
    <?php 
            if (!$_smarty_tpl->tpl_vars['status_type']->value) {
                $_smarty_tpl->tpl_vars["status_type"] = new Smarty_variable(@constant('STATUSES_ORDER'), null, 0);
            }
            ?>
    <?php 
            $_smarty_tpl->tpl_vars["order_status_descr"] = new Smarty_variable(fn_get_simple_statuses($_smarty_tpl->tpl_vars['status_type']->value), null, 0);
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['display']->value == "view") {
            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_status_descr']->value[$_smarty_tpl->tpl_vars['status']->value], ENT_QUOTES, 'UTF-8');
        } elseif ($_smarty_tpl->tpl_vars['display']->value == "select") {
            echo smarty_function_html_options(array('name' => $_smarty_tpl->tpl_vars['name']->value, 'options' => $_smarty_tpl->tpl_vars['order_status_descr']->value, 'selected' => $_smarty_tpl->tpl_vars['status']->value, 'id' => $_smarty_tpl->tpl_vars['select_id']->value), $_smarty_tpl);
        } elseif ($_smarty_tpl->tpl_vars['display']->value == "checkboxes") {
            echo smarty_function_html_checkboxes(array('name' => $_smarty_tpl->tpl_vars['name']->value, 'options' => $_smarty_tpl->tpl_vars['order_status_descr']->value, 'selected' => $_smarty_tpl->tpl_vars['status']->value, 'columns' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? 4 : $tmp, 'assign' => '_html_checkboxes', 'labels' => false), $_smarty_tpl);
            $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['item']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['_html_checkboxes']->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;
                ?>
<label><?php 
                echo $_smarty_tpl->tpl_vars['item']->value;
                ?>
</label><?php 
            }
        }
    }
示例#4
0
function smarty_function_input($params, &$smarty)
{
    if (isset($params['attributes'])) {
        $params = $params['attributes'];
    }
    $params['style'] .= '';
    if (isset($params['width'])) {
        $params['style'] = 'width:' . $params['width'] . 'px;' . $params['style'];
        unset($params['width']);
    }
    $params['class'] = $params['class'] ? $params['class'] . ' _x_ipt' : '_x_ipt' . ' ' . $params['type'];
    $params['vtype'] = isset($params['vtype']) ? $params['vtype'] : $params['type'];
    if (isset($smarty->_tpl_vars['disabledElement']) && $smarty->_tpl_vars['disabledElement']) {
        $params['disabled'] = 'disabled';
    }
    if (substr($params['type'], 0, 4) == 'enum') {
        $params['type'] = $params['inputType'] ? $params['inputType'] : 'select';
        $params['vtype'] = $params['inputType'] ? $params['inputType'] : 'select';
    } elseif (substr($params['type'], 0, 7) != 'object:') {
        $params['type'] = $params['inputType'] ? $params['inputType'] : $params['type'];
        $params['vtype'] = $params['inputType'] ? $params['inputType'] : $params['type'];
    }
    if (substr($params['type'], 0, 7) == 'object:') {
        include 'objects.php';
        $aTmp = explode(':', $params['type']);
        $params['filter'] = $params['options'];
        //传递filter参数 added by Ever 20080701
        if (!$smarty->_loaded_object_module[$aTmp[1]][$aTmp[2]]['data']) {
            $mod =& $smarty->system->loadModel($objects[$aTmp[1]]);
            if ($aTmp[2]) {
                $params['data'] = $mod->{$aTmp}[2]();
                $smarty->_loaded_object_module[$aTmp[1]][$aTmp[2]]['data'] = $params['data'];
            }
        } else {
            $mod =& $smarty->system->loadModel($objects[$aTmp[1]]);
            $params['data'] = $smarty->_loaded_object_module[$aTmp[1]][$aTmp[2]]['data'];
        }
        return $mod->inputElement($params);
    } else {
        switch ($params['type']) {
            case 'text':
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'password':
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'search':
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'date':
                if (!$params['id']) {
                    $domid = 'mce_' . substr(md5(rand(0, time())), 0, 6);
                    $params['id'] = $domid;
                } else {
                    $domid = $params['id'];
                }
                if (is_int($params['value'])) {
                    $params['value'] = mydate('Y-m-d', $params['value']);
                }
                //            $params['value'] = mydate('Y-m-d',$params['value']);
                $params['type'] = 'text';
                return buildTag($params, 'input autocomplete="off"') . '<script>$("' . $domid . '").makeCalable();</script>';
                break;
            case 'color':
                if (!$params['id']) {
                    $domid = 'colorPicker_' . substr(md5(rand(0, time())), 0, 6);
                    $params['id'] = $domid;
                } else {
                    $domid = $params['id'];
                }
                if ($params['value'] == '') {
                    $params['value'] = 'default';
                    //          $params['style']='background-color:#ffffff;cursor:pointer';
                } else {
                    //        $params['style']='background-color:'.$params['value'].';cursor:pointer';
                }
                //           $params['readonly']='false';
                return buildTag($params, 'input autocomplete="off"') . ' <input type="button" id="c_' . $domid . '" style="width:22px;height:22px;background-color:' . $params['value'] . ';border:0px #ccc solid;cursor:pointer"/><script>
            new GoogColorPicker("c_' . $domid . '",{
               onSelect:function(hex,rgb,el){
                  $("' . $domid . '").set("value",hex);
                  el.setStyle("background-color",hex);
               }
            })</script>';
                break;
            case 'time':
                if (is_int($params['value'])) {
                    $params['value'] = mydate('Y-m-d H:i', $params['value']);
                }
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'file':
                if ($params['backend'] == 'public') {
                    if (!$GLOBALS['storager']) {
                        $system =& $GLOBALS['system'];
                        $GLOBALS['storager'] = $system->loadModel('system/storager');
                    }
                    $storager =& $GLOBALS['storager'];
                    $url = $storager->getUrl($params['value']);
                    $img = array('png' => 1, 'gif' => 1, 'jpg' => 1, 'jpeg' => 1);
                    if ($img[strtolower(substr($url, strrpos($url, '.') + 1))]) {
                        $html = '<img src="' . $url . '?' . time() . '" style="float:none" />';
                    } else {
                        $html = $url;
                    }
                } else {
                    $html = '';
                }
                return $html . buildTag($params, 'input autocomplete="off"');
                break;
            case 'bool':
                $params['type'] = 'checkbox';
                if ($params['value'] == 'true' || intval($params['value']) > 0) {
                    $params['checked'] = 'checked';
                }
                if ($params['value'] === '0' || $params['value'] === '1') {
                    $params['value'] = 1;
                } else {
                    $params['value'] = 'true';
                }
                return buildTag($params, 'input');
                break;
            case 'combox':
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'html':
                $id = 'mce_' . substr(md5(rand(0, time())), 0, 6);
                $system =& $GLOBALS['system'];
                $editor_type = $system->getConf("system.editortype");
                $editor_type == '' ? $editor_type = 'textarea' : ($editor_type = 'wysiwyg');
                if ($editor_type == 'textarea' || $params['editor_type'] == 'textarea') {
                    $smarty->_smarty_include(array('smarty_include_tpl_file' => 'editor/style_2.html', 'smarty_include_vars' => array('var' => $id, 'for' => $id)));
                } else {
                    $smarty->_smarty_include(array('smarty_include_tpl_file' => 'editor/style_1.html', 'smarty_include_vars' => array('var' => $id, 'for' => $id, 'includeBase' => $params['includeBase'] ? $params['includeBase'] : true)));
                }
                $params['id'] = $id;
                $params['editor_type'] = $params['editor_type'] ? $params['editor_type'] : $editor_type;
                $smarty->_smarty_include(array('smarty_include_tpl_file' => 'editor/body.html', 'smarty_include_vars' => $params));
                break;
            case 'textarea':
                $value = $params['value'];
                if ($params['width']) {
                    $params['style'] .= ';width:' . $params['width'];
                    unset($params['width']);
                }
                if ($params['height']) {
                    $params['style'] .= ';height:' . $params['height'];
                    unset($params['height']);
                }
                unset($params['value']);
                return buildTag($params, 'textarea', false) . htmlspecialchars($value) . '</textarea>';
                break;
            case 'checkbox':
                $params['selected'] = $params['value'];
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_checkboxes', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return smarty_function_html_checkboxes($params, $smarty);
                break;
            case 'radio':
                $params['selected'] = $params['value'];
                unset($params['value']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_radios', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return smarty_function_html_radios($params, $smarty);
                break;
            case 'select':
                if (isset($params['rows'])) {
                    foreach ($params['rows'] as $item) {
                        $params['options'][$item[$params['valueColumn']]] = $item[$params['labelColumn']] . $out;
                    }
                }
                if ($params['nulloption']) {
                    $params['options'] = array_merge2(array('' => __('- 请选择 -')), $params['options']);
                }
                $params['selected'] = $params['value'];
                $t = buildTag($params, 'select', false);
                unset($params['name']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return $t . smarty_function_html_options($params, $smarty) . '</select>';
                break;
            case 'fontset':
                $params['options'] = array('0' => '默认', '1' => '粗体', '2' => '斜体', '3' => '中线');
                $params['selected'] = $params['value'];
                $t = buildTag($params, 'select', false);
                unset($params['name']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return $t . smarty_function_html_options($params, $smarty) . '</select>';
                //return '<select id="'.$params['name'].'" name="'.$params['name'].'">'._comset_set($params['value'],$params['font']).'</select>';
                break;
            case 'region':
                $SYSTEM =& $GLOBALS['system'];
                $loc =& $SYSTEM->loadModel('system/local');
                if ($params['required'] == 'true') {
                    $req = ' vtype="area"';
                } else {
                    $req = ' vtype=' . $params['pptype'];
                }
                if (!$params['value']) {
                    $package = $params['package'] ? $params['package'] : $SYSTEM->getConf('system.location');
                    $package = $package ? $package : 'mainland';
                    return '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params) . '</span>';
                } else {
                    list($package, $regions, $region_id) = explode(':', $params['value']);
                    if (!is_numeric($region_id)) {
                        if (!$package) {
                            $package = $SYSTEM->getConf('system.location');
                        }
                        return '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params) . '</span>';
                    } else {
                        $arr_regions = array();
                        $ret = '';
                        while ($region_id && ($region = $loc->instance($region_id, 'region_id,local_name,p_region_id'))) {
                            array_unshift($arr_regions, $region);
                            if ($region_id = $region['p_region_id']) {
                                $ret = '<span class="x-region-child">&nbsp;-&nbsp' . $loc->get_area_select($region['p_region_id'], $params, $region['region_id']) . $ret . '</span>';
                            } else {
                                $ret = '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" value="' . $params['value'] . '" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params, $region['region_id']) . $ret . '</span>';
                            }
                        }
                        return $ret;
                    }
                }
                break;
            case 'arrow':
                $params['selected'] = $params['value'];
                $params['options'] = array('arrow_1.gif' => '箭头1', 'arrow_2.gif' => '箭头2', 'arrow_3.gif' => '箭头3', 'arrow_4.gif' => '箭头4', 'arrow_5.gif' => '箭头5', 6 => '自定义');
                //return '<select id="'.$params['name'].'" name="'.$params['name'].'" onClick="choosePic()">'._comset_set($params['value'],$params['arrow']).'</select>';
                $t = buildTag($params, 'select', false);
                unset($params['name']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return $t . smarty_function_html_options($params, $smarty) . '</select>';
                break;
            case 'rank':
                $params['selected'] = $params['value'];
                $params['options'] = array('view_w_count' => '周访问次数', 'view_count' => '总访问次数', 'buy_w_count' => '周购买次数', 'buy_count' => '总购买次数', 'comments_count' => '评论次数');
                //return '<select id="'.$params['name'].'" name="'.$params['name'].'" onClick="choosePic()">'._comset_set($params['value'],$params['arrow']).'</select>';
                $t = buildTag($params, 'select', false);
                unset($params['name']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return $t . smarty_function_html_options($params, $smarty) . '</select>';
                break;
            case 'com_select':
                $params['from'] = intval($params['from']);
                $params['options'] = array();
                $params['to'] = intval($params['to']);
                for ($i = $params['from']; $i <= $params['to']; $i++) {
                    array_push($params['options'], $i);
                }
                $params['selected'] = $params['value'];
                $t = buildTag($params, 'select', false);
                unset($params['name']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return $t . smarty_function_html_options($params, $smarty) . '</select>';
                break;
            case 'viewIMG':
                return "<a style='text-decoration:none;' class='viewIMG' href='javascript:void(0);' onclick='viewIMG(\"" . $params['value'] . "\",this);this.blur();'  title='点击查看图片'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>";
                break;
            default:
                return buildTag($params, 'input autocomplete="off"');
        }
    }
}
                <?php 
echo smarty_function_html_checkboxes(array('name' => 'auto_update_flag', 'options' => $this->_tpl_vars['autoUpdateFlag'], 'selected' => $this->_tpl_vars['param']['auto_update_flag']), $this);
?>

            </td>
        </tr>
        <?php 
if ($this->_tpl_vars['param']['id'] != $this->_tpl_vars['loginAdminData']['id']) {
    ?>
        <tr>
            <th>
                削除:
            </th>
            <td>
                <?php 
    echo smarty_function_html_checkboxes(array('name' => 'disable', 'options' => $this->_tpl_vars['disable'], 'selected' => $this->_tpl_vars['param']['disable']), $this);
    ?>

            </td>
        </tr>
        <?php 
}
?>
        <tr>
            <td colspan="2" style="text-align:center;">
                <input type="submit" value="更 新" name="action_adminUser_AdminUserRegExec" onClick="return confirm('更新しますか?')">
            </td>
        </tr>

    </table>
" value="<?php 
echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrForm'][$this->_tpl_vars['key']]['value']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp);
?>
" size="60" class="box60" /></td>
</tr>
<tr>
    <th><?php 
echo smarty_function_t(array('string' => 'tpl_Occupation_02'), $this);
?>
</th>
    <td colspan="3">
        <?php 
$this->assign('key', 'search_job');
?>
        <?php 
echo smarty_function_html_checkboxes(array('name' => is_array($_tmp = $this->_tpl_vars['key']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'options' => is_array($_tmp = $this->_tpl_vars['arrJob']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'separator' => "&nbsp;", 'selected' => is_array($_tmp = $this->_tpl_vars['arrForm'][$this->_tpl_vars['key']]['value']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)), $this);
?>
</td>
</tr>
<tr>
    <th><?php 
echo smarty_function_t(array('string' => 'tpl_Purchase amount_01'), $this);
?>
</th>
    <td>
        <?php 
$this->assign('key1', 'search_buy_total_from');
?>
        <?php 
$this->assign('key2', 'search_buy_total_to');
?>
/**
 * Smarty {formfield} function plugin
 * Type:     function
 * Name:     formfield
 * Input:
 */
function smarty_function_formfield($params, &$gBitSmarty)
{
    $unexpected = array();
    detoxify($params);
    foreach ($params as $key => $val) {
        switch ($key) {
            case 'name':
                $name = $val;
                break;
            case 'value':
                $value = $val;
                break;
            case 'field':
                $field = $val;
                break;
            case 'grpname':
                $grpname = $val;
                break;
            case 'disabled':
                $disabled = (bool) $val;
                break;
            default:
                $unexpected[$key] = $val;
                break;
        }
    }
    if (!isset($value)) {
        if (isset($field['value'])) {
            $value = $field['value'];
        } elseif (isset($field['defval'])) {
            $value = $field['defval'];
        } else {
            $value = NULL;
        }
    }
    $inpname = $grpname . '[' . $name . ']';
    $inpid = str_replace('[', '_', str_replace(']', '', $grpname)) . '_' . $name;
    if (isset($disabled)) {
        $field['disabled'] = $disabled;
    }
    $xparams = empty($field['disabled']) ? '' : 'disabled="disabled" ';
    $forminput = '';
    if (!empty($field['chkenables'])) {
        $chkparams = $xparams;
        if (!empty($value)) {
            $chkparams .= 'checked="checked" ';
        }
        $chkname = $grpname . '[' . $name . '_chk]';
        $forminput .= '<input type="checkbox" name="' . $chkname . '" id="' . $inpid . '_chk" value="y" class="ff-boolfield" ' . $chkparams . '/>';
        $forminput .= '<div id="' . $inpid . '_chk_fielddiv" class="subfield noanimate">';
    }
    switch ($field['type']) {
        case 'checkboxes':
            $smartyparams = array('name' => $inpname, 'options' => $field['options'], 'selected' => is_array($value) ? $value : bf2array($value));
            if (isset($field['typopt']) && strncasecmp($field['typopt'], 'vertical', 4) == 0) {
                $smartyparams['separator'] = '<br />';
            }
            if (!empty($field['disabled'])) {
                $smartyparams['disabled'] = 'disabled';
            }
            $gBitSmarty->loadPlugin('smarty_modifier_html_checkboxes');
            $forminput .= smarty_function_html_checkboxes($smartyparams, $gBitSmarty);
            break;
        case 'checkbox':
            $xparams .= $value == 'y' ? 'checked="checked" ' : '';
            $forminput .= '<input type="checkbox" name="' . $inpname . '" id="' . $inpid . '" value="y" ' . $xparams . '/>';
            break;
        case 'options':
            $smartyparams = array('name' => $inpname, 'id' => $inpid, 'options' => optionsArray($field), 'selected' => $value);
            $optinput = optionsInput($smartyparams, $field, $gBitSmarty);
            $forminput .= empty($optinput) ? "<em>Sorry, no options available right now!</em>" : $optinput;
            break;
        case 'radios':
            if (empty($field['disabled'])) {
                $smartyparams = array('name' => $inpname, 'id' => $inpid, 'label_ids' => TRUE, 'options' => $field['options']);
                if (!empty($value)) {
                    $smartyparams['selected'] = $value;
                }
                if (isset($field['onclick'])) {
                    $smartyparams['onclick'] = $field['onclick'];
                }
                if (isset($field['typopt']) && strncasecmp($field['typopt'], 'vertical', 4) == 0) {
                    $smartyparams['separator'] = '<br />';
                }
                $gBitSmarty->loadPlugin('smarty_modifier_html_radios');
                $forminput .= smarty_function_html_radios($smartyparams, $gBitSmarty);
            } else {
                $forminput .= empty($field['options'][$value]) ? '' : $field['options'][$value];
            }
            break;
        case 'date':
            if (empty($field['disabled'])) {
                $smartyparams = array('field_array' => $inpname, 'prefix' => "", 'time' => $value, 'start_year' => "-100", 'end_year' => "+100");
                if (isset($field['typopt'])) {
                    if ($field['typopt'] == 'past') {
                        $smartyparams['end_year'] = '-0';
                    } elseif ($field['typopt'] == 'future') {
                        $smartyparams['start_year'] = '-0';
                    }
                }
                $gBitSmarty->loadPlugin('smarty_modifier_html_select_date');
                $forminput .= smarty_function_html_select_date($smartyparams, $gBitSmarty);
            } else {
                if (empty($value)) {
                    $forminput .= tra('unknown');
                } else {
                    $gBitSmarty->loadPlugin('smarty_modifier_cal_date_format');
                    $forminput .= smarty_modifier_cal_date_format($value);
                }
            }
            break;
        case 'hidden':
            $forminput .= '<input type="hidden" name="' . $inpname . '" id="' . $inpid . '" value="' . $value . '" />';
            break;
        case 'boolack':
            $forminput .= boolackInput($field, $inpname, $inpid);
            break;
        case 'currency':
            $dollars = intval($value / 100);
            $cents = abs($value % 100);
            $forminput .= '$<input type="text" size="7" maxlength="7" class="forminp_currency"
			name="' . $inpname . '[unit]" id="' . $inpid . '_unit" value="' . $dollars . '" ' . $xparams . '/>';
            $forminput .= '.<input type="text" size="2" maxlength="2" class="forminp_currency"
			name="' . $inpname . '[frac]" id="' . $inpid . '_frac" value="' . $cents . '" ' . $xparams . '/>';
            break;
        case 'section':
            $forminput .= "<hr>";
            // Just used as a spacer for now
            break;
        case 'textarea':
            $forminput .= '<textarea id="' . $inpid . '" name="' . $inpname . '" ' . $xparams;
            if (isset($field['rows'])) {
                $forminput .= 'rows="' . $field['rows'] . '"';
            }
            if (isset($field['cols'])) {
                $forminput .= 'cols="' . $field['cols'] . '"';
            }
            $forminput .= '>' . $value . '</textarea>';
            break;
        case 'package_id':
            // this is experimental and really only functional for some LibertyForm derived content
            global $gLibertySystem;
            // If field is not disabled and is not an empty createonly field
            if (empty($field['disabled']) && (empty($value) || empty($field['createonly']))) {
                $forminput .= '<input type="text" size="' . $field['maxlen'] . '" maxlength="' . $field['maxlen'] . '"
				name="' . $inpname . '" id="' . $inpid . '" value="' . $value . '" />';
            } else {
                $forminput .= '<input type="hidden" name="' . $inpname . '" id="' . $inpid . '" value="' . $value . '" />';
            }
            if (!empty($value) && !empty($field['content_type_guid']) && ($content = $gLibertySystem->getLibertyClass($field['content_type_guid'])) && method_exists($content, 'getDataShort') && $content->loadId($value)) {
                if (!empty($forminput)) {
                    $forminput .= '&nbsp;';
                }
                $fielddisp = $content->getDataShort();
                if (empty($fielddisp)) {
                    $fielddisp = 'Id:' . $value;
                }
                $forminput .= '<a href="' . $content->getDisplayUrl() . '">' . htmlspecialchars($fielddisp, ENT_QUOTES, 'ISO-8859') . '</a>';
            }
            break;
        case 'text':
        default:
            $forminput .= '<input type="text" size="' . $field['maxlen'] . '" maxlength="' . $field['maxlen'] . '"
			name="' . $inpname . '" id="' . $inpid . '" value="' . $value . '" ' . $xparams . '/>';
            break;
    }
    if (!empty($field['chkenables'])) {
        $forminput .= '</div>';
    }
    return $forminput;
}
    function content_55ddbfdc96ed69_51075482($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.date_format.php';
        }
        if (!is_callable('smarty_function_html_checkboxes')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.html_checkboxes.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('no_products_selected', 'all_features', 'all_features', 'similar_only', 'similar_only', 'different_only', 'different_only', 'remove', 'remove', 'remove', 'clear_list', 'add_feature', 'add', 'compare', 'no_products_selected', 'all_features', 'all_features', 'similar_only', 'similar_only', 'different_only', 'different_only', 'remove', 'remove', 'remove', 'clear_list', 'add_feature', 'add', 'compare'));
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            if (!$_smarty_tpl->tpl_vars['comparison_data']->value) {
                ?>
    <p class="ty-no-items ty-compare__no-items"><?php 
                echo $_smarty_tpl->__("no_products_selected");
                ?>
</p>
    <div class="buttons-container ty-compare__button-empty">
        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/continue_shopping.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => fn_url($_smarty_tpl->tpl_vars['continue_url']->value), 'but_role' => "text"), 0);
                ?>

    </div>
<?php 
            } else {
                ?>
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    <?php 
                $_smarty_tpl->tpl_vars["return_current_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
                ?>
    <div class="ty-compare">
        <div class="ty-compare__wrapper">
            <table class="ty-compare-products">
                <tr>
                    <td class="ty-compare-products__menu">
                        <ul class="ty-compare-menu">
                            <li class="ty-compare-menu__item"><?php 
                if ($_smarty_tpl->tpl_vars['action']->value != "show_all") {
                    ?>
<a class="ty-compare-menu__a" href="<?php 
                    echo htmlspecialchars(fn_url("product_features.compare.show_all"), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->__("all_features");
                    ?>
</a><?php 
                } else {
                    ?>
<span class="ty-compare-menu__elem"><?php 
                    echo $_smarty_tpl->__("all_features");
                    ?>
</span><?php 
                }
                ?>
</li>
                            <li class="ty-compare-menu__item"><?php 
                if ($_smarty_tpl->tpl_vars['action']->value != "similar_only") {
                    ?>
<a class="ty-compare-menu__a" href="<?php 
                    echo htmlspecialchars(fn_url("product_features.compare.similar_only"), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->__("similar_only");
                    ?>
</a><?php 
                } else {
                    ?>
<span class="ty-compare-menu__elem"><?php 
                    echo $_smarty_tpl->__("similar_only");
                    ?>
</span><?php 
                }
                ?>
</li>
                            <li class="ty-compare-menu__item"><?php 
                if ($_smarty_tpl->tpl_vars['action']->value != "different_only") {
                    ?>
<a class="ty-compare-menu__a" href="<?php 
                    echo htmlspecialchars(fn_url("product_features.compare.different_only"), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->__("different_only");
                    ?>
</a><?php 
                } else {
                    ?>
<span class="ty-compare-menu__elem"><?php 
                    echo $_smarty_tpl->__("different_only");
                    ?>
</span><?php 
                }
                ?>
</li>
                        </ul>
                    </td>
                    <?php 
                $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['product']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['comparison_data']->value['products'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
                    $_smarty_tpl->tpl_vars['product']->_loop = true;
                    ?>
                    <td class="ty-compare-products__product">
                        <div class="ty-compare-products__item">
                            <div class="ty-compare-products__delete"><a href="<?php 
                    echo htmlspecialchars(fn_url("product_features.delete_product?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['return_current_url']->value), ENT_QUOTES, 'UTF-8');
                    ?>
" class="ty-remove"  title="<?php 
                    echo $_smarty_tpl->__("remove");
                    ?>
"><i class="ty-remove__icon ty-icon-cancel-circle"></i><span class="ty-remove__txt"><?php 
                    echo $_smarty_tpl->__("remove");
                    ?>
</span></a></div>
                            <div class="ty-compare-products__img"><a href="<?php 
                    echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_lists_thumbnail_width'], 'obj_id' => $_smarty_tpl->tpl_vars['product']->value['product_id'], 'images' => $_smarty_tpl->tpl_vars['product']->value['main_pair'], 'no_ids' => true), 0);
                    ?>
</a></div>
                        </div>

                        <div class="ty-compare-products__item">
                            <a href="<?php 
                    echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['product'];
                    ?>
</a>
                        </div>

                        <?php 
                    $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                    ?>
                        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_old_price' => true, 'show_price_values' => true, 'show_price' => true, 'show_clean_price' => true), 0);
                    ?>

                        <div class="ty-compare-products__item">
                            

                            <?php 
                    $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                            <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                    ?>


                            <?php 
                    $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                            <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value];
                    ?>

                        </div>

                        
                    </td>
                    <?php 
                }
                ?>
                </tr>
            </table>
    
            <div class="ty-compare-feature">
                <table class="ty-compare-feature__table">
                <?php 
                $_smarty_tpl->tpl_vars["group_features"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["group_features"]->_loop = false;
                $_smarty_tpl->tpl_vars["group_id"] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['comparison_data']->value['product_features'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["group_features"]->key => $_smarty_tpl->tpl_vars["group_features"]->value) {
                    $_smarty_tpl->tpl_vars["group_features"]->_loop = true;
                    $_smarty_tpl->tpl_vars["group_id"]->value = $_smarty_tpl->tpl_vars["group_features"]->key;
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars["_feature"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["_feature"]->_loop = false;
                    $_smarty_tpl->tpl_vars['id'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['group_features']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["_feature"]->key => $_smarty_tpl->tpl_vars["_feature"]->value) {
                        $_smarty_tpl->tpl_vars["_feature"]->_loop = true;
                        $_smarty_tpl->tpl_vars['id']->value = $_smarty_tpl->tpl_vars["_feature"]->key;
                        ?>
                        <tr class="ty-compare-feature__row">
                            <td class="ty-compare-feature__item ty-compare-sort">
                                <span class="ty-compare-sort__title"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['_feature']->value, ENT_QUOTES, 'UTF-8');
                        if (trim($_smarty_tpl->tpl_vars['comparison_data']->value['product_features_full_description'][$_smarty_tpl->tpl_vars['id']->value])) {
                            echo $_smarty_tpl->getSubTemplate("common/help.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('text' => $_smarty_tpl->tpl_vars['_feature']->value, 'content' => $_smarty_tpl->tpl_vars['comparison_data']->value['product_features_full_description'][$_smarty_tpl->tpl_vars['id']->value], 'id' => $_smarty_tpl->tpl_vars['id']->value, 'show_brackets' => true, 'wysiwyg' => true), 0);
                        }
                        ?>
:</span>
                                    <a href="<?php 
                        echo htmlspecialchars(fn_url("product_features.delete_feature?feature_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['return_current_url']->value), ENT_QUOTES, 'UTF-8');
                        ?>
" class="ty-compare-sort__a ty-icon-cancel-circle" title="<?php 
                        echo $_smarty_tpl->__("remove");
                        ?>
"></a>
                            </td>
                            <?php 
                        $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['product']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['comparison_data']->value['products'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars['product']->_loop = true;
                            ?>
                                <td class="ty-compare-feature__item ty-compare-feature_item_size">

                                <?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['product_features'][$_smarty_tpl->tpl_vars['id']->value]) {
                                ?>
                                    <?php 
                                $_smarty_tpl->tpl_vars["feature"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_features'][$_smarty_tpl->tpl_vars['id']->value], null, 0);
                                ?>
                                <?php 
                            } else {
                                ?>
                                    <?php 
                                $_smarty_tpl->tpl_vars["feature"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_features'][$_smarty_tpl->tpl_vars['group_id']->value]['subfeatures'][$_smarty_tpl->tpl_vars['id']->value], null, 0);
                                ?>
                                <?php 
                            }
                            ?>

                                <?php 
                            if ($_smarty_tpl->tpl_vars['feature']->value['prefix']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['prefix'], ENT_QUOTES, 'UTF-8');
                            }
                            if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "C") {
                                ?>
<span class="ty-compare-checkbox" title="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['value'], ENT_QUOTES, 'UTF-8');
                                ?>
"><?php 
                                if ($_smarty_tpl->tpl_vars['feature']->value['value'] == "Y") {
                                    ?>
<i class="ty-compare-checkbox__icon ty-icon-ok"></i><?php 
                                }
                                ?>
</span><?php 
                            } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "D") {
                                echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['feature']->value['value_int'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format']), ENT_QUOTES, 'UTF-8');
                            } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "M" && $_smarty_tpl->tpl_vars['feature']->value['variants']) {
                                ?>
<ul class="ty-compare-list"><?php 
                                $_smarty_tpl->tpl_vars["var"] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars["var"]->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['feature']->value['variants'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars["var"]->key => $_smarty_tpl->tpl_vars["var"]->value) {
                                    $_smarty_tpl->tpl_vars["var"]->_loop = true;
                                    if ($_smarty_tpl->tpl_vars['var']->value['selected']) {
                                        ?>
<li class="ty-compare-list__item"><span class="ty-compare-checkbox" title="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant'], ENT_QUOTES, 'UTF-8');
                                        ?>
"><i class="ty-compare-checkbox__icon ty-icon-ok"></i></span><?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant'], ENT_QUOTES, 'UTF-8');
                                        ?>
</li><?php 
                                    }
                                }
                                ?>
</ul><?php 
                            } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "S" || $_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "E") {
                                $_smarty_tpl->tpl_vars["var"] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars["var"]->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['feature']->value['variants'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars["var"]->key => $_smarty_tpl->tpl_vars["var"]->value) {
                                    $_smarty_tpl->tpl_vars["var"]->_loop = true;
                                    if ($_smarty_tpl->tpl_vars['var']->value['selected']) {
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant'], ENT_QUOTES, 'UTF-8');
                                    }
                                }
                            } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "N" || $_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "O") {
                                echo htmlspecialchars(($tmp = @floatval($_smarty_tpl->tpl_vars['feature']->value['value_int'])) === null || $tmp === '' ? "-" : $tmp, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['feature']->value['value']) === null || $tmp === '' ? "-" : $tmp, ENT_QUOTES, 'UTF-8');
                            }
                            if ($_smarty_tpl->tpl_vars['feature']->value['suffix']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['suffix'], ENT_QUOTES, 'UTF-8');
                            }
                            ?>
                            <?php 
                        }
                        ?>
                        </tr>
                    <?php 
                    }
                    ?>
                <?php 
                }
                ?>
                </table>
            </div>
        </div>
    </div>

    <div class="buttons-container ty-compare__buttons">
        <?php 
                $_smarty_tpl->tpl_vars["r_url"] = new Smarty_variable(fn_url(''), null, 0);
                ?>
        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/continue_shopping.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => fn_url($_smarty_tpl->tpl_vars['continue_url']->value), 'but_role' => "text"), 0);
                ?>

        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("clear_list"), 'but_href' => "product_features.clear_list?redirect_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'but_meta' => "ty-btn__tertiary"), 0);
                ?>

    </div>

    <?php 
                if ($_smarty_tpl->tpl_vars['comparison_data']->value['hidden_features']) {
                    ?>
    <?php 
                    echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("add_feature")), 0);
                    ?>

    <form action="<?php 
                    echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
                    ?>
" method="post" name="add_feature_form">
        <input type="hidden" name="redirect_url" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
                    ?>
" />
        <?php 
                    echo smarty_function_html_checkboxes(array('name' => "add_features", 'options' => $_smarty_tpl->tpl_vars['comparison_data']->value['hidden_features'], 'columns' => "4"), $_smarty_tpl);
                    ?>

        <div class="buttons-container ty-mt-s">
            <?php 
                    echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("add"), 'but_name' => "dispatch[product_features.add_feature]"), 0);
                    ?>

        </div>
    </form>
    <?php 
                }
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo $_smarty_tpl->__("compare");
            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();
            }
            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();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="views/product_features/compare.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "views/product_features/compare.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            if (!$_smarty_tpl->tpl_vars['comparison_data']->value) {
                ?>
    <p class="ty-no-items ty-compare__no-items"><?php 
                echo $_smarty_tpl->__("no_products_selected");
                ?>
</p>
    <div class="buttons-container ty-compare__button-empty">
        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/continue_shopping.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => fn_url($_smarty_tpl->tpl_vars['continue_url']->value), 'but_role' => "text"), 0);
                ?>

    </div>
<?php 
            } else {
                ?>
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    <?php 
                $_smarty_tpl->tpl_vars["return_current_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
                ?>
    <div class="ty-compare">
        <div class="ty-compare__wrapper">
            <table class="ty-compare-products">
                <tr>
                    <td class="ty-compare-products__menu">
                        <ul class="ty-compare-menu">
                            <li class="ty-compare-menu__item"><?php 
                if ($_smarty_tpl->tpl_vars['action']->value != "show_all") {
                    ?>
<a class="ty-compare-menu__a" href="<?php 
                    echo htmlspecialchars(fn_url("product_features.compare.show_all"), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->__("all_features");
                    ?>
</a><?php 
                } else {
                    ?>
<span class="ty-compare-menu__elem"><?php 
                    echo $_smarty_tpl->__("all_features");
                    ?>
</span><?php 
                }
                ?>
</li>
                            <li class="ty-compare-menu__item"><?php 
                if ($_smarty_tpl->tpl_vars['action']->value != "similar_only") {
                    ?>
<a class="ty-compare-menu__a" href="<?php 
                    echo htmlspecialchars(fn_url("product_features.compare.similar_only"), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->__("similar_only");
                    ?>
</a><?php 
                } else {
                    ?>
<span class="ty-compare-menu__elem"><?php 
                    echo $_smarty_tpl->__("similar_only");
                    ?>
</span><?php 
                }
                ?>
</li>
                            <li class="ty-compare-menu__item"><?php 
                if ($_smarty_tpl->tpl_vars['action']->value != "different_only") {
                    ?>
<a class="ty-compare-menu__a" href="<?php 
                    echo htmlspecialchars(fn_url("product_features.compare.different_only"), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->__("different_only");
                    ?>
</a><?php 
                } else {
                    ?>
<span class="ty-compare-menu__elem"><?php 
                    echo $_smarty_tpl->__("different_only");
                    ?>
</span><?php 
                }
                ?>
</li>
                        </ul>
                    </td>
                    <?php 
                $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['product']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['comparison_data']->value['products'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
                    $_smarty_tpl->tpl_vars['product']->_loop = true;
                    ?>
                    <td class="ty-compare-products__product">
                        <div class="ty-compare-products__item">
                            <div class="ty-compare-products__delete"><a href="<?php 
                    echo htmlspecialchars(fn_url("product_features.delete_product?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['return_current_url']->value), ENT_QUOTES, 'UTF-8');
                    ?>
" class="ty-remove"  title="<?php 
                    echo $_smarty_tpl->__("remove");
                    ?>
"><i class="ty-remove__icon ty-icon-cancel-circle"></i><span class="ty-remove__txt"><?php 
                    echo $_smarty_tpl->__("remove");
                    ?>
</span></a></div>
                            <div class="ty-compare-products__img"><a href="<?php 
                    echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_lists_thumbnail_width'], 'obj_id' => $_smarty_tpl->tpl_vars['product']->value['product_id'], 'images' => $_smarty_tpl->tpl_vars['product']->value['main_pair'], 'no_ids' => true), 0);
                    ?>
</a></div>
                        </div>

                        <div class="ty-compare-products__item">
                            <a href="<?php 
                    echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['product'];
                    ?>
</a>
                        </div>

                        <?php 
                    $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                    ?>
                        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_old_price' => true, 'show_price_values' => true, 'show_price' => true, 'show_clean_price' => true), 0);
                    ?>

                        <div class="ty-compare-products__item">
                            

                            <?php 
                    $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                            <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                    ?>


                            <?php 
                    $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                            <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value];
                    ?>

                        </div>

                        
                    </td>
                    <?php 
                }
                ?>
                </tr>
            </table>
    
            <div class="ty-compare-feature">
                <table class="ty-compare-feature__table">
                <?php 
                $_smarty_tpl->tpl_vars["group_features"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["group_features"]->_loop = false;
                $_smarty_tpl->tpl_vars["group_id"] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['comparison_data']->value['product_features'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["group_features"]->key => $_smarty_tpl->tpl_vars["group_features"]->value) {
                    $_smarty_tpl->tpl_vars["group_features"]->_loop = true;
                    $_smarty_tpl->tpl_vars["group_id"]->value = $_smarty_tpl->tpl_vars["group_features"]->key;
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars["_feature"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["_feature"]->_loop = false;
                    $_smarty_tpl->tpl_vars['id'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['group_features']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["_feature"]->key => $_smarty_tpl->tpl_vars["_feature"]->value) {
                        $_smarty_tpl->tpl_vars["_feature"]->_loop = true;
                        $_smarty_tpl->tpl_vars['id']->value = $_smarty_tpl->tpl_vars["_feature"]->key;
                        ?>
                        <tr class="ty-compare-feature__row">
                            <td class="ty-compare-feature__item ty-compare-sort">
                                <span class="ty-compare-sort__title"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['_feature']->value, ENT_QUOTES, 'UTF-8');
                        if (trim($_smarty_tpl->tpl_vars['comparison_data']->value['product_features_full_description'][$_smarty_tpl->tpl_vars['id']->value])) {
                            echo $_smarty_tpl->getSubTemplate("common/help.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('text' => $_smarty_tpl->tpl_vars['_feature']->value, 'content' => $_smarty_tpl->tpl_vars['comparison_data']->value['product_features_full_description'][$_smarty_tpl->tpl_vars['id']->value], 'id' => $_smarty_tpl->tpl_vars['id']->value, 'show_brackets' => true, 'wysiwyg' => true), 0);
                        }
                        ?>
:</span>
                                    <a href="<?php 
                        echo htmlspecialchars(fn_url("product_features.delete_feature?feature_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['return_current_url']->value), ENT_QUOTES, 'UTF-8');
                        ?>
" class="ty-compare-sort__a ty-icon-cancel-circle" title="<?php 
                        echo $_smarty_tpl->__("remove");
                        ?>
"></a>
                            </td>
                            <?php 
                        $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['product']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['comparison_data']->value['products'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars['product']->_loop = true;
                            ?>
                                <td class="ty-compare-feature__item ty-compare-feature_item_size">

                                <?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['product_features'][$_smarty_tpl->tpl_vars['id']->value]) {
                                ?>
                                    <?php 
                                $_smarty_tpl->tpl_vars["feature"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_features'][$_smarty_tpl->tpl_vars['id']->value], null, 0);
                                ?>
                                <?php 
                            } else {
                                ?>
                                    <?php 
                                $_smarty_tpl->tpl_vars["feature"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_features'][$_smarty_tpl->tpl_vars['group_id']->value]['subfeatures'][$_smarty_tpl->tpl_vars['id']->value], null, 0);
                                ?>
                                <?php 
                            }
                            ?>

                                <?php 
                            if ($_smarty_tpl->tpl_vars['feature']->value['prefix']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['prefix'], ENT_QUOTES, 'UTF-8');
                            }
                            if ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "C") {
                                ?>
<span class="ty-compare-checkbox" title="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['value'], ENT_QUOTES, 'UTF-8');
                                ?>
"><?php 
                                if ($_smarty_tpl->tpl_vars['feature']->value['value'] == "Y") {
                                    ?>
<i class="ty-compare-checkbox__icon ty-icon-ok"></i><?php 
                                }
                                ?>
</span><?php 
                            } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "D") {
                                echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['feature']->value['value_int'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format']), ENT_QUOTES, 'UTF-8');
                            } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "M" && $_smarty_tpl->tpl_vars['feature']->value['variants']) {
                                ?>
<ul class="ty-compare-list"><?php 
                                $_smarty_tpl->tpl_vars["var"] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars["var"]->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['feature']->value['variants'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars["var"]->key => $_smarty_tpl->tpl_vars["var"]->value) {
                                    $_smarty_tpl->tpl_vars["var"]->_loop = true;
                                    if ($_smarty_tpl->tpl_vars['var']->value['selected']) {
                                        ?>
<li class="ty-compare-list__item"><span class="ty-compare-checkbox" title="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant'], ENT_QUOTES, 'UTF-8');
                                        ?>
"><i class="ty-compare-checkbox__icon ty-icon-ok"></i></span><?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant'], ENT_QUOTES, 'UTF-8');
                                        ?>
</li><?php 
                                    }
                                }
                                ?>
</ul><?php 
                            } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "S" || $_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "E") {
                                $_smarty_tpl->tpl_vars["var"] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars["var"]->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['feature']->value['variants'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars["var"]->key => $_smarty_tpl->tpl_vars["var"]->value) {
                                    $_smarty_tpl->tpl_vars["var"]->_loop = true;
                                    if ($_smarty_tpl->tpl_vars['var']->value['selected']) {
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['variant'], ENT_QUOTES, 'UTF-8');
                                    }
                                }
                            } elseif ($_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "N" || $_smarty_tpl->tpl_vars['feature']->value['feature_type'] == "O") {
                                echo htmlspecialchars(($tmp = @floatval($_smarty_tpl->tpl_vars['feature']->value['value_int'])) === null || $tmp === '' ? "-" : $tmp, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['feature']->value['value']) === null || $tmp === '' ? "-" : $tmp, ENT_QUOTES, 'UTF-8');
                            }
                            if ($_smarty_tpl->tpl_vars['feature']->value['suffix']) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['suffix'], ENT_QUOTES, 'UTF-8');
                            }
                            ?>
                            <?php 
                        }
                        ?>
                        </tr>
                    <?php 
                    }
                    ?>
                <?php 
                }
                ?>
                </table>
            </div>
        </div>
    </div>

    <div class="buttons-container ty-compare__buttons">
        <?php 
                $_smarty_tpl->tpl_vars["r_url"] = new Smarty_variable(fn_url(''), null, 0);
                ?>
        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/continue_shopping.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => fn_url($_smarty_tpl->tpl_vars['continue_url']->value), 'but_role' => "text"), 0);
                ?>

        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("clear_list"), 'but_href' => "product_features.clear_list?redirect_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'but_meta' => "ty-btn__tertiary"), 0);
                ?>

    </div>

    <?php 
                if ($_smarty_tpl->tpl_vars['comparison_data']->value['hidden_features']) {
                    ?>
    <?php 
                    echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("add_feature")), 0);
                    ?>

    <form action="<?php 
                    echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
                    ?>
" method="post" name="add_feature_form">
        <input type="hidden" name="redirect_url" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
                    ?>
" />
        <?php 
                    echo smarty_function_html_checkboxes(array('name' => "add_features", 'options' => $_smarty_tpl->tpl_vars['comparison_data']->value['hidden_features'], 'columns' => "4"), $_smarty_tpl);
                    ?>

        <div class="buttons-container ty-mt-s">
            <?php 
                    echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("add"), 'but_name' => "dispatch[product_features.add_feature]"), 0);
                    ?>

        </div>
    </form>
    <?php 
                }
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo $_smarty_tpl->__("compare");
            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();
            }
        }
    }
echo is_array($_tmp = $this->_tpl_vars['param']['dispDatetimeFrom']) ? $this->_run_mod_handler('zend_date_format', true, $_tmp, 'HH:mm:ss') : smarty_modifier_zend_date_format($_tmp, 'HH:mm:ss');
?>
" size="10"maxlength="8">
                ~&nbsp;<input class="datepicker" size="15" type="text" value="<?php 
echo is_array($_tmp = is_array($_tmp = @$this->_tpl_vars['param']['dispDatetimeTo']) ? $this->_run_mod_handler('default', true, $_tmp, time()) : smarty_modifier_default($_tmp, time())) ? $this->_run_mod_handler('zend_date_format', true, $_tmp, 'yyyy-MM-dd') : smarty_modifier_zend_date_format($_tmp, 'yyyy-MM-dd');
?>
" name="disp_date_to"maxlength="10">&nbsp;<input name="disp_time_to" class="time" type="text" value="<?php 
echo is_array($_tmp = $this->_tpl_vars['param']['dispDatetimeTo']) ? $this->_run_mod_handler('zend_date_format', true, $_tmp, 'HH:mm:ss') : smarty_modifier_zend_date_format($_tmp, 'HH:mm:ss');
?>
" size="10"maxlength="8"></td>
        </tr>
        <tr>
            <th>送信タイプ</th>
            <td>
            <?php 
echo smarty_function_html_checkboxes(array('name' => 'mail_reserve_type', 'options' => $this->_tpl_vars['mailReserveType'], 'selected' => $this->_tpl_vars['param']['mail_reserve_type'], 'separator' => "&nbsp;"), $this);
?>

            </td>
        </tr>
        <tr>
            <th>定期メルマガID<br>(カンマ指定で複数可)</th>
            <td>
                <input type="text" name="mailmagazine_regular_id" value="<?php 
echo $this->_tpl_vars['param']['mailmagazine_regular_id'];
?>
" size="50" style="ime-mode: disabled;">
            </td>
        </tr>
        <tr>
            <th>予約メルマガID<br>(カンマ指定で複数可)</th>
        </select>
        <?php 
if ($this->_tpl_vars['item']['groupimage']) {
    ?>
<img src="<?php 
    echo $this->_tpl_vars['item']['groupimage'];
    ?>
" /><?php 
}
?>
        </td>
      </tr>
      <tr>
        <th class="paddingT15">Credit Approval:</th>
        <td class="paddingT15 wordSpacing5"><?php 
echo smarty_function_html_checkboxes(array('name' => "data[trusttype]", 'options' => $this->_tpl_vars['Trusttypes'], 'checked' => $this->_tpl_vars['item']['selected_trusttypeid'], 'separator' => ' '), $this);
?>
</td>
      </tr>
      <tr>
        <th class="paddingT15">Business Hours:</th>
        <td class="paddingT15 wordSpacing5"><input name="data[service_start_date]" id="date1" value="<?php 
echo $this->_tpl_vars['item']['service_start_date'];
?>
" /><span class="btn_calendar" id="calendar-date1"></span><?php 
echo $this->_tpl_vars['_arrive_to'];
?>
<input name="data[service_end_date]" value="<?php 
echo $this->_tpl_vars['item']['service_end_date'];
?>
" id="date2" /><span class="btn_calendar" id="calendar-date2"></span></td>
    <form action="<?php 
echo $this->_tpl_vars['url']['GameOperator_AddGameOperator'];
?>
" method="post">
    <table width="60%" border="0" cellpadding="3">
      <tr>
        <th scope="row">游戏</th>
        <td><?php 
echo smarty_function_html_radios(array('name' => 'game_type', 'options' => $this->_tpl_vars['gameTypeList'], 'separator' => "&nbsp;"), $this);
?>
</td>
      </tr>
      <tr>
        <th scope="row">运营商</th>
        <td><?php 
echo smarty_function_html_checkboxes(array('name' => 'operator_ids', 'options' => $this->_tpl_vars['operatorList'], 'separator' => "&nbsp;"), $this);
?>
</td>
      </tr>
      <tr>
        <th colspan="2" scope="row"><input type="submit" class="btn-blue" value="提交" /></th>
        </tr>
    </table>
	</form>
</fieldset>

<fieldset>
<legend>列表</legend>
<table width="100%" border="0" cellpadding="3">
  <tr>
    <th>Id</th>
示例#12
0
 function entity_checkboxes($params, &$smarty)
 {
     require_once $smarty->_get_plugin_filepath('function', 'html_checkboxes');
     $entities = KTUtil::arrayGet($params, 'entities');
     if (is_null($entities)) {
         $smarty->trigger_error("assign: missing 'entities' parameter");
         return;
     }
     $idmethod = KTUtil::arrayGet($params, 'idmethod', 'getId');
     $method = KTUtil::arrayGet($params, 'method', 'getName');
     $params['values'] = array();
     $params['output'] = array();
     foreach ($entities as $oEntity) {
         $params['values'][] = call_user_func(array(&$oEntity, $idmethod));
         if ($method != "none") {
             $params['output'][] = ' ' . call_user_func(array(&$oEntity, $method));
         } else {
             $params['output'][] = null;
         }
     }
     unset($params['entities']);
     unset($params['idmethod']);
     unset($params['method']);
     return smarty_function_html_checkboxes($params, $smarty);
 }
   compiled from QualityCheck/Index.html */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_radios', 'QualityCheck/Index.html', 4, false), array('function', 'html_checkboxes', 'QualityCheck/Index.html', 5, false), array('modifier', 'truncateutf8', 'QualityCheck/Index.html', 34, false))), $this);
?>
<fieldset>
	<legend>获取工单</legend>
    <form action="<?php 
echo $this->_tpl_vars['url']['QualityCheck_Index'];
?>
" method="post">
    <div><?php 
echo smarty_function_html_radios(array('options' => $this->_tpl_vars['orgs'], 'onclick' => "viewUser(\$(this).val())", 'name' => 'org', 'selected' => $this->_tpl_vars['selectedOrg']), $this);
?>
</div>
    <div id="userList"><?php 
echo smarty_function_html_checkboxes(array('name' => 'users', 'options' => $this->_tpl_vars['selectedUsers'], 'selected' => $this->_tpl_vars['selectedUsersOption']), $this);
?>
</div>
    选择日期:
    <input type="text" class="text" name="start_date" value="<?php 
echo $this->_tpl_vars['selectedTime']['start'];
?>
" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
    至
    <input type="text" class="text" name="end_date" value="<?php 
echo $this->_tpl_vars['selectedTime']['end'];
?>
" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
    抽取数量:<input type="text" class="text" value="10" name="num" />
    <input type="submit" class="btn-blue" value="获取工单" onclick="return confirm('确定要获取工单吗?')" />
    </form>
				<input type="hidden" name="id" value="<?php 
echo $this->_tpl_vars['arrForm']['id']['value'];
?>
" />
				<tr>
					<th>日報作成日</th>                   
					<td><input type="text" id="datepicker" name="report_date" value="<?php 
echo $this->_tpl_vars['arrForm']['report_date']['value'];
?>
" size="5"  ></td>                              
				</tr>
				<tr>
					<p>ルーティン</p>
					<dl>					
						<?php 
echo smarty_function_html_checkboxes(array('name' => 'checked_routing', 'options' => $this->_tpl_vars['arrRoutingContents'], 'checked' => $this->_tpl_vars['arrForm']['checked_routing']['value'], 'separator' => "<br />"), $this);
?>

					</dl>	
				</tr>
				<tr>
					<th>本日の作業</th>                   
					<td>
						<table >
							<tr>
								<th>タスク名</th>
								<th>作業内容</th>
								<th>作業時間</th>
								<th>追加/削除</th>
							</tr>
							
                                        </tr>
                                        <?php 
    if (is_array($_tmp = 'mb_serial_number') ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['displayUserDetail']) : in_array($_tmp, $this->_tpl_vars['displayUserDetail'])) {
        ?>
                                        <tr>
                                            <th>個体識別番号</th>
                                            <td style="text-align: left;">
                                                <?php 
        echo $this->_tpl_vars['userData']['mb_serial_number'];
        ?>
&nbsp;&nbsp;&nbsp;
                                                <?php 
        if ($this->_tpl_vars['userData']['mb_serial_number']) {
            ?>
                                                    <?php 
            echo smarty_function_html_checkboxes(array('name' => 'serial_number_delete', 'options' => $this->_tpl_vars['serialNumberDelete'], 'selected' => is_array($_tmp = @$this->_tpl_vars['value']['serial_number_delete']) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0), 'separator' => "&nbsp;"), $this);
            ?>

                                                <?php 
        }
        ?>
                                            </td>
                                        </tr>
                                        <?php 
    }
    ?>
                                        <?php 
    if (is_array($_tmp = 'mb_device_cd') ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['displayUserDetail']) : in_array($_tmp, $this->_tpl_vars['displayUserDetail'])) {
        ?>
                                        <tr>
                                            <th>MBデバイス</th>
    settype($_from, 'array');
}
if (count($_from)) {
    foreach ($_from as $this->_tpl_vars['list']) {
        ?>
      <tr class="display_service">
        <th nowrap="nowrap" scope="row"><?php 
        echo $this->_tpl_vars['list']['name'];
        ?>
</th>
        <td>
            <?php 
        if ($this->_tpl_vars['list']['user']) {
            ?>
            <?php 
            echo smarty_function_html_checkboxes(array('options' => $this->_tpl_vars['list']['user'], 'name' => 'service_ids', 'selected' => $this->_tpl_vars['selectedServiceIds']), $this);
            ?>

            <?php 
        } else {
            ?>
            <font color="#666666"><?php 
            echo is_array($_tmp = '41AFB9772E880242FF7A37E95570630A') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
            ?>
</font>
            <?php 
        }
        ?>
        </td>
      </tr>
      <?php 
$_from = $this->_tpl_vars['addNav'];
if (!is_array($_from) && !is_object($_from)) {
    settype($_from, 'array');
}
if (count($_from)) {
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']) {
        ?>
            <dd><?php 
        echo $this->_tpl_vars['value']->name;
        ?>
</dd>
            <?php 
        if ($this->_tpl_vars['value']->child) {
            ?>
                <dd><?php 
            echo smarty_function_html_checkboxes(array('selected' => $this->_tpl_vars['OneAttr'][0]->nav, 'name' => 'nav', 'options' => $this->_tpl_vars['value']->child), $this);
            ?>
</dd>
            <?php 
        }
        ?>
            <?php 
    }
} else {
    ?>
            <dd>没有任何类别,请先<a href="?a=nav&m=add">添加</a>类别</dd>
        <?php 
}
unset($_from);
?>
        <dd><input type="submit" name="send" onclick="return addUpdate();" value="修改自定义属性" class="submit" /></dd>
                <div id="keyword_access_key" style="display:none;">
                    <input type="text" name="search_information_key" value="<?php 
echo $this->_tpl_vars['param']['search_information_key'];
?>
" size="20">
                </div>
                -->
                <div id="keyword" style="display:none;">
                    <input type="text" name="search_string" value="<?php 
echo $this->_tpl_vars['param']['search_string'];
?>
" size="30">&nbsp;
                </div>
                <div id="keyword_html_text" style="display:none;">
                    <?php 
echo smarty_function_html_checkboxes(array('name' => 'search_html_text_type', 'options' => $this->_tpl_vars['searchHtmlTextTypeAry'], 'selected' => is_array($_tmp = @$this->_tpl_vars['param']['search_html_text_type']) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['defaultHtmlTextType']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['defaultHtmlTextType']), 'separator' => "&nbsp;"), $this);
?>
<br>
                    <input type="text" name="search_html_text" value="<?php 
echo $this->_tpl_vars['param']['search_html_text'];
?>
" size="80">
                </div>
            </td>
        </tr>
        <tr>
            <td style="text-align:center;" colspan="2">
                <input type="hidden" name="sort_id" value="<?php 
echo $this->_tpl_vars['param']['sort_id'];
?>
" />
<tr>
<td>SecResponseBodyLimitAction</td>
<td>
<?php 
echo smarty_function_html_options(array('class' => 'inputbox', 'name' => 'SecResponseBodyLimitAction', 'options' => $this->_tpl_vars['SecResponseBodyLimitAction'], 'selected' => $this->_tpl_vars['resp_body_limit_action']), $this);
?>

</td>
</tr>

<tr>
<td>SecResponseBodyMimeType</td>
<td>
<?php 
echo smarty_function_html_checkboxes(array('class' => 'inputbox', 'name' => 'SecResponseBodyMimeType', 'options' => $this->_tpl_vars['SecResponseBodyMimeType'], 'selected' => $this->_tpl_vars['resp_body_mime_type'], 'separator' => ' '), $this);
?>

</td>
</tr>


<tr>
<td>SecRuleInheritance</td>
<td>
<?php 
echo smarty_function_html_options(array('class' => 'inputbox', 'name' => 'SecRuleInheritance', 'options' => $this->_tpl_vars['SecRuleInheritance'], 'selected' => $this->_tpl_vars['rule_inheritance']), $this);
?>

</td>
</tr>
示例#20
0
function smarty_function_input($params, &$smarty)
{
    if (isset($params['attributes'])) {
        $params = $params['attributes'];
    }
    $params['class'] = $params['class'] ? $params['class'] . ' _x_ipt' : '_x_ipt' . ' ' . $params['type'];
    $params['vtype'] = isset($params['vtype']) ? $params['vtype'] : $params['type'];
    if (isset($params['default']) && !$params['value']) {
        $params['value'] = $params['default'];
    }
    switch ($params['type']) {
        case 'text':
            return buildTag($params, 'input autocomplete="off"');
            break;
        case 'password':
            return buildTag($params, 'input autocomplete="off"');
            break;
        case 'search':
            return buildTag($params, 'input autocomplete="off"');
            break;
        case 'date':
            if (!$params['id']) {
                $domid = 'mce_' . substr(md5(rand(0, time())), 0, 6);
                $params['id'] = $domid;
            } else {
                $domid = $params['id'];
            }
            $params['value'] = mydate('Y-m-d', $params['value']);
            $params['type'] = 'text';
            return buildTag($params, 'input autocomplete="off"') . '<script>$("' . $domid . '").makeCalable();</script>';
            break;
        case 'time':
            $params['value'] = mydate('Y-m-d H:i', $params['value']);
            return buildTag($params, 'input autocomplete="off"');
            break;
        case 'file':
            if ($params['backend'] == 'public') {
                if (!$GLOBALS['storager']) {
                    $system =& $GLOBALS['system'];
                    $GLOBALS['storager'] = $system->loadModel('system/storager');
                }
                $storager =& $GLOBALS['storager'];
                $url = $storager->getUrl($params['value']);
                $img = array('png' => 1, 'gif' => 1, 'jpg' => 1, 'jpeg' => 1);
                if ($img[strtolower(substr($url, strrpos($url, '.') + 1))]) {
                    $html = '<img src="' . $url . '" />';
                } else {
                    $html = $url;
                }
            } else {
                $html = '';
            }
            return buildTag($params, 'input autocomplete="off"') . $html;
            break;
        case 'bool':
            $params['type'] = 'checkbox';
            if ($value == 'true') {
                $params['checked'] = 'checked';
            }
            $params['value'] = "true";
            return buildTag($params, 'input');
            break;
        case 'combox':
            return buildTag($params, 'input autocomplete="off"');
            break;
        case 'textarea':
            $value = $params['value'];
            if ($params['width']) {
                $params['style'] .= ';width:' . $params['width'];
                unset($params['width']);
            }
            if ($params['height']) {
                $params['style'] .= ';height:' . $params['height'];
                unset($params['height']);
            }
            unset($params['value']);
            return buildTag($params, 'textarea', false) . htmlspecialchars($value) . '</textarea>';
            break;
        case 'checkbox':
            $params['selected'] = $params['value'];
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_checkboxes', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return smarty_function_html_checkboxes($params, $smarty);
            break;
        case 'radio':
            $params['selected'] = $params['value'];
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_radios', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return smarty_function_html_radios($params, $smarty);
            break;
        case 'select':
            if (isset($params['rows'])) {
                foreach ($params['rows'] as $item) {
                    $params['options'][$item[$params['valueColumn']]] = $item[$params['labelColumn']];
                }
            }
            if ($params['nulloption']) {
                $params['options'] = array_merge2(array('' => __('- 请选择 -')), $params['options']);
            }
            $params['selected'] = $params['value'];
            $t = buildTag($params, 'select', false);
            unset($params['name']);
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return $t . smarty_function_html_options($params, $smarty) . '</select>';
            break;
        case 'color':
            $params['selected'] = $params['value'] == '' ? '#000000' : $params['value'];
            $params['style'] = 'width:50px;background-color:' . $params['selected'];
            $params['onChange'] = "this.style.backgroundColor=this.options[this.selectedIndex].value;";
            $t = buildTag($params, 'select', false);
            unset($params['name']);
            $params['color'] = array('#00ffff' => '&nbsp;', '#000000' => '&nbsp;', '#ff00ff' => '&nbsp;', '#800000' => '&nbsp;', '#008000' => '&nbsp;', '#00ff00' => '&nbsp;', '#800000' => '&nbsp;', '#000080' => '&nbsp;', '#808000' => '&nbsp;', '#800080' => '&nbsp;', '#ff0000' => '&nbsp;', '#c0c0c0' => '&nbsp;', '#008080' => '&nbsp;', '#ffffff' => '&nbsp;', '#ffff00' => '&nbsp;', '#0000ff' => '&nbsp;');
            return $t . _build_color_options($params) . '</select>';
            break;
        case 'region':
            $SYSTEM =& $GLOBALS['system'];
            $loc =& $SYSTEM->loadModel('system/local');
            if ($params['required'] == 'true') {
                $req = ' vtype="area"';
            } else {
                $req = ' vtype=' . $params['vtype'];
            }
            if (!$params['value']) {
                $package = $params['package'] ? $params['package'] : $SYSTEM->getConf('system.location');
                return '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input ' . ($params['id'] ? ' id="' . $params['id'] . '"  ' : '') . ' type="hidden" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params) . '</span>';
            } else {
                list($package, $regions, $region_id) = explode(':', $params['value']);
                if (!is_numeric($region_id)) {
                    if (!$package) {
                        $package = $SYSTEM->getConf('system.location');
                    }
                    return '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params) . '</span>';
                } else {
                    $arr_regions = array();
                    $ret = '';
                    while ($region_id && ($region = $loc->instance($region_id, 'region_id,local_name,p_region_id'))) {
                        array_unshift($arr_regions, $region);
                        if ($region_id = $region['p_region_id']) {
                            $notice = "-";
                            $data = $loc->get_area_select($region['p_region_id'], $params, $region['region_id']);
                            if (!$data) {
                                $notice = "";
                            }
                            $ret = '<span class="x-region-child">&nbsp;' . $notice . '&nbsp' . $loc->get_area_select($region['p_region_id'], $params, $region['region_id']) . $ret . '</span>';
                        } else {
                            $ret = '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" value="' . $params['value'] . '" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params, $region['region_id']) . $ret . '</span>';
                        }
                    }
                    if (!$ret) {
                        $ret = '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" value="" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params, $region['region_id']) . '</span>';
                    }
                    return $ret;
                }
            }
            break;
        case 'fontset':
            $params['options'] = array('0' => '', '1' => '粗体', '2' => '斜体', '3' => '中线');
            $params['selected'] = $params['value'];
            $t = buildTag($params, 'select', false);
            unset($params['name']);
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return $t . smarty_function_html_options($params, $smarty) . '</select>';
            //return '<select id="'.$params['name'].'" name="'.$params['name'].'">'._comset_set($params['value'],$params['font']).'</select>';
            break;
        case 'arrow':
            $params['selected'] = $params['value'];
            $params['options'] = array('arrow_1.gif' => '箭头1', 'arrow_2.gif' => '箭头2', 'arrow_3.gif' => '箭头3', 'arrow_4.gif' => '箭头4', 'arrow_5.gif' => '箭头5', 6 => '自定义');
            //return '<select id="'.$params['name'].'" name="'.$params['name'].'" onClick="choosePic()">'._comset_set($params['value'],$params['arrow']).'</select>';
            $t = buildTag($params, 'select', false);
            unset($params['name']);
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return $t . smarty_function_html_options($params, $smarty) . '</select>';
            break;
        case 'com_select':
            $params['from'] = intval($params['from']);
            $params['options'] = array();
            $params['to'] = intval($params['to']);
            for ($i = $params['from']; $i <= $params['to']; $i++) {
                array_push($params['options'], $i);
            }
            $params['selected'] = $params['value'];
            $t = buildTag($params, 'select', false);
            unset($params['name']);
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return $t . smarty_function_html_options($params, $smarty) . '</select>';
            break;
        default:
            return buildTag($params, 'input autocomplete="off"');
    }
}
    function content_55ccf1b728aa17_68233506($_smarty_tpl)
    {
        if (!is_callable('smarty_function_html_checkboxes')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.html_checkboxes.php';
        }
        if (!is_callable('smarty_function_include_ext')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.include_ext.php';
        }
        fn_preload_lang_vars(array('filling'));
        if ($_smarty_tpl->tpl_vars['option']->value['force_open']) {
            ?>
<script type="text/javascript">
Tygh.$(document).ready(function() {
    Tygh.$('#additional_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['set_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
').show();
});
</script>
<?php 
        }
        ?>

<?php 
        if (!$_smarty_tpl->tpl_vars['option']->value['remove_indent']) {
            ?>
<div class="control-group">
<?php 
            if (!$_smarty_tpl->tpl_vars['option']->value['hide_label']) {
                ?>
    <label for="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
" class="control-label <?php 
                if ($_smarty_tpl->tpl_vars['option']->value['required']) {
                    ?>
 cm-required<?php 
                }
                ?>
"><?php 
                if ($_smarty_tpl->tpl_vars['option']->value['option_name']) {
                    echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['option']->value['option_name']);
                } else {
                    echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['name']->value);
                }
                if ($_smarty_tpl->tpl_vars['option']->value['tooltip']) {
                    echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => $_smarty_tpl->tpl_vars['option']->value['tooltip']), 0);
                }
                ?>
</label>
<?php 
            }
            ?>
<div class="controls <?php 
            if ($_smarty_tpl->tpl_vars['editable']->value) {
                ?>
cm-no-hide-input<?php 
            }
            ?>
">
<?php 
        }
        ?>


<?php 
        if ($_smarty_tpl->tpl_vars['option']->value['type'] == "checkbox") {
            ?>
    <input type="hidden" name="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="N" />
    <input type="checkbox" name="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="Y" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['value']->value && $_smarty_tpl->tpl_vars['value']->value == "Y" || !$_smarty_tpl->tpl_vars['value']->value && $_smarty_tpl->tpl_vars['option']->value['default_value'] == "Y") {
                ?>
checked="checked"<?php 
            }
            ?>
 />

<?php 
        } elseif ($_smarty_tpl->tpl_vars['option']->value['type'] == "selectbox") {
            ?>
    <?php 
            $_smarty_tpl->tpl_vars["value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['value']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['option']->value['default_value'] : $tmp, null, 0);
            ?>

    <select id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" name="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['option']->value['values_settings']) {
                ?>
class="cm-reload-form"<?php 
            }
            ?>
>
    <?php 
            $_smarty_tpl->tpl_vars["v"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["v"]->_loop = false;
            $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['option']->value['values'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["v"]->key => $_smarty_tpl->tpl_vars["v"]->value) {
                $_smarty_tpl->tpl_vars["v"]->_loop = true;
                $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars["v"]->key;
                ?>
        <option value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8');
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['value']->value == $_smarty_tpl->tpl_vars['k']->value) {
                    ?>
selected="selected"<?php 
                }
                ?>
><?php 
                if ($_smarty_tpl->tpl_vars['option']->value['no_lang']) {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8');
                } else {
                    echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['v']->value);
                }
                ?>
</option>
    <?php 
            }
            ?>
    </select>

    <?php 
            $_smarty_tpl->tpl_vars["values_settings"] = new Smarty_variable($_smarty_tpl->tpl_vars['option']->value['values_settings'][$_smarty_tpl->tpl_vars['value']->value], null, 0);
            ?>

    <?php 
            if ($_smarty_tpl->tpl_vars['values_settings']->value) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars['setting_data'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['setting_data']->_loop = false;
                $_smarty_tpl->tpl_vars['setting_name'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['values_settings']->value['settings'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['setting_data']->key => $_smarty_tpl->tpl_vars['setting_data']->value) {
                    $_smarty_tpl->tpl_vars['setting_data']->_loop = true;
                    $_smarty_tpl->tpl_vars['setting_name']->value = $_smarty_tpl->tpl_vars['setting_data']->key;
                    ?>
            <?php 
                    echo $_smarty_tpl->getSubTemplate("views/block_manager/components/setting_element.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('option' => $_smarty_tpl->tpl_vars['setting_data']->value, 'name' => $_smarty_tpl->tpl_vars['setting_name']->value, 'block' => $_smarty_tpl->tpl_vars['block']->value, 'html_id' => "block_" . (string) $_smarty_tpl->tpl_vars['html_id']->value . "_properties_" . (string) $_smarty_tpl->tpl_vars['name']->value . "_" . (string) $_smarty_tpl->tpl_vars['setting_name']->value, 'html_name' => "block_data[properties][" . (string) $_smarty_tpl->tpl_vars['name']->value . "][" . (string) $_smarty_tpl->tpl_vars['value']->value . "][" . (string) $_smarty_tpl->tpl_vars['setting_name']->value . "]", 'editable' => $_smarty_tpl->tpl_vars['editable']->value, 'value' => $_smarty_tpl->tpl_vars['block']->value['properties'][$_smarty_tpl->tpl_vars['name']->value][$_smarty_tpl->tpl_vars['value']->value][$_smarty_tpl->tpl_vars['setting_name']->value]), 0);
                    ?>

        <?php 
                }
                ?>
    <?php 
            }
        } elseif ($_smarty_tpl->tpl_vars['option']->value['type'] == "input" || $_smarty_tpl->tpl_vars['option']->value['type'] == "input_long") {
            ?>
    <input type="text" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="input-medium" name="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            if ($_smarty_tpl->tpl_vars['value']->value) {
                echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8');
            } else {
                echo htmlspecialchars($_smarty_tpl->tpl_vars['option']->value['default_value'], ENT_QUOTES, 'UTF-8');
            }
            ?>
" />

<?php 
        } elseif ($_smarty_tpl->tpl_vars['option']->value['type'] == "multiple_checkboxes") {
            ?>

    <?php 
            echo smarty_function_html_checkboxes(array('name' => $_smarty_tpl->tpl_vars['html_name']->value, 'options' => $_smarty_tpl->tpl_vars['option']->value['values'], 'columns' => 4, 'selected' => $_smarty_tpl->tpl_vars['value']->value), $_smarty_tpl);
            ?>

<?php 
        } elseif ($_smarty_tpl->tpl_vars['option']->value['type'] == "text" || $_smarty_tpl->tpl_vars['option']->value['type'] == "simple_text") {
            ?>
    <textarea id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" name="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" cols="55" rows="8" class="<?php 
            if ($_smarty_tpl->tpl_vars['option']->value['type'] == "text") {
                ?>
cm-wysiwyg<?php 
            }
            ?>
 span9"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8');
            ?>
</textarea>
    <?php 
            if ($_smarty_tpl->tpl_vars['option']->value['type'] == "text") {
                ?>
        
        <!--processForm-->
    <?php 
            }
        } elseif ($_smarty_tpl->tpl_vars['option']->value['type'] == "picker") {
            ?>
 
    <?php 
            $_smarty_tpl->tpl_vars["picker_param_value"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["picker_param_value"]->_loop = false;
            $_smarty_tpl->tpl_vars["picker_param_key"] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['option']->value['picker_params'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["picker_param_value"]->key => $_smarty_tpl->tpl_vars["picker_param_value"]->value) {
                $_smarty_tpl->tpl_vars["picker_param_value"]->_loop = true;
                $_smarty_tpl->tpl_vars["picker_param_key"]->value = $_smarty_tpl->tpl_vars["picker_param_value"]->key;
                ?>
        <?php 
                $_smarty_tpl->tpl_vars[$_smarty_tpl->tpl_vars['picker_param_key']->value] = new Smarty_variable($_smarty_tpl->tpl_vars['picker_param_value']->value, null, 0);
                ?>
    <?php 
            }
            ?>

    <?php 
            echo smarty_function_include_ext(array('file' => $_smarty_tpl->tpl_vars['option']->value['picker'], 'checkbox_name' => "block_items", 'data_id' => "objects_" . (string) $_smarty_tpl->tpl_vars['item']->value['chain_id'] . "_", 'input_name' => (string) $_smarty_tpl->tpl_vars['html_name']->value, 'item_ids' => $_smarty_tpl->tpl_vars['value']->value, 'params_array' => $_smarty_tpl->tpl_vars['option']->value['picker_params']), $_smarty_tpl);
            ?>

<?php 
        } elseif ($_smarty_tpl->tpl_vars['option']->value['type'] == "enum") {
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['option']->value['fillings']) {
                ?>
        <div class="control-group <?php 
                if ($_smarty_tpl->tpl_vars['editable']->value) {
                    ?>
cm-no-hide-input<?php 
                }
                ?>
">
            <label class="control-label" for="block_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
_filling"><?php 
                echo $_smarty_tpl->__("filling");
                ?>
</label>
            <div class="controls">
            <select id="block_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
_filling" name="block_data[content][<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8');
                ?>
][filling]" class="cm-reload-form">
                <?php 
                $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['v']->_loop = false;
                $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['option']->value['fillings'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
                    $_smarty_tpl->tpl_vars['v']->_loop = true;
                    $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
                    ?>
                    <option value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['block']->value['content'][$_smarty_tpl->tpl_vars['name']->value]['filling'] == $_smarty_tpl->tpl_vars['k']->value) {
                        ?>
selected="selected"<?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['k']->value);
                    ?>
</option>
                <?php 
                }
                ?>
            </select>
            <?php 
                $_smarty_tpl->tpl_vars["filling"] = new Smarty_variable($_smarty_tpl->tpl_vars['block']->value['content'][$_smarty_tpl->tpl_vars['name']->value]['filling'], null, 0);
                ?>
            </div>
        </div>
        <?php 
                if ($_smarty_tpl->tpl_vars['filling']->value == 'manually') {
                    ?>
            <div class="control-group <?php 
                    if ($_smarty_tpl->tpl_vars['editable']->value) {
                        ?>
cm-no-hide-input<?php 
                    }
                    ?>
">
                <?php 
                    echo smarty_function_include_ext(array('file' => $_smarty_tpl->tpl_vars['option']->value['fillings']['manually']['picker'], 'checkbox_name' => "block_items", 'data_id' => "objects_" . (string) $_smarty_tpl->tpl_vars['item']->value['chain_id'] . "_", 'input_name' => (string) $_smarty_tpl->tpl_vars['html_name']->value . "[item_ids]", 'item_ids' => $_smarty_tpl->tpl_vars['block']->value['content'][$_smarty_tpl->tpl_vars['name']->value]['item_ids'], 'params_array' => $_smarty_tpl->tpl_vars['option']->value['fillings']['manually']['picker_params'], 'placement' => "right"), $_smarty_tpl);
                    ?>

            </div>
        <?php 
                }
                ?>
        <?php 
                if (is_array($_smarty_tpl->tpl_vars['option']->value['fillings'][$_smarty_tpl->tpl_vars['filling']->value]['settings'])) {
                    ?>
        
            <?php 
                    $_smarty_tpl->tpl_vars['setting_data'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['setting_data']->_loop = false;
                    $_smarty_tpl->tpl_vars['setting_name'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['option']->value['fillings'][$_smarty_tpl->tpl_vars['filling']->value]['settings'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['setting_data']->key => $_smarty_tpl->tpl_vars['setting_data']->value) {
                        $_smarty_tpl->tpl_vars['setting_data']->_loop = true;
                        $_smarty_tpl->tpl_vars['setting_name']->value = $_smarty_tpl->tpl_vars['setting_data']->key;
                        ?>
                <?php 
                        echo $_smarty_tpl->getSubTemplate("views/block_manager/components/setting_element.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('option' => $_smarty_tpl->tpl_vars['setting_data']->value, 'name' => $_smarty_tpl->tpl_vars['setting_name']->value, 'block' => $_smarty_tpl->tpl_vars['block']->value, 'html_id' => "block_" . (string) $_smarty_tpl->tpl_vars['html_id']->value . "_properties_" . (string) $_smarty_tpl->tpl_vars['name']->value . "_" . (string) $_smarty_tpl->tpl_vars['setting_name']->value, 'html_name' => "block_data[content][" . (string) $_smarty_tpl->tpl_vars['name']->value . "][" . (string) $_smarty_tpl->tpl_vars['setting_name']->value . "]", 'editable' => $_smarty_tpl->tpl_vars['editable']->value, 'value' => $_smarty_tpl->tpl_vars['block']->value['content'][$_smarty_tpl->tpl_vars['name']->value][$_smarty_tpl->tpl_vars['setting_name']->value]), 0);
                        ?>

            <?php 
                    }
                    ?>
        <?php 
                }
                ?>
    <?php 
            }
        } elseif ($_smarty_tpl->tpl_vars['option']->value['type'] == "template") {
            ?>
 
    <?php 
            echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['option']->value['template'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['value']->value), 0);
            ?>

<?php 
        }
        ?>

<?php 
        if (!$_smarty_tpl->tpl_vars['option']->value['remove_indent']) {
            ?>
</div></div>
<?php 
        }
    }
            </td>
        </tr>
        <tr>
            <th>媒体コード<br>(カンマ区切りで複数可)<br>[% => 任意の数の文字]<br>[_ =>  1 つの文字]</th>
            <td>
                <input type="text" id="media_cd" name="media_cd" value="<?php 
echo $this->_tpl_vars['value']['media_cd'];
?>
" size="20" style="ime-mode:disabled;">
            </td>
        </tr>
        <tr>
            <th>登録入口カテゴリー</th>
            <td style="text-align: left;">
                <?php 
echo smarty_function_html_checkboxes(array('name' => 'regist_page_category_id', 'options' => $this->_tpl_vars['registPageCategoryList'], 'selected' => $this->_tpl_vars['value']['regist_page_category_id'], 'separator' => "&nbsp;"), $this);
?>

            </td>
        </tr>
        <tr>
        <th>登録入口ID<br>(カンマ区切りで複数可)</th>
            <td style="text-align: left;">
                <div>
                    対象を抽出:<input type="text" id="regist_page_id" name="regist_page_id" value="<?php 
echo $this->_tpl_vars['value']['regist_page_id'];
?>
" size="20" style="ime-mode:disabled;">
                </div>
                <div>
                    以外を抽出:<input type="text" id="except_regist_page_id" name="except_regist_page_id" value="<?php 
            <td><input type="text" name="site_name" value="<?php 
echo $this->_tpl_vars['param']['site_name'];
?>
" size="30"></td>
        </tr>
        <tr>
            <th>登録ステータス</th>
            <td><?php 
echo smarty_function_html_radios(array('label_ids' => true, 'name' => 'is_pre_regist', 'options' => $this->_tpl_vars['isPreRegist'], 'selected' => is_array($_tmp = @$this->_tpl_vars['param']['is_pre_regist']) ? $this->_run_mod_handler('default', true, $_tmp, 1) : smarty_modifier_default($_tmp, 1), 'separator' => "&nbsp;"), $this);
?>
</td>
        </tr>
        <tr>
            <th>送信設定</th>
            <td><?php 
echo smarty_function_html_checkboxes(array('name' => 'is_success_only', 'options' => $this->_tpl_vars['isSuccessOnly'], 'selected' => $this->_tpl_vars['param']['is_success_only'], 'separator' => "&nbsp;"), $this);
?>
</td>
        </tr>
        <tr>
            <th>戻し先URL(任意)</th>
            <td><input class="path" type="text" name="path" value="<?php 
echo $this->_tpl_vars['param']['path'];
?>
" style="ime-mode:disabled" size="40"></td>
        </tr>
        <tr>
            <th>送信種別</th>
            <td><?php 
echo smarty_function_html_radios(array('label_ids' => true, 'name' => 'send_type', 'options' => $this->_tpl_vars['sendType'], 'selected' => is_array($_tmp = @$this->_tpl_vars['param']['send_type']) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0), 'separator' => "&nbsp;"), $this);
?>
示例#24
0
		<?php 
if ($this->_tpl_vars['OneNav']) {
    ?>
<dd>主类名称: <?php 
    echo $this->_tpl_vars['OneNav'][0]->name;
    ?>
</dd><?php 
}
?>
		<dd>名    称:<input type="text" name="name" id="name" class="text" onblur="checkName();"/> ( * 2-4位之间 )</dd>
		<dd><span class="middle">简    介:</span><textarea name="info"></textarea><span class="middle">(* 200位以内)</span></dd>
		<?php 
if ($this->_tpl_vars['OneNav']) {
    ?>
<dd>关联品牌:<?php 
    echo smarty_function_html_checkboxes(array('options' => $this->_tpl_vars['AllBrand'], 'name' => 'brand'), $this);
    ?>
</dd><?php 
}
?>
		<dd>价格区间 <?php 
echo smarty_function_html_checkboxes(array('options' => $this->_tpl_vars['AllPrice'], 'name' => 'price'), $this);
?>
</dd>
		<dd><input type="submit" name="send" onclick="return addNav();" value="新增导航" class="submit" /></dd>
	</dl>
</form>


</body>
</html>
            ?>
:</p>
<p><?php 
            echo smarty_function_combobox(array('name' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['field'], 'options' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['options'], 'selected' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['value'], 'size' => 35), $this);
            ?>
</p>
<?php 
        } elseif ($this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['type'] == 'mselect') {
            ?>
<p><?php 
            echo $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['name'];
            ?>
:</p>
<div class="box">
<?php 
            echo smarty_function_html_checkboxes(array('name' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['field'], 'options' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['options'], 'checked' => $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['value'], 'separator' => ", "), $this);
            ?>

</div>
<?php 
        } elseif ($this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['type'] == 'image') {
            ?>
<p><?php 
            echo $this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['name'];
            ?>
:</p>
<?php 
            if ($this->_tpl_vars['form']['fields'][$this->_sections['i']['index']]['value'] > 0) {
                ?>
<table width="100%" class="invisiblegrid">
<tr>
    function content_55d5c52c18b449_91220489($_smarty_tpl)
    {
        if (!is_callable('smarty_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_html_checkboxes')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.html_checkboxes.php';
        }
        fn_preload_lang_vars(array('search', 'customer', 'email', 'issuer', 'total', 'period', 'order_status', 'tax_exempt', 'yes', 'no', 'order_id', 'has_credit_memo', 'credit_memo_id', 'has_invoice', 'invoice_id', 'new_orders', 'shipping', 'payment_methods', 'ordered_products'));
        if ($_smarty_tpl->tpl_vars['in_popup']->value) {
            ?>
    <div class="adv-search">
    <div class="group">
<?php 
        } else {
            ?>
    <div class="sidebar-row">
    <h6><?php 
            echo $_smarty_tpl->__("search");
            ?>
</h6>
<?php 
        }
        ?>

<form action="<?php 
        echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
        ?>
" name="orders_search_form" method="get" class="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['form_meta']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
<?php 
        $_smarty_tpl->_capture_stack[0][] = array("simple_search", null, null);
        ob_start();
        ?>

<?php 
        if ($_REQUEST['redirect_url']) {
            ?>
<input type="hidden" name="redirect_url" value="<?php 
            echo htmlspecialchars($_REQUEST['redirect_url'], ENT_QUOTES, 'UTF-8');
            ?>
" />
<?php 
        }
        if ($_smarty_tpl->tpl_vars['selected_section']->value != '') {
            ?>
<input type="hidden" id="selected_section" name="selected_section" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_section']->value, ENT_QUOTES, 'UTF-8');
            ?>
" />
<?php 
        }
        ?>

<?php 
        echo $_smarty_tpl->tpl_vars['extra']->value;
        ?>


<div class="sidebar-field">
    <label for="cname"><?php 
        echo $_smarty_tpl->__("customer");
        ?>
</label>
    <input type="text" name="cname" id="cname" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['cname'], ENT_QUOTES, 'UTF-8');
        ?>
" size="30" />
</div>

<div class="sidebar-field">
    <label for="email"><?php 
        echo $_smarty_tpl->__("email");
        ?>
</label>
    <input type="text" name="email" id="email" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['email'], ENT_QUOTES, 'UTF-8');
        ?>
" size="30"/>
</div>

<div class="sidebar-field">
    <label for="issuer"><?php 
        echo $_smarty_tpl->__("issuer");
        ?>
</label>
    <input type="text" name="issuer" id="issuer" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['issuer'], ENT_QUOTES, 'UTF-8');
        ?>
" size="30" />
</div>

<div class="sidebar-field">
    <label for="total_from"><?php 
        echo $_smarty_tpl->__("total");
        ?>
&nbsp;(<?php 
        echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol'];
        ?>
)</label>
    <input type="text" class="input-small" name="total_from" id="total_from" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['total_from'], ENT_QUOTES, 'UTF-8');
        ?>
" size="3" /> - <input type="text" class="input-small" name="total_to" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['total_to'], ENT_QUOTES, 'UTF-8');
        ?>
" size="3" />
</div>

<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("advanced_search", null, null);
        ob_start();
        ?>

<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:advanced_search"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "orders:advanced_search"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


<div class="group form-horizontal">
<div class="control-group">
    <label class="control-label"><?php 
            echo $_smarty_tpl->__("period");
            ?>
</label>
    <div class="controls">
        <?php 
            echo $_smarty_tpl->getSubTemplate("common/period_selector.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('period' => $_smarty_tpl->tpl_vars['search']->value['period'], 'form_name' => "orders_search_form"), 0);
            ?>

    </div>
</div>
</div>

<div class="group">
<?php 
            if ($_smarty_tpl->tpl_vars['incompleted_view']->value) {
                ?>
    <input type="hidden" name="status" value="<?php 
                echo htmlspecialchars(@constant('STATUS_INCOMPLETED_ORDER'), ENT_QUOTES, 'UTF-8');
                ?>
" />
<?php 
            } else {
                ?>
<div class="control-group">
    <label class="control-label"><?php 
                echo $_smarty_tpl->__("order_status");
                ?>
</label>
    <div class="controls checkbox-list">
        <?php 
                echo $_smarty_tpl->getSubTemplate("common/status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('status' => $_smarty_tpl->tpl_vars['search']->value['status'], 'display' => "checkboxes", 'name' => "status", 'columns' => 5), 0);
                ?>

    </div>
</div>
<?php 
            }
            ?>
</div>

<div class="row-fluid">
    <div class="group span6 form-horizontal">
    <div class="control-group">
        <label class="control-label" for="tax_exempt"><?php 
            echo $_smarty_tpl->__("tax_exempt");
            ?>
</label>
        <div class="controls">
        <select name="tax_exempt" id="tax_exempt">
            <option value="">--</option>
            <option value="Y" <?php 
            if ($_smarty_tpl->tpl_vars['search']->value['tax_exempt'] == "Y") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("yes");
            ?>
</option>
            <option value="N" <?php 
            if ($_smarty_tpl->tpl_vars['search']->value['tax_exempt'] == "N") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("no");
            ?>
</option>
        </select>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="order_id"><?php 
            echo $_smarty_tpl->__("order_id");
            ?>
</label>
        <div class="controls">
            <input type="text" name="order_id" id="order_id" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['order_id'], ENT_QUOTES, 'UTF-8');
            ?>
" size="10"/>
        </div>
    </div>

    <div class="control-group">
        <label class="control-label" for="has_credit_memo"><?php 
            echo $_smarty_tpl->__("has_credit_memo");
            ?>
</label>
        <div class="controls">
            <input type="checkbox" name="has_credit_memo" id="has_credit_memo" value="Y"<?php 
            if ($_smarty_tpl->tpl_vars['search']->value['has_credit_memo']) {
                ?>
 checked="checked"<?php 
            }
            ?>
 />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="crmemo_id"><?php 
            echo $_smarty_tpl->__("credit_memo_id");
            ?>
</label>
        <div class="controls">
            <input type="text" name="credit_memo_id" id="crmemo_id" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['credit_memo_id'], ENT_QUOTES, 'UTF-8');
            ?>
" size="10"/>
        </div>
    </div>
    </div>

    <div class="group span6 form-horizontal">
        <div class="control-group">
            <label class="control-label" for="has_invoice"><?php 
            echo $_smarty_tpl->__("has_invoice");
            ?>
</label>
            <div class="controls">
                <input type="checkbox" name="has_invoice" id="has_invoice" value="Y"<?php 
            if ($_smarty_tpl->tpl_vars['search']->value['has_invoice']) {
                ?>
 checked="checked"<?php 
            }
            ?>
 />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inv_id"><?php 
            echo $_smarty_tpl->__("invoice_id");
            ?>
</label>
            <div class="controls">
                <input type="text" name="invoice_id" id="inv_id" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['invoice_id'], ENT_QUOTES, 'UTF-8');
            ?>
" size="10"/>
            </div>
        </div>
        <?php 
            echo $_smarty_tpl->getSubTemplate("common/select_vendor.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

    </div>
</div>
<div class="group">
    <div class="control-group">
        <label class="checkbox" for="a_uid"><input type="checkbox" name="admin_user_id" id="a_uid" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['auth']->value['user_id'], ENT_QUOTES, 'UTF-8');
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['search']->value['admin_user_id']) {
                ?>
checked="checked"<?php 
            }
            ?>
 /><?php 
            echo $_smarty_tpl->__("new_orders");
            ?>
</label>
    </div>
</div>
<div class="group">
<div class="control-group">
    <label class="control-label"><?php 
            echo $_smarty_tpl->__("shipping");
            ?>
</label>
    <div class="controls checkbox-list">
        <?php 
            echo smarty_function_html_checkboxes(array('name' => "shippings", 'options' => $_smarty_tpl->tpl_vars['shippings']->value, 'selected' => $_smarty_tpl->tpl_vars['search']->value['shippings'], 'columns' => 4), $_smarty_tpl);
            ?>

    </div>
</div>
</div>

<div class="group">
<div class="control-group">
    <label class="control-label"><?php 
            echo $_smarty_tpl->__("payment_methods");
            ?>
</label>
    <div class="controls checkbox-list">
        <?php 
            echo smarty_function_html_checkboxes(array('name' => "payments", 'options' => $_smarty_tpl->tpl_vars['payments']->value, 'selected' => $_smarty_tpl->tpl_vars['search']->value['payments'], 'columns' => 4), $_smarty_tpl);
            ?>

    </div>
</div>
</div>
<div class="group">
    <div class="control-group">
        <label class="control-label"><?php 
            echo $_smarty_tpl->__("ordered_products");
            ?>
</label>
        <div class="controls ">
            <?php 
            echo $_smarty_tpl->getSubTemplate("common/products_to_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('placement' => "right"), 0);
            ?>

        </div>
    </div>
</div>
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "orders:advanced_search"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


<div class="group">
    <div class="control-group">
<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:search_form"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "orders:search_form"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "orders:search_form"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

    </div>
</div>

<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        echo $_smarty_tpl->getSubTemplate("common/advanced_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('simple_search' => Smarty::$_smarty_vars['capture']['simple_search'], 'advanced_search' => Smarty::$_smarty_vars['capture']['advanced_search'], 'dispatch' => $_smarty_tpl->tpl_vars['dispatch']->value, 'view_type' => "orders", 'in_popup' => $_smarty_tpl->tpl_vars['in_popup']->value), 0);
        ?>


</form>

<?php 
        if ($_smarty_tpl->tpl_vars['in_popup']->value) {
            ?>
    </div></div>
<?php 
        } else {
            ?>
    </div><hr>
<?php 
        }
    }
            </td>
        </tr>
        <tr>
            <th>公開・非公開<span class="attention"> *</span></th>
            <td>
                <?php 
echo smarty_function_html_radios(array('name' => 'status', 'options' => is_array($_tmp = $this->_tpl_vars['arrDISP']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'selected' => is_array($_tmp = $this->_tpl_vars['arrForm']['status']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'separator' => '&nbsp;&nbsp;'), $this);
?>

            </td>
        </tr>
        <tr>
            <th>商品ステータス</th>
            <td>
                <?php 
echo smarty_function_html_checkboxes(array('name' => 'product_status', 'options' => is_array($_tmp = $this->_tpl_vars['arrSTATUS']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'selected' => is_array($_tmp = $this->_tpl_vars['arrForm']['product_status']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'separator' => '&nbsp;&nbsp;'), $this);
?>

            </td>
        </tr>
        <?php 
if ((is_array($_tmp = $this->_tpl_vars['arrForm']['has_product_class']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) == false) {
    ?>
        <tr>
            <th>商品種別<span class="attention"> *</span></th>
            <td>
                <?php 
    echo smarty_function_html_radios(array('name' => 'product_type_id', 'options' => is_array($_tmp = $this->_tpl_vars['arrProductType']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'selected' => is_array($_tmp = $this->_tpl_vars['arrForm']['product_type_id']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'separator' => '&nbsp;&nbsp;'), $this);
    ?>

            </td>
			    <tr>
				  <th colspan="6">Mensaje</th>
				</tr>
				<tr>
				   <td class="headlines">Asunto</td>
				   <td><?php 
echo $this->_tpl_vars['asunto'];
?>
</td>
				   <td class="headlines"></td>
				   <td></td>
				</tr>
				<tr>
					<td class="headlines">Para</td>
					<td><!-- <?php 
echo smarty_function_html_checkboxes(array('name' => 'dests', 'options' => $this->_tpl_vars['destinatarios'], 'separator' => '<br />'), $this);
?>
 -->
					    <div id="button"><a href="#" class="actionnew">Ver Destinatarios</a></div>
					</td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td class="headlines">Adjuntos</td>
					<td>
					    <?php 
unset($this->_sections['row']);
$this->_sections['row']['name'] = 'row';
$this->_sections['row']['loop'] = is_array($_loop = $this->_tpl_vars['adjuntos']) ? count($_loop) : max(0, (int) $_loop);
unset($_loop);
echo smarty_function_t(array('string' => 'tpl_Regular holiday settings_01'), $this);
?>
</h2>
    <table id="basis-index-holiday">
        <tr>
            <th><?php 
echo smarty_function_t(array('string' => 'tpl_Regular holiday_01'), $this);
?>
</th>
            <td>
                <span class="attention"><?php 
echo is_array($_tmp = $this->_tpl_vars['arrErr']['regular_holiday_ids']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
?>
</span>
                <?php 
echo smarty_function_html_checkboxes(array('name' => 'regular_holiday_ids', 'options' => is_array($_tmp = $this->_tpl_vars['arrRegularHoliday']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'selected' => is_array($_tmp = $this->_tpl_vars['arrForm']['regular_holiday_ids']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)), $this);
?>

            </td>
        </tr>
    </table>

    <h2><?php 
echo smarty_function_t(array('string' => 'tpl_SHOP function_01'), $this);
?>
</h2>
    <table id="basis-index-func">
        <tr>
            <th><?php 
echo smarty_function_t(array('string' => "tpl_Consumption sales tax rate<span class='attention'> *</span>_01", 'escape' => 'none'), $this);
?>
/* Smarty version 2.6.26, created on 2009-09-01 23:05:34
   compiled from wb_manage.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'wb_manage.tpl', 2, false), array('function', 'html_checkboxes', 'wb_manage.tpl', 10, false))), $this);
echo smarty_function_config_load(array('file' => 'template.conf', 'section' => 'WebekciManage'), $this);
?>

<FORM action="webekci_manage.php?tab=wbmng&c=0" method="post">	
<table width=100% cellspacing=0 cellpadding=4 border=0 class='<?php 
echo $this->_config[0]['vars']['tblClass'];
?>
'>
<tr><td>
<?php 
echo $this->_config[0]['vars']['wbManageTitle'];
?>

<hr>
</td></tr>
<tr><td>
   <?php 
echo smarty_function_html_checkboxes(array('name' => 'mchoise', 'options' => $this->_tpl_vars['wb_list'], 'selected' => $this->_tpl_vars['selected_wb'], 'separator' => '<br/>'), $this);
?>

</td></tr>
<tr><td>
<input type=submit value=Commit name=submit />
</td></tr>
</table>
</FORM>