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


PHP drawPageTitle函数代码示例

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


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

示例1: die

        die($mysqli->error);
    }
} elseif (xsrf_guard()) {
    init_var($_POST['btnCancel']);
    init_var($_POST['btnSubmit']);
    if ($_POST['btnCancel']) {
        header('location: ListView_Pages.php');
        exit;
    } elseif ($_POST['btnSubmit']) {
        queryDeletePage($_POST);
        header("location: ../success.php?success_tag=DeletePages");
        exit;
    }
}
drawHeader();
drawPageTitle('Delete Page', $errMsg);
?>
<input type="hidden" name="Page_ID" value="<?php 
echo $Page_ID;
?>
">
<div class="container_mid">
<fieldset class="top">
Delete Page Generator
</fieldset>

<fieldset class="middle">
<table class="input_form">
<?php 
drawTextField('Page Name', 'Page_Name', TRUE);
drawTextField('Generator', '', TRUE);
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:Del_Pages.php

示例2: init_SCV2

<?php

require '../Core/SCV2_Core.php';
init_SCV2();
if (isset($_GET['Username'])) {
    $Username = rawurldecode($_GET['Username']);
    $mysqli = connect_DB();
    $mysqli->real_query("SELECT `Username`,`Password` \n                            FROM `user` \n                            WHERE `Username`='{$Username}'");
    if ($result = $mysqli->use_result()) {
        $data = $result->fetch_assoc();
        extract($data);
    } else {
        die($mysqli->error);
    }
} elseif (xsrf_guard()) {
    init_var($_POST['btnCancel']);
    if ($_POST['btnCancel']) {
        header('location: ListView_Users.php');
        exit;
    }
}
drawHeader($errMsg);
drawPageTitle('Detail View: Users');
drawFieldSetStart();
drawTextField('Username', 'Username', TRUE);
drawTextField('Password', 'Password', TRUE);
drawBackButton();
drawFieldSetEnd();
drawFooter();
开发者ID:seans888,项目名称:APC-CPO,代码行数:29,代码来源:DetailView_Users.php

示例3: extract

        extract($data);
    } else {
        die($mysqli->error);
    }
    $mysqli->close();
    $mysqli = connect_DB();
    $mysqli->real_query("SELECT `List_Item` \n                            FROM `table_fields_predefined_list_items` \n                            WHERE `List_ID`='{$List_ID}' \n                            ORDER BY `Number`");
} elseif (xsrf_guard()) {
    init_var($_POST['btnCancel']);
    if ($_POST['btnCancel']) {
        header('location: ListView_PredefinedLists.php');
        exit;
    }
}
drawHeader();
drawPageTitle('Detail View: Predefined Lists', $errMsg);
?>
<div class="container_mid">
<fieldset class="top">
View List: <?php 
echo $List_Name;
?>
</fieldset>

<fieldset class="middle">
<table class="input_form">
<?php 
drawTextField('List Name', 'List_Name', TRUE);
drawTextField('Remarks', '', TRUE);
echo '<tr><td align=right> <br>List items: </td><td></td></tr>
      <tr><td></td><td><ol>';
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:DetailView_PredefinedLists.php

示例4: queryDefineTableRelation

                        $errMsg .= 'Invalid child field subtext: ' . $subtext . '<br/>';
                    }
                }
            }
        } else {
            $Child_Field_Subtext = '';
        }
        if ($errMsg == "") {
            queryDefineTableRelation($_POST);
            header("location: ../success.php?success_tag=DefineTableRelations");
            exit;
        }
    }
}
drawHeader();
drawPageTitle('Define Relationship', $errMsg);
?>
<div class="container_mid_huge">
<fieldset class="top">
New Relationship
</fieldset>

<fieldset class="middle">
<table class="input_form">
<?php 
drawSelectField('drawTableRelationType', 'Relation', 'Relation', TRUE, 'id="relation_field" onChange="toggleChildFieldSubtext()"');
drawSelectField('drawFieldsParent', 'Parent', 'Parent_Field_ID');
drawSelectField('drawFields', 'Child', 'Child_Field_ID');
drawTextField('Child Field Subtext', 'Child_Field_Subtext', FALSE, 'text', TRUE, FALSE, 0, 'size="50"');
?>
</table>
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:DefineTableRelations.php

