本文整理汇总了PHP中ajax_area_select函数的典型用法代码示例。如果您正苦于以下问题:PHP ajax_area_select函数的具体用法?PHP ajax_area_select怎么用?PHP ajax_area_select使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ajax_area_select函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dcalendar
?>
>发布日期</option>
</select>
<?php
echo dcalendar('fromdate', $fromdate, '');
?>
至 <?php
echo dcalendar('todate', $todate, '');
?>
<?php
echo $_admin == 1 ? category_select('catid', '不限分类', $catid, $moduleid) : ajax_category_select('catid', '不限分类', $catid, $moduleid);
?>
<?php
echo $DT['city'] ? ajax_area_select('areaid', '不限地区', $areaid) . ' ' : '';
?>
ID:<input type="text" size="4" name="itemid" value="<?php
echo $itemid;
?>
"/>
</td>
</tr>
</table>
</form>
<form method="post">
<div class="tt"><?php
echo $menus[$menuid][0];
?>
</div>
<table cellpadding="2" cellspacing="1" class="tb">
示例2: isset
continue;
}
$m['rssurl'] = $MOD['feed_url'] . 'rss.php?mid=' . $m['moduleid'];
$FD[] = $m;
}
$areaid = isset($areaid) ? intval($areaid) : 0;
$feed_code = '';
$category_select = '';
$area_select = '';
if ($mid && $mid > 4 && isset($MODULE[$mid]) && !$MODULE[$mid]['islink']) {
$feed_code .= $MOD['feed_url'] . 'rss.php?mid=' . $mid;
if ($kw == $L['keyword']) {
$kw = '';
}
if ($kw && strlen($kw) > 2 && strlen($kw) < 30) {
$feed_code .= '&kw=' . urlencode($kw);
}
if ($catid) {
$feed_code .= '&catid=' . urlencode($catid);
}
if ($areaid) {
$feed_code .= '&areaid=' . urlencode($areaid);
}
$category_select = category_select('catid', $L['category'], $catid, $mid);
if (in_array($MODULE[$mid]['module'], array('sell', 'buy', 'exhibit', 'info', 'job'))) {
$area_select = ajax_area_select('areaid', $L['rss_area'], $areaid);
}
}
$head_title = $L['rss_title'];
$head_keywords = $head_description = '';
include template('feed', $module);
示例3: dcalendar
<option value="addtime" <?php
if ($datetype == 'addtime') {
echo 'selected';
}
?>
>发布日期</option>
</select>
<?php
echo dcalendar('fromdate', $fromdate, '');
?>
至 <?php
echo dcalendar('todate', $todate, '');
?>
<?php
echo ajax_area_select('areaid', '居住地点', $areaid);
?>
薪资:
<span title="期望薪资"><input name="minsalary" type="text" id="minsalary" size="5" value="<?php
echo $minsalary;
?>
"/> 至 <input name="maxsalary" type="text" id="maxsalary" size="5" value="<?php
echo $maxsalary;
?>
"/> <?php
echo $DT['money_unit'];
?>
/月</span>
ID:<input type="text" size="4" name="itemid" value="<?php
示例4: ajax_area_select
?>
"/><label for="ro_<?php
echo $m['moduleid'];
?>
"> <?php
echo $m['name'];
?>
模块管理员</label></div>
<?php
}
?>
<div><input type="checkbox" name="roles[template]" value="1" id="ro_template"/><label for="ro_template"> 模板风格管理员</label></div>
<div><input type="checkbox" name="roles[database]" value="1" id="ro_database"/><label for="ro_database"> 数据库管理员</label></div>
<div><input type="checkbox" onclick="checkall(this.form);" id="ro_all"/><label for="ro_all"> 全选/反选</label></div>
<p><?php
echo ajax_area_select('aid', '分站权限');
?>
</p>
</div>
</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 角色名称</td>
<td><input type="text" size="20" name="role" id="role"/> <span class="f_gray">可以为角色名称,例如编辑、美工、某分站编辑等,也可以为该管理员的备注</span></td>
</tr>
</table>
<div class="sbt"><input type="submit" name="submit" value="下一步" class="btn"></div>
</form>
<script type="text/javascript">
function check() {
var l;
示例5: ajax_area_select
</td>
<td>catid</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 包含子分类</td>
<td>
<input type="radio" name="setting[child]" value="1" checked/> 是
<input type="radio" name="setting[child]" value="0" id="child"/> 否
</td>
<td>child</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 所属地区</td>
<td><input type="text" name="setting[areaid]" size="30" id="areaid"/>
<?php
echo ajax_area_select('areaids', '不限地区');
?>
<a href="javascript:are();" class="t">←添加</a>
</td>
<td>areaid</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 包含子地区</td>
<td>
<input type="radio" name="setting[areachild]" value="1" checked/> 是
<input type="radio" name="setting[areachild]" value="0" id="areachild"/> 否
</td>
<td>areachild</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 缓存时间</td>
示例6: isset
}
$fromdate = isset($fromdate) && is_date($fromdate) ? $fromdate : '';
$fromtime = $fromdate ? strtotime($fromdate . ' 0:0:0') : 0;
$todate = isset($todate) && is_date($todate) ? $todate : '';
$totime = $todate ? strtotime($todate . ' 23:59:59') : 0;
$sfields = array($L['by_auto'], $L['by_title'], $L['by_content'], $L['by_introduce']);
$dfields = array('keyword', 'title', 'content', 'introduce');
$sorder = array($L['order'], $L['order_auto']);
$dorder = array($MOD['order'], '');
if (!$MOD['fulltext']) {
unset($sfields[2], $dfields[2]);
}
isset($fields) && isset($dfields[$fields]) or $fields = 0;
isset($order) && isset($dorder[$order]) or $order = 0;
$category_select = ajax_category_select('catid', $L['all_category'], $catid, $moduleid);
$area_select = ajax_area_select('areaid', $L['all_area'], $areaid);
$order_select = dselect($sorder, 'order', '', $order);
$type_select = dselect($TYPE, 'typeid', $L['all_type'], $typeid);
$tags = array();
if ($DT_QST) {
if ($kw) {
if (strlen($kw) < $DT['min_kw'] || strlen($kw) > $DT['max_kw']) {
message(lang($L['word_limit'], array($DT['min_kw'], $DT['max_kw'])), $MOD['linkurl'] . 'search.php');
}
if ($DT['search_limit'] && $page == 1) {
if ($DT_TIME - $DT['search_limit'] < get_cookie('last_search')) {
message(lang($L['time_limit'], array($DT['search_limit'])), $MOD['linkurl'] . 'search.php');
}
set_cookie('last_search', $DT_TIME);
}
}
示例7: fields_show
//.........这里部分代码省略.........
$v = $FD[$itemid];
$value = $v['default_value'];
if (isset($values[$v['name']])) {
$value = $values[$v['name']];
} else {
if ($v['default_value']) {
eval('$value = "' . $v['default_value'] . '";');
}
}
if ($v['html'] == 'hidden') {
$html .= '<input type="hidden" name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/>';
} else {
$html .= '<tr>' . $left;
if ($v['input_limit']) {
$html .= '<span class="f_red">*</span> ';
} else {
$html .= defined('DT_ADMIN') ? '<span class="f_hid">*</span> ' : '';
}
$html .= $v['title'];
$html .= '</td>';
$html .= $right;
switch ($v['html']) {
case 'text':
$html .= '<input type="text" name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/> <span class="f_red" id="d' . $v['name'] . '"></span>';
break;
case 'textarea':
$html .= '<textarea name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" ' . $v['addition'] . '>' . $value . '</textarea> <span class="f_red" id="d' . $v['name'] . '"></span>';
break;
case 'select':
if ($v['option_value']) {
$html .= '<select name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" ' . $v['addition'] . '><option value="">' . $L['choose'] . '</option>';
$rows = explode("*", $v['option_value']);
foreach ($rows as $row) {
if ($row) {
$cols = explode("|", trim($row));
$html .= '<option value="' . $cols[0] . '"' . ($cols[0] == $value ? ' selected' : '') . '>' . $cols[1] . '</option>';
}
}
$html .= '</select> <span class="f_red" id="d' . $v['name'] . '"></span>';
}
break;
case 'radio':
if ($v['option_value']) {
$html .= '<span id="' . $v['name'] . '">';
$rows = explode("*", $v['option_value']);
foreach ($rows as $rw => $row) {
if ($row) {
$cols = explode("|", trim($row));
$html .= '<input type="radio" name="post_fields[' . $v['name'] . ']" value="' . $cols[0] . '" id="' . $v['name'] . '_' . $rw . '"' . ($cols[0] == $value ? ' checked' : '') . '> ' . $cols[1] . ' ';
}
}
$html .= '</span> <span class="f_red" id="d' . $v['name'] . '"></span>';
}
break;
case 'checkbox':
if ($v['option_value']) {
$html .= '<span id="' . $v['name'] . '">';
$value = explode(',', $value);
$rows = explode("*", $v['option_value']);
foreach ($rows as $rw => $row) {
if ($row) {
$cols = explode("|", trim($row));
$html .= '<input type="checkbox" name="post_fields[' . $v['name'] . '][]" value="' . $cols[0] . '" id="' . $v['name'] . '_' . $rw . '"' . (in_array($cols[0], $value) ? ' checked' : '') . '> ' . $cols[1] . ' ';
}
}
$html .= '</span> <span class="f_red" id="d' . $v['name'] . '"></span>';
}
break;
case 'date':
$html .= dcalendar('post_fields[' . $v['name'] . ']', $value);
$html .= ' <span class="f_red" id="post_dfields' . $v['name'] . '"></span>';
break;
case 'thumb':
$html .= '<input name="post_fields[' . $v['name'] . ']" type="text" size="60" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/> <span onclick="Dthumb(' . $moduleid . ',' . $v['width'] . ',' . $v['height'] . ', Dd(\'' . $v['name'] . '\').value,\'' . (defined('DT_ADMIN') ? '' : '1') . '\',\'' . $v['name'] . '\');" class="jt">[' . $L['upload'] . ']</span> <span onclick="_preview(Dd(\'' . $v['name'] . '\').value);" class="jt">[' . $L['preview'] . ']</span> <span onclick="Dd(\'' . $v['name'] . '\').value=\'\';" class="jt">[' . $L['delete'] . ']</span>';
$html .= ' <span class="f_red" id="d' . $v['name'] . '"></span>';
break;
case 'file':
$html .= '<input name="post_fields[' . $v['name'] . ']" type="text" size="60" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/> <span onclick="Dfile(' . $moduleid . ', Dd(\'' . $v['name'] . '\').value, \'' . $v['name'] . '\');" class="jt">[' . $L['upload'] . ']</span> <span onclick="if(Dd(\'' . $v['name'] . '\').value) window.open(Dd(\'' . $v['name'] . '\').value);" class="jt">[' . $L['preview'] . ']</span>';
$html .= ' <span class="f_red" id="d' . $v['name'] . '"></span> <span onclick="Dd(\'' . $v['name'] . '\').value=\'\';" class="jt">[' . $L['delete'] . ']</span>';
$html .= ' <span class="f_red" id="d' . $v['name'] . '"></span>';
break;
case 'editor':
$toolbar = isset($group_editor) ? $group_editor : 'Destoon';
if (DT_EDITOR == 'fckeditor') {
$html .= '<textarea name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" style="display:none">' . $value . '</textarea><iframe id="' . $v['name'] . '___Frame" src="' . $MODULE[2]['linkurl'] . 'editor/fckeditor/editor/fckeditor.html?InstanceName=' . $v['name'] . '&Toolbar=' . $toolbar . '" width="' . $v['width'] . '" height="' . $v['height'] . '" frameborder="no" scrolling="no"></iframe>';
$html .= '<br/><span class="f_red" id="d' . $v['name'] . '"></span>';
} else {
$html .= '<textarea name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" style="display:none">' . $value . '</textarea>' . deditor($moduleid, $v['name'], $toolbar, $v['width'], $v['height']) . '<span class="f_red" id="d' . $v['name'] . '"></span>';
}
break;
case 'area':
$html .= ajax_area_select('post_fields[' . $v['name'] . ']', $GLOBALS['L']['choose'], $value);
$html .= ' <span class="f_red" id="d' . $v['name'] . '"></span>';
break;
}
$html .= $v['note'];
$html .= '</td></tr>';
}
return $html;
}
示例8: ajax_area_select
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 真实姓名</td>
<td><input type="text" size="20" name="member[truename]" id="truename"/> <span id="dtruename" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 性别</td>
<td>
<input type="radio" name="member[gender]" value="1" checked="checked"/> 先生
<input type="radio" name="member[gender]" value="2"/> 女士
</td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 所在地区</td>
<td><?php
echo ajax_area_select('member[areaid]', '请选择', 0, '', 2);
?>
<span id="dareaid" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 部门</td>
<td><input type="text" size="20" name="member[department]" id="department"/></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 职位</td>
<td><input type="text" size="20" name="member[career]" id="career"/></td>
</tr><tr>
<td class="tl"><span class="f_hid">*</span> 手机号码</td>
<td><input type="text" size="20" name="member[mobile]" id="mobile"/></td>
</tr>
<tr>
示例9: ajax_area_select
echo $kw;
?>
" title="关键词"/>
<select name="type">
<option value="0">管理员类型</option>
<option value="1"<?php
echo $type == 1 ? ' selected' : '';
?>
>超级管理员</option>
<option value="2"<?php
echo $type == 2 ? ' selected' : '';
?>
>普通管理员</option>
</select>
<?php
echo ajax_area_select('areaid', '所属分站', $areaid);
?>
<input type="text" name="psize" value="<?php
echo $pagesize;
?>
" size="2" class="t_c" title="条/页"/>
<input type="submit" value="搜 索" class="btn"/>
<input type="button" value="重 置" class="btn" onclick="Go('?file=<?php
echo $file;
?>
');"/>
</td>
</tr>
</table>
</form>
示例10: ajax_area_select
<input type="radio" name="admin" value="1" id="admin_1"<?php
echo $user['admin'] == 1 ? ' checked' : '';
?>
/><label for="admin_1"> 超级管理员</label> <span class="f_gray">拥有除创始人特权外的所有权限</span>
<div class="b10"> </div>
<input type="radio" name="admin" value="2" id="admin_2"<?php
echo $user['admin'] == 2 ? ' checked' : '';
?>
/><label for="admin_2"> 普通管理员</label> <span class="f_gray">拥有系统分配的权限</span>
<div class="b10"> </div>
</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 分站权限</td>
<td><?php
echo ajax_area_select('aid', '请选择', $user['aid']);
?>
<span class="f_gray">分站权限仅对<span class="f_red">普通管理员</span>生效</span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 角色名称</td>
<td><input type="text" size="20" name="role" id="role" value="<?php
echo $user['role'];
?>
"/> <span class="f_gray">可以为角色名称,例如编辑、美工、某分站编辑等,也可以为该管理员的备注</span></td>
</tr>
</table>
<div class="sbt"><input type="submit" name="submit" value="修 改" class="btn"></div>
</form>
<script type="text/javascript">Menuon(1);</script>
<?php
示例11: array
if (!$areaid && $cityid && strpos($DT_URL, 'areaid') === false) {
$areaid = $cityid;
$ARE = $AREA[$cityid];
}
$sfields = array($L['by_auto'], $L['by_title'], $L['by_content'], $L['by_introduce']);
$dfields = array('keyword', 'title', 'content', 'introduce');
$sorder = array($L['order'], $L['order_auto'], $L['order_addtime'], $L['order_hits']);
$dorder = array($MOD['order'], '', 'addtime DESC', 'hits DESC');
if (!$MOD['fulltext']) {
unset($sfields[2], $dfields[2]);
}
isset($fields) && isset($dfields[$fields]) or $fields = 0;
isset($order) && isset($dorder[$order]) or $order = 0;
$order_select = dselect($sorder, 'order', '', $order);
$category_select = category_select('catid', $L['all_category'], $catid, $moduleid);
$area_select = $DT['city'] ? ajax_area_select('areaid', $L['all_area'], $areaid) : '';
$tags = array();
if ($DT_QST) {
if ($kw) {
if (strlen($kw) < $DT['min_kw'] || strlen($kw) > $DT['max_kw']) {
message(lang($L['word_limit'], array($DT['min_kw'], $DT['max_kw'])), $MOD['linkurl'] . 'search.php');
}
if ($DT['search_limit'] && $page == 1) {
if ($DT_TIME - $DT['search_limit'] < get_cookie('last_search')) {
message(lang($L['time_limit'], array($DT['search_limit'])), $MOD['linkurl'] . 'search.php');
}
set_cookie('last_search', $DT_TIME);
}
}
$pptsql = '';
if ($CP) {
示例12: ajax_area_select
<tr>
<td>
<?php
echo $fields_select;
?>
<input type="text" size="20" name="kw" value="<?php
echo $kw;
?>
" title="关键词"/>
<?php
echo $order_select;
?>
<?php
echo ajax_area_select('areaid', '地区(分站)', $areaid);
?>
广告位ID: <input type="text" name="pid" value="<?php
echo $pid;
?>
" size="2" class="t_c"/>
<input type="text" name="psize" value="<?php
echo $pagesize;
?>
" size="2" class="t_c" title="条/页"/>
<input type="submit" value="搜 索" class="btn"/>
<input type="button" value="重 置" class="btn" onclick="Go('?moduleid=<?php
echo $moduleid;
?>
&file=<?php
示例13: timetodate
echo timetodate($FTIME + 86400 * 365 * 2, 3);
?>
">二年</option>
<option value="<?php
echo timetodate($FTIME + 86400 * 365 * 3, 3);
?>
">三年</option>
</select> <span id="dtime" class="f_red"></span></td>
</tr>
<?php
if ($DT['city']) {
?>
<tr>
<td class="tl"><span class="f_hid">*</span> 地区(分站)</td>
<td><?php
echo ajax_area_select('ad[areaid]', $L['allcity'], $cityid);
?>
</td>
</tr>
<?php
}
?>
<tr>
<td class="tl"><span class="f_hid">*</span> 会员名</td>
<td><input name="ad[username]" type="text" size="20"/></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 备注</td>
<td><input name="ad[note]" type="text" size="60" /></td>
</tr>
<tr style="display:<?php
示例14: ajax_area_select
echo $AREA[$parentid]['parentid'];
?>
');"/>
<?php
}
?>
</div>
</form>
<form method="post" action="?">
<div class="tt">快捷操作</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr align="center">
<td>
<div style="float:left;padding:10px;">
<?php
echo ajax_area_select('aid', '地区结构', $parentid, 'size="2" style="width:200px;height:130px;" id="aid"');
?>
</div>
<div style="float:left;padding:10px;">
<table>
<tr>
<td><input type="submit" value="管理地区" class="btn" onclick="this.form.action='?file=<?php
echo $file;
?>
&parentid='+Dd('aid').value;"/></td>
</tr>
<tr>
<td><input type="submit" value="添加地区" class="btn" onclick="this.form.action='?file=<?php
echo $file;
?>
&action=add&parentid='+Dd('aid').value;"/></td>
示例15: ajax_area_select
<option value="<?php
echo $v;
?>
"<?php
echo $mid == $v ? ' selected' : '';
?>
><?php
echo $MODULE[$v]['name'];
?>
</option>
<?php
}
?>
</select>
<?php
echo ajax_area_select('areaid', '所在地区', $areaid);
?>
<?php
echo $order_select;
?>
<input type="text" name="psize" value="<?php
echo $pagesize;
?>
" size="2" class="t_c" title="条/页"/>
<input type="submit" value="搜 索" class="btn"/>
<input type="button" value="重 置" class="btn" onclick="Go('?moduleid=<?php
echo $moduleid;
?>
&file=<?php