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


PHP smarty_function_html_options函数代码示例

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


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

示例1: smarty_function_html_select_modulestylesheets

/**
 * Zikula_View function to display a drop down list of module stylesheets.
 *
 * Available parameters:
 *   - modname   The module name to show the styles for
 *   - assign:   If set, the results are assigned to the corresponding variable instead of printed out
 *   - id:       ID for the control
 *   - name:     Name for the control
 *   - exclude   Comma seperated list of files to exclude (optional)
 *   - selected: Selected value
 *
 * @param array       $params All attributes passed to this function from the template.
 * @param Zikula_View $view   Reference to the Zikula_View object.
 *
 * @return string The value of the last status message posted, or void if no status message exists.
 */
function smarty_function_html_select_modulestylesheets($params, Zikula_View $view)
{
    if (!isset($params['modname'])) {
        $view->trigger_error(__f('Error! in %1$s: the %2$s parameter must be specified.', array('html_select_modulestylesheets', 'modname')));
        return false;
    }
    if (isset($params['exclude'])) {
        $exclude = explode(',', trim($params['exclude']));
        unset($params['exclude']);
    } else {
        $exclude = array();
    }
    $params['values'] = ModUtil::apiFunc('ZikulaAdminModule', 'admin', 'getmodstyles', array('modname' => $params['modname'], 'exclude' => $exclude));
    unset($params['modname']);
    $params['output'] = $params['values'];
    $assign = isset($params['assign']) ? $params['assign'] : null;
    unset($params['assign']);
    require_once $view->_get_plugin_filepath('function', 'html_options');
    $output = smarty_function_html_options($params, $view);
    if (!empty($assign)) {
        $view->assign($assign, $output);
    } else {
        return $output;
    }
}
开发者ID:rmaiwald,项目名称:core,代码行数:41,代码来源:function.html_select_modulestylesheets.php

示例2: smarty_function_htmlReportSort

/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */
function smarty_function_htmlReportSort($params, &$smarty)
{
    require_once $smarty->_get_plugin_filepath('function', 'html_options');
    $filter_data = $params['filter_data'];
    $retval .= '<tr onClick="showHelpEntry(\'sort\')">
    <td colspan="2" class="cellLeftEditTableHeader">
        ' . TTi18n::gettext('Sort By:') . '
    </td>
    <td class="cellRightEditTable">
        <select id="columns" name="filter_data[primary_sort]">
            {html_options options=$filter_data.sort_options selected=$filter_data.primary_sort}
            ' . smarty_function_html_options(array('options' => $filter_data['sort_options'], 'selected' => $filter_data['primary_sort']), $smarty) . '            
        </select>
        <select id="columns" name="filter_data[primary_sort_dir]">
            ' . smarty_function_html_options(array('options' => $filter_data['sort_direction_options'], 'selected' => $filter_data['primary_sort_dir']), $smarty) . '            
        </select>
        <b>' . TTi18n::gettext('then:') . '</b>
        <select id="columns" name="filter_data[secondary_sort]">
            ' . smarty_function_html_options(array('options' => $filter_data['sort_options'], 'selected' => $filter_data['secondary_sort']), $smarty) . '            
        </select>
        <select id="columns" name="filter_data[secondary_sort_dir]">
            ' . smarty_function_html_options(array('options' => $filter_data['sort_direction_options'], 'selected' => $filter_data['secondary_sort_dir']), $smarty) . '                        
        </select>

    </td>
</tr>
';
    return $retval;
}
开发者ID:J-P-Hanafin,项目名称:TimeTrex-1,代码行数:34,代码来源:function.htmlreportsort.php

示例3: smarty_function_html_select_languages

/**
 * Zikula_View function to display a drop down list of languages
 *
 * Available parameters:
 *   - assign:   If set, the results are assigned to the corresponding variable instead of printed out
 *   - name:     Name for the control
 *   - id:       ID for the control
 *   - selected: Selected value
 *   - installed: if set only show languages existing in languages folder
 *   - all:      show dummy entry '_ALL' on top of the list with empty value
 *
 * Example
 *   {html_select_languages name=language selected=en}
 *
 * @param array       $params All attributes passed to this function from the template.
 * @param Zikula_View $view   Reference to the Zikula_View object.
 *
 * @deprecated smarty_function_html_select_locales()
 * @return string The value of the last status message posted, or void if no status message exists.
 */
