📄 formselect.func.php
字号:
<?php
function display_urlrule_select($name, $fileext = 'html', $type = 'item', $urlruleid = 0, $property = '')
{
global $mod,$LANG;
if(!$name) return true;
include PHPCMS_ROOT."/$mod/include/urlrule.inc.php";
$string = "<select name=\"".$name."\" ".$property.">\n";
$dft = $displayrule[$fileext][$type];
$cou = count($dft);
for($i=0; $i<$cou; $i++)
{
$selected = $i==$urlruleid ? " selected=\"selected\"" : "";
$example = $displayrule[$fileext][$type][$i]['example'];
$string.="<option value=\"".$i."\"".$selected.">".$LANG['example'].":".$example."</option>\n";
}
$string.="</select>\n";
return $string;
}
function house_urlrule_select($name, $fileext = 'html', $type = 'item', $urlruleid = 0, $property = '')
{
global $mod,$LANG;
if(!$name) return true;
include PHPCMS_ROOT."/$mod/include/urlrule.inc.php";
$string = "<select name=\"".$name."\" ".$property.">\n";
$dft = $urlrule[$fileext][$type];
$cou = count($dft);
for($i=0; $i<$cou; $i++)
{
$selected = $i==$urlruleid ? " selected=\"selected\"" : "";
$example = $urlrule[$fileext][$type][$i]['example'];
$string.="<option value=\"".$i."\"".$selected.">".$LANG['example'].":".$example."</option>\n";
}
$string.="</select>\n";
return $string;
}
function areaid_select($name = 'areaidselect',$onlyoptionlabel=1, $areaid_id = 0, $alt='', $property = '',$valuetype = 'name')
{
global $areaidS;
$areaidselect = '';
foreach ($areaidS as $k=>$areaid)
{
$selected = $k == $areaid_id ? 'selected' : '';
if($valuetype == 'name')
{
$areaidselect .= "<option value='".$k."' ".$selected.">".$areaid."</option>\n";
}
else
{
$areaidselect .= "<option value='".$k."' ".$selected.">".$areaid."</option>\n";
}
}
if(!$onlyoptionlabel)
{
$areaidselect="<select name='".$name."' ".$property.">\n<option value=''>".$alt."</option>\n".$areaidselect.
"</select>";
}
return $areaidselect;
}
function infocat_select($name = 'infocatselect',$onlyoptionlabel=1, $typeid = 0, $alt='', $property = '',$valuetype = 'name')
{
$INFO = array('1'=> '鍑虹
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -