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


PHP spacer函数代码示例

本文整理汇总了PHP中spacer函数的典型用法代码示例。如果您正苦于以下问题:PHP spacer函数的具体用法?PHP spacer怎么用?PHP spacer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: PageCompPageMainCode

/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $site;
    if ($_POST['DELETE']) {
        profile_delete($_COOKIE['memberID']);
        setcookie('memberID', $_COOKIE['memberID'], time() - 3600, '/');
        setcookie('memberPassword', $_COOKIE['memberPassword'], time() - 3600, '/');
        return "<center>" . _t("_DELETE_SUCCESS") . "<br />\n\t\t\t\t<a href=\"{$site['url']}\">{$site['title']}</a></center>";
    }
    ob_start();
    echo spacer(1, 5);
    ?>

<table width="100%" cellpadding="4" cellspacing="4">
	<td align="center" class="text2">
		<form action="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
" method="post">
			<input type="hidden" name="DELETE" value="1">
			<center>
				<?php 
    echo _t("_DELETE_TEXT");
    ?>
<br /><br />
				<input class="no" type="submit" value="<?php 
    echo _t("_Delete account");
    ?>
">
				<br />
				<br />
			</center>
		</form>
	</td>
</table>

<?php 
    $ret = ob_get_clean();
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:43,代码来源:unregister.php

示例2: commonFooter

function commonFooter($padding = true)
{
    global $RIGHT_SIDEBAR_DATA;
    if ($padding) {
        print "<br />";
    }
    ?>
      </td>
     </tr>
    </table>
   </td>
   <?php 
    if (isset($RIGHT_SIDEBAR_DATA)) {
        ?>
   <td bgcolor="#CCCCCC" style="background-image: url(/gifs/checkerboard.gif)"><?php 
        spacer(1, 1);
        ?>
<br /></td>
   <td width="170" bgcolor="#F0F0F0">
    <table width="100%" cellpadding="4" cellspacing="0">
     <tr valign="top">
      <td class="sidebar">
       <?php 
        echo $RIGHT_SIDEBAR_DATA;
        ?>
      </td>
     </tr>
    </table>
   </td>
   <?php 
    }
    ?>
  </tr>
 </table>

 <table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr bgcolor="#000033"><td><?php 
    spacer(1, 1);
    ?>
<br /></td></tr>
  <tr bgcolor="#006699">
   <td align="right" valign="bottom">
    <?php 
    //print_link('/source.php?url='.$_SERVER['SCRIPT_NAME'], 'show source', false, 'class="menuWhite"');
    //echo delim();
    print_link('/credits.php', 'credits', false, 'class="menuWhite"');
    ?>
&nbsp;<br />
   </td>
  </tr>
  <tr bgcolor="#000033"><td><?php 
    spacer(1, 1);
    ?>
<br /></td></tr>
 </table>

 <table border="0" cellspacing="0" cellpadding="6" width="100%">
  <tr valign="top" bgcolor="#CCCCCC">
   <td>
    <small>
     <?php 
    print_link('http://www.php.net/', make_image('php-logo.gif', 'PHP', 'left'));
    ?>
     &nbsp;<?php 
    print_link('/copyright.php', 'Copyright &copy; 2001-' . date('Y') . ' The PHP Group');
    ?>
<br />
     &nbsp;All rights reserved.<br />
    </small>
   </td>
   <td align="right">
    <small>
     Last updated: <?php 
    echo strftime("%c %Z", getlastmod());
    ?>
<br />
    </small>
    <br />
   </td>
  </tr>
 </table>
</body>
</html>
<?php 
}
开发者ID:marcosptf,项目名称:web-gtk,代码行数:85,代码来源:layout.php

