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


PHP mosHTML::CloseButton方法代码示例

本文整理汇总了PHP中mosHTML::CloseButton方法的典型用法代码示例。如果您正苦于以下问题:PHP mosHTML::CloseButton方法的具体用法?PHP mosHTML::CloseButton怎么用?PHP mosHTML::CloseButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mosHTML的用法示例。


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

示例1: viewcontact


//.........这里部分代码省略.........
		//-->
		</script>
		<script type="text/javascript">
		<!--
		function ViewCrossReference( selSelectObject ){
			var links = new Array();
			<?php 
        $n = count($list);
        for ($i = 0; $i < $n; $i++) {
            echo "\nlinks[" . $list[$i]->value . "]='" . str_replace('&amp;', '&', sefRelToAbs('index.php?option=com_contact&task=view&contact_id=' . $list[$i]->value . '&Itemid=' . $Itemid)) . "';";
        }
        ?>

			var sel = selSelectObject.options[selSelectObject.selectedIndex].value
			if (sel != "") {
				location.href = links[sel];
			}
		}
		//-->
		</script>
		<?php 
        // For the pop window opened for print preview
        if ($params->get('popup')) {
            ?>
			<title><?php 
            echo $sitename . " :: " . $contact->name;
            ?>
</title>
			<link rel="stylesheet" href="<?php 
            echo $mosConfig_live_site . "/templates/" . $template . "/css/template_css.css";
            ?>
" type="text/css" />
			<?php 
        }
        if ($menu_params->get('page_title')) {
            ?>
			<div class="componentheading<?php 
            echo $menu_params->get('pageclass_sfx');
            ?>
">
			<?php 
            echo $menu_params->get('header');
            ?>
			</div>
			<?php 
        }
        ?>

		<table width="100%" cellpadding="0" cellspacing="0" border="0" class="contentpane<?php 
        echo $params->get('pageclass_sfx');
        ?>
">
		<?php 
        // displays Page Title
        HTML_contact::_writePageTitle($params);
        // displays Contact Select box
        HTML_contact::_writeSelectContact($contact, $params, $count);
        // displays Name & Positione
        HTML_contact::_writeContactName($contact, $params, $hide_js);
        ?>
		<tr>
			<td>
				<table border="0" width="100%">
				<tr>
					<td></td>
					<td rowspan="2" align="right" valign="top">
					<?php 
        // displays Image
        HTML_contact::_writeImage($contact, $params);
        ?>
					</td>
				</tr>
				<tr>
					<td>
					<?php 
        // displays Address
        HTML_contact::_writeContactAddress($contact, $params);
        // displays Email & Telephone
        HTML_contact::_writeContactContact($contact, $params);
        // displays Misc Info
        HTML_contact::_writeContactMisc($contact, $params);
        ?>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		<?php 
        // displays Email Form
        HTML_contact::_writeVcard($contact, $params);
        // displays Email Form
        HTML_contact::_writeEmailForm($contact, $params, $sitename);
        ?>
		</table>
		<?php 
        // display Close button in pop-up window
        mosHTML::CloseButton($params, $hide_js);
        // displays back button
        mosHTML::BackButton($params, $hide_js);
    }
开发者ID:jwest00724,项目名称:mambo,代码行数:101,代码来源:contact.html.php

示例2: show


//.........这里部分代码省略.........
        // calculate Itemid
        HTML_content::_Itemid($row);
        // determines the link and `link text` of the readmore button & linked title
        HTML_content::_linkInfo($row, $params);
        // link used by print button
        $print_link = $mosConfig_live_site . '/index2.php?option=com_content&amp;task=view&amp;id=' . $row->id . '&amp;pop=1&amp;page=' . $page . $row->Itemid_link;
        // process the new bots
        $_MAMBOTS->loadBotGroup('content');
        $results = $_MAMBOTS->trigger('onPrepareContent', array(&$row, &$params, $page), true);
        if ($params->get('item_title') || $params->get('pdf') || $params->get('print') || $params->get('email')) {
            ?>
			<table class="contentpaneopen<?php 
            echo $params->get('pageclass_sfx');
            ?>
">
			<tr>
				<?php 
            // displays Item Title
            HTML_content::Title($row, $params, $access);
            // displays PDF Icon
            HTML_content::PdfIcon($row, $params, $hide_js);
            // displays Print Icon
            mosHTML::PrintIcon($row, $params, $hide_js, $print_link);
            // displays Email Icon
            HTML_content::EmailIcon($row, $params, $hide_js);
            ?>
			</tr>
			</table>
			<?php 
        } else {
            if ($access->canEdit) {
                // edit icon when item title set to hide
                ?>
			<table class="contentpaneopen<?php 
                echo $params->get('pageclass_sfx');
                ?>
">
 			<tr>
 				<td>
	 				<?php 
                HTML_content::EditIcon($row, $params, $access);
                ?>
 				</td>
 			</tr>
 			</table>
 			<?php 
            }
        }
        if (!$params->get('intro_only')) {
            $results = $_MAMBOTS->trigger('onAfterDisplayTitle', array(&$row, &$params, $page));
            echo trim(implode("\n", $results));
        }
        $results = $_MAMBOTS->trigger('onBeforeDisplayContent', array(&$row, &$params, $page));
        echo trim(implode("\n", $results));
        ?>

		<table class="contentpaneopen<?php 
        echo $params->get('pageclass_sfx');
        ?>
">
		<?php 
        // displays Section & Category
        HTML_content::Section_Category($row, $params);
        // displays Author Name
        HTML_content::Author($row, $params);
        // displays Created Date
        HTML_content::CreateDate($row, $params);
        // displays Urls
        HTML_content::URL($row, $params);
        ?>
		<tr>
			<td valign="top" colspan="2">
				<?php 
        // displays Table of Contents
        HTML_content::TOC($row);
        // displays Item Text
        echo ampReplace($row->text);
        ?>
			</td>
		</tr>
		<?php 
        // displays Modified Date
        HTML_content::ModifiedDate($row, $params);
        // displays Readmore button
        HTML_content::ReadMore($row, $params);
        ?>
		</table>

		<span class="article_seperator">&nbsp;</span>

		<?php 
        $results = $_MAMBOTS->trigger('onAfterDisplayContent', array(&$row, &$params, $page));
        echo trim(implode("\n", $results));
        // displays the next & previous buttons
        HTML_content::Navigation($row, $params);
        // displays close button in pop-up window
        mosHTML::CloseButton($params, $hide_js);
        // displays back button in pop-up window
        mosHTML::BackButton($params, $hide_js);
    }
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:101,代码来源:content.html.php

示例3: show


//.........这里部分代码省略.........
                }
            } else {
                $link_on = sefRelToAbs("index.php?option=com_registration&amp;task=register");
                if (strlen(trim($row->fulltext))) {
                    $link_text = _READ_MORE_REGISTER;
                }
            }
        }
        $no_html = mosGetParam($_REQUEST, 'no_html', null);
        if ($params->get('popup') && $no_html == 0) {
            ?>
			<title><?php 
            echo $mosConfig_sitename . ' :: ' . $row->title;
            ?>
</title>
			<?php 
        }
        if ($params->get('item_navigation')) {
            if ($row->prev) {
                $row->prev = sefRelToAbs('index.php?option=com_content&amp;task=view&amp;id=' . $row->prev . '&amp;Itemid=' . $_Itemid);
            } else {
                $row->prev = 0;
            }
            if ($row->next) {
                $row->next = sefRelToAbs('index.php?option=com_content&amp;task=view&amp;id=' . $row->next . '&amp;Itemid=' . $_Itemid);
            } else {
                $row->next = 0;
            }
        }
        if ($params->get('item_title') || $params->get('pdf') || $params->get('print') || $params->get('email')) {
            $print_link = $mosConfig_live_site . '/index2.php?option=com_content&amp;task=view&amp;id=' . $row->id . '&amp;Itemid=' . $Itemid . '&amp;pop=1&amp;page=' . @$page;
            ?>
			<table class="contentpaneopen<?php 
            echo $params->get('pageclass_sfx');
            ?>
">
			<tr>
				<?php 
            // displays Item Title
            HTML_content::Title($row, $params, $link_on, $access);
            // displays PDF Icon
            HTML_content::PdfIcon($row, $params, $link_on, $hide_js);
            // displays Print Icon
            mosHTML::PrintIcon($row, $params, $hide_js, $print_link);
            // displays Email Icon
            HTML_content::EmailIcon($row, $params, $hide_js);
            ?>
			</tr>
			</table>
			<?php 
        }
        if (!$params->get('intro_only')) {
            $results = $_MAMBOTS->trigger('onAfterDisplayTitle', array(&$row, &$params, $page));
            echo trim(implode("\n", $results));
        }
        $results = $_MAMBOTS->trigger('onBeforeDisplayContent', array(&$row, &$params, $page));
        echo trim(implode("\n", $results));
        ?>

		<table class="contentpaneopen<?php 
        echo $params->get('pageclass_sfx');
        ?>
">
		<?php 
        // displays Section & Category
        HTML_content::Section_Category($row, $params);
        // displays Author Name
        HTML_content::Author($row, $params);
        // displays Created Date
        HTML_content::CreateDate($row, $params);
        // displays Urls
        HTML_content::URL($row, $params);
        ?>
		<tr>
			<td valign="top" colspan="2">
			<?php 
        // displays Table of Contents
        HTML_content::TOC($row, $params);
        // displays Item Text
        echo $row->text;
        ?>
			</td>
		</tr>
		<?php 
        // displays Modified Date
        HTML_content::ModifiedDate($row, $params);
        // displays Readmore button
        HTML_content::ReadMore($params, $link_on, $link_text);
        ?>
		</table>
		<?php 
        $results = $_MAMBOTS->trigger('onAfterDisplayContent', array(&$row, &$params, $page));
        echo trim(implode("\n", $results));
        // displays the next & previous buttons
        HTML_content::Navigation($row, $params);
        // displays close button in pop-up window
        mosHTML::CloseButton($params, $hide_js);
        // displays back button in pop-up window
        mosHTML::BackButton($params, $hide_js);
    }
开发者ID:cwcw,项目名称:cms,代码行数:101,代码来源:content.html.php


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