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


PHP do_table_header函数代码示例

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


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

示例1: main

 function main()
 {
     global $db;
     do_table_header("Obsedb CMS Mod Library");
     print "<tr><td style=\"background: #fff;\">";
     $phpVersion = phpversion();
     if ($phpVersion >= 5) {
         print '<h3 style="padding-left: 5px;"><span style="color: green;">Beta</span></h3>';
         if (!isset($_REQUEST['platform'])) {
             $xmlfile = simplexml_load_file('http://content.Obsedbcms.com/platforms.xml');
             foreach ($xmlfile as $platform) {
                 print '<div style="font-size: 10pt; padding: 10px; width: 300px; background-color: #fff; border: 1px solid #f5f5f5;">';
                 print '<a href="content.php?platform=' . $platform->var . '">' . $platform->title . '</a>';
                 print '</div><br />';
             }
         } else {
             $xmlfile = simplexml_load_file('http://content.Obsedbcms.com/' . $_REQUEST[platform]);
             foreach ($xmlfile as $Mod) {
                 print '<div style="padding: 10px; width: 300px; background-color: #fff; border: 1px solid #f5f5f5;">';
                 print '<div style="font-size: 10pt;">' . $Mod->title . '</div>';
                 print '<a href="content.php?do=import_Mod&Mod=' . $Mod->url . '">Import Mod</a>';
                 print '</div><br />';
             }
         }
     } else {
         print '<h3 style="margin: 0px;"><span style="color: green;">Error</span></h3>';
         print "You must have PHP version 5 or greater to access the content download system.";
     }
     print "</td></tr>";
     do_table_footer();
 }
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:31,代码来源:adminContentClass.php

示例2: manage

 function manage()
 {
     global $db;
     $Mod = $db->Execute("SELECT id,title FROM `Obsedb_Mods` WHERE `id` = '{$_REQUEST['id']}';");
     do_table_header("Downloads: " . clean($Mod->fields['title']));
     $result = $db->Execute("SELECT id,title,Modid FROM `Obsedb_downloads` WHERE `Modid` = '{$_REQUEST['id']}' ORDER BY `title`;");
     while ($row = $result->FetchNextObject()) {
         echo "<tr>\n\t\t\t\t\t<td style='font-size: 8pt;'>\n\t\t\t\t\t<a href=\"downloads.php?do=edit&id={$row->ID}\">[edit download]</a>\n\t\t\t\t\t<a href=\"downloads.php?do=delete&id={$row->ID}\">[delete]</a> &nbsp;\n\t\t\t\t\t" . clean($row->TITLE) . "\n\t\t\t\t\t</td>\n\t\t\t\t</tr>";
     }
 }
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:10,代码来源:adminDownloadsClass.php

示例3: add_section

 function add_section()
 {
     do_form_header("screenshots.php");
     do_table_header("Add Section");
     do_text_row("Title", "title");
     do_submit_row("Add Section");
     echo '<input type="hidden" name="do" value="add_section_confirm">';
     do_table_footer();
     do_form_footer();
 }
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:10,代码来源:adminScreenshotsClass.php

示例4: edit_template

function edit_template($title)
{
    global $db;
    do_table_header("Manage Templates");
    $result = $db->Execute("SELECT * FROM Obsedb_templates WHERE `title` = '{$title}';");
    do_form_header('templates.php');
    do_blank_row("Editing Template");
    print "<tr><td class=\"formlabel\">\n" . "<textarea rows=\"20\" cols=\"70\" name=\"html\">" . stripslashes($result->fields['html']) . "</textarea></td></tr>";
    do_submit_row("Save Template");
    print '<input type="hidden" name="title" value="' . $title . '">';
    print '<input type="hidden" name="do" value="save">';
    do_table_footer();
    do_form_footer();
}
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:14,代码来源:templates.php

