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 
    }
*</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>
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>
            <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 
Esempio n. 5
0
function smarty_function_input($params, &$smarty)
{
    if (isset($params['attributes'])) {
        $params = $params['attributes'];
    }
    $params['class'] = $params['class'] ? $params['class'] . ' _x_ipt' : '_x_ipt' . ' ' . $params['type'];
    $params['vtype'] = isset($params['vtype']) ? $params['vtype'] : $params['type'];
    if (isset($params['default']) && !$params['value']) {
        $params['value'] = $params['default'];
    }
    switch ($params['type']) {
        case 'text':
            return buildTag($params, 'input autocomplete="off"');
            break;
        case 'password':
            return buildTag($params, 'input autocomplete="off"');
            break;
        case 'search':
            return buildTag($params, 'input autocomplete="off"');
            break;
        case 'date':
            if (!$params['id']) {
                $domid = 'mce_' . substr(md5(rand(0, time())), 0, 6);
                $params['id'] = $domid;
            } else {
                $domid = $params['id'];
            }
            $params['value'] = mydate('Y-m-d', $params['value']);
            $params['type'] = 'text';
            return buildTag($params, 'input autocomplete="off"') . '<script>$("' . $domid . '").makeCalable();</script>';
            break;
        case 'time':
            $params['value'] = mydate('Y-m-d H:i', $params['value']);
            return buildTag($params, 'input autocomplete="off"');
            break;
        case 'file':
            if ($params['backend'] == 'public') {
                if (!$GLOBALS['storager']) {
                    $system =& $GLOBALS['system'];
                    $GLOBALS['storager'] = $system->loadModel('system/storager');
                }
                $storager =& $GLOBALS['storager'];
                $url = $storager->getUrl($params['value']);
                $img = array('png' => 1, 'gif' => 1, 'jpg' => 1, 'jpeg' => 1);
                if ($img[strtolower(substr($url, strrpos($url, '.') + 1))]) {
                    $html = '<img src="' . $url . '" />';
                } else {
                    $html = $url;
                }
            } else {
                $html = '';
            }
            return buildTag($params, 'input autocomplete="off"') . $html;
            break;
        case 'bool':
            $params['type'] = 'checkbox';
            if ($value == 'true') {
                $params['checked'] = 'checked';
            }
            $params['value'] = "true";
            return buildTag($params, 'input');
            break;
        case 'combox':
            return buildTag($params, 'input autocomplete="off"');
            break;
        case 'textarea':
            $value = $params['value'];
            if ($params['width']) {
                $params['style'] .= ';width:' . $params['width'];
                unset($params['width']);
            }
            if ($params['height']) {
                $params['style'] .= ';height:' . $params['height'];
                unset($params['height']);
            }
            unset($params['value']);
            return buildTag($params, 'textarea', false) . htmlspecialchars($value) . '</textarea>';
            break;
        case 'checkbox':
            $params['selected'] = $params['value'];
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_checkboxes', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return smarty_function_html_checkboxes($params, $smarty);
            break;
        case 'radio':
            $params['selected'] = $params['value'];
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_radios', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return smarty_function_html_radios($params, $smarty);
            break;
        case 'select':
            if (isset($params['rows'])) {
                foreach ($params['rows'] as $item) {
                    $params['options'][$item[$params['valueColumn']]] = $item[$params['labelColumn']];
                }
            }
            if ($params['nulloption']) {
                $params['options'] = array_merge2(array('' => __('- 请选择 -')), $params['options']);
            }
            $params['selected'] = $params['value'];
            $t = buildTag($params, 'select', false);
            unset($params['name']);
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return $t . smarty_function_html_options($params, $smarty) . '</select>';
            break;
        case 'color':
            $params['selected'] = $params['value'] == '' ? '#000000' : $params['value'];
            $params['style'] = 'width:50px;background-color:' . $params['selected'];
            $params['onChange'] = "this.style.backgroundColor=this.options[this.selectedIndex].value;";
            $t = buildTag($params, 'select', false);
            unset($params['name']);
            $params['color'] = array('#00ffff' => '&nbsp;', '#000000' => '&nbsp;', '#ff00ff' => '&nbsp;', '#800000' => '&nbsp;', '#008000' => '&nbsp;', '#00ff00' => '&nbsp;', '#800000' => '&nbsp;', '#000080' => '&nbsp;', '#808000' => '&nbsp;', '#800080' => '&nbsp;', '#ff0000' => '&nbsp;', '#c0c0c0' => '&nbsp;', '#008080' => '&nbsp;', '#ffffff' => '&nbsp;', '#ffff00' => '&nbsp;', '#0000ff' => '&nbsp;');
            return $t . _build_color_options($params) . '</select>';
            break;
        case 'region':
            $SYSTEM =& $GLOBALS['system'];
            $loc =& $SYSTEM->loadModel('system/local');
            if ($params['required'] == 'true') {
                $req = ' vtype="area"';
            } else {
                $req = ' vtype=' . $params['vtype'];
            }
            if (!$params['value']) {
                $package = $params['package'] ? $params['package'] : $SYSTEM->getConf('system.location');
                return '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input ' . ($params['id'] ? ' id="' . $params['id'] . '"  ' : '') . ' type="hidden" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params) . '</span>';
            } else {
                list($package, $regions, $region_id) = explode(':', $params['value']);
                if (!is_numeric($region_id)) {
                    if (!$package) {
                        $package = $SYSTEM->getConf('system.location');
                    }
                    return '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params) . '</span>';
                } else {
                    $arr_regions = array();
                    $ret = '';
                    while ($region_id && ($region = $loc->instance($region_id, 'region_id,local_name,p_region_id'))) {
                        array_unshift($arr_regions, $region);
                        if ($region_id = $region['p_region_id']) {
                            $notice = "-";
                            $data = $loc->get_area_select($region['p_region_id'], $params, $region['region_id']);
                            if (!$data) {
                                $notice = "";
                            }
                            $ret = '<span class="x-region-child">&nbsp;' . $notice . '&nbsp' . $loc->get_area_select($region['p_region_id'], $params, $region['region_id']) . $ret . '</span>';
                        } else {
                            $ret = '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" value="' . $params['value'] . '" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params, $region['region_id']) . $ret . '</span>';
                        }
                    }
                    if (!$ret) {
                        $ret = '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" value="" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params, $region['region_id']) . '</span>';
                    }
                    return $ret;
                }
            }
            break;
        case 'fontset':
            $params['options'] = array('0' => '', '1' => '粗体', '2' => '斜体', '3' => '中线');
            $params['selected'] = $params['value'];
            $t = buildTag($params, 'select', false);
            unset($params['name']);
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return $t . smarty_function_html_options($params, $smarty) . '</select>';
            //return '<select id="'.$params['name'].'" name="'.$params['name'].'">'._comset_set($params['value'],$params['font']).'</select>';
            break;
        case 'arrow':
            $params['selected'] = $params['value'];
            $params['options'] = array('arrow_1.gif' => '箭头1', 'arrow_2.gif' => '箭头2', 'arrow_3.gif' => '箭头3', 'arrow_4.gif' => '箭头4', 'arrow_5.gif' => '箭头5', 6 => '自定义');
            //return '<select id="'.$params['name'].'" name="'.$params['name'].'" onClick="choosePic()">'._comset_set($params['value'],$params['arrow']).'</select>';
            $t = buildTag($params, 'select', false);
            unset($params['name']);
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return $t . smarty_function_html_options($params, $smarty) . '</select>';
            break;
        case 'com_select':
            $params['from'] = intval($params['from']);
            $params['options'] = array();
            $params['to'] = intval($params['to']);
            for ($i = $params['from']; $i <= $params['to']; $i++) {
                array_push($params['options'], $i);
            }
            $params['selected'] = $params['value'];
            $t = buildTag($params, 'select', false);
            unset($params['name']);
            smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
            return $t . smarty_function_html_options($params, $smarty) . '</select>';
            break;
        default:
            return buildTag($params, 'input autocomplete="off"');
    }
}
    function content_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 
            }
            ?>
			<?php 
        }
        ?>
