• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP formFooter函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: showCustomerForm

function showCustomerForm($data, $action, $badFields)
{
    formHeader($action, "<h1>Customer Info Form</h1>", "customerForm", "void");
    customerFields($data, $badFields);
    tableRow(array(tableData(""), tableData(""), tableData(""), tableData(""), tableData(""), tableData(submit("Enter/Edit Customer!"), "right")));
    echo getWordpressHiddenFormField();
    formFooter("customerForm");
}
开发者ID:ChapResearch,项目名称:Online-Orders-Database,代码行数:8,代码来源:customerForm.php


示例2: showPackageForm

function showPackageForm($data, $action, $badFields)
{
    formHeader($action, "Package Form", "packageForm", "void");
    packageFields($data, $badFields);
    tableRow(array(tableData(""), tableData(""), tableData(""), tableData(""), tableData(""), tableData(submit("Submit!"))));
    echo getWordpressHiddenFormField();
    formFooter("packageForm");
}
开发者ID:ChapResearch,项目名称:Online-Orders-Database,代码行数:8,代码来源:packageForm.php


示例3: showOrderEntryForm

function showOrderEntryForm($data, $badFields = array())
{
    formHeader("", "", "orderEntry", "void");
    customerFields($data, $badFields);
    orderFields($data, $badFields);
    if (inWordPress()) {
        echo getWordpressHiddenFormField();
    }
    tableRow(array(tableData(""), tableData(""), tableData(""), tableData(""), tableData(""), tableData(submit("Enter Order!"), "right")));
    formFooter("orderEntryForm");
}
开发者ID:ChapResearch,项目名称:Online-Orders-Database,代码行数:11,代码来源:orderEntry.php


示例4: showShippingForm

function showShippingForm($data, $action, $badFields = array())
{
    prepDatePicker();
    formHeader($action, "<h1>Shipping Info Form</h1>", "shippingForm", "void");
    shippingFields($data, $badFields);
    tableRow(array(tableData(""), tableData(""), tableData(""), tableData(""), tableData(""), tableData(submit("Enter Shipping Details!"), "right")));
    if (inWordPress()) {
        echo getWordpressHiddenFormField();
    }
    formFooter("shippingForm");
}
开发者ID:ChapResearch,项目名称:Online-Orders-Database,代码行数:11,代码来源:shippingInfoForm.php


示例5: formFooter

    <tr>
      <td align="left" valign="bottom" class="fibody2" id="bordR">{$pli}.</td>
      <td align="left" valign="bottom" class="fibody2" id="bordR"><input name="pl_ed_{$pli}" type="text" class="fullin2" value="{$pl_ed}"></td>
      <td align="left" valign="bottom" class="fibody2" id="bordR"><input name="pl_problem_{$pli}" type="text" class="fullin2" value="{$pl_problem}"></td>
      <td align="left" valign="bottom" class="fibody2" id="bordR"><input name="pl_onset_{$pli}" type="text" class="fullin2" value="{$pl_onset}"></td>
      <td align="left" valign="bottom" class="fibody2"><input name="pl_rd_{$pli}" type="text" class="fullin2" value="{$pl_rd}"></td>
    </tr>
EOL;
    $pli++;
}
?>
	
  </table>
</div>
<table width="100%" border="0">
  <tr>
    <td align="left" width="100"> <a href="javascript:top.restoreSession();document.my_form.submit();" class="link_submit">[Save Data]</a> </td>
    <td align="right"> <a href="<?php 
echo $GLOBALS['form_exit_url'];
?>
" class="link_submit"
     onclick="top.restoreSession()">[Don't Save]</a> </td>
  </tr>
</table>
</form>
<?php 
formFooter();
?>
</body>
</html>
开发者ID:mindfeederllc,项目名称:openemr,代码行数:30,代码来源:new.php


示例6: wallPost

<?php

$users = $db->users;
$user = $users->findOne(array("facebookid" => $_SESSION['user']));
if (isset($_POST['submit'])) {
    $user['location'] = $_POST['location'];
    $user['phone'] = $_POST['phone'];
    $user['description'] = $_POST['description'];
    $users->update(array("facebookid" => $_SESSION['user']), $user);
    wallPost($_SESSION['user'], $_SESSION['user'], "editprofile", "?profile/edit");
}
$_POST = $user;
formHeader("Edit your profile");
formField("User", "user", "disabled", "", "Your user");
formField("Name", "first", "disabled", "", "Your name");
formField("E-mail", "email", "disabled", "", "Your email");
formField("Joined", "date", "disabled", "", "");
formField("Location", "location", "text", "", "Your location (country, city)");
formField("Phone", "phone", "text", "", "Your phone number");
formField("Short description", "description", "textarea");
formFooter("Save changes");
开发者ID:oinas,项目名称:garage48_tartu2016,代码行数:21,代码来源:profile.edit.php


示例7: showOrderForm

function showOrderForm($data, $action, $badFields = array())
{
    global $SETTINGS;
    formHeader($action, "Order Info Form", "orderForm", "void");
    orderFields($data, $badFields);
    echo getWordpressHiddenFormField();
    tableRow(array(tableData(""), tableData(""), tableData(""), tableData(""), tableData(""), tableData(submit("Enter Order!"), "right")));
    formFooter("orderForm");
}
开发者ID:ChapResearch,项目名称:Online-Orders-Database,代码行数:9,代码来源:orderForm.php


示例8: date

<?php

if (isset($_POST['submit'])) {
    if (strlen($_POST['feedback']) > 3) {
        $feedback = $db->feedback;
        $_POST['user'] = $_SESSION['user'];
        $_POST['fb_id'] = $_SESSION['fb_id'];
        $_POST['fb_name'] = $_SESSION['fb_name'];
        $_POST['date'] = date("Y-m-d H:i:s");
        $_POST['update'] = microtime(true);
        $feedback->insert($_POST);
        $SUCCESS[] = "Your feedback has been successfully added";
        header("Location: ?livefeedback/added");
    } else {
        $ERROR[] = "Messages is too short";
    }
}
if ($ACTION == "added") {
    $HTML[] = <<<EOF
\t\t<h1>Thank you for submitting feedback</h1>
\t\t<p><br>Your feedback is valuable for us. <a href="?front_search">Go to search!</a></p>
EOF;
} else {
    formHeader("Give us feedback to improve our service");
    formField("Your suggestions and feedback", "feedback", "textarea", "");
    formFooter("Send feedback");
}
开发者ID:oinas,项目名称:garage48_tartu2016,代码行数:27,代码来源:livefeedback.php


示例9: formHeader

\t\t\t\t\t</div>
EOF;
                }
                if (isset($_GET['onlychat' . $k])) {
                    for ($i = $ONLYCHAT; $i < count($HTML); $i++) {
                        echo $HTML[$i];
                    }
                    die;
                }
                $HTML[] = '</div><a name="chat' . $k . '"></a>';
                formHeader("");
                formField("", "user1", "hidden", "{$v['user']}");
                formField("", "pos", "hidden", "{$k}");
                formField("", "role", "hidden", "traveler");
                formField("", "chat", "textarea");
                formFooter("Send message");
                $HTML[] = <<<EOF
\t\t\t<script>
\t\t\t\tsetInterval(function(){
\t\t\t\t      \$('#chat-box{$k}').load('?product_request/view/{$ID}/&onlychat{$k}');
\t\t\t\t }, 60000);
\t\t\t</script>
\t\t\t</div>
EOF;
            } else {
                /*$HTML[] = <<<EOF
                			<div class="content-box medium redback">
                				<h1>Request has been rejected</h1>
                			</div>
                EOF;*/
            }
开发者ID:oinas,项目名称:garage48_tartu2016,代码行数:31,代码来源:product_request.view.php


示例10: formHeader

\t\t\t<a href="?travel_plan/{$ACTION}/{$ID}/&confirm" class="btn btn-danger">Yes</a>
\t\t\t&nbsp;&nbsp;
\t\t\t<a href="#" onClick="history.go(-1)">No</a>
\t\t</div>
EOF;
    }
}
if ($ACTION != "delete") {
    /** add form */
    formHeader($ACTION == "add" ? "Add new travel plan" : "Edit existing travel plan");
    formField("From", "from", "text", "", "Departure");
    formField("To", "to", "text", "", "Arrival");
    formField("Date", "date", "text", "", "Date of departure");
    //	formField("Package size", "size", "text", "", "Package dimensions (WxHxD)");
    //	formField("Weight", "weight", "text", "", "Maximum lugage weight");
    //	formField("Hand luggage", "handluggage", "checkbox", "", " Some of the items might be restricted");
    formField("Additional informations", "description", "textarea");
    formFooter($ACTION == "add" ? "Add new plan" : "Modify plan");
    $HTML[] = <<<EOF
\t<script>
\t\$( "#from" ).autocomplete({
\t\tsource: "ajax/cities.php",
\t\tminLength: 2
\t});
\t\$( "#to" ).autocomplete({
\t\tsource: "ajax/cities.php",
\t\tminLength: 2
\t});
\t</script>
EOF;
}
开发者ID:oinas,项目名称:garage48_tartu2016,代码行数:31,代码来源:travel_plan.edit.php


示例11: formHeader

EOF;
    }
}
if ($ACTION != "delete") {
    /** add form */
    formHeader($ACTION == "add" ? "Add new product request" : "Edit existing product request");
    formField("From", "from", "text", "", "From");
    formField("To", "to", "text", "", "To");
    formField("Requests ends", "date", "text", "", "When would request end");
    //	formField("Approximate package size", "size", "text", "", "Package dimensions (WxHxD)");
    //	formField("Aprroximate Weight", "weight", "text", "", "Maximum lugage weight");
    //formField("Hand luggage", "handluggage", "checkbox", "", " Item is allowed");
    //	formField("", "fragile", "checkbox", "", " Product is fragile, handle with care");
    //	formField("", "solid", "checkbox", "", " Product is solid");
    //	formField("", "liquid", "checkbox", "", " Product is liquid");
    formField("Description of product(s)", "description", "textarea");
    formField("You can add picture of the item", "picture", "file");
    formFooter($ACTION == "add" ? "Add new product request" : "Modify existing product request");
    $HTML[] = <<<EOF
\t<script>
\t\$( "#from" ).autocomplete({
\t\tsource: "ajax/cities.php",
\t\tminLength: 2
\t});
\t\$( "#to" ).autocomplete({
\t\tsource: "ajax/cities.php",
\t\tminLength: 2
\t});
\t</script>
EOF;
}
开发者ID:oinas,项目名称:garage48_tartu2016,代码行数:31,代码来源:product_request.edit.php


示例12: displayForm

function displayForm($data, $badFields)
{
    displayTitle();
    echo "<p style=\"text-align:center;margin:auto;width:80%\">";
    echo '<b>About SprocketR: </b>SprocketR is a web application to produce custom sprocket pairs based upon the parameters entered. The final output is a zip file of two 3D-printable STL files to download and test. During the process, the application will optimize the sprockets to create an appropriate amount of chain slack. In addition, it will give you the opportunity to change and balance your parameters to get the best sprockets for your application.</p>';
    echo '<table style="text-align:center;margin:auto;width:20%"><tr><td style="text-align:left;border:none">';
    echo '<a href="?page_id=2065"><button class="sprocketrButton">How It Was Created</button></a>';
    echo '</td><td style="text-align:right;border:none">';
    echo '<a href="?page_id=2090"><button class="sprocketrButton">How To Use</button></a>';
    echo '</td></tr></table>';
    echo '<div style="margin:auto;width:35%"><b>Instructions: </b>';
    echo '<ul><li>Start by entering the desired "gear ratio" (if necessary) and the center-to-center distance of the two sprockets.</li>';
    echo '<li>You may also enter the number of the teeth for one or both of the sprockets if needed.</li>';
    echo '<li>Choose the chain type desired.</li>';
    echo '<li>Choose the hub mounting holes for the sprockets (if any).</li>';
    echo '<li>Click "Generate Sprocket Options".</li>';
    echo '<li>The results page will provide the opportunity to change parameters to get the sprockets to best fit your application.</li>';
    echo '</ul></div>';
    echo "<p style=\"text-align:center;margin:auto;width:80%\">";
    //start form and table
    echo "<form action=\"\" class=\"sprocketrForm\" method=\"get\">\n     <table frame=\"void\" border=\"none\" class=\"form\" style=\"width:50%\" align=\"center\">\n     ";
    //add class="form" when ready to remove gridlines
    //gearRatioField
    if (array_key_exists("gearRatioField", $data)) {
        //check if gear ratio entered if so show in field
        tableRow(array(tableData(promptWithError("gearRatioField", "<b>Gear Ratio*: </b>", $badFields, "Must be in the form of #:#"), "left", "center"), tableData('<input
                               style="text-align: center;"
                               size="5"
                               type="text"
                               placeholder="#:#"
                               name="gearRatioField"
                               value="' . $data["gearRatioField"] . '"
                               title="Gear ratio of your sprockets, must be formatted like #:#"
                             />
                          ', "left", "center")));
        //gear ratio field
    } else {
        //if not entered show without data (see above comments, they still apply below)
        tableRow(array(tableData(promptWithError("gearRatioField", "<b>Gear Ratio*: </b>", $badFields, "Must be in the form of #:#"), "left", "center"), tableDataWidth('<input
                               style="text-align: center;"
                               size="5"
                               type="text"
                               placeholder="#:#"
                               name="gearRatioField"
                               title="Gear ratio of your sprockets, must be formatted like #:#"
                                                             />
                          ', "left", "center", 1, "gRatFieldRow")));
    }
    //centerToCenterField
    tableRow(array(tableData(promptWithError("centerToCenterField", "<b>Center to Center Distance (mm)*:</b>", $badFields, "Must be a number with optional decimal part"), "left", "center", 1), tableData(text($data, "centerToCenterField"), "left", "center", 2)));
    //chainSizeList
    tableRow(array(tableData(prompt("<b>Chain Size*: </b>"), "", "", "", "margin:0px"), tableData(dropDown($data, "chainSizeList", array("25" => "chain25", "35" => "chain35")))), "chainSize");
    //leftSprocketTeeth#Field
    tableRow(array(tableData(promptWithError("leftSprocketTeeth#Field", '<b>Number of Teeth on Sprocket 1: </b><span style="color:red"> (optional)</span>', $badFields, "Must be an integer less than " . NUM_TEETH_MAX . " or left blank"), "left", "center", 1), tableData(text($data, "leftSprocketTeeth#Field"), "left", "center", 1)), "leftSprocketTeeth");
    //rightSprocketTeeth#Field
    tableRow(array(tableData(promptWithError("rightSprocketTeeth#Field", '<b>Number of Teeth on Sprocket 2: </b><span style="color:red"> (optional)</span>', $badFields, "Must be an integer less than " . NUM_TEETH_MAX . " divisible by the gear ratio or left blank"), "left", "center", 1), tableData(text($data, "rightSprocketTeeth#Field"), "left", "center", 1)), "rightSprocketTeeth");
    //desiredSlackField
    tableRow(array(tableData(promptWithError("desiredSlackField", "<b>Desired Slack (default 1%): </b>", $badFields, "Must be a decimal or left blank")), tableData(text($data, "desiredSlackField"))), "desiredSlack");
    //holeOptionLabels
    echo "<tr><td class = \"form\"><b>Hub Choices:</b></td><td>";
    echo '<table><tr>';
    holeCheckBox("Versa Hub (small).png", $data, "holeOption_versaHub", " Versa Hub");
    holeCheckBox("Tetrix Hub (small).png", $data, "holeOption_tetrixHub", " Tetrix Hub");
    holeCheckBox("Versa Bearing Hole (small).png", $data, "holeOption_versaBearingHole", " Versa Bearing Hole");
    echo '</tr></table></td></tr>';
    // submit button & hidden field
    tableRow(array(tableData(hiddenField("page_id", $_GET["page_id"]))));
    echo '<tr><td class="centerCell" colspan=2 align="center">' . "<input type=\"submit\" class=\"sprocketrButton\" value=\"Generate Sprocket Options\">" . '</td></tr>';
    formFooter("sprocketrForm");
}
开发者ID:ChapResearch,项目名称:SprocketR,代码行数:70,代码来源:sprocketr-form.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP formHeader函数代码示例发布时间:2022-05-15
下一篇:
PHP formFetch函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap