本文整理汇总了PHP中getOrderList函数的典型用法代码示例。如果您正苦于以下问题:PHP getOrderList函数的具体用法?PHP getOrderList怎么用?PHP getOrderList使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getOrderList函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getOrderList
}
?>
><label for="tcode2">GBK GB2312</label>
</td>
</tr>
<tr>
<td align="right" width="100" bgcolor="#999999" height="20"><font color="#FFFFFF">顺 序:</font></td>
<td bgcolor="#FFFFFF"><select name="torder" class="inputbox" id="torder"><?php
echo getOrderList($torder);
?>
</select></td>
</tr>
<tr>
<td align="right" width="100" bgcolor="#999999" height="20"><font color="#FFFFFF">团 顺 序:</font></td>
<td bgcolor="#FFFFFF"><select name="tuanorder" class="inputbox" id="tuanorder"><?php
echo getOrderList($tuanorder);
?>
</select></td>
</tr>
<tr>
<td width="100" height="20" align="right" bgcolor="#999999"><font color="#FFFFFF">内容规则:</font></td>
<td bgcolor="#FFFFFF"><textarea name="content" cols="45" rows="1" id="content" style="width:500"><?php
echo $content;
?>
</textarea></td>
</tr>
<tr>
<td width="100" height="20" align="right" bgcolor="#999999"><font color="#FFFFFF">标题规则:</font></td>
<td bgcolor="#FFFFFF"><textarea name="title" cols="45" rows="1" id="title" style="width:500"><?php
echo $title;
?>
示例2: foreach
<td width="40" bgcolor=#999999><font color="#FFFFFF">修改</font></td>
<td width="40" bgcolor=#999999><font color="#FFFFFF">删除</font></td>
</tr>
<form name="form1" action="cate_update.php" method="post">
<?php
if (isset($cate_list)) {
foreach ($cate_list as $cate) {
?>
<tr>
<td>
<input type="hidden" name="id[]" value="<?php
echo $cate['id'];
?>
">
<select name="order[]" class="inputbox"><?php
echo getOrderList($cate['order']);
?>
</select>
</td>
<td> <?php
echo $cate['title'];
?>
</td>
<td> <a href="qa.php?cateid=<?php
echo $cate['id'];
?>
">下级列表</a></td>
<td> <a href="cate_edit.php?id=<?php
echo $cate['id'];
?>
">修改</a></td>
示例3: array
<head>
<?php
include_once 'connect.php';
$items = array();
$itemQuery = mysqli_query($GLOBALS['conn'], "SELECT name FROM Items;");
while ($value = mysql_fetch_array($itemQuery)) {
$items[] = $value;
}
$pizzas = array();
$pizzaQuery = mysqli_query($GLOBALS['conn'], "SELECT name FROM Pizza WHERE pizzaId < 10;");
while ($value = mysql_fetch_array($pizzaQuery)) {
$pizzas[] = $value;
}
echo "I am le orders<br><br>";
getOrderList();
function getOrderList()
{
$details = "<pre> ";
$order = mysqli_query($GLOBALS['conn'], "SELECT orderId FROM Orders;");
while ($row = mysqli_fetch_array($order)) {
echo 'orderId: ' . $row['orderId'] . "<br>";
$order_details = mysqli_query($GLOBALS['conn'], "SELECT itemId, quantity, pizzaId FROM Order_Details\n WHERE orderId={$row['orderId']} ORDER BY itemId ASC;");
while ($row2 = mysqli_fetch_array($order_details)) {
if ($row2['itemId'] == 1) {
$pizza = mysqli_fetch_array(mysqli_query($GLOBALS['conn'], "SELECT name,cost,pizzaSize FROM Pizza WHERE pizzaId={$row2['pizzaId']};"));
echo sprintf("<pre> %s, \$%.2f, %s, Quantity: %d", $pizza['name'], $pizza['cost'], $pizza['pizzaSize'] == 0 ? "Medium" : "Large", $row2['quantity']);
echo "<br>";
} else {
}
}
示例4:
<tr>
<td align="right" width="100" bgcolor="#999999" height="20"><font color="#FFFFFF">所属专题:</font></td>
<td bgcolor="#FFFFFF"><select name="specialid" id="specialid">
<?php
if(isset($special_list)){
foreach ($special_list as $special){
?>
<option value="<?=$special['id']?>" <?=$special['selected']?>>
<?=$special['title']?>
</option>
<?
}
}
?>
</select></td>
</tr>
<tr>
<td align="right" width="100" bgcolor="#999999" height="20"><font color="#FFFFFF">顺 序:</font></td>
<td bgcolor="#FFFFFF"><select name="order" class="inputbox"><?=getOrderList($order)?></select></td>
</tr>
<tr>
<td bgcolor="#999999"></td>
<td bgcolor="#FFFFFF">
<input type="hidden" name="id" value="<?=$id?>" />
<input type="hidden" name="mode" value="<?=$mode?>" />
<input type="button" value="<?=$mode_title?>" name="B1" class="inputbox" accesskey="Y" onClick="update_check();" /></td>
</tr>
</form>
</table>
示例5: foreach
</tr>
<form name="form1" action="update.php" method="post">
<?php
if (isset($tuan_list)) {
foreach ($tuan_list as $tuan) {
?>
<label for="del<?php
echo $tuan['id'];
?>
">
<tr>
<td><input type="hidden" name="id[]" value="<?php
echo $tuan['id'];
?>
"><select name="order[]" class="inputbox" id="order[]"><?php
echo getOrderList($tuan['order']);
?>
</select>
</td>
<td> <?php
echo subString($tuan['title'], 80);
?>
</td>
<td> <?php
echo $tuan['price'];
?>
</td>
<td> <a href="#" onClick="ffClick('tuan/edit.php?tid=<?php
echo $tuan['id'];
?>
&pagenum=<?php
示例6: foreach
<form name="form1" action="navbar_update.php" method="post">
<?php
if (isset($navbar_list)) {
foreach ($navbar_list as $navbar) {
?>
<label for="del<?php
echo $navbar['id'];
?>
">
<tr>
<input type="hidden" name="id[]" value="<?php
echo $navbar['id'];
?>
">
<td> <select name="order[]" class="inputbox"><?php
echo getOrderList($navbar['order']);
?>
</select></td>
<td> <?php
echo encode($navbar['title']);
?>
</td>
<td> <?php
echo encode($navbar['url']);
?>
</td>
<td> <?php
echo $navbar['active_txt'];
?>
</td>
<td><input name="del[]" type="checkbox" id="del<?php
示例7: foreach
<?php
if (isset($article_list)) {
foreach ($article_list as $article) {
?>
<tr>
<label for="select<?php
echo $article['id'];
?>
">
<td><input type="hidden" name="id[]" value="<?php
echo $article['id'];
?>
">
<select name="order[]" class="inputbox">
<?php
echo getOrderList($article['order']);
?>
</select></td>
<td>
<?php
if ($article['url'] != '') {
?>
[<a href="<?php
echo $article['url'];
?>
" target="_blank" title="原始地址:<?php
echo $article['url'];
?>
">原</a>]
<?php
}
示例8: foreach
</tr>
<form name="form1" action="group_update.php" method="post">
<?php
if (isset($group_list)) {
foreach ($group_list as $group) {
?>
<label for="del<?php
echo $group['id'];
?>
">
<tr>
<td><input type="hidden" name="id[]" value="<?php
echo $group['id'];
?>
"><select name="order[]" class="inputbox"><?php
echo getOrderList($group['order']);
?>
</select></td>
<td> <?php
echo $group['title'];
?>
</td>
<td><input name="del[]" type="checkbox" id="del<?php
echo $group['id'];
?>
" value="<?php
echo $group['id'];
?>
">删除</td>
<td> <a href="group_edit.php?id=<?php
echo $group['id'];
示例9: foreach
</tr>
<form name="form1" action="update.php" method="post">
<?php
if (isset($cycle_list)) {
foreach ($cycle_list as $cycle) {
?>
<label for="del<?php
echo $cycle['id'];
?>
">
<tr>
<td> <input type="hidden" name="id[]" value="<?php
echo $cycle['id'];
?>
"><select name="order[]" class="inputbox"><?php
echo getOrderList($cycle['order']);
?>
</select></td>
<td> <?php
echo $cycle['title'];
?>
</td>
<td> <a href="<?php
echo $cycle['pic'];
?>
" target="_blank">[预览]</a></td>
<td><input name="del[]" type="checkbox" id="del<?php
echo $cycle['id'];
?>
" value="<?php
echo $cycle['id'];
示例10:
</table>
</div>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
<form name="admin_frm" method="POST">
<tr>
<td align="right" width="100" bgcolor="#999999" height="20"><font color="#FFFFFF">标 题:</font></td>
<td bgcolor="#FFFFFF"><input name="title" type="text" class="InputBox" id="title" style="width:300" onMouseOver="select();" value="<?=$title?>" size="80"></td>
</tr>
<tr>
<td align="right" width="100" bgcolor="#999999" height="20"><font color="#FFFFFF">静态页面:</font></td>
<td bgcolor="#FFFFFF"><input name="html" type="text" class="InputBox" id="html" style="width:300" onMouseOver="select();" value="<?=$html?>" size="80"></td>
</tr>
<tr>
<td align="right" width="100" bgcolor="#999999" height="20"><font color="#FFFFFF">顺 序:</font></td>
<td bgcolor="#FFFFFF"><select name="order" class="inputbox">
<?=getOrderList($order)?>
</select></td>
</tr>
<tr>
<td align="right" width="100" bgcolor="#999999" height="20"><font color="#FFFFFF">所属模板:</font></td>
<td bgcolor="#FFFFFF"><select name="templateid" id="templateid">
<?php
if(isset($template_list))
{
foreach ($template_list as $template)
{
?>
<option value="<?=$template['id']?>" <?=$template['selected']?>>
<?=$template['title']?>
</option>
<?
示例11: foreach
<td width="40" bgcolor=#999999><font color="#FFFFFF">修改</font></td>
<td width="40" bgcolor=#999999><font color="#FFFFFF">删除</font></td>
</tr>
<form name="form1" action="module_update.php" method="post">
<?php
if (isset($module_list)) {
foreach ($module_list as $module) {
?>
<tr>
<td>
<input type="hidden" name="id[]" value="<?php
echo $module['id'];
?>
">
<select name="order[]" class="inputbox"><?php
echo getOrderList($module['order']);
?>
</select>
</td>
<td> <?php
echo $module['kind_text'];
?>
</td>
<td> <?php
echo $module['title'];
?>
</td>
<td> <a href="module_edit.php?id=<?php
echo $module['id'];
?>
&parentid=<?php
示例12: foreach
<td width="40" bgcolor=#999999><font color="#FFFFFF">修改</font></td>
<td width="40" bgcolor=#999999><font color="#FFFFFF">删除</font></td>
</tr>
<form name="form1" action="update.php" method="post">
<?php
if (isset($ad_list)) {
foreach ($ad_list as $ad) {
?>
<tr>
<td>
<input type="hidden" name="id[]" value="<?php
echo $ad['id'];
?>
">
<select name="order[]" class="inputbox"><?php
echo getOrderList($ad['order']);
?>
</select>
</td>
<td><a target="_blank" href="<?php
echo $ad['filename'];
?>
"><?php
echo $ad['filename'];
?>
</a></td>
<td> <?php
echo $ad['hits'];
?>
</td>
<td> <?php
示例13: foreach
<?php
if (isset($announce_list)) {
foreach ($announce_list as $announce) {
?>
<label for="del<?php
echo $announce['id'];
?>
">
<tr>
<td>
<input type="hidden" name="id[]" value="<?php
echo $announce['id'];
?>
">
<select name="order[]" class="inputbox"><?php
echo getOrderList($announce['order']);
?>
</select>
</td>
<td> <select name="level[]" class="inputbox"><?php
echo getForumsList($MyDatabase, $announce['level']);
?>
</select></td>
<td> <?php
echo $announce['title'];
?>
</td>
<td> <?php
echo $announce['startdate'];
?>
</td>
示例14: if
<td width="40" bgcolor=#999999><font color="#FFFFFF">点击数</font></td>
<td width="24" bgcolor=#999999><font color="#FFFFFF">选定</font></td>
<td width="30" bgcolor=#999999><font color="#FFFFFF">修改</font></td>
</tr>
<form name="form1" action="update.php" method="post">
<?php
if(isset($article_list))
{
foreach ($article_list as $article)
{
?>
<label for="select<?=$article['id']?>">
<tr>
<td> <input type="hidden" name="id[]" value="<?=$article['id']?>">
<select name="order[]" class="inputbox">
<?=getOrderList($article['order'])?>
</select></td>
<td> <?=$article['id']?></td>
<td> <?=$article['flag_txt']?></td>
<td> <?php if($article['url']!=''){?>[<a href="<?=$article['url']?>" target="_blank" title="原始地址:<?=$article['url']?>">原</a>]<?php } ?><a href="preview.php?id=<?=$article['id']?>" target="_blank" title="预览页面">[预]</a><a href="../../aaa.php?id=<?=$article['id']?>" target="_blank"><?=$article['title']?></a></td>
<td> <?=$article['posttime']?></td>
<td> <?=$article['hits']?></td>
<td><input name="selectid[]" type="checkbox" id="select<?=$article['id']?>" value="<?=$article['id']?>"></td>
<td> <a href="edit.php?id=<?=$article['id']?>&pagenum=<?=$pagenum?>">修改</a></td>
</tr>
</label>
<?php
}
}
?>