</td>
	</tr></table>

	</td>
	<?php 
        } else {
            ?>



	<td class="<?php 
            echo $Row->_STYLE;
            ?>
" style="padding-left:35px;" >
	<?php 
            getFORM();
            ?>
	<input type=hidden name="EditId" value="<?php 
            echo $EditId;
            ?>
">
	<input type=hidden name="Mode" value="reports">
	<input type=text size=50 name="EditArr[Name]" value="<?php 
            echo htmlspecialchars(stripslashes($Row->NAME));
            ?>
"><br>
	<input type=submit value="<?php 
            echo $Lang['Save'];
            ?>
">
	</form>
Пример #2
0
?>
</h2>
                <div class="cleared"></div>
                                <div class="art-postcontent">

<img src="<?php 
echo $cms['tngpath'] . $templatepath . $tmp['t9_mainimage'];
?>
" alt="" style="float:left;" class="temppreview" />
<?php 
if ($chooselang) {
    $query = "SELECT languageID, display, folder FROM {$languages_table} ORDER BY display";
    $result = tng_query($query);
    $numlangs = tng_num_rows($result);
    if ($numlangs > 1) {
        echo getFORM("savelanguage2", "get", "tngmenu3", "");
        echo "<select name=\"newlanguage3\" id=\"newlanguage3\" style=\"font-size:11px;\" onchange=\"document.tngmenu3.submit();\">";
        while ($row = tng_fetch_assoc($result)) {
            echo "<option value=\"{$row['languageID']}\"";
            if ($languages_path . $row['folder'] == $mylanguage) {
                echo " selected=\"selected\"";
            }
            echo ">{$row['display']}</option>\n";
        }
        echo "</select>\n";
        echo "<input type=\"hidden\" name=\"instance\" value=\"3\" /></form>\n";
    }
    tng_free_result($result);
}
if ($currentuser) {
    echo "<p><strong>{$text['welcome']}, {$currentuserdesc}.</strong> <a href=\"logout.php\">{$text['mnulogout']}</a></p>\n";
Пример #3
0
function treeDropdown($forminfo)
{
    global $text, $requirelogin, $assignedtree, $trees_table, $time_offset, $treerestrict, $cms, $tree;
    $ret = "";
    if (!$requirelogin || !$treerestrict || !$assignedtree) {
        $lid = $forminfo['lastimport'] ? ", lastimportdate" : "";
        $query = "SELECT gedcom, treename{$lid} FROM {$trees_table} ORDER BY treename";
        $treeresult = mysql_query($query) or die($text['cannotexecutequery'] . ": {$query}");
        $numtrees = mysql_num_rows($treeresult);
        $foundtree = false;
        if ($numtrees > 1) {
            if ($forminfo['startform']) {
                $ret .= getFORM($forminfo['action'], $forminfo['method'], $forminfo['name'], $forminfo['id']);
            }
            $ret .= "<span class=\"normal\">{$text['tree']}: </span>";
            $ret .= treeSelect($treeresult, $forminfo['name']);
            $ret .= "&nbsp; <img src=\"{$cms['tngpath']}img/spinner.gif\" style=\"display:none;\" id=\"treespinner\" alt=\"\" class=\"spinner\"/>\n";
            if (is_array($forminfo['hidden'])) {
                foreach ($forminfo['hidden'] as $hidden) {
                    $ret .= "<input type=\"hidden\" name=\"" . $hidden['name'] . "\" value=\"" . $hidden['value'] . "\" />\n";
                }
            }
            //$ret .= "<input type=\"submit\" value=\"$text[go]\" />\n";
            if ($forminfo['endform']) {
                $ret .= "</form><br/>\n";
            } else {
                $ret .= "<br/><br/>\n";
            }
            $treeresult = mysql_query($query) or die($text['cannotexecutequery'] . ": {$query}");
            if ($tree) {
                $foundtree = true;
                while ($row = mysql_fetch_assoc($treeresult)) {
                    if ($row['gedcom'] == $tree) {
                        break;
                    }
                }
            }
        } else {
            $foundtree = true;
            $row = mysql_fetch_assoc($treeresult);
        }
        if ($foundtree && $forminfo['lastimport']) {
            $lastimport = $row['lastimportdate'];
            if ($lastimport) {
                $importtime = strtotime($lastimport);
                if (substr($lastimport, 11, 8) != "00:00:00") {
                    $importtime += $time_offset * 3600;
                }
                $importdate = strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' ? strftime("%#d %b %Y %H:%M:%S", $importtime) : strftime("%e %b %Y %H:%M:%S", $importtime);
                echo "<p class=\"normal\">{$text['lastimportdate']}: " . displayDate($importdate) . "</p>";
            }
        }
        mysql_free_result($treeresult);
    }
    return $ret;
}