formselect.func.php
来自「phpcms2007很好的cms内容管理系统,操作方便」· PHP 代码 · 共 17 行
PHP
17 行
<?php
function yp_urlrule_select($name, $fileext = 'html', $type = 'cat', $urlruleid = 0, $property = '')
{
global $mod,$LANG;
if(!$name) return true;
include PHPCMS_ROOT."/yp/include/urlrule.inc.php";
$string = "<select name=\"".$name."\" ".$property.">\n";
for($i=0; $i<count($urlrule[$fileext][$type]); $i++)
{
$selected = $i==$urlruleid ? " selected=\"selected\"" : "";
$string.="<option value=\"".$i."\"".$selected.">".$LANG['example'].":".$urlrule[$fileext][$type][$i]['example']."</option>\n";
}
$string.="</select>\n";
return $string;
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?