示例5: init_var

    init_var($_POST['btnSubmit']);
    if ($_POST['btnCancel']) {
        header("location: " . HOME_PAGE);
        exit;
    } elseif ($_POST['btnSubmit']) {
        //If base directory is composed of nested subdirectories, we only need the very first folder.
        $subdirectories = explode('/', $_POST['Base_Directory']);
        $base_directory = $subdirectories[0];
        if (is_dir("../Generator/Projects/" . $base_directory)) {
            obliterate_dir("../Generator/Projects/" . $base_directory);
        }
        queryDeleteProject($_POST, $mysqli);
    }
}
drawHeader();
drawPageTitle('DESTROY PROJECT', 'YOU ARE ABOUT TO DESTROY AN ENTIRE PROJECT!<br>Are you sure you wish to permanently delete this project and all of its contents?');
?>
<input type=hidden name=Project_ID value="<?php 
echo $_SESSION['Project_ID'];
?>
">
<input type="hidden" name="Base_Directory" value="<?php 
echo $Base_Directory;
?>
">
<div class="container_mid_huge">
<fieldset class="top">
Delete Project Data and All Files
</fieldset>

<fieldset class="middle">
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:Del_Project.php

示例6: scriptCheckIfUnique

        }
        if ($errMsg == "") {
            $select = "SELECT `Table_Name` FROM `table` WHERE `Table_Name`='{$Table_Name}' AND `Table_Name`!='{$Orig_Table_Name}' AND Project_ID='{$_SESSION['Project_ID']}'";
            $error = "The table name '{$Table_Name}' already exists. Please choose a new name. <br>";
            $errMsg = scriptCheckIfUnique($select, $error);
            if ($errMsg == "") {
                $_POST['Path_Filename'] = $Path_Filename;
                queryUpdateTable($_POST);
                header("location: ../success.php?success_tag=EditTables");
                exit;
            }
        }
    }
}
drawHeader();
drawPageTitle('Edit Table', $errMsg);
echo '<input type="hidden" name="Table_ID" value="' . $Table_ID . '">';
echo '<input type="hidden" name="Orig_Table_Name" value="' . $Orig_Table_Name . '">';
?>
<div class="container_mid">
<fieldset class="top">
Modify Table
</fieldset>

<fieldset class="middle">
<table class="input_form">
<?php 
drawSelectField('drawDBConnection', 'DB Connection', 'DB_Connection_ID');
drawTextField('Table Name', 'Table_Name');
drawTextField('Folder / Subdirectory', 'Folder');
drawTextField('Remarks', '', '', 'Textarea');
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:Edit_Tables.php

示例7: connect_DB

    $mysqli = connect_DB();
    $mysqli->real_query("SELECT `List_Item` \n                            FROM `table_fields_predefined_list_items` \n                            WHERE `List_ID`='{$List_ID}' \n                            ORDER BY `Number`");
} elseif (xsrf_guard()) {
    init_var($_POST['btnCancel']);
    init_var($_POST['btnSubmit']);
    if ($_POST['btnCancel']) {
        header('location: ListView_PredefinedLists.php');
        exit;
    } elseif ($_POST['btnSubmit']) {
        queryDeletePredefinedList($_POST);
        header("location: ../success.php?success_tag=DeletePredefinedLists");
        exit;
    }
}
drawHeader();
drawPageTitle('Delete Predefined List', 'Are you sure you wish to delete this predefined list?');
echo '<input type="hidden" name="List_ID" value="' . $List_ID . '">';
?>
<div class="container_mid">
<fieldset class="top">
Delete List
</fieldset>

<fieldset class="middle">
<table class="input_form">
<?php 
drawTextField('List Name', 'List_Name', TRUE);
drawTextField('Remarks', '', TRUE);
echo '<tr><td align=right> <br>List items: </td><td></td></tr>
      <tr><td></td><td><ol>';
