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


PHP dencode函数代码示例

本文整理汇总了PHP中dencode函数的典型用法代码示例。如果您正苦于以下问题:PHP dencode函数的具体用法?PHP dencode怎么用?PHP dencode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: Subseribe

function Subseribe($sidename, $sidetitle, $htmlcode, $isInstall)
{
    global $settingInfo;
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<div class="sidepanel" id="Side_Site_Subseribe">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
		<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    }
    ?>
   </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:34,代码来源:Subseribe_tw.php

示例2: emu

function emu($code)
{
    $view = "";
    $code = dencode($code);
    $searcharray = explode("<br />", $code);
    $view = '';
    $temp = $total = 0;
    $view = "<div class=\"emuletop\">eMule资源</div><div class=\"emulemain\" align=\"center\"><table border=\"0\" align=\"center\" cellpadding=\"2\" cellspacing=\"1\" width=\"100%\"><tr><td colspan=\"2\" align=\"center\"><a href=\"http://www.emule.org.cn/download/\" target=\"_blank\">下面是用户共享的文件列表,安装eMule后,您可以点击这些文件名进行下载</a></td></tr>";
    foreach ($searcharray as $emule) {
        $emule = trim($emule);
        if ($emule != '' && strpos(";{$emule}", "ed2k://") == 1) {
            $temp++;
            $emule = trim($emule);
            $emule_array = explode("|", $emule);
            $total += $emule_array[3];
            $totalper = esizecount($emule_array[3]);
            if ($temp % 2 != 0) {
                $view .= "<tr><td align=\"left\" class=\"post2\"><input type=\"checkbox\" class=\"forminput\" name=\"em{$codecount}\" value=\"{$emule}\" onclick=\"em_size('em{$codecount}');\" checked=\"checked\" /> <a href=\"{$emule}\"><script language=\"javascript\">document.write(unescape(decodeURIComponent(\"{$emule_array['2']}\")));</script></a></td><td align=\"center\" class=\"post2\">{$totalper}</td></tr>";
            } else {
                $view .= "<tr><td align=\"left\"><input type=\"checkbox\" class=\"forminput\" name=\"em{$codecount}\" value=\"{$emule}\" onclick=\"em_size('em{$codecount}');\" checked=\"checked\" /> <a href=\"{$emule}\"><script language=\"javascript\">document.write(unescape(decodeURIComponent(\"{$emule_array['2']}\")));</script></a></td><td align=\"center\">{$totalper}</td></tr>";
            }
        }
    }
    $total = esizecount($total);
    if ($temp > 0 && $temp != 1) {
        $view .= "<tr><td align=\"left\"class=\"post2\"><input type=\"checkbox\" id=\"checkall_em{$codecount}\" class=\"forminput\"  onclick=\"echeckAll('em{$codecount}',this.checked)\" checked /> <label for=\"checkall_em{$codecount}\">全选</label> <input type=\"button\" value=\"下载选中的文件\" class=\"button\" onclick=\"download('em{$codecount}',0,1)\" /> <input type=\"button\" value=\"复制选中的链接\" class=\"button\" onclick=\"copy('em{$codecount}')\" /><div id=\"ed2kcopy_em{$codecount}\" style=\"position:absolute;height:0px;width:0px;overflow:hidden;\"></div></td><td align=\"center\" id=\"size_em{$codecount}\"class=\"post2\">{$total}</td></tr>";
    }
    $return = "{$view}</table></div>";
    return $return;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:30,代码来源:eMule.php

示例3: copyrightsYou

function copyrightsYou($mainname, $maintitle, $htmlcode)
{
    ?>
<!--免责声明-->
<div id="MainContent_<?php 
    echo $mainname;
    ?>
" class="content-width">
	<div class="Content-top">
		<h1 class="ContentTitle"><a class="titleA">免责声明</a></h1>
	</div>
	<div class="Content-body">
		<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
			<font color="#339900">本博客立志于收集各类儿童教育资料及技术信息,便于本人和广大网友及家长查询检索,无论公司或个人认为本站存在侵权内容均可与本站联系,任何此类反馈信息一经查明属实后,将立即删除!</font>
		<?php 
    }
    ?>
    </div>	
</div>
<?php 
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:25,代码来源:copyrights.php

示例4: FlashClockStatistics

function FlashClockStatistics($sidename, $sidetitle, $htmlcode, $isInstall)
{
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<!--FlashClockStatistics-->
<div id="Side_FlashClockStatistics" class="sidepanel">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
	<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
		<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="130" height="130">
		<param name="movie" value="plugins/FlashClock/clock.swf">
		<param name="quality" value="high">
		<param name="wmode" value="transparent">
		<embed src="clock.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="130" height="130"></embed></object>
	<?php 
    }
    ?>
  </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:42,代码来源:FlashClock.php

示例5: NetExtractYou

function NetExtractYou($mainname, $maintitle, $htmlcode)
{
    ?>
<!--加入网摘-->
<div class="comment">
	<div class="commenttop">
		<img src="plugins/NetExtract/images/vivi.gif" alt="" style="margin:0px 4px -3px 0px"/><strong>&nbsp;加入网摘</strong>
	</div>
	<div class="commentcontent">
		<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
			<script type="text/javascript" src="plugins/NetExtract/NetExtract.js"></script>
		<?php 
    }
    ?>
    </div>	
</div>
<?php 
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:22,代码来源:NetExtract.php

示例6: flashDailyStatistics

function flashDailyStatistics($sidename, $sidetitle, $htmlcode, $isInstall)
{
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<!--FlashDailyStatistics-->
<div id="Side_flashDailyStatistics" class="sidepanel">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
	<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
		<object style="border:0px solid;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="165" height="93.5"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="plugins/flashDaily/counter.swf?counter=7"/><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /></object>
	<?php 
    }
    ?>
  </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:38,代码来源:flashDaily.php

示例7: GoogleSearch

function GoogleSearch($sidename, $sidetitle, $htmlcode, $isInstall)
{
    global $settingInfo;
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<div class="sidepanel" id="Side_Site_GoogleSearch">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
		<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
		<script language="JavaScript" type="text/JavaScript" src="http://zhidao.baidu.com/q?ct=18&cid=84&tn=fcuqlclass&pn=50&lm=0&rn=8"></script>
		<?php 
    }
    ?>
   </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:38,代码来源:GoogleSearch.php

示例8: weather_report

function weather_report($sidename, $sidetitle, $htmlcode, $isInstall)
{
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<!--天气预报-->
<div id="Side_WeatherReport" class="sidepanel">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
  	<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
		<IFRAME ID='ifm2' WIDTH='175' HEIGHT='190' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='http://weather.news.qq.com/inc/ss272.htm'></IFRAME>
	<?php 
    }
    ?>
  </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:38,代码来源:weather.php

示例9: flashLink

function flashLink($sidename, $sidetitle, $htmlcode, $isInstall)
{
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<!--flashLink-->
<div id="Side_flashLink" class="sidepanel">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
	<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
		<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6&#44;0&#44;29&#44;0" height="210" width="168" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="plugins/flashLink/link.swf?xml_url=plugins/flashLink/link.xml" name="movie" /><param value="high" name="quality" /><param value="false" name="menu" /></object>
	<?php 
    }
    ?>
  </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:38,代码来源:flashLink.php

示例10: CallBoardYou

function CallBoardYou($mainname, $maintitle, $htmlcode)
{
    ?>
<!--滚动的公告板-->
<div id="MainContent_<?php 
    echo $mainname;
    ?>
" class="content-width">
		<?php 
    if ($htmlcode != "") {
        $arrCode = explode("<br />", $htmlcode);
        ?>
		<table width="100%" height="40" border="0" align="center" cellpadding="0" cellspacing="0" style="background:#f5f9f4;border:2px solid #eaeee8;font-size:12px;text-align:left;">
		<tr>
		<td width="36" align="center"><img src="plugins/CallBoard/callBoard.gif" alt="公告板" /></td>
		<td width="95%" align="right" >
		<div id="icefable1" valign="top">
			<TABLE style="COLOR:#000" height="40" cellSpacing="0" cellPadding="0" width="100%" border="0">
			<?php 
        foreach ($arrCode as $key => $value) {
            ?>
			<TR><TD align=left height=20>&nbsp;<?php 
            echo dencode(trim($value));
            ?>
</TD></TR>
			<?php 
        }
        ?>
			</TABLE>
		</div>

		<script language=javascript> 
			if (navigator.product != 'Gecko'){
				marqueesHeight=20//滚动的高度 
				delaytime = 140 //停留时间 
				scrollupRadio = 18 //每段显示中的文字向上滚动速度... 
				stopscroll=false; 
				document.getElementById('icefable1').scrollTop=0; 
				//设置层的属性 
				with(document.getElementById('icefable1')){  
					//宽度0 
					//style.width=330; 
					//高度为设定的滚动高度 
					style.height=40; 
					//溢出不显示.. 
					style.overflowX="visible"; 
					style.overflowY="hidden"; 
					//不允许换行.. 
					noWrap= false //true; 
					onmouseover=new Function("stopscroll_=true"); 
					onmouseout=new Function("stopscroll_=false"); 
				}

				//将层中的数据输出两次,由于限制了高度,所以不会显示出来; 
				document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML; 
				function init_srolltext(){  
					document.getElementById('icefable1').scrollTop= 0; 
					setInterval("scrollUp()",scrollupRadio); //滚动速度...100 
				} 

				init_srolltext(); 
				preTop=0; currentTop=0; stoptime=0; 
				function scrollUp(){  
					if(stopscroll==true) return; 
					currentTop+=1; 
					if(currentTop==21){  
						stoptime+=1; 
						currentTop-=1; 
						if(stoptime==delaytime){  
							currentTop=0; 
							stoptime=0; 
						} 
					} else {     
						preTop=document.getElementById('icefable1').scrollTop; 
						document.getElementById('icefable1').scrollTop+=1; 
						if(preTop==document.getElementById('icefable1').scrollTop){  
							document.getElementById('icefable1').scrollTop=20
							document.getElementById('icefable1').scrollTop+=1; 
						} 
					} 
				} 
			}
		</script> 				
		</td>
		</tr>
		</table>
<?php 
    }
    ?>
</div>
<?php 
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:92,代码来源:CallBoard.php

示例11: md5

     $sql = "select * from {$op_table} where id='" . $postid . "' and password='" . md5($_POST['replypassword']) . "'";
 }
 $result = $DMF->query($sql);
 if (!($arr_result = $DMF->fetchArray($result))) {
     $ActionMessage = $strGuestBookRightsError;
     $_GET['action'] = "error";
 } else {
     //编辑,读出原记录
     if ($_POST['chkaction'] == "edit") {
         $username = $arr_result['author'];
         if ($_GET['load'] == "guestbook") {
             //留言
             $homepage = $arr_result['homepage'];
             $email = $arr_result['email'];
         }
         $message = str_replace("<br />", "", dencode($arr_result['content']));
         $postTime = $arr_result['postTime'];
         $isSecret = $arr_result['isSecret'];
         $old_password = $arr_result['password'];
     }
     //删除记录
     if ($_POST['chkaction'] == "del") {
         $del_id = 0;
         if ($arr_result['parent'] == "0") {
             //删除的是主项目,其子项目也要清除
             $sql = "select * from {$op_table} where parent='" . $arr_result['id'] . "'";
             $result = $DMF->query($sql);
             while ($sub_result = $DMF->fetchArray($result)) {
                 $sql = "delete from {$op_table} where id='" . $sub_result['id'] . "'";
                 $DMF->query($sql);
                 //echo $sql."<br>";
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:editdel.php

示例12: side_other

function side_other($sidename, $sidetitle, $htmlcode, $isInstall)
{
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<!--其它Side-->
<div id="Side_OtherSide" class="sidepanel">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
  	<div id="Other_Body"><?php 
    echo dencode($htmlcode);
    ?>
</div>
  </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:33,代码来源:sidebar.inc.php

示例13: dencode

    $perPageNormal = $settingInfo['perPageNormal'];
    $perPageList = $settingInfo['perPageList'];
    $isLinkTagLog = $settingInfo['isLinkTagLog'];
    $linkTagLog = $settingInfo['linkTagLog'];
    $isProgramRun = $settingInfo['isProgramRun'];
    $commTimerout = $settingInfo['commTimerout'];
    $commLength = $settingInfo['commLength'];
    $isValidateCode = $settingInfo['isValidateCode'];
    $isRegister = $settingInfo['isRegister'];
    $status = $settingInfo['status'];
    $closeReason = dencode($settingInfo['closeReason']);
    $language = $settingInfo['language'];
    $timezone = $settingInfo['timezone'];
    $timeSystemFormat = $settingInfo['timeSystemFormat'];
    $isTbApp = $settingInfo['isTbApp'];
    $tbSiteList = dencode($settingInfo['tbSiteList']);
    $newRss = $settingInfo['newRss'];
    $rssContentType = $settingInfo['rssContentType'];
    $tagNums = $settingInfo['tagNums'];
}
?>

<form action="" method="post" enctype="multipart/form-data" name="seekform">
  <div id="content">
  <div class="box">
    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="6" height="20"><img src="images/main/content_lt.gif" width="6" height="21"></td>
        <td height="21" background="images/main/content_top.gif">&nbsp;</td>
        <td width="6" height="20"><img src="images/main/content_rt.gif" width="6" height="21"></td>
      </tr>
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:setting.php

示例14: tagList

function tagList($tags)
{
    global $settingInfo;
    if ($settingInfo['rewrite'] == 0) {
        $gourl = "index.php?job=tags&amp;seekname=";
    }
    if ($settingInfo['rewrite'] == 1) {
        $gourl = "rewrite.php/tags-";
    }
    if ($settingInfo['rewrite'] == 2) {
        $gourl = "tags-";
    }
    $tags = dencode($tags);
    $tagsInfo = explode(";", $tags);
    $str = "";
    foreach ($tagsInfo as $value) {
        $value = encode($value);
        $string = "<a href=\"{$gourl}" . urlencode($value) . $settingInfo['stype'] . "\">" . $value . "</a>";
        $str .= $str == "" ? $string : "&nbsp;" . $string;
    }
    return $str;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:22,代码来源:function.php

示例15: addSettingValue

function addSettingValue($setType, $setName, $setField = "", $setValue = "", $setOption = "")
{
    global $setInfoResult, $strShow, $strDelete, $DMC, $DBPrefix;
    //如果该值没有设定则增加到数据库
    if ($setField != "") {
        if (!keyExists($setField, $setInfoResult)) {
            $DMC->query("insert into " . $DBPrefix . "setting(settName,settValue,settAuto) values('{$setField}','{$setValue}','0')");
            $setInfoResult[$setField] = $setValue;
        }
        if ($setField == "ncalendar") {
            $setInfoResult[$setField] = str_replace("}{", "}\r\n{", dencode($setInfoResult[$setField]));
        }
        if ($setField == "gcalendar") {
            $setInfoResult[$setField] = str_replace("}{", "}\r\n{", dencode($setInfoResult[$setField]));
        }
    }
    //echo $setType."==".$setName."==".$setField."==".$setOption."<br />";
    switch ($setType) {
        case 't':
            //text input
            if ($setField == "linklogo") {
                $changecode = "onchange=\"if ((/^http:\\/\\//i.test(this.value))){document.getElementById('linklogoimg').src=this.value}else{document.getElementById('linklogoimg').src='{$setInfoResult['blogUrl']}'+this.value}\"";
            } else {
                $changecode = "";
            }
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="middle" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="middle">&nbsp;</td>
              <td width="75%" align="left" valign="middle">
                <input name="{$setField}" type="text" size="50" class="textbox" value="{$setInfoResult[$setField]}" {$changecode}/> {$setOption}
              </td>
            </tr>
HTMLCODE;
            break;
        case 'ta':
            //textarea
            $setInfoResult[$setField] = str_replace("<br />", "", dencode($setInfoResult[$setField]));
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="top" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="top">&nbsp;</td>
              <td width="75%" align="left">
                <textarea name="{$setField}" cols="60" rows="6" class="blogeditbox">{$setInfoResult[$setField]}</textarea> {$setOption}
              </td>
            </tr>
HTMLCODE;
            break;
        case 'tn':
            //text input
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="middle" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="middle">&nbsp;</td>
              <td width="75%" align="left" valign="middle">
                <input name="{$setField}" type="text" size="5" class="textbox" value="{$setInfoResult[$setField]}" onKeyPress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false; "/> {$setOption}
              </td>
            </tr>
HTMLCODE;
            break;
        case 'f':
            //file input
            if ($setInfoResult[$setField] != "") {
                $show_images = "&nbsp;&nbsp;<a href='../attachments/{$setInfoResult[$setField]}' target='_blank'>{$strShow}</a>";
                $show_images .= "&nbsp;&nbsp;<a href='setting.php?delete={$setField}'>{$strDelete}</a>";
            } else {
                $show_images = "";
            }
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="middle" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="middle">&nbsp;</td>
              <td width="75%" align="left" valign="middle">
\t\t\t\t<input name="{$setField}" type="file" size="37" class="filebox" value=""/>
\t\t\t\t{$show_images}  {$setOption}
              </td>
            </tr>
HTMLCODE;
            break;
        case 'r':
            //radio button
            $arr_radio = "";
            $arrOption = explode("|", $setOption);
            for ($i = 0; $i < count($arrOption); $i++) {
                if (strpos($arrOption[$i], "=>")) {
                    list($r_name, $r_value) = explode("=>", $arrOption[$i]);
                    $checked = $setInfoResult[$setField] == $r_value ? " checked=\"checked\"" : "";
                    $arr_radio .= "<input type=\"radio\" name=\"{$setField}\" value=\"{$r_value}\"{$checked}> {$r_name} \n";
                } else {
                    $arr_radio .= $arrOption[$i];
                }
            }
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="middle" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="middle">&nbsp;</td>
              <td width="75%" align="left" valign="middle" style="padding-top:7px">{$arr_radio}</td>
            </tr>
HTMLCODE;
            break;
//.........这里部分代码省略.........
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:101,代码来源:function.php


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