本文整理汇总了PHP中Utility::Option方法的典型用法代码示例。如果您正苦于以下问题:PHP Utility::Option方法的具体用法?PHP Utility::Option怎么用?PHP Utility::Option使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utility
的用法示例。
在下文中一共展示了Utility::Option方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlspecialchars
<div class="box-top"></div>
<div class="box-content">
<div class="head">
<h2>代金券</h2>
<ul class="filter">
<li><form method="get">项目ID:<input type="text" name="tid" value="<?php
echo htmlspecialchars($tid);
?>
" class="h-input" /> 商户ID:<input type="text" name="pid" value="<?php
echo htmlspecialchars($pid);
?>
" class="h-input" /> 代号:<input type="text" name="code" value="<?php
echo htmlspecialchars($code);
?>
" class="h-input" /> 状态:<select name="state"><?php
echo Utility::Option($usage, $state, '所有');
?>
</select> <input type="submit" value="筛选" class="formbutton" style="padding:1px 6px;"/> <input type="submit" name="download" value="下载" class="formbutton" style="padding:1px 6px;"/><form></li>
</ul>
</div>
<div class="sect">
<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
<tr><th width="120">ID</th><th width="40">面额</th><th width="120">代号</th><th width="80">有效期限</th><th width="100">状态</th><th width="380">商户名称</th><th width="120">操作</th></tr>
<?php
if (is_array($cards)) {
foreach ($cards as $index => $one) {
?>
<tr <?php
echo $index % 2 ? '' : 'class="alt"';
?>
id="team-list-id-<?php
示例2: group_edit_select
function group_edit_select($name, $value, $class, $options)
{
$class .= " group_span";
return '<select type="text" class="' . $class . '" name="' . $name . '[]" />' . Utility::Option($options, $value) . '</select>';
}
示例3: if
<div class="sect dqyz pos_re">
<form action="/biz/coupon/multiverify.php" method="post" class="validator" >
<div class="field" style="padding-bottom:5px; margin-top:0px; background-color:#F2F2F2; width:670px; padding-left:20px; padding-top:15px;">
<label>选择项目</label>
<select name="team_id" id="team_id" style="font-family:'微软雅黑';font-size:24px;width:560px;padding:5px;">
<option value="">---请选择一个团购项目---</option>
<?php if(count($teamss) > 0){?>
<?php echo Utility::Option($teamss); ?>
<?php } else { ?>
<option value="0">暂无团购项目(无法验证)</option>
<?php }?>
</select>
</div>
<div class="field" style="padding-bottom:5px; margin-top:0px; background-color:#F2F2F2; width:670px; padding-left:20px; padding-top:15px;">
<label>选择分店</label>
示例4: dirname
<?php
require_once dirname(dirname(dirname(__FILE__))) . '/app.php';
need_manager();
need_auth('team');
$key = $_GET["value"];
$condition = array();
if ($key) {
$condition[] = "title like '%" . mysql_escape_string($key) . "%'";
}
$partner = DB::LimitQuery('partner', array('condition' => $condition, 'order' => 'ORDER BY id DESC'));
if (!$partner) {
die('0');
}
$partners = Utility::OptionArray($partner, 'id', 'title');
die(Utility::Option($partners));
示例5: mcurrent_system
echo mcurrent_system('template');
?>
</ul>
</div>
<div id="content" class="clr mainwide">
<div class="clr box">
<div class="box-top"></div>
<div class="box-content">
<div class="head"><h2>Edit Template</h2></div>
<div class="sect">
<form method="post">
<div class="wholetip clr"><h3>include/template/Writable files are editable</h3></div>
<div class="field">
<label>Choose Template</label>
<select name="template_id" id="manage_system_template_id" class="f-input" onchange="X.manage.loadtemplate(this.options[this.selectedIndex].value);"><?php
echo Utility::Option($may, $template_id, '-');
?>
</select>
</div>
<?php
if ($content || $template_id) {
?>
<div class="field">
<label>Edit Content</label>
<div style="float:left;"><textarea cols="90" rows="25" name="content"><?php
echo htmlspecialchars($content);
?>
</textarea></div>
</div>
<?php
}
示例6: abs
<div class="field">
<label>门店展示</label>
<input type="text" size="30" name="open" id="partner-edit-open" class="number" value="<?php echo $store['open']; ?>" maxLength="1" require="true" datatype="english" style="text-transform:uppercase;" /><span class="inputtip">Y:前台门店展示 N:不参与前台门店展示</span>
</div>
<div class="field">
<label>排序字段</label>
<input type="text" size="10" name="head" value="<?php echo abs(intval($store['head'])); ?>" class="number"/><span class="inputtip">数字大的排的靠前</span>
</div>
<div class="field">
<label>所属商家</label>
<select name="partner_id" id="partner_select" class="f-input f-hint" style="width:360px;"><?php echo Utility::Option($partners, $store['partner_id'], '------ 请选择商户 ------'); ?></select>
<input type="text" size="30" name="p_id" id="partner_id" class="partner f-f-input" />
</div>
<div class="field">
<label>城市</label>
<select name="city_id" class="f-input f-hint" style="width:160px;"><?php echo Utility::Option(option_category('city'), $store['city_id'], '-选择城市-'); ?></select> 行政区 <select name="region" style="float:none; width:160px;" class="f-input f-hint" style="width:160px;"><?php echo Utility::Option(option_category('store'), $store['group_id']); ?></select>
</div>
<div class="field">
<label>地图坐标</label>
<input type="text" size="30" name="longlat" style="width:300px;cursor:point;" class="f-input f-hint" id="inputlonglat" value="<?php echo $store['longlat']; ?>" />
<span class="inputtip">
<a href="http://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank">查坐标</a>
</span>
</div>
<div class="wholetip clear"><h3>3、基本信息</h3></div>
<div class="field">
<label>门店品类</label>
<input type="text" size="30" name="type" id="partner-create-homepage" class="f-input f-hint" value="<?php echo $store['type']; ?>"/>
</div>
<div class="field">
<label>门店电话</label>
示例7: date
<div class="box-content">
<div class="head">
<h2>提现申请</h2>
<a href="?cbday=<?php echo date('Y-m-d',time()-3600*24*1); ?>&ceday=<?php echo date('Y-m-d'); ?>">昨日申请</a> | <a href="?cbday=<?php echo date('Y-m-d'); ?>&ceday=<?php echo date('Y-m-d',time()+3600*24*1); ?>">今日申请</a> <?php if($login_user_id <=2 ){?><span style="background: #FFFF99">提现申请累计:<?php echo moneyit($sumwithdrawmoney); ?>元 / 实际支付累计:<?php echo moneyit($sumwithdrawpay); ?>元</span><?php }?>
<ul class="filter">
<li><a href="/manage/caiwu/withdraw.php?status=ask">申请提现</a>(<?php echo $count_ask; ?>)</li>
<li><a href="/manage/caiwu/withdraw.php?status=be">成功提现</a>(<?php echo $count_be; ?>)</li>
<li><a href="/manage/caiwu/withdraw.php?status=no">拒绝提现</a>(<?php echo $count_no; ?>)</li>
<li><a href="/manage/caiwu/withdraw.php?status=cancel">取消提现</a>(<?php echo $count_cancel; ?>)</li>
</ul>
</div>
<div class="sect" style="padding:0 10px;">
<form method="get">
<p style="margin:5px 0;">用户:<input type="text" name="uemail" class="h-input" value="<?php echo htmlspecialchars($uemail); ?>" > 管理员ID:<input type="text" name="adminemail" class="h-input" value="<?php echo htmlspecialchars($adminemail); ?>" style="width:50px;" > 管理员真名:<input type="text" name="adminname" class="h-input" value="<?php echo htmlspecialchars($adminname); ?>" style="width:50px;" > <select name="withdraw_direction"><?php echo Utility::Option($option_withdraw_direction, $withdraw_direction, '提现方式'); ?></select> <select name="status"><?php echo Utility::Option($option_status, $status, '申请状态'); ?></select> 内容:<input type="text" name="content" class="h-input" value="<?php echo htmlspecialchars($content); ?>" ></p>
<p style="margin:5px 0;">申请日期:<input type="text" class="h-input" onFocus="WdatePicker({isShowClear:true})" name="cbday" value="<?php echo $cbday; ?>" /> - <input type="text" class="h-input" onFocus="WdatePicker({isShowClear:true})" name="ceday" value="<?php echo $ceday; ?>" /> 操作日期:<input type="text" class="h-input" onFocus="WdatePicker({isShowClear:true})" name="dbday" value="<?php echo $dbday; ?>" /> - <input type="text" class="h-input" onFocus="WdatePicker({isShowClear:true})" name="deday" value="<?php echo $deday; ?>" /> <input type="submit" value="筛选" class="formbutton" style="padding:1px 6px;"/></p>
</form>
</div>
<div class="sect">
<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
<tr><td colspan="10"><?php echo $pagestring; ?></tr>
<tr><th width="50">ID</th><th width="200">申请用户</th><th width="80">用户余额</th><th width="80">申请金额</th><th width="100" nowrap>申请时间</th><th width="100" nowrap>提现方式</th><th width="100" nowrap>实际支付</th><th width="50" nowrap>操作</th></tr>
<?php if(is_array($applys)){foreach($applys AS $index=>$one) { ?>
<tr <?php echo $index%2?'':'class="alt"'; ?> id="dialog-apply-id" aid="<?php echo $one['id']; ?>">
<td><?php echo $one['id']; ?></td>
<td><a href="/ajax/manage.php?action=userview&id=<?php echo $one['user_id']; ?>" class="ajaxlink"><?php echo $users[$one['user_id']]['email']; ?><br/><?php echo $users[$one['user_id']]['username']; ?></a><?php if(Utility::IsMobile($users[$one['user_id']]['mobile'])){?> » <a href="/ajax/misc.php?action=sms&v=<?php echo $users[$one['user_id']]['mobile']; ?>" class="ajaxlink">短信</a><?php }?>
</td>
<td><?php echo moneyit($users[$one['user_id']]['money']); ?></td>
示例8: mcurrent_system
<div class="dashboard" id="dashboard">
<ul><?php echo mcurrent_system('sms'); ?></ul>
</div>
<div id="content" class="clear mainwide">
<div class="clear box">
<div class="box-top"></div>
<div class="box-content">
<div class="head">
<h2>短信配置</h2>
<ul class="filter"><?php echo current_system_sms($s); ?></ul>
</div>
<div class="sect">
<form method="post" id="inputForm">
<div class="field">
<label>短信模板选择</label>
<select name="template_id" id="manage_system_template_id" class="f-input" onchange="loadSmsTemplate(this.options[this.selectedIndex].value);"><?php echo Utility::Option($may, $template_id, '-'); ?></select>
</div>
<?php if($content||$template_id){?>
<div class="field">
<label>变量选择</label>
<?php if(is_array($varbs)){foreach($varbs AS $name=>$title) { ?>
<span class="templatebutton" title="$title" onclick="insertText(inputForm.content,'<?php echo $name; ?>');"><?php echo $title; ?></span>
<?php }}?>
</div>
<?php if($template_id == 'manage_tpl_smscoupon.html'){?>
<div class="field">
<label></label>
<div class="templatehint"><font color="red">【项目自定义内容】</font>说明:<br/>例如要在优惠券中要增加商家电话,请先在对应团购项目中的'FLV视频短片'中输入:如'商家电话:4001234567'即可</div>
</div>
<?php }?>
<div class="field">
示例9: mcurrent_user
<div class="dashboard" id="dashboard">
<ul><?php echo mcurrent_user('index'); ?></ul>
</div>
<div id="content" class="coupons-box clear mainwide">
<div class="box clear">
<div class="box-top"></div>
<div class="box-content">
<div class="head">
<h2>用户列表
<a style="font-size:12px;color:#000000" href="/manage/user/create.php">新建会员</a>
</h2>
<div class="sect" style="padding:10px 10px;">
<form action="/manage/user/index.php" method="get">
用户名:<input type="text" name="uname" class="f-input" style="width:90px" value="<?php echo htmlspecialchars($uname); ?>" >
邮件:<input type="text" name="like" class="f-input" value="<?php echo htmlspecialchars($like); ?>" >
<select name="ucity" style="width:110px;"><?php echo Utility::Option(option_category('city'), $ucity, '所有城市'); ?></select>
<br/>
手机:<input type="text" name="mobile" class="f-input" value="<?php echo htmlspecialchars($mobile); ?>" >
购买次数大于<input type="text" name="numbers" class="f-input" value="<?php echo $numbers; ?>" style="width:20px">
购买金额大于<input type="text" name="prices" class="f-input" value="<?php echo $prices; ?>" style="width:30px">
余额大于<input type="text" name="havemoney" class="f-input" value="<?php echo $havemoney; ?>" style="width:20px">
<input type="submit" value="筛选" class="formbutton" style="padding:1px 6px;"/>
<form>
</div>
</div>
<div class="sect">
<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
<tr><th width="50">ID</th><th width="200">Email/用户名</th><th width="100" nowrap>姓名/城市</th><th width="40">余额</th><th width="40">邮编</th><th width="120">注册IP/注册时间</th></th><th width="90">联系电话</th><th width="130">操作</th></tr>
<?php if(is_array($users)){foreach($users AS $index=>$one) { ?>
<tr <?php echo $index%2?'':'class="alt"'; ?> id="team-list-id-<?php echo $one['id']; ?>">
<td><?php echo $one['id']; ?></td>
示例10: htmlspecialchars
</div>
<div id="content" class="coupons-box clear mainwide">
<div class="box clear">
<div class="box-top"></div>
<div class="box-content">
<div class="head">
<h2>用户列表</h2>
<ul class="filter">
<li><form action="/manage/user/index.php" method="get">用户名:<input type="text" name="uname" class="h-input" style="width:90px" value="<?php
echo htmlspecialchars($uname);
?>
" > 邮件:<input type="text" name="like" class="h-input" value="<?php
echo htmlspecialchars($like);
?>
" > <select name="ucity" style="width:110px;"><?php
echo Utility::Option(option_category('city'), $ucity, '所有城市');
?>
</select> 购买次数大于<input type="text" name="numbers" class="h-input" value="<?php
echo $numbers;
?>
" style="width:20px"> 购买金额大于<input type="text" name="prices" class="h-input" value="<?php
echo $prices;
?>
" style="width:30px"> 余额大于<input type="text" name="havemoney" class="h-input" value="<?php
echo $havemoney;
?>
" style="width:20px"> <input type="submit" value="筛选" class="formbutton" style="padding:1px 6px;"/><form></li>
</ul>
</div>
<div class="sect">
<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
示例11: htmlspecialchars
?>
</ul>
</div>
<div id="content" class="coupons-box clear mainwide">
<div class="box clear">
<div class="box-top"></div>
<div class="box-content">
<div class="head">
<h2>管理员操作日志</h2>
<ul class="filter">
<li><form action="/manage/misc/logger.php" method="get">项目:
<input type="text" class="h-input" name="search" value="<?php
echo htmlspecialchars($title);
?>
" > <select name="type"><?php
echo Utility::Option($option_logger, $type, '分类');
?>
</select> <input type="submit" value="筛选" class="formbutton" style="padding:1px 6px;"/>
</form></li>
<li><form action="/manage/misc/logger.php" method="post">
<input type="hidden" name="clear_data" value="1" />
<input type="submit" value="清空操作日志" class="formbutton" style="padding:1px 6px;" onclick="return confirm('确定清空数据?')";/>
</form></li>
</ul>
</div>
<div class="sect">
<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
<tr>
<th width="60">记录id</th>
<th width="60">用户id</th>
<th width="100">邮箱</th>
示例12: mcurrent_misc
echo mcurrent_misc('ask');
?>
</ul>
</div>
<div id="content" class="coupons-box clear mainwide">
<div class="box clear">
<div class="box-top"></div>
<div class="box-content">
<div class="head">
<h2>项目咨询</h2>
<ul class="filter">
<li><form action="/manage/misc/ask.php" method="get">项目:<input type="text" class="h-input" name="title" value="<?php
echo htmlspecialchars($title);
?>
" > <select name="type"><?php
echo Utility::Option($option_ask, $type, '分类');
?>
</select> <input type="submit" value="筛选" class="formbutton" style="padding:1px 6px;"/><form></li>
</ul>
</div>
<div class="sect">
<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
<tr><th width="260">项目名称</th><th width="60">咨询人</th><th width="200">咨询</th><th width="200">答复</th><th width="120">操作</th></tr>
<?php
if (is_array($asks)) {
foreach ($asks as $index => $one) {
?>
<tr <?php
echo $index % 2 ? '' : 'class="alt"';
?>
id="team-list-id-<?php
示例13: mcurrent_credit
echo mcurrent_credit('index');
?>
</ul>
</div>
<div id="content" class="coupons-box clear mainwide">
<div class="box clear">
<div class="box-top"></div>
<div class="box-content">
<div class="head">
<h2>积分记录</h2>
<ul class="filter">
<li><form action="/manage/credit/index.php" method="get">用户:<input type="text" name="uemail" class="h-input" value="<?php
echo htmlspecialchars($uemail);
?>
" > <select name="action" style="width:120px;"><?php
echo Utility::Option($option_action, $action, '所有操作');
?>
</select> <input type="submit" value="筛选" class="formbutton" style="padding:1px 6px;"/><form></li>
</ul>
</div>
<div class="sect">
<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
<tr><th width="50">ID</th><th width="200">Email/用户名</th><th width="100" nowrap>姓名/城市</th><th width="40">积分</th><th width="400">详情</th><th width="100">操作</th></tr>
<?php
if (is_array($credits)) {
foreach ($credits as $index => $one) {
?>
<tr <?php
echo $index % 2 ? '' : 'class="alt"';
?>
id="team-list-id-<?php
示例14: template
<?php include template("manage_header");?>
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
<div class="dashboard" id="dashboard">
<ul><?php echo mcurrent_store('index'); ?></ul>
</div>
<div id="content" class="coupons-box clear mainwide">
<div class="box clear">
<div class="box-top"></div>
<div class="box-content">
<div class="head">
<h2>门店</h2>
<ul class="filter"><li><form method="get">门店名称:<input type="text" name="ptitle" class="h-input" value="<?php echo htmlspecialchars($ptitle); ?>" > <select name="open" class="h-input"><?php echo Utility::Option($option_open, $open, '展示'); ?></select> <select name="city_id" class="h-input"><?php echo Utility::Option(option_category('city'), $city_id, '全部城市'); ?></select> <select name="partner_id" style="width:280px;" class="h-input"><?php echo Utility::Option($partners, $partner_id, '全部商家'); ?></select> <input type="submit" value="筛选" class="formbutton" style="padding:1px 6px;"/><form></li></ul>
</div>
<div class="sect">
<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
<tr><th width="40">ID</th><th width="320">名称</th><!--<th width="60">分类</th>--><th width="120">联系人</th><th width="130">电话号码</th><th width="60">展示</th><th width="40">排序</th><th width="100">操作</th></tr>
<?php if(is_array($stores)){foreach($stores AS $index=>$one) { ?>
<tr <?php echo $index%2?'':'class="alt"'; ?> id="team-list-id-<?php echo $one['id']; ?>">
<td><?php echo $one['id']; ?></td>
<td style="text-align:left;"><a class="deal-title" href="/manage/store/edit.php?id=<?php echo $one['id']; ?>"><?php echo $one['name']; ?></a></td>
<!--<td nowrap><?php echo $groups[$one['group_id']]; ?><br/><?php echo $cities[$one['city_id']]; ?></td>-->
<td nowrap><?php echo $one['contact']; ?></td>
<td nowrap><?php echo $one['telphone']; ?></td>
<td nowrap><?php echo $one['open']; ?></td>
<td nowrap><?php echo $one['head']; ?></td>
<td class="op" nowrap><a href="/manage/store/edit.php?id=<?php echo $one['id']; ?>">编辑</a>|<a href="/ajax/manage.php?action=storeremove&id=<?php echo $one['id']; ?>" class="ajaxlink" ask="确定删除本商户?">删除</a></td>
</tr>
<?php }}?>
示例15:
<div class="field password">
<label>登录密码</label>
<input type="password" size="30" name="password" id="settings-password" class="f-input" require="true" datatype="require" />
</div>
<div class="field password">
<label for="create-password-confirm">确认密码</label>
<input type="password" size="30" name="password2" id="create-password" class="f-input" require="true" datatype="compare" compare="settings-password" />
</div>
<div class="wholetip clear"><h3>2、标注信息</h3></div>
<div class="field">
<label>城市及分类</label>
<select name="city_id" class="f-input" style="width:160px;"><?php
echo Utility::Option(option_category('city'), $partner['city_id'], '-选择城市-');
?>
</select> <select name="group_id" class="f-input" style="width:160px;"><?php
echo Utility::Option(option_category('partner'), $partner['group_id']);
?>
</select>
</div>
<div class="field">
<label>商家图片</label>
<input type="file" size="30" name="upload_image" id="partner-create-image" class="f-input" />
<span class="hint">至少要上传一张商家图片, 高质量的商家图片有利于卖家更详细的了解您.</span>
</div>
<div class="field">
<label>商家图片1</label>
<input type="file" size="30" name="upload_image1" id="partner-create-image1" class="f-input" />
</div>
<div class="field">
<label>商家图片2</label>
<input type="file" size="30" name="upload_image2" id="partner-create-image2" class="f-input" />