本文整理汇总了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;
}
示例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
示例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>