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


PHP SC_Utils_Ex::sfGetErrorColor方法代码示例

本文整理汇总了PHP中SC_Utils_Ex::sfGetErrorColor方法的典型用法代码示例。如果您正苦于以下问题:PHP SC_Utils_Ex::sfGetErrorColor方法的具体用法?PHP SC_Utils_Ex::sfGetErrorColor怎么用?PHP SC_Utils_Ex::sfGetErrorColor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SC_Utils_Ex的用法示例。


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

示例1: createForm2

 function createForm2(SC_FormParam $objFormParam)
 {
     $form = new HTML_QuickForm("form2", "POST", $_SERVER["REQUEST_URI"]);
     $form->addElement("header", "header", "きせかえ Touch 設定");
     $form->addElement("hidden", TRANSACTION_ID_NAME, $this->transactionid);
     $form->addElement("hidden", "mode", "edit_kisekae");
     $arrForm = $objFormParam->getFormParamList();
     foreach ($arrForm as $key => $config) {
         $form->addElement("text", $key, $config["disp_name"], array("size" => 30, "class" => "box30", "value" => $config["value"], "style" => SC_Utils_Ex::sfGetErrorColor($this->arrErr[$key]), "max_length" => $config["length"]));
         $form->addRule($key, $this->arrErr[$key], 'required');
         $form->addRule($key, $this->arrErr[$key], 'rangelength', array($config["length"], $config["length"]));
         $form->addRule($key, $this->arrErr[$key], 'alphanumeric');
     }
     $form->addElement("submit", "", "設定");
     return $form;
 }
开发者ID:alice-asahina,项目名称:kisekae_touch,代码行数:16,代码来源:LC_Page_Admin_Plugin_KisekaeTouch_Config.php

示例2: smarty_function_t

echo smarty_function_t(array('string' => 'tpl_Message_01'), $this);
?>
</th>
            <td>
                <?php 
$this->assign('key', 'message');
?>
                <span class="attention"><?php 
echo is_array($_tmp = $this->_tpl_vars['arrErr'][$this->_tpl_vars['key']]) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
?>
</span>
                <textarea name="<?php 
echo is_array($_tmp = $this->_tpl_vars['key']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
?>
" cols="60" rows="8" class="area60" style="<?php 
echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrErr'][$this->_tpl_vars['key']]) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('sfGetErrorColor', true, $_tmp) : SC_Utils_Ex::sfGetErrorColor($_tmp);
?>
" ><?php 
echo "\n";
echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrForm'][$this->_tpl_vars['key']]) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp);
?>
</textarea>
                <span class="attention"> <?php 
echo smarty_function_t(array('string' => "tpl_(T_ARG1 characters max)_01", 'T_ARG1' => is_array($_tmp = @LLTEXT_LEN) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)), $this);
?>
</span>
            </td>
        </tr>
    </table>

    <h2><?php 
开发者ID:Rise-Up-Cambodia,项目名称:Rise-Up,代码行数:31,代码来源:%%E4^E40^E40727D5%%index.tpl.php

示例3: is_array

            ?>
" />
                                            <input type="hidden" name="category_id" value="<?php 
            echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['category_id']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp);
            ?>
" />
                                            <input type="hidden" name="rank" value="<?php 
            echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrItems'][$this->_sections['cnt']['iteration']]['rank']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp);
            ?>
" />
                                            <span class="attention"><?php 
            echo is_array($_tmp = $this->_tpl_vars['arrErr'][$this->_sections['cnt']['iteration']]['comment']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
            ?>
</span>
                                            <textarea class="top" name="comment" cols="45" rows="4" style="width: 586px; height: 80px; <?php 
            echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrErr'][$this->_sections['cnt']['iteration']]['comment']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('sfGetErrorColor', true, $_tmp) : SC_Utils_Ex::sfGetErrorColor($_tmp);
            ?>
" <?php 
            echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrItems'][$this->_sections['cnt']['iteration']]['product_id']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('sfGetEnabled', true, $_tmp) : SC_Utils_Ex::sfGetEnabled($_tmp);
            ?>
><?php 
            echo "\n";
            echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrItems'][$this->_sections['cnt']['iteration']]['comment']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp);
            ?>
</textarea>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </td>
开发者ID:Rise-Up-Cambodia,项目名称:Rise-Up,代码行数:31,代码来源:%%77^773^773DE62C%%recommend.tpl.php


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