當前位置: 首頁>>代碼示例>>PHP>>正文


PHP smarty_function_html_radios函數代碼示例

本文整理匯總了PHP中smarty_function_html_radios函數的典型用法代碼示例。如果您正苦於以下問題:PHP smarty_function_html_radios函數的具體用法?PHP smarty_function_html_radios怎麽用?PHP smarty_function_html_radios使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了smarty_function_html_radios函數的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: smarty_function_html_radios

*</label><input name="news_path" type="text" id="news_path" value="<?php 
echo $this->_tpl_vars['news_path'];
?>
" size="50"><br /><br />
	 <label>This is New news?</label><input type="checkbox" name="news_status"  value="1" <?php 
if ($this->_tpl_vars['news_status']) {
    ?>
 checked="checked" <?php 
}
?>
 /><img src="images/new.gif"  alt="set this news to new" /><br /><br />	
	 <label><?php 
echo $this->_tpl_vars['LABEL_NEWS_TYPE'];
?>
*</label><div style="float:left"><?php 
echo smarty_function_html_radios(array('name' => 'news_type', 'options' => $this->_tpl_vars['news_type_options'], 'selected' => $this->_tpl_vars['news_type'], 'separator' => "<br /><br />"), $this);
?>
</div><br /><br /><br />
	 <p >
		    <input type="submit" name="Submit" value="<?php 
echo $this->_tpl_vars['BUTTON_SUBMIT'];
?>
"  class="button">
	        <input type="button" name="btnCancel" value="<?php 
echo $this->_tpl_vars['BUTTON_CANCEL'];
?>
" onClick="window.location	=	'<?php 
echo $this->_tpl_vars['back_link'];
?>
';"  class="button">
		  </p>
開發者ID:rongandat,項目名稱:e-global-cya,代碼行數:31,代碼來源:%%91^91B^91BBE5C3%%new.html.php

示例3: smarty_function_t

echo smarty_function_t(array('string' => "tpl_Mail magazine<span class='attention'> *</span>_01", 'escape' => 'none'), $this);
?>
</th>
                <td>
                    <span class="attention"><?php 
echo is_array($_tmp = $this->_tpl_vars['arrErr']['mailmaga_flg']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
?>
</span>
                    <span <?php 
if ((is_array($_tmp = $this->_tpl_vars['arrErr']['mailmaga_flg']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) != "") {
    echo SC_Utils_Ex::sfSetErrorStyle(array(), $this);
}
?>
>
                        <?php 
echo smarty_function_html_radios(array('name' => 'mailmaga_flg', 'options' => is_array($_tmp = $this->_tpl_vars['arrMailMagazineType']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'separator' => ' ', 'selected' => is_array($_tmp = $this->_tpl_vars['arrForm']['mailmaga_flg']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)), $this);
?>

                    </span>
                </td>
            </tr>
            <tr>
                <th><?php 
echo smarty_function_t(array('string' => 'tpl_Memo for SHOP_01'), $this);
?>
</th>
                <td>
                    <span class="attention"><?php 
echo is_array($_tmp = $this->_tpl_vars['arrErr']['note']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
?>
</span>
開發者ID:Rise-Up-Cambodia,項目名稱:Rise-Up,代碼行數:31,代碼來源:%%05^053^0531CD23%%edit.tpl.php

示例4: smarty_function_html_checkboxes

            <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>
        <tr>
            <th>ダウンロード商品ファイル名<span class="attention"> *</span></th>
            <td>
                <span class="attention"><?php 
    echo is_array($_tmp = $this->_tpl_vars['arrErr']['down_filename']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
    ?>
</span>
                <input type="text" name="down_filename" value="<?php 
    echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrForm']['down_filename']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp);
    ?>
" maxlength="<?php 
開發者ID:nassos9090,項目名稱:plugin,代碼行數:31,代碼來源:%%2A^2AB^2AB93D92%%product.tpl.php

示例5: smarty_function_input

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']);
//.........這裏部分代碼省略.........
開發者ID:dalinhuang,項目名稱:shopexts,代碼行數:101,代碼來源:function.input.php

示例6: content_513f1b121d3811_09791429

    function content_513f1b121d3811_09791429($_smarty_tpl)
    {
        if (!is_callable('smarty_function_html_radios')) {
            include 'C:\\wamp\\www\\chuhan\\Smarty\\plugins\\function.html_radios.php';
        }
        $_config = new Smarty_Internal_Config("Admin.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文檔</title>
<link rel="stylesheet" type="text/css" href="css.css">
</head>

<body>
<table width="95%" border="1" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="30" style="background-image:url(images/bg_list.gif)"><div style="margin-left:10px; font-weight:bold; color:#ffffff; font-size:16px">案例編輯</div></td>
  </tr>
  <tr>
    <td><form name="addFriend" id="addFriend" action="UpdateProduct.php?action=editProduct&productID=<?php 
        echo $_smarty_tpl->tpl_vars['productID']->value;
        ?>
" method="post">
	<table width="100%" border="0" cellspacing="0" cellpadding="0"  align="center" style="border:1px solid #CCCCCC">
	  <tr><td height="5" colspan="2"></td></tr>
	  <tr>
        <td height="25"  align="right">案例網址:</td>
        <td><input name="productUrl" type="text" size="60" value="<?php 
        echo $_smarty_tpl->tpl_vars['productUrl']->value;
        ?>
"/></td>
      </tr>
	  <tr>
        <td height="25" align="right">案例標題:</td>
        <td><input name="productTitle" type="text" size="60" value="<?php 
        echo $_smarty_tpl->tpl_vars['productTitle']->value;
        ?>
"/></td>
      </tr>
	  <tr>
        <td height="25"  align="right">案例排序:</td>
        <td><input name="productOrder" type="text" size="30" value="<?php 
        echo $_smarty_tpl->tpl_vars['productOrder']->value;
        ?>
"/><font style="color:#FF0000; font-size:12px;">注:默認狀態是“1”;</font></td>
      </tr>
	  <!--<tr>
        <td height="25"  align="right">是否新品:</td>
        <td><?php 
        echo smarty_function_html_radios(array('name' => "npID", 'options' => $_smarty_tpl->tpl_vars['newProduct']->value, 'checked' => $_smarty_tpl->tpl_vars['npID']->value), $_smarty_tpl);
        ?>
</td>
      </tr>
	  <tr>
        <td height="25"  align="right">是否推薦:</td>
        <td><?php 
        echo smarty_function_html_radios(array('name' => "tuijianID", 'options' => $_smarty_tpl->tpl_vars['tuijian']->value, 'checked' => $_smarty_tpl->tpl_vars['tjID']->value), $_smarty_tpl);
        ?>
</td>
      </tr>
	  <tr>
        <td height="25"  align="right">產品類別:</td>
        <td>
			<select name="classID" style="width:150px;">
			/*<?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['item']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['classList']->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;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
            ?>
			<?php 
            if ($_smarty_tpl->tpl_vars['item']->value['id'] == $_smarty_tpl->tpl_vars['classID']->value) {
                ?>
			<option value="<?php 
                echo $_smarty_tpl->tpl_vars['item']->value['id'];
                ?>
" selected="selected"><?php 
                echo $_smarty_tpl->tpl_vars['item']->value['cnClassName'];
                ?>
</option>
			/*<?php 
            } else {
                ?>
			<option value="<?php 
                echo $_smarty_tpl->tpl_vars['item']->value['id'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['item']->value['cnClassName'];
                ?>
</option>
			/*<?php 
//.........這裏部分代碼省略.........
開發者ID:boxiansoft,項目名稱:chuhan,代碼行數:101,代碼來源:48b2a6a3e9060aa9a78ae614a05e9bc15b9ebf2d.file.AddProduct.tpl.php

示例7: smarty_function_html_radios

echo $this->_tpl_vars['param']['search_information_id'];
?>
" size="15">(カンマ區切りで複數可)
                </div>
                -->
                <div id="search_condition_id" style="display:none;">
                    <?php 
echo smarty_function_html_radios(array('name' => 'search_conditions_display_type', 'options' => $this->_tpl_vars['searchConditionDisplayType'], 'selected' => is_array($_tmp = @$this->_tpl_vars['param']['search_conditions_display_type']) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0), 'separator' => "&nbsp;"), $this);
?>
<br>
                    <input type="text" name="search_conditions_id" value="<?php 
echo $this->_tpl_vars['param']['search_conditions_id'];
?>
" size="15">(カンマ區切りで複數可)<br>
                    <?php 
echo smarty_function_html_radios(array('name' => 'search_conditions_type', 'options' => $this->_tpl_vars['searchConditionsTypeArray'], 'selected' => is_array($_tmp = @$this->_tpl_vars['param']['search_conditions_type']) ? $this->_run_mod_handler('default', true, $_tmp, 2) : smarty_modifier_default($_tmp, 2), 'separator' => "&nbsp;"), $this);
?>
<br>
                    <a href="<?php 
echo smarty_function_make_link(array('action' => 'action_user_SearchConditionList'), $this);
?>
" target="_blank">検索條件保存リスト</a>
                </div>
                <!--
                <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>
                -->
開發者ID:noriotakei,項目名稱:suraimu,代碼行數:31,代碼來源:%%7B^7BE^7BE5FD3D%%informationSearchList.tpl.php

示例8: array

$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '_error.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
			<dl>
				<dt>受信メールアドレス</dt>
					<dd>(カンマ區切りで複數指定可能、受信しない場合は空にする。)</dd>
					<dd><input type="text" id="admin_mail" name="admin_mail" size="50" value="<?php 
echo $this->_tpl_vars['app']['admin_mail'];
?>
" /></dd>
				<dt>PCと攜帯の両テンプレート使用時の自動選択機能を有効にする</dt>
					<dd>(※有効にした場合、攜帯用フォームの確認には攜帯でアクセスする必要があります。)</dd>
					<dd><?php 
echo smarty_function_html_radios(array('name' => 'auto_select', 'options' => $this->_tpl_vars['app']['options'], 'selected' => $this->_tpl_vars['app']['auto_select'], 'label_ids' => true), $this);
?>
</dd>
			</dl>
			<p>
				<input type="button" value="前へ戻る" class="button" onclick="location.href='<?php 
echo $this->_tpl_vars['script'];
?>
?mode=project';return false;" onkeypress="return;" />
				<input type="submit" value="設定する" class="button" />
			</p>
		</fieldset>
	</form>
</div>

<?php 
開發者ID:hiroki-namekawa,項目名稱:test-upr,代碼行數:31,代碼來源:32e7ff823be1135300d0571ea34b2a61^%%F5^F5F^F5F0DB7D%%baseconfig.tpl.php

示例9: smarty_function_html_radios

echo $this->_tpl_vars['item']['subdomain'];
?>
" class="infoTableInput" />
          <span class="gray">If enabled, please fill out the secondary domain name suffix, for example .yourdomain.com (front must have.)</span></span></td>
      </tr>
      <tr>
        <th class="paddingT15"> URL Static:</th>
        <td class="paddingT15 wordSpacing5"><?php 
echo smarty_function_html_radios(array('name' => "data[rewrite_able]", 'options' => $this->_tpl_vars['AskAction'], 'checked' => is_array($_tmp = @$this->_tpl_vars['item']['rewrite_able']) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0), 'separator' => ""), $this);
?>
</td>
      </tr>
      <tr>
        <th class="paddingT15"> Rewrite Compatibility:</th>
        <td class="paddingT15 wordSpacing5"><?php 
echo smarty_function_html_radios(array('name' => "data[rewrite_compatible]", 'options' => $this->_tpl_vars['AskAction'], 'checked' => is_array($_tmp = @$this->_tpl_vars['item']['rewrite_compatible']) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0), 'separator' => ""), $this);
?>
</td>
      </tr>
      <tr>
        <th></th>
        <td class="ptb20">
			<input class="formbtn" type="submit" name="save_functions" value="<?php 
echo $this->_tpl_vars['_save_setting'];
?>
" />		</td>
      </tr>
    </table>
  </form>
</div> 
<?php 
開發者ID:vuong93st,項目名稱:w-game,代碼行數:31,代碼來源:%%C4^C43^C4382206%%setting.functions.html.php

示例10: is_array

        ?>
      <tr>
        <th nowrap="nowrap" scope="row"><?php 
        echo is_array($_tmp = 'C67DADA4A1A6B2CD747F6777D64CC7E7') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
        ?>
<br/>(<?php 
        echo is_array($_tmp = 'D032C46935BDA9DE97AD416319EB02D2') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
        ?>
&quot;,&quot;<?php 
        echo is_array($_tmp = 'F3BD3B485F83DD0327F19576EC0BC134') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
        ?>
)</th>
        <td>
        	<div>
            <?php 
        echo smarty_function_html_radios(array('options' => $this->_tpl_vars['playerTypes'], 'name' => 'userType', 'selected' => is_array($_tmp = @$this->_tpl_vars['userTypeSelect']) ? $this->_run_mod_handler('default', true, $_tmp, 3) : smarty_modifier_default($_tmp, 3)), $this);
        ?>

            </div>
        	<textarea name="users" id="users" style="width:400px; height:100px;"><?php 
        echo $this->_tpl_vars['users'];
        ?>
</textarea>
        	<div id="usersTip"></div>
        </td>
      </tr>
      <?php 
    }
    ?>
      <tr>
        <th colspan="2" scope="row"><input type="submit" class="btn-blue" name="sbm" value="<?php 
開發者ID:huangwei2wei,項目名稱:kfxt,代碼行數:31,代碼來源:%%9F^9FA^9FA2678C%%Default.html.php

示例11: smarty_function_html_radios

echo smarty_function_html_radios(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['arrHtmlmail']) ? $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_Type of delivery e-mail address_01"), $this);
?>
</th>
            <td colspan="3">
                <?php 
$this->assign('key', 'search_mail_type');
?>
                <?php 
echo smarty_function_html_radios(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['arrMailType']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'separator' => "<br />", 'selected' => 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('default', true, $_tmp, 1) : smarty_modifier_default($_tmp, 1)), $this);
?>

            </td>
        </tr>
    </table>
    
    <div class="btn">
        <p class="page_rows"><?php 
echo smarty_function_t(array('string' => 'tpl_Results displayed_01'), $this);
?>

            <?php 
$this->assign('key', 'search_page_max');
?>
            <?php 
開發者ID:Rise-Up-Cambodia,項目名稱:Rise-Up,代碼行數:31,代碼來源:%%CB^CB7^CB771B36%%index.tpl.php

示例12: smarty_function_html_radios

        <input type="hidden" value="<?php 
echo $this->_tpl_vars['__ACTION__'];
?>
" name="a" />
        <table width="100%" border="0" cellpadding="3">
          <tr>
            <th scope="row"> 質檢類型:</th>
            <td><?php 
echo smarty_function_html_radios(array('options' => $this->_tpl_vars['qualityOptions'], 'selected' => $this->_tpl_vars['selectedQualityOption'], 'name' => 'quality_option'), $this);
?>
</td>
          </tr>
          <tr>
            <th scope="row">申訴狀態</th>
            <td><?php 
echo smarty_function_html_radios(array('options' => $this->_tpl_vars['statusOptions'], 'selected' => $this->_tpl_vars['selectedStatusOption'], 'name' => 'status_option'), $this);
?>
</td>
          </tr>
          <tr>
            <th scope="row" colspan="2"><input type="submit" class="btn-blue" value="提交" /></th>
          </tr>
        </table>
        </form>
</fieldset>

<fieldset>
  <legend>所有被質檢的回複
    </legend><table width="100%" border="0" cellpadding="3">
      <tr>
        <th scope="col">Id</th>
開發者ID:huangwei2wei,項目名稱:kfxt,代碼行數:31,代碼來源:%%2D^2D4^2D4DA288%%AllReply.html.php

示例13: smarty_function_html_radios

?>
    <?php 
if (isset($this->_tpl_vars['date'])) {
    ?>
<input type="hidden" name="date" value="<?php 
    echo $this->_tpl_vars['date'];
    ?>
"><?php 
}
?>
	<div class="form-group">
            <div class="col-sm-offset-5 col-sm-7">
                <div class="radio">
                    <label>
                        <?php 
echo smarty_function_html_radios(array('name' => 'type', 'options' => $this->_tpl_vars['radio_id'], 'selected' => is_array($_tmp = @$this->_tpl_vars['type']) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0), 'separator' => "</br>"), $this);
?>

                    </label>
                </div>
            </div>
        </div>            
        <div class="form-group">
            <label for="inputSeller_name" class="col-sm-5 control-label">Ваше имя</label>
                <div class="col-sm-7">
                    <input type="text" name="seller_name" class="form-control" id="inputSeller_name" placeholder="Ваше имя" maxlength="40" value="<?php 
echo is_array($_tmp = @$this->_tpl_vars['seller_name']) ? $this->_run_mod_handler('default', true, $_tmp, '') : smarty_modifier_default($_tmp, '');
?>
"  required >
                </div>
        </div>
開發者ID:Anatoliy-Bezhenaru,項目名稱:wdc,代碼行數:31,代碼來源:%%45^45E^45E480CD%%index.tpl.php

示例14: smarty_function_input


//.........這裏部分代碼省略.........
                $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'];
開發者ID:dalinhuang,項目名稱:shopexts,代碼行數:67,代碼來源:function.input.php

示例15: smarty_function_html_radios

        <tr>
            <th>
                パスワード:
            </th>
            <td style="text-align: left;">
                <input type="text" name="display_password" value="<?php 
echo $this->_tpl_vars['param']['display_password'];
?>
" style="ime-mode:disabled">
            </td>
        </tr>
        <tr>
            <th>IPアドレス認証:</th>
            <td style="text-align: left;">
                <?php 
echo smarty_function_html_radios(array('name' => 'is_auth_ip_address', 'options' => $this->_tpl_vars['isAuthIpAddress'], 'selected' => is_array($_tmp = @$this->_tpl_vars['param']['is_auth_ip_address']) ? $this->_run_mod_handler('default', true, $_tmp, 1) : smarty_modifier_default($_tmp, 1), 'id' => 'is_auth_ip_address'), $this);
?>

            </td>
        </tr>
        <tr>
            <th>
                代理店への入金額の表示設定:
            </th>
            <td style="text-align: left;">
                <?php 
echo smarty_function_html_options(array('name' => 'is_display', 'options' => $this->_tpl_vars['isDisplayPay'], 'selected' => is_array($_tmp = @$this->_tpl_vars['param']['is_display_trade_amount']) ? $this->_run_mod_handler('default', true, $_tmp, 1) : smarty_modifier_default($_tmp, 1)), $this);
?>

            </td>
        </tr>
開發者ID:noriotakei,項目名稱:suraimu,代碼行數:31,代碼來源:%%08^086^086E5F4D%%baitaiAgencyList.tpl.php


注:本文中的smarty_function_html_radios函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。