*/
			</select>
		</td>
      </tr>-->
	  <tr>
        <td height="25"  align="right">细节图:</td>
        <td><input name="productPic" type="text" size="50" value="<?php 
        echo $_smarty_tpl->tpl_vars['productPic']->value;
        ?>
"/>&nbsp;&nbsp;&nbsp;&nbsp;<label style="cursor:hand" onClick="window.open('uploadPro/index.html','上传图片','height=200,width=400,top=200,left=200')">上传图片</label></td>
      </tr>
	  <tr>
        <td height="25"  align="right">缩略图:</td>
        <td><input name="detailPic" type="text" size="50" value="<?php 
        echo $_smarty_tpl->tpl_vars['detailPic']->value;
        ?>
"/></td>
      </tr>
	  <!--<tr>
        <td height="25"  align="right">产品细节图:</td>
        <td><input name="productDetailPic" type="text" size="40" value="<?php 
        echo $_smarty_tpl->tpl_vars['productDetailPic']->value;
        ?>
"/>&nbsp;&nbsp;&nbsp;&nbsp;<label style="cursor:hand" onClick="window.open('upload/upimg.htm','上传图片','height=200,width=400,top=200,left=200')">上传图片</label></td>
      </tr>
	  <tr>
        <td height="25" align="right">产品详情:</td>
        <td><?php 
        echo $_smarty_tpl->tpl_vars['editor']->value;
        ?>
</td><input type="hidden" name="FCKediter" value="<?php 
        echo $_smarty_tpl->tpl_vars['FCKediterValue']->value;
        ?>
" />
      </tr>-->
	  <tr><td height="5" colspan="2"></td></tr>
	  <tr><td height="25"></td><td><input name="submit" type="submit" value="立即保存"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" value="重新填写"/></td></tr>
    </table></form></td>
  </tr>
</table>
</body>
</html>
<?php 
    }
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>
                -->
$_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 
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 
        ?>
      <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 
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 
        <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>
?>
    <?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>
Esempio n. 14
0
function smarty_function_input($params, &$smarty)
{
    if (isset($params['attributes'])) {
        $params = $params['attributes'];
    }
    $params['style'] .= '';
    if (isset($params['width'])) {
        $params['style'] = 'width:' . $params['width'] . 'px;' . $params['style'];
        unset($params['width']);
    }
    $params['class'] = $params['class'] ? $params['class'] . ' _x_ipt' : '_x_ipt' . ' ' . $params['type'];
    $params['vtype'] = isset($params['vtype']) ? $params['vtype'] : $params['type'];
    if (isset($smarty->_tpl_vars['disabledElement']) && $smarty->_tpl_vars['disabledElement']) {
        $params['disabled'] = 'disabled';
    }
    if (substr($params['type'], 0, 4) == 'enum') {
        $params['type'] = $params['inputType'] ? $params['inputType'] : 'select';
        $params['vtype'] = $params['inputType'] ? $params['inputType'] : 'select';
    } elseif (substr($params['type'], 0, 7) != 'object:') {
        $params['type'] = $params['inputType'] ? $params['inputType'] : $params['type'];
        $params['vtype'] = $params['inputType'] ? $params['inputType'] : $params['type'];
    }
    if (substr($params['type'], 0, 7) == 'object:') {
        include 'objects.php';
        $aTmp = explode(':', $params['type']);
        $params['filter'] = $params['options'];
        //传递filter参数 added by Ever 20080701
        if (!$smarty->_loaded_object_module[$aTmp[1]][$aTmp[2]]['data']) {
            $mod =& $smarty->system->loadModel($objects[$aTmp[1]]);
            if ($aTmp[2]) {
                $params['data'] = $mod->{$aTmp}[2]();
                $smarty->_loaded_object_module[$aTmp[1]][$aTmp[2]]['data'] = $params['data'];
            }
        } else {
            $mod =& $smarty->system->loadModel($objects[$aTmp[1]]);
            $params['data'] = $smarty->_loaded_object_module[$aTmp[1]][$aTmp[2]]['data'];
        }
        return $mod->inputElement($params);
    } else {
        switch ($params['type']) {
            case 'text':
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'password':
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'search':
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'date':
                if (!$params['id']) {
                    $domid = 'mce_' . substr(md5(rand(0, time())), 0, 6);
                    $params['id'] = $domid;
                } else {
                    $domid = $params['id'];
                }
                if (is_int($params['value'])) {
                    $params['value'] = mydate('Y-m-d', $params['value']);
                }
                //            $params['value'] = mydate('Y-m-d',$params['value']);
                $params['type'] = 'text';
                return buildTag($params, 'input autocomplete="off"') . '<script>$("' . $domid . '").makeCalable();</script>';
                break;
            case 'color':
                if (!$params['id']) {
                    $domid = 'colorPicker_' . substr(md5(rand(0, time())), 0, 6);
                    $params['id'] = $domid;
                } else {
                    $domid = $params['id'];
                }
                if ($params['value'] == '') {
                    $params['value'] = 'default';
                    //          $params['style']='background-color:#ffffff;cursor:pointer';
                } else {
                    //        $params['style']='background-color:'.$params['value'].';cursor:pointer';
                }
                //           $params['readonly']='false';
                return buildTag($params, 'input autocomplete="off"') . ' <input type="button" id="c_' . $domid . '" style="width:22px;height:22px;background-color:' . $params['value'] . ';border:0px #ccc solid;cursor:pointer"/><script>
            new GoogColorPicker("c_' . $domid . '",{
               onSelect:function(hex,rgb,el){
                  $("' . $domid . '").set("value",hex);
                  el.setStyle("background-color",hex);
               }
            })</script>';
                break;
            case 'time':
                if (is_int($params['value'])) {
                    $params['value'] = mydate('Y-m-d H:i', $params['value']);
                }
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'file':
                if ($params['backend'] == 'public') {
                    if (!$GLOBALS['storager']) {
                        $system =& $GLOBALS['system'];
                        $GLOBALS['storager'] = $system->loadModel('system/storager');
                    }
                    $storager =& $GLOBALS['storager'];
                    $url = $storager->getUrl($params['value']);
                    $img = array('png' => 1, 'gif' => 1, 'jpg' => 1, 'jpeg' => 1);
                    if ($img[strtolower(substr($url, strrpos($url, '.') + 1))]) {
                        $html = '<img src="' . $url . '?' . time() . '" style="float:none" />';
                    } else {
                        $html = $url;
                    }
                } else {
                    $html = '';
                }
                return $html . buildTag($params, 'input autocomplete="off"');
                break;
            case 'bool':
                $params['type'] = 'checkbox';
                if ($params['value'] == 'true' || intval($params['value']) > 0) {
                    $params['checked'] = 'checked';
                }
                if ($params['value'] === '0' || $params['value'] === '1') {
                    $params['value'] = 1;
                } else {
                    $params['value'] = 'true';
                }
                return buildTag($params, 'input');
                break;
            case 'combox':
                return buildTag($params, 'input autocomplete="off"');
                break;
            case 'html':
                $id = 'mce_' . substr(md5(rand(0, time())), 0, 6);
                $system =& $GLOBALS['system'];
                $editor_type = $system->getConf("system.editortype");
                $editor_type == '' ? $editor_type = 'textarea' : ($editor_type = 'wysiwyg');
                if ($editor_type == 'textarea' || $params['editor_type'] == 'textarea') {
                    $smarty->_smarty_include(array('smarty_include_tpl_file' => 'editor/style_2.html', 'smarty_include_vars' => array('var' => $id, 'for' => $id)));
                } else {
                    $smarty->_smarty_include(array('smarty_include_tpl_file' => 'editor/style_1.html', 'smarty_include_vars' => array('var' => $id, 'for' => $id, 'includeBase' => $params['includeBase'] ? $params['includeBase'] : true)));
                }
                $params['id'] = $id;
                $params['editor_type'] = $params['editor_type'] ? $params['editor_type'] : $editor_type;
                $smarty->_smarty_include(array('smarty_include_tpl_file' => 'editor/body.html', 'smarty_include_vars' => $params));
                break;
            case 'textarea':
                $value = $params['value'];
                if ($params['width']) {
                    $params['style'] .= ';width:' . $params['width'];
                    unset($params['width']);
                }
                if ($params['height']) {
                    $params['style'] .= ';height:' . $params['height'];
                    unset($params['height']);
                }
                unset($params['value']);
                return buildTag($params, 'textarea', false) . htmlspecialchars($value) . '</textarea>';
                break;
            case 'checkbox':
                $params['selected'] = $params['value'];
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_checkboxes', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return smarty_function_html_checkboxes($params, $smarty);
                break;
            case 'radio':
                $params['selected'] = $params['value'];
                unset($params['value']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_radios', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return smarty_function_html_radios($params, $smarty);
                break;
            case 'select':
                if (isset($params['rows'])) {
                    foreach ($params['rows'] as $item) {
                        $params['options'][$item[$params['valueColumn']]] = $item[$params['labelColumn']] . $out;
                    }
                }
                if ($params['nulloption']) {
                    $params['options'] = array_merge2(array('' => __('- 请选择 -')), $params['options']);
                }
                $params['selected'] = $params['value'];
                $t = buildTag($params, 'select', false);
                unset($params['name']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return $t . smarty_function_html_options($params, $smarty) . '</select>';
                break;
            case 'fontset':
                $params['options'] = array('0' => '默认', '1' => '粗体', '2' => '斜体', '3' => '中线');
                $params['selected'] = $params['value'];
                $t = buildTag($params, 'select', false);
                unset($params['name']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return $t . smarty_function_html_options($params, $smarty) . '</select>';
                //return '<select id="'.$params['name'].'" name="'.$params['name'].'">'._comset_set($params['value'],$params['font']).'</select>';
                break;
            case 'region':
                $SYSTEM =& $GLOBALS['system'];
                $loc =& $SYSTEM->loadModel('system/local');
                if ($params['required'] == 'true') {
                    $req = ' vtype="area"';
                } else {
                    $req = ' vtype=' . $params['pptype'];
                }
                if (!$params['value']) {
                    $package = $params['package'] ? $params['package'] : $SYSTEM->getConf('system.location');
                    $package = $package ? $package : 'mainland';
                    return '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params) . '</span>';
                } else {
                    list($package, $regions, $region_id) = explode(':', $params['value']);
                    if (!is_numeric($region_id)) {
                        if (!$package) {
                            $package = $SYSTEM->getConf('system.location');
                        }
                        return '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params) . '</span>';
                    } else {
                        $arr_regions = array();
                        $ret = '';
                        while ($region_id && ($region = $loc->instance($region_id, 'region_id,local_name,p_region_id'))) {
                            array_unshift($arr_regions, $region);
                            if ($region_id = $region['p_region_id']) {
                                $ret = '<span class="x-region-child">&nbsp;-&nbsp' . $loc->get_area_select($region['p_region_id'], $params, $region['region_id']) . $ret . '</span>';
                            } else {
                                $ret = '<span package="' . $package . '" class="span _x_ipt"' . $req . '><input type="hidden" value="' . $params['value'] . '" name="' . $params['name'] . '" />' . $loc->get_area_select(null, $params, $region['region_id']) . $ret . '</span>';
                            }
                        }
                        return $ret;
                    }
                }
                break;
            case 'arrow':
                $params['selected'] = $params['value'];
                $params['options'] = array('arrow_1.gif' => '箭头1', 'arrow_2.gif' => '箭头2', 'arrow_3.gif' => '箭头3', 'arrow_4.gif' => '箭头4', 'arrow_5.gif' => '箭头5', 6 => '自定义');
                //return '<select id="'.$params['name'].'" name="'.$params['name'].'" onClick="choosePic()">'._comset_set($params['value'],$params['arrow']).'</select>';
                $t = buildTag($params, 'select', false);
                unset($params['name']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return $t . smarty_function_html_options($params, $smarty) . '</select>';
                break;
            case 'rank':
                $params['selected'] = $params['value'];
                $params['options'] = array('view_w_count' => '周访问次数', 'view_count' => '总访问次数', 'buy_w_count' => '周购买次数', 'buy_count' => '总购买次数', 'comments_count' => '评论次数');
                //return '<select id="'.$params['name'].'" name="'.$params['name'].'" onClick="choosePic()">'._comset_set($params['value'],$params['arrow']).'</select>';
                $t = buildTag($params, 'select', false);
                unset($params['name']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return $t . smarty_function_html_options($params, $smarty) . '</select>';
                break;
            case 'com_select':
                $params['from'] = intval($params['from']);
                $params['options'] = array();
                $params['to'] = intval($params['to']);
                for ($i = $params['from']; $i <= $params['to']; $i++) {
                    array_push($params['options'], $i);
                }
                $params['selected'] = $params['value'];
                $t = buildTag($params, 'select', false);
                unset($params['name']);
                smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', $smarty->_current_file, $smarty->_current_line_no, 20, false))), $smarty);
                return $t . smarty_function_html_options($params, $smarty) . '</select>';
                break;
            case 'viewIMG':
                return "<a style='text-decoration:none;' class='viewIMG' href='javascript:void(0);' onclick='viewIMG(\"" . $params['value'] . "\",this);this.blur();'  title='点击查看图片'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>";
                break;
            default:
                return buildTag($params, 'input autocomplete="off"');
        }
    }
}
        <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>
			<td class="response_prompt"><?php 
echo smarty_function_xl(array('t' => 'HIV'), $this);
?>
:</td>
			<td class="response"><?php 
echo smarty_function_html_radios(array('name' => 'hiv', 'options' => $this->_tpl_vars['form']->get_options(), 'selected' => $this->_tpl_vars['form']->get_hiv(), 'separator' => ""), $this);
?>
</td>
		</tr>
		<tr>
			<td class="response_prompt"><?php 
echo smarty_function_xl(array('t' => 'HAI Status'), $this);
?>
:</td>
			<td class="response"><?php 
echo smarty_function_html_radios(array('name' => 'hai_status', 'options' => $this->_tpl_vars['form']->get_options(), 'selected' => $this->_tpl_vars['form']->get_hai_status(), 'separator' => ""), $this);
?>
</td>
		</tr>
</tr><td>	
	</td>
</tr>

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

<tr>
<td>
	<input type="hidden" name="id" value="<?php 
echo $this->_tpl_vars['form']->get_id();
?>
        <th nowrap="nowrap" scope="row"><?php 
echo is_array($_tmp = 'D16A5F8E5ED6D23A15EB5EC2C2F90FD4') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
</th>
        <td><?php 
echo smarty_function_html_radios(array('options' => $this->_tpl_vars['cardType'], 'name' => 'card_type', 'onclick' => "\$('#search').submit()", 'selected' => $this->_tpl_vars['selectedCardType']), $this);
?>
</td>
      </tr>
      <tr>
        <th nowrap="nowrap" scope="row"><?php 
echo is_array($_tmp = 'B854970C3EA642D87C7F6B9C78935CE9') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
</th>
        <td><?php 
echo smarty_function_html_radios(array('options' => $this->_tpl_vars['payType'], 'name' => 'type', 'onclick' => "\$('#search').submit()", 'selected' => $this->_tpl_vars['selectedPayType']), $this);
?>
</td>
      </tr>
      <tr>
        <th nowrap="nowrap" scope="row"><?php 
echo is_array($_tmp = 'F8A6D8B063C23A7A2EECAE3BE91489A7') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
</th>
        <td><input type="text" class="text" value="<?php 
echo $this->_tpl_vars['selectedCard'];
?>
" name="card" size="60" /></td>
      <tr>
        <th nowrap="nowrap" scope="row"><?php 
echo is_array($_tmp = '17E9C9D09D1543C09A77C3EC3FD5C2CC') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    echo $this->_tpl_vars['dataObject']['game_type'];
    ?>

            <?php 
}
?>
            </td>
          </tr>
          <tr>
            <th scope="row" nowrap>运营商</th>
            <td>
            <?php 
if ($this->_tpl_vars['isAdd']) {
    ?>
            	<?php 
    echo smarty_function_html_radios(array('name' => 'operator_id', 'options' => $this->_tpl_vars['operatorList'], 'separator' => "&nbsp;"), $this);
    ?>

            <?php 
} else {
    ?>
            	<?php 
    echo $this->_tpl_vars['dataObject']['operator_id'];
    ?>

            <?php 
}
?>
            </td>
          </tr>
          <tr>
echo $this->_tpl_vars['item']['formattribute_ids'];
?>
">
       <div class="hint"><?php 
echo $this->_tpl_vars['_must_input_with_star'];
?>
</div>
        <table class="offer_info_content">

                      <tr>
                        <th class="circle_left"><font class="red">*</font><?php 
echo $this->_tpl_vars['_product_type'];
?>
</th>
                        <td class="circle_right"><?php 
echo smarty_function_html_radios(array('name' => "data[product][sort_id]", 'options' => $this->_tpl_vars['ProductSorts'], 'checked' => is_array($_tmp = @$this->_tpl_vars['item']['sort_id']) ? $this->_run_mod_handler('default', true, $_tmp, 2) : smarty_modifier_default($_tmp, 2), 'separator' => ' '), $this);
?>
</td>
                      </tr>
                      <tr>
                        <th><font class="red">*</font><?php 
echo $this->_tpl_vars['_product_name'];
?>
</th>
                        <td class="tdright"><input name="data[product][name]" type="text" id="dataProductName" value="<?php 
echo $this->_tpl_vars['item']['name'];
?>
">
                        <font color="#666666"><?php 
echo $this->_tpl_vars['_words_length'];
?>
  <td COLSPAN="2" ALIGN="LEFT" VALIGN="MIDDLE" >
    <?php 
    echo smarty_function_html_options(array('name' => 'substitute', 'options' => $this->_tpl_vars['prescription']->substitute_array, 'selected' => $this->_tpl_vars['prescription']->substitute), $this);
    ?>

  </td>
<?php 
} else {
    ?>
  <td COLSPAN="1" class="text" ALIGN="right" VALIGN="MIDDLE" ><?php 
    echo smarty_function_xl(array('t' => 'Add to Medication List'), $this);
    ?>
</td>
  <td COLSPAN="2" class="text" ALIGN="LEFT" VALIGN="MIDDLE" >
    <?php 
    echo smarty_function_html_radios(array('name' => 'medication', 'options' => $this->_tpl_vars['prescription']->medication_array, 'selected' => $this->_tpl_vars['prescription']->medication), $this);
    ?>

    &nbsp; &nbsp;
    <?php 
    echo smarty_function_html_options(array('name' => 'substitute', 'options' => $this->_tpl_vars['prescription']->substitute_array, 'selected' => $this->_tpl_vars['prescription']->substitute), $this);
    ?>

  </td>
<?php 
}
?>
</tr>
</table>
<input type="hidden" name="id" value="<?php 
echo $this->_tpl_vars['prescription']->id;
		  <td><?php 
echo $this->_tpl_vars['langs']['TEXT_FAQ_STATUS'];
?>
</td>
		  <td><?php 
echo smarty_function_html_radios(array('name' => 'faq_status', 'options' => $this->_tpl_vars['status_options'], 'selected' => $this->_tpl_vars['faq_status'], 'separator' => "<br /><br />"), $this);
?>
</td>
	  </tr>    
	<tr>
		  <td><?php 
echo $this->_tpl_vars['langs']['TEXT_FAQ_ISTOPIC'];
?>
</td>
		  <td><?php 
echo smarty_function_html_radios(array('name' => 'is_topic', 'options' => $this->_tpl_vars['yesno_status_options'], 'selected' => $this->_tpl_vars['is_topic'], 'separator' => "<br /><br />"), $this);
?>
</td>
	  </tr>    	  
	  <tr><td colspan="2">
	  	<ul id="infotabs" class="shadetabs">
		<?php 
unset($this->_sections['languageidx']);
$this->_sections['languageidx']['name'] = 'languageidx';
$this->_sections['languageidx']['loop'] = is_array($_loop = $this->_tpl_vars['languages']) ? count($_loop) : max(0, (int) $_loop);
unset($_loop);
$this->_sections['languageidx']['show'] = true;
$this->_sections['languageidx']['max'] = $this->_sections['languageidx']['loop'];
$this->_sections['languageidx']['step'] = 1;
$this->_sections['languageidx']['start'] = $this->_sections['languageidx']['step'] > 0 ? 0 : $this->_sections['languageidx']['loop'] - 1;
if ($this->_sections['languageidx']['show']) {
								</td>
							</tr>
							<?php 
}
?>
							<tr class="fs12n">
								<td width="140" bgcolor="#f2f1ec">稼働・非稼働<span class="red">*</span></td>
								<td width="637" bgcolor="#ffffff">
								<span <?php 
if (is_array($_tmp = $this->_tpl_vars['ERROR']['active']) ? $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' => 'active', 'options' => is_array($_tmp = $this->_tpl_vars['arrActive']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'selected' => is_array($_tmp = $_POST['active']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)), $this);
?>

								</span>
								<?php 
if (is_array($_tmp = $this->_tpl_vars['ERROR']['active']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) {
    ?>
<br><span class="red"><?php 
    echo is_array($_tmp = $this->_tpl_vars['ERROR']['active']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
    ?>
</span><?php 
}
?>
								</td>
							</tr>
							<tr class="fs12n">
                </div>
            </div>
            <div class="row">
                <div class="col-md-offset-1 col-md-5">
                    <div id="panel1" class="panel panel-primary">
                        <div class="panel-heading pagination-centered">
                            <h4>
                                Подача объявлений
                            </h4>
                        </div>
                        <div class="panel-body">
                            <form class="form-horizontal" id="ads_form" method="POST" role="form">
                                <div class="form-group form-group-sm">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <?php 
echo smarty_function_html_radios(array('name' => 'organization_form_id', 'options' => $this->_tpl_vars['organization_form'], 'selected' => is_array($_tmp = @$this->_tpl_vars['organization_form_id']) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0), 'separator' => "&nbsp;"), $this);
?>

                                    </div>
                                </div>

                                <div class="form-group form-group-sm">
                                    <label for="seller_name" class="col-sm-2 control-label"><?php 
echo $this->_tpl_vars['ad_person'];
?>
</label>
                                    <div class="col-sm-10">
                                        <input type="text" name="seller_name" class="form-control" id="seller_name" value="<?php 
echo is_array($_tmp = @$this->_tpl_vars['seller_name']) ? $this->_run_mod_handler('default', true, $_tmp, '') : smarty_modifier_default($_tmp, '');
?>
" placeholder="Ваше имя">
            <td><?php 
echo smarty_function_html_radios(array('options' => $this->_tpl_vars['qualityStatus'], 'selected' => $this->_tpl_vars['selectedStatus'], 'name' => 'status'), $this);
?>
</td>
          </tr>
          <tr>
            <th scope="row">扣分选择</th>
            <td><?php 
echo smarty_function_html_radios(array('options' => $this->_tpl_vars['scores'], 'name' => 'scores', 'selected' => $this->_tpl_vars['selectedSource']), $this);
?>
</td>
          </tr>
          <tr>
            <th scope="row">超时选择</th>
            <td><?php 
echo smarty_function_html_radios(array('options' => $this->_tpl_vars['timeout'], 'name' => 'is_timeout', 'selected' => $this->_tpl_vars['selectedTimeout']), $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>
        <th scope="col">回复内容</th>
if ($_SERVER['HTTPS'] != 'on') {
    ?>
				<li>住所や経歴など大切な個人情報を扱う場合は<span class="help" title="サーバとブラウザを安全に通信する技術">SSL暗号</span>への対応をご検討下さい。(現在非対応)</li>
<?php 
}
?>
			</ul>
<?php 
$_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);
?>
			<p>
				<?php 
echo smarty_function_html_radios(array('name' => 'type', 'options' => $this->_tpl_vars['app']['type_options'], 'selected' => $this->_tpl_vars['app']['type'], 'label_ids' => true, 'onclick' => "this.form.submit();"), $this);
?>

			</p>
			<p>
				<select id="index" name="index">
					<?php 
echo smarty_function_html_options(array('options' => $this->_tpl_vars['app']['index_options'], 'selected' => $this->_tpl_vars['app']['index']), $this);
?>

				</select>
				行目に追加
			</p>
			<p>
				<input type="button" value="前へ戻る" class="button" onclick="location.href='<?php 
echo $this->_tpl_vars['script'];
	<legend>用户搜索</legend>
  <form action="" method="get">
      <input type="hidden" value="User" name="c"  />
        <input type="hidden" value="User" name="a" />
   	  <table width="100%" border="0" cellspacing="2" cellpadding="2">
        <tr>
          <th scope="row">部门选择</th>
          <td><?php 
echo smarty_function_html_radios(array('options' => $this->_tpl_vars['selectDepartmentList'], 'name' => 'department_id', 'selected' => $this->_tpl_vars['selectedDepartmentId']), $this);
?>
</td>
        </tr>
        <tr>
          <th scope="row">组别选择</th>
          <td><?php 
echo smarty_function_html_radios(array('options' => $this->_tpl_vars['selectOrgList'], 'name' => 'org_id', 'selected' => $this->_tpl_vars['selectedOrgId']), $this);
?>
</td>
        </tr>
        <tr>
          <th scope="row">搜索选项</th>
          <td>
            账号:<input type="text" class="text" name="user_name" value="<?php 
echo $this->_tpl_vars['selectedUserName'];
?>
" />
            姓名搜索:<input type="text" class="text" name="nick_name" value="<?php 
echo $this->_tpl_vars['selectedNickName'];
?>
" />
            <input type="submit" class="btn-blue" value="提交" />
        echo $this->_tpl_vars['labels']['keywords_filter_help'];
        ?>
"
				            multiple="multiple"
				            size="<?php 
        echo $this->_tpl_vars['control']->filters['filter_keywords']['size'];
        ?>
">
				    <?php 
        echo smarty_function_html_options(array('options' => $this->_tpl_vars['control']->filters['filter_keywords']['items'], 'selected' => $this->_tpl_vars['control']->filters['filter_keywords']['selected']), $this);
        ?>

					</select>

			<?php 
        echo smarty_function_html_radios(array('name' => 'filter_keywords_filter_type', 'options' => $this->_tpl_vars['control']->filters['filter_keywords']['filter_keywords_filter_type']['items'], 'selected' => $this->_tpl_vars['control']->filters['filter_keywords']['filter_keywords_filter_type']['selected']), $this);
        ?>

				</td>
			</tr>
		<?php 
    }
    ?>

		<?php 
    if ($this->_tpl_vars['control']->filters['filter_priority']) {
        ?>
			<tr>
				<th width="75"><?php 
        echo $this->_tpl_vars['labels']['priority'];
        ?>
?>
<a href="<?php 
echo $this->_tpl_vars['url']['GameOperator_CreateCacheGameOperator'];
?>
">创建缓存</a>
<fieldset>
	<legend>增加索引</legend>
    <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>
?>

            </td>
        </tr>
        <tr>
            <th><?php 
echo smarty_function_t(array('string' => "tpl_Taxation rules<span class='attention'> *</span>_01", 'escape' => 'none'), $this);
?>
</th>
            <td>
                <span class="attention"><?php 
echo is_array($_tmp = $this->_tpl_vars['arrErr']['tax_rule']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
?>
</span>
                <?php 
echo smarty_function_html_radios(array('name' => 'tax_rule', 'options' => is_array($_tmp = $this->_tpl_vars['arrTAXRULE']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'selected' => is_array($_tmp = $this->_tpl_vars['arrForm']['tax_rule']) ? $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_Conditions for free shipping_01'), $this);
?>
 </th>
            <td>
                <span class="attention"><?php 
echo is_array($_tmp = $this->_tpl_vars['arrErr']['free_rule']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
?>
</span>
                <input type="text" name="free_rule" value="<?php 
      <tr>
        <th class="paddingT15">If enable:</th>
        <td class="paddingT15 wordSpacing5">          
		<?php 
echo smarty_function_html_radios(array('name' => "ad[state]", 'options' => $this->_tpl_vars['AdsStatus'], 'checked' => is_array($_tmp = @$this->_tpl_vars['item']['state']) ? $this->_run_mod_handler('default', true, $_tmp, '1') : smarty_modifier_default($_tmp, '1'), 'separator' => ' '), $this);
?>
        </td>
      </tr>
      <tr>
        <th class="paddingT15"><?php 
echo $this->_tpl_vars['_if_valid'];
?>
</th>
        <td class="paddingT15 wordSpacing5">          
		<?php 
echo smarty_function_html_radios(array('name' => "ad[status]", 'options' => $this->_tpl_vars['AdsStatus'], 'checked' => is_array($_tmp = @$this->_tpl_vars['item']['status']) ? $this->_run_mod_handler('default', true, $_tmp, '1') : smarty_modifier_default($_tmp, '1'), 'separator' => ' '), $this);
?>
</td>
      </tr>
      <tr>
        <th class="paddingT15">Valid until:</th>
        <td class="paddingT15 wordSpacing5"> 
		<input name="data[end_date]" value="<?php 
echo $this->_tpl_vars['item']['end_date'];
?>
" type="text" id="date1" /><span class="btn_calendar" id="calendar-date1"></span><label class="field_notice">Empty that never expires</label></td>
      </tr>
      <tr>
        <th class="paddingT15">Show pictures after the expiration of:</th>
        <td class="paddingT15 wordSpacing5"><input class="infoTableInput2" name="ad[picture_replace]" value="<?php 
if ($this->_tpl_vars['item']['id']) {