当前位置: 首页>>代码示例>>PHP>>正文


PHP smarty_function_html_checkboxes函数代码示例

本文整理汇总了PHP中smarty_function_html_checkboxes函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_html_checkboxes函数的具体用法?PHP smarty_function_html_checkboxes怎么用?PHP smarty_function_html_checkboxes使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了smarty_function_html_checkboxes函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: content_569cf7ca383257_95502232

    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 
    }
开发者ID:billywl,项目名称:demo,代码行数:58,代码来源:5981529674827166941cf5a05f3b1f5f30637256_0.file.demo07.html.php

示例2: content_5617d04eac1025_97329852

    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 
    }
开发者ID:rodolfobais,项目名称:proylectura,代码行数:55,代码来源:3cafc96fe39d66829f6eceac86d3204b905561e6.file.editarTerapia.html.cache.php

示例3: content_55d5c52c1f4c73_26393234

    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 
            }
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:43,代码来源:f0c3493f6cc1ffb695235ccc3a3ecee3ebb7d324.tygh.status.tpl.php

示例4: smarty_function_input


//.........这里部分代码省略.........
            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':
开发者ID:dalinhuang,项目名称:shopexts,代码行数:67,代码来源:function.input.php

示例5: smarty_function_html_checkboxes

                <?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>
开发者ID:noriotakei,项目名称:suraimu,代码行数:30,代码来源:%%E5^E5D^E5D155F1%%adminUserUpd.tpl.php

示例6: is_array

" 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');
?>
开发者ID:Rise-Up-Cambodia,项目名称:Rise-Up,代码行数:31,代码来源:%%ED^ED0^ED0329FC%%form_customer_search.tpl.php

示例7: smarty_function_formfield

/**
 * 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'])) {
//.........这里部分代码省略.........
开发者ID:bitweaver,项目名称:libertyform,代码行数:101,代码来源:function.formfield.php

示例8: content_55ddbfdc96ed69_51075482

    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 
//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:4fd0f00b602b2d212b61bece093cdb88a24e64e4.tygh.compare.tpl.php

示例9: is_array

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>
开发者ID:noriotakei,项目名称:suraimu,代码行数:31,代码来源:%%1B^1BF^1BF7EC27%%mailLogList.tpl.php

示例10: smarty_function_html_checkboxes

        </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>
开发者ID:vuong93st,项目名称:w-game,代码行数:31,代码来源:%%34^34A^34AEB61A%%member.edit.html.php

示例11: smarty_function_html_radios

    <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>
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:31,代码来源:%%F1^F13^F13A0877%%VipIndex.html.php

示例12: entity_checkboxes

 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);
 }
开发者ID:5haman,项目名称:knowledgetree,代码行数:25,代码来源:smartytemplate.inc.php

示例13: smarty_core_load_plugins

   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>
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:31,代码来源:%%99^997^9976D8E9%%Index.html.php

示例14: smarty_function_html_checkboxes

				<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>
							
开发者ID:umanari145,项目名称:selfManagement,代码行数:30,代码来源:%%D0^D05^D050ADEE%%regist.tpl.php

示例15: smarty_function_html_checkboxes

                                        </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>
开发者ID:noriotakei,项目名称:suraimu,代码行数:31,代码来源:%%12^129^1297DD24%%detail.tpl.php


注:本文中的smarty_function_html_checkboxes函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。