📄 inc_catalog_options.php
字号:
<?php
if(!defined('DEDEMEMBER'))
{
exit("dedecms");
}
function GetOptionList($selid=0,$channeltype=0)
{
global $OptionArrayList,$channels,$dsql;
$dsql->SetQuery("Select id,typename From `#@__channeltype` ");
$dsql->Execute();
$channels = Array();
while($row = $dsql->GetObject())
{
$channels[$row->id] = $row->typename;
}
$OptionArrayList = "";
$query = "Select id,typename,ispart,channeltype,issend From `#@__arctype` where ispart<2 And reid=0 order by sortrank asc ";
$dsql->SetQuery($query);
$dsql->Execute();
$selected = '';
while($row=$dsql->GetObject())
{
if($selid==$row->id)
{
$selected = " selected='$selected'";
}
if($row->channeltype==$channeltype && $row->issend==1)
{
if($row->ispart==0)
{
$OptionArrayList .= "<option value='".$row->id."' class='option3'{$selected}>".$row->typename."</option>\r\n";
}
else if($row->ispart==1)
{
$OptionArrayList .= "<option value='".$row->id."' class='option2'{$selected}>".$row->typename."</option>\r\n";
}
}
$selected = '';
LogicGetOptionArray($row->id,"鈹
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -