Esempio n. 1
0
function getHelp_brief()
{
    global $CMSLang;
    $thisfile = getCurrentFormName();
    $sql = "select m.id,h.title,h.brief from login_modules m,help_help h \n\twhere m.file='{$thisfile}' and m.m_id!=0 and m.id=h.file_id and h.lang='{$CMSLang}'";
    $result = mysql_query($sql);
    $numrows = mysql_num_rows($result);
    if ($numrows) {
        $tip_id = mysql_result($result, 0, 'm.id');
        $title = mysql_result($result, 0, 'h.title');
        $brief = strip_tags(mysql_result($result, 0, 'h.brief'));
        $help_content = Help;
        $html_result = '
<a target="_blank"  title="' . $title . ' |' . $brief . '" href="../help/help.php?tip_id=' . $tip_id . '">' . '<img src="' . _PREFICO . 'Help.png"   alt="' . Help . '"  title="' . $help_content . '"/></a>
						';
    }
    return $html_result;
}
Esempio n. 2
0
function getHelp_brief()
{
    $thisfile = getCurrentFormName();
    $sql = "select m.id,h.title_en,h.brief_en from login_modules m,help_help h \n\twhere m.file='{$thisfile}' and m.m_id!=0 and m.id=h.file_id ";
    $result = mysql_query($sql);
    $numrows = mysql_num_rows($result);
    if ($numrows) {
        $tip_id = mysql_result($result, 0, 'm.id');
        $title = mysql_result($result, 0, 'h.title_en');
        $brief = mysql_result($result, 0, 'h.brief_en');
        $help_content = "<div class='help_content'><div class='title'>{$title}</div><div class='brief'>{$brief}<a class='details_link' target='_blank' href='../help/help.php?tip_id={$tip_id}'>Details...</a></div><br/></div>";
        $html_result = '<div id="help">
		<img src="' . _PREFICO . 'Help.png" title="' . $help_content . '" style="cursor:pointer" 
		 alt="' . Help . '" title="' . Help . '"/>
	</div>';
    }
    return $html_result;
}