theme.php

来自「开源MARC数据处理」· PHP 代码 · 共 570 行 · 第 1/2 页

PHP
570
字号
		<td>			<a href=\"{$navitem[7][hyperlink]}\" {$navitem[7][extended]}				ONMOUSEOVER=\"window.status='{$navitem[7][statustext]}'; changeImages('{$navitem[7][name]}', 'themes/$thename/images/{$navitem[7][overimage]}{$navitem[7][imgext]}'); return true;\"				ONMOUSEOUT=\"window.status=''; changeImages('{$navitem[7][name]}', 'themes/$thename/images/{$navitem[7][image]}{$navitem[7][imgext]}'); return true;\">				<img name=\"{$navitem[7][name]}\" SRC=\"themes/$thename/images/{$navitem[7][image]}{$navitem[7][imgext]}\" width={$navitem[7][imgwidth]} height={$navitem[7][imgheight]} border=0 alt=\"{$navitem[7][alttext]}\"></a></td>		<td>			<a href=\"{$navitem[8][hyperlink]}\" {$navitem[8][extended]}				ONMOUSEOVER=\"window.status='{$navitem[8][statustext]}'; changeImages('{$navitem[8][name]}', 'themes/$thename/images/{$navitem[8][overimage]}{$navitem[8][imgext]}'); return true;\"				ONMOUSEOUT=\"window.status=''; changeImages('{$navitem[8][name]}', 'themes/$thename/images/{$navitem[8][image]}{$navitem[8][imgext]}'); return true;\">				<img name=\"{$navitem[8][name]}\" SRC=\"themes/$thename/images/{$navitem[8][image]}{$navitem[8][imgext]}\" width={$navitem[8][imgwidth]} height={$navitem[8][imgheight]} border=0 alt=\"{$navitem[8][alttext]}\"></a></td>	</tr></table><table width=778 border=0 cellpadding=0 cellspacing=0>	<tr>		<td><img src=\"themes/$thename/images/searchBarLeftBorder.gif\" width=74 height=31></td>		<td><img src=\"themes/$thename/images/searchBarLeft.gif\" width=3 height=31></td>		<td align=right valign=middle nowrap width=100% background=\"themes/$thename/images/searchBarFill.gif\" >			<table border='0'>			<tr>";			    if ($username == "Anonymous")			    {			    echo "<form action=\"user.php\" method=\"post\" style=\"margin:0\">\n			    <td valign=middle align=Left>\n			    <font class=\"pn-normal\">Login: </td><td valign=middle align=Left></font><input style='border: inset 1px $bdrcolor; background : $bgcolor5' type=\"text\" name=\"uname\" size=\"7\" maxlength=\"25\"></td>\n			    <td valign=middle align=Left>\n			    <font class=\"pn-normal\">Password: </font></td><td valign=middle align=Left><input style='border: inset 1px $bdrcolor; background : $bgcolor5' type=\"password\" name=\"pass\" size=\"7\" maxlength=\"20\"></td>\n			    <td valign=middle align=Left>\n			    <input type=\"hidden\" name=\"module\" value=\"NS-User\">\n			    <input type=\"hidden\" name=\"op\" value=\"login\">\n			    <input type=\"image\" width=34 height=16 src=\"themes/$thename/images/login.gif\" alt=\"Login\" value=\"Login\">\n			    </td>\n			    <td nowrap valign=middle align=Left>&nbsp;</td>\n			    <td width=100%>&nbsp;</td>\n			    </form>\n";			    }			    else			    {			      echo "<td valign=middle align=left nowrap>&nbsp;&nbsp;<font class=\"pn-normal\">You are logged in as $username&nbsp;</font>&nbsp;<font class=\"pn-sub\" style=\"color:black\">[";			      echo ml_ftime(_DATETIMEBRIEF, (GetUserTime(time())));			      echo "]</font></td><form action=\"user.php?module=NS-User&op=logout\" method=post><td valign=middle align=left><a href=\"user.php?module=NS-User&op=logout\"><input type=\"image\" width=41 height=16 src=\"themes/$thename/images/logout.gif\" value=\"Logout\" alt=\"Logout\"></a></td></form><td width=100% valign=middle align=left>&nbsp;</td>\n";			    }			echo "<form action=\"index.php\" method=\"post\" style=\"margin:0\">				<td align=right valign=middle class=pn-normal>&nbsp;Search&nbsp;</td>				<td valign=middle align=right>					<input type=\"hidden\" name=\"Heading\" value=\"0\">					<input type=\"hidden\" name=\"Media\" value=\"0\">					<input type=\"hidden\" name=\"Logical\" value=\"AND\">					<input type=\"hidden\" name=\"limit\" value=\"10\">										<input type=text class=pn-normal style='border: inset 1px $bdrcolor; background : $bgcolor5' name=KeyWords >				</td>				<td valign=middle align=right>					<input type=\"image\" alt=\"Go\" width=20 height=16 src=\"themes/$thename/images/go.gif\" value=\"Go\">				</td>			</form>			</tr>			</table>		</td>		<td><img src=\"themes/$thename/images/searchBar.gif\" width=2 height=31></td>	</tr></table><table width=778 height=\"100%\" border=0 cellpadding=0 cellspacing=0>	<tr>		<td align=left valign=top background=\"themes/$thename/images/borderLeftFill.gif\">			<img src=\"themes/$thename/images/pageBorderLeft.gif\" width=74 height=466></td>			<td valign=top>			<table cellpadding=1><tr><td valign=top><table cellpadding=0><tr><td valign=top>\n";			blocks(left);	echo  "</td><td width=600 valign=top>\n";	pnBannerDisplay();		if ($index == 1){		blocks('centre');	}}// ---------------------------------------------- //// Footer Section// ---------------------------------------------- //function themefooter() {$tbgcolor1 = "#FFFFFF";global $thename;global $index;if ($index == 1){	echo "</td><td width=140 valign=top align=center>";	blocks(right);	}	echo "</td></tr></table></td></tr></table>";	echo "<table width=100% cellpadding=0 cellspacing=0 border=0 bgcolor=$tbgcolor1>		<tr>			<td>			</td>		</tr>		</table>";	echo"<table width=100% cellpadding=0 cellspacing=0 border=0 bgcolor=$tbgcolor1><tr><td align=center>";	echo "<hr>";	footmsg();	echo "<hr>";	echo "</td></tr></table>";	echo "</td></tr></table>";}// ---------------------------------------------- //// NEWS Topics Index View...// ---------------------------------------------- //function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext, $info, $links, $preformat) {$bgcolor6 = "#FFFFFF"; // Article boxglobal $thename;global $tipath, $anonymous;echo"<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">	<tr>		<td>			<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">				<tr>					<td background=\"themes/$thename/images/spacer.gif\"><img src=\"themes/$thename/images/spacer.gif\" width=\"3\" height=\"1\"></td>					<td width=\"100%\">						<table border=0 width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\" bgcolor=$bgcolor6>						<tr>							<td align=right><img src=\"themes/$thename/images/arrows.png\"></td>							<td class=\"pn-normal\" height=\"24\" nowrap valign=\"center\">$preformat[catandtitle]</td>						</tr>						<tr>							<td rowspan=3 valign=top align=left></td>							<td valign=top align=left><span class=pn-normal>$info[hometext]</span><br><span class=pn-sub>$preformat[notes]</span></td>						</tr><td></td>";						echo "<tr>							<td align=left colspan=2 nowrap>";							// ------------------------------------------------------------------------							//							// replace string _READMORE with continue img link in $preformat[more]							// it's a bit dirty but it works... (pn7.04 thru pn7.11)							$continuebutton = "<img align=right border=0 src=themes/$thename/images/continue.png alt=\"Read the rest of the story...\">";							$imgmoretemp =ereg_replace(_READMORE, $continuebutton, $preformat[more]);							$imgmorelink =ereg_replace('\(.* bytes more)', '', $imgmoretemp);							echo "$imgmorelink";							// ------------------------------------------------------------------------						echo "</td>						</tr>						</table>					</td>					<td background=\"themes/$thename/images/spacer.gif\"><img src=\"themes/$thename/images/spacer.gif.gif\" width=\"3\" height=\"1\"></td>				</tr>				<tr>					<td><img src=\"themes/$thename/images/spacer.gif\" width=\"3\" height=\"7\"></td>					<td width=\"100%\" background=\"themes/$thename/images/spacer.gif\"><img src=\"themes/$thename/images/spacer.gif\" width=\"1\" height=\"6\"></td>					<td><img src=\"themes/$thename/images/spacer.gif\" width=\"3\" height=\"7\"></td>				</tr>			</table>		</td>	</tr></table><br>";}// ---------------------------------------------- //// NEWS Article View...// ---------------------------------------------- //function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext, $info, $links, $preformat ) {global $thename;global $admin, $sid, $tipath;echo "<table width=\"100%\" border=0 cellpadding=\"5\" cellspacing=\"0\">	<tr>	<td align=\"left\" width=\"100%\" class=\"pn-normal\" height=\"22\" nowrap valign=\"center\" background=\"themes/$thename/images/ab_tc.gif\">$preformat[catandtitle]<img src=\"themes/$thename/images/spacer.gif\" width=\"10\">";if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT))	{		echo "[ <a href=\"admin.php?module=NS-AddStory&amp;op=EditStory&amp;sid=$info[sid]\">"._EDIT."</a>";		if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE))		{			echo " | <a href=\"admin.php?module=NS-AddStory&amp;op=RemoveStory&amp;sid=$info[sid]\">"._DELETE."</a>";		}		echo " ]<img src=\"themes/$thename/images/spacer.gif\" width=\"10\">\n";	}echo "</td>	</tr>	<tr>		<td colspan=2 class=\"pn-sub\" style=\"font:9px\">"._POSTEDBY." $info[informant]";		echo "&nbsp;|&nbsp"._ON." $info[longdatetime] $timezone\n";echo "</td>	</tr>	<tr>		<td valign=top align=left></td>		<td valign=top align=left width=100%></td>	</tr>	<tr>		<td colspan=2><span class=pn-normal>$preformat[fulltext]</span>		</td>	<tr>";//// replace string _READMORE with img in $preformat[more] ////	$continuebutton = "<img align=right border=0 src=themes/$thename/images/continue.gif>";	$imgmorelink =ereg_replace(_READMORE, $continuebutton, $preformat[more]);	$printlink = ereg_replace(_READMORE, "", $preformat[more]);	$linksplit = split("<",$printlink);	$numrefs = count($linksplit);	$i = 0;		for ($i; $i < $numrefs; ++$i)			{			$linksplit[$i] = "<".$linksplit[$i];			}	echo"<td colspan=2 nowrap align=right><span class=pn-sub>";	echo $linksplit[4]." ".$linksplit[5]." ".$linksplit[6];	echo $linksplit[7]." ".$linksplit[8]." ".$linksplit[9];	echo"</span>		</td>	</tr>	</tr></table>";}// ---------------------------------------------- //// Side Column Boxes... simple.// ---------------------------------------------- //function themesidebox($block) {global $thename;if ($block['position'] != 'c')	{	echo "<table width=140 border=0 cellpadding=0 cellspacing=0>		<tr>			<td>				<table width=100% border=0 cellpadding=0 cellspacing=0>					<tr>						<td><img src=\"themes/$thename/images/bloc_t_tl.png\" width=10 height=6></td>						<td width=100% height=6 background=\"themes/$thename/images/bloc_t_tfill.png\"></td>						<td><img src=\"themes/$thename/images/bloc_t_tr.png\" width=10 height=6></td>					</tr>				</table>				<table width=100% border=0 cellpadding=0 cellspacing=0>					<tr>						<td><img src=\"themes/$thename/images/bloc_t_l.png\" width=10 height=18></td>						<td align=right valign=center nowrap width=100% height=18 background=\"themes/$thename/images/bloc_t_fill.png\"><span class=\"pn-sub\"><b>$block[title]</b></span></td>						<td><img src=\"themes/$thename/images/bloc_t_r.png\" width=10 height=18></td>					</tr>				</table>				<table width=100% border=0 cellpadding=0 cellspacing=0>					<tr>						<td><img src=\"themes/$thename/images/bloc_t_bl.png\" width=10 height=6></td>						<td width=100% height=6 background=\"themes/$thename/images/bloc_t_b_fill.png\"></td>						<td><img src=\"themes/$thename/images/bloc_t_br.png\" width=10 height=6></td>					</tr>				</table>				<table width=100% border=0 cellpadding=0 cellspacing=0>					<tr>						<td background=\"themes/$thename/images/bloc_b_l_fill.png\" width=10></td>						<td><span class=\"pn-normal\">{$block[content]}</span></td>						<td background=\"themes/$thename/images/bloc_b_r_fill.png\" width=10></td>					</tr>				</table>			<table width=100% border=0 cellpadding=0 cellspacing=0>				<tr>					<td><img src=\"themes/$thename/images/bloc_b_l.png\" width=10 height=13></td>					<td width=100% height=13 background=\"themes/$thename/images/bloc_b_fill.png\"></td>					<td><img src=\"themes/$thename/images/bloc_b_r.png\" width=10 height=13></td>				</tr>			</table>		</td>		</tr>	</table>\n";	}	else // center blocks (aka. admin messages)	{	echo "<table width=100%>\n"	."<tr><td align=left><span class=\"pn-normal\">{$block[content]}</span></td></tr>\n"	."</table><br>\n";	}}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?