本文整理匯總了PHP中level_select函數的典型用法代碼示例。如果您正苦於以下問題:PHP level_select函數的具體用法?PHP level_select怎麽用?PHP level_select使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了level_select函數的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
if ($_catids || $_areaids) {
require DT_ROOT . '/admin/admin_check.inc.php';
}
$this_forward = '?moduleid=' . $moduleid . '&file=' . $file;
if (in_array($action, array('', 'check'))) {
$sorder = array('結果排序方式', '更新時間降序', '更新時間升序', '是否文字降序', '是否文字升序', '是否推薦降序', '是否推薦升序');
$dorder = array('listorder DESC,itemid DESC', 'edittime DESC', 'eidttime ASC', 'type DESC', 'type ASC', 'elite DESC', 'elite ASC');
$stype = array('類型', '文字', 'LOGO');
$dtype = array('0', '1', '2');
$level = isset($level) ? intval($level) : 0;
$typeid = isset($typeid) ? intval($typeid) : 0;
$type = isset($type) ? intval($type) : 0;
isset($order) && isset($dorder[$order]) or $order = 0;
$type_select = type_select('link', 1, 'typeid', '請選擇分類', $typeid);
$order_select = dselect($sorder, 'order', '', $order);
$level_select = level_select('level', '級別', $level);
$_type_select = dselect($stype, 'type', '', $type);
$condition = '';
if ($_areaids) {
$condition .= " AND areaid IN (" . $_areaids . ")";
}
//CITY
if ($keyword) {
$condition .= " AND title LIKE '%{$keyword}%'";
}
if ($typeid) {
$condition .= " AND typeid={$typeid}";
}
if ($type) {
$condition .= $type == 1 ? " AND thumb=''" : " AND thumb<>''";
}
示例2: dstyle
?>
image/img_add.gif" width="12" height="12" title="管理分類" class="c_p" onclick="Dwidget('?file=type&item=<?php
echo $file;
?>
', '投票分類');"/> <span id="dtypeid" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 投票標題</td>
<td><input name="post[title]" type="text" id="title" size="50" value="<?php
echo $title;
?>
"/> <?php
echo dstyle('post[style]', $style);
?>
<?php
echo level_select('post[level]', '級別', $level);
?>
<span id="dtitle" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 投票有效期</td>
<td><?php
echo dcalendar('post[fromtime]', $fromtime);
?>
至 <?php
echo dcalendar('post[totime]', $totime);
?>
<?php
echo tips('不填表示不限時間');
?>
</td>
示例3: array
$dorder = array($MOD['order'], 'edittime DESC', 'edittime ASC', 'addtime DESC', 'addtime ASC', 'hits DESC', 'hits ASC', 'download DESC', 'download ASC', 'itemid DESC', 'itemid ASC');
$level = isset($level) ? intval($level) : 0;
isset($fields) && isset($dfields[$fields]) or $fields = 0;
isset($order) && isset($dorder[$order]) or $order = 0;
isset($datetype) && in_array($datetype, array('edittime', 'addtime')) or $datetype = 'addtime';
$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;
$fileext = isset($fileext) ? trim($fileext) : '';
$areaid = isset($areaid) ? intval($areaid) : 0;
$thumb = isset($thumb) ? intval($thumb) : 0;
$guest = isset($guest) ? intval($guest) : 0;
$itemid or $itemid = '';
$fields_select = dselect($sfields, 'fields', '', $fields);
$level_select = level_select('level', '級別', $level, 'all');
$order_select = dselect($sorder, 'order', '', $order);
$condition = '';
if ($_childs) {
$condition .= " AND catid IN (" . $_childs . ")";
}
//CATE
if ($_areaids) {
$condition .= " AND areaid IN (" . $_areaids . ")";
}
//CITY
if ($keyword) {
$condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
}
if ($catid) {
$condition .= $CAT['child'] ? " AND catid IN (" . $CAT['arrchildid'] . ")" : " AND catid={$catid}";
示例4: level_select
}
?>
</table>
<div class="btns">
<input type="submit" value=" 刪除信息 " class="btn" onclick="if(confirm('確定要刪除選中信息嗎?此操作將不可撤銷')){this.form.action='?moduleid=<?php
echo $moduleid;
?>
&file=<?php
echo $file;
?>
&specialid=<?php
echo $specialid;
?>
&action=delete'}else{return false;}"/>
<?php
echo level_select('level', '設置級別為</option><option value="0">取消', 0, 'onchange="this.form.action=\'?moduleid=' . $moduleid . '&file=' . $file . '&specialid=' . $specialid . '&action=level\';this.form.submit();"');
?>
<select name="typeid" onchange="this.form.action='?moduleid=<?php
echo $moduleid;
?>
&file=<?php
echo $file;
?>
&specialid=<?php
echo $specialid;
?>
&action=type';this.form.submit();">
<option value="0">設置分類為</option>
<option value="0">未分類</option>
<?php
示例5: tips
?>
/> 關閉
<?php
tips('此項會增加服務器負擔,請根據需要和服務器配置決定是否開啟。MATCH模式需要MySQL 4以上版本,且需要在MySQL的my.ini添加ft_min_word_len=1才能支持2個漢字的中文搜索。如果不能設置可以使用LIKE模式,但是效率會低於MATCH模式。<br/>開啟MATCH模式請在數據庫維護裏執行以下SQL添加全文索引<br/>ALTER TABLE `' . $table_data . '` ADD FULLTEXT (`content`);<br/>全文索引占用一定數據空間,如果不開啟MATCH模式可以執行以下語句刪除索引<br/>ALTER TABLE `' . $table_data . '` DROP INDEX `content`;');
?>
</td>
</tr>
<tr>
<td class="tl">級別中文別名</td>
<td>
<input type="text" name="setting[level]" style="width:98%;" value="<?php
echo $level;
?>
"/>
<br/>用 | 分隔不同別名 依次對應 1|2|3|4|5|6|7|8|9 級 <?php
echo level_select('post[level]', '提交後點此預覽效果');
?>
</td>
</tr>
<tr style="display:<?php
echo DT_EDITOR == 'fckeditor' ? '' : 'none';
?>
">
<td class="tl">編輯器批量傳圖</td>
<td>
<input type="radio" name="setting[swfu]" value="0" <?php
if ($swfu == 0) {
echo 'checked';
}
?>
/> 關閉
示例6: level_select
?>
', '[<?php
echo $special['title'];
?>
] 專題信息分類', 550, 250);"><img src="<?php
echo $MODULE[2]['linkurl'];
?>
image/img_add.gif" width="12" height="12" title="管理分類"/></a> <span id="dtypeid" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 信息標題</td>
<td><input name="post[title]" type="text" id="title" size="60" value="<?php
echo $title;
?>
"/> <?php
echo level_select('post[level]', '級別', $level, 'id="level"');
?>
<?php
echo dstyle('post[style]', $style);
?>
<br/><span id="dtitle" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 鏈接地址</td>
<td><input name="post[linkurl]" type="text" id="linkurl" size="60" value="<?php
echo $linkurl;
?>
"/> <br/><span id="dlinkurl" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 標題圖片</td>
示例7: isset
isset($fields) && isset($dfields[$fields]) or $fields = 0;
isset($order) && isset($dorder[$order]) or $order = 0;
$level = isset($level) ? intval($level) : 0;
$ontop = isset($ontop) ? intval($ontop) : 0;
isset($style) or $style = 0;
$style = isset($COLOR[$style]) ? '#' . $style : '';
isset($datetype) && in_array($datetype, array('edittime', 'addtime', 'replytime')) or $datetype = 'addtime';
$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;
$thumb = isset($thumb) ? intval($thumb) : 0;
$guest = isset($guest) ? intval($guest) : 0;
$itemid or $itemid = '';
$fields_select = dselect($sfields, 'fields', '', $fields);
$level_select = level_select('level', '精華', $level, 'all');
$order_select = dselect($sorder, 'order', '', $order);
$condition = '';
if ($_childs) {
$condition .= " AND catid IN (" . $_childs . ")";
}
//CATE
if ($_areaids) {
$condition .= " AND areaid IN (" . $_areaids . ")";
}
//CITY
if ($keyword) {
$condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
}
if ($catid) {
$condition .= $CAT['child'] ? " AND catid IN (" . $CAT['arrchildid'] . ")" : " AND catid={$catid}";
示例8: type_select
<?php
}
} else {
?>
<tr>
<td colspan="6" class="f_red"> 沒有找到可用的信息,請重新篩選</td>
</tr>
<?php
}
?>
<tr>
<td colspan="6">
<?php
echo type_select($tid, 0, 'typeid', '請選擇分類', 0, 'id="typeid"');
?>
<?php
echo level_select('level', '級別', 0, 'id="level"');
?>
<input type="submit" name="submit" value=" 添 加 " class="btn"/></td>
</tr>
</table>
</form>
<div class="pages"><?php
echo $pages;
?>
</div>
<script type="text/javascript">Menuon(1);</script>
<?php
include tpl('footer');