示例5: viewStatistics

    function viewStatistics()
    {
        global $db;
        $result = $db->Execute("SELECT id FROM Obsedb_cheats");
        $totalCheats = $result->RecordCount();
        $result = $db->Execute("SELECT id FROM Obsedb_companies");
        $totalCompanies = $result->RecordCount();
        $result = $db->Execute("SELECT id FROM Obsedb_downloads");
        $totalDownloads = $result->RecordCount();
        $result = $db->Execute("SELECT id FROM Obsedb_Mods");
        $totalMods = $result->RecordCount();
        $result = $db->Execute("SELECT id FROM Obsedb_news");
        $totalNews = $result->RecordCount();
        $result = $db->Execute("SELECT id FROM Obsedb_previews");
        $totalPreviews = $result->RecordCount();
        $result = $db->Execute("SELECT id FROM Obsedb_reviews");
        $totalReviews = $result->RecordCount();
        $result = $db->Execute("SELECT id FROM Obsedb_screenshots");
        $totalScreenshots = $result->RecordCount();
        do_table_header('Database Statistics');
        echo '
			<tr>
				<td class="formlabel">';
        echo '
			<table border="0" cellspacing="0" cellpadding="5" width="100%">
			<tr>
			<td align="center"><strong>Total Cheats</strong><br />' . $totalCheats . '</td>
			<td align="center"><strong>Total Companies</strong><br />' . $totalCompanies . '</td>
			<td align="center"><strong>Total Downloads</strong><br />' . $totalDownloads . '</td>
			</tr>
			<tr>
			<td align="center"><strong>Total Mods</strong><br />' . $totalMods . '</td>
			<td align="center"><strong>Total Articles</strong><br />' . $totalNews . '</td>
			<td align="center"><strong>Total Previews</strong><br />' . $totalPreviews . '</td>
			</tr>
			<tr>
			<td align="center"><strong>Total Reviews</strong><br />' . $totalReviews . '</td>
			<td align="center"><strong>Total Screenshots</strong><br />' . $totalScreenshots . '</td>
			<td align="center"></td>
			</tr>
			</table>';
        echo '
				</td>
			</tr>';
        do_table_footer();
    }
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:46,代码来源:userDatabaseClass.php

示例6: manage

 function manage()
 {
     global $db;
     $result = $db->Execute("SELECT id,title\n\t\t\t\t\tFROM `Obsedb_Mods`\n\t\t\t\t\tWHERE `id` = '{$_REQUEST['id']}';");
     do_table_header("Cheats: " . clean($result->fields['title']));
     $result = $db->Execute("SELECT id,title,Modid\n\t\t\t\t\tFROM `Obsedb_cheats`\n\t\t\t\t\tWHERE `Modid` = '{$_REQUEST['id']}'\n\t\t\t\t\tORDER BY `title`;");
     echo '<tr><td style="font-size: 8pt;" class="formlabel">';
     if ($result->RecordCount() == 1) {
         echo '<b>There is 1 cheat for this Mod.</b>';
     } else {
         echo '<b>There are ' . $result->RecordCount() . ' cheats for this Mod.</b>';
     }
     echo '</td></tr>';
     while ($row = $result->FetchNextObject()) {
         echo "<tr>\n\t\t\t\t\t<td style='font-size: 8pt;' class='formlabel'>\n\t\t\t\t\t<a href=\"cheats.php?do=edit&id={$row->ID}\">[edit cheat]</a>\n\t\t\t\t\t<a href=\"cheats.php?do=delete&id={$row->ID}\">[delete]</a> &nbsp;\n\t\t\t\t\t" . clean($row->TITLE) . "\n\t\t\t\t\t</td>\n\t\t\t\t</tr>";
     }
     do_table_footer();
 }
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:18,代码来源:adminCheatsClass.php

示例7: list_sections

function list_sections()
{
    global $db;
    do_module_header('Sections', 'Manage all the sections of your website');
    do_table_header('Mod Sections');
    do_blank_row('<a href="Mods.php?do=add_section">Add Section</a>');
    $result = $db->Execute("SELECT id,title FROM `Obsedb_Mods_sections` ORDER BY `title`");
    while ($row = $result->FetchNextObject()) {
        do_blank_row("<b>" . stripslashes($row->TITLE) . "</b>");
        do_blank_row("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &middot; <a href='Mods.php?do=Edit+Section&id={$row->ID}'>Change the section name</a>");
        do_blank_row("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &middot; <a href='Mods.php?do=Delete+Section&id={$row->ID}'>Delete the section</a>");
    }
    do_table_footer();
    do_table_header('News Sections');
    do_blank_row('<a href="news.php?do=add_section">Add Section</a>');
    $result = $db->Execute("SELECT id,title FROM `Obsedb_news_sections` ORDER BY `title`");
    while ($row = $result->FetchNextObject()) {
        do_blank_row("<b>" . stripslashes($row->TITLE) . "</b>");
        do_blank_row("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &middot; <a href='news.php?do=Edit+Section&id={$row->ID}'>Change the section name</a>");
        do_blank_row("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &middot; <a href='news.php?do=Delete+Section&id={$row->ID}'>Delete the section</a>");
    }
    do_table_footer();
    do_table_header('Previews Sections');
    do_blank_row('<a href="previews.php?do=add_section">Add Section</a>');
    $result = $db->Execute("SELECT id,title FROM `Obsedb_previews_sections` ORDER BY `title`");
    while ($row = $result->FetchNextObject()) {
        do_blank_row("<b>" . stripslashes($row->TITLE) . "</b>");
        do_blank_row("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &middot; <a href='previews.php?do=Edit+Section&id={$row->ID}'>Change the section name</a>");
        do_blank_row("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &middot; <a href='previews.php?do=Delete+Section&id={$row->ID}'>Delete the section</a>");
    }
    do_table_footer();
    do_table_header('Reviews Sections');
    do_blank_row('<a href="reviews.php?do=add_section">Add Section</a>');
    $result = $db->Execute("SELECT id,title FROM `Obsedb_reviews_sections` ORDER BY `title`");
    while ($row = $result->FetchNextObject()) {
        do_blank_row("<b>" . stripslashes($row->TITLE) . "</b>");
        do_blank_row("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &middot; <a href='reviews.php?do=Edit+Section&id={$row->ID}'>Change the section name</a>");
        do_blank_row("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &middot; <a href='reviews.php?do=Delete+Section&id={$row->ID}'>Delete the section</a>");
    }
    do_table_footer();
}
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:41,代码来源:sections.php

示例8: do_submit_row

    do_submit_row();
    echo '<input type="hidden" name="do" value="edit_mailbag_confirm">';
    echo '<input type="hidden" name="id" value="' . $mailbag->fields['id'] . '">';
    do_table_footer();
    echo '</form>';
}
if ($_REQUEST['do'] == 'edit_mailbag_confirm') {
    $rs = $db->Execute("SELECT * FROM `Obsedb_mailbag` WHERE `id` = '{$_REQUEST['id']}'");
    $record = array('title' => $_REQUEST['title'], 'message' => $_REQUEST['message'], 'reply' => $_REQUEST['reply']);
    $sql = $db->GetUpdateSQL($rs, $record);
    $db->Execute($sql);
    SPMessage("Success | Changes have been saved.", "mailbag.php");
}
if ($_REQUEST['do'] == 'add_mailbag') {
    do_form_header('mailbag.php');
    do_table_header('Add Letter');
    do_text_row('Title', 'title');
    do_textarea_row('Message', 'message');
    do_textarea_row('Reply', 'reply');
    do_submit_row();
    echo '<input type="hidden" name="do" value="add_mailbag_confirm">';
    do_table_footer();
    echo '</form>';
}
if ($_REQUEST['do'] == 'add_mailbag_confirm') {
    $record = array('title' => $_REQUEST['title'], 'message' => $_REQUEST['message'], 'reply' => $_REQUEST['reply']);
    $db->AutoExecute('Obsedb_mailbag', $record, 'INSERT');
    SPMessage("Success | Letter has been added.", "mailbag.php");
}
if ($_REQUEST['do'] == 'Delete Letter') {
    $db->Execute("DELETE FROM `Obsedb_mailbag` WHERE `id` = '{$_REQUEST['id']}'");
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:31,代码来源:mailbag.php

示例9: define

<?php

include "global.php";
$cp->header();
define('Obsedb_LOADED', true);
do_module_header('Plugin Manager');
do_table_header('Installed Plugins');
foreach (glob("../sources/admin_plugins/*.plugin") as $filename) {
    include "{$filename}";
    ?>

		<tr>
			<td class="formlabel">
			<a href="loadplugin.php?load=<?php 
    echo $plugin_filename;
    ?>
"><b><?php 
    echo $plugin_title;
    ?>
</b></a>
			</td>
		</tr>

	<?php 
}
do_table_footer();
$cp->footer();
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:27,代码来源:plugins.php

示例10: array

    echo '</form>';
}
if ($_REQUEST['do'] == 'edit_section_confirm') {
    $rs = $db->Execute("SELECT * FROM `Obsedb_links_sections` WHERE `id` = '{$_REQUEST['id']}'");
    $record = array('title' => $_REQUEST['title']);
    $sql = $db->GetUpdateSQL($rs, $record);
    $db->Execute($sql);
    SPMessage('Success: Section has been updated.', 'links.php?do=manage_sections');
}
if ($_REQUEST['do'] == 'add_section_confirm') {
    $db->Execute("INSERT INTO `Obsedb_links_sections` (title) VALUES ('{$_REQUEST['title']}');");
    SPMessage('Success: Section has been created.', 'links.php?do=manage_sections');
}
if ($_REQUEST['do'] == 'manage_sections') {
    do_form_header('links.php');
    do_table_header('Sections');
    $result = $db->Execute("SELECT id,title FROM `Obsedb_links_sections` ORDER BY `title`");
    while ($row = $result->FetchNextObject()) {
        $bgcolor = $bgcolor == "#ECECFF" ? "#FFFFFF" : "#ECECFF";
        echo '<tr><td bgcolor="' . $bgcolor . '" colspan="2"><input type="radio" value="' . $row->ID . '" name="id"> ' . stripslashes($row->TITLE) . '</td></tr>';
    }
    echo '<tr>
			<td colspan="2">
				<input type="submit" name="do" value="Edit Section">
				<input type="submit" name="do" value="Delete Section">
			</td>
		  </tr>';
    do_table_footer();
    echo '</form>';
}
if ($_REQUEST['do'] == 'Delete Section') {
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:31,代码来源:links.php

示例11: do_form_header

if ($_REQUEST['do'] == 'Edit Poll Options') {
    $result = $db->Execute("SELECT *\n\t\t\t\t\t\t\tFROM Obsedb_polls_options\n\t\t\t\t\t\t\tWHERE poll_id = {$_REQUEST['id']}\n\t\t\t\t\t\t\tORDER BY id DESC");
    do_form_header('polls.php');
    do_table_header('Poll Options');
    while ($row = $result->FetchNextObject()) {
        $bgcolor = $bgcolor == "#ECECFF" ? "#FFFFFF" : "#ECECFF";
        echo "<TR>\n\t\t\t\t<TD BGCOLOR='{$bgcolor}' COLSPAN='2'>\n\t\t\t\t<INPUT TYPE='radio' name='id' value='{$row->ID}'>\n\t\t\t\t" . stripslashes($row->TEXT) . "</TD>\n\t\t\t  </TR>";
    }
    echo "\n\t\t\t<TR>\n\t\t\t\t<TD COLSPAN='2' CLASS='formlabel'>\n\t\t\t\t<INPUT TYPE='submit' NAME='do' VALUE='Edit Option'>\n\t\t\t\t<INPUT TYPE='submit' NAME='do' VALUE='Delete Option'>\n\t\t\t\t</TD>\n\t\t\t</TR>";
    do_table_footer();
    do_form_footer();
}
if ($_REQUEST['do'] == 'Edit Option') {
    $option = $db->Execute("SELECT * FROM Obsedb_polls_options WHERE id = '{$_REQUEST['id']}'") or die($db->ErrorMsg());
    do_form_header('polls.php');
    do_table_header('Editing Poll Option');
    do_text_row('Text', 'text', stripslashes($option->fields['text']));
    do_submit_row('Save Changes');
    do_table_footer();
    echo '<input type="hidden" name="id" value="' . $option->fields['id'] . '">';
    echo '<input type="hidden" name="do" value="edit_option_confirm">';
    do_form_footer();
}
if ($_REQUEST['do'] == 'edit_option_confirm') {
    $result = array('text' => $_REQUEST['text']);
    $db->AutoExecute('Obsedb_polls_options', $result, 'UPDATE', "id = '{$_REQUEST['id']}'");
    SPMessage("Success | Changes have been saved.", "polls.php");
}
if ($_REQUEST['do'] == 'Delete Option') {
    if (!empty($_REQUEST['id'])) {
        $db->Execute("DELETE FROM Obsedb_polls_options WHERE id = '{$_REQUEST['id']}'");
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:31,代码来源:polls.php

示例12: manageSections

    function manageSections()
    {
        global $db;
        do_form_header('reviews.php');
        do_table_header('Sections');
        $result = $db->Execute("SELECT id,title FROM `Obsedb_reviews_sections` ORDER BY `title`");
        while ($row = $result->FetchNextObject()) {
            $bgcolor = $bgcolor == "#ECECFF" ? "#FFFFFF" : "#ECECFF";
            echo '<tr><td bgcolor="' . $bgcolor . '" colspan="2"><input type="radio" value="' . $row->ID . '" name="id"> ' . stripslashes($row->TITLE) . '</td></tr>';
        }
        echo '<tr>
				<td colspan="2">
					<input type="submit" name="do" value="Edit Section">
					<input type="submit" name="do" value="Delete Section">
				</td>
			</tr>';
        do_table_footer();
        echo '</form>';
    }
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:19,代码来源:adminReviewsClass.php

示例13: do_table_header

<?php

do_table_header("Database Upgrade");
print "<tr><td bgcolor=\"#ffffff\">";
print "Upgrading your Obsedb database to version 1.4.2<br /><br />";
$db->Execute("ALTER TABLE `Obsedb_Mods` CHANGE `release` `release_date` TEXT;") or die($db->ErrorMsg());
print "Success! <b>DELETE THIS FILE</b>";
print "</td></tr>";
do_table_footer();
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:9,代码来源:upgrade142.php

示例14: do_module_header

<?php

do_module_header('Sample Plugin Page', 'This is simply an example of how to code a plugin.');
do_table_header('Sample Plugin');
do_blank_row('This is a sample plugin.');
do_table_footer();
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:6,代码来源:sample.php

示例15: main

 function main()
 {
     global $db;
     $sections = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
     do_table_header('View all companies by title');
     echo "<tr><td class=\"formlabel\">";
     foreach ($sections as $key => $value) {
         echo "<b><a href=\"companies.php?s={$value}\">{$value}</a></b> &nbsp;";
     }
     echo "</td></tr>";
     do_table_footer();
     do_form_header('companies.php');
     do_table_header('All Companies');
     if (isset($_REQUEST['s'])) {
         $where = "WHERE Obsedb_companies.title LIKE '" . $_REQUEST[s] . "%'";
     }
     $result = $db->Execute("SELECT Obsedb_companies.id,Obsedb_companies.title,Obsedb_companies.homepage\n\t\t\t\t\t\tFROM Obsedb_companies\n\t\t\t\t\t\t{$where}\n\t\t\t\t\t\tORDER BY Obsedb_companies.title;");
     echo '<tr>';
     echo '<td bgcolor="#DDDDDD" style="border-bottom: 1px solid #808080; border-top: 1px solid #808080;"><b>Title</b></td>';
     echo '<td bgcolor="#DDDDDD" style="border-bottom: 1px solid #808080; border-top: 1px solid #808080;"><b>Homepage</b></td>';
     echo '</tr>';
     while ($row = $result->FetchNextObject()) {
         $bgcolor = $bgcolor == "#FFFFFF" ? "#F1EFE2" : "#FFFFFF";
         echo '<tr><td bgcolor="' . $bgcolor . '">';
         echo '<label for="id' . $row->ID . '">';
         echo '<input type="radio" id="id' . $row->ID . '" name="id" VALUE="' . $row->ID . '">' . stripslashes($row->TITLE);
         echo '</label>';
         echo '</td>';
         echo '<td bgcolor="' . $bgcolor . '">' . stripslashes($row->HOMEPAGE) . '</td>';
         echo '</tr>';
     }
     echo '<tr><td colspan="2" bgcolor="#FFFFFF">';
     echo '<input type="submit" name="do" value="Edit Company">';
     echo '<input type="submit" name="do" value="Delete Company">';
     echo '<input type="submit" name="do" value="View Matrix">';
     echo '</tr></td>';
     do_table_footer();
     do_form_footer();
 }
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:39,代码来源:adminCompaniesClass.php


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