示例3: must_filled

                //COUNTRY MENU
            //COUNTRY MENU
            case "SC":
                $CNT_TMP .= "<tr><td class=\"formLabel\" align=\"right\">" . must_filled($cfield[2]) . $cfield[3] . "</td><td>";
                $CNT_TMP .= "<select name=\"" . $cfield[1] . "\" id=\"" . $cfield[1] . "\" class=\"selectMenu\"";
                $CNT_TMP .= ($cfield[6] ? " style=\"width:" . $cfield[6] . "px\"" : "") . ">\n";
                $CNT_TMP .= list_country($cfield[5]);
                $CNT_TMP .= "</select></td></tr>\n";
                break;
                // Captcha Image
            // Captcha Image
            case "CA":
                $CNT_TMP .= "<tr><td class=\"formLabel\" align=\"right\">" . must_filled($cfield[2]) . $cfield[3] . "</td><td>";
                $CNT_TMP .= '<table cellpadding="0" cellspacing="0" border="0"><tr><td>';
                $CNT_TMP .= "<input type=\"text\" name=\"" . $cfield[1] . "\" value=\"" . html_specialchars(trim($cfield[5])) . "\" size=\"" . $cfield_length . "\" ";
                $CNT_TMP .= $cfield_max_height ? "maxlength=\"" . $cfield_max_height . "\" " : "";
                $CNT_TMP .= "id=\"" . $cfield[1] . "\" class=\"inputText\"" . ($cfield[6] ? " style=\"width:" . $cfield[6] . "px\"" : "") . " />";
                $CNT_TMP .= "</td><td>&nbsp;&nbsp;</td><td>" . '<img src="img/captcha.php?regen=y&amp;' . time() . '" alt="Captcha" />' . "</tr></table></td></tr>\n";
                break;
        }
    }
    $CNT_TMP .= "<tr><td colspan=\"2\">" . spacer(1, 10) . "</td></tr>\n";
    $CNT_TMP .= "<tr><td>" . spacer(1, 1) . "</td><td>" . $form_hidden_field;
    $CNT_TMP .= "<input type=\"submit\" name=\"submit\" value=\"" . html_specialchars(trim($cform[3])) . "\" class=\"formButton\" />";
    $CNT_TMP .= "<input type=\"hidden\" name=\"subject\" value=\"" . $cform[1] . "\" />";
    $CNT_TMP .= "<input type=\"hidden\" name=\"recipient\" value=\"" . $cform[2] . "\" />";
    $CNT_TMP .= getFormTrackingValue();
    $CNT_TMP .= sizeof($cfield_required) ? "<input type=\"hidden\" name=\"required\" value=\"" . implode(",", $cfield_required) . "\" />" : "";
    $CNT_TMP .= "<input type=\"hidden\" name=\"type\" value=\"" . $cform[4] . "\" /></td></tr>\n";
    $CNT_TMP .= "</table></form>\n";
}
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:cnt10.article.inc.php

示例4: headline

            $media["result"] .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]);
            $media["result"] .= "<div align=\"center\">" . $media["code"] . "</div>";
            break;
        case 2:
            $media["result"] .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]);
            $media["result"] .= "<div align=\"right\">" . $media["code"] . "</div>";
            break;
        case 3:
            $media["result"] .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"left\">\n";
            $media["result"] .= "<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n";
            $media["result"] .= $crow["acontent_title"] ? "<tr><td class=\"tableHead\">" . html_specialchars($crow["acontent_title"]) . "</td><td>" . spacer(5, 1) . "</td></tr>\n<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n" : "";
            $media["result"] .= $crow["acontent_subtitle"] ? "<tr><td class=\"tableSubHead\">" . html_specialchars($crow["acontent_subtitle"]) . "</td><td>" . spacer(5, 1) . "</td></tr>\n<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n" : "";
            $media["result"] .= "<tr><td>" . $media["code"] . "</td><td>" . spacer(5, 1) . "</td></tr>\n";
            $media["result"] .= "<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n";
            $media["result"] .= "</table>\n";
            break;
        case 4:
            $media["result"] .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\">\n";
            $media["result"] .= "<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n";
            $media["result"] .= $crow["acontent_title"] ? "<tr><td>" . spacer(5, 1) . "</td><td class=\"tableHead\">" . html_specialchars($crow["acontent_title"]) . "</td></tr>\n<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n" : "";
            $media["result"] .= $crow["acontent_subtitle"] ? "<tr><td>" . spacer(5, 1) . "</td><td class=\"tableSubHead\">" . html_specialchars($crow["acontent_subtitle"]) . "</td></tr>\n<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n" : "";
            $media["result"] .= "<tr><td>" . spacer(5, 1) . "</td><td>" . $media["code"] . "</td></tr>\n";
            $media["result"] .= "<tr><td colspan=\"2\">" . spacer(1, 3) . "</td></tr>\n";
            $media["result"] .= "</table>\n";
            break;
    }
} else {
    $media["result"] = headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]);
}
$CNT_TMP .= LF . trim(render_cnt_template($crow["acontent_template"], 'MULTIMEDIA', trim($media["result"]))) . LF;
unset($media);
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:cnt9.article.inc.php

示例5: imagelisttable

function imagelisttable($imagelist, $rand = "0:0:0:0", $align = 0, $type = 0)
{
    // build imagelist or ecard chooser table
    // image: type = 0
    // ecard: type = 1
    $template_type = $type ? 'ecard' : 'imagelist';
    $usetable = !isset($imagelist['usetable']) || $imagelist['usetable'] ? true : false;
    if (empty($GLOBALS['cnt_image_lightbox'])) {
        $lightbox = 0;
    } else {
        $lightbox = generic_string(5);
    }
    $caption_on = empty($imagelist['nocaption']) ? true : false;
    $crop = empty($imagelist['crop']) ? 0 : 1;
    $image_border = ' border="' . (empty($GLOBALS["template_default"]["article"][$template_type . "_border"]) ? '0' : $GLOBALS["template_default"]["article"][$template_type . "_border"]) . '"';
    if ($usetable) {
        $table_class = $GLOBALS["template_default"]["article"][$template_type . "_table_class"];
        if (empty($align)) {
            $align = '';
        } else {
            $table_class .= ' ' . $GLOBALS['template_default']['classes']['image-list-table'] . $align;
            $align = ' align="' . $align . '"';
        }
        $table_class = ' class="' . trim($table_class) . '"';
        $table_bgcolor = empty($GLOBALS["template_default"]["article"][$template_type . "_table_bgcolor"]) ? '' : ' bgcolor="' . $GLOBALS["template_default"]["article"][$template_type . "_table_bgcolor"] . '"';
        $image_align = empty($GLOBALS["template_default"]["article"][$template_type . "_align"]) ? '' : ' align="' . $GLOBALS["template_default"]["article"][$template_type . "_align"] . '"';
        $image_valign = empty($GLOBALS["template_default"]["article"][$template_type . "_valign"]) ? '' : ' valign="' . $GLOBALS["template_default"]["article"][$template_type . "_valign"] . '"';
        $image_class = empty($GLOBALS["template_default"]["article"][$template_type . "_class"]) ? '' : ' class="' . $GLOBALS["template_default"]["article"][$template_type . "_class"] . '"';
        $image_bgcolor = empty($GLOBALS["template_default"]["article"][$template_type . "_bgcolor"]) ? '' : ' bgcolor="' . $GLOBALS["template_default"]["article"][$template_type . "_bgcolor"] . '"';
        $caption_class = empty($GLOBALS["template_default"]["article"][$template_type . "_caption_class"]) ? '' : ' class="' . $GLOBALS["template_default"]["article"][$template_type . "_caption_class"] . '"';
        $caption_bgcolor = empty($GLOBALS["template_default"]["article"][$template_type . "_caption_bgcolor"]) ? '' : ' bgcolor="' . $GLOBALS["template_default"]["article"][$template_type . "_caption_bgcolor"] . '"';
        $caption_valign = empty($GLOBALS["template_default"]["article"][$template_type . "_caption_valign"]) ? '' : ' valign="' . $GLOBALS["template_default"]["article"][$template_type . "_caption_valign"] . '"';
        $caption_align = empty($GLOBALS["template_default"]["article"][$template_type . "_caption_align"]) ? '' : ' align="' . $GLOBALS["template_default"]["article"][$template_type . "_caption_align"] . '"';
        $image_imgclass = empty($GLOBALS["template_default"]["article"][$template_type . "_imgclass"]) ? '' : ' class="' . $GLOBALS["template_default"]["article"][$template_type . "_imgclass"] . '"';
        $capt_before = $GLOBALS["template_default"]["article"][$template_type . "_caption_before"];
        $capt_after = $GLOBALS["template_default"]["article"][$template_type . "_caption_after"];
    } else {
        $image_imgclass = ' class="' . $imagelist['class_image_thumb'] . '"';
    }
    $rand = explode(":", $rand);
    if (count($rand)) {
        foreach ($rand as $key => $value) {
            $rand[$key] = intval($value);
        }
    } else {
        $rand = array(0, 0, 0, 0);
    }
    $col_rand = $rand[2] && $rand[3] ? 2 : ($rand[2] || $rand[3] ? 1 : 0);
    if ($count_images = count($imagelist['images'])) {
        // randomize image
        if (!empty($imagelist['random'])) {
            shuffle($imagelist['images']);
        }
        if (empty($imagelist['limit'])) {
            $imagelist['limit'] = 0;
        }
        //Tabelle starten
        $table = LF;
        if ($usetable) {
            $table .= '	<table border="0" cellspacing="0" cellpadding="0"' . $align . $table_bgcolor . $table_class . ' summary="">' . LF;
        } else {
            $table .= '	<div class="';
            if (empty($imagelist['class'])) {
                $table .= 'image-table';
            } else {
                $table .= $imagelist['class'];
            }
            $table .= '">' . LF;
        }
        $x = 0;
        $y = 0;
        $z = 0;
        foreach ($imagelist['images'] as $key => $value) {
            if (isset($imagelist['width'])) {
                $imagelist['images'][$key][4] = $imagelist['width'];
                $imagelist['images'][$key][5] = $imagelist['height'];
            }
            $y++;
            if ($usetable && $z && $x == 1) {
                if ($col_space) {
                    $table .= LF . '<tr>' . LF . '	<td';
                    $table .= $col_total > 1 ? " colspan=\"" . $col_total . "\"" : "";
                    if (!empty($GLOBALS["template_default"]['article']['imagelist_spacerrow_class'])) {
                        $table .= ' class="' . $GLOBALS["template_default"]['article']['imagelist_spacerrow_class'] . '">';
                        $table .= spacer(1, 1) . '</td>' . LF . '</tr>' . LF;
                    } else {
                        $table .= '>' . spacer(1, $col_space) . '</td>' . LF . '</tr>' . LF;
                    }
                }
            }
            if ($usetable && !$x) {
                //Some default values
                $col_space = $imagelist['space'];
                //Space between images
                $col_count = $imagelist['col'];
                //columns
                $col_total = $col_count + ($col_space ? $col_count - 1 : 0) + $col_rand;
                //Wenn oberer Rand definiert
                if ($rand[0]) {
                    $table .= '<tr>' . LF . '	<td' . ($col_total > 1 ? ' colspan="' . $col_total . '"' : '') . '>' . spacer(1, $rand[0]) . '</td>' . LF . '</tr>' . LF;
//.........这里部分代码省略.........
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:101,代码来源:img.func.inc.php

示例6: system_packages

function system_packages()
{
    $sock = new sockets();
    $users = new usersMenus();
    $KASPERSKY_APPLIANCE = FALSE;
    if ($users->KASPERSKY_SMTP_APPLIANCE) {
        $KASPERSKY_APPLIANCE = TRUE;
    }
    if ($users->KASPERSKY_WEB_APPLIANCE) {
        $KASPERSKY_APPLIANCE = TRUE;
    }
    if ($users->OPENVPN_APPLIANCE) {
        $OPENVPN_APPLIANCE = TRUE;
    }
    $MEM_TOTAL_INSTALLEE = $users->MEM_TOTAL_INSTALLEE;
    $GlobalApplicationsStatus = $sock->APC_GET("GlobalApplicationsStatus", 2);
    if ($GlobalApplicationsStatus == null) {
        $GlobalApplicationsStatus = base64_decode($sock->getFrameWork('cmd.php?Global-Applications-Status=yes'));
        $sock->APC_SAVE("GlobalApplicationsStatus", $GlobalApplicationsStatus);
    }
    $html = "\n\n<br>\n<table style='width:100%;padding:2px:margin:3px;border:1px solid #CCCCCC'>\n<tr style='background-color:#CCCCCC'>\n<td>&nbsp;</td>\n<td style='font-size:13px'><strong>{software}</strong></td>\n<td style='font-size:13px'><strong>{current_version}</strong></td>\n<td style='font-size:13px'><strong>{available_version}</strong></td>\n<td style='font-size:13px'>&nbsp;</td>\n<td style='font-size:13px'><strong>{status}</strong></td>\n</tr>";
    if ($users->VMWARE_HOST) {
        $html = $html . BuildRows("APP_VMTOOLS", $GlobalApplicationsStatus, "VMwareTools");
    }
    if ($users->VIRTUALBOX_HOST) {
        $html = $html . BuildRows("APP_VBOXADDITIONS", $GlobalApplicationsStatus, "VBoxLinuxAdditions-{$users->ArchStruct}");
    }
    if ($users->LinuxDistriCode == 'DEBIAN' or $users->LinuxDistriCode == 'UBUNTU') {
        $html = $html . BuildRows("APP_OPENLDAP", $GlobalApplicationsStatus, "openldap");
    }
    //if(!$users->AS_VPS_CLIENT){$html=$html.BuildRows("APP_MYSQL",$GlobalApplicationsStatus,"mysql-cluster-gpl");}
    if (!$KASPERSKY_APPLIANCE) {
        if ($MEM_TOTAL_INSTALLEE > 700000) {
            if (!$users->AS_VPS_CLIENT) {
                $html = $html . BuildRows("APP_LXC", $GlobalApplicationsStatus, "lxc");
            }
        }
    }
    $html = $html . BuildRows("APP_PHPLDAPADMIN", $GlobalApplicationsStatus, "phpldapadmin");
    $html = $html . BuildRows("APP_MYSQL", $GlobalApplicationsStatus, "mysql-server");
    $html = $html . BuildRows("APP_PHPMYADMIN", $GlobalApplicationsStatus, "phpMyAdmin");
    if (!$KASPERSKY_APPLIANCE) {
        $html = $html . BuildRows("APP_GREENSQL", $GlobalApplicationsStatus, "greensql-fw");
    }
    if (!$KASPERSKY_APPLIANCE) {
        $html = $html . BuildRows("APP_TOMCAT", $GlobalApplicationsStatus, "apache-tomcat");
    }
    //$html=$html.BuildRows("APP_EACCELERATOR",$GlobalApplicationsStatus,"eaccelerator");
    if (!$KASPERSKY_APPLIANCE) {
        $html = $html . spacer('{smtp_packages}');
        $html = $html . BuildRows("APP_MSMTP", $GlobalApplicationsStatus, "msmtp");
        if ($MEM_TOTAL_INSTALLEE > 500000) {
            $html = $html . BuildRows("APP_EMAILRELAY", $GlobalApplicationsStatus, "emailrelay");
        }
    }
    $html = $html . spacer('{network_softwares}');
    if (!$KASPERSKY_APPLIANCE) {
        $html = $html . BuildRows("APP_DHCP", $GlobalApplicationsStatus, "dhcp");
    }
    if (!$KASPERSKY_APPLIANCE) {
        if ($MEM_TOTAL_INSTALLEE > 700000) {
            $html = $html . BuildRows("APP_PDNS", $GlobalApplicationsStatus, "pdns");
        }
    }
    if (!$KASPERSKY_APPLIANCE) {
        if ($MEM_TOTAL_INSTALLEE > 700000) {
            $html = $html . BuildRows("APP_POWERADMIN", $GlobalApplicationsStatus, "poweradmin");
        }
    }
    if (!$KASPERSKY_APPLIANCE) {
        $html = $html . BuildRows("APP_OPENVPN", $GlobalApplicationsStatus, "openvpn");
    }
    $html = $html . BuildRows("APP_IPTACCOUNT", $GlobalApplicationsStatus, "iptaccount");
    if (!$KASPERSKY_APPLIANCE) {
        $html = $html . BuildRows("APP_AMACHI", $GlobalApplicationsStatus, "hamachi");
    }
    if (!$KASPERSKY_APPLIANCE) {
        $html = $html . BuildRows("APP_PUREFTPD", $GlobalApplicationsStatus, "pure-ftpd");
    }
    if (!$KASPERSKY_APPLIANCE) {
        if (!$OPENVPN_APPLIANCE) {
            $html = $html . BuildRows("APP_MLDONKEY", $GlobalApplicationsStatus, "mldonkey");
        }
    }
    if (!$KASPERSKY_APPLIANCE) {
        if (!$OPENVPN_APPLIANCE) {
            $html = $html . spacer('{storagebakcup_softwares}');
            $html = $html . BuildRows("APP_AMANDA", $GlobalApplicationsStatus, "amanda");
            $html = $html . BuildRows("APP_DROPBOX", $GlobalApplicationsStatus, "dropbox-32");
            $html = $html . BuildRows("APP_FUSE", $GlobalApplicationsStatus, "fuse");
            $html = $html . BuildRows("APP_ZFS_FUSE", $GlobalApplicationsStatus, "zfs-fuse");
            $html = $html . BuildRows("APP_TOKYOCABINET", $GlobalApplicationsStatus, "tokyocabinet");
            $html = $html . BuildRows("APP_LESSFS", $GlobalApplicationsStatus, "lessfs");
            if (!$KASPERSKY_APPLIANCE) {
                $html = $html . BuildRows("APP_DAR", $GlobalApplicationsStatus, "dar");
            }
        }
    }
    if (!$KASPERSKY_APPLIANCE) {
        $html = $html . spacer('{secuirty_softwares}');
//.........这里部分代码省略.........
开发者ID:articatech,项目名称:artica,代码行数:101,代码来源:setup.index.php

示例7: response_header

function response_header($title = 'The PHP Extension Community Library', $style = false)
{
    global $_style, $_header_done, $SIDEBAR_DATA, $extra_styles, $auth_user;
    if ($_header_done) {
        return;
    }
    $_header_done = true;
    $_style = $style;
    $rts = rtrim($SIDEBAR_DATA);
    if (substr($rts, -1) == '-') {
        $SIDEBAR_DATA = substr($rts, 0, -1);
    } else {
        global $main_menu, $docu_menu, $downloads_menu;
        $SIDEBAR_DATA .= draw_navigation($main_menu);
        $SIDEBAR_DATA .= draw_navigation($docu_menu, 'Documentation:');
        $SIDEBAR_DATA .= draw_navigation($downloads_menu, 'Downloads:');
        if (!$GLOBALS['_NODB']) {
            init_auth_user();
        } else {
            $auth_user = null;
        }
        if (is_logged_in()) {
            global $developer_menu;
            $SIDEBAR_DATA .= draw_navigation($developer_menu, 'Developers:');
            if (auth_check(true)) {
                global $admin_menu;
                $SIDEBAR_DATA .= draw_navigation($admin_menu, 'Administrators:');
            }
        }
    }
    echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
 <title>PECL :: <?php 
    echo $title;
    ?>
</title>
 <link rel="shortcut icon" href="/gifs/pecl-favicon.ico" />
 <link rel="stylesheet" href="/css/style.css" />
<?php 
    foreach ($extra_styles as $style_file) {
        echo ' <link rel="stylesheet" href="' . $style_file . "\" />\n";
    }
    ?>
 <link rel="alternate" type="application/rss+xml" title="RSS feed" href="http://<?php 
    echo $_SERVER['HTTP_HOST'];
    ?>
/feeds/latest.rss" />
</head>

<body <?php 
    if (!empty($GLOBALS['ONLOAD'])) {
        print "onload=\"" . $GLOBALS['ONLOAD'] . "\"";
    }
    ?>
>
<div>
 <a id="TOP"></a>
</div>

<!-- START HEADER -->

<table class="head" cellspacing="0" cellpadding="0" width="100%">
 <tr>
  <td class="head-logo">
<?php 
    print_link('/', make_image('peclsmall.gif', 'PECL :: The PHP Extension Community Library', false, false, false, false, 'margin: 5px;'));
    ?>
<br />
  </td>

  <td class="head-menu">
      <?php 
    if (empty($auth_user)) {
        print_link('/login.php', 'Login', false, 'class="menuBlack"');
    } else {
        print '<small class="menuWhite">';
        print 'Logged in as ' . strtoupper($auth_user->handle) . ' (';
        print '<a class="menuWhite" href="/user/' . $auth_user->handle . '">Info</a> | ';
        print '<a class="menuWhite" href="/account-edit.php?handle=' . $auth_user->handle . '">Profile</a> | ';
        print '<a class="menuWhite" href="https://bugs.php.net/search.php?cmd=display&amp;status=Open&amp;assign=' . $auth_user->handle . '">Bugs</a>';
        print ")</small><br />\n";
        print_link('/?logout=1', 'Logout', false, 'class="menuBlack"');
    }
    echo delim();
    print_link('/packages.php', 'Packages', false, 'class="menuBlack"');
    echo delim();
    print_link('/support.php', 'Support', false, 'class="menuBlack"');
    echo delim();
    print_link('/bugs/', 'Bugs', false, 'class="menuBlack"');
    ?>
&nbsp;<br />
      <?php 
    spacer(2, 2);
    ?>
<br />
  </td>
 </tr>
//.........这里部分代码省略.........
开发者ID:phpsource,项目名称:web-pecl,代码行数:101,代码来源:pear-format-html.php

示例8: statikHTML

        } else {
            echo statikHTML("5. İş Deneyimi", null);
        }
        echo "<br />";
        $titles = array("6. Yabancı Dil Bilgisi", "Yabancı Dil", "Okuma", "Konuşma", "Yazma", "Anlama");
        $tableIds = array("DIL_ADI", "DIL_DERECESI");
        $dilA = getPersonelArr($dil, $tableIds, 1);
        $tableIds = array("DIL_ADI", "DIL_DERECESI_1", "DIL_DERECESI_2", "DIL_DERECESI_3", "DIL_DERECESI_4");
        if (isset($dilA[$i])) {
            echo tabloHTML($titles, $tableIds, $dilA[$i]);
        } else {
            echo statikHTML("6. Yabancı Dil Bilgisi", null);
        }
        echo "<br />";
        if ($i < count($personel) - 1) {
            echo spacer();
            echo "<br />";
        }
    }
}
?>
	</div>
	<div class="form_element">
		 <div style="padding-bottom:10px;">
			<input type='button' name='geriUst' value='Geri' onClick='formSubmitted(1);'/>
			<input type='button' name='bitirUst' value='Bitir' onClick='formSubmitted(2);'/>
		</div>
	</div>
	
</form>
        
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:30,代码来源:tum_basvuru.php

示例9: while

    }
    if (!$mm) {
        $mm = $today['mon'];
    }
}
$yyyy = (int) $yyyy;
$mm = (int) $mm;
$f = @file("./calendar/{$yyyy}.txt");
if ($f) {
    while ($line = each($f)) {
        $tmp = explode("|", $line[value]);
        $nal[$tmp[0]] = $tmp;
        //print_r2($nal);
    }
}
$spacer = spacer($yyyy, $mm);
$endday = array(1 => 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
// 윤년 계산 부분이다. 4년에 한번꼴로 2월이 28일이 아닌 29일이 있다.
if ($yyyy % 4 == 0 && $yyyy % 100 != 0 || $yyyy % 400 == 0) {
    $endday[2] = 29;
}
// 조건에 적합할 경우 28을 29로 변경
// 해당월의 1일
$mktime = mktime(0, 0, 0, $mm, 1, $yyyy);
$dt = getdate(strtotime(date("Y-m-1", $mktime)));
$dt[wday] = $spacer;
// 해당월의 마지막 날짜,
//$last_day = date("t", $mktime);
$last_day = $endday[$mm];
$yyyy_before = $yyyy;
$mm_before = $mm - 1;
开发者ID:ragi79,项目名称:g4dtd,代码行数:31,代码来源:calendar.php

示例10: navigationBar

function navigationBar($title, $id, $loc)
{
    global $NEXT, $PREV, $tstamp, $CHARSET;
    echo '<table border="0" width="620" bgcolor="#e0e0e0" cellpadding="0" cellspacing="4">';
    echo '<tr><td>';
    if ($PREV[1]) {
        print_link($PREV[0], make_image('caret-l.gif', 'previous') . @htmlspecialchars($PREV[1], ENT_QUOTES, $CHARSET));
    }
    echo '<br /></td>';
    echo '<td align="right">';
    if ($NEXT[1]) {
        print_link($NEXT[0], @htmlspecialchars($NEXT[1], ENT_QUOTES, $CHARSET) . make_image('caret-r.gif', 'next'));
    }
    echo '<br /></td>';
    echo '</tr>';
    echo '<tr bgcolor="#cccccc"><td colspan="2">';
    spacer(1, 1);
    echo '<br /></td></tr>';
    if ($loc != 'bottom') {
        global $LANGUAGES;
        $links = array();
        foreach ($LANGUAGES as $code => $name) {
            if (file_exists("../{$code}/{$id}")) {
                $links[] = make_link("../{$code}/{$id}", $name);
            }
        }
        $file = substr($id, 0, -4);
        if (file_exists("html/{$file}.html")) {
            $links[] = make_link("html/{$file}.html", 'Plain HTML');
        }
        echo '<tr>';
        if (count($links)) {
            echo '<td><small>View this page in ' . join(delim(), $links) . '</small></td>';
        }
        echo '<td align="right"><small>Last updated: ' . $tstamp . '</small></td></tr>';
    } else {
        echo '<tr>';
        echo '<td valign="top" align="left"><small>' . make_link("/download-docs.php", "Download Documentation") . '</small</td>';
        echo '<td align="right"><small>Last updated: ' . $tstamp . '<br />';
    }
    echo '</small></td></tr>';
    echo "</table>\n";
}
开发者ID:phpsource,项目名称:web-pecl,代码行数:43,代码来源:pear-manual.php

示例11: listing_page

function listing_page($message = null)
{
    global $self, $directory, $sort, $reverse;
    html_header();
    $list = getlist($directory);
    if (array_key_exists('sort', $_GET)) {
        $sort = $_GET['sort'];
    } else {
        $sort = 'filename';
    }
    if (array_key_exists('reverse', $_GET) && $_GET['reverse'] == 'true') {
        $reverse = true;
    } else {
        $reverse = false;
    }
    $list = sortlist($list, $sort, $reverse);
    echo '<h1 style="margin-bottom: 0">Web File Browser (webadmin.php)</h1>

<form enctype="multipart/form-data" action="' . $self . '" method="post">

<table id="main">
';
    directory_choice();
    if (!empty($message)) {
        spacer();
        echo $message;
    }
    if (@is_writable($directory)) {
        upload_box();
        create_box();
    } else {
        spacer();
    }
    if ($list) {
        listing($list);
    } else {
        echo error('not_readable', $directory);
    }
    echo '</table>

</form>

';
    html_footer();
}
开发者ID:drognisep,项目名称:Simple-Groupware,代码行数:45,代码来源:browser.php

示例12: utf8_encode

$s = "čšžčk";
//$s is a string from whatever source
//mb_detect_encoding($s, "UTF-8") == "UTF-8" ? : $s = utf8_encode($s);
//$s = iconv("UTF-8//TRANSLIT", "iso-8859-2", $s);
utf8_encode($s);
///koliko bomo pomaknili vse v desno//
$XOF = 26;
$LN_DEFAULT = 4;
//Instanciation of inherited class
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
//$pdf->AddFont('luxisb','','luxisb.php');
$pdf->AddFont('Arial', '', 'Arial.php');
$pdf->SetFont('Arial', '', 8);
//Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill [, mixed link]]]]]]])
//NAziv in sedez
$pdf->SetXY($XOF + 35, 29);
$pdf->Cell(0, 0, "Root d.o.o., cesta v {$s} 10 3320 velenje", 0, 0, 'L');
//$pdf->MultiCell(65, 4,'sss', '', 'TL',0);
$pdf->Ln($LN_DEFAULT);
$pdf->SetXY($XOF + 22, $pdf->getY());
//napisemo davcno//
$pdf->Cell(0, 0, spacer("2005977500396", 4), 0, 0, 'L');
//nova vrsta
$pdf->Ln($LN_DEFAULT);
$pdf->SetXY($XOF + 30, $pdf->getY());
//gospodarska dejavnost//
$pdf->Cell(0, 0, 'Struzenje in gledanje', 0, 0, 'L');
//output of the PDF//
$pdf->Output("test.pdf", "I");
开发者ID:urki,项目名称:urki-test-project,代码行数:31,代码来源:test3.php

示例13: top

	if (strtolower(p('username')) == strtolower(schlage_username()) && p('password') == schlage_password()) {
		success('Welcome back!');
		s('logged_in', 1);
		r('/users');
	} else {
		error('Invalid login');
	}
}

top();


form();
func('login');

label('Username');
textfield('username');

label('Password');
password('password');

label();
submit('Log in');
spacer();

endform();


bottom();

?>
开发者ID:rishair,项目名称:schlagelink-twilio,代码行数:31,代码来源:login.php

示例14: td_attributes

     $content["all"] .= td_attributes($pagelayout, "all", 0);
     $content["all"] .= align_base_layout($pagelayout["layout_align"]) . " summary=\"\">" . LF;
     // align table
     //header
     $content["all"] .= colspan_table_row($pagelayout, "header", $colspan, $block["headertext"]);
     //header row
     if ($pagelayout["layout_topspace_height"]) {
         //header space
         $content["all"] .= colspan_table_row($pagelayout, "topspace", $colspan, spacer(1, $pagelayout["layout_topspace_height"]));
     }
     //returns the main blocks: left column, content column, right column
     $content["all"] .= get_table_block($pagelayout, $block["maintext"], $block["lefttext"], $block["righttext"]);
     //footer
     if ($pagelayout["layout_bottomspace_height"]) {
         //bottom space
         $content["all"] .= colspan_table_row($pagelayout, "bottomspace", $colspan, spacer(1, $pagelayout["layout_bottomspace_height"]));
     }
     $content["all"] .= colspan_table_row($pagelayout, "footer", $colspan, $block["footertext"]);
     //footer row
     $content["all"] .= '</table>' . LF;
     //end main table
     break;
 case 1:
     //create the page layout based on DIV (layer)
     //contentContainer DIV start
     $content["all"] = '';
     $pagelayout['additional_wrap_div'] = false;
     switch ($pagelayout["layout_align"]) {
         case 1:
             $content["all"] .= '<div align="center" style="margin:0;padding:0;">';
             $pagelayout['additional_wrap_div'] = true;
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:content.func.inc.php

示例15: PDF

//
//
//$text = iconv("iso-8859-1", "iso-8859-2", $SUMNIKI);
//test Šumnikov
///koliko bomo pomaknili vse v desno//
$XOF = 26;
$LN_DEFAULT = 5;
//Instanciation of inherited class
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->Image('img/obrazec.jpg', 0, 0, 197, 297);
//$pdf->AddFont('luxisb','','luxisb.php');
$pdf->AddFont('Arial', '', 'Arial.php');
$pdf->SetFont('Arial', '', 8);
//Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill [, mixed link]]]]]]])
//NAziv in sedez
$pdf->SetXY($XOF + 35, 15);
$pdf->Cell(0, 0, "Root d.o.o., cesta v {$text} 10 3320 velenje", 0, 0, 'L');
//$pdf->MultiCell(65, 4,'sss', '', 'TL',0);
$pdf->Ln($LN_DEFAULT);
$pdf->SetXY($XOF + 13, $pdf->getY());
//napisemo davcno//
$pdf->Cell(0, 0, spacer("123456789123", 4, 3), 0, 0, 'L');
//nova vrsta
$pdf->Ln($LN_DEFAULT);
$pdf->SetXY($XOF + 30, $pdf->getY());
//gospodarska dejavnost//
$pdf->Cell(0, 0, 'Struzenje in gledanje', 0, 0, 'L');
//output of the PDF//
$pdf->Output("test.pdf", "I");
开发者ID:urki,项目名称:urki-test-project,代码行数:31,代码来源:test.php


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