function smarty_function_html_select_languages($params, Zikula_View $view)
{
    if (!isset($params['name']) || empty($params['name'])) {
        $view->trigger_error(__f('Error! in %1$s: the %2$s parameter must be specified.', array('html_select_languages', 'name')));
        return false;
    }
    require_once $view->_get_plugin_filepath('function', 'html_options');
    $params['output'] = array();
    $params['values'] = array();
    if (isset($params['all']) && $params['all']) {
        $params['values'][] = '';
        $params['output'][] = DataUtil::formatForDisplay(__('All'));
        unset($params['all']);
    }
    if (isset($params['installed']) && $params['installed']) {
        $languagelist = ZLanguage::getInstalledLanguageNames();
        unset($params['installed']);
    } else {
        $languagelist = ZLanguage::languageMap();
    }
    $params['output'] = array_merge($params['output'], DataUtil::formatForDisplay(array_values($languagelist)));
    $params['values'] = array_merge($params['values'], DataUtil::formatForDisplay(array_keys($languagelist)));
    $assign = isset($params['assign']) ? $params['assign'] : null;
    unset($params['assign']);
    $html_result = smarty_function_html_options($params, $view);
    if (!empty($assign)) {
        $view->assign($assign, $html_result);
    } else {
        return $html_result;
    }
}
开发者ID:Silwereth,项目名称:core,代码行数:51,代码来源:function.html_select_languages.php

示例4: content_55a49e3dcc4dc0_02078110

    function content_55a49e3dcc4dc0_02078110($_smarty_tpl)
    {
        if (!is_callable('smarty_function_html_options')) {
            include 'C:\\wwwroot\\yfcms\\framework\\librarys\\Smarty\\libs\\plugins\\function.html_options.php';
        }
        ?>
<div class="zuobi">
    <a href="#">云扫除</a> > <a href="#">会员中心</a></span>
</div>

<!----------member---------->
<div class="member">
    <div class="member_left">
        <?php 
        echo $_smarty_tpl->getSubTemplate("modules/home_top.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

        <div class="member_left_tg">
            <form action="/home/tgSave/" method="post" onsubmit="" id="form_tg" form_tittle="投稿">
                <dt>文章标题:<input size="50" id="t0" name="title" type="text" class="input" maxlength="50" notnull="true" rule="/^[\S][\s\S]{5,49}$/" info="文章标题"/> <span>6-50个字符</span></dt>
                <dt>文章作者:<input size="20" id="t1" name="author" type="text" class="input" maxlength="10" value="<?php 
        echo $_smarty_tpl->tpl_vars['member_info']->value['username'];
        ?>
" notnull="true" rule="/^[\S][\s\S]{1,9}$/" info="文章作者" /> <span>2-10个字符</span></dt>
                <dt>所属栏目:<select class="item-blur" id="catId" name="catId" notnull="true" info="所属栏目">
                            <option value=''>--请选择所属栏目--</option>
                            <?php 
        echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['artice_cats']->value, 'selected' => 0), $_smarty_tpl);
        ?>

                        </select><span> 必选</span></dt>
                <dt>文章内容: <span>最少50个汉字</span><br><textarea id="content" name="content" class="inputs" notnull="true" rule="/^[\S][\s\S]{50,}$/" info="文章内容"></textarea></dt>
                <dt>验证码:<input id="yzm" size="6" name="yzm" type="text"  class="input" maxlength="4"   notnull="true" rule="/^[0-9a-zA-Z]{4}$/" info="验证码"/><img align="absmiddle" src="/yzm.php" height="25" width="55" onClick="this.src='/yzm.php?' + Math.random();" /></dt>
                <dt><input class="vote_bnt" value="投稿" type="button" id="saveBtn" /></dt>
            </form>

        </div>
    </div>
    <?php 
        echo $_smarty_tpl->getSubTemplate("modules/home_ad.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

</div>
<script type="text/javascript">
$(function(){
    $("#saveBtn").click(function(){
        $("#form_tg").ajaxSubmit({
            callback:function(msg){
                if(msg.status==0){
                    alert("投稿成功,审核通过后,积分将送至您的账户");
                    location.reload(false);
                }else{
                    alert(msg.info);
                }
            }
        });
    });
})
</script><?php 
    }