if ($result = $mysqli->store_result()) {
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:Del_PredefinedLists.php

示例8: elseif

    }
    $mysqli->close();
} elseif (xsrf_guard()) {
    init_var($_POST['btnCancel']);
    init_var($_POST['btnSubmit']);
    if ($_POST['btnCancel']) {
        header('location: ListView_TableRelations.php');
        exit;
    } elseif ($_POST['btnSubmit']) {
        queryDeleteTableRelation($_POST);
        header("location: ../success.php?success_tag=DeleteTableRelations");
        exit;
    }
}
drawHeader();
drawPageTitle('Delete Relationship', 'Are you sure you wish to delete this relationship?');
echo '<input type="hidden" name="Relation_ID" value="' . $Relation_ID . '">';
?>
<div class="container_mid_huge">
<fieldset class="top">
Delete Relationship
</fieldset>

<fieldset class="middle">
<table class="input_form">
<?php 
drawTextField('Label', '', TRUE);
drawTextField('Relation', '', TRUE);
drawTextField('Parent', 'Parent', TRUE);
drawTextField('Child', 'Child', TRUE);
drawTextField('Child Field Subtext Fields', 'Child_Field_Subtext', TRUE);
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:Del_TableRelations.php

示例9: extract

    $mysqli->real_query("SELECT `Page_Name`, `Generator`, `Description` \n                            FROM `page` \n                            WHERE `Page_ID`='{$Page_ID}'");
    if ($result = $mysqli->use_result()) {
        $data = $result->fetch_assoc();
        extract($data);
    } else {
        die($mysqli->error);
    }
} elseif (xsrf_guard()) {
    init_var($_POST['btnCancel']);
    if ($_POST['btnCancel']) {
        header('location: ListView_Pages.php');
        exit;
    }
}
drawHeader();
drawPageTitle('Detail View: Page', $errMsg);
?>
<div class="container_mid">
<fieldset class="top">
View Page Generator: <?php 
echo $Page_Name;
?>
</fieldset>

<fieldset class="middle">
<table class="input_form">
<?php 
drawTextField('Page Name', 'Page_Name', TRUE);
drawTextField('Generator', '', TRUE);
drawTextField('Description', '', TRUE);
?>
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:DetailView_Pages.php

示例10: init_SCV2

<?php

require '../Core/SCV2_Core.php';
init_SCV2();
if (xsrf_guard()) {
    if ($_POST['btnCancel']) {
        header("location: " . HOME_PAGE);
        exit;
    }
}
$mysqli = connect_DB();
$Project_ID = $mysqli->real_escape_string($_SESSION['Project_ID']);
$mysqli->real_query("SELECT List_ID, List_Name, Remarks FROM table_fields_predefined_list WHERE Project_ID='{$Project_ID}' ORDER BY List_Name");
drawHeader();
drawPageTitle('List View: Predefined Lists', $errMsg);
?>
<fieldset class="container">
<?php 
drawButton('CANCEL');
?>
<a class='blue' href='CreatePredefinedLists.php'> Create New List </a>
<table border=1 width=100% class="listView">
<tr class="listRowHead">
    <td width="140">Operations</td>
    <td>List Name</td>
    <td>Remarks</td>
