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


PHP mosAdminMenus::ImageCheck方法代码示例

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


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

示例1: botVoting

function botVoting(&$row, &$params, $page = 0)
{
    global $mosConfig_live_site, $mosConfig_absolute_path, $cur_template;
    global $Itemid;
    $id = $row->id;
    $option = 'com_content';
    $task = mosGetParam($_REQUEST, 'task', '');
    $html = '';
    if ($params->get('rating') && !$params->get('popup')) {
        $html .= '<form method="post" action="' . sefRelToAbs('index.php') . '">';
        $img = '';
        // look for images in template if available
        $starImageOn = mosAdminMenus::ImageCheck('rating_star.png', '/images/M_images/');
        $starImageOff = mosAdminMenus::ImageCheck('rating_star_blank.png', '/images/M_images/');
        for ($i = 0; $i < $row->rating; $i++) {
            $img .= $starImageOn;
        }
        for ($i = $row->rating; $i < 5; $i++) {
            $img .= $starImageOff;
        }
        $html .= '<span class="content_rating">';
        $html .= _USER_RATING . ':' . $img . '&nbsp;/&nbsp;';
        $html .= intval($row->rating_count);
        $html .= "</span>\n<br />\n";
        $url = @$_SERVER['REQUEST_URI'];
        $url = str_replace('&', '&amp;', $url);
        if (!$params->get('intro_only') && $task != "blogsection") {
            $html .= '<span class="content_vote">';
            $html .= _VOTE_POOR;
            $html .= '<input type="radio" alt="vote 1 star" name="user_rating" value="1" />';
            $html .= '<input type="radio" alt="vote 2 star" name="user_rating" value="2" />';
            $html .= '<input type="radio" alt="vote 3 star" name="user_rating" value="3" />';
            $html .= '<input type="radio" alt="vote 4 star" name="user_rating" value="4" />';
            $html .= '<input type="radio" alt="vote 5 star" name="user_rating" value="5" checked="checked" />';
            $html .= _VOTE_BEST;
            $html .= '&nbsp;<input class="button" type="submit" name="submit_vote" value="' . _RATE_BUTTON . '" />';
            $html .= '<input type="hidden" name="task" value="vote" />';
            $html .= '<input type="hidden" name="pop" value="0" />';
            $html .= '<input type="hidden" name="option" value="com_content" />';
            $html .= '<input type="hidden" name="Itemid" value="' . $Itemid . '" />';
            $html .= '<input type="hidden" name="cid" value="' . $id . '" />';
            $html .= '<input type="hidden" name="url" value="' . $url . '" />';
            $html .= '</span>';
        }
        $html .= "</form>\n";
    }
    return $html;
}
开发者ID:cwcw,项目名称:cms,代码行数:48,代码来源:mosvote.php

示例2: output_rssfeed

    function output_rssfeed($link, $img_default, $img_file, $img_alt, $img_name)
    {
        $img = mosAdminMenus::ImageCheck($img_default, '/images/M_images/', $img_file, '/images/M_images/', $img_alt, $img_name);
        ?>
		<div align="center">
			<a href="<?php 
        echo sefRelToAbs($link);
        ?>
">
				<?php 
        echo $img;
        ?>
</a>
		</div>
		<?php 
    }
开发者ID:jwest00724,项目名称:Joomla-1.0,代码行数:16,代码来源:mod_rssfeed.php

示例3: EmailIcon

    /**
     * Writes Email icon
     */
    function EmailIcon(&$row, &$params, $hide_js)
    {
        global $mosConfig_live_site, $Itemid, $task;
        if ($params->get('email') && !$params->get('popup') && !$hide_js) {
            $status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=400,height=250,directories=no,location=no';
            if ($task == 'view') {
                $_Itemid = '&amp;itemid=' . $Itemid;
            } else {
                $_Itemid = '';
            }
            $link = $mosConfig_live_site . '/index2.php?option=com_content&amp;task=emailform&amp;id=' . $row->id . $_Itemid;
            if ($params->get('icons')) {
                $image = mosAdminMenus::ImageCheck('emailButton.png', '/images/M_images/', NULL, NULL, _CMN_EMAIL, _CMN_EMAIL);
            } else {
                $image = '&nbsp;' . _CMN_EMAIL;
            }
            ?>
			<td align="right" width="100%" class="buttonheading">
				<a href="<?php 
            echo $link;
            ?>
" target="_blank" onclick="window.open('<?php 
            echo $link;
            ?>
','win2','<?php 
            echo $status;
            ?>
'); return false;" title="<?php 
            echo _CMN_EMAIL;
            ?>
">
					<?php 
            echo $image;
            ?>
</a>
			</td>
			<?php 
        }
    }
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:42,代码来源:content.html.php

示例4: showTable

    /**
     * Display Table of items
     */
    function showTable(&$params, &$rows, $catid, $tabclass)
    {
        global $mosConfig_live_site;
        // icon in table display
        if ($params->get('weblink_icons') != -1) {
            $img = mosAdminMenus::ImageCheck('weblink.png', '/images/M_images/', $params->get('weblink_icons'), '/images/M_images/', 'Link', 'Link');
        } else {
            $img = NULL;
        }
        ?>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<?php 
        if ($params->get('headings')) {
            ?>
			<tr>
				<?php 
            if ($img) {
                ?>
					<td class="sectiontableheader<?php 
                echo $params->get('pageclass_sfx');
                ?>
">&nbsp;

					</td>
					<?php 
            }
            ?>
				<td width="90%" height="20" class="sectiontableheader<?php 
            echo $params->get('pageclass_sfx');
            ?>
">
				<?php 
            echo _HEADER_TITLE_WEBLINKS;
            ?>
				</td>
				<?php 
            if ($params->get('hits')) {
                ?>
					<td width="30" height="20" class="sectiontableheader<?php 
                echo $params->get('pageclass_sfx');
                ?>
" align="right">
					<?php 
                echo _HEADER_HITS;
                ?>
					</td>
					<?php 
            }
            ?>
			</tr>
			<?php 
        }
        $k = 0;
        foreach ($rows as $row) {
            $iparams = new mosParameters($row->params);
            $link = sefRelToAbs('index.php?option=com_weblinks&task=view&catid=' . $catid . '&id=' . $row->id);
            $link = ampReplace($link);
            $menuclass = 'category' . $params->get('pageclass_sfx');
            switch ($iparams->get('target')) {
                // cases are slightly different
                case 1:
                    // open in a new window
                    $txt = '<a href="' . $link . '" target="_blank" class="' . $menuclass . '">' . $row->title . '</a>';
                    break;
                case 2:
                    // open in a popup window
                    $txt = "<a href=\"#\" onclick=\"javascript: window.open('" . $link . "', '', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=550'); return false\" class=\"{$menuclass}\">" . $row->title . "</a>\n";
                    break;
                default:
                    // formerly case 2
                    // open in parent window
                    $txt = '<a href="' . $link . '" class="' . $menuclass . '">' . $row->title . '</a>';
                    break;
            }
            ?>
			<tr class="<?php 
            echo $tabclass[$k];
            ?>
">
				<?php 
            if ($img) {
                ?>
					<td width="100" height="20" align="center">
					&nbsp;&nbsp;<?php 
                echo $img;
                ?>
&nbsp;&nbsp;
					</td>
					<?php 
            }
            ?>
				<td height="20">
				<?php 
            echo $txt;
            ?>
				<?php 
            if ($params->get('item_description')) {
//.........这里部分代码省略.........
开发者ID:allenahner,项目名称:mizzou,代码行数:101,代码来源:weblinks.html.php

示例5: display

    public static function display(&$rows, $params, $pageNav, $limitstart, $limit, $total, $totalRows, $searchword)
    {
        global $mosConfig_hideCreateDate;
        global $mosConfig_live_site, $option, $Itemid;
        $c = count($rows);
        $image = mosAdminMenus::ImageCheck('google.png', '/images/M_images/', NULL, NULL, 'Google', 'Google', 1);
        $searchword = urldecode($searchword);
        $searchword = htmlspecialchars($searchword, ENT_QUOTES);
        // number of matches found
        echo '<br/>';
        eval('echo "' . _CONCLUSION . '";');
        ?>
				<a href="http://www.google.com/search?q=<?php 
        echo $searchword;
        ?>
" target="_blank">
					<?php 
        echo $image;
        ?>
</a>
			</td>
		</tr>
		</table>

		<br />

		<div align="center">
			<?php 
        echo $pageNav->writePagesCounter();
        $ordering = strtolower(strval(mosGetParam($_REQUEST, 'ordering', 'newest')));
        $searchphrase = strtolower(strval(mosGetParam($_REQUEST, 'searchphrase', 'any')));
        $searchphrase = htmlspecialchars($searchphrase);
        $cleanWord = htmlspecialchars($searchword);
        $link = $mosConfig_live_site . "/index.php?option={$option}&amp;Itemid={$Itemid}&amp;searchword={$cleanWord}&amp;searchphrase={$searchphrase}&amp;ordering={$ordering}";
        echo $pageNav->getLimitBox($link);
        ?>
		</div>
		<table class="contentpaneopen<?php 
        echo $params->get('pageclass_sfx');
        ?>
">
		<tr class="<?php 
        echo $params->get('pageclass_sfx');
        ?>
">
			<td>
				<?php 
        $z = $limitstart + 1;
        $end = $limit + $z;
        if ($end > $total) {
            $end = $total + 1;
        }
        for ($i = $z; $i < $end; $i++) {
            $row = $rows[$i - 1];
            if ($row->created) {
                $created = mosFormatDate($row->created, _DATE_FORMAT_LC);
            } else {
                $created = '';
            }
            ?>
					<fieldset>
						<div>
							<span class="small<?php 
            echo $params->get('pageclass_sfx');
            ?>
">
								<?php 
            echo $i . '. ';
            ?>
							</span>
							<?php 
            if ($row->href) {
                $row->href = ampReplace($row->href);
                if ($row->browsernav == 1) {
                    ?>
									<a href="<?php 
                    echo sefRelToAbs($row->href);
                    ?>
" target="_blank">
									<?php 
                } else {
                    ?>
									<a href="<?php 
                    echo sefRelToAbs($row->href);
                    ?>
">
									<?php 
                }
            }
            echo $row->title;
            if ($row->href) {
                ?>
								</a>
								<?php 
            }
            if ($row->section) {
                ?>
								<br/>
								<span class="small<?php 
                echo $params->get('pageclass_sfx');
//.........这里部分代码省略.........
开发者ID:jwest00724,项目名称:Joomla-1.0,代码行数:101,代码来源:search.html.php

示例6: showTable

    /**
     * Display Table of items
     */
    public static function showTable(&$params, &$rows, $catid, $tabclass)
    {
        global $mosConfig_live_site, $Itemid;
        // icon in table display
        $img = mosAdminMenus::ImageCheck('con_info.png', '/images/M_images/', $params->get('icon'));
        ?>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
		<?php 
        if ($params->get('headings')) {
            ?>
			<tr>
				<?php 
            if ($params->get('name')) {
                ?>
					<td height="20" class="sectiontableheader<?php 
                echo $params->get('pageclass_sfx');
                ?>
">
					<?php 
                echo _FEED_NAME;
                ?>
					</td>
					<?php 
            }
            ?>
				<?php 
            if ($params->get('articles')) {
                ?>
					<td height="20" class="sectiontableheader<?php 
                echo $params->get('pageclass_sfx');
                ?>
" align="center">
					<?php 
                echo _FEED_ARTICLES;
                ?>
					</td>
					<?php 
            }
            ?>
				<?php 
            if ($params->get('link')) {
                ?>
					<td height="20" class="sectiontableheader<?php 
                echo $params->get('pageclass_sfx');
                ?>
">
					<?php 
                echo _FEED_LINK;
                ?>
					</td>
					<?php 
            }
            ?>
			</tr>
			<?php 
        }
        $k = 0;
        foreach ($rows as $row) {
            $link = 'index.php?option=com_newsfeeds&amp;task=view&amp;feedid=' . $row->id . '&amp;Itemid=' . $Itemid;
            ?>
			<tr>
				<?php 
            if ($params->get('name')) {
                ?>
					<td height="20" class="<?php 
                echo $tabclass[$k];
                ?>
">
					<a href="<?php 
                echo sefRelToAbs($link);
                ?>
" class="category<?php 
                echo $params->get('pageclass_sfx');
                ?>
">
					<?php 
                echo $row->name;
                ?>
					</a>
					</td>
					<?php 
            }
            ?>
				<?php 
            if ($params->get('articles')) {
                ?>
					<td width="20%" class="<?php 
                echo $tabclass[$k];
                ?>
" align="center">
					<?php 
                echo $row->numarticles;
                ?>
					</td>
					<?php 
            }
            ?>
//.........这里部分代码省略.........
开发者ID:jwest00724,项目名称:Joomla-1.0,代码行数:101,代码来源:newsfeeds.html.php

示例7: media_manager

    /**
     * Writes a media_manager button
     * @param string The sub-drectory to upload the media to
     */
    function media_manager($directory = '')
    {
        $image = mosAdminMenus::ImageCheck('upload_f2.png', '/images/', NULL, NULL, 'Upload Image', 'uploadPic', 1);
        ?>
		<td>
			<a class="toolbar" href="#" onclick="popupWindow('popups/uploadimage.php?directory=<?php 
        echo $directory;
        ?>
','win1',250,100,'no');">
				<?php 
        echo $image;
        ?>
</a>
		</td>
		<?php 
    }
开发者ID:jwest00724,项目名称:Joomla-1.0,代码行数:20,代码来源:HTML_toolbar.php

示例8:

    echo $mosConfig_live_site;
    ?>
/index2.php?option=com_rss&amp;feed=ATOM0.3&amp;no_html=1">
	<?php 
    echo $img;
    ?>
	</a>
	</div>
	<?php 
}
?>

<?php 
// opml link
if ($opml) {
    $img = mosAdminMenus::ImageCheck('opml.png', '/images/M_images/', $opml_image, '/images/M_images/', 'OPML');
    ?>
	<div align="center">
	<a href="<?php 
    echo $mosConfig_live_site;
    ?>
/index2.php?option=com_rss&amp;feed=OPML&amp;no_html=1">
	<?php 
    echo $img;
    ?>
	</a>
	</div>
	<?php 
}
?>
</div>
开发者ID:cwcw,项目名称:cms,代码行数:31,代码来源:mod_rssfeed.php

示例9: getDisplayTab

 function getDisplayTab($tab, $user, $ui)
 {
     global $_CB_framework, $_CB_database, $mainframe;
     $jVer = checkJversion();
     $showHits = $_CB_framework->getCfg('hits');
     $showRating = $_CB_framework->getCfg('vote');
     $return = '';
     if ($jVer >= 2) {
         $curTz = date_default_timezone_get();
         date_default_timezone_set('UTC');
         $now = date('Y-m-d H:i:s');
         date_default_timezone_set($curTz);
     } else {
         $now = date('Y-m-d H:i:s', $_CB_framework->now() + $_CB_framework->getCfg('offset') * 60 * 60);
     }
     $query = "SELECT a.id, a.catid, a.title, a.hits,a.created, ROUND( r.rating_sum / r.rating_count ) AS rating,r.rating_count";
     if ($jVer >= 1) {
         $query .= ', CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(\':\', a.id, a.alias) ELSE a.id END as slug,' . ' CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug';
     }
     $query .= "\n FROM #__content AS a" . "\n LEFT JOIN #__content_rating AS r ON r.content_id=a.id";
     if ($jVer < 2) {
         $query .= "\n INNER JOIN #__sections AS s ON s.id=a.sectionid AND s.title != 'Mamblog'";
     }
     if ($jVer >= 1) {
         $query .= "\n LEFT JOIN #__categories AS cc ON cc.id = a.catid";
     }
     $query .= "\n WHERE a.created_by=" . (int) $user->id . "" . "\n AND a.state = 1 " . "\n AND (publish_up = '0000-00-00 00:00:00' OR publish_up <= '{$now}')" . "\n AND (publish_down = '0000-00-00 00:00:00' OR publish_down >= '{$now}')" . "\n AND a.access IN (" . implode(',', CBuser::getMyInstance()->getAuthorisedViewLevelsIds($jVer >= 2 ? false : true)) . ')' . "\n ORDER BY a.created DESC";
     $_CB_database->setQuery($query);
     //print $_CB_database->getQuery();
     $items = $_CB_database->loadObjectList();
     if (!count($items) > 0) {
         $return .= "<br /><br /><div class=\"cbNoArticles\" style=\"width:95%;\">";
         $return .= _UE_NOARTICLES;
         $return .= "</div>";
         return $return;
     }
     $return .= $this->_writeTabDescription($tab, $user);
     $return .= "<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" width=\"95%\">";
     $return .= "<tr class=\"sectiontableheader\">";
     $return .= "<th>" . _UE_ARTICLEDATE . "</th>";
     $return .= "<th>" . _UE_ARTICLETITLE . "</th>";
     if ($showHits) {
         $return .= "<th>" . _UE_ARTICLEHITS . "</th>";
     }
     if ($showRating) {
         $return .= "<th>" . _UE_ARTICLERATING . "</th>";
     }
     $return .= "</tr>";
     $i = 1;
     $hits = "";
     $rating = "";
     foreach ($items as $item) {
         if (isset($mainframe) && is_callable(array($mainframe, "getItemid"))) {
             $itemid = $mainframe->getItemid($item->id);
         } elseif (is_callable("JApplicationHelper::getItemid")) {
             $itemid = JApplicationHelper::getItemid($item->id);
         } else {
             $itemid = null;
         }
         $itemidtxt = $itemid ? "&amp;Itemid=" . (int) $itemid : "";
         $i = $i == 1 ? 2 : 1;
         if (is_callable(array("mosAdminMenus", "ImageCheck"))) {
             $starImageOn = mosAdminMenus::ImageCheck('rating_star.png', '/images/M_images/');
             $starImageOff = mosAdminMenus::ImageCheck('rating_star_blank.png', '/images/M_images/');
         } else {
             // Mambo 4.5.0:
             $starImageOn = '<img src="' . $_CB_framework->getCfg('live_site') . '/images/M_images/rating_star.png" alt="" align="middle" style="border:0px;" />';
             $starImageOff = '<img src="' . $_CB_framework->getCfg('live_site') . '/images/M_images/rating_star_blank.png" alt="" align="middle" style="border:0px;" />';
         }
         $img = "";
         if ($showRating) {
             for ($j = 0; $j < $item->rating; $j++) {
                 $img .= $starImageOn;
             }
             for ($j = $item->rating; $j < 5; $j++) {
                 $img .= $starImageOff;
             }
             $rating = '<td><span class="content_rating">';
             $rating .= $img . '&nbsp;/&nbsp;';
             $rating .= intval($item->rating_count);
             $rating .= "</span></td>\n";
         }
         if ($showHits) {
             $hits = "<td>" . $item->hits . "</td>";
         }
         if ($jVer == 2) {
             require_once $_CB_framework->getCfg('absolute_path') . '/components/com_content/helpers/route.php';
             $url = ContentHelperRoute::getArticleRoute($item->id, $item->catid);
             if (!stristr($url, 'Itemid')) {
                 $url = $_CB_framework->getCfg('live_site') . '/' . $url;
             } else {
                 $url = cbSef($url);
             }
         } elseif ($jVer == 1) {
             $url = cbSef('index.php?option=com_content&amp;view=article&amp;id=' . $item->slug . '&amp;catid=' . $item->catslug . $itemidtxt);
         } else {
             $url = cbSef('index.php?option=com_content&amp;task=view&amp;id=' . (int) $item->id . $itemidtxt);
         }
         $return .= "<tr class=\"sectiontableentry{$i}\"><td>" . cbFormatDate($item->created) . "</td><td><a href=\"" . $url . "\">" . $item->title . "</a></td>" . $hits . $rating . "</tr>\n";
     }
//.........这里部分代码省略.........
开发者ID:rogatnev-nikita,项目名称:cloudinterpreter,代码行数:101,代码来源:cb.authortab.php

示例10: songHeader

    function songHeader($showChords = "yes", $params = NULL, $song = null, $editSongLink = FALSE)
    {
        global $mainframe, $my, $database, $acl;
        global $mosConfig_absolute_path, $mosConfig_sitename, $mosConfig_live_site, $task;
        global $Itemid, $song_id, $hide_js;
        if ($params->get('icons')) {
            $printImage = mosAdminMenus::ImageCheck('printButton.png', '/images/M_images/', NULL, NULL, _CMN_PRINT);
            $editImage = mosAdminMenus::ImageCheck('edit.png', '/images/M_images/', NULL, NULL, _E_EDIT);
        } else {
            $printImage = _ICON_SEP . '&nbsp;' . _CMN_PRINT . '&nbsp;' . _ICON_SEP;
            $editImage = _ICON_SEP . '&nbsp;' . _E_EDIT . '&nbsp;' . _ICON_SEP;
        }
        ?>

		<link rel="stylesheet" type="text/css" href="<?php 
        echo $mosConfig_live_site;
        ?>
/components/com_chordbase/css/style.css" />
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="100%" style="text-align:right" valign="top">
<?php 
        /*					[<a href="index.php?option=com_chordbase&Itemid=<?php echo $Itemid ?>&task=songlist"><?php echo _SONGLIST ?></a>]<br />
        					[<a href="index.php?option=com_chordbase&Itemid=<?php echo $Itemid ?>&task=viewSong&song_id=<?php echo $song_id ?>&showChords=<?php echo $showChords == "no"?"yes":"no" ?>"><?php echo ($showChords == "no"?_SHOW:_HIDE) . " " . _CHORDS ?></a>]<br />
        */
        ?>

					<a href="<?php 
        echo $mosConfig_live_site;
        ?>
/index2.php?option=com_chordbase&Itemid=<?php 
        echo $Itemid;
        ?>
&task=viewSong&showChords=<?php 
        echo $showChords == "no" ? "no" : "yes";
        ?>
&song_id=<?php 
        echo $song_id;
        ?>
&pop=1" target="_blank"><?php 
        echo $printImage;
        ?>
</a>
				<?php 
        if ($editSongLink) {
            ?>

					<a href="index.php?option=com_chordbase&Itemid=<?php 
            echo $Itemid;
            ?>
&task=editSong&song_id=<?php 
            echo $song_id;
            ?>
"><?php 
            echo $editImage;
            ?>
</a>
				<?php 
        }
        ?>

				</td>
			</tr>
		<?php 
        /*			<tr>
        				<td align="center">
        					<center>
        						<u><?php echo _TRANSPOSE ?></u><br />
        						<?php $song->transposeLinks() ?>
        					</center>
        				</td>
        			</tr>
        		</table>*/
    }
开发者ID:NinoCoelho,项目名称:SouCristao,代码行数:74,代码来源:chordbase.html.php

示例11: form

    function form($action, $categories = NULL, $writers = NULL, $submitted_by = 0, $showSubmit = FALSE)
    {
        global $mosConfig_live_site;
        $key_selected[$this->song_key] = " selected";
        $infoImage = mosAdminMenus::ImageCheck('con_info.png', '/images/M_images/', NULL, NULL, "");
        echo "<script language='javascript1.2' src='{$mosConfig_live_site}/components/com_chordbase/js/chord.class.js'></script>";
        ?>

		<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
		<script language="Javascript" src="<?php 
        echo $mosConfig_live_site;
        ?>
/includes/js/overlib_mini.js"></script>
		<form name="adminForm" method="post" action="<?php 
        echo $action;
        ?>
" id="adminForm">
			<!-- BEGIN META -->
			<center>
			<table cellspacing="0" cellpadding="0" border="0">
				<tr>
					<td colspan="2">
						<b><?php 
        echo _TITLE;
        ?>
:</b>
						<input id="song_title" name="title" type="text" size="25" value="<?php 
        echo $this->title;
        ?>
" />
						<b><?php 
        echo _KEY;
        ?>
:</b>
						<select name="song_key">
							<option value="C"<?php 
        echo $key_selected["C"];
        ?>
>C</option>
							<option value="G"<?php 
        echo $key_selected["G"];
        ?>
>G</option>
							<option value="D"<?php 
        echo $key_selected["D"];
        ?>
>D</option>
							<option value="A"<?php 
        echo $key_selected["A"];
        ?>
>A</option>
							<option value="E"<?php 
        echo $key_selected["E"];
        ?>
>E</option>
							<option value="B"<?php 
        echo $key_selected["B"];
        ?>
>B</option>
							<option value="F#"<?php 
        echo $key_selected["Fs"];
        ?>
>F#</option>
							<option value="C#"<?php 
        echo $key_selected["Cs"];
        ?>
>C#</option>

							<option value="F"<?php 
        echo $key_selected["F"];
        ?>
>F</option>
							<option value="Bb"<?php 
        echo $key_selected["Bb"];
        ?>
>Bb</option>
							<option value="Eb"<?php 
        echo $key_selected["Eb"];
        ?>
>Eb</option>
							<option value="Ab"<?php 
        echo $key_selected["Ab"];
        ?>
>Ab</option>
							<option value="Db"<?php 
        echo $key_selected["Db"];
        ?>
>Db</option>
							<option value="Gb"<?php 
        echo $key_selected["Gb"];
        ?>
>Gb</option>

							<option value="Am"<?php 
        echo $key_selected["Am"];
        ?>
>Am</option>
							<option value="Em"<?php 
        echo $key_selected["Em"];
        ?>
//.........这里部分代码省略.........
开发者ID:NinoCoelho,项目名称:SouCristao,代码行数:101,代码来源:song.class.php

示例12: contactpage


//.........这里部分代码省略.........
        // creates dropdown select list
        $contact->select = mosHTML::selectList($list, 'contact_id', 'class="inputbox" onchange="ViewCrossReference(this);"', 'value', 'text', $contact_id);
        // Adds parameter handling
        $params = new mosParameters($contact->params);
        $params->set('page_title', 0);
        $params->def('pageclass_sfx', '');
        $params->def('back_button', $mainframe->getCfg('back_button'));
        $params->def('print', !$mainframe->getCfg('hidePrint'));
        $params->def('name', 1);
        $params->def('email', 0);
        $params->def('street_address', 1);
        $params->def('suburb', 1);
        $params->def('state', 1);
        $params->def('country', 1);
        $params->def('postcode', 1);
        $params->def('telephone', 1);
        $params->def('fax', 1);
        $params->def('misc', 1);
        $params->def('image', 1);
        $params->def('email_description', 1);
        $params->def('email_description_text', _EMAIL_DESCRIPTION);
        $params->def('email_form', 1);
        $params->def('email_copy', 0);
        // global pront|pdf|email
        $params->def('icons', $mainframe->getCfg('icons'));
        // contact only icons
        $params->def('contact_icons', 0);
        $params->def('icon_address', '');
        $params->def('icon_email', '');
        $params->def('icon_telephone', '');
        $params->def('icon_fax', '');
        $params->def('icon_misc', '');
        $params->def('drop_down', 0);
        $params->def('vcard', 0);
        if ($contact->email_to && $params->get('email')) {
            // email cloacking
            $contact->email = mosHTML::emailCloaking($contact->email_to);
        }
        // loads current template for the pop-up window
        $pop = intval(mosGetParam($_REQUEST, 'pop', 0));
        if ($pop) {
            $params->set('popup', 1);
            $params->set('back_button', 0);
        }
        if ($params->get('email_description')) {
            $params->set('email_description', $params->get('email_description_text'));
        } else {
            $params->set('email_description', '');
        }
        // needed to control the display of the Address marker
        $temp = $params->get('street_address') . $params->get('suburb') . $params->get('state') . $params->get('country') . $params->get('postcode');
        $params->set('address_check', $temp);
        // determines whether to use Text, Images or nothing to highlight the different info groups
        switch ($params->get('contact_icons')) {
            case 1:
                // text
                $params->set('marker_address', _CONTACT_ADDRESS);
                $params->set('marker_email', _CONTACT_EMAIL);
                $params->set('marker_telephone', _CONTACT_TELEPHONE);
                $params->set('marker_fax', _CONTACT_FAX);
                $params->set('marker_misc', _CONTACT_MISC);
                $params->set('column_width', '100');
                break;
            case 2:
                // none
                $params->set('marker_address', '');
                $params->set('marker_email', '');
                $params->set('marker_telephone', '');
                $params->set('marker_fax', '');
                $params->set('marker_misc', '');
                $params->set('column_width', '0');
                break;
            default:
                // icons
                $image1 = mosAdminMenus::ImageCheck('con_address.png', '/images/M_images/', $params->get('icon_address'), '/images/M_images/', _CONTACT_ADDRESS, _CONTACT_ADDRESS);
                $image2 = mosAdminMenus::ImageCheck('emailButton.png', '/images/M_images/', $params->get('icon_email'), '/images/M_images/', _CONTACT_EMAIL, _CONTACT_EMAIL);
                $image3 = mosAdminMenus::ImageCheck('con_tel.png', '/images/M_images/', $params->get('icon_telephone'), '/images/M_images/', _CONTACT_TELEPHONE, _CONTACT_TELEPHONE);
                $image4 = mosAdminMenus::ImageCheck('con_fax.png', '/images/M_images/', $params->get('icon_fax'), '/images/M_images/', _CONTACT_FAX, _CONTACT_FAX);
                $image5 = mosAdminMenus::ImageCheck('con_info.png', '/images/M_images/', $params->get('icon_misc'), '/images/M_images/', _CONTACT_MISC, _CONTACT_MISC);
                $params->set('marker_address', $image1);
                $params->set('marker_email', $image2);
                $params->set('marker_telephone', $image3);
                $params->set('marker_fax', $image4);
                $params->set('marker_misc', $image5);
                $params->set('column_width', '40');
                break;
        }
        // params from menu item
        $menu = $mainframe->get('menu');
        $menu_params = new mosParameters($menu->params);
        $menu_params->def('page_title', 1);
        $menu_params->def('header', $menu->name);
        $menu_params->def('pageclass_sfx', '');
        HTML_contact::viewcontact($contact, $params, $count, $list, $menu_params);
    } else {
        $params = new mosParameters('');
        $params->def('back_button', $mainframe->getCfg('back_button'));
        HTML_contact::nocontact($params);
    }
}
开发者ID:allenahner,项目名称:mizzou,代码行数:101,代码来源:contact.php

示例13: showTable

    /**
     * Display Table of items
     */
    function showTable(&$params, &$rows, $catid, $tabclass)
    {
        global $mosConfig_live_site;
        // icon in table display
        $img = mosAdminMenus::ImageCheck('weblink.png', '/images/M_images/', $params->get('weblink_icons'));
        ?>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<?php 
        if ($params->get('headings')) {
            ?>
			<tr>
				<?php 
            if ($img) {
                ?>
					<td class="sectiontableheader<?php 
                echo $params->get('pageclass_sfx');
                ?>
">&nbsp;
													
					</td>
					<?php 
            }
            ?>
				<td width="90%" height="20" class="sectiontableheader<?php 
            echo $params->get('pageclass_sfx');
            ?>
">
				<?php 
            echo _HEADER_TITLE_WEBLINKS;
            ?>
				</td>
				<?php 
            if ($params->get('hits')) {
                ?>
					<td width="30px" height="20" class="sectiontableheader<?php 
                echo $params->get('pageclass_sfx');
                ?>
" align="right">
					<?php 
                echo _HEADER_HITS;
                ?>
					</td>
					<?php 
            }
            ?>
			</tr>
			<?php 
        }
        $k = 0;
        foreach ($rows as $row) {
            $link = 'index.php?option=com_weblinks&amp;task=view&amp;catid=' . $catid . '&amp;id=' . $row->id;
            ?>
			<tr class="<?php 
            echo $tabclass[$k];
            ?>
">
				<?php 
            if ($img) {
                ?>
					<td width="100px" height="20" align="center"> 
					&nbsp;&nbsp;<?php 
                echo $img;
                ?>
&nbsp;&nbsp;
					</td>
					<?php 
            }
            ?>
				<td height="20"> 
				<a href="<?php 
            echo sefRelToAbs($link);
            ?>
" target="_blank" class="category<?php 
            echo $params->get('pageclass_sfx');
            ?>
">
				<?php 
            echo $row->title;
            ?>
 
				</a> 
				<?php 
            if ($params->get('item_description')) {
                ?>
					<br /> 
					<?php 
                echo $row->description;
                ?>
					<?php 
            }
            ?>
				</td>
				<?php 
            if ($params->get('hits')) {
                ?>
					<td align="center">
					<?php 
//.........这里部分代码省略.........
开发者ID:cwcw,项目名称:cms,代码行数:101,代码来源:weblinks.html.php

示例14: ImageCheckAdmin

 /**
  * Checks to see if an image exists in the current templates image directory
  * if it does it loads this image.  Otherwise the default image is loaded.
  * Also can be used in conjunction with the menulist param to create the chosen image
  * load the default or use no image
  */
 function ImageCheckAdmin($file, $directory = '/administrator/images/', $param = NULL, $param_directory = '/administrator/images/', $alt = NULL, $name = NULL, $type = 1, $align = 'middle', $title = NULL)
 {
     /*
     		global $mosConfig_absolute_path, $mosConfig_live_site, $mainframe;
     
     		$cur_template = $mainframe->getTemplate();
     
     		$name 	= ( $name 	? ' name="'. $name .'"' 	: '' );
     		$title 	= ( $title 	? ' title="'. $title .'"' 	: '' );
     		$alt 	= ( $alt 	? ' alt="'. $alt .'"' 		: ' alt=""' );
     		$align 	= ( $align 	? ' align="'. $align .'"' 	: '' );
     
     		$path 	= '/administrator/templates/'. $cur_template .'/images/';
     
     		if ( $param ) {
     			$image = $mosConfig_live_site. $param_directory . $param;
     			if ( $type ) {
     				$image = '<img src="'. $image .'" '. $alt . $name . $align .' border="0" />';
     			}
     		} else if ( $param == -1 ) {
     			$image = '';
     		} else {
     			if ( file_exists( $mosConfig_absolute_path . $path . $file ) ) {
     				$image = $mosConfig_live_site . $path . $file;
     			} else {
     				// outputs only path to image
     				$image = $mosConfig_live_site. $directory . $file;
     			}
     
     			// outputs actual html <img> tag
     			if ( $type ) {
     				$image = '<img src="'. $image .'" '. $alt . $name . $title . $align .' border="0" />';
     			}
     		}
     */
     // functionality consolidated into ImageCheck
     $image = mosAdminMenus::ImageCheck($file, $directory, $param, $param_directory, $alt, $name, $type, $align, $title, $admin = 1);
     return $image;
 }
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:45,代码来源:joomla.php

示例15: media_manager

    /**
     * Writes a media_manager button
     * @param string The sub-drectory to upload the media to
     */
    function media_manager($directory = '')
    {
        $image = mosAdminMenus::ImageCheck('upload.png', '/images/', NULL, NULL, 'Upload Image', 'uploadPic');
        $image2 = mosAdminMenus::ImageCheck('upload_f2.png', '/images/', NULL, NULL, 'Upload Image', 'uploadPic', 0);
        ?>
		<td width="25" align="center">
		<a href="#" onclick="popupWindow('popups/uploadimage.php?directory=<?php 
        echo $directory;
        ?>
','win1',250,100,'no');" onmouseout="MM_swapImgRestore();"  onmouseover="MM_swapImage('uploadPic','','<?php 
        echo $image2;
        ?>
',1);">
		<?php 
        echo $image;
        ?>
		</a>
		</td>
		<?php 
    }
开发者ID:cwcw,项目名称:cms,代码行数:24,代码来源:HTML_toolbar.php


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