开发者ID:hexcode007,项目名称:yfcms,代码行数:60,代码来源:12d19c0bedf515feb07e671e492710fdcd61e821.file.tg.html.php

示例5: if

<?php if ($_valid && !is_callable('content_531753d90376e')) {function content_531753d90376e($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include 'C:\\AppServ\\www\\eschool\\ThinkPHP\\Extend\\Vendor\\Smarty\\plugins\\function.html_options.php';
?>
<div class="pageContent">
	<form method="post" action="__URL__/insert/navTabId/listtest/callbackType/closeCurrent"  class="pageForm required-validate" 
		onsubmit="return validateCallback(this,dialogAjaxDone);"><<?php ?>?php  //窗体组件采用这个 iframeCallback(this, navTabAjaxDone); ?<?php ?>>
        <div class="pageFormContent" layoutH="60">
            <dl>
                <dt>试卷类型:</dt>
                <dd><?php echo smarty_function_html_options(array('name'=>'tid','options'=>$_smarty_tpl->tpl_vars['myOptions']->value,'selected'=>$_smarty_tpl->tpl_vars['mySelect']->value),$_smarty_tpl);?>
</dd>
            </dl>
			<dl>
				<dt>试卷名:</dt>
				<dd><input type="text" class="required"  style="width:100%" name="title"/></dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>

<?php }} ?>
开发者ID:jl9n,项目名称:debugger,代码行数:26,代码来源:ba411e36c4770066e0ee00a198b4897e5702beb0.file.add.html.php

示例6: smarty_function_charge_names_select

function smarty_function_charge_names_select($params, &$smarty)
{
    /* return string of html select code for charge selects.
    
        parameter name(string,required): html select name
        parameter type(string,optional): if set, only set this type of charge, should be either of "Internet" or "VoIP"
    
        parameter id(string,optional): set optional dom ID
    
    
        parameter default_var(string,optional): see getSelectedAttrFromSmartyParams comments
        parameter default_request(string,optional):
        parameter default_smarty(string,optional):
        parameter default(string,optional)
        parameter target(string,optional):
    
        
    */
    require_once $smarty->_get_plugin_filepath('function', 'html_options');
    require_once IBSINC . "charge.php";
    $type = isset($params["type"]) ? $params["type"] : null;
    $charge_names = new ListCharges($type);
    list($success, $charge_names) = $charge_names->send();
    if (!$success) {
        $charge_names = array();
    }
    $selected = getSelectedAttrFromSmartyParams($smarty, $params);
    $select_arr = array("selected" => $selected, "output" => $charge_names, "values" => $charge_names, "name" => $params["name"]);
    if (isset($params["id"])) {
        $select_arr["id"] = $params["id"];
    }
    return smarty_function_html_options($select_arr, $smarty);
}
开发者ID:zeroleo12345,项目名称:freeIBS,代码行数:33,代码来源:function.charge_names_select.php

示例7: smarty_function_html_select_themes

/**
 * Zikula_View function to display a drop down list of themes.
 *
 * Available parameters:
 *   - name:     Name for the control (optional) if not present then only the option tags are output
 *   - id:       ID for the control
 *   - selected: Selected value
 *   - filter:   Filter themes use (possible values: ThemeUtil::FILTER_ALL (default) ThemeUtil::FILTER_USER, ThemeUtil::FILTER_SYSTEM, ThemeUtil::FILTER_ADMIN
 *   - state:    Filter themes by state (possible values: ThemeUtil::STATE_ALL (default), ThemeUtil::STATE_ACTIVE, ThemeUtil::STATE_INACTIVE
 *   - type:     Filter themes by type (possible values: ThemeUtil::TYPE_ALL (default), ThemeUtil::TYPE_XANTHIA3
 *   - assign:   If set, the results are assigned to the corresponding variable instead of printed out
 *
 * Examples
 *
 *     {html_select_themes name=mytheme selected=mythemechoice}
 *
 *     <select name="mytheme">
 *         <option value="">{ml name=_DEFAULT}</option>
 *         {html_select_themes selected=$mythemechoice}
 *     </select>
 *
 * @param array       $params All attributes passed to this function from the template.
 * @param Zikula_View $view   Reference to the Zikula_View object.
 *
 * @return string The value of the last status message posted, or void if no status message exists.
 */
function smarty_function_html_select_themes($params, Zikula_View $view)
{
    if (!isset($params['filter']) || !defined($params['filter'])) {
        $filter = ThemeUtil::FILTER_ALL;
    } else {
        $filter = constant($params['filter']);
    }
    if (!isset($params['state']) || !defined($params['state'])) {
        $state = ThemeUtil::STATE_ALL;
    } else {
        $state = constant($params['state']);
    }
    if (!isset($params['type']) || !defined($params['type'])) {
        $type = ThemeUtil::TYPE_ALL;
    } else {
        $type = constant($params['type']);
    }
    $themelist = array();
    $themes = ThemeUtil::getAllThemes($filter, $state, $type);
    if (!empty($themes)) {
        foreach ($themes as $theme) {
            $themelist[$theme['name']] = $theme['displayname'];
        }
    }
    natcasesort($themelist);
    require_once $view->_get_plugin_filepath('function', 'html_options');
    $output = smarty_function_html_options(array('options' => $themelist, 'selected' => isset($params['selected']) ? $params['selected'] : null, 'name' => isset($params['name']) ? $params['name'] : null, 'id' => isset($params['id']) ? $params['id'] : null), $view);
    if (isset($params['assign'])) {
        $view->assign($params['assign'], $output);
    } else {
        return $output;
    }
}
开发者ID:Silwereth,项目名称:core,代码行数:59,代码来源:function.html_select_themes.php

示例8: smarty_function_html_select_duration

/**
 * Smarty {html_select_duration} function plugin
 *
 * Type:     function<br>
 * Name:     html_select_duration<br>
 * params: prefix, default_unit(key word or value in secs), default (nb of units), default_value (duration in secs)
 * Purpose:  Prints the dropdowns for duration selection
 */
function smarty_function_html_select_duration($params, $smarty)
{
    global $smarty;
    $smarty->loadPlugin('smarty_function_html_options');
    $html_result = '';
    $default = array('prefix' => 'Duration_', 'default_unit' => 'week', 'default' => '', 'default_value' => '');
    $params = array_merge($default, $params);
    $values = array(31536000, 2628000, 604800, 86400, 3600, 60);
    $output = array(tra('Year'), tra('Month'), tra('Week'), tra('Day'), tra('Hour'), tra('Minute'));
    $defs = array('year', 'month', 'week', 'day', 'hour', 'minute');
    if (!empty($params['default_value'])) {
        foreach ($values as $selected) {
            if ($params['default_value'] >= $selected) {
                $params['default'] = round($params['default_value'] / $selected);
                break;
            }
        }
    } elseif (($key = array_search($params['default_unit'], $defs)) !== false) {
        $selected = $values[$key];
    } elseif (in_array($params['default_unit'], $values)) {
        $selected = $params['default_unit'];
    } else {
        $selected = 604800;
    }
    $html_result .= '<input name="' . $params['prefix'] . '" type="text" size="5" value="' . $params['default'] . '" />';
    if (strstr($params['prefix'], '[]')) {
        $prefix = str_replace('[]', '_unit[]', $params['prefix']);
    } else {
        $prefix = $params['prefix'] . '_unit';
    }
    $html_result .= '<select name="' . $prefix . '">';
    $html_result .= smarty_function_html_options(array('values' => $values, 'output' => $output, 'selected' => $selected), $smarty);
    $html_result .= '</select>';
    return $html_result;
}
开发者ID:railfuture,项目名称:tiki-website,代码行数:43,代码来源:function.html_select_duration.php

示例9: smarty_function_op

function smarty_function_op($params, &$smarty)
{
    /* return a select html code of operands for a type of class 
        parameter class (required,string): can be on of "ltgteq", "likestr"
        parameter name (required,string): name of the select
        parameter selected (optional,string): optionally set the selected value of to the request value of this 
    					    param if set
        parameter id (optional,string): dom id
    */
    require_once $smarty->_get_plugin_filepath('function', 'html_options');
    $class = $params["class"];
    if ($class == "ltgteq") {
        $face = array("=", ">", "<", ">=", "<=");
        $val = array("=", ">", "<", ">=", "<=");
    } else {
        if ($class == "likestr") {
            $val = array("equals", "like", "ilike", "starts_with");
            $face = $val;
        }
    }
    $selected = (isset($params["selected"]) and isset($_REQUEST[$params["selected"]])) ? $_REQUEST[$params["selected"]] : "";
    $select_arr = array("output" => $face, "values" => $val, "name" => $params["name"], "selected" => $selected);
    if (isset($params["id"])) {
        $select_arr["id"] = $params["id"];
    }
    return smarty_function_html_options($select_arr, $smarty);
}
开发者ID:zeroleo12345,项目名称:freeIBS,代码行数:27,代码来源:function.op.php

示例10: content_55470f461df114_14450491

    function content_55470f461df114_14450491($_smarty_tpl)
    {
        if (!is_callable('smarty_function_html_options')) {
            require_once '/home/ubuntu/workspace/smarty/libs/plugins/function.html_options.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '161678830555470f461a1277_30219648';
        ?>
<!DOCTYPE html>
<html>
    <head>
        <title>Submit a new segment</title>
    </head>
    
    <body>
        <form action="createSegment.php" method="GET">
            Title: <input type="text" name="name"><br>
            Artist: <input type="text" name="author"><br>
            Album: <input type="text" name="album"><br>
            <select name="category">
                <?php 
        echo smarty_function_html_options(array('values' => $_smarty_tpl->tpl_vars['id']->value, 'output' => $_smarty_tpl->tpl_vars['categories']->value), $_smarty_tpl);
        ?>

            </select><br>
            <input type="checkbox" name="can_can"> CC
            <input type="submit">
        </form>
    </body>
</html><?php 
    }
开发者ID:radioCKUT,项目名称:digital-logsheets,代码行数:30,代码来源:06130f468cbfd8f1038b3b436dad5017c746f5b3_0.file.submit_segment.tpl.php

示例11: smarty_function_separatorSelect

function smarty_function_separatorSelect($params, &$smarty)
{
    /* return string of html select code for seperator selects.
    
        parameter name(string,required): html select name
        parameter id(string,optional): set optional dom ID
    
        parameter default_var(string,optional): see getSelectedAttrFromSmartyParams comments
        parameter default_request(string,optional):
        parameter default_smarty(string,optional):
        parameter default(string,optional)
        parameter target(string,optional):
    
        
    */
    require_once $smarty->_get_plugin_filepath('function', 'html_options');
    $selected = getSelectedAttrFromSmartyParams($smarty, $params);
    $seps = array(",", ";", "TAB");
    $seps_out = array("Comma", "Semi Colon", "Tab");
    $select_arr = array("selected" => $selected, "output" => $seps_out, "values" => $seps, "name" => $params["name"]);
    if (isset($params["id"])) {
        $select_arr["id"] = $params["id"];
    }
    return smarty_function_html_options($select_arr, $smarty);
}
开发者ID:zeroleo12345,项目名称:freeIBS,代码行数:25,代码来源:function.separatorSelect.php

示例12: content_561be8d127c176_03375200

    function content_561be8d127c176_03375200($_smarty_tpl)
    {
        if (!is_callable('smarty_function_html_options')) {
            include '/var/www/contraluz-cirer/data/smarty/libs/plugins/function.html_options.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 
        }
        ?>
    <div class="contact-form">
        <form method="POST" action="pacientes.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"/>
            <label>Apellido</label>
            <input type="text" value="<?php 
        echo $_smarty_tpl->tpl_vars['apellido']->value;
        ?>
" id="apellido" name="apellido"/>
            <label>Obra social</label>
            <select name=obrasocial>
                <?php 
        echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['obrassociales']->value, 'selected' => $_smarty_tpl->tpl_vars['obrasocial']->value), $_smarty_tpl);
        ?>

            </select>
            <input type="submit" value="Guardar Datos"/>
        </form>
    </div>
</div>
<?php 
    }
开发者ID:rodolfobais,项目名称:proylectura,代码行数:60,代码来源:79f9ac5cdb68600d2441b85d6d67bf253fe9f69c.file.editarPacientes.html.cache.php

示例13: content_55d7ea6ddc9ac6_06648974

 function content_55d7ea6ddc9ac6_06648974($_smarty_tpl)
 {
     if (!is_callable('smarty_function_html_options')) {
         include '/www/wwwroot/www.fzgxw.com/system/libs/smarty/plugins/function.html_options.php';
     }
     echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['data']->value['options'], 'selected' => $_smarty_tpl->tpl_vars['data']->value['value']), $_smarty_tpl);
 }
开发者ID:a195474368,项目名称:ejiawang,代码行数:7,代码来源:b8618e56743956cdad3a83610664518f0a76ab02.widget.option.html.php

示例14: content_556e5cf90fb4e

    function content_556e5cf90fb4e($_smarty_tpl)
    {
        if (!is_callable('smarty_function_html_options')) {
            include 'D:\\files\\wamp\\www\\shop\\ThinkPHP\\Library\\Vendor\\Smarty\\plugins\\function.html_options.php';
        }
        ?>
<!doctype html>
<html>
	<head>
		<meta charset='utf-8'>
		<title>商城管理系统</title>
		<link rel="stylesheet" type="text/css" href="<?php 
        echo @__ROOT__;
        ?>
/Public/css/admin.css">
	</head>
	<body class="bgimg">

		<form action="<?php 
        echo @__CONTROLLER__;
        ?>
/insert" method="post">
		<ul class="exec">
			<li>
				<span class='add-text'>权限名称</span>
				<input type='text' name='name' placeholder='请输入权限名' value="" />
				<span class='error-text'></span>
			</li>
			<li>
				<span class='add-text'>权限父级</span>
				<select name="pid">
					<option value="0">&nbsp;请选择权限&nbsp;</option>
					<?php 
        echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['authinfo']->value), $_smarty_tpl);
        ?>

				</select>
				<span class='error-text'></span>
			</li>
			<li>
				<span class='add-text'>权限控制器</span>
				<input type='text' name='cont' placeholder='请输入权限控制器' value="" />
				<span class='error-text'></span>
			</li>
			<li>
				<span class='add-text'>权限操作方法</span>
				<input type='text' name='action' placeholder='请输入权限操作方法' value="" />
				<span class='error-text'></span>
			</li>
			<li>
				<span class='add-text'></span>
				<input type='submit' class='submitbtn' value="添加权限" />
			</li>
		</ul>
		</form>
	</body>
</html><?php 
    }
开发者ID:pengfen,项目名称:shop,代码行数:58,代码来源:f61913fb07d595257c9151d0353cac1980a06773.file.add.html.php

示例15: content_5666e270e1d121_13962020

    function content_5666e270e1d121_13962020($_smarty_tpl)
    {
        if (!is_callable('smarty_function_html_options')) {
            require_once 'D:/Yandex.Disk/Projects/bikecms/smarty/libs/plugins\\function.html_options.php';
        }
        ?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<form method="post" action="/Article/Add">
		<table>
				<thead>
					<tr>
						<th>Name</th>
						<th>Content</th>
						<th>Date</th>
						<th>Category</th>
						<th>Author</th>
					</tr>
				</thead>
					<tr>
						<td>
							<input type="text" name="name">
						</td>
						<td>
							<textarea name="content"></textarea>
						</td>
						<td>
							<input type="date" name="pubdate">
						</td>
						<td>
							<?php 
        echo smarty_function_html_options(array('name' => "catId", 'options' => $_smarty_tpl->tpl_vars['cats']->value, 'selected' => $_smarty_tpl->tpl_vars['catId']->value), $_smarty_tpl);
        ?>

						</td>
						<td>
							<?php 
        echo smarty_function_html_options(array('name' => "authId", 'options' => $_smarty_tpl->tpl_vars['authors']->value, 'selected' => $_smarty_tpl->tpl_vars['authId']->value), $_smarty_tpl);
        ?>

						</td>
					</tr>
					<tr>
						<td>
							<input type="submit" value="Сохранить">
						</td>
					</tr>
			</table>
		</form>
	</body>
</html>
<?php 
    }
开发者ID:smart-com,项目名称:bike-cms,代码行数:58,代码来源:30539bbf230881bf47ab3a96d6348ff5ed2ead3a_0.file.edit_article.tpl.php


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