</tr>
<?php 
if ($result = $mysqli->use_result()) {
    $a = 0;
    $class = '';
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:ListView_PredefinedLists.php

示例11: init_SCV2

<?php

require 'Core/SCV2_Core.php';
init_SCV2();
if (!isset($_SESSION['Project_ID'])) {
    $_SESSION['Project_ID'] = 'TEMP';
}
if (!isset($_SESSION['Project_Name'])) {
    $_SESSION['Project_Name'] = '(NO PROJECT)';
}
drawHeader(FALSE);
drawPageTitle("JV Roig", "Cobalt Creator", 'message');
if ($_SESSION['Project_ID'] == 'TEMP') {
    unset($_SESSION['Project_ID']);
}
if ($_SESSION['Project_Name'] == '(NO PROJECT)') {
    unset($_SESSION['Project_Name']);
}
?>
<table border=0 cellpadding=2 cellspacing=2>
<tr>
	<td valign=top>
	<fieldset class="container">
	    <span class="graytext">
		&nbsp;&nbsp;&nbsp;&nbsp; Jesus Vicente "JV" Roig is the first ever <i> summa cum laude </i> of Asia Pacific College. During his May 2006 graduation JV
		also received the <i> Internship Award </i> and <i>Outstanding Project Award</i> for his internship stint at Don Bosco College, Canlubang
		which resulted in a Linux / Apache / MySQL / PHP-based ERP system for schools which he christened "SYNERGY". 

        <br><br>
        &nbsp;&nbsp;&nbsp;&nbsp; JV likewise graduated top of his class in his post-grad studies (Master in Information Management), also at Asia Pacific College. Some of his friends
        jokingly refer to him now as <i>"Double"</i> - short for  <i>"Double summa cum laude"</i>.
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:About_JV_Roig.php

示例12: createPage

 function createPage($name, $type, $title, $tab_title, $contents, $image = null)
 {
     global $output_pages, $tempdir;
     $page = $output_pages->createElement('draw:page');
     $page->setAttribute("draw:name", $name);
     $page->setAttribute("draw:style-name", "dp1");
     $page->setAttribute("draw:master-page-name", $type);
     $page->setAttribute("presentation:presentation-page-layout-name", "AL2T1");
     $page->setAttribute("presentation:use-footer-name", "ftr1");
     $page->setAttribute("presentation:use-date-time-name", "dtd1");
     //Title
     $page->appendChild(drawPageTitle($title));
     //Tab title
     $page->appendChild(drawTabTitle($tab_title));
     //Image positioning
     if ($image) {
         //Default dimensions and positioning for SVG images
         $x = 0.15;
         $y = 2.5;
         $width = 26.457;
         $height = 15.874;
         if (substr($image, -3) == "png") {
             $ratio = 0.023291;
             //(ratio px <=> cm)
             //Get image dimensions
             $size = getimagesize($tempdir . "/" . $image);
             $width = $size[0] * $ratio;
             $height = $size[1] * $ratio;
             $y = 3.5;
             $x = (28 - $size[0] * $ratio) / 2;
             //28cm is page width (minus left border) in ODP template, so we center image
             //If image height is not very big, put somme space around it
             if ($height <= 7) {
                 $y += (7 - $height) / 2;
                 $Yoffset = 7 + 3.5;
             } else {
                 $Yoffset = $y + $height;
             }
             //If image height is too big, position image on the right side
             if ($height >= 13) {
                 $Yoffset = 5.2;
                 $x = 28 - $width;
                 $Xoffset = $x;
                 $y = 4 + (16 - $height) / 2;
                 //20cm is the approx useable height in ODP template, so we center image
             } else {
                 $Xoffset = 25;
             }
         }
         $frame = $output_pages->createElement('draw:frame');
         $frame->setAttribute("draw:style-name", "gr15");
         $frame->setAttribute("draw:text-style-name", "P4");
         $frame->setAttribute("draw:layer", "layout");
         $frame->setAttribute("svg:width", $width . "cm");
         $frame->setAttribute("svg:height", $height . "cm");
         $frame->setAttribute("svg:x", $x . "cm");
         $frame->setAttribute("svg:y", $y . "cm");
         $svg = $output_pages->createElement('draw:image');
         $svg->setAttribute("xlink:href", "Pictures/{$image}");
         $svg->setAttribute("xlink:type", "simple");
         $svg->setAttribute("xlink:show", "embed");
         $svg->setAttribute("xlink:actuate", "onLoad");
         $frame->appendChild($svg);
         $page->appendChild($frame);
     }
     $frame = $output_pages->createElement('draw:frame');
     $frame->setAttribute("presentation:style-name", "pr6");
     $frame->setAttribute("draw:layer", "layout");
     $frame->setAttribute("svg:x", "1.5cm");
     $frame->setAttribute("presentation:class", "outline");
     $frame->setAttribute("presentation:user-transformed", "true");
     //Text outline positioning depending on image positioning
     if ($image) {
         if (substr($image, -3) == "png") {
             $yc = $Yoffset + 0.4;
             $heightc = 19 - $yc;
             //20cm is the approx useable height in ODP template
             $widthc = $Xoffset;
         } else {
             $yc = 13;
             $heightc = 7;
             $widthc = 25;
         }
     } else {
         $yc = 5;
         $heightc = 15;
         $widthc = 25;
     }
     $frame->setAttribute("svg:width", $widthc . "cm");
     $frame->setAttribute("svg:height", $heightc . "cm");
     $frame->setAttribute("svg:y", $yc . "cm");
     $textbox = $output_pages->createElement('draw:text-box');
     if ($contents) {
         foreach ($contents as $element) {
             $textbox->appendChild(getList($element, "L6"));
         }
     }
     $frame->appendChild($textbox);
     $page->appendChild($frame);
     return $page;
//.........这里部分代码省略.........
开发者ID:Nyco,项目名称:QSOS,代码行数:101,代码来源:QSOSComparison.php

示例13: extract

        extract($_POST);
        $errMsg = scriptCheckIfNull('Page Name', $Page_Name, 'Generator', $Generator, 'Description', $Description);
        if ($errMsg == "") {
            $select = "SELECT `Page_ID` FROM `page` WHERE `Page_Name`='{$Page_Name}' AND `Page_ID`!='{$Orig_Page_ID}'";
            $error = "The page name '{$Page_Name}' already exists. Please choose a new one. <br>";
            $errMsg = scriptCheckIfUnique($select, $error);
            if ($errMsg == "") {
                queryUpdatePage($_POST);
                header("location: ../success.php?success_tag=EditPages");
                exit;
            }
        }
    }
}
drawHeader();
drawPageTitle('Edit Page', $errMsg);
?>
<input type="hidden" name="Orig_Page_ID" value="<?php 
echo $Orig_Page_ID;
?>
">
<div class="container_mid">
<fieldset class="top">
Modify Page Generator
</fieldset>

<fieldset class="middle">
<table class="input_form">
<?php 
drawTextField('Page Name', 'Page_Name');
drawTextField('Generator');
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:Edit_Pages.php

示例14: displayInfo

                               <input type=submit name=BACK value=BACK>', 'system');
                if ($errMsg != '') {
                    displayInfo('<b>Table Import Notes:</b> <br />' . $errMsg);
                }
                drawFooter();
                die;
            }
        }
    }
}
drawHeader();
if ($errMsg == '') {
    $errMsg = 'Cobalt will import all tables it can find using the database connection you specify.';
    $msgType = 'info';
}
drawPageTitle('Import Tables', $errMsg, $msgType);
?>

<script language="JavaScript" type="text/JavaScript">
function checkAll()
{

    var checkboxes = document.getElementsByTagName('input');
    for (var i = 0; i < checkboxes.length; i++)
    {
        if (checkboxes[i].type == 'checkbox')
        {
            checkboxes[i].checked = true;
        }
    }
开发者ID:seans888,项目名称:Bgy-Project,代码行数:30,代码来源:Import_Tables.php

示例15: init_SCV2

<?php

require 'Core/SCV2_Core.php';
init_SCV2();
if (!isset($_SESSION['Project_ID'])) {
    $_SESSION['Project_ID'] = 'TEMP';
}
if (!isset($_SESSION['Project_Name'])) {
    $_SESSION['Project_Name'] = '(NO PROJECT)';
}
drawHeader(FALSE);
drawPageTitle("Cobalt", "Created by <a href=About_JV_Roig.php class=blue>JV Roig</a>", 'message');
if ($_SESSION['Project_ID'] == 'TEMP') {
    unset($_SESSION['Project_ID']);
}
if ($_SESSION['Project_Name'] == '(NO PROJECT)') {
    unset($_SESSION['Project_Name']);
}
?>
<table border=0 cellpadding=2 cellspacing=2>
<tr>
    <td valign=top>
    <fieldset class="container">
        <span class="graytext">
        &nbsp;&nbsp;&nbsp;&nbsp; Cobalt is a web-based code generator and framework using PHP and Oracle Database, created by JV Roig. <br><br>

        &nbsp;&nbsp;&nbsp;&nbsp; It is a code generator, so it is capable of producing a complete working system
        based on the information you feed it (data dictionary and a few miscellaneous data for
        certain special cases).<br><br>

        &nbsp;&nbsp;&nbsp;&nbsp; It is also a framework. This means it contains functions that allow you to create
